lr-chatbot 0.4.0 → 0.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/Chatbot.js +25327 -0
- package/components/Chatbot.js.map +1 -0
- package/custom-elements.json +1 -1
- package/index.js +3 -25872
- package/index.js.map +1 -0
- package/libs/shared/client/features/chatbot/src/components/Chatbot.d.ts +19 -0
- package/libs/shared/client/features/chatbot/src/index.d.ts +1 -0
- package/package.json +4 -2
- package/index.cjs +0 -339
package/index.cjs
DELETED
|
@@ -1,339 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function ri(r){return io(r)||ao(r)||ai(r)||ro()}function ro(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
2
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ao(r){if(typeof Symbol<"u"&&r[Symbol.iterator]!=null||r["@@iterator"]!=null)return Array.from(r)}function io(r){if(Array.isArray(r))return Jn(r)}function oo(r,a){var e=typeof Symbol<"u"&&r[Symbol.iterator]||r["@@iterator"];if(!e){if(Array.isArray(r)||(e=ai(r))||a){e&&(r=e);var t=0,n=function(){};return{s:n,n:function(){return t>=r.length?{done:!0}:{done:!1,value:r[t++]}},e:function(c){throw c},f:n}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
3
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var i=!0,o=!1,s;return{s:function(){e=e.call(r)},n:function(){var c=e.next();return i=c.done,c},e:function(c){o=!0,s=c},f:function(){try{!i&&e.return!=null&&e.return()}finally{if(o)throw s}}}}function ai(r,a){if(r){if(typeof r=="string")return Jn(r,a);var e=Object.prototype.toString.call(r).slice(8,-1);if(e==="Object"&&r.constructor&&(e=r.constructor.name),e==="Map"||e==="Set")return Array.from(r);if(e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return Jn(r,a)}}function Jn(r,a){(a==null||a>r.length)&&(a=r.length);for(var e=0,t=new Array(a);e<a;e++)t[e]=r[e];return t}function Xn(r){var a=typeof Map=="function"?new Map:void 0;return Xn=function(t){if(t===null||!lo(t))return t;if(typeof t!="function")throw new TypeError("Super expression must either be null or a function");if(typeof a<"u"){if(a.has(t))return a.get(t);a.set(t,n)}function n(){return so(t,arguments,_t(this).constructor)}return n.prototype=Object.create(t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),kt(n,t)},Xn(r)}function so(r,a,e){if(cr())return Reflect.construct.apply(null,arguments);var t=[null];t.push.apply(t,a);var n=new(r.bind.apply(r,t));return e&&kt(n,e.prototype),n}function lo(r){try{return Function.toString.call(r).indexOf("[native code]")!==-1}catch{return typeof r=="function"}}function R(r,a,e){return a=_t(a),co(r,cr()?Reflect.construct(a,e||[],_t(r).constructor):a.apply(r,e))}function co(r,a){if(a&&(I(a)==="object"||typeof a=="function"))return a;if(a!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return pe(r)}function pe(r){if(r===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}function cr(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(cr=function(){return!!r})()}function _t(r){return _t=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},_t(r)}function $(r,a){if(typeof a!="function"&&a!==null)throw new TypeError("Super expression must either be null or a function");r.prototype=Object.create(a&&a.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),Object.defineProperty(r,"prototype",{writable:!1}),a&&kt(r,a)}function kt(r,a){return kt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,n){return t.__proto__=n,t},kt(r,a)}function h(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */h=function(){return a};var r,a={},e=Object.prototype,t=e.hasOwnProperty,n=Object.defineProperty||function(A,C,P){A[C]=P.value},i=typeof Symbol=="function"?Symbol:{},o=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag";function c(A,C,P){return Object.defineProperty(A,C,{value:P,enumerable:!0,configurable:!0,writable:!0}),A[C]}try{c({},"")}catch{c=function(P,x,N){return P[x]=N}}function u(A,C,P,x){var N=C&&C.prototype instanceof y?C:y,M=Object.create(N.prototype),K=new G(x||[]);return n(M,"_invoke",{value:Q(A,P,K)}),M}function d(A,C,P){try{return{type:"normal",arg:A.call(C,P)}}catch(x){return{type:"throw",arg:x}}}a.wrap=u;var p="suspendedStart",m="suspendedYield",g="executing",b="completed",v={};function y(){}function f(){}function w(){}var L={};c(L,o,function(){return this});var E=Object.getPrototypeOf,O=E&&E(E(_e([])));O&&O!==e&&t.call(O,o)&&(L=O);var U=w.prototype=y.prototype=Object.create(L);function q(A){["next","throw","return"].forEach(function(C){c(A,C,function(P){return this._invoke(C,P)})})}function W(A,C){function P(N,M,K,ae){var ee=d(A[N],A,M);if(ee.type!=="throw"){var ke=ee.arg,ce=ke.value;return ce&&I(ce)=="object"&&t.call(ce,"__await")?C.resolve(ce.__await).then(function(fe){P("next",fe,K,ae)},function(fe){P("throw",fe,K,ae)}):C.resolve(ce).then(function(fe){ke.value=fe,K(ke)},function(fe){return P("throw",fe,K,ae)})}ae(ee.arg)}var x;n(this,"_invoke",{value:function(M,K){function ae(){return new C(function(ee,ke){P(M,K,ee,ke)})}return x=x?x.then(ae,ae):ae()}})}function Q(A,C,P){var x=p;return function(N,M){if(x===g)throw new Error("Generator is already running");if(x===b){if(N==="throw")throw M;return{value:r,done:!0}}for(P.method=N,P.arg=M;;){var K=P.delegate;if(K){var ae=Y(K,P);if(ae){if(ae===v)continue;return ae}}if(P.method==="next")P.sent=P._sent=P.arg;else if(P.method==="throw"){if(x===p)throw x=b,P.arg;P.dispatchException(P.arg)}else P.method==="return"&&P.abrupt("return",P.arg);x=g;var ee=d(A,C,P);if(ee.type==="normal"){if(x=P.done?b:m,ee.arg===v)continue;return{value:ee.arg,done:P.done}}ee.type==="throw"&&(x=b,P.method="throw",P.arg=ee.arg)}}}function Y(A,C){var P=C.method,x=A.iterator[P];if(x===r)return C.delegate=null,P==="throw"&&A.iterator.return&&(C.method="return",C.arg=r,Y(A,C),C.method==="throw")||P!=="return"&&(C.method="throw",C.arg=new TypeError("The iterator does not provide a '"+P+"' method")),v;var N=d(x,A.iterator,C.arg);if(N.type==="throw")return C.method="throw",C.arg=N.arg,C.delegate=null,v;var M=N.arg;return M?M.done?(C[A.resultName]=M.value,C.next=A.nextLoc,C.method!=="return"&&(C.method="next",C.arg=r),C.delegate=null,v):M:(C.method="throw",C.arg=new TypeError("iterator result is not an object"),C.delegate=null,v)}function V(A){var C={tryLoc:A[0]};1 in A&&(C.catchLoc=A[1]),2 in A&&(C.finallyLoc=A[2],C.afterLoc=A[3]),this.tryEntries.push(C)}function J(A){var C=A.completion||{};C.type="normal",delete C.arg,A.completion=C}function G(A){this.tryEntries=[{tryLoc:"root"}],A.forEach(V,this),this.reset(!0)}function _e(A){if(A||A===""){var C=A[o];if(C)return C.call(A);if(typeof A.next=="function")return A;if(!isNaN(A.length)){var P=-1,x=function N(){for(;++P<A.length;)if(t.call(A,P))return N.value=A[P],N.done=!1,N;return N.value=r,N.done=!0,N};return x.next=x}}throw new TypeError(I(A)+" is not iterable")}return f.prototype=w,n(U,"constructor",{value:w,configurable:!0}),n(w,"constructor",{value:f,configurable:!0}),f.displayName=c(w,l,"GeneratorFunction"),a.isGeneratorFunction=function(A){var C=typeof A=="function"&&A.constructor;return!!C&&(C===f||(C.displayName||C.name)==="GeneratorFunction")},a.mark=function(A){return Object.setPrototypeOf?Object.setPrototypeOf(A,w):(A.__proto__=w,c(A,l,"GeneratorFunction")),A.prototype=Object.create(U),A},a.awrap=function(A){return{__await:A}},q(W.prototype),c(W.prototype,s,function(){return this}),a.AsyncIterator=W,a.async=function(A,C,P,x,N){N===void 0&&(N=Promise);var M=new W(u(A,C,P,x),N);return a.isGeneratorFunction(C)?M:M.next().then(function(K){return K.done?K.value:M.next()})},q(U),c(U,l,"Generator"),c(U,o,function(){return this}),c(U,"toString",function(){return"[object Generator]"}),a.keys=function(A){var C=Object(A),P=[];for(var x in C)P.push(x);return P.reverse(),function N(){for(;P.length;){var M=P.pop();if(M in C)return N.value=M,N.done=!1,N}return N.done=!0,N}},a.values=_e,G.prototype={constructor:G,reset:function(C){if(this.prev=0,this.next=0,this.sent=this._sent=r,this.done=!1,this.delegate=null,this.method="next",this.arg=r,this.tryEntries.forEach(J),!C)for(var P in this)P.charAt(0)==="t"&&t.call(this,P)&&!isNaN(+P.slice(1))&&(this[P]=r)},stop:function(){this.done=!0;var C=this.tryEntries[0].completion;if(C.type==="throw")throw C.arg;return this.rval},dispatchException:function(C){if(this.done)throw C;var P=this;function x(ke,ce){return K.type="throw",K.arg=C,P.next=ke,ce&&(P.method="next",P.arg=r),!!ce}for(var N=this.tryEntries.length-1;N>=0;--N){var M=this.tryEntries[N],K=M.completion;if(M.tryLoc==="root")return x("end");if(M.tryLoc<=this.prev){var ae=t.call(M,"catchLoc"),ee=t.call(M,"finallyLoc");if(ae&&ee){if(this.prev<M.catchLoc)return x(M.catchLoc,!0);if(this.prev<M.finallyLoc)return x(M.finallyLoc)}else if(ae){if(this.prev<M.catchLoc)return x(M.catchLoc,!0)}else{if(!ee)throw new Error("try statement without catch or finally");if(this.prev<M.finallyLoc)return x(M.finallyLoc)}}}},abrupt:function(C,P){for(var x=this.tryEntries.length-1;x>=0;--x){var N=this.tryEntries[x];if(N.tryLoc<=this.prev&&t.call(N,"finallyLoc")&&this.prev<N.finallyLoc){var M=N;break}}M&&(C==="break"||C==="continue")&&M.tryLoc<=P&&P<=M.finallyLoc&&(M=null);var K=M?M.completion:{};return K.type=C,K.arg=P,M?(this.method="next",this.next=M.finallyLoc,v):this.complete(K)},complete:function(C,P){if(C.type==="throw")throw C.arg;return C.type==="break"||C.type==="continue"?this.next=C.arg:C.type==="return"?(this.rval=this.arg=C.arg,this.method="return",this.next="end"):C.type==="normal"&&P&&(this.next=P),v},finish:function(C){for(var P=this.tryEntries.length-1;P>=0;--P){var x=this.tryEntries[P];if(x.finallyLoc===C)return this.complete(x.completion,x.afterLoc),J(x),v}},catch:function(C){for(var P=this.tryEntries.length-1;P>=0;--P){var x=this.tryEntries[P];if(x.tryLoc===C){var N=x.completion;if(N.type==="throw"){var M=N.arg;J(x)}return M}}throw new Error("illegal catch attempt")},delegateYield:function(C,P,x){return this.delegate={iterator:_e(C),resultName:P,nextLoc:x},this.method==="next"&&(this.arg=r),v}},a}function Ir(r,a,e,t,n,i,o){try{var s=r[i](o),l=s.value}catch(c){e(c);return}s.done?a(l):Promise.resolve(l).then(t,n)}function S(r){return function(){var a=this,e=arguments;return new Promise(function(t,n){var i=r.apply(a,e);function o(l){Ir(i,t,n,o,s,"next",l)}function s(l){Ir(i,t,n,o,s,"throw",l)}o(void 0)})}}function Rr(r,a){var e=Object.keys(r);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(r);a&&(t=t.filter(function(n){return Object.getOwnPropertyDescriptor(r,n).enumerable})),e.push.apply(e,t)}return e}function H(r){for(var a=1;a<arguments.length;a++){var e=arguments[a]!=null?arguments[a]:{};a%2?Rr(Object(e),!0).forEach(function(t){ii(r,t,e[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(e)):Rr(Object(e)).forEach(function(t){Object.defineProperty(r,t,Object.getOwnPropertyDescriptor(e,t))})}return r}function ii(r,a,e){return a=oi(a),a in r?Object.defineProperty(r,a,{value:e,enumerable:!0,configurable:!0,writable:!0}):r[a]=e,r}function I(r){"@babel/helpers - typeof";return I=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},I(r)}function _(r,a){if(!(r instanceof a))throw new TypeError("Cannot call a class as a function")}function $r(r,a){for(var e=0;e<a.length;e++){var t=a[e];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(r,oi(t.key),t)}}function k(r,a,e){return a&&$r(r.prototype,a),e&&$r(r,e),Object.defineProperty(r,"prototype",{writable:!1}),r}function oi(r){var a=uo(r,"string");return I(a)=="symbol"?a:String(a)}function uo(r,a){if(I(r)!="object"||!r)return r;var e=r[Symbol.toPrimitive];if(e!==void 0){var t=e.call(r,a);if(I(t)!="object")return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(r)}var po=function(){function r(){_(this,r)}return k(r,null,[{key:"render",value:function(e,t){var n=document.createElement("div");n.id="error-view",n.innerText=t,e.replaceChildren(n)}}]),r}(),mo=function(){function r(){_(this,r)}return k(r,null,[{key:"onLoad",value:function(e){e.innerHTML='<div id="large-loading-ring"></div>'}},{key:"createElements",value:function(){var e=document.createElement("div");return e.id="validate-property-key-view",e}},{key:"render",value:function(e,t,n){var i=r.createElements(),o={onSuccess:t,onFail:po.render.bind(this,e,"Your 'key' has failed authentication"),onLoad:r.onLoad.bind(this,i)};n.key&&n.verifyKey(n.key,o),e.replaceChildren(i)}}]),r}(),ie=function(){function r(){_(this,r)}return k(r,null,[{key:"unsetStyle",value:function(e,t){var n=Object.keys(t).reduce(function(i,o){return i[o]="",i},{});Object.assign(e.style,n)}},{key:"unsetActivityCSSMouseStates",value:function(e,t){t.click&&r.unsetStyle(e,t.click),t.hover&&r.unsetStyle(e,t.hover)}},{key:"unsetAllCSSMouseStates",value:function(e,t){r.unsetActivityCSSMouseStates(e,t),t.default&&r.unsetStyle(e,t.default)}},{key:"processStateful",value:function(e,t,n){var i=e.default||{},o=Object.assign(JSON.parse(JSON.stringify(H(H({},i),t))),e==null?void 0:e.hover),s=Object.assign(JSON.parse(JSON.stringify(H(H({},o),n))),e==null?void 0:e.click);return{default:i,hover:o,click:s}}},{key:"mergeStatefulStyles",value:function(e){var t={default:{},hover:{},click:{}};return e.forEach(function(n){t.default=Object.assign(t.default,n.default),t.hover=Object.assign(t.hover,n.hover),t.click=Object.assign(t.click,n.click)}),t}},{key:"overwriteDefaultWithAlreadyApplied",value:function(e,t){Object.keys(e.default||[]).forEach(function(n){var i,o=n;t.style[o]&&(i=e.default)!=null&&i[o]&&(e.default[n]=t.style[o])})}},{key:"applyToStyleIfNotDefined",value:function(e,t){for(var n in t){var i=t[n];e[n]===""&&i&&(e[n]=i)}}}]),r}(),si=function(){function r(){_(this,r)}return k(r,null,[{key:"apply",value:function(e,t){if(t)try{r.applyStyleSheet(e,t)}catch{r.addStyleElement(e,t)}}},{key:"applyStyleSheet",value:function(e,t){var n=new CSSStyleSheet;n.replaceSync(e),t.adoptedStyleSheets.push(n)}},{key:"addStyleElement",value:function(e,t){var n=document.createElement("style");n.innerHTML=e,t.appendChild(n)}},{key:"applyDefaultStyleToComponent",value:function(e,t){t&&ie.applyToStyleIfNotDefined(e,t),ie.applyToStyleIfNotDefined(e,r.DEFAULT_COMPONENT_STYLE)}}]),r}();si.DEFAULT_COMPONENT_STYLE={height:"350px",width:"320px",border:"1px solid #cacaca",fontFamily:"'Inter', sans-serif, Avenir, Helvetica, Arial",fontSize:"0.9rem",backgroundColor:"white",position:"relative",overflow:"hidden"};var $n=si,te=function(r){return r.ESCAPE="Escape",r.ENTER="Enter",r.TAB="Tab",r.ARROW_UP="ArrowUp",r.ARROW_DOWN="ArrowDown",r.ARROW_RIGHT="ArrowRight",r.ARROW_LEFT="ArrowLeft",r.BACKSPACE="Backspace",r.DELETE="Delete",r.META="Meta",r.CONTROL="Control",r}(te||{}),Ie=k(function r(){_(this,r)});Ie.IS_SAFARI=/^((?!chrome|android).)*safari/i.test(navigator.userAgent);Ie.IS_CHROMIUM=window.chrome;var li=function(){function r(){_(this,r)}return k(r,null,[{key:"add",value:function(e,t,n){t!==void 0&&e.addEventListener("keydown",r.onKeyDown.bind(this,t)),e.oninput=r.onInput.bind(this,t,n)}},{key:"onKeyDown",value:function(e,t){var n=t.target.textContent;n&&n.length>=e&&!r.PERMITTED_KEYS.has(t.key)&&!r.isKeyCombinationPermitted(t)&&t.preventDefault()}},{key:"isKeyCombinationPermitted",value:function(e){return e.key==="a"?e.ctrlKey||e.metaKey:!1}},{key:"onInput",value:function(e,t,n){var i=n.target,o=i.textContent||"";e!==void 0&&o.length>e&&(i.textContent=o.substring(0,e),ui.focusEndOfInput(i)),t==null||t()}}]),r}();li.PERMITTED_KEYS=new Set([te.BACKSPACE,te.DELETE,te.ARROW_RIGHT,te.ARROW_LEFT,te.ARROW_DOWN,te.ARROW_UP,te.META,te.CONTROL,te.ENTER]);var ho=li,go=function(){function r(){_(this,r)}return k(r,null,[{key:"sanitizePastedTextContent",value:function(e){var t,n;e.preventDefault();var i=(t=e.clipboardData)==null?void 0:t.getData("text/plain");(n=document.execCommand)==null||n.call(document,"insertText",!1,i)}}]),r}(),ci=function(){function r(a,e){var t=this;_(this,r);var n,i=r.processConfig(e,a.textInput);this.elementRef=r.createContainerElement((n=i==null?void 0:i.styles)==null?void 0:n.container),this.inputElementRef=this.createInputElement(i),this._config=i,this.elementRef.appendChild(this.inputElementRef),setTimeout(function(){var o;ho.add(t.inputElementRef,(o=a.textInput)==null?void 0:o.characterLimit,a._validationHandler)})}return k(r,[{key:"createInputElement",value:function(e){var t,n,i,o=document.createElement("div");return o.id=r.TEXT_INPUT_ID,o.classList.add("text-input-styling","text-input-placeholder"),o.innerText=((t=e==null?void 0:e.placeholder)==null?void 0:t.text)||"Ask me anything!",Ie.IS_CHROMIUM&&r.preventAutomaticScrollUpOnNewLine(o),typeof(e==null?void 0:e.disabled)=="boolean"&&e.disabled===!0?(o.contentEditable="false",o.classList.add("text-input-disabled")):(o.contentEditable="true",this.addEventListeners(o,e)),Object.assign(o.style,(n=e==null?void 0:e.styles)==null?void 0:n.text),Object.assign(o.style,(i=e==null?void 0:e.placeholder)==null?void 0:i.style),o}},{key:"removeTextIfPlaceholder",value:function(){var e,t,n,i;this.inputElementRef.classList.contains("text-input-placeholder")&&!this.inputElementRef.classList.contains("text-input-disabled")&&((e=this._config.placeholder)!=null&&e.style&&(ie.unsetStyle(this.inputElementRef,(t=this._config.placeholder)==null?void 0:t.style),Object.assign(this.inputElementRef.style,(i=(n=this._config)==null?void 0:n.styles)==null?void 0:i.text)),r.clear(this.inputElementRef),this.inputElementRef.classList.remove("text-input-placeholder"))}},{key:"addEventListeners",value:function(e,t){var n,i,o;e.onfocus=this.onFocus.bind(this,(n=t==null?void 0:t.styles)==null?void 0:n.focus),(i=t==null?void 0:t.styles)!=null&&i.focus&&(e.onblur=this.onBlur.bind(this,t.styles.focus,(o=t==null?void 0:t.styles)==null?void 0:o.container)),e.addEventListener("keydown",this.onKeydown.bind(this)),e.onpaste=go.sanitizePastedTextContent}},{key:"onFocus",value:function(e){var t=this;Ie.IS_SAFARI?setTimeout(function(){t.removeTextIfPlaceholder()}):this.removeTextIfPlaceholder(),Object.assign(this.elementRef.style,e)}},{key:"onBlur",value:function(e,t){ie.unsetStyle(this.elementRef,e),t&&Object.assign(this.elementRef.style,t)}},{key:"onKeydown",value:function(e){var t;e.key===te.ENTER&&!e.ctrlKey&&!e.shiftKey&&(e.preventDefault(),(t=this.submit)==null||t.call(this))}}],[{key:"processConfig",value:function(e,t){var n,i,o,s,l;return(n=t)!==null&&n!==void 0||(t={}),(i=t.disabled)!==null&&i!==void 0||(t.disabled=e.isTextInputDisabled),(o=t.placeholder)!==null&&o!==void 0||(t.placeholder={}),(s=(l=t.placeholder).text)!==null&&s!==void 0||(l.text=e.textInputPlaceholderText),t}},{key:"preventAutomaticScrollUpOnNewLine",value:function(e){var t;e.addEventListener("keydown",function(){t=window.scrollY}),e.addEventListener("input",function(){t!==window.scrollY&&window.scrollTo({top:t})})}},{key:"clear",value:function(e){var t=window.scrollY;e.classList.contains("text-input-disabled")||(e.textContent=""),Ie.IS_CHROMIUM&&window.scrollTo({top:t})}},{key:"toggleEditability",value:function(e,t){e.contentEditable=t?"true":"false"}},{key:"createContainerElement",value:function(e){var t=document.createElement("div");return t.id="text-input-container",Object.assign(t.style,e),t}}]),r}();ci.TEXT_INPUT_ID="text-input";var ur=ci,ui=function(){function r(){_(this,r)}return k(r,null,[{key:"focusEndOfInput",value:function(e){var t=document.createRange();t.selectNodeContents(e),t.collapse(!1);var n=window.getSelection();n==null||n.removeAllRanges(),n==null||n.addRange(t)}},{key:"focusFromParentElement",value:function(e){var t=e.querySelector("#".concat(ur.TEXT_INPUT_ID));t&&r.focusEndOfInput(t)}}]),r}();function Or(r){return r.charAt(0).toUpperCase()+r.slice(1)}function fo(r){return r&&JSON.stringify(r)}function dr(r,a,e,t){var n=`
|
|
4
|
-
`.concat(Or(a)," message: ").concat(JSON.stringify(r),`
|
|
5
|
-
`),i=e?"".concat(Or(a)," message after interceptor: ").concat(fo(t),`
|
|
6
|
-
`):"";return n+i}function vo(r,a,e,t){return"".concat(dr(r,a,e,t),"Make sure the ").concat(a,` message is using the Response format: https://deepchat.dev/docs/connect/#Response
|
|
7
|
-
You can also augment it using the responseInterceptor property: https://deepchat.dev/docs/interceptors#responseInterceptor`)}function bo(r,a,e){var t="response";return"".concat(dr(r,t,a,e),"Make sure the ").concat(t,' message is using the {text: string} format, e.g: {text: "Model Response"}')}function yo(r,a){var e="request";return"".concat(dr(r,e,a),"Make sure the ").concat(e,' message is using the {body: {text: string}} format, e.g: {body: {text: "Model Response"}}')}var Nr=`Make sure the events are using {text: string} or {html: string} format.
|
|
8
|
-
You can also augment them using the responseInterceptor property: https://deepchat.dev/docs/interceptors#responseInterceptor`,X={INVALID_KEY:"Invalid API Key",CONNECTION_FAILED:"Failed to connect",INVALID_RESPONSE:vo,INVALID_MODEL_REQUEST:yo,INVALID_MODEL_RESPONSE:bo,INVALID_STREAM_EVENT:Nr,INVALID_STREAM_EVENT_MIX:"Cannot mix {text: string} and {html: string} responses.",NO_VALID_STREAM_EVENTS_SENT:`No valid stream events were sent.
|
|
9
|
-
`.concat(Nr)},di=function(){function r(){_(this,r)}return k(r,null,[{key:"addElements",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];n.forEach(function(o){return e.appendChild(o)})}},{key:"isScrollbarAtBottomOfElement",value:function(e){var t=e.scrollHeight,n=e.clientHeight,i=e.scrollTop,o=t-n;return i>=o-r.CODE_SNIPPET_GENERATION_JUMP}},{key:"cloneElement",value:function(e){var t=e.cloneNode(!0);return e.parentNode.replaceChild(t,e),t}},{key:"scrollToBottom",value:function(e){e.scrollTop=e.scrollHeight}},{key:"scrollToTop",value:function(e){e.scrollTop=0}}]),r}();di.CODE_SNIPPET_GENERATION_JUMP=.5;var me=di,pi=function(){function r(){_(this,r)}return k(r,null,[{key:"speak",value:function(e,t){if(window.SpeechSynthesisUtterance){var n=new SpeechSynthesisUtterance(e);Object.assign(n,t),speechSynthesis.speak(n)}}},{key:"processConfig",value:function(e,t){var n={};setTimeout(function(){if(I(e)=="object"&&(e.lang&&(n.lang=e.lang),e.pitch&&(n.pitch=e.pitch),e.rate&&(n.rate=e.rate),e.volume&&(n.volume=e.volume),e.voiceName)){var i=window.speechSynthesis.getVoices().find(function(o){var s;return o.name.toLocaleLowerCase()===((s=e.voiceName)==null?void 0:s.toLocaleLowerCase())});i&&(n.voice=i)}t(n)},r.LOAD_VOICES_MS)}}]),r}();pi.LOAD_VOICES_MS=200;var Gt=pi,Ve=function(){function r(){_(this,r)}return k(r,null,[{key:"checkForContainerStyles",value:function(e,t){var n=e.containerStyle;n&&(Object.assign(t.style,n),console.error("The containerStyle property is deprecated since version 1.3.14."),console.error("Please change to using the style property instead: https://deepchat.dev/docs/styles#style"))}},{key:"handleResponseProperty",value:function(e){return console.error("The {result: ....} response object type is deprecated since version 1.3.0."),console.error("Please change to using the new response object: https://deepchat.dev/docs/connect#Response"),e.result}},{key:"processInitialMessageFile",value:function(e){var t=e.file;t&&(console.error("The file property in MessageContent is deprecated since version 1.3.17."),console.error("Please change to using the files array property: https://deepchat.dev/docs/messages/#MessageContent"),e.files=[t])}},{key:"processValidateInput",value:function(e){var t=e.validateMessageBeforeSending;if(t)return console.error("The validateMessageBeforeSending property is deprecated since version 1.3.24."),console.error("Please change to using validateInput: https://deepchat.dev/docs/interceptors#validateInput"),t}},{key:"processSubmitUserMessage",value:function(e){return console.error("The submitUserMessage(text: string) argument string type is deprecated since version 1.4.4."),console.error("Please change to using the new argument type: https://deepchat.dev/docs/methods#submitUserMessage"),{text:e}}},{key:"flagHTMLUpdateClass",value:function(e){var t;(t=e.children[0])!=null&&t.classList.contains("deep-chat-update-message")&&(console.error('The "deep-chat-update-message" html class is deprecated since version 1.4.4.'),console.error("Please change to using {..., overwrite: true} object: https://deepchat.dev/docs/connect#Response"))}}]),r}(),_o="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iaXNvLTg4NTktMSI/Pgo8c3ZnIGZpbGw9IiMwMDAwMDAiIHZlcnNpb249IjEuMSIgaWQ9IkxheWVyXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIAoJCXZpZXdCb3g9IjAgMCAzMiAzMiIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSI+Cgk8cGF0aCBkPSJNMjMsMzAuMzZIOWMtMi40MDQsMC00LjM2LTEuOTU2LTQuMzYtNC4zNlYxNWMwLTIuNDA0LDEuOTU2LTQuMzYsNC4zNi00LjM2aDMuNjU5CgkJYzAuMTY3LTEuNTY2LDEuNDE1LTIuODEzLDIuOTgxLTIuOTgxVjUuMzMzYy0xLjEzMS0wLjE3NC0yLTEuMTU0LTItMi4zMzNjMC0xLjMwMSwxLjA1OS0yLjM2LDIuMzYtMi4zNgoJCWMxLjMwMiwwLDIuMzYsMS4wNTksMi4zNiwyLjM2YzAsMS4xNzktMC44NjksMi4xNTktMiwyLjMzM1Y3LjY2YzEuNTY2LDAuMTY3LDIuODE0LDEuNDE1LDIuOTgxLDIuOTgxSDIzCgkJYzIuNDA0LDAsNC4zNiwxLjk1Niw0LjM2LDQuMzZ2MTFDMjcuMzYsMjguNDA0LDI1LjQwNCwzMC4zNiwyMywzMC4zNnogTTksMTEuMzZjLTIuMDA3LDAtMy42NCwxLjYzMy0zLjY0LDMuNjR2MTEKCQljMCwyLjAwNywxLjYzMywzLjY0LDMuNjQsMy42NGgxNGMyLjAwNywwLDMuNjQtMS42MzMsMy42NC0zLjY0VjE1YzAtMi4wMDctMS42MzMtMy42NC0zLjY0LTMuNjRIOXogTTEzLjM4NCwxMC42NGg1LjIzMQoJCUMxOC40MzksOS4zNTQsMTcuMzM0LDguMzYsMTYsOC4zNkMxNC42NjcsOC4zNiwxMy41NjEsOS4zNTQsMTMuMzg0LDEwLjY0eiBNMTYsMS4zNmMtMC45MDQsMC0xLjY0LDAuNzM2LTEuNjQsMS42NAoJCVMxNS4wOTYsNC42NCwxNiw0LjY0YzAuOTA0LDAsMS42NC0wLjczNiwxLjY0LTEuNjRTMTYuOTA0LDEuMzYsMTYsMS4zNnogTTIwLDI3LjM2aC04Yy0xLjMwMSwwLTIuMzYtMS4wNTktMi4zNi0yLjM2CgkJczEuMDU5LTIuMzYsMi4zNi0yLjM2aDhjMS4zMDIsMCwyLjM2LDEuMDU5LDIuMzYsMi4zNlMyMS4zMDIsMjcuMzYsMjAsMjcuMzZ6IE0xMiwyMy4zNmMtMC45MDQsMC0xLjY0LDAuNzM1LTEuNjQsMS42NAoJCXMwLjczNiwxLjY0LDEuNjQsMS42NGg4YzAuOTA0LDAsMS42NC0wLjczNSwxLjY0LTEuNjRzLTAuNzM1LTEuNjQtMS42NC0xLjY0SDEyeiBNMzEsMjMuODZoLTJjLTAuMTk5LDAtMC4zNi0wLjE2MS0wLjM2LTAuMzZWMTUKCQljMC0wLjE5OSwwLjE2MS0wLjM2LDAuMzYtMC4zNmgyYzAuMTk5LDAsMC4zNiwwLjE2MSwwLjM2LDAuMzZ2OC41QzMxLjM2LDIzLjY5OSwzMS4xOTksMjMuODYsMzEsMjMuODZ6IE0yOS4zNiwyMy4xNGgxLjI3OXYtNy43OAoJCUgyOS4zNlYyMy4xNHogTTMsMjMuODZIMWMtMC4xOTksMC0wLjM2LTAuMTYxLTAuMzYtMC4zNlYxNWMwLTAuMTk5LDAuMTYxLTAuMzYsMC4zNi0wLjM2aDJjMC4xOTksMCwwLjM2LDAuMTYxLDAuMzYsMC4zNnY4LjUKCQlDMy4zNiwyMy42OTksMy4xOTksMjMuODYsMywyMy44NnogTTEuMzYsMjMuMTRoMS4yOHYtNy43OEgxLjM2VjIzLjE0eiBNMjAsMjAuMzZjLTEuMzAyLDAtMi4zNi0xLjA1OS0yLjM2LTIuMzYKCQlzMS4wNTktMi4zNiwyLjM2LTIuMzZzMi4zNiwxLjA1OSwyLjM2LDIuMzZDMjIuMzYsMTkuMzAyLDIxLjMwMiwyMC4zNiwyMCwyMC4zNnogTTIwLDE2LjM2Yy0wLjkwNCwwLTEuNjQsMC43MzYtMS42NCwxLjY0CgkJczAuNzM1LDEuNjQsMS42NCwxLjY0czEuNjQtMC43MzUsMS42NC0xLjY0UzIwLjkwNCwxNi4zNiwyMCwxNi4zNnogTTEyLDIwLjM2Yy0xLjMwMSwwLTIuMzYtMS4wNTktMi4zNi0yLjM2czEuMDU5LTIuMzYsMi4zNi0yLjM2CgkJczIuMzYsMS4wNTksMi4zNiwyLjM2QzE0LjM2LDE5LjMwMiwxMy4zMDEsMjAuMzYsMTIsMjAuMzZ6IE0xMiwxNi4zNmMtMC45MDQsMC0xLjY0LDAuNzM2LTEuNjQsMS42NHMwLjczNiwxLjY0LDEuNjQsMS42NAoJCXMxLjY0LTAuNzM1LDEuNjQtMS42NFMxMi45MDQsMTYuMzYsMTIsMTYuMzZ6Ii8+Cgk8cmVjdCBzdHlsZT0iZmlsbDpub25lOyIgd2lkdGg9IjMyIiBoZWlnaHQ9IjMyIi8+Cjwvc3ZnPg==",ko="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAPoAAAD6CAMAAAC/MqoPAAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAADNQTFRF////9vX18vLy/Pz86enp4+Li2tnZ1tbWzczM+fn57Ozs4N/f09LS0M/P5uXl7+/v3dzcwtncCAAAAAFiS0dEAIgFHUgAAAAJcEhZcwAAAEgAAABIAEbJaz4AAAZNSURBVHja7d3bdtsqEABQYABZSLH9/3+ZpnUsIcF5iOM6PfElNoMHMfPQdq3GmL0GkLhEUqLaUExnOtOZznSmM53pTGc605nOdKYznelMZzrTmV4LXSqllKyJDkob26xWq8Zae/iH0QoWTm9d1xur4WuypQJtTd+5dqn0VjcxzNO5/57mEBvdLo8Oron6aseWOjYOFkVvjQs3DmgyONMuht52EfztP+4hdu0i6LCO808/M8c1lE/fuPGej41uUzgdtoO/75N+2ELJ9I3b3//hPXbiMenm3pR/Jt4USgcLBIp4Bh10gqKVhvLo0klCxeSky96nKcj3siw6pJIL4XsoiQ7apyvMY/V3HHrSRioLopvEhSpTCn2TPEuwKYMOIX0tAxRBf/Hpa+lfSqBv9gi1FPsNfTrMAiVmIE/vJhz61FGnQxRIEYE4vfNYdN8Rp6MlHaHotHTn8ejekaZPAjEmyvQWdZFTtYTpXqCGJ0zvcek9Yfoel76nS0ffv1NMp1ca+pkgyfRCGind4L7OWWc605l+cxjsyhqy9AGbPpClc1/nvl5VX0c/3Alk6RU3+Am7shNZ+h6bvidLr7jBB+zKBrL0irOOudmIUDzTmf5gIP+iEuXtRuTVaEmY/oZLfyNMrzjryPc0gerMTdpVg0tvjJUU6bLPcGOoUv46SLL6Wi8yhLf06C7TUyekI0efRaaYqdFltkeNpPumRPSMDxgBYvSM035FrKAmH72hRW99PrpvSdEHkTEGUvSsK3yKVDkuJ92RohcZaehzzirPpOg+J92Tolfc4Cumx5xVXpGiZ34+ICX6W84qv5GiR5NPbiIpOv6BCoSvSkTX+eiaGP092zINvBOj4x8mSf9FqejvNo/cvpOji19ZbmviL0GPLsYMFzgzCor0+Bv/ePDvSJKOb9dJ5UlnbnEHiHgzv6cdTpJOWuc/u3FEucLDOL75xGtBiefrcwgoC9NDSH/jkH6pAuXmBqPQ9HSUPVdZBH1GGOrMXAQdYxcKZfxAoK+KKBKFLosoEoX+u4giUehz8jlcnAuhp78I46yDYNAd+QLR6K+pr+yvxdBTHyVDubQh0UfSxaHSd0lbvNkVRE87JGOtc+PQd2QLQ6fHhJkKsSh6yg13tO08JPprsgrrXWH0dJd2vH1MLPprot4eXoujpzrdhngiD40ek2y92lggPcnWa8qN1Yz0BFuvZhRl0uOfR0v4Ewuli/Bg4Qr3lArqGdndQ3UPO1EunXYwnelMZzrTmc50pjOd6UxnOtOZznSmM53pTGf6kuj6oedFKV0s3fX6sX1S3bsi6a4PD7+/YAqYeBw6pIB/4qEgOqxdSPbGiim4NRRCbzs3Jj0L4UfXtQXQVRfn5IdA/Bw7RZzurEV6EtdsLeGXkIPuA+K1UoVeA0l62zmN/LqfSSft9KkepmoRuvi3nd5uKNFB9zbbXEANqdr941XO0NJx2v2jdJenpf+/3bvn0ts16ph+sd6hX7dPo2+2cZzE02Ia43bzDHqr+2Evnhz74ZHU30ffbKOeng1/NPV30Ns1gYQnSP2P6e65Pfxc6h02XZqXQCjhJ6kPL6bFo4NrGvAU4UII4SE2P1vQuZkuOxckVfehisF1MjUddN/MZBN+kvq5uf0O/xa66gyNS9ktMWlz44rO1Z8C19i5FPdHzPamXn+F3hryPfxMr78+4F+kq22kO6Rf6fUQt+puuustyWv4rbG3l/duztFB96GYoe1cTBdXMr+nw9qVM6ZfxOvzezff0nXi/ZOndvrR6Zvpm0c3h6nhdb+5iS7tsIim/qXZD9+97/Jf+rpZ5BET1ayv0GUzLhEuhBBjIy/RdVPgndutIRt9nt7p5cKFEEJ3Z+jQFDZL+XnMDXxHB73gxn5s9Kc3d3/pFciFkN/QTSXHJpX5l66gDrkQoP6hL3xsPw39la4qOiV8tH78XeSbue6N9mvWa6J/ybpc1CT1Wnh5Qq9meP8IOKH3ddH7E/ri1iYux/SXDrXR4UiPdck/wUpU+FtPf6/orja6O9KL3l56LOvVxe5Ib2qjN0d6Vbex4ghWlU3bPqI90If66MNng680FNpbJijH6kCvaF3uMzQ3+IrpFerV4Y9dffQdN3im10ivbuImhD3Qq5u4HdZkua8znelMZ/pS4z9CPVKkxowNxgAAACV0RVh0ZGF0ZTpjcmVhdGUAMjAxNy0wMy0yN1QxNTo0NToxNSswMDowMN1xSg4AAAAldEVYdGRhdGU6bW9kaWZ5ADIwMTctMDMtMjdUMTU6NDU6MTUrMDA6MDCsLPKyAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAABJRU5ErkJggg==",mi=function(){function r(){_(this,r)}return k(r,null,[{key:"hide",value:function(e){e.getElementsByClassName(r.CONTAINER_CLASS)[0].style.visibility="hidden"}},{key:"applyCustomStylesToElements",value:function(e,t,n){Object.assign(e.style,n.container),Object.assign(t.style,n.avatar)}},{key:"applyCustomStyles",value:function(e,t,n,i){var o,s,l,c;if((o=n.default)!=null&&o.styles&&r.applyCustomStylesToElements(e,t,n.default.styles),i===z.USER_ROLE)(s=n.user)!=null&&s.styles&&r.applyCustomStylesToElements(e,t,n.user.styles);else{(l=n.ai)!=null&&l.styles&&r.applyCustomStylesToElements(e,t,n.ai.styles);var u=(c=n[i])==null?void 0:c.styles;u&&r.applyCustomStylesToElements(e,t,u)}}},{key:"createAvatar",value:function(e,t){var n,i,o,s,l,c=document.createElement("img");e===z.USER_ROLE?c.src=((n=t==null?void 0:t.user)==null?void 0:n.src)||((i=t==null?void 0:t.default)==null?void 0:i.src)||ko:c.src=((o=t==null?void 0:t[e])==null?void 0:o.src)||((s=t==null?void 0:t.ai)==null?void 0:s.src)||((l=t==null?void 0:t.default)==null?void 0:l.src)||_o,c.classList.add("avatar");var u=document.createElement("div");return u.classList.add(r.CONTAINER_CLASS),u.appendChild(c),t&&r.applyCustomStyles(u,c,t,e),u}},{key:"getPosition",value:function(e,t){var n,i,o,s,l,c,u,d,p,m=(l=(s=t==null?void 0:t[e])==null?void 0:s.styles)==null?void 0:l.position;return e!==z.USER_ROLE&&((n=m)!==null&&n!==void 0||(m=(u=(c=t==null?void 0:t.ai)==null?void 0:c.styles)==null?void 0:u.position)),(i=m)!==null&&i!==void 0||(m=(p=(d=t==null?void 0:t.default)==null?void 0:d.styles)==null?void 0:p.position),(o=m)!==null&&o!==void 0||(m=e===z.USER_ROLE?"right":"left"),m}},{key:"add",value:function(e,t,n){var i=typeof n=="boolean"?void 0:n,o=r.createAvatar(t,i),s=r.getPosition(t,i);o.classList.add(s==="left"?"left-item-position":"right-item-position"),e.insertAdjacentElement(s==="left"?"beforebegin":"afterend",o)}}]),r}();mi.CONTAINER_CLASS="avatar-container";var zr=mi,hi=function(){function r(){_(this,r)}return k(r,null,[{key:"hide",value:function(e){e.getElementsByClassName(r.NAME_CLASS)[0].style.visibility="hidden"}},{key:"getPosition",value:function(e,t){var n,i,o,s,l,c,u=(s=t==null?void 0:t[e])==null?void 0:s.position;return e!==z.USER_ROLE&&((n=u)!==null&&n!==void 0||(u=(l=t==null?void 0:t.ai)==null?void 0:l.position)),(i=u)!==null&&i!==void 0||(u=(c=t==null?void 0:t.default)==null?void 0:c.position),(o=u)!==null&&o!==void 0||(u=e===z.USER_ROLE?"right":"left"),u}},{key:"applyStyle",value:function(e,t,n){var i,o,s,l;Object.assign(e.style,(i=n.default)==null?void 0:i.style),t===z.USER_ROLE?Object.assign(e.style,(o=n.user)==null?void 0:o.style):(Object.assign(e.style,(s=n.ai)==null?void 0:s.style),Object.assign(e.style,(l=n[t])==null?void 0:l.style))}},{key:"getNameText",value:function(e,t){var n,i,o,s,l,c;return e===z.USER_ROLE?((n=t.user)==null?void 0:n.text)||((i=t.default)==null?void 0:i.text)||"User":e===z.AI_ROLE?((o=t.ai)==null?void 0:o.text)||((s=t.default)==null?void 0:s.text)||"AI":((l=t[e])==null?void 0:l.text)||((c=t.default)==null?void 0:c.text)||e}},{key:"createName",value:function(e,t){var n=document.createElement("div");return n.classList.add(r.NAME_CLASS),n.textContent=r.getNameText(e,t),r.applyStyle(n,e,t),n}},{key:"add",value:function(e,t,n){var i=typeof n=="boolean"?{}:n,o=r.createName(t,i),s=r.getPosition(t,i);o.classList.add(s==="left"?"left-item-position":"right-item-position"),e.insertAdjacentElement(s==="left"?"beforebegin":"afterend",o)}}]),r}();hi.NAME_CLASS="name";var Dr=hi,on=function(){function r(){_(this,r)}return k(r,null,[{key:"getLastElementsByClass",value:function(e,t,n){for(var i=function(){var c=e[s];if(c.bubbleElement.classList.contains(t[0])&&!t.slice(1).find(function(u){return!c.bubbleElement.classList.contains(u)}))if(n){if(!n.find(function(u){return c.bubbleElement.classList.contains(u)}))return{v:c}}else return{v:c}},o,s=e.length-1;s>=0;s-=1)if(o=i(),o)return o.v}},{key:"getLastMessage",value:function(e,t,n){for(var i=e.length-1;i>=0;i-=1)if(e[i].role===t)if(n){if(e[i][n])return e[i]}else return e[i]}},{key:"getLastTextToElement",value:function(e,t){for(var n=e.length-1;n>=0;n-=1)if(e[n][0]===t)return e[n]}},{key:"overwriteMessage",value:function(e,t,n,i,o,s){var l=r.getLastElementsByClass(t,[r.getRoleClass(i),s],["loading-message-text"]),c=r.getLastMessage(e,i,o);return c&&(c[o]=n),l}},{key:"getRoleClass",value:function(e){return"".concat(e,"-message")}},{key:"fillEmptyMessageElement",value:function(e,t){t.trim().length===0&&(e.classList.add(r.EMPTY_MESSAGE_CLASS),e.innerHTML='<div style="color:#00000000">.</div>')}},{key:"unfillEmptyMessageElement",value:function(e,t){e.classList.contains(r.EMPTY_MESSAGE_CLASS)&&t.trim().length>0&&e.replaceChildren()}},{key:"getLastMessageBubbleElement",value:function(e){var t,n,i;return Array.from(((i=(n=(t=r.getLastMessageElement(e))==null?void 0:t.children)==null?void 0:n[0])==null?void 0:i.children)||[]).find(function(o){return o.classList.contains("message-bubble")})}},{key:"getLastMessageElement",value:function(e){return e.children[e.children.length-1]}},{key:"addRoleElements",value:function(e,t,n,i){n&&zr.add(e,t,n),i&&Dr.add(e,t,i)}},{key:"hideRoleElements",value:function(e,t,n){var i=e[e.length-1].innerContainer;t&&zr.hide(i),n&&Dr.hide(i)}}]),r}();on.AI_ROLE="ai";on.USER_ROLE="user";on.EMPTY_MESSAGE_CLASS="empty-message";var z=on,gi=function(){function r(){_(this,r)}return k(r,null,[{key:"mouseUp",value:function(e,t){ie.unsetAllCSSMouseStates(e,t),Object.assign(e.style,t.default),Object.assign(e.style,t.hover)}},{key:"mouseDown",value:function(e,t){Object.assign(e.style,t.click)}},{key:"mouseLeave",value:function(e,t){ie.unsetAllCSSMouseStates(e,t),Object.assign(e.style,t.default)}},{key:"mouseEnter",value:function(e,t){Object.assign(e.style,t.hover)}},{key:"add",value:function(e,t){e.addEventListener("mouseenter",r.mouseEnter.bind(this,e,t)),e.addEventListener("mouseleave",r.mouseLeave.bind(this,e,t)),e.addEventListener("mousedown",r.mouseDown.bind(this,e,t)),e.addEventListener("mouseup",r.mouseUp.bind(this,e,t))}}]),r}(),wo="deep-chat-temporary-message",So="deep-chat-suggestion-button",Qn={"deep-chat-button":{styles:{default:{backgroundColor:"white",padding:"5px",paddingLeft:"7px",paddingRight:"7px",border:"1px solid #c2c2c2",borderRadius:"6px",cursor:"pointer"},hover:{backgroundColor:"#fafafa"},click:{backgroundColor:"#f1f1f1"}}}},Br=Object.keys(Qn),Zt=function(){function r(){_(this,r)}return k(r,null,[{key:"applySuggestionEvent",value:function(e,t){setTimeout(function(){t.addEventListener("click",function(){var n,i;(i=e.submitUserMessage)==null||i.call(e,{text:((n=t.textContent)==null?void 0:n.trim())||""})})})}},{key:"isElementTemporary",value:function(e){var t;return e?(t=e.bubbleElement.children[0])==null?void 0:t.classList.contains(wo):!1}},{key:"doesElementContainDeepChatClass",value:function(e){return Br.find(function(t){return e.classList.contains(t)})}},{key:"applyEvents",value:function(e,t){var n=Qn[t].events;Object.keys(n||[]).forEach(function(i){e.addEventListener(i,n==null?void 0:n[i])})}},{key:"getProcessedStyles",value:function(e,t,n){var i=Array.from(t.classList).reduce(function(c,u){var d,p=(d=e[u])==null?void 0:d.styles;return p&&e[u].styles&&c.push(p),c},[]),o=Qn[n].styles;if(o){var s=JSON.parse(JSON.stringify(o));s.default&&ie.overwriteDefaultWithAlreadyApplied(s,t),i.unshift(s)}var l=ie.mergeStatefulStyles(i);return ie.processStateful(l,{},{})}},{key:"applyDeepChatUtilities",value:function(e,t,n){Br.forEach(function(o){var s=n.getElementsByClassName(o);Array.from(s||[]).forEach(function(l){var c=r.getProcessedStyles(t,l,o);wt.applyStylesToElement(l,c),r.applyEvents(l,o)})});var i=n.getElementsByClassName(So);Array.from(i).forEach(function(o){return r.applySuggestionEvent(e,o)})}}]),r}(),wt=function(){function r(){_(this,r)}return k(r,null,[{key:"applyStylesToElement",value:function(e,t){var n=ie.processStateful(t,{},{});gi.add(e,n),Object.assign(e.style,n.default)}},{key:"applyEventsToElement",value:function(e,t){Object.keys(t).forEach(function(n){var i=t[n];i&&e.addEventListener(n,i)})}},{key:"applyClassUtilitiesToElement",value:function(e,t){var n=t.events,i=t.styles;n&&r.applyEventsToElement(e,n),i&&!Zt.doesElementContainDeepChatClass(e)&&r.applyStylesToElement(e,i)}},{key:"applyCustomClassUtilities",value:function(e,t){Object.keys(e).forEach(function(n){var i=t.getElementsByClassName(n);Array.from(i).forEach(function(o){e[n]&&r.applyClassUtilitiesToElement(o,e[n])})})}},{key:"apply",value:function(e,t){Zt.applyDeepChatUtilities(e,e.htmlClassUtilities,t),r.applyCustomClassUtilities(e.htmlClassUtilities,t)}}]),r}(),er=function(){function r(){_(this,r)}return k(r,null,[{key:"addElement",value:function(e,t){e.elementRef.appendChild(t),e.elementRef.scrollTop=e.elementRef.scrollHeight}},{key:"createElements",value:function(e,t,n){var i=e.createNewMessageElement("",n);return i.bubbleElement.classList.add("html-message"),i.bubbleElement.innerHTML=t,i}},{key:"overwrite",value:function(e,t,n,i){var o=e.messages,s=z.overwriteMessage(o,i,t,n,"html","html-message");return s&&(s.bubbleElement.innerHTML=t,wt.apply(e,s.outerContainer),Ve.flagHTMLUpdateClass(s.bubbleElement)),s}},{key:"add",value:function(e,t,n,i,o){var s;if(o!=null&&o.status){var l=this.overwrite(e,t,n,i);if(l)return l;o.status=!1}var c=r.createElements(e,t,n);return z.fillEmptyMessageElement(c.bubbleElement,t),wt.apply(e,c.outerContainer),Ve.flagHTMLUpdateClass(c.bubbleElement),e.applyCustomStyles(c,n,!1,(s=e.messageStyles)==null?void 0:s.html),r.addElement(e,c.outerContainer),c}}]),r}(),Bt;function fi(r){return Bt=Bt||document.createElement("textarea"),Bt.innerHTML="&"+r+";",Bt.value}var Co=Object.prototype.hasOwnProperty;function Eo(r,a){return r?Co.call(r,a):!1}function vi(r){var a=[].slice.call(arguments,1);return a.forEach(function(e){if(e){if(I(e)!="object")throw new TypeError(e+"must be object");Object.keys(e).forEach(function(t){r[t]=e[t]})}}),r}var Ao=/\\([\\!"#$%&'()*+,.\/:;<=>?@[\]^_`{|}~-])/g;function St(r){return r.indexOf("\\")<0?r:r.replace(Ao,"$1")}function bi(r){return!(r>=55296&&r<=57343||r>=64976&&r<=65007||(r&65535)===65535||(r&65535)===65534||r>=0&&r<=8||r===11||r>=14&&r<=31||r>=127&&r<=159||r>1114111)}function tr(r){if(r>65535){r-=65536;var a=55296+(r>>10),e=56320+(r&1023);return String.fromCharCode(a,e)}return String.fromCharCode(r)}var Po=/&([a-z#][a-z0-9]{1,31});/gi,Lo=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))/i;function To(r,a){var e=0,t=fi(a);return a!==t?t:a.charCodeAt(0)===35&&Lo.test(a)&&(e=a[1].toLowerCase()==="x"?parseInt(a.slice(2),16):parseInt(a.slice(1),10),bi(e))?tr(e):r}function Ue(r){return r.indexOf("&")<0?r:r.replace(Po,To)}var Mo=/[&<>"]/,xo=/[&<>"]/g,Io={"&":"&","<":"<",">":">",'"':"""};function Ro(r){return Io[r]}function ue(r){return Mo.test(r)?r.replace(xo,Ro):r}var T={};T.blockquote_open=function(){return`<blockquote>
|
|
10
|
-
`};T.blockquote_close=function(r,a){return"</blockquote>"+We(r,a)};T.code=function(r,a){return r[a].block?"<pre><code>"+ue(r[a].content)+"</code></pre>"+We(r,a):"<code>"+ue(r[a].content)+"</code>"};T.fence=function(r,a,e,t,n){var i=r[a],o="",s=e.langPrefix,l="",c,u,d;if(i.params){if(c=i.params.split(/\s+/g),u=c.join(" "),Eo(n.rules.fence_custom,c[0]))return n.rules.fence_custom[c[0]](r,a,e,t,n);l=ue(Ue(St(u))),o=' class="'+s+l+'"'}return e.highlight?d=e.highlight.apply(e.highlight,[i.content].concat(c))||ue(i.content):d=ue(i.content),"<pre><code"+o+">"+d+"</code></pre>"+We(r,a)};T.fence_custom={};T.heading_open=function(r,a){return"<h"+r[a].hLevel+">"};T.heading_close=function(r,a){return"</h"+r[a].hLevel+`>
|
|
11
|
-
`};T.hr=function(r,a,e){return(e.xhtmlOut?"<hr />":"<hr>")+We(r,a)};T.bullet_list_open=function(){return`<ul>
|
|
12
|
-
`};T.bullet_list_close=function(r,a){return"</ul>"+We(r,a)};T.list_item_open=function(){return"<li>"};T.list_item_close=function(){return`</li>
|
|
13
|
-
`};T.ordered_list_open=function(r,a){var e=r[a],t=e.order>1?' start="'+e.order+'"':"";return"<ol"+t+`>
|
|
14
|
-
`};T.ordered_list_close=function(r,a){return"</ol>"+We(r,a)};T.paragraph_open=function(r,a){return r[a].tight?"":"<p>"};T.paragraph_close=function(r,a){var e=!(r[a].tight&&a&&r[a-1].type==="inline"&&!r[a-1].content);return(r[a].tight?"":"</p>")+(e?We(r,a):"")};T.link_open=function(r,a,e){var t=r[a].title?' title="'+ue(Ue(r[a].title))+'"':"",n=e.linkTarget?' target="'+e.linkTarget+'"':"";return'<a href="'+ue(r[a].href)+'"'+t+n+">"};T.link_close=function(){return"</a>"};T.image=function(r,a,e){var t=' src="'+ue(r[a].src)+'"',n=r[a].title?' title="'+ue(Ue(r[a].title))+'"':"",i=' alt="'+(r[a].alt?ue(Ue(St(r[a].alt))):"")+'"',o=e.xhtmlOut?" /":"";return"<img"+t+i+n+o+">"};T.table_open=function(){return`<table>
|
|
15
|
-
`};T.table_close=function(){return`</table>
|
|
16
|
-
`};T.thead_open=function(){return`<thead>
|
|
17
|
-
`};T.thead_close=function(){return`</thead>
|
|
18
|
-
`};T.tbody_open=function(){return`<tbody>
|
|
19
|
-
`};T.tbody_close=function(){return`</tbody>
|
|
20
|
-
`};T.tr_open=function(){return"<tr>"};T.tr_close=function(){return`</tr>
|
|
21
|
-
`};T.th_open=function(r,a){var e=r[a];return"<th"+(e.align?' style="text-align:'+e.align+'"':"")+">"};T.th_close=function(){return"</th>"};T.td_open=function(r,a){var e=r[a];return"<td"+(e.align?' style="text-align:'+e.align+'"':"")+">"};T.td_close=function(){return"</td>"};T.strong_open=function(){return"<strong>"};T.strong_close=function(){return"</strong>"};T.em_open=function(){return"<em>"};T.em_close=function(){return"</em>"};T.del_open=function(){return"<del>"};T.del_close=function(){return"</del>"};T.ins_open=function(){return"<ins>"};T.ins_close=function(){return"</ins>"};T.mark_open=function(){return"<mark>"};T.mark_close=function(){return"</mark>"};T.sub=function(r,a){return"<sub>"+ue(r[a].content)+"</sub>"};T.sup=function(r,a){return"<sup>"+ue(r[a].content)+"</sup>"};T.hardbreak=function(r,a,e){return e.xhtmlOut?`<br />
|
|
22
|
-
`:`<br>
|
|
23
|
-
`};T.softbreak=function(r,a,e){return e.breaks?e.xhtmlOut?`<br />
|
|
24
|
-
`:`<br>
|
|
25
|
-
`:`
|
|
26
|
-
`};T.text=function(r,a){return ue(r[a].content)};T.htmlblock=function(r,a){return r[a].content};T.htmltag=function(r,a){return r[a].content};T.abbr_open=function(r,a){return'<abbr title="'+ue(Ue(r[a].title))+'">'};T.abbr_close=function(){return"</abbr>"};T.footnote_ref=function(r,a){var e=Number(r[a].id+1).toString(),t="fnref"+e;return r[a].subId>0&&(t+=":"+r[a].subId),'<sup class="footnote-ref"><a href="#fn'+e+'" id="'+t+'">['+e+"]</a></sup>"};T.footnote_block_open=function(r,a,e){var t=e.xhtmlOut?`<hr class="footnotes-sep" />
|
|
27
|
-
`:`<hr class="footnotes-sep">
|
|
28
|
-
`;return t+`<section class="footnotes">
|
|
29
|
-
<ol class="footnotes-list">
|
|
30
|
-
`};T.footnote_block_close=function(){return`</ol>
|
|
31
|
-
</section>
|
|
32
|
-
`};T.footnote_open=function(r,a){var e=Number(r[a].id+1).toString();return'<li id="fn'+e+'" class="footnote-item">'};T.footnote_close=function(){return`</li>
|
|
33
|
-
`};T.footnote_anchor=function(r,a){var e=Number(r[a].id+1).toString(),t="fnref"+e;return r[a].subId>0&&(t+=":"+r[a].subId),' <a href="#'+t+'" class="footnote-backref">↩</a>'};T.dl_open=function(){return`<dl>
|
|
34
|
-
`};T.dt_open=function(){return"<dt>"};T.dd_open=function(){return"<dd>"};T.dl_close=function(){return`</dl>
|
|
35
|
-
`};T.dt_close=function(){return`</dt>
|
|
36
|
-
`};T.dd_close=function(){return`</dd>
|
|
37
|
-
`};function yi(r,a){return++a>=r.length-2?a:r[a].type==="paragraph_open"&&r[a].tight&&r[a+1].type==="inline"&&r[a+1].content.length===0&&r[a+2].type==="paragraph_close"&&r[a+2].tight?yi(r,a+2):a}var We=T.getBreak=function(r,a){return a=yi(r,a),a<r.length&&r[a].type==="list_item_close"?"":`
|
|
38
|
-
`};function pr(){this.rules=vi({},T),this.getBreak=T.getBreak}pr.prototype.renderInline=function(r,a,e){for(var t=this.rules,n=r.length,i=0,o="";n--;)o+=t[r[i].type](r,i++,a,e,this);return o};pr.prototype.render=function(r,a,e){for(var t=this.rules,n=r.length,i=-1,o="";++i<n;)r[i].type==="inline"?o+=this.renderInline(r[i].children,a,e):o+=t[r[i].type](r,i,a,e,this);return o};function ge(){this.__rules__=[],this.__cache__=null}ge.prototype.__find__=function(r){for(var a=this.__rules__.length,e=-1;a--;)if(this.__rules__[++e].name===r)return e;return-1};ge.prototype.__compile__=function(){var r=this,a=[""];r.__rules__.forEach(function(e){e.enabled&&e.alt.forEach(function(t){a.indexOf(t)<0&&a.push(t)})}),r.__cache__={},a.forEach(function(e){r.__cache__[e]=[],r.__rules__.forEach(function(t){t.enabled&&(e&&t.alt.indexOf(e)<0||r.__cache__[e].push(t.fn))})})};ge.prototype.at=function(r,a,e){var t=this.__find__(r),n=e||{};if(t===-1)throw new Error("Parser rule not found: "+r);this.__rules__[t].fn=a,this.__rules__[t].alt=n.alt||[],this.__cache__=null};ge.prototype.before=function(r,a,e,t){var n=this.__find__(r),i=t||{};if(n===-1)throw new Error("Parser rule not found: "+r);this.__rules__.splice(n,0,{name:a,enabled:!0,fn:e,alt:i.alt||[]}),this.__cache__=null};ge.prototype.after=function(r,a,e,t){var n=this.__find__(r),i=t||{};if(n===-1)throw new Error("Parser rule not found: "+r);this.__rules__.splice(n+1,0,{name:a,enabled:!0,fn:e,alt:i.alt||[]}),this.__cache__=null};ge.prototype.push=function(r,a,e){var t=e||{};this.__rules__.push({name:r,enabled:!0,fn:a,alt:t.alt||[]}),this.__cache__=null};ge.prototype.enable=function(r,a){r=Array.isArray(r)?r:[r],a&&this.__rules__.forEach(function(e){e.enabled=!1}),r.forEach(function(e){var t=this.__find__(e);if(t<0)throw new Error("Rules manager: invalid rule name "+e);this.__rules__[t].enabled=!0},this),this.__cache__=null};ge.prototype.disable=function(r){r=Array.isArray(r)?r:[r],r.forEach(function(a){var e=this.__find__(a);if(e<0)throw new Error("Rules manager: invalid rule name "+a);this.__rules__[e].enabled=!1},this),this.__cache__=null};ge.prototype.getRules=function(r){return this.__cache__===null&&this.__compile__(),this.__cache__[r]||[]};function $o(r){r.inlineMode?r.tokens.push({type:"inline",content:r.src.replace(/\n/g," ").trim(),level:0,lines:[0,1],children:[]}):r.block.parse(r.src,r.options,r.env,r.tokens)}function Ye(r,a,e,t,n){this.src=r,this.env=t,this.options=e,this.parser=a,this.tokens=n,this.pos=0,this.posMax=this.src.length,this.level=0,this.pending="",this.pendingLevel=0,this.cache=[],this.isInLabel=!1,this.linkLevel=0,this.linkContent="",this.labelUnmatchedScopes=0}Ye.prototype.pushPending=function(){this.tokens.push({type:"text",content:this.pending,level:this.pendingLevel}),this.pending=""};Ye.prototype.push=function(r){this.pending&&this.pushPending(),this.tokens.push(r),this.pendingLevel=this.level};Ye.prototype.cacheSet=function(r,a){for(var e=this.cache.length;e<=r;e++)this.cache.push(0);this.cache[r]=a};Ye.prototype.cacheGet=function(r){return r<this.cache.length?this.cache[r]:0};function Ct(r,a){var e,t,n,i=-1,o=r.posMax,s=r.pos,l=r.isInLabel;if(r.isInLabel)return-1;if(r.labelUnmatchedScopes)return r.labelUnmatchedScopes--,-1;for(r.pos=a+1,r.isInLabel=!0,e=1;r.pos<o;){if(n=r.src.charCodeAt(r.pos),n===91)e++;else if(n===93&&(e--,e===0)){t=!0;break}r.parser.skipToken(r)}return t?(i=r.pos,r.labelUnmatchedScopes=0):r.labelUnmatchedScopes=e-1,r.pos=s,r.isInLabel=l,i}function Oo(r,a,e,t){var n,i,o,s,l,c;if(r.charCodeAt(0)!==42||r.charCodeAt(1)!==91||r.indexOf("]:")===-1||(n=new Ye(r,a,e,t,[]),i=Ct(n,1),i<0||r.charCodeAt(i+1)!==58))return-1;for(s=n.posMax,o=i+2;o<s&&n.src.charCodeAt(o)!==10;o++);return l=r.slice(2,i),c=r.slice(i+2,o).trim(),c.length===0?-1:(t.abbreviations||(t.abbreviations={}),I(t.abbreviations[":"+l])>"u"&&(t.abbreviations[":"+l]=c),o)}function No(r){var a=r.tokens,e,t,n,i;if(!r.inlineMode){for(e=1,t=a.length-1;e<t;e++)if(a[e-1].type==="paragraph_open"&&a[e].type==="inline"&&a[e+1].type==="paragraph_close"){for(n=a[e].content;n.length&&(i=Oo(n,r.inline,r.options,r.env),!(i<0));)n=n.slice(i).trim();a[e].content=n,n.length||(a[e-1].tight=!0,a[e+1].tight=!0)}}}function nr(r){var a=Ue(r);try{a=decodeURI(a)}catch{}return encodeURI(a)}function _i(r,a){var e,t,n,i=a,o=r.posMax;if(r.src.charCodeAt(a)===60){for(a++;a<o;){if(e=r.src.charCodeAt(a),e===10)return!1;if(e===62)return n=nr(St(r.src.slice(i+1,a))),r.parser.validateLink(n)?(r.pos=a+1,r.linkContent=n,!0):!1;if(e===92&&a+1<o){a+=2;continue}a++}return!1}for(t=0;a<o&&(e=r.src.charCodeAt(a),!(e===32||e<32||e===127));){if(e===92&&a+1<o){a+=2;continue}if(e===40&&(t++,t>1)||e===41&&(t--,t<0))break;a++}return i===a||(n=St(r.src.slice(i,a)),!r.parser.validateLink(n))?!1:(r.linkContent=n,r.pos=a,!0)}function ki(r,a){var e,t=a,n=r.posMax,i=r.src.charCodeAt(a);if(i!==34&&i!==39&&i!==40)return!1;for(a++,i===40&&(i=41);a<n;){if(e=r.src.charCodeAt(a),e===i)return r.pos=a+1,r.linkContent=St(r.src.slice(t+1,a)),!0;if(e===92&&a+1<n){a+=2;continue}a++}return!1}function wi(r){return r.trim().replace(/\s+/g," ").toUpperCase()}function zo(r,a,e,t){var n,i,o,s,l,c,u,d,p;if(r.charCodeAt(0)!==91||r.indexOf("]:")===-1||(n=new Ye(r,a,e,t,[]),i=Ct(n,0),i<0||r.charCodeAt(i+1)!==58))return-1;for(s=n.posMax,o=i+2;o<s&&(l=n.src.charCodeAt(o),!(l!==32&&l!==10));o++);if(!_i(n,o))return-1;for(u=n.linkContent,o=n.pos,c=o,o=o+1;o<s&&(l=n.src.charCodeAt(o),!(l!==32&&l!==10));o++);for(o<s&&c!==o&&ki(n,o)?(d=n.linkContent,o=n.pos):(d="",o=c);o<s&&n.src.charCodeAt(o)===32;)o++;return o<s&&n.src.charCodeAt(o)!==10?-1:(p=wi(r.slice(1,i)),I(t.references[p])>"u"&&(t.references[p]={title:d,href:u}),o)}function Do(r){var a=r.tokens,e,t,n,i;if(r.env.references=r.env.references||{},!r.inlineMode){for(e=1,t=a.length-1;e<t;e++)if(a[e].type==="inline"&&a[e-1].type==="paragraph_open"&&a[e+1].type==="paragraph_close"){for(n=a[e].content;n.length&&(i=zo(n,r.inline,r.options,r.env),!(i<0));)n=n.slice(i).trim();a[e].content=n,n.length||(a[e-1].tight=!0,a[e+1].tight=!0)}}}function Bo(r){var a=r.tokens,e,t,n;for(t=0,n=a.length;t<n;t++)e=a[t],e.type==="inline"&&r.inline.parse(e.content,r.options,r.env,e.children)}function Fo(r){var a,e,t,n,i,o,s,l,c,u=0,d=!1,p={};if(r.env.footnotes&&(r.tokens=r.tokens.filter(function(m){return m.type==="footnote_reference_open"?(d=!0,l=[],c=m.label,!1):m.type==="footnote_reference_close"?(d=!1,p[":"+c]=l,!1):(d&&l.push(m),!d)}),!!r.env.footnotes.list)){for(o=r.env.footnotes.list,r.tokens.push({type:"footnote_block_open",level:u++}),a=0,e=o.length;a<e;a++){for(r.tokens.push({type:"footnote_open",id:a,level:u++}),o[a].tokens?(s=[],s.push({type:"paragraph_open",tight:!1,level:u++}),s.push({type:"inline",content:"",level:u,children:o[a].tokens}),s.push({type:"paragraph_close",tight:!1,level:--u})):o[a].label&&(s=p[":"+o[a].label]),r.tokens=r.tokens.concat(s),r.tokens[r.tokens.length-1].type==="paragraph_close"?i=r.tokens.pop():i=null,n=o[a].count>0?o[a].count:1,t=0;t<n;t++)r.tokens.push({type:"footnote_anchor",id:a,subId:t,level:u});i&&r.tokens.push(i),r.tokens.push({type:"footnote_close",level:--u})}r.tokens.push({type:"footnote_block_close",level:--u})}}var Fr=`
|
|
39
|
-
()[]'".,!?-`;function On(r){return r.replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1")}function jo(r){var a,e,t,n,i,o,s,l,c,u,d,p,m=r.tokens;if(r.env.abbreviations){for(r.env.abbrRegExp||(p="(^|["+Fr.split("").map(On).join("")+"])("+Object.keys(r.env.abbreviations).map(function(g){return g.substr(1)}).sort(function(g,b){return b.length-g.length}).map(On).join("|")+")($|["+Fr.split("").map(On).join("")+"])",r.env.abbrRegExp=new RegExp(p,"g")),u=r.env.abbrRegExp,e=0,t=m.length;e<t;e++)if(m[e].type==="inline"){for(n=m[e].children,a=n.length-1;a>=0;a--)if(i=n[a],i.type==="text"){for(l=0,o=i.content,u.lastIndex=0,c=i.level,s=[];d=u.exec(o);)u.lastIndex>l&&s.push({type:"text",content:o.slice(l,d.index+d[1].length),level:c}),s.push({type:"abbr_open",title:r.env.abbreviations[":"+d[2]],level:c++}),s.push({type:"text",content:d[2],level:c}),s.push({type:"abbr_close",level:--c}),l=u.lastIndex-d[3].length;s.length&&(l<o.length&&s.push({type:"text",content:o.slice(l),level:c}),m[e].children=n=[].concat(n.slice(0,a),s,n.slice(a+1)))}}}}var qo=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,Vo=/\((c|tm|r|p)\)/ig,Uo={c:"©",r:"®",p:"§",tm:"™"};function Ho(r){return r.indexOf("(")<0?r:r.replace(Vo,function(a,e){return Uo[e.toLowerCase()]})}function Go(r){var a,e,t,n,i;if(r.options.typographer){for(i=r.tokens.length-1;i>=0;i--)if(r.tokens[i].type==="inline")for(n=r.tokens[i].children,a=n.length-1;a>=0;a--)e=n[a],e.type==="text"&&(t=e.content,t=Ho(t),qo.test(t)&&(t=t.replace(/\+-/g,"±").replace(/\.{2,}/g,"…").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---([^-]|$)/mg,"$1—$2").replace(/(^|\s)--(\s|$)/mg,"$1–$2").replace(/(^|[^-\s])--([^-\s]|$)/mg,"$1–$2")),e.content=t)}}var Ko=/['"]/,jr=/['"]/g,Wo=/[-\s()\[\]]/,qr="’";function Vr(r,a){return a<0||a>=r.length?!1:!Wo.test(r[a])}function nt(r,a,e){return r.substr(0,a)+e+r.substr(a+1)}function Yo(r){var a,e,t,n,i,o,s,l,c,u,d,p,m,g,b,v,y;if(r.options.typographer){for(y=[],b=r.tokens.length-1;b>=0;b--)if(r.tokens[b].type==="inline"){for(v=r.tokens[b].children,y.length=0,a=0;a<v.length;a++)if(e=v[a],!(e.type!=="text"||Ko.test(e.text))){for(s=v[a].level,m=y.length-1;m>=0&&!(y[m].level<=s);m--);y.length=m+1,t=e.content,i=0,o=t.length;e:for(;i<o&&(jr.lastIndex=i,n=jr.exec(t),!!n);){if(l=!Vr(t,n.index-1),i=n.index+1,g=n[0]==="'",c=!Vr(t,i),!c&&!l){g&&(e.content=nt(e.content,n.index,qr));continue}if(d=!c,p=!l,p){for(m=y.length-1;m>=0&&(u=y[m],!(y[m].level<s));m--)if(u.single===g&&y[m].level===s){u=y[m],g?(v[u.token].content=nt(v[u.token].content,u.pos,r.options.quotes[2]),e.content=nt(e.content,n.index,r.options.quotes[3])):(v[u.token].content=nt(v[u.token].content,u.pos,r.options.quotes[0]),e.content=nt(e.content,n.index,r.options.quotes[1])),y.length=m;continue e}}d?y.push({token:a,pos:n.index,single:g,level:s}):p&&g&&(e.content=nt(e.content,n.index,qr))}}}}}var Nn=[["block",$o],["abbr",No],["references",Do],["inline",Bo],["footnote_tail",Fo],["abbr2",jo],["replacements",Go],["smartquotes",Yo]];function Si(){this.options={},this.ruler=new ge;for(var r=0;r<Nn.length;r++)this.ruler.push(Nn[r][0],Nn[r][1])}Si.prototype.process=function(r){var a,e,t;for(t=this.ruler.getRules(""),a=0,e=t.length;a<e;a++)t[a](r)};function Ze(r,a,e,t,n){var i,o,s,l,c,u,d;for(this.src=r,this.parser=a,this.options=e,this.env=t,this.tokens=n,this.bMarks=[],this.eMarks=[],this.tShift=[],this.blkIndent=0,this.line=0,this.lineMax=0,this.tight=!1,this.parentType="root",this.ddIndent=-1,this.level=0,this.result="",o=this.src,u=0,d=!1,s=l=u=0,c=o.length;l<c;l++){if(i=o.charCodeAt(l),!d)if(i===32){u++;continue}else d=!0;(i===10||l===c-1)&&(i!==10&&l++,this.bMarks.push(s),this.eMarks.push(l),this.tShift.push(u),d=!1,u=0,s=l+1)}this.bMarks.push(o.length),this.eMarks.push(o.length),this.tShift.push(0),this.lineMax=this.bMarks.length-1}Ze.prototype.isEmpty=function(r){return this.bMarks[r]+this.tShift[r]>=this.eMarks[r]};Ze.prototype.skipEmptyLines=function(r){for(var a=this.lineMax;r<a&&!(this.bMarks[r]+this.tShift[r]<this.eMarks[r]);r++);return r};Ze.prototype.skipSpaces=function(r){for(var a=this.src.length;r<a&&this.src.charCodeAt(r)===32;r++);return r};Ze.prototype.skipChars=function(r,a){for(var e=this.src.length;r<e&&this.src.charCodeAt(r)===a;r++);return r};Ze.prototype.skipCharsBack=function(r,a,e){if(r<=e)return r;for(;r>e;)if(a!==this.src.charCodeAt(--r))return r+1;return r};Ze.prototype.getLines=function(r,a,e,t){var n,i,o,s,l,c=r;if(r>=a)return"";if(c+1===a)return i=this.bMarks[c]+Math.min(this.tShift[c],e),o=t?this.eMarks[c]+1:this.eMarks[c],this.src.slice(i,o);for(s=new Array(a-r),n=0;c<a;c++,n++)l=this.tShift[c],l>e&&(l=e),l<0&&(l=0),i=this.bMarks[c]+l,c+1<a||t?o=this.eMarks[c]+1:o=this.eMarks[c],s[n]=this.src.slice(i,o);return s.join("")};function Zo(r,a,e){var t,n;if(r.tShift[a]-r.blkIndent<4)return!1;for(n=t=a+1;t<e;){if(r.isEmpty(t)){t++;continue}if(r.tShift[t]-r.blkIndent>=4){t++,n=t;continue}break}return r.line=t,r.tokens.push({type:"code",content:r.getLines(a,n,4+r.blkIndent,!0),block:!0,lines:[a,r.line],level:r.level}),!0}function Jo(r,a,e,t){var n,i,o,s,l,c=!1,u=r.bMarks[a]+r.tShift[a],d=r.eMarks[a];if(u+3>d||(n=r.src.charCodeAt(u),n!==126&&n!==96)||(l=u,u=r.skipChars(u,n),i=u-l,i<3)||(o=r.src.slice(u,d).trim(),o.indexOf("`")>=0))return!1;if(t)return!0;for(s=a;s++,!(s>=e||(u=l=r.bMarks[s]+r.tShift[s],d=r.eMarks[s],u<d&&r.tShift[s]<r.blkIndent));)if(r.src.charCodeAt(u)===n&&!(r.tShift[s]-r.blkIndent>=4)&&(u=r.skipChars(u,n),!(u-l<i)&&(u=r.skipSpaces(u),!(u<d)))){c=!0;break}return i=r.tShift[a],r.line=s+(c?1:0),r.tokens.push({type:"fence",params:o,content:r.getLines(a+1,s,i,!0),lines:[a,r.line],level:r.level}),!0}function Xo(r,a,e,t){var n,i,o,s,l,c,u,d,p,m,g,b=r.bMarks[a]+r.tShift[a],v=r.eMarks[a];if(b>v||r.src.charCodeAt(b++)!==62||r.level>=r.options.maxNesting)return!1;if(t)return!0;for(r.src.charCodeAt(b)===32&&b++,l=r.blkIndent,r.blkIndent=0,s=[r.bMarks[a]],r.bMarks[a]=b,b=b<v?r.skipSpaces(b):b,i=b>=v,o=[r.tShift[a]],r.tShift[a]=b-r.bMarks[a],d=r.parser.ruler.getRules("blockquote"),n=a+1;n<e&&(b=r.bMarks[n]+r.tShift[n],v=r.eMarks[n],!(b>=v));n++){if(r.src.charCodeAt(b++)===62){r.src.charCodeAt(b)===32&&b++,s.push(r.bMarks[n]),r.bMarks[n]=b,b=b<v?r.skipSpaces(b):b,i=b>=v,o.push(r.tShift[n]),r.tShift[n]=b-r.bMarks[n];continue}if(i)break;for(g=!1,p=0,m=d.length;p<m;p++)if(d[p](r,n,e,!0)){g=!0;break}if(g)break;s.push(r.bMarks[n]),o.push(r.tShift[n]),r.tShift[n]=-1337}for(c=r.parentType,r.parentType="blockquote",r.tokens.push({type:"blockquote_open",lines:u=[a,0],level:r.level++}),r.parser.tokenize(r,a,n),r.tokens.push({type:"blockquote_close",level:--r.level}),r.parentType=c,u[1]=r.line,p=0;p<o.length;p++)r.bMarks[p+a]=s[p],r.tShift[p+a]=o[p];return r.blkIndent=l,!0}function Qo(r,a,e,t){var n,i,o,s=r.bMarks[a],l=r.eMarks[a];if(s+=r.tShift[a],s>l||(n=r.src.charCodeAt(s++),n!==42&&n!==45&&n!==95))return!1;for(i=1;s<l;){if(o=r.src.charCodeAt(s++),o!==n&&o!==32)return!1;o===n&&i++}return i<3?!1:(t||(r.line=a+1,r.tokens.push({type:"hr",lines:[a,r.line],level:r.level})),!0)}function Ur(r,a){var e,t,n;return t=r.bMarks[a]+r.tShift[a],n=r.eMarks[a],t>=n||(e=r.src.charCodeAt(t++),e!==42&&e!==45&&e!==43)||t<n&&r.src.charCodeAt(t)!==32?-1:t}function Hr(r,a){var e,t=r.bMarks[a]+r.tShift[a],n=r.eMarks[a];if(t+1>=n||(e=r.src.charCodeAt(t++),e<48||e>57))return-1;for(;;){if(t>=n)return-1;if(e=r.src.charCodeAt(t++),!(e>=48&&e<=57)){if(e===41||e===46)break;return-1}}return t<n&&r.src.charCodeAt(t)!==32?-1:t}function es(r,a){var e,t,n=r.level+2;for(e=a+2,t=r.tokens.length-2;e<t;e++)r.tokens[e].level===n&&r.tokens[e].type==="paragraph_open"&&(r.tokens[e+2].tight=!0,r.tokens[e].tight=!0,e+=2)}function ts(r,a,e,t){var n,i,o,s,l,c,u,d,p,m,g,b,v,y,f,w,L,E,O=!0,U,q,W,Q;if((d=Hr(r,a))>=0)v=!0;else if((d=Ur(r,a))>=0)v=!1;else return!1;if(r.level>=r.options.maxNesting)return!1;if(b=r.src.charCodeAt(d-1),t)return!0;for(f=r.tokens.length,v?(u=r.bMarks[a]+r.tShift[a],g=Number(r.src.substr(u,d-u-1)),r.tokens.push({type:"ordered_list_open",order:g,lines:L=[a,0],level:r.level++})):r.tokens.push({type:"bullet_list_open",lines:L=[a,0],level:r.level++}),n=a,w=!1,U=r.parser.ruler.getRules("list");n<e&&(y=r.skipSpaces(d),p=r.eMarks[n],y>=p?m=1:m=y-d,m>4&&(m=1),m<1&&(m=1),i=d-r.bMarks[n]+m,r.tokens.push({type:"list_item_open",lines:E=[a,0],level:r.level++}),s=r.blkIndent,l=r.tight,o=r.tShift[a],c=r.parentType,r.tShift[a]=y-r.bMarks[a],r.blkIndent=i,r.tight=!0,r.parentType="list",r.parser.tokenize(r,a,e,!0),(!r.tight||w)&&(O=!1),w=r.line-a>1&&r.isEmpty(r.line-1),r.blkIndent=s,r.tShift[a]=o,r.tight=l,r.parentType=c,r.tokens.push({type:"list_item_close",level:--r.level}),n=a=r.line,E[1]=n,y=r.bMarks[a],!(n>=e||r.isEmpty(n)||r.tShift[n]<r.blkIndent));){for(Q=!1,q=0,W=U.length;q<W;q++)if(U[q](r,n,e,!0)){Q=!0;break}if(Q)break;if(v){if(d=Hr(r,n),d<0)break}else if(d=Ur(r,n),d<0)break;if(b!==r.src.charCodeAt(d-1))break}return r.tokens.push({type:v?"ordered_list_close":"bullet_list_close",level:--r.level}),L[1]=n,r.line=n,O&&es(r,f),!0}function ns(r,a,e,t){var n,i,o,s,l,c=r.bMarks[a]+r.tShift[a],u=r.eMarks[a];if(c+4>u||r.src.charCodeAt(c)!==91||r.src.charCodeAt(c+1)!==94||r.level>=r.options.maxNesting)return!1;for(s=c+2;s<u;s++){if(r.src.charCodeAt(s)===32)return!1;if(r.src.charCodeAt(s)===93)break}return s===c+2||s+1>=u||r.src.charCodeAt(++s)!==58?!1:(t||(s++,r.env.footnotes||(r.env.footnotes={}),r.env.footnotes.refs||(r.env.footnotes.refs={}),l=r.src.slice(c+2,s-2),r.env.footnotes.refs[":"+l]=-1,r.tokens.push({type:"footnote_reference_open",label:l,level:r.level++}),n=r.bMarks[a],i=r.tShift[a],o=r.parentType,r.tShift[a]=r.skipSpaces(s)-s,r.bMarks[a]=s,r.blkIndent+=4,r.parentType="footnote",r.tShift[a]<r.blkIndent&&(r.tShift[a]+=r.blkIndent,r.bMarks[a]-=r.blkIndent),r.parser.tokenize(r,a,e,!0),r.parentType=o,r.blkIndent-=4,r.tShift[a]=i,r.bMarks[a]=n,r.tokens.push({type:"footnote_reference_close",level:--r.level})),!0)}function rs(r,a,e,t){var n,i,o,s=r.bMarks[a]+r.tShift[a],l=r.eMarks[a];if(s>=l||(n=r.src.charCodeAt(s),n!==35||s>=l))return!1;for(i=1,n=r.src.charCodeAt(++s);n===35&&s<l&&i<=6;)i++,n=r.src.charCodeAt(++s);return i>6||s<l&&n!==32?!1:(t||(l=r.skipCharsBack(l,32,s),o=r.skipCharsBack(l,35,s),o>s&&r.src.charCodeAt(o-1)===32&&(l=o),r.line=a+1,r.tokens.push({type:"heading_open",hLevel:i,lines:[a,r.line],level:r.level}),s<l&&r.tokens.push({type:"inline",content:r.src.slice(s,l).trim(),level:r.level+1,lines:[a,r.line],children:[]}),r.tokens.push({type:"heading_close",hLevel:i,level:r.level})),!0)}function as(r,a,e){var t,n,i,o=a+1;return o>=e||r.tShift[o]<r.blkIndent||r.tShift[o]-r.blkIndent>3||(n=r.bMarks[o]+r.tShift[o],i=r.eMarks[o],n>=i)||(t=r.src.charCodeAt(n),t!==45&&t!==61)||(n=r.skipChars(n,t),n=r.skipSpaces(n),n<i)?!1:(n=r.bMarks[a]+r.tShift[a],r.line=o+1,r.tokens.push({type:"heading_open",hLevel:t===61?1:2,lines:[a,r.line],level:r.level}),r.tokens.push({type:"inline",content:r.src.slice(n,r.eMarks[a]).trim(),level:r.level+1,lines:[a,r.line-1],children:[]}),r.tokens.push({type:"heading_close",hLevel:t===61?1:2,level:r.level}),!0)}var Ci={};["article","aside","button","blockquote","body","canvas","caption","col","colgroup","dd","div","dl","dt","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","iframe","li","map","object","ol","output","p","pre","progress","script","section","style","table","tbody","td","textarea","tfoot","th","tr","thead","ul","video"].forEach(function(r){Ci[r]=!0});var is=/^<([a-zA-Z]{1,15})[\s\/>]/,os=/^<\/([a-zA-Z]{1,15})[\s>]/;function ss(r){var a=r|32;return a>=97&&a<=122}function ls(r,a,e,t){var n,i,o,s=r.bMarks[a],l=r.eMarks[a],c=r.tShift[a];if(s+=c,!r.options.html||c>3||s+2>=l||r.src.charCodeAt(s)!==60)return!1;if(n=r.src.charCodeAt(s+1),n===33||n===63){if(t)return!0}else if(n===47||ss(n)){if(n===47){if(i=r.src.slice(s,l).match(os),!i)return!1}else if(i=r.src.slice(s,l).match(is),!i)return!1;if(Ci[i[1].toLowerCase()]!==!0)return!1;if(t)return!0}else return!1;for(o=a+1;o<r.lineMax&&!r.isEmpty(o);)o++;return r.line=o,r.tokens.push({type:"htmlblock",level:r.level,lines:[a,r.line],content:r.getLines(a,o,0,!0)}),!0}function zn(r,a){var e=r.bMarks[a]+r.blkIndent,t=r.eMarks[a];return r.src.substr(e,t-e)}function cs(r,a,e,t){var n,i,o,s,l,c,u,d,p,m,g;if(a+2>e||(l=a+1,r.tShift[l]<r.blkIndent)||(o=r.bMarks[l]+r.tShift[l],o>=r.eMarks[l])||(n=r.src.charCodeAt(o),n!==124&&n!==45&&n!==58)||(i=zn(r,a+1),!/^[-:| ]+$/.test(i))||(c=i.split("|"),c<=2))return!1;for(d=[],s=0;s<c.length;s++){if(p=c[s].trim(),!p){if(s===0||s===c.length-1)continue;return!1}if(!/^:?-+:?$/.test(p))return!1;p.charCodeAt(p.length-1)===58?d.push(p.charCodeAt(0)===58?"center":"right"):p.charCodeAt(0)===58?d.push("left"):d.push("")}if(i=zn(r,a).trim(),i.indexOf("|")===-1||(c=i.replace(/^\||\|$/g,"").split("|"),d.length!==c.length))return!1;if(t)return!0;for(r.tokens.push({type:"table_open",lines:m=[a,0],level:r.level++}),r.tokens.push({type:"thead_open",lines:[a,a+1],level:r.level++}),r.tokens.push({type:"tr_open",lines:[a,a+1],level:r.level++}),s=0;s<c.length;s++)r.tokens.push({type:"th_open",align:d[s],lines:[a,a+1],level:r.level++}),r.tokens.push({type:"inline",content:c[s].trim(),lines:[a,a+1],level:r.level,children:[]}),r.tokens.push({type:"th_close",level:--r.level});for(r.tokens.push({type:"tr_close",level:--r.level}),r.tokens.push({type:"thead_close",level:--r.level}),r.tokens.push({type:"tbody_open",lines:g=[a+2,0],level:r.level++}),l=a+2;l<e&&!(r.tShift[l]<r.blkIndent||(i=zn(r,l).trim(),i.indexOf("|")===-1));l++){for(c=i.replace(/^\||\|$/g,"").split("|"),r.tokens.push({type:"tr_open",level:r.level++}),s=0;s<c.length;s++)r.tokens.push({type:"td_open",align:d[s],level:r.level++}),u=c[s].substring(c[s].charCodeAt(0)===124?1:0,c[s].charCodeAt(c[s].length-1)===124?c[s].length-1:c[s].length).trim(),r.tokens.push({type:"inline",content:u,level:r.level,children:[]}),r.tokens.push({type:"td_close",level:--r.level});r.tokens.push({type:"tr_close",level:--r.level})}return r.tokens.push({type:"tbody_close",level:--r.level}),r.tokens.push({type:"table_close",level:--r.level}),m[1]=g[1]=l,r.line=l,!0}function Ft(r,a){var e,t,n=r.bMarks[a]+r.tShift[a],i=r.eMarks[a];return n>=i||(t=r.src.charCodeAt(n++),t!==126&&t!==58)||(e=r.skipSpaces(n),n===e)||e>=i?-1:e}function us(r,a){var e,t,n=r.level+2;for(e=a+2,t=r.tokens.length-2;e<t;e++)r.tokens[e].level===n&&r.tokens[e].type==="paragraph_open"&&(r.tokens[e+2].tight=!0,r.tokens[e].tight=!0,e+=2)}function ds(r,a,e,t){var n,i,o,s,l,c,u,d,p,m,g,b,v,y;if(t)return r.ddIndent<0?!1:Ft(r,a)>=0;if(u=a+1,r.isEmpty(u)&&++u>e||r.tShift[u]<r.blkIndent||(n=Ft(r,u),n<0)||r.level>=r.options.maxNesting)return!1;c=r.tokens.length,r.tokens.push({type:"dl_open",lines:l=[a,0],level:r.level++}),o=a,i=u;e:for(;;){for(y=!0,v=!1,r.tokens.push({type:"dt_open",lines:[o,o],level:r.level++}),r.tokens.push({type:"inline",content:r.getLines(o,o+1,r.blkIndent,!1).trim(),level:r.level+1,lines:[o,o],children:[]}),r.tokens.push({type:"dt_close",level:--r.level});;){if(r.tokens.push({type:"dd_open",lines:s=[u,0],level:r.level++}),b=r.tight,p=r.ddIndent,d=r.blkIndent,g=r.tShift[i],m=r.parentType,r.blkIndent=r.ddIndent=r.tShift[i]+2,r.tShift[i]=n-r.bMarks[i],r.tight=!0,r.parentType="deflist",r.parser.tokenize(r,i,e,!0),(!r.tight||v)&&(y=!1),v=r.line-i>1&&r.isEmpty(r.line-1),r.tShift[i]=g,r.tight=b,r.parentType=m,r.blkIndent=d,r.ddIndent=p,r.tokens.push({type:"dd_close",level:--r.level}),s[1]=u=r.line,u>=e||r.tShift[u]<r.blkIndent)break e;if(n=Ft(r,u),n<0)break;i=u}if(u>=e||(o=u,r.isEmpty(o))||r.tShift[o]<r.blkIndent||(i=o+1,i>=e)||(r.isEmpty(i)&&i++,i>=e)||r.tShift[i]<r.blkIndent||(n=Ft(r,i),n<0))break}return r.tokens.push({type:"dl_close",level:--r.level}),l[1]=u,r.line=u,y&&us(r,c),!0}function ps(r,a){var e,t,n,i,o,s=a+1,l;if(e=r.lineMax,s<e&&!r.isEmpty(s)){for(l=r.parser.ruler.getRules("paragraph");s<e&&!r.isEmpty(s);s++)if(!(r.tShift[s]-r.blkIndent>3)){for(n=!1,i=0,o=l.length;i<o;i++)if(l[i](r,s,e,!0)){n=!0;break}if(n)break}}return t=r.getLines(a,s,r.blkIndent,!1).trim(),r.line=s,t.length&&(r.tokens.push({type:"paragraph_open",tight:!1,lines:[a,r.line],level:r.level}),r.tokens.push({type:"inline",content:t,level:r.level+1,lines:[a,r.line],children:[]}),r.tokens.push({type:"paragraph_close",tight:!1,level:r.level})),!0}var jt=[["code",Zo],["fences",Jo,["paragraph","blockquote","list"]],["blockquote",Xo,["paragraph","blockquote","list"]],["hr",Qo,["paragraph","blockquote","list"]],["list",ts,["paragraph","blockquote"]],["footnote",ns,["paragraph"]],["heading",rs,["paragraph","blockquote"]],["lheading",as],["htmlblock",ls,["paragraph","blockquote"]],["table",cs,["paragraph"]],["deflist",ds,["paragraph"]],["paragraph",ps]];function mr(){this.ruler=new ge;for(var r=0;r<jt.length;r++)this.ruler.push(jt[r][0],jt[r][1],{alt:(jt[r][2]||[]).slice()})}mr.prototype.tokenize=function(r,a,e){for(var t=this.ruler.getRules(""),n=t.length,i=a,o=!1,s,l;i<e&&(r.line=i=r.skipEmptyLines(i),!(i>=e||r.tShift[i]<r.blkIndent));){for(l=0;l<n&&(s=t[l](r,i,e,!1),!s);l++);if(r.tight=!o,r.isEmpty(r.line-1)&&(o=!0),i=r.line,i<e&&r.isEmpty(i)){if(o=!0,i++,i<e&&r.parentType==="list"&&r.isEmpty(i))break;r.line=i}}};var ms=/[\n\t]/g,hs=/\r[\n\u0085]|[\u2424\u2028\u0085]/g,gs=/\u00a0/g;mr.prototype.parse=function(r,a,e,t){var n,i=0,o=0;if(!r)return[];r=r.replace(gs," "),r=r.replace(hs,`
|
|
40
|
-
`),r.indexOf(" ")>=0&&(r=r.replace(ms,function(s,l){var c;return r.charCodeAt(l)===10?(i=l+1,o=0,s):(c=" ".slice((l-i-o)%4),o=l-i+1,c)})),n=new Ze(r,this,a,e,t),this.tokenize(n,n.line,n.lineMax)};function fs(r){switch(r){case 10:case 92:case 96:case 42:case 95:case 94:case 91:case 93:case 33:case 38:case 60:case 62:case 123:case 125:case 36:case 37:case 64:case 126:case 43:case 61:case 58:return!0;default:return!1}}function vs(r,a){for(var e=r.pos;e<r.posMax&&!fs(r.src.charCodeAt(e));)e++;return e===r.pos?!1:(a||(r.pending+=r.src.slice(r.pos,e)),r.pos=e,!0)}function bs(r,a){var e,t,n=r.pos;if(r.src.charCodeAt(n)!==10)return!1;if(e=r.pending.length-1,t=r.posMax,!a)if(e>=0&&r.pending.charCodeAt(e)===32)if(e>=1&&r.pending.charCodeAt(e-1)===32){for(var i=e-2;i>=0;i--)if(r.pending.charCodeAt(i)!==32){r.pending=r.pending.substring(0,i+1);break}r.push({type:"hardbreak",level:r.level})}else r.pending=r.pending.slice(0,-1),r.push({type:"softbreak",level:r.level});else r.push({type:"softbreak",level:r.level});for(n++;n<t&&r.src.charCodeAt(n)===32;)n++;return r.pos=n,!0}var hr=[];for(var Gr=0;Gr<256;Gr++)hr.push(0);"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(r){hr[r.charCodeAt(0)]=1});function ys(r,a){var e,t=r.pos,n=r.posMax;if(r.src.charCodeAt(t)!==92)return!1;if(t++,t<n){if(e=r.src.charCodeAt(t),e<256&&hr[e]!==0)return a||(r.pending+=r.src[t]),r.pos+=2,!0;if(e===10){for(a||r.push({type:"hardbreak",level:r.level}),t++;t<n&&r.src.charCodeAt(t)===32;)t++;return r.pos=t,!0}}return a||(r.pending+="\\"),r.pos++,!0}function _s(r,a){var e,t,n,i,o,s=r.pos,l=r.src.charCodeAt(s);if(l!==96)return!1;for(e=s,s++,t=r.posMax;s<t&&r.src.charCodeAt(s)===96;)s++;for(n=r.src.slice(e,s),i=o=s;(i=r.src.indexOf("`",o))!==-1;){for(o=i+1;o<t&&r.src.charCodeAt(o)===96;)o++;if(o-i===n.length)return a||r.push({type:"code",content:r.src.slice(s,i).replace(/[ \n]+/g," ").trim(),block:!1,level:r.level}),r.pos=o,!0}return a||(r.pending+=n),r.pos+=n.length,!0}function ks(r,a){var e,t,n,i=r.posMax,o=r.pos,s,l;if(r.src.charCodeAt(o)!==126||a||o+4>=i||r.src.charCodeAt(o+1)!==126||r.level>=r.options.maxNesting||(s=o>0?r.src.charCodeAt(o-1):-1,l=r.src.charCodeAt(o+2),s===126)||l===126||l===32||l===10)return!1;for(t=o+2;t<i&&r.src.charCodeAt(t)===126;)t++;if(t>o+3)return r.pos+=t-o,a||(r.pending+=r.src.slice(o,t)),!0;for(r.pos=o+2,n=1;r.pos+1<i;){if(r.src.charCodeAt(r.pos)===126&&r.src.charCodeAt(r.pos+1)===126&&(s=r.src.charCodeAt(r.pos-1),l=r.pos+2<i?r.src.charCodeAt(r.pos+2):-1,l!==126&&s!==126&&(s!==32&&s!==10?n--:l!==32&&l!==10&&n++,n<=0))){e=!0;break}r.parser.skipToken(r)}return e?(r.posMax=r.pos,r.pos=o+2,a||(r.push({type:"del_open",level:r.level++}),r.parser.tokenize(r),r.push({type:"del_close",level:--r.level})),r.pos=r.posMax+2,r.posMax=i,!0):(r.pos=o,!1)}function ws(r,a){var e,t,n,i=r.posMax,o=r.pos,s,l;if(r.src.charCodeAt(o)!==43||a||o+4>=i||r.src.charCodeAt(o+1)!==43||r.level>=r.options.maxNesting||(s=o>0?r.src.charCodeAt(o-1):-1,l=r.src.charCodeAt(o+2),s===43)||l===43||l===32||l===10)return!1;for(t=o+2;t<i&&r.src.charCodeAt(t)===43;)t++;if(t!==o+2)return r.pos+=t-o,a||(r.pending+=r.src.slice(o,t)),!0;for(r.pos=o+2,n=1;r.pos+1<i;){if(r.src.charCodeAt(r.pos)===43&&r.src.charCodeAt(r.pos+1)===43&&(s=r.src.charCodeAt(r.pos-1),l=r.pos+2<i?r.src.charCodeAt(r.pos+2):-1,l!==43&&s!==43&&(s!==32&&s!==10?n--:l!==32&&l!==10&&n++,n<=0))){e=!0;break}r.parser.skipToken(r)}return e?(r.posMax=r.pos,r.pos=o+2,a||(r.push({type:"ins_open",level:r.level++}),r.parser.tokenize(r),r.push({type:"ins_close",level:--r.level})),r.pos=r.posMax+2,r.posMax=i,!0):(r.pos=o,!1)}function Ss(r,a){var e,t,n,i=r.posMax,o=r.pos,s,l;if(r.src.charCodeAt(o)!==61||a||o+4>=i||r.src.charCodeAt(o+1)!==61||r.level>=r.options.maxNesting||(s=o>0?r.src.charCodeAt(o-1):-1,l=r.src.charCodeAt(o+2),s===61)||l===61||l===32||l===10)return!1;for(t=o+2;t<i&&r.src.charCodeAt(t)===61;)t++;if(t!==o+2)return r.pos+=t-o,a||(r.pending+=r.src.slice(o,t)),!0;for(r.pos=o+2,n=1;r.pos+1<i;){if(r.src.charCodeAt(r.pos)===61&&r.src.charCodeAt(r.pos+1)===61&&(s=r.src.charCodeAt(r.pos-1),l=r.pos+2<i?r.src.charCodeAt(r.pos+2):-1,l!==61&&s!==61&&(s!==32&&s!==10?n--:l!==32&&l!==10&&n++,n<=0))){e=!0;break}r.parser.skipToken(r)}return e?(r.posMax=r.pos,r.pos=o+2,a||(r.push({type:"mark_open",level:r.level++}),r.parser.tokenize(r),r.push({type:"mark_close",level:--r.level})),r.pos=r.posMax+2,r.posMax=i,!0):(r.pos=o,!1)}function Kr(r){return r>=48&&r<=57||r>=65&&r<=90||r>=97&&r<=122}function Wr(r,a){var e=a,t,n,i,o=!0,s=!0,l=r.posMax,c=r.src.charCodeAt(a);for(t=a>0?r.src.charCodeAt(a-1):-1;e<l&&r.src.charCodeAt(e)===c;)e++;return e>=l&&(o=!1),i=e-a,i>=4?o=s=!1:(n=e<l?r.src.charCodeAt(e):-1,(n===32||n===10)&&(o=!1),(t===32||t===10)&&(s=!1),c===95&&(Kr(t)&&(o=!1),Kr(n)&&(s=!1))),{can_open:o,can_close:s,delims:i}}function Cs(r,a){var e,t,n,i,o,s,l,c=r.posMax,u=r.pos,d=r.src.charCodeAt(u);if(d!==95&&d!==42||a)return!1;if(l=Wr(r,u),e=l.delims,!l.can_open)return r.pos+=e,a||(r.pending+=r.src.slice(u,r.pos)),!0;if(r.level>=r.options.maxNesting)return!1;for(r.pos=u+e,s=[e];r.pos<c;){if(r.src.charCodeAt(r.pos)===d){if(l=Wr(r,r.pos),t=l.delims,l.can_close){for(i=s.pop(),o=t;i!==o;){if(o<i){s.push(i-o);break}if(o-=i,s.length===0)break;r.pos+=i,i=s.pop()}if(s.length===0){e=i,n=!0;break}r.pos+=t;continue}l.can_open&&s.push(t),r.pos+=t;continue}r.parser.skipToken(r)}return n?(r.posMax=r.pos,r.pos=u+e,a||((e===2||e===3)&&r.push({type:"strong_open",level:r.level++}),(e===1||e===3)&&r.push({type:"em_open",level:r.level++}),r.parser.tokenize(r),(e===1||e===3)&&r.push({type:"em_close",level:--r.level}),(e===2||e===3)&&r.push({type:"strong_close",level:--r.level})),r.pos=r.posMax+e,r.posMax=c,!0):(r.pos=u,!1)}var Es=/\\([ \\!"#$%&'()*+,.\/:;<=>?@[\]^_`{|}~-])/g;function As(r,a){var e,t,n=r.posMax,i=r.pos;if(r.src.charCodeAt(i)!==126||a||i+2>=n||r.level>=r.options.maxNesting)return!1;for(r.pos=i+1;r.pos<n;){if(r.src.charCodeAt(r.pos)===126){e=!0;break}r.parser.skipToken(r)}return!e||i+1===r.pos||(t=r.src.slice(i+1,r.pos),t.match(/(^|[^\\])(\\\\)*\s/))?(r.pos=i,!1):(r.posMax=r.pos,r.pos=i+1,a||r.push({type:"sub",level:r.level,content:t.replace(Es,"$1")}),r.pos=r.posMax+1,r.posMax=n,!0)}var Ps=/\\([ \\!"#$%&'()*+,.\/:;<=>?@[\]^_`{|}~-])/g;function Ls(r,a){var e,t,n=r.posMax,i=r.pos;if(r.src.charCodeAt(i)!==94||a||i+2>=n||r.level>=r.options.maxNesting)return!1;for(r.pos=i+1;r.pos<n;){if(r.src.charCodeAt(r.pos)===94){e=!0;break}r.parser.skipToken(r)}return!e||i+1===r.pos||(t=r.src.slice(i+1,r.pos),t.match(/(^|[^\\])(\\\\)*\s/))?(r.pos=i,!1):(r.posMax=r.pos,r.pos=i+1,a||r.push({type:"sup",level:r.level,content:t.replace(Ps,"$1")}),r.pos=r.posMax+1,r.posMax=n,!0)}function Ts(r,a){var e,t,n,i,o,s,l,c,u=!1,d=r.pos,p=r.posMax,m=r.pos,g=r.src.charCodeAt(m);if(g===33&&(u=!0,g=r.src.charCodeAt(++m)),g!==91||r.level>=r.options.maxNesting||(e=m+1,t=Ct(r,m),t<0))return!1;if(s=t+1,s<p&&r.src.charCodeAt(s)===40){for(s++;s<p&&(c=r.src.charCodeAt(s),!(c!==32&&c!==10));s++);if(s>=p)return!1;for(m=s,_i(r,s)?(i=r.linkContent,s=r.pos):i="",m=s;s<p&&(c=r.src.charCodeAt(s),!(c!==32&&c!==10));s++);if(s<p&&m!==s&&ki(r,s))for(o=r.linkContent,s=r.pos;s<p&&(c=r.src.charCodeAt(s),!(c!==32&&c!==10));s++);else o="";if(s>=p||r.src.charCodeAt(s)!==41)return r.pos=d,!1;s++}else{if(r.linkLevel>0)return!1;for(;s<p&&(c=r.src.charCodeAt(s),!(c!==32&&c!==10));s++);if(s<p&&r.src.charCodeAt(s)===91&&(m=s+1,s=Ct(r,s),s>=0?n=r.src.slice(m,s++):s=m-1),n||(I(n)>"u"&&(s=t+1),n=r.src.slice(e,t)),l=r.env.references[wi(n)],!l)return r.pos=d,!1;i=l.href,o=l.title}return a||(r.pos=e,r.posMax=t,u?r.push({type:"image",src:i,title:o,alt:r.src.substr(e,t-e),level:r.level}):(r.push({type:"link_open",href:i,title:o,level:r.level++}),r.linkLevel++,r.parser.tokenize(r),r.linkLevel--,r.push({type:"link_close",level:--r.level}))),r.pos=s,r.posMax=p,!0}function Ms(r,a){var e,t,n,i,o=r.posMax,s=r.pos;return s+2>=o||r.src.charCodeAt(s)!==94||r.src.charCodeAt(s+1)!==91||r.level>=r.options.maxNesting||(e=s+2,t=Ct(r,s+1),t<0)?!1:(a||(r.env.footnotes||(r.env.footnotes={}),r.env.footnotes.list||(r.env.footnotes.list=[]),n=r.env.footnotes.list.length,r.pos=e,r.posMax=t,r.push({type:"footnote_ref",id:n,level:r.level}),r.linkLevel++,i=r.tokens.length,r.parser.tokenize(r),r.env.footnotes.list[n]={tokens:r.tokens.splice(i)},r.linkLevel--),r.pos=t+1,r.posMax=o,!0)}function xs(r,a){var e,t,n,i,o=r.posMax,s=r.pos;if(s+3>o||!r.env.footnotes||!r.env.footnotes.refs||r.src.charCodeAt(s)!==91||r.src.charCodeAt(s+1)!==94||r.level>=r.options.maxNesting)return!1;for(t=s+2;t<o;t++){if(r.src.charCodeAt(t)===32||r.src.charCodeAt(t)===10)return!1;if(r.src.charCodeAt(t)===93)break}return t===s+2||t>=o||(t++,e=r.src.slice(s+2,t-1),I(r.env.footnotes.refs[":"+e])>"u")?!1:(a||(r.env.footnotes.list||(r.env.footnotes.list=[]),r.env.footnotes.refs[":"+e]<0?(n=r.env.footnotes.list.length,r.env.footnotes.list[n]={label:e,count:0},r.env.footnotes.refs[":"+e]=n):n=r.env.footnotes.refs[":"+e],i=r.env.footnotes.list[n].count,r.env.footnotes.list[n].count++,r.push({type:"footnote_ref",id:n,subId:i,level:r.level})),r.pos=t,r.posMax=o,!0)}var Is=["coap","doi","javascript","aaa","aaas","about","acap","cap","cid","crid","data","dav","dict","dns","file","ftp","geo","go","gopher","h323","http","https","iax","icap","im","imap","info","ipp","iris","iris.beep","iris.xpc","iris.xpcs","iris.lwz","ldap","mailto","mid","msrp","msrps","mtqp","mupdate","news","nfs","ni","nih","nntp","opaquelocktoken","pop","pres","rtsp","service","session","shttp","sieve","sip","sips","sms","snmp","soap.beep","soap.beeps","tag","tel","telnet","tftp","thismessage","tn3270","tip","tv","urn","vemmi","ws","wss","xcon","xcon-userid","xmlrpc.beep","xmlrpc.beeps","xmpp","z39.50r","z39.50s","adiumxtra","afp","afs","aim","apt","attachment","aw","beshare","bitcoin","bolo","callto","chrome","chrome-extension","com-eventbrite-attendee","content","cvs","dlna-playsingle","dlna-playcontainer","dtn","dvb","ed2k","facetime","feed","finger","fish","gg","git","gizmoproject","gtalk","hcp","icon","ipn","irc","irc6","ircs","itms","jar","jms","keyparc","lastfm","ldaps","magnet","maps","market","message","mms","ms-help","msnim","mumble","mvn","notes","oid","palm","paparazzi","platform","proxy","psyc","query","res","resource","rmi","rsync","rtmp","secondlife","sftp","sgn","skype","smb","soldat","spotify","ssh","steam","svn","teamspeak","things","udp","unreal","ut2004","ventrilo","view-source","webcal","wtai","wyciwyg","xfire","xri","ymsgr"],Rs=/^<([a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)>/,$s=/^<([a-zA-Z.\-]{1,25}):([^<>\x00-\x20]*)>/;function Os(r,a){var e,t,n,i,o,s=r.pos;return r.src.charCodeAt(s)!==60||(e=r.src.slice(s),e.indexOf(">")<0)?!1:(t=e.match($s),t?Is.indexOf(t[1].toLowerCase())<0||(i=t[0].slice(1,-1),o=nr(i),!r.parser.validateLink(i))?!1:(a||(r.push({type:"link_open",href:o,level:r.level}),r.push({type:"text",content:i,level:r.level+1}),r.push({type:"link_close",level:r.level})),r.pos+=t[0].length,!0):(n=e.match(Rs),n?(i=n[0].slice(1,-1),o=nr("mailto:"+i),r.parser.validateLink(o)?(a||(r.push({type:"link_open",href:o,level:r.level}),r.push({type:"text",content:i,level:r.level+1}),r.push({type:"link_close",level:r.level})),r.pos+=n[0].length,!0):!1):!1))}function sn(r,a){return r=r.source,a=a||"",function e(t,n){return t?(n=n.source||n,r=r.replace(t,n),e):new RegExp(r,a)}}var Ns=/[a-zA-Z_:][a-zA-Z0-9:._-]*/,zs=/[^"'=<>`\x00-\x20]+/,Ds=/'[^']*'/,Bs=/"[^"]*"/,Fs=sn(/(?:unquoted|single_quoted|double_quoted)/)("unquoted",zs)("single_quoted",Ds)("double_quoted",Bs)(),js=sn(/(?:\s+attr_name(?:\s*=\s*attr_value)?)/)("attr_name",Ns)("attr_value",Fs)(),qs=sn(/<[A-Za-z][A-Za-z0-9]*attribute*\s*\/?>/)("attribute",js)(),Vs=/<\/[A-Za-z][A-Za-z0-9]*\s*>/,Us=/<!---->|<!--(?:-?[^>-])(?:-?[^-])*-->/,Hs=/<[?].*?[?]>/,Gs=/<![A-Z]+\s+[^>]*>/,Ks=/<!\[CDATA\[[\s\S]*?\]\]>/,Ws=sn(/^(?:open_tag|close_tag|comment|processing|declaration|cdata)/)("open_tag",qs)("close_tag",Vs)("comment",Us)("processing",Hs)("declaration",Gs)("cdata",Ks)();function Ys(r){var a=r|32;return a>=97&&a<=122}function Zs(r,a){var e,t,n,i=r.pos;return!r.options.html||(n=r.posMax,r.src.charCodeAt(i)!==60||i+2>=n)||(e=r.src.charCodeAt(i+1),e!==33&&e!==63&&e!==47&&!Ys(e))||(t=r.src.slice(i).match(Ws),!t)?!1:(a||r.push({type:"htmltag",content:r.src.slice(i,i+t[0].length),level:r.level}),r.pos+=t[0].length,!0)}var Js=/^&#((?:x[a-f0-9]{1,8}|[0-9]{1,8}));/i,Xs=/^&([a-z][a-z0-9]{1,31});/i;function Qs(r,a){var e,t,n,i=r.pos,o=r.posMax;if(r.src.charCodeAt(i)!==38)return!1;if(i+1<o){if(e=r.src.charCodeAt(i+1),e===35){if(n=r.src.slice(i).match(Js),n)return a||(t=n[1][0].toLowerCase()==="x"?parseInt(n[1].slice(1),16):parseInt(n[1],10),r.pending+=bi(t)?tr(t):tr(65533)),r.pos+=n[0].length,!0}else if(n=r.src.slice(i).match(Xs),n){var s=fi(n[1]);if(n[1]!==s)return a||(r.pending+=s),r.pos+=n[0].length,!0}}return a||(r.pending+="&"),r.pos++,!0}var Dn=[["text",vs],["newline",bs],["escape",ys],["backticks",_s],["del",ks],["ins",ws],["mark",Ss],["emphasis",Cs],["sub",As],["sup",Ls],["links",Ts],["footnote_inline",Ms],["footnote_ref",xs],["autolink",Os],["htmltag",Zs],["entity",Qs]];function ln(){this.ruler=new ge;for(var r=0;r<Dn.length;r++)this.ruler.push(Dn[r][0],Dn[r][1]);this.validateLink=el}ln.prototype.skipToken=function(r){var a=this.ruler.getRules(""),e=a.length,t=r.pos,n,i;if((i=r.cacheGet(t))>0){r.pos=i;return}for(n=0;n<e;n++)if(a[n](r,!0)){r.cacheSet(t,r.pos);return}r.pos++,r.cacheSet(t,r.pos)};ln.prototype.tokenize=function(r){for(var a=this.ruler.getRules(""),e=a.length,t=r.posMax,n,i;r.pos<t;){for(i=0;i<e&&(n=a[i](r,!1),!n);i++);if(n){if(r.pos>=t)break;continue}r.pending+=r.src[r.pos++]}r.pending&&r.pushPending()};ln.prototype.parse=function(r,a,e,t){var n=new Ye(r,this,a,e,t);this.tokenize(n)};function el(r){var a=["vbscript","javascript","file","data"],e=r.trim().toLowerCase();return e=Ue(e),!(e.indexOf(":")!==-1&&a.indexOf(e.split(":")[0])!==-1)}var tl={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkTarget:"",typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["block","inline","references","replacements","smartquotes","references","abbr2","footnote_tail"]},block:{rules:["blockquote","code","fences","footnote","heading","hr","htmlblock","lheading","list","paragraph","table"]},inline:{rules:["autolink","backticks","del","emphasis","entity","escape","footnote_ref","htmltag","links","newline","text"]}}},nl={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkTarget:"",typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{},block:{},inline:{}}},rl={options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkTarget:"",typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["block","inline","references","abbr2"]},block:{rules:["blockquote","code","fences","heading","hr","htmlblock","lheading","list","paragraph"]},inline:{rules:["autolink","backticks","emphasis","entity","escape","htmltag","links","newline","text"]}}},al={default:tl,full:nl,commonmark:rl};function Ei(r,a,e){this.src=a,this.env=e,this.options=r.options,this.tokens=[],this.inlineMode=!1,this.inline=r.inline,this.block=r.block,this.renderer=r.renderer,this.typographer=r.typographer}function Me(r,a){typeof r!="string"&&(a=r,r="default"),a&&a.linkify!=null&&console.warn(`linkify option is removed. Use linkify plugin instead:
|
|
41
|
-
|
|
42
|
-
import Remarkable from 'remarkable';
|
|
43
|
-
import linkify from 'remarkable/linkify';
|
|
44
|
-
new Remarkable().use(linkify)
|
|
45
|
-
`),this.inline=new ln,this.block=new mr,this.core=new Si,this.renderer=new pr,this.ruler=new ge,this.options={},this.configure(al[r]),this.set(a||{})}Me.prototype.set=function(r){vi(this.options,r)};Me.prototype.configure=function(r){var a=this;if(!r)throw new Error("Wrong `remarkable` preset, check name/content");r.options&&a.set(r.options),r.components&&Object.keys(r.components).forEach(function(e){r.components[e].rules&&a[e].ruler.enable(r.components[e].rules,!0)})};Me.prototype.use=function(r,a){return r(this,a),this};Me.prototype.parse=function(r,a){var e=new Ei(this,r,a);return this.core.process(e),e.tokens};Me.prototype.render=function(r,a){return a=a||{},this.renderer.render(this.parse(r,a),this.options,a)};Me.prototype.parseInline=function(r,a){var e=new Ei(this,r,a);return e.inlineMode=!0,this.core.process(e),e.tokens};Me.prototype.renderInline=function(r,a){return a=a||{},this.renderer.render(this.parseInline(r,a),this.options,a)};var rr=function(){function r(){_(this,r)}return k(r,null,[{key:"instantiate",value:function(){var e=window.hljs;return e?new Me({highlight:function(n,i){if(i&&e.getLanguage(i))try{return e.highlight(i,n).value}catch{console.error("failed to setup the highlight dependency")}try{return e.highlightAuto(n).value}catch{console.error("failed to automatically highlight messages")}return""},html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkTarget:"_blank",typographer:!0}):new Me({linkTarget:"_blank"})}},{key:"createNew",value:function(){var e=r.instantiate();return e.inline.validateLink=function(){return!0},e}}]),r}(),Ai=function(){function r(){_(this,r)}return k(r,null,[{key:"addMessage",value:function(e,t,n,i){var o;e.elementRef.appendChild(t.outerContainer),e.applyCustomStyles(t,i,!0,(o=e.messageStyles)==null?void 0:o[n]),e.elementRef.scrollTop=e.elementRef.scrollHeight}},{key:"wrapInLink",value:function(e,t,n){var i=document.createElement("a");return i.href=t,i.download=n||r.DEFAULT_FILE_NAME,i.target="_blank",i.appendChild(e),i}},{key:"isNonLinkableDataUrl",value:function(e,t){return!t.startsWith("data")||e==="image"?!1:e==="any"&&t.startsWith("data:text/javascript")||!t.startsWith("data:image")}},{key:"processContent",value:function(e,t,n,i){return!n||r.isNonLinkableDataUrl(e,n)?t:r.wrapInLink(t,n,i)}},{key:"waitToLoadThenScroll",value:function(e){setTimeout(function(){e.scrollTop=e.scrollHeight},60)}},{key:"scrollDownOnImageLoad",value:function(e,t){if(e.startsWith("data"))r.waitToLoadThenScroll(t);else try{fetch(e,{mode:"no-cors"}).catch(function(){}).finally(function(){r.waitToLoadThenScroll(t)})}catch{t.scrollTop=t.scrollHeight}}},{key:"reAddFileRefToObject",value:function(e,t){var n;(n=e.files)==null||n.forEach(function(i,o){var s;i.ref&&(s=t.message.files)!=null&&s[o]&&(t.message.files[o].ref=i.ref)})}},{key:"removeFileRef",value:function(e){var t=H({},e);return delete t.ref,t}}]),r}();Ai.DEFAULT_FILE_NAME="file";var Ce=Ai,Jt=function(){function r(){_(this,r)}return k(r,null,[{key:"onNewMessage",value:function(e,t,n){var i,o=JSON.parse(JSON.stringify({message:t,isInitial:n}));Ce.reAddFileRefToObject(t,o),(i=e.onNewMessage)==null||i.call(e,o),e.dispatchEvent(new CustomEvent("new-message",{detail:o}))}},{key:"onClearMessages",value:function(e){var t;(t=e.onClearMessages)==null||t.call(e),e.dispatchEvent(new CustomEvent("clear-messages"))}},{key:"onRender",value:function(e){var t;(t=e.onComponentRender)==null||t.call(e,e),e.dispatchEvent(new CustomEvent("render",{detail:e}))}},{key:"onError",value:function(e,t){var n;(n=e.onError)==null||n.call(e,t),e.dispatchEvent(new CustomEvent("error",{detail:t}))}}]),r}(),Kt=function(){function r(){_(this,r)}return k(r,null,[{key:"applyCustomStylesToElements",value:function(e,t,n){if(n&&(Object.assign(e.outerContainer.style,n.outerContainer),Object.assign(e.innerContainer.style,n.innerContainer),Object.assign(e.bubbleElement.style,n.bubble),t)){var i=e.bubbleElement.children[0],o=i.tagName.toLocaleLowerCase()!=="a"?i:i.children[0];Object.assign(o.style,n.media)}}},{key:"applySideStyles",value:function(e,t,n,i){i&&(r.applyCustomStylesToElements(e,n,i.shared),t===z.USER_ROLE?r.applyCustomStylesToElements(e,n,i.user):(r.applyCustomStylesToElements(e,n,i.ai),r.applyCustomStylesToElements(e,n,i[t])))}},{key:"isMessageSideStyles",value:function(e){return!!(e.ai||e.shared||e.user)}},{key:"applyCustomStyles",value:function(e,t,n,i,o){var s;o&&e.default!==o?r.isMessageSideStyles(o)?(r.applySideStyles(t,n,i,e.default),r.applySideStyles(t,n,i,o)):(r.applyCustomStylesToElements(t,i,(s=e.default)==null?void 0:s.shared),r.applyCustomStylesToElements(t,i,o)):r.applySideStyles(t,n,i,e.default)}},{key:"extractParticularSharedStyles",value:function(e,t){if(t!=null&&t.shared){var n=t.shared,i={outerContainer:{},innerContainer:{},bubble:{},media:{}};return e.forEach(function(o){var s,l,c,u;i.outerContainer[o]=((s=n.outerContainer)==null?void 0:s[o])||"",i.innerContainer[o]=((l=n.innerContainer)==null?void 0:l[o])||"",i.bubble[o]=((c=n.bubble)==null?void 0:c[o])||"",i.media[o]=((u=n.media)==null?void 0:u[o])||""}),i}}}]),r}(),Pi=function(){function r(a){var e=this;_(this,r),this.messageElementRefs=[],this.messages=[],this.htmlClassUtilities={},this.textElementsToText=[],this.elementRef=r.createContainerElement(),this.messageStyles=a.messageStyles,this._remarkable=rr.createNew(),this._avatars=a.avatars,this._names=a.names,this._onNewMessage=Jt.onNewMessage.bind(this,a),a.htmlClassUtilities&&(this.htmlClassUtilities=a.htmlClassUtilities),setTimeout(function(){e.submitUserMessage=a.submitUserMessage})}return k(r,[{key:"addNewTextMessage",value:function(e,t,n){if(n!=null&&n.status){var i=this.overwriteText(t,e,this.messageElementRefs);if(i)return i;n.status=!1}var o=this.createAndAppendNewMessageElement(e,t);return o.bubbleElement.classList.add("text-message"),this.applyCustomStyles(o,t,!1),z.fillEmptyMessageElement(o.bubbleElement,e),this.textElementsToText.push([o,e]),o}},{key:"overwriteText",value:function(e,t,n){var i=z.overwriteMessage(this.messages,n,t,e,"text","text-message");if(i){this.renderText(i.bubbleElement,t);var o=z.getLastTextToElement(this.textElementsToText,i);o&&(o[1]=t)}return i}},{key:"createAndAppendNewMessageElement",value:function(e,t){var n=this,i=this.createNewMessageElement(e,t);return this.elementRef.appendChild(i.outerContainer),setTimeout(function(){return me.scrollToBottom(n.elementRef)}),i}},{key:"createNewMessageElement",value:function(e,t){var n;(n=this._introPanel)==null||n.hide();var i=this.messageElementRefs[this.messageElementRefs.length-1];return r.isTemporaryElement(i)&&(i.outerContainer.remove(),this.messageElementRefs.pop()),this.createMessageElements(e,t)}},{key:"createMessageElements",value:function(e,t){var n=r.createBaseElements(),i=n.outerContainer,o=n.innerContainer,s=n.bubbleElement;return i.appendChild(o),this.addInnerContainerElements(s,e,t),this.messageElementRefs.push(n),n}},{key:"addInnerContainerElements",value:function(e,t,n){var i;return((i=this.messages[this.messages.length-1])==null?void 0:i.role)===n&&!this.isLastMessageError()&&z.hideRoleElements(this.messageElementRefs,!!this._avatars,!!this._names),e.classList.add("message-bubble",z.getRoleClass(n),n===z.USER_ROLE?"user-message-text":"ai-message-text"),this.renderText(e,t),z.addRoleElements(e,n,this._avatars,this._names),{bubbleElement:e}}},{key:"applyCustomStyles",value:function(e,t,n,i){e&&this.messageStyles&&Kt.applyCustomStyles(this.messageStyles,e,t,n,i)}},{key:"removeLastMessage",value:function(){this.messageElementRefs[this.messageElementRefs.length-1].outerContainer.remove(),this.messageElementRefs.pop()}},{key:"isLastMessageError",value:function(){var e;return(e=z.getLastMessageBubbleElement(this.elementRef))==null?void 0:e.classList.contains("error-message-text")}},{key:"sendClientUpdate",value:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n;(n=this._onNewMessage)==null||n.call(this,e,t)}},{key:"renderText",value:function(e,t){e.innerHTML=this._remarkable.render(t),e.innerText.trim().length===0&&(e.innerText=t)}},{key:"refreshTextMessages",value:function(){var e=this;this._remarkable=rr.createNew(),this.textElementsToText.forEach(function(t){e.renderText(t[0].bubbleElement,t[1])})}}],[{key:"createContainerElement",value:function(){var e=document.createElement("div");return e.id="messages",e}},{key:"isTemporaryElement",value:function(e){return(e==null?void 0:e.bubbleElement.classList.contains("loading-message-text"))||Zt.isElementTemporary(e)}},{key:"createBaseElements",value:function(){var e=document.createElement("div"),t=document.createElement("div");t.classList.add("inner-message-container"),e.appendChild(t),e.classList.add("outer-message-container");var n=document.createElement("div");return n.classList.add("message-bubble"),t.appendChild(n),{outerContainer:e,innerContainer:t,bubbleElement:n}}},{key:"createMessageContent",value:function(e){var t=e.text,n=e.files,i=e.html,o=e._sessionId,s=e.role,l={role:s||z.AI_ROLE};return t&&(l.text=t),n&&(l.files=n),i&&(l.html=i),!t&&!n&&!i&&(l.text=""),o&&(l._sessionId=o),l}}]),r}(),gr=function(){function r(a){_(this,r),this._fileAdded=!1,this._streamedContent="",this._streamType="",this._hasStreamEnded=!1,this._messages=a}return k(r,[{key:"upsertStreamedMessage",value:function(e){var t;if(!this._hasStreamEnded){if((e==null?void 0:e.text)===void 0&&(e==null?void 0:e.html)===void 0)return console.error(X.INVALID_STREAM_EVENT);var n=(e==null?void 0:e.text)||(e==null?void 0:e.html)||"",i=me.isScrollbarAtBottomOfElement(this._messages.elementRef),o=(e==null?void 0:e.text)!==void 0?"text":"html";if(!this._elements&&this._streamedContent==="")this.setInitialState(o,n,e==null?void 0:e.role);else{if(this._streamType!==o)return console.error(X.INVALID_STREAM_EVENT_MIX);this.updateBasedOnType(n,o,(t=this._elements)==null?void 0:t.bubbleElement,e==null?void 0:e.overwrite)}i&&me.scrollToBottom(this._messages.elementRef)}}},{key:"setInitialState",value:function(e,t,n){var i;this._streamType=e,(i=n)!==null&&i!==void 0||(n=z.AI_ROLE),this._elements=e==="text"?this._messages.addNewTextMessage(t,n):er.add(this._messages,t,n,this._messages.messageElementRefs),this._elements.bubbleElement.classList.add(r.MESSAGE_CLASS),this._streamedContent=t,this._activeMessageRole=n,this._message=ii({role:this._activeMessageRole},e,this._streamedContent),this._messages.messages.push(this._message)}},{key:"updateBasedOnType",value:function(e,t,n){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;z.unfillEmptyMessageElement(n,e),(t==="text"?this.updateText:this.updateHTML).bind(this)(e,n,i)}},{key:"updateText",value:function(e,t,n){this._streamedContent=n?e:this._streamedContent+e,this._messages.textElementsToText[this._messages.textElementsToText.length-1][1]=this._streamedContent,this._messages.renderText(t,this._streamedContent)}},{key:"updateHTML",value:function(e,t,n){if(n)this._streamedContent=e,t.innerHTML=e;else{var i=document.createElement("span");i.innerHTML=e,t.appendChild(i),this._streamedContent=r.HTML_CONTENT_PLACEHOLDER}}},{key:"finaliseStreamedMessage",value:function(){var e,t,n=this._messages.textElementsToText;if(!(this._fileAdded&&!this._elements)){if(!this._elements)throw Error(X.NO_VALID_STREAM_EVENTS_SENT);(e=this._elements.bubbleElement)!=null&&e.classList.contains(r.MESSAGE_CLASS)&&(this._streamType==="text"?(n[n.length-1][1]=this._streamedContent,this._message&&(this._message.text=this._streamedContent),this._messages.textToSpeech&&Gt.speak(this._streamedContent,this._messages.textToSpeech)):this._streamType==="html"&&(this._streamedContent===r.HTML_CONTENT_PLACEHOLDER&&(this._streamedContent=((t=this._elements.bubbleElement)==null?void 0:t.innerHTML)||""),this._elements&&wt.apply(this._messages,this._elements.outerContainer),this._message&&(this._message.html=this._streamedContent)),this._message&&this._messages.sendClientUpdate(Pi.createMessageContent(this._message),!1),this._hasStreamEnded=!0)}}},{key:"markFileAded",value:function(){this._fileAdded=!0}}]),r}();gr.MESSAGE_CLASS="streamed-message";gr.HTML_CONTENT_PLACEHOLDER="htmlplaceholder";var He=gr,Li=function(){function r(){_(this,r)}return k(r,null,[{key:"tempRemoveContentHeader",value:function(){var a=S(h().mark(function t(n,i,o){var s,l;return h().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:if(n!=null&&n.headers){u.next=2;break}throw new Error("Request settings have not been set up");case 2:return s=n.headers[r.CONTENT_TYPE],delete n.headers[r.CONTENT_TYPE],u.prev=4,u.next=7,i(o);case 7:l=u.sent,u.next=13;break;case 10:throw u.prev=10,u.t0=u.catch(4),n.headers[r.CONTENT_TYPE]=s,u.t0;case 13:return u.abrupt("return",(n.headers[r.CONTENT_TYPE]=s,l));case 14:case"end":return u.stop()}},t,null,[[4,10]])}));function e(t,n,i){return a.apply(this,arguments)}return e}()},{key:"displayError",value:function(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"Service error, please try again.";if(console.error(t),I(t)=="object")return Object.keys(t).length===0?e.addNewErrorMessage("service",n):e.addNewErrorMessage("service",JSON.stringify(t));e.addNewErrorMessage("service",t)}},{key:"fetch",value:function(a){function e(t,n,i,o){return a.apply(this,arguments)}return e.toString=function(){return a.toString()},e}(function(a,e,t,n){var i,o,s={method:((i=a.requestSettings)==null?void 0:i.method)||"POST",headers:e};return s.method!=="GET"&&(s.body=t?JSON.stringify(n):n),a.requestSettings.credentials&&(s.credentials=a.requestSettings.credentials),fetch(((o=a.requestSettings)==null?void 0:o.url)||a.url||"",s)})},{key:"processResponseByType",value:function(e){var t=e.headers.get("content-type");return t!=null&&t.includes("application/json")?e.json():t!=null&&t.includes("text/plain")||!t?e:e.blob()}},{key:"processRequestInterceptor",value:function(){var a=S(h().mark(function t(n,i){var o,s,l,c;return h().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:return d.next=2,(o=n.requestInterceptor)==null?void 0:o.call(n,i);case 2:if(d.t0=d.sent,d.t0){d.next=5;break}d.t0=i;case 5:return s=d.t0,l=s,c=s,d.abrupt("return",{body:l.body,headers:l.headers,error:c.error});case 9:case"end":return d.stop()}},t)}));function e(t,n){return a.apply(this,arguments)}return e}()},{key:"validateResponseFormat",value:function(e){return e&&I(e)=="object"&&(typeof e.error=="string"||typeof e.text=="string"||typeof e.html=="string"||Array.isArray(e.files))}},{key:"onInterceptorError",value:function(e,t,n){e.addNewErrorMessage("service",t),n==null||n()}}]),r}();Li.CONTENT_TYPE="Content-Type";var D=Li;function il(r,a){return ar.apply(this,arguments)}function ar(){return ar=S(h().mark(function r(a,e){var t,n;return h().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:t=a.getReader();case 1:return o.next=3,t.read();case 3:if((n=o.sent).done){o.next=7;break}e(n.value);case 5:o.next=1;break;case 7:case"end":return o.stop()}},r)})),ar.apply(this,arguments)}function ol(r){var a,e,t,n=!1;return function(i){a===void 0?(a=i,e=0,t=-1):a=ll(a,i);for(var o=a.length,s=0;e<o;){n&&(a[e]===10&&(s=++e),n=!1);for(var l=-1;e<o&&l===-1;++e)switch(a[e]){case 58:t===-1&&(t=e-s);break;case 13:n=!0;case 10:l=e;break}if(l===-1)break;r(a.subarray(s,l),t),s=e,t=-1}s===o?a=void 0:s!==0&&(a=a.subarray(s),e-=s)}}function sl(r,a,e){var t=Yr(),n=new TextDecoder;return function(i,o){if(i.length===0)e==null||e(t),t=Yr();else if(o>0){var s=n.decode(i.subarray(0,o)),l=o+(i[o+1]===32?2:1),c=n.decode(i.subarray(l));switch(s){case"data":t.data=t.data?t.data+`
|
|
46
|
-
`+c:c;break;case"event":t.event=c;break;case"id":r(t.id=c);break;case"retry":var u=parseInt(c,10);isNaN(u)||a(t.retry=u);break}}}}function ll(r,a){var e=new Uint8Array(r.length+a.length);return e.set(r),e.set(a,r.length),e}function Yr(){return{data:"",event:"",id:"",retry:void 0}}var cl=globalThis&&globalThis.__rest||function(r,a){var e={};for(var t in r)Object.prototype.hasOwnProperty.call(r,t)&&a.indexOf(t)<0&&(e[t]=r[t]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,t=Object.getOwnPropertySymbols(r);n<t.length;n++)a.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(r,t[n])&&(e[t[n]]=r[t[n]]);return e},ir="text/event-stream",ul=1e3,Zr="last-event-id";function dl(r,a){var e=a.signal,t=a.headers,n=a.onopen,i=a.onmessage,o=a.onclose,s=a.onerror,l=a.openWhenHidden,c=a.fetch,u=cl(a,["signal","headers","onopen","onmessage","onclose","onerror","openWhenHidden","fetch"]);return new Promise(function(d,p){var m=Object.assign({},t);m.accept||(m.accept=ir);var g;function b(){g.abort(),document.hidden||E()}l||document.addEventListener("visibilitychange",b);var v=ul,y=0;function f(){document.removeEventListener("visibilitychange",b),window.clearTimeout(y),g.abort()}e==null||e.addEventListener("abort",function(){f(),d()});var w=c??window.fetch,L=n??pl;function E(){return O.apply(this,arguments)}function O(){return O=S(h().mark(function U(){var q,W,Q;return h().wrap(function(V){for(;;)switch(V.prev=V.next){case 0:return g=new AbortController,V.prev=1,V.next=4,w(r,Object.assign(Object.assign({},u),{headers:m,signal:g.signal}));case 4:return W=V.sent,V.next=7,L(W);case 7:return V.next=9,il(W.body,ol(sl(function(J){J?m[Zr]=J:delete m[Zr]},function(J){v=J},i)));case 9:o==null||o(),f(),d(),V.next=17;break;case 14:if(V.prev=14,V.t0=V.catch(1),!g.signal.aborted)try{Q=(q=s==null?void 0:s(V.t0))!==null&&q!==void 0?q:v,window.clearTimeout(y),y=window.setTimeout(E,Q)}catch(J){f(),p(J)}case 17:case"end":return V.stop()}},U,null,[[1,14]])})),O.apply(this,arguments)}E()})}function pl(r){var a=r.headers.get("content-type");if(!(a!=null&&a.startsWith(ir)))throw new Error("Expected content-type to be ".concat(ir,", Actual: ").concat(a))}var re=function(){function r(){_(this,r)}return k(r,null,[{key:"request",value:function(){var a=S(h().mark(function t(n,i,o){var s,l,c,u,d,p,m,g,b,v,y,f,w,L,E,O,U,q,W=arguments;return h().wrap(function(Y){for(;;)switch(Y.prev=Y.next){case 0:return s=W.length>3&&W[3]!==void 0?W[3]:!0,g={body:i,headers:(l=n.requestSettings)==null?void 0:l.headers},Y.next=4,D.processRequestInterceptor(n.deepChat,g);case 4:if(b=Y.sent,v=b.body,y=b.headers,f=b.error,w=n.streamHandlers,L=w.onOpen,E=w.onClose,O=w.abortStream,!f){Y.next=14;break}return Y.abrupt("return",D.onInterceptorError(o,f,E));case 14:if(!((c=n.requestSettings)!=null&&c.handler)){Y.next=16;break}return Y.abrupt("return",fr.stream(n,v,o));case 16:if(((u=n.requestSettings)==null?void 0:u.url)!==Re.URL){Y.next=18;break}return Y.abrupt("return",Re.requestStream(o,n.streamHandlers));case 18:U=new He(o),q=D.fetch.bind(this,n,y,s),dl(((d=n.requestSettings)==null?void 0:d.url)||n.url||"",{method:((p=n.requestSettings)==null?void 0:p.method)||"POST",headers:y,credentials:(m=n.requestSettings)==null?void 0:m.credentials,body:s?JSON.stringify(v):v,openWhenHidden:!0,onopen:function(J){return S(h().mark(function G(){return h().wrap(function(A){for(;;)switch(A.prev=A.next){case 0:if(!J.ok){A.next=2;break}return A.abrupt("return",L());case 2:return A.next=4,D.processResponseByType(J);case 4:throw A.sent;case 5:case"end":return A.stop()}},G)}))()},onmessage:function(J){return S(h().mark(function G(){var _e,A,C,P,x;return h().wrap(function(M){for(;;)switch(M.prev=M.next){case 0:if(JSON.stringify(J.data)===JSON.stringify("[DONE]")){M.next=9;break}try{P=JSON.parse(J.data)}catch{P={}}return M.next=4,(A=(_e=n.deepChat).responseInterceptor)==null?void 0:A.call(_e,P);case 4:if(M.t0=M.sent,M.t0){M.next=7;break}M.t0=P;case 7:x=M.t0,(C=n.extractResultData)==null||C.call(n,x,q,v).then(function(K){n.asyncCallInProgress&&K&&K.text!==""?(r.simulate(o,n.streamHandlers,K),E(),n.asyncCallInProgress=!1):r.upsertWFiles(o,U.upsertStreamedMessage.bind(U),U,K)}).catch(function(K){return D.displayError(o,K)});case 9:case"end":return M.stop()}},G)}))()},onerror:function(J){throw E(),J},onclose:function(){n.asyncCallInProgress||(U.finaliseStreamedMessage(),E())},signal:O.signal}).catch(function(V){var J;o.isLastMessageError()||(J=n.extractResultData)==null||J.call(n,V).then(function(){D.displayError(o,V)}).catch(function(G){D.displayError(o,G)})});case 20:case"end":return Y.stop()}},t,this)}));function e(t,n,i){return a.apply(this,arguments)}return e}()},{key:"simulate",value:function(e,t,n){var i=t;if((n.files||n.html)&&e.addNewMessage(H({sendUpdate:!1,ignoreText:!0},n),!1),n.text){t.onOpen();var o=n.text.split("");r.populateMessages(o,new He(e),i)}}},{key:"populateMessages",value:function(e,t,n){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,o=e[i];if(o){t.upsertStreamedMessage({text:o});var s=setTimeout(function(){r.populateMessages(e,t,n,i+1)},n.simulationInterim||6);n.abortStream.abort=function(){r.abort(s,t,n.onClose)}}else t.finaliseStreamedMessage(),n.onClose()}},{key:"isSimulation",value:function(e){return I(e)=="object"&&!!e.simulation}},{key:"isSimulatable",value:function(e,t){return r.isSimulation(e)&&t&&(t.text||t.html)}},{key:"abort",value:function(e,t,n){clearTimeout(e),t.finaliseStreamedMessage(),n()}},{key:"upsertWFiles",value:function(e,t,n,i){if(i!=null&&i.text||i!=null&&i.html){var o,s=t(i);(o=n)!==null&&o!==void 0||(n=s||void 0)}i!=null&&i.files&&(e.addNewMessage({files:i.files}),n==null||n.markFileAded())}}]),r}(),Ti=function(){function r(){_(this,r)}return k(r,null,[{key:"generateResponse",value:function(e){var t=e.messages[e.messages.length-1];if(t.files&&t.files.length>0){if(t.files.length>1)return"These are interesting files!";var n=t.files[0];return n.src&&n.src.startsWith("data:image/gif")?"That is a nice gif!":n.type==="image"?"That is a nice image!":n.type==="audio"?"I like the sound of that!":"That is an interesting file!"}if(t.text){if(t.text.charAt(t.text.length-1)==="?")return"I'm sorry but I can't answer that question...";if(t.text.includes("updog"))return"What's updog?"}return"Hi there! This is a demo response!"}},{key:"getCustomResponse",value:function(e,t){return typeof e=="function"?e(t):e}},{key:"getResponse",value:function(e){return e.customDemoResponse?r.getCustomResponse(e.customDemoResponse,e.messages[e.messages.length-1]):{text:r.generateResponse(e)}}},{key:"request",value:function(e,t){var n=r.getResponse(t);setTimeout(S(h().mark(function i(){var o,s,l;return h().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return u.next=2,(s=(o=e.deepChat).responseInterceptor)==null?void 0:s.call(o,n);case 2:if(u.t0=u.sent,u.t0){u.next=5;break}u.t0=n;case 5:l=u.t0,l.error?(t.addNewErrorMessage("service",l.error),e.completionsHandlers.onFinish()):re.isSimulatable(e.deepChat.stream,l)?re.simulate(t,e.streamHandlers,l):(t.addNewMessage(l),e.completionsHandlers.onFinish());case 7:case"end":return u.stop()}},i)})),400)}},{key:"requestStream",value:function(e,t){setTimeout(function(){var n=r.getResponse(e);re.simulate(e,t,n)},400)}}]),r}();Ti.URL="deep-chat-demo";var Re=Ti,Et=function(){function r(){_(this,r)}return k(r,null,[{key:"setup",value:function(e){e.requestSettings.url!==Re.URL&&(e.permittedErrorPrefixes=["Connection error","Error in server message"],e.websocket="pending")}},{key:"createConnection",value:function(e,t){if(document.body.contains(e.deepChat)){var n=e.requestSettings.websocket;if(n){if(e.requestSettings.handler)return fr.websocket(e,t);try{var i=typeof n!="boolean"?n:void 0,o=new WebSocket(e.requestSettings.url||"",i);e.websocket=o,e.websocket.onopen=function(){var s,l;t.removeError(),e.websocket&&I(e.websocket)=="object"&&r.assignListeners(e,o,t),(l=(s=e.deepChat)._validationHandler)==null||l.call(s)},e.websocket.onerror=function(s){console.error(s),r.retryConnection(e,t)}}catch(s){console.error(s),r.retryConnection(e,t)}}}}},{key:"retryConnection",value:function(e,t){var n,i;(i=(n=e.deepChat)._validationHandler)==null||i.call(n),document.body.contains(e.deepChat)&&(e.websocket="pending",t.isLastMessageError()||t.addNewErrorMessage("service","Connection error"),setTimeout(function(){r.createConnection(e,t)},5e3))}},{key:"assignListeners",value:function(e,t,n){var i=this,o={};t.onmessage=function(){var s=S(h().mark(function l(c){var u,d,p,m,g,b,v;return h().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:if(!e.extractResultData){f.next=20;break}return f.prev=1,p=JSON.parse(c.data),f.next=5,(d=(u=e.deepChat).responseInterceptor)==null?void 0:d.call(u,p);case 5:if(f.t0=f.sent,f.t0){f.next=8;break}f.t0=p;case 8:return m=f.t0,f.next=11,e.extractResultData(m);case 11:if(g=f.sent,!(!g||I(g)!="object")){f.next=14;break}throw Error(X.INVALID_RESPONSE(p,"server",!!e.deepChat.responseInterceptor,m));case 14:re.isSimulation(e.deepChat.stream)?(b=r.stream.bind(i,e,n,o),v=o[p.role||z.AI_ROLE],re.upsertWFiles(n,b,v,g)):n.addNewMessage(g),f.next=20;break;case 17:f.prev=17,f.t1=f.catch(1),D.displayError(n,f.t1,"Error in server message");case 20:case"end":return f.stop()}},l,null,[[1,17]])}));return function(l){return s.apply(this,arguments)}}(),t.onclose=function(){console.error("Connection closed"),n.isLastMessageError()||n.addNewErrorMessage("service","Connection error"),e.deepChat.stream&&e.streamHandlers.abortStream.abort(),r.createConnection(e,n)}}},{key:"sendWebsocket",value:function(){var a=S(h().mark(function t(n,i,o){var s,l,c,u,d,p,m,g,b,v=arguments;return h().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:if(s=v.length>3&&v[3]!==void 0?v[3]:!0,u=n.websocket,!(!u||u==="pending")){f.next=4;break}return f.abrupt("return");case 4:return d={body:i,headers:(l=n.requestSettings)==null?void 0:l.headers},f.next=7,D.processRequestInterceptor(n.deepChat,d);case 7:if(p=f.sent,m=p.body,g=p.error,!g){f.next=12;break}return f.abrupt("return",o.addNewErrorMessage("service",g));case 12:if(r.isWebSocket(u)){f.next=14;break}return f.abrupt("return",u.newUserMessage.listener(m));case 14:if(b=s?JSON.stringify(m):m,((c=n.requestSettings)==null?void 0:c.url)!==Re.URL){f.next=17;break}return f.abrupt("return",Re.request(n,o));case 17:u.readyState===void 0||u.readyState!==u.OPEN?(console.error("Connection is not open"),o.isLastMessageError()||o.addNewErrorMessage("service","Connection error")):(u.send(JSON.stringify(b)),n.completionsHandlers.onFinish());case 18:case"end":return f.stop()}},t)}));function e(t,n,i){return a.apply(this,arguments)}return e}()},{key:"canSendMessage",value:function(e){return e?e==="pending"?!1:r.isWebSocket(e)?e.readyState!==void 0&&e.readyState===e.OPEN:e.isOpen:!0}},{key:"isWebSocket",value:function(e){return e.send!==void 0}},{key:"stream",value:function(e,t,n,i){if(i){var o=e.deepChat.stream.simulation;if(typeof o=="string"){var s,l=i.role||z.AI_ROLE,c=n[l];i.text===o?(c==null||c.finaliseStreamedMessage(),delete n[l]):((s=n[l])!==null&&s!==void 0||(n[l]=new He(t)),n[l].upsertStreamedMessage(i))}else re.simulate(t,e.streamHandlers,i)}}}]),r}(),fr=function(){function r(){_(this,r)}return k(r,null,[{key:"request",value:function(){var a=S(h().mark(function t(n,i,o){var s,l,c,u,d;return h().wrap(function(m){for(;;)switch(m.prev=m.next){case 0:c=!0,u=function(){var g=S(h().mark(function b(v){var y,f,w;return h().wrap(function(E){for(;;)switch(E.prev=E.next){case 0:if(c){E.next=2;break}return E.abrupt("return");case 2:return c=!1,E.next=5,(f=(y=n.deepChat).responseInterceptor)==null?void 0:f.call(y,v);case 5:if(E.t0=E.sent,E.t0){E.next=8;break}E.t0=v;case 8:w=E.t0,D.validateResponseFormat(w)?typeof w.error=="string"?(console.error(w.error),o.addNewErrorMessage("service",w.error),n.completionsHandlers.onFinish()):re.isSimulatable(n.deepChat.stream,w)?re.simulate(o,n.streamHandlers,w):(o.addNewMessage(w),n.completionsHandlers.onFinish()):(console.error(X.INVALID_RESPONSE(v,"server",!!n.deepChat.responseInterceptor,w)),o.addNewErrorMessage("service","Error in server message"),n.completionsHandlers.onFinish());case 10:case"end":return E.stop()}},b)}));return function(v){return g.apply(this,arguments)}}(),d=r.generateOptionalSignals(),(l=(s=n.requestSettings).handler)==null||l.call(s,i,H(H({},d),{},{onResponse:u}));case 3:case"end":return m.stop()}},t)}));function e(t,n,i){return a.apply(this,arguments)}return e}()},{key:"attemptToFinaliseStream",value:function(e,t){try{e.finaliseStreamedMessage()}catch(n){console.error(n),t.addNewErrorMessage("service",n)}}},{key:"stream",value:function(e,t,n){var i,o,s=!0,l=!1,c=new He(n),u=function(){l||!s||(e.streamHandlers.onOpen(),l=!0)},d=function(){s&&(r.attemptToFinaliseStream(c,n),e.streamHandlers.onClose(),s=!1)},p=function(){var g=S(h().mark(function b(v){var y,f,w;return h().wrap(function(E){for(;;)switch(E.prev=E.next){case 0:if(s){E.next=2;break}return E.abrupt("return");case 2:return E.next=4,(f=(y=e.deepChat).responseInterceptor)==null?void 0:f.call(y,v);case 4:if(E.t0=E.sent,E.t0){E.next=7;break}E.t0=v;case 7:w=E.t0,D.validateResponseFormat(w)?w.error?(console.error(w.error),c.finaliseStreamedMessage(),n.addNewErrorMessage("service",w.error),e.streamHandlers.onClose(),s=!1):re.upsertWFiles(n,c.upsertStreamedMessage.bind(c),c,w):console.error(X.INVALID_RESPONSE(v,"server",!!e.deepChat.responseInterceptor,w));case 9:case"end":return E.stop()}},b)}));return function(v){return g.apply(this,arguments)}}();e.streamHandlers.abortStream.abort=function(){r.attemptToFinaliseStream(c,n),e.streamHandlers.onClose(),s=!1};var m=r.generateOptionalSignals();(o=(i=e.requestSettings).handler)==null||o.call(i,t,H(H({},m),{},{onOpen:u,onResponse:p,onClose:d,stopClicked:e.streamHandlers.stopClicked}))}},{key:"websocket",value:function(e,t){var n=this,i,o,s={isOpen:!1,newUserMessage:{listener:function(){}},roleToStream:{}};e.websocket=s;var l=function(){t.removeError(),s.isOpen=!0},c=function(){s.isOpen=!1},u=function(){var p=S(h().mark(function m(g){var b,v,y,f,w;return h().wrap(function(E){for(;;)switch(E.prev=E.next){case 0:if(s.isOpen){E.next=2;break}return E.abrupt("return");case 2:return E.next=4,(v=(b=e.deepChat).responseInterceptor)==null?void 0:v.call(b,g);case 4:if(E.t0=E.sent,E.t0){E.next=7;break}E.t0=g;case 7:y=E.t0,D.validateResponseFormat(y)?typeof y.error=="string"?(console.error(y.error),t.isLastMessageError()||t.addNewErrorMessage("service",y.error)):re.isSimulation(e.deepChat.stream)?(f=Et.stream.bind(n,e,t,s.roleToStream),w=s.roleToStream[g.role||z.AI_ROLE],re.upsertWFiles(t,f,w,g)):t.addNewMessage(y):(console.error(X.INVALID_RESPONSE(g,"server",!!e.deepChat.responseInterceptor,y)),t.addNewErrorMessage("service","Error in server message"));case 9:case"end":return E.stop()}},m)}));return function(g){return p.apply(this,arguments)}}(),d=r.generateOptionalSignals();(o=(i=e.requestSettings).handler)==null||o.call(i,void 0,H(H({},d),{},{onOpen:l,onResponse:u,onClose:c,newUserMessage:s.newUserMessage}))}},{key:"generateOptionalSignals",value:function(){return{onClose:function(){},onOpen:function(){},stopClicked:{listener:function(){}},newUserMessage:{listener:function(){}}}}}]),r}(),Z=function(){function r(){_(this,r)}return k(r,null,[{key:"request",value:function(){var a=S(h().mark(function t(n,i,o){var s,l,c,u,d,p,m,g,b,v,y,f,w=arguments;return h().wrap(function(E){for(;;)switch(E.prev=E.next){case 0:return s=w.length>3&&w[3]!==void 0?w[3]:!0,d={body:i,headers:(l=n.requestSettings)==null?void 0:l.headers},E.next=4,D.processRequestInterceptor(n.deepChat,d);case 4:if(p=E.sent,m=p.body,g=p.headers,b=p.error,v=n.completionsHandlers.onFinish,!b){E.next=11;break}return E.abrupt("return",D.onInterceptorError(o,b,v));case 11:if(!((c=n.requestSettings)!=null&&c.handler)){E.next=13;break}return E.abrupt("return",fr.request(n,m,o));case 13:if(((u=n.requestSettings)==null?void 0:u.url)!==Re.URL){E.next=15;break}return E.abrupt("return",Re.request(n,o));case 15:y=!0,f=D.fetch.bind(this,n,g,s),f(m).then(function(O){return y=!!O.ok,O}).then(function(O){return D.processResponseByType(O)}).then(function(){var O=S(h().mark(function U(q){var W,Q,Y,V;return h().wrap(function(G){for(;;)switch(G.prev=G.next){case 0:if(n.extractResultData){G.next=2;break}return G.abrupt("return");case 2:return G.next=4,(Q=(W=n.deepChat).responseInterceptor)==null?void 0:Q.call(W,q);case 4:if(G.t0=G.sent,G.t0){G.next=7;break}G.t0=q;case 7:return Y=G.t0,G.next=10,n.extractResultData(Y,f,m);case 10:if(V=G.sent,y){G.next=13;break}throw q;case 13:if(!(!V||I(V)!="object")){G.next=15;break}throw Error(X.INVALID_RESPONSE(q,"response",!!n.deepChat.responseInterceptor,Y));case 15:V.makingAnotherRequest||(re.isSimulatable(n.deepChat.stream,V)?re.simulate(o,n.streamHandlers,V):(o.addNewMessage(V),v()));case 16:case"end":return G.stop()}},U)}));return function(U){return O.apply(this,arguments)}}()).catch(function(O){D.displayError(o,O),v()});case 18:case"end":return E.stop()}},t,this)}));function e(t,n,i){return a.apply(this,arguments)}return e}()},{key:"executePollRequest",value:function(e,t,n,i){var o=e.completionsHandlers.onFinish;fetch(t,n).then(function(s){return s.json()}).then(function(){var s=S(h().mark(function l(c){var u,d,p;return h().wrap(function(g){for(;;)switch(g.prev=g.next){case 0:if(e.extractPollResultData){g.next=2;break}return g.abrupt("return");case 2:return g.t0=e,g.next=5,(d=(u=e.deepChat).responseInterceptor)==null?void 0:d.call(u,c);case 5:if(g.t1=g.sent,g.t1){g.next=8;break}g.t1=c;case 8:return g.t2=g.t1,g.next=11,g.t0.extractPollResultData.call(g.t0,g.t2);case 11:p=g.sent,p.timeoutMS?setTimeout(function(){r.executePollRequest(e,t,n,i)},p.timeoutMS):re.isSimulatable(e.deepChat.stream,c)?re.simulate(i,e.streamHandlers,p):(i.addNewMessage(p),o());case 13:case"end":return g.stop()}},l)}));return function(l){return s.apply(this,arguments)}}()).catch(function(s){D.displayError(i,s),o()})}},{key:"poll",value:function(){var a=S(h().mark(function t(n,i,o){var s,l,c,u,d,p,m,g,b,v,y,f,w,L=arguments;return h().wrap(function(O){for(;;)switch(O.prev=O.next){case 0:return s=L.length>3&&L[3]!==void 0?L[3]:!0,d={body:i,headers:(l=n.requestSettings)==null?void 0:l.headers},O.next=4,D.processRequestInterceptor(n.deepChat,d);case 4:if(p=O.sent,m=p.body,g=p.headers,b=p.error,!b){O.next=10;break}return O.abrupt("return",D.onInterceptorError(o,b));case 10:v=((c=n.requestSettings)==null?void 0:c.url)||n.url||"",y=((u=n.requestSettings)==null?void 0:u.method)||"POST",f=s?JSON.stringify(m):m,w={method:y,body:f,headers:g},n.requestSettings.credentials&&(w.credentials=n.requestSettings.credentials),r.executePollRequest(n,v,w,o);case 12:case"end":return O.stop()}},t)}));function e(t,n,i){return a.apply(this,arguments)}return e}()},{key:"verifyKey",value:function(e,t,n,i,o,s,l,c,u){if(e==="")return s(X.INVALID_KEY);l(),fetch(t,{method:i,headers:n,body:u||null}).then(function(d){return D.processResponseByType(d)}).then(function(d){c(d,e,o,s)}).catch(function(d){s(X.CONNECTION_FAILED),console.error(d)})}}]),r}(),vr=function(){function r(){_(this,r)}return k(r,null,[{key:"getCharacterLimitMessages",value:function(e,t){var n;if(t===-1)return e;var i=0,o=e.length-1;for(o;o>=0;o-=1){var s=(n=e[o])==null?void 0:n.text;if(s!==void 0&&(i+=s.length,i>t)){e[o].text=s.substring(0,s.length-(i-t));break}}return e.slice(Math.max(o,0))}},{key:"getMaxMessages",value:function(e,t){return e.slice(Math.max(e.length-t,0))}},{key:"processMessages",value:function(e,t,n){return t!==void 0?t>0&&(e=r.getMaxMessages(e,t)):e=[e[e.length-1]],e=JSON.parse(JSON.stringify(e)),n===void 0?e:r.getCharacterLimitMessages(e,n)}}]),r}(),ml=function(){function r(){_(this,r)}return k(r,null,[{key:"parseConfig",value:function(e,t,n,i){var o,s={files:t};if(I(i)=="object"){var l=i.files,c=i.request,u=i.button;l&&(l.infoModal&&(s.files.infoModal=l.infoModal,(o=l.infoModal)!=null&&o.textMarkDown&&(s.infoModalTextMarkUp=n.render(l.infoModal.textMarkDown))),l.acceptedFormats&&(s.files.acceptedFormats=l.acceptedFormats),l.maxNumberOfFiles&&(s.files.maxNumberOfFiles=l.maxNumberOfFiles)),s.button=u,c&&(c.headers||c.method||c.url||c.credentials||e.headers||e.method||e.url||e.credentials)&&(s.request={url:(c==null?void 0:c.url)||e.url,method:(c==null?void 0:c.method)||e.method,headers:(c==null?void 0:c.headers)||e.headers,credentials:(c==null?void 0:c.credentials)||e.credentials})}return s}},{key:"processMixedFiles",value:function(e,t,n){if(n){var i={acceptedFormats:""};e.fileTypes.mixedFiles=r.parseConfig(e.requestSettings,i,t,n)}}},{key:"processMicrophone",value:function(e,t,n,i){var o,s,l,c,u,d,p,m,g=H({acceptedFormats:"audio/*"},((l=e.fileTypes.audio)==null?void 0:l.files)||{});n&&(navigator.mediaDevices.getUserMedia!==void 0?(e.recordAudio=r.parseConfig(e.requestSettings,g,t,n),I(n)=="object"&&n.files&&((o=(c=e.recordAudio).files)!==null&&o!==void 0||(c.files={}),e.recordAudio.files.format=(u=n.files)==null?void 0:u.format,e.recordAudio.files.maxDurationSeconds=(d=n.files)==null?void 0:d.maxDurationSeconds,(p=e.fileTypes.audio)!=null&&p.files&&((s=(m=e.fileTypes.audio.files).maxNumberOfFiles)!==null&&s!==void 0||(m.maxNumberOfFiles=n.files.maxNumberOfFiles)))):i||(e.fileTypes.audio=r.parseConfig(e.requestSettings,g,t,n)))}},{key:"processAudioConfig",value:function(e,t,n,i){if(!(!n&&!i)){var o=H({acceptedFormats:"audio/*"},(i==null?void 0:i.files)||{});e.fileTypes.audio=r.parseConfig(e.requestSettings,o,t,n)}}},{key:"processGifConfig",value:function(e,t,n,i){if(!(!n&&!i)){var o=H({acceptedFormats:"image/gif"},(i==null?void 0:i.files)||{});e.fileTypes.gifs=r.parseConfig(e.requestSettings,o,t,n)}}},{key:"processCamera",value:function(e,t,n,i){var o,s,l,c,u,d=H({acceptedFormats:"image/*"},((s=e.fileTypes.images)==null?void 0:s.files)||{});n&&(navigator.mediaDevices.getUserMedia!==void 0?(e.camera=r.parseConfig(e.requestSettings,d,t,n),I(n)=="object"&&(e.camera.modalContainerStyle=n.modalContainerStyle,n.files&&((o=(l=e.camera).files)!==null&&o!==void 0||(l.files={}),e.camera.files.format=(c=n.files)==null?void 0:c.format,e.camera.files.dimensions=(u=n.files)==null?void 0:u.dimensions))):i||(e.fileTypes.images=r.parseConfig(e.requestSettings,d,t,n)))}},{key:"processImagesConfig",value:function(e,t,n,i){if(!(!n&&!i)){var o=H({acceptedFormats:"image/*"},(i==null?void 0:i.files)||{});e.fileTypes.images=r.parseConfig(e.requestSettings,o,t,n)}}},{key:"populateDefaultFileIO",value:function(e,t){var n,i,o,s,l;e&&((n=e.files)!==null&&n!==void 0||(e.files={}),(i=(s=e.files).acceptedFormats)!==null&&i!==void 0||(s.acceptedFormats=t),(o=(l=e.files).maxNumberOfFiles)!==null&&o!==void 0||(l.maxNumberOfFiles=1))}},{key:"set",value:function(e,t,n){r.populateDefaultFileIO(n==null?void 0:n.audio,".4a,.mp3,.webm,.mp4,.mpga,.wav,.mpeg,.m4a"),r.populateDefaultFileIO(n==null?void 0:n.images,".png,.jpg");var i=rr.createNew();r.processImagesConfig(t,i,e.images,n==null?void 0:n.images),r.processCamera(t,i,e.camera,e.images),r.processGifConfig(t,i,e.gifs,n==null?void 0:n.gifs),r.processAudioConfig(t,i,e.audio,n==null?void 0:n.audio),r.processMicrophone(t,i,e.microphone,e.audio),r.processMixedFiles(t,i,e.mixedFiles)}}]),r}(),Xt=function(){function r(a,e,t){var n;_(this,r);var i,o,s,l;this.rawBody={},this.validateConfigKey=!1,this.canSendMessage=r.canSendMessage,this.requestSettings={},this.fileTypes={},this.completionsHandlers={},this.streamHandlers={},this.deepChat=a,this.demo=t,Object.assign(this.rawBody,(i=a.request)==null?void 0:i.additionalBodyProps),this.totalMessagesMaxCharLength=(o=a==null?void 0:a.requestBodyLimits)==null?void 0:o.totalMessagesMaxCharLength,this.maxMessages=(s=a==null?void 0:a.requestBodyLimits)==null?void 0:s.maxMessages,ml.set(a,this,e),a.request&&(this.requestSettings=a.request),this.demo&&((n=(l=this.requestSettings).url)!==null&&n!==void 0||(l.url=Re.URL)),this.requestSettings.websocket&&Et.setup(this)}return k(r,[{key:"verifyKey",value:function(e,t){}},{key:"getServiceIOByType",value:function(e){if(e.type.startsWith("audio")&&this.fileTypes.audio)return this.fileTypes.audio;if(e.type.startsWith("image")){if(this.fileTypes.gifs&&e.type.endsWith("/gif"))return this.fileTypes.gifs;if(this.fileTypes.images)return this.fileTypes.images;if(this.camera)return this.camera}return this.fileTypes.mixedFiles}},{key:"request",value:function(){var a=S(h().mark(function t(n,i){var o,s,l=arguments;return h().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return o=l.length>2&&l[2]!==void 0?l[2]:!0,s=this.deepChat.stream,u.abrupt("return",s&&!re.isSimulation(s)?re.request(this,n,i):Z.request(this,n,i,o));case 3:case"end":return u.stop()}},t,this)}));function e(t,n){return a.apply(this,arguments)}return e}()},{key:"callAPIWithText",value:function(){var a=S(h().mark(function t(n,i){var o,s,l,c,u,d,p,m;return h().wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return p=H({messages:i},this.rawBody),m=!1,(l=this.requestSettings.headers)!=null&&l["Content-Type"]||((o=(c=this.requestSettings).headers)!==null&&o!==void 0||(c.headers={}),(s=(u=this.requestSettings.headers)["Content-Type"])!==null&&s!==void 0||(u["Content-Type"]="application/json"),m=!0),b.next=5,this.request(p,n);case 5:m&&((d=this.requestSettings.headers)==null||delete d["Content-Type"]);case 6:case"end":return b.stop()}},t,this)}));function e(t,n){return a.apply(this,arguments)}return e}()},{key:"callApiWithFiles",value:function(){var a=S(h().mark(function t(n,i,o){var s,l,c;return h().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:return s=r.createCustomFormDataBody(this.rawBody,i,o),l=this.requestSettings,c=this.getServiceIOByType(o[0]),this.requestSettings=(c==null?void 0:c.request)||this.requestSettings,d.next=4,this.request(s,n,!1);case 4:this.requestSettings=l;case 5:case"end":return d.stop()}},t,this)}));function e(t,n,i){return a.apply(this,arguments)}return e}()},{key:"callServiceAPI",value:function(){var a=S(h().mark(function t(n,i,o){return h().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:o?this.callApiWithFiles(n,i,o):this.callAPIWithText(n,i);case 1:case"end":return l.stop()}},t,this)}));function e(t,n,i){return a.apply(this,arguments)}return e}()},{key:"callAPI",value:function(){var a=S(h().mark(function t(n,i){var o,s;return h().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:if(this.requestSettings){c.next=2;break}throw new Error("Request settings have not been set up");case 2:o=vr.processMessages(i.messages,this.maxMessages,this.totalMessagesMaxCharLength),this.requestSettings.websocket?(s=H({messages:o},this.rawBody),Et.sendWebsocket(this,s,i,!1)):this.callServiceAPI(i,o,n.files);case 4:case"end":return c.stop()}},t,this)}));function e(t,n){return a.apply(this,arguments)}return e}()},{key:"extractResultData",value:function(){var a=S(h().mark(function t(n){return h().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:if(!n.error){o.next=2;break}throw n.error;case 2:if(!n.result){o.next=4;break}return o.abrupt("return",Ve.handleResponseProperty(n));case 4:if(!D.validateResponseFormat(n)){o.next=6;break}return o.abrupt("return",n);case 6:case"end":return o.stop()}},t)}));function e(t){return a.apply(this,arguments)}return e}()},{key:"isDirectConnection",value:function(){return!1}},{key:"isWebModel",value:function(){return!1}}],[{key:"canSendMessage",value:function(e,t,n){return n?!0:!!(e&&e.trim()!=="")||!!(t&&t.length>0)}},{key:"createCustomFormDataBody",value:function(e,t,n){var i=new FormData;n.forEach(function(l){return i.append("files",l)}),Object.keys(e).forEach(function(l){return i.append(l,String(e[l]))});var o=0;t.slice(0,t.length-1).forEach(function(l){i.append("message".concat(o+=1),JSON.stringify(l))});var s=t[t.length-1];return s.text&&(delete s.files,i.append("message".concat(o+=1),JSON.stringify(s))),i}}]),r}(),de=function(r){$(a,r);function a(e,t,n,i,o){var s;_(this,a);var l;return s=R(this,a,[e,o]),s.insertKeyPlaceholderText="API Key",s.keyHelpUrl="",Object.assign(s.rawBody,(l=e.request)==null?void 0:l.additionalBodyProps),s.keyVerificationDetails=t,s.buildHeadersFunc=n,i&&s.setApiKeyProperties(i),s.requestSettings=s.buildRequestSettings(s.key||"",e.request),s}return k(a,[{key:"setApiKeyProperties",value:function(t){this.key=t.key,t.validateKeyProperty&&(this.validateConfigKey=t.validateKeyProperty)}},{key:"buildRequestSettings",value:function(t,n){var i,o=n??{};return(i=o.headers)!==null&&i!==void 0||(o.headers={}),Object.assign(o.headers,this.buildHeadersFunc(t)),o}},{key:"keyAuthenticated",value:function(t,n){this.requestSettings=this.buildRequestSettings(n,this.requestSettings),this.key=n,t()}},{key:"verifyKey",value:function(t,n){var i=this.keyVerificationDetails,o=i.url,s=i.method,l=i.handleVerificationResult,c=i.createHeaders,u=i.body,d=(c==null?void 0:c(t))||this.buildHeadersFunc(t);Z.verifyKey(t,o,d,s,this.keyAuthenticated.bind(this,n.onSuccess),n.onFail,n.onLoad,l,u)}},{key:"isDirectConnection",value:function(){return!0}}]),a}(Xt),hl=function(){function r(){_(this,r)}return k(r,null,[{key:"waitForPropertiesToBeUpdatedBeforeRender",value:function(e){e._propUpdated_=!1,setTimeout(function(){e._propUpdated_?r.waitForPropertiesToBeUpdatedBeforeRender(e):(e._waitingToRender_=!1,e.onRender())})}},{key:"attemptRender",value:function(e){e._propUpdated_=!0,e._waitingToRender_||(e._waitingToRender_=!0,r.waitForPropertiesToBeUpdatedBeforeRender(e))}}]),r}(),br=function(r){$(a,r);function a(){var e;return _(this,a),e=R(this,a),e._waitingToRender_=!1,e._propUpdated_=!1,Object.keys(a._attributeToProperty_).forEach(function(t){var n=a._attributeToProperty_[t];e.constructPropertyAccessors(n),e.hasOwnProperty(t)||e.constructPropertyAccessors(n,t)}),e}return k(a,[{key:"constructPropertyAccessors",value:function(t,n){var i;Object.defineProperty(this,n||t,{get:function(){return i},set:function(s){i=s,n?this[t]=s:hl.attemptRender(this)}})}},{key:"attributeChangedCallback",value:function(t,n,i){if(n!==i){var o=a._attributes_[t](i),s=a._attributeToProperty_[t];this[s]=o}}},{key:"onRender",value:function(){}}],[{key:"observedAttributes",get:function(){return Object.keys(a._attributes_)||[]}}]),a}(Xn(HTMLElement));br._attributes_={};br._attributeToProperty_={};var gl=br,fl=`<?xml version="1.0" standalone="no"?>
|
|
47
|
-
<svg version="1.1"
|
|
48
|
-
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
|
49
|
-
xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="0.9em" height="0.9em"
|
|
50
|
-
viewBox="0 0 1200 1200" enable-background="new 0 0 1200 1200">
|
|
51
|
-
<path d="
|
|
52
|
-
M669.727,273.516c-22.891-2.476-46.15-3.895-69.727-4.248c-103.025,0.457-209.823,25.517-310.913,73.536
|
|
53
|
-
c-75.058,37.122-148.173,89.529-211.67,154.174C46.232,529.978,6.431,577.76,0,628.74c0.76,44.162,48.153,98.67,77.417,131.764
|
|
54
|
-
c59.543,62.106,130.754,113.013,211.67,154.174c2.75,1.335,5.51,2.654,8.276,3.955l-75.072,131.102l102.005,60.286l551.416-960.033
|
|
55
|
-
l-98.186-60.008L669.727,273.516z M902.563,338.995l-74.927,129.857c34.47,44.782,54.932,100.006,54.932,159.888
|
|
56
|
-
c0,149.257-126.522,270.264-282.642,270.264c-6.749,0-13.29-0.728-19.922-1.172l-49.585,85.84c22.868,2.449,45.99,4.233,69.58,4.541
|
|
57
|
-
c103.123-0.463,209.861-25.812,310.84-73.535c75.058-37.122,148.246-89.529,211.743-154.174
|
|
58
|
-
c31.186-32.999,70.985-80.782,77.417-131.764c-0.76-44.161-48.153-98.669-77.417-131.763
|
|
59
|
-
c-59.543-62.106-130.827-113.013-211.743-154.175C908.108,341.478,905.312,340.287,902.563,338.995L902.563,338.995z
|
|
60
|
-
M599.927,358.478c6.846,0,13.638,0.274,20.361,0.732l-58.081,100.561c-81.514,16.526-142.676,85.88-142.676,168.897
|
|
61
|
-
c0,20.854,3.841,40.819,10.913,59.325c0.008,0.021-0.008,0.053,0,0.074l-58.228,100.854
|
|
62
|
-
c-34.551-44.823-54.932-100.229-54.932-160.182C317.285,479.484,443.808,358.477,599.927,358.478L599.927,358.478z M768.896,570.513
|
|
63
|
-
L638.013,797.271c81.076-16.837,141.797-85.875,141.797-168.603C779.81,608.194,775.724,588.729,768.896,570.513L768.896,570.513z"
|
|
64
|
-
/>
|
|
65
|
-
</svg>
|
|
66
|
-
`,vl=`<?xml version="1.0" standalone="no"?>
|
|
67
|
-
<svg version="1.1"
|
|
68
|
-
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
|
69
|
-
xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="0.9em" height="0.9em"
|
|
70
|
-
viewBox="0 0 1200 1200" enable-background="new 0 0 1200 1200">
|
|
71
|
-
<path id="path6686" inkscape:connector-curvature="0" d="M779.843,599.925c0,95.331-80.664,172.612-180.169,172.612
|
|
72
|
-
c-99.504,0-180.168-77.281-180.168-172.612c0-95.332,80.664-172.612,180.168-172.612
|
|
73
|
-
C699.179,427.312,779.843,504.594,779.843,599.925z M600,240.521c-103.025,0.457-209.814,25.538-310.904,73.557
|
|
74
|
-
c-75.058,37.122-148.206,89.496-211.702,154.141C46.208,501.218,6.431,549,0,599.981c0.76,44.161,48.13,98.669,77.394,131.763
|
|
75
|
-
c59.543,62.106,130.786,113.018,211.702,154.179c94.271,45.751,198.616,72.092,310.904,73.557
|
|
76
|
-
c103.123-0.464,209.888-25.834,310.866-73.557c75.058-37.122,148.243-89.534,211.74-154.179
|
|
77
|
-
c31.185-32.999,70.962-80.782,77.394-131.763c-0.76-44.161-48.13-98.671-77.394-131.764
|
|
78
|
-
c-59.543-62.106-130.824-112.979-211.74-154.141C816.644,268.36,712.042,242.2,600,240.521z M599.924,329.769
|
|
79
|
-
c156.119,0,282.675,120.994,282.675,270.251c0,149.256-126.556,270.25-282.675,270.25S317.249,749.275,317.249,600.02
|
|
80
|
-
C317.249,450.763,443.805,329.769,599.924,329.769L599.924,329.769z"/>
|
|
81
|
-
</svg>
|
|
82
|
-
`,he=function(){function r(){_(this,r)}return k(r,null,[{key:"createSVGElement",value:function(e){return new DOMParser().parseFromString(e,"image/svg+xml").documentElement}}]),r}(),Mi=function(){function r(){_(this,r)}return k(r,null,[{key:"changeVisibility",value:function(e,t,n,i){i.target.id===r.VISIBLE_ICON_ID?(t.style.display="none",n.style.display="block",e.type="password"):(t.style.display="block",n.style.display="none",e.type="text")}},{key:"createIconElement",value:function(e,t){var n=he.createSVGElement(e);return n.id=t,n.classList.add("visibility-icon"),n}},{key:"create",value:function(e){var t=document.createElement("div");t.id="visibility-icon-container";var n=r.createIconElement(vl,r.VISIBLE_ICON_ID);n.style.display="none",t.appendChild(n);var i=r.createIconElement(fl,"not-visible-icon");return t.appendChild(i),t.onclick=r.changeVisibility.bind(this,e,n,i),t}}]),r}();Mi.VISIBLE_ICON_ID="visible-icon";var bl=Mi,yl=function(){function r(){_(this,r)}return k(r,null,[{key:"createCautionText",value:function(){var e=document.createElement("a");return e.classList.add("insert-key-input-help-text"),e.innerText="Please exercise CAUTION when inserting your API key outside of deepchat.dev or localhost!!",e}},{key:"createHelpLink",value:function(e){var t=document.createElement("a");return t.classList.add("insert-key-input-help-text"),t.href=e,t.innerText="Find more info here",t.target="_blank",t}},{key:"createFailText",value:function(){var e=document.createElement("div");return e.id="insert-key-input-invalid-text",e.style.display="none",e}},{key:"createHelpTextContainer",value:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,n=document.createElement("div");n.id="insert-key-help-text-container";var i=document.createElement("div");i.id="insert-key-help-text-contents";var o=r.createFailText();if(i.appendChild(o),e){var s=r.createHelpLink(e);i.appendChild(s)}if(t===!0){var l=r.createCautionText();i.appendChild(l)}return n.appendChild(i),{helpTextContainerElement:n,failTextElement:o}}},{key:"onFail",value:function(e,t,n,i){e.classList.replace("insert-key-input-valid","insert-key-input-invalid"),n.innerText=i,n.style.display="block",t.innerText="Start",e.classList.remove("loading")}},{key:"onLoad",value:function(e,t){e.classList.add("loading"),t.innerHTML='<div id="loading-ring"></div>'}},{key:"verifyKey",value:function(e,t,n){var i=e.value.trim();n.verifyKey(i,t)}},{key:"addVerificationEvents",value:function(e,t,n,i,o){var s={onSuccess:i,onFail:r.onFail.bind(this,e,t,n),onLoad:r.onLoad.bind(this,e,t)},l=r.verifyKey.bind(this,e,s,o);t.onclick=l,e.onkeydown=function(c){!e.classList.contains("loading")&&c.key===te.ENTER&&l()}}},{key:"createStartButton",value:function(){var e=document.createElement("div");return e.id="start-button",e.innerText="Start",e}},{key:"onInputFocus",value:function(e){e.target.classList.replace("insert-key-input-invalid","insert-key-input-valid")}},{key:"createInput",value:function(e){var t=document.createElement("div");t.id="insert-key-input-container";var n=document.createElement("input");return n.id="insert-key-input",n.placeholder=e||"API Key",n.type="password",n.classList.add("insert-key-input-valid"),n.onfocus=r.onInputFocus,t.appendChild(n),t}},{key:"createContents",value:function(e,t){var n,i=document.createElement("div");i.id="insert-key-contents";var o=r.createInput(t.insertKeyPlaceholderText),s=o.children[0],l=bl.create(s);o.appendChild(l),i.appendChild(o);var c=r.createStartButton(),u=r.createHelpTextContainer(t.keyHelpUrl,(n=t.deepChat._insertKeyViewStyles)==null?void 0:n.displayCautionText),d=u.helpTextContainerElement,p=u.failTextElement;return i.appendChild(c),i.appendChild(d),r.addVerificationEvents(s,c,p,e,t),i}},{key:"createElements",value:function(e,t){var n=document.createElement("div");n.id="insert-key-view";var i=r.createContents(e,t);return n.appendChild(i),n}},{key:"render",value:function(e,t,n){var i=r.createElements(t,n);e.replaceChildren(i)}}]),r}(),Tt=function(){function r(){_(this,r)}return k(r,null,[{key:"enableButtons",value:function(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;window.webLLM?(e&&(e.disabled=!1),t&&(t.disabled=!1)):n<yr.MODULE_SEARCH_LIMIT_S*4&&setTimeout(function(){return r.enableButtons(e,t,n+1)},250)}},{key:"setUpInitial",value:function(e,t,n,i){var o=(t==null?void 0:t.downloadClass)||r.DOWNLOAD_BUTTON_CLASS,s=(t==null?void 0:t.uploadClass)||r.UPLOAD_BUTTON_CLASS,l=(t==null?void 0:t.fileInputClass)||r.FILE_INPUT_CLASS;return setTimeout(function(){var c=n==null?void 0:n.getElementsByClassName(o)[0],u=n==null?void 0:n.getElementsByClassName(l)[0],d=n==null?void 0:n.getElementsByClassName(s)[0];c&&(c.onclick=function(){return e()}),u&&(u.onchange=function(){u.files&&u.files.length>0&&e(u.files)}),d&&(d.onclick=function(){return u.click()}),(c||d)&&r.enableButtons(c,d)}),(t==null?void 0:t.initialHtml)||`<div>
|
|
83
|
-
Download or upload a web model that will run entirely on your browser: <br/>
|
|
84
|
-
<button disabled class="`.concat(o,` deep-chat-button deep-chat-web-model-button">Download</button>
|
|
85
|
-
`).concat(i?"":'<input type="file" class="'.concat(l,`" hidden multiple />
|
|
86
|
-
<button disabled class="`).concat(s,' deep-chat-button deep-chat-web-model-button">Upload</button>'),`
|
|
87
|
-
</div>`)}},{key:"exportFile",value:function(e){for(var t=document.createElement("a"),n=4,i=function(l){setTimeout(function(){for(var c=l*n,u=c;u<Math.min(c+n,e.length);u+=1){var d=URL.createObjectURL(e[u]);t.href=d,t.download=e[u].name,document.body.appendChild(t),t.click(),URL.revokeObjectURL(d)}},500*l)},o=0;o<e.length/n;o+=1)i(o)}},{key:"setUpAfterLoad",value:function(e,t,n,i){var o=(t==null?void 0:t.exportFilesClass)||r.EXPORT_BUTTON_CLASS;return setTimeout(function(){var s=n==null?void 0:n.getElementsByClassName(o)[0];s&&(s.onclick=function(){return r.exportFile(e)})}),(t==null?void 0:t.afterLoadHtml)||`<div>
|
|
88
|
-
Model loaded successfully and has been cached for future requests.
|
|
89
|
-
`.concat(i?"":'<br/> <button style="margin-top: 5px" class="'.concat(o,' deep-chat-button">Export</button>'),`
|
|
90
|
-
</div>`)}}]),r}();Tt.DOWNLOAD_BUTTON_CLASS="deep-chat-download-button";Tt.UPLOAD_BUTTON_CLASS="deep-chat-upload-button";Tt.FILE_INPUT_CLASS="deep-chat-file-input";Tt.EXPORT_BUTTON_CLASS="deep-chat-export-button";var Jr=Tt,Xr={model_list:[{model_url:"https://huggingface.co/mlc-ai/Llama-2-7b-chat-hf-q4f32_1-MLC/resolve/main/",local_id:"Llama-2-7b-chat-hf-q4f32_1",model_lib_url:"https://raw.githubusercontent.com/mlc-ai/binary-mlc-llm-libs/main/Llama-2-7b-chat-hf/Llama-2-7b-chat-hf-q4f32_1-ctx4k_cs1k-webgpu.wasm",vram_required_MB:9109.03,low_resource_required:!1},{model_url:"https://huggingface.co/mlc-ai/Llama-2-7b-chat-hf-q4f16_1-MLC/resolve/main/",local_id:"Llama-2-7b-chat-hf-q4f16_1",model_lib_url:"https://raw.githubusercontent.com/mlc-ai/binary-mlc-llm-libs/main/Llama-2-7b-chat-hf/Llama-2-7b-chat-hf-q4f16_1-ctx4k_cs1k-webgpu.wasm",vram_required_MB:6749.02,low_resource_required:!1,required_features:["shader-f16"]},{model_url:"https://huggingface.co/mlc-ai/Llama-2-7b-chat-hf-q4f16_1-MLC/resolve/main/",local_id:"Llama-2-7b-chat-hf-q4f16_1-1k",model_lib_url:"https://raw.githubusercontent.com/mlc-ai/binary-mlc-llm-libs/main/Llama-2-7b-chat-hf/Llama-2-7b-chat-hf-q4f16_1-ctx1k-webgpu.wasm",vram_required_MB:4618.52,low_resource_required:!1,required_features:["shader-f16"]},{model_url:"https://huggingface.co/mlc-ai/Llama-2-13b-chat-hf-q4f16_1-MLC/resolve/main/",local_id:"Llama-2-13b-chat-hf-q4f16_1",model_lib_url:"https://raw.githubusercontent.com/mlc-ai/binary-mlc-llm-libs/main/Llama-2-13b-chat-hf/Llama-2-13b-chat-hf-q4f16_1-ctx4k_cs1k-webgpu.wasm",vram_required_MB:11814.09,low_resource_required:!1,required_features:["shader-f16"]},{model_url:"https://huggingface.co/mlc-ai/Llama-2-70b-chat-hf-q4f16_1-MLC/resolve/main/",local_id:"Llama-2-70b-chat-hf-q4f16_1",model_lib_url:"https://raw.githubusercontent.com/mlc-ai/binary-mlc-llm-libs/main/Llama-2-70b-chat-hf/Llama-2-70b-chat-hf-q4f16_1-ctx4k_cs1k-webgpu.wasm",vram_required_MB:43729.05,low_resource_required:!1,required_features:["shader-f16"]},{model_url:"https://huggingface.co/mlc-ai/RedPajama-INCITE-Chat-3B-v1-q4f16_1-MLC/resolve/main/",local_id:"RedPajama-INCITE-Chat-3B-v1-q4f16_1",model_lib_url:"https://raw.githubusercontent.com/mlc-ai/binary-mlc-llm-libs/main/RedPajama-INCITE-Chat-3B-v1/RedPajama-INCITE-Chat-3B-v1-q4f16_1-ctx2k-webgpu.wasm",vram_required_MB:2972.09,low_resource_required:!1,required_features:["shader-f16"]},{model_url:"https://huggingface.co/mlc-ai/RedPajama-INCITE-Chat-3B-v1-q4f32_1-MLC/resolve/main/",local_id:"RedPajama-INCITE-Chat-3B-v1-q4f32_1",model_lib_url:"https://raw.githubusercontent.com/mlc-ai/binary-mlc-llm-libs/main/RedPajama-INCITE-Chat-3B-v1/RedPajama-INCITE-Chat-3B-v1-q4f32_1-ctx2k-webgpu.wasm",vram_required_MB:3928.09,low_resource_required:!1},{model_url:"https://huggingface.co/mlc-ai/RedPajama-INCITE-Chat-3B-v1-q4f16_1-MLC/resolve/main/",local_id:"RedPajama-INCITE-Chat-3B-v1-q4f16_1-1k",model_lib_url:"https://raw.githubusercontent.com/mlc-ai/binary-mlc-llm-libs/main/RedPajama-INCITE-Chat-3B-v1/RedPajama-INCITE-Chat-3B-v1-q4f16_1-ctx1k-webgpu.wasm",vram_required_MB:2041.09,low_resource_required:!0,required_features:["shader-f16"]},{model_url:"https://huggingface.co/mlc-ai/RedPajama-INCITE-Chat-3B-v1-q4f32_1-MLC/resolve/main/",local_id:"RedPajama-INCITE-Chat-3B-v1-q4f32_1-1k",model_lib_url:"https://raw.githubusercontent.com/mlc-ai/binary-mlc-llm-libs/main/RedPajama-INCITE-Chat-3B-v1/RedPajama-INCITE-Chat-3B-v1-q4f32_1-ctx1k-webgpu.wasm",vram_required_MB:2558.09,low_resource_required:!0},{model_url:"https://huggingface.co/mlc-ai/WizardMath-7B-V1.1-q4f16_1-MLC/resolve/main/",local_id:"WizardMath-7B-V1.1-q4f16_1",model_lib_url:"https://raw.githubusercontent.com/mlc-ai/binary-mlc-llm-libs/main/Mistral-7B-Instruct-v0.2/Mistral-7B-Instruct-v0.2-q4f16_1-sw4k_cs1k-webgpu.wasm",vram_required_MB:6079.02,low_resource_required:!1,required_features:["shader-f16"]},{model_url:"https://huggingface.co/mlc-ai/Mistral-7B-Instruct-v0.2-q4f16_1-MLC/resolve/main/",local_id:"Mistral-7B-Instruct-v0.2-q4f16_1",model_lib_url:"https://raw.githubusercontent.com/mlc-ai/binary-mlc-llm-libs/main/Mistral-7B-Instruct-v0.2/Mistral-7B-Instruct-v0.2-q4f16_1-sw4k_cs1k-webgpu.wasm",vram_required_MB:6079.02,low_resource_required:!1,required_features:["shader-f16"]},{model_url:"https://huggingface.co/mlc-ai/OpenHermes-2.5-Mistral-7B-q4f16_1-MLC/resolve/main/",local_id:"OpenHermes-2.5-Mistral-7B-q4f16_1",model_lib_url:"https://raw.githubusercontent.com/mlc-ai/binary-mlc-llm-libs/main/Mistral-7B-Instruct-v0.2/Mistral-7B-Instruct-v0.2-q4f16_1-sw4k_cs1k-webgpu.wasm",vram_required_MB:6079.02,low_resource_required:!1,required_features:["shader-f16"]},{model_url:"https://huggingface.co/mlc-ai/NeuralHermes-2.5-Mistral-7B-q4f16_1-MLC/resolve/main/",local_id:"NeuralHermes-2.5-Mistral-7B-q4f16_1",model_lib_url:"https://raw.githubusercontent.com/mlc-ai/binary-mlc-llm-libs/main/Mistral-7B-Instruct-v0.2/Mistral-7B-Instruct-v0.2-q4f16_1-sw4k_cs1k-webgpu.wasm",vram_required_MB:6079.02,low_resource_required:!1,required_features:["shader-f16"]},{model_url:"https://huggingface.co/mlc-ai/TinyLlama-1.1B-Chat-v0.4-q0f16-MLC/resolve/main/",local_id:"TinyLlama-1.1B-Chat-v0.4-q0f16",model_lib_url:"https://raw.githubusercontent.com/mlc-ai/binary-mlc-llm-libs/main/TinyLlama-1.1B-Chat-v0.4/TinyLlama-1.1B-Chat-v0.4-q0f16-ctx2k-webgpu.wasm",vram_required_MB:5063.52,low_resource_required:!1,required_features:["shader-f16"]},{model_url:"https://huggingface.co/mlc-ai/TinyLlama-1.1B-Chat-v0.4-q0f32-MLC/resolve/main/",local_id:"TinyLlama-1.1B-Chat-v0.4-q0f32",model_lib_url:"https://raw.githubusercontent.com/mlc-ai/binary-mlc-llm-libs/main/TinyLlama-1.1B-Chat-v0.4/TinyLlama-1.1B-Chat-v0.4-q0f32-ctx2k-webgpu.wasm",vram_required_MB:5394.53,low_resource_required:!1},{model_url:"https://huggingface.co/mlc-ai/TinyLlama-1.1B-Chat-v0.4-q4f16_1-MLC/resolve/main/",local_id:"TinyLlama-1.1B-Chat-v0.4-q4f16_1-1k",model_lib_url:"https://raw.githubusercontent.com/mlc-ai/binary-mlc-llm-libs/main/TinyLlama-1.1B-Chat-v0.4/TinyLlama-1.1B-Chat-v0.4-q4f16_1-ctx1k-webgpu.wasm",vram_required_MB:899.11,low_resource_required:!0,required_features:["shader-f16"]},{model_url:"https://huggingface.co/mlc-ai/TinyLlama-1.1B-Chat-v0.4-q4f32_1-MLC/resolve/main/",local_id:"TinyLlama-1.1B-Chat-v0.4-q4f32_1-1k",model_lib_url:"https://raw.githubusercontent.com/mlc-ai/binary-mlc-llm-libs/main/TinyLlama-1.1B-Chat-v0.4/TinyLlama-1.1B-Chat-v0.4-q4f32_1-ctx1k-webgpu.wasm",vram_required_MB:992.11,low_resource_required:!0}],use_web_worker:!0},ut=function(r){$(a,r);function a(e){var t;_(this,a);var n,i;return t=R(this,a,[e]),t._isModelLoaded=!1,t._isModelLoading=!1,t._loadOnFirstMessage=!1,t._webModel={},t.permittedErrorPrefixes=[a.MULTIPLE_MODELS_ERROR,a.WEB_LLM_NOT_FOUND_ERROR,a.GENERIC_ERROR],t._conversationHistory=[],I(e.webModel)=="object"&&(t._webModel=e.webModel),(n=t._webModel.load)!=null&&n.clearCache&&a.clearAllCache(),t.findModelInWindow(e),t.canSendMessage=t.canSubmit.bind(pe(t)),t._chatEl=(i=e.shadowRoot)==null?void 0:i.children[0],e.initialMessages&&a.setUpHistory(t._conversationHistory,e.initialMessages),t}return k(a,[{key:"setUpMessages",value:function(t){var n=this;this._messages=t,this._removeIntro=function(){t.removeIntroductoryMessage(),n._removeIntro=void 0}}},{key:"findModelInWindow",value:function(t){var n=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,o;window.webLLM?this.configureInit(this.shouldAddInitialMessage(t.introMessage)):i>a.MODULE_SEARCH_LIMIT_S?((o=this._messages)==null||o.addNewErrorMessage("service",a.WEB_LLM_NOT_FOUND_ERROR),console.error("The deep-chat-web-llm module has not been attached to the window object. Please see the following guide:"),console.error("https://deepchat.dev/examples/externalModules")):setTimeout(function(){return n.findModelInWindow(t,i+1)},1e3)}},{key:"shouldAddInitialMessage",value:function(t){var n;return!t&&this._webModel&&((n=this._webModel.introMessage)==null?void 0:n.displayed)!==!1}},{key:"scrollToTop",value:function(t){var n=this,i;((i=this._webModel.introMessage)==null?void 0:i.autoScroll)!==!1&&setTimeout(function(){var o,s;(o=n._messages)!=null&&o.elementRef&&me.scrollToTop((s=n._messages)==null?void 0:s.elementRef)},t)}},{key:"getIntroMessage",value:function(t){if(!(!this.shouldAddInitialMessage(t)||!this._chatEl)){var n=Jr.setUpInitial(this.init.bind(this),this._webModel.introMessage,this._chatEl,!!this._webModel.worker);return this.scrollToTop(1),{role:z.AI_ROLE,html:n,sendUpdate:!1}}}},{key:"configureInit",value:function(){var e=S(h().mark(function n(i){var o;return h().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:if(o=this._webModel.load,!o){l.next=8;break}if(!o.onInit){l.next=5;break}return this.init(),l.abrupt("return");case 5:if(!o.onMessage){l.next=8;break}return this._loadOnFirstMessage=!0,l.abrupt("return");case 8:i||this.init();case 9:case"end":return l.stop()}},n,this)}));function t(n){return e.apply(this,arguments)}return t}()},{key:"init",value:function(){var e=S(h().mark(function n(i){var o,s;return h().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:if((o=this._messages)==null||o.removeError(),s=this.attemptToCreateChat(),c.t0=s,!c.t0){c.next=6;break}return c.next=6,this.loadModel(s,i);case 6:case"end":return c.stop()}},n,this)}));function t(n){return e.apply(this,arguments)}return t}()},{key:"attemptToCreateChat",value:function(){var t;if(a.chat){(t=this._messages)==null||t.addNewErrorMessage("service",a.MULTIPLE_MODELS_ERROR),console.error(a.MULTIPLE_MODELS_ERROR);return}if(!(this._isModelLoaded||this._isModelLoading)){var n=this._webModel.worker;return Xr.use_web_worker&&n?new window.webLLM.ChatWorkerClient(n):new window.webLLM.ChatModule}}},{key:"getConfig",value:function(){var t,n=a.DEFAULT_MODEL;this._webModel.model&&(n=this._webModel.model);var i=JSON.parse(JSON.stringify(Xr));if(this._webModel.urls){var o=i.model_list.find(function(s){return s.local_id=n});o&&(this._webModel.urls.model&&(o.model_url=this._webModel.urls.model),this._webModel.urls.wasm&&(o.model_lib_url=this._webModel.urls.wasm))}return(t=this._webModel.load)!=null&&t.skipCache&&(i.use_cache=!1),{model:n,appConfig:i}}},{key:"loadModel",value:function(){var e=S(h().mark(function n(i,o){var s=this,l,c,u,d,p,m,g,b,v,y,f,w,L,E,O;return h().wrap(function(q){for(;;)switch(q.prev=q.next){case 0:return this.scrollToTop(),a.chat=i,this._isModelLoading=!0,b=((l=this._webModel.introMessage)==null?void 0:l.displayed)===!1,v=function(Q){var Y;(Y=s._messages)==null||Y.addNewMessage({html:"<div>".concat(Q.text,"</div>"),overwrite:!0,sendUpdate:!1}),b&&(setTimeout(function(){var V;return me.scrollToBottom((V=s._messages)==null?void 0:V.elementRef)}),b=!1)},a.chat.setInitProgressCallback(v),q.prev=4,f=this.getConfig(),w=f.model,L=f.appConfig,E={},this._webModel.instruction&&(E.conv_config={system:this._webModel.instruction}),this._conversationHistory.length>0&&(E.conversation_history=this._conversationHistory),q.next=10,a.chat.reload(w,E,L,o);case 10:y=q.sent,q.next=16;break;case 13:return q.prev=13,q.t0=q.catch(4),q.abrupt("return",this.unloadChat(q.t0));case 16:(u=(c=this.deepChat)._validationHandler)==null||u.call(c),(d=this._webModel.introMessage)!=null&&d.removeAfterLoad?this._webModel.introMessage.displayed===!1?(m=this._messages)==null||m.removeLastMessage():(g=this._removeIntro)==null||g.call(this):(O=Jr.setUpAfterLoad(y,this._webModel.introMessage,this._chatEl,!!this._webModel.worker),(p=this._messages)==null||p.addNewMessage({html:O,overwrite:!0,sendUpdate:!1})),this._isModelLoaded=!0,this._isModelLoading=!1;case 18:case"end":return q.stop()}},n,this,[[4,13]])}));function t(n,i){return e.apply(this,arguments)}return t}()},{key:"unloadChat",value:function(){var e=S(h().mark(function n(i){var o;return h().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:if((o=this._messages)==null||o.addNewErrorMessage("service",a.GENERIC_ERROR),console.error(i),this._isModelLoaded=!1,this._isModelLoading=!1,l.t0=a.chat,!l.t0){l.next=9;break}return l.next=8,a.chat.unload();case 8:a.chat=void 0;case 9:case"end":return l.stop()}},n,this)}));function t(n){return e.apply(this,arguments)}return t}()},{key:"immediateResp",value:function(){var e=S(h().mark(function n(i,o,s){var l,c;return h().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:return d.next=2,s.generate(o,void 0,0);case 2:return d.t0=d.sent,l={text:d.t0},d.next=6,a.processResponse(this.deepChat,i,l);case 6:c=d.sent,c&&i.addNewMessage(c),this.completionsHandlers.onFinish();case 8:case"end":return d.stop()}},n,this)}));function t(n,i,o){return e.apply(this,arguments)}return t}()},{key:"streamResp",value:function(){var e=S(h().mark(function n(i,o,s){var l=this,c;return h().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:return this.streamHandlers.abortStream.abort=function(){s.interruptGenerate()},this.streamHandlers.onOpen(),c=new He(i),d.next=4,s.generate(o,function(){var p=S(h().mark(function m(g,b){var v;return h().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return f.next=2,a.processResponse(l.deepChat,i,{text:b});case 2:v=f.sent,v&&c.upsertStreamedMessage({text:v.text,overwrite:!0});case 4:case"end":return f.stop()}},m)}));return function(m,g){return p.apply(this,arguments)}}());case 4:c.finaliseStreamedMessage(),this.streamHandlers.onClose();case 6:case"end":return d.stop()}},n,this)}));function t(n,i,o){return e.apply(this,arguments)}return t}()},{key:"generateRespByType",value:function(){var e=S(h().mark(function n(i,o,s,l){var c;return h().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:if(d.prev=0,!s){d.next=6;break}return d.next=4,this.streamResp(i,o,l);case 4:d.next=8;break;case 6:return d.next=8,this.immediateResp(i,o,l);case 8:d.next=13;break;case 10:d.prev=10,d.t0=d.catch(0),(c=this._messages)==null||c.addNewErrorMessage("service"),console.log(d.t0);case 13:case"end":return d.stop()}},n,this,[[0,10]])}));function t(n,i,o,s){return e.apply(this,arguments)}return t}()},{key:"generateResp",value:function(){var e=S(h().mark(function n(i,o,s){var l,c,u,d,p,m,g;return h().wrap(function(v){for(;;)switch(v.prev=v.next){case 0:return l=o[o.length-1].text,v.next=3,D.processRequestInterceptor(this.deepChat,{body:{text:l}});case 3:c=v.sent,u=c.body,d=c.error,p=!!this.deepChat.stream;try{d?(D.displayError(i,new Error(d)),(p?this.streamHandlers.onClose:this.completionsHandlers.onFinish)()):!u||!u.text?(m=X.INVALID_MODEL_REQUEST({body:u},!1),console.error(m),g=p?this.streamHandlers.onClose:this.completionsHandlers.onFinish,D.onInterceptorError(i,m,g)):this.generateRespByType(i,u.text,!!this.deepChat.stream,s)}catch(y){this.unloadChat(y)}case 8:case"end":return v.stop()}},n,this)}));function t(n,i,o){return e.apply(this,arguments)}return t}()},{key:"callServiceAPI",value:function(){var e=S(h().mark(function n(i,o){var s,l;return h().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:if(this._isModelLoaded){u.next=7;break}if(!this._loadOnFirstMessage){u.next=6;break}return u.next=4,this.init();case 4:u.next=7;break;case 6:return u.abrupt("return");case 7:!a.chat||this._isModelLoading||((s=this._webModel.introMessage)!=null&&s.removeAfterMessage&&((l=this._removeIntro)==null||l.call(this)),i.addLoadingMessage(),this.generateResp(i,o,a.chat));case 8:case"end":return u.stop()}},n,this)}));function t(n,i){return e.apply(this,arguments)}return t}()},{key:"canSubmit",value:function(t){return!(t!=null&&t.trim())||this._isModelLoading?!1:this._loadOnFirstMessage?!0:!!this._isModelLoaded}},{key:"isWebModel",value:function(){return!0}}],[{key:"setUpHistory",value:function(t,n){n.forEach(function(i,o){if(i.role===z.USER_ROLE&&i.text){var s=n[o+1];s!=null&&s.text&&s.role!==z.USER_ROLE&&t.push([i.text,s.text])}})}},{key:"processResponse",value:function(){var e=S(h().mark(function n(i,o,s){var l,c,u;return h().wrap(function(p){for(;;)switch(p.prev=p.next){case 0:return p.next=2,(l=i.responseInterceptor)==null?void 0:l.call(i,s);case 2:if(p.t0=p.sent,p.t0){p.next=5;break}p.t0=s;case 5:if(c=p.t0,!c.error){p.next=11;break}return D.displayError(o,new Error(c.error)),p.abrupt("return");case 11:if(!(!c||!c.text)){p.next=15;break}return u=X.INVALID_MODEL_RESPONSE(s,!!i.responseInterceptor,c),D.displayError(o,new Error(u)),p.abrupt("return");case 15:return p.abrupt("return",c);case 16:case"end":return p.stop()}},n)}));function t(n,i,o){return e.apply(this,arguments)}return t}()},{key:"clearAllCache",value:function(){a.clearCache("webllm/model"),a.clearCache("webllm/wasm")}},{key:"clearCache",value:function(t){caches.open(t).then(function(n){n.keys().then(function(i){i.forEach(function(o){n.delete(o)})})})}}]),a}(Xt);ut.GENERIC_ERROR="Error, please check the [troubleshooting](https://deepchat.dev/docs/webModel#troubleshooting) section of documentation for help.";ut.MULTIPLE_MODELS_ERROR="Cannot run multiple web models";ut.WEB_LLM_NOT_FOUND_ERROR="WebLLM module not found";ut.DEFAULT_MODEL="Llama-2-7b-chat-hf-q4f32_1";ut.MODULE_SEARCH_LIMIT_S=5;var yr=ut,Qr=function(){function r(){_(this,r)}return k(r,null,[{key:"buildHeaders",value:function(e){return{Authorization:"Bearer ".concat(e),"Content-Type":"application/json"}}},{key:"handleVerificationResult",value:function(e,t,n,i){var o=e;Array.isArray(o.error)&&o.error[0]==="Error in `parameters`: field required"?n(t):i(X.INVALID_KEY)}},{key:"buildKeyVerificationDetails",value:function(){return{url:"https://api-inference.huggingface.co/models/gpt2",method:"POST",handleVerificationResult:r.handleVerificationResult}}}]),r}(),xi=function(r){$(a,r);function a(e,t,n,i,o,s){var l;return _(this,a),l=R(this,a,[e,Qr.buildKeyVerificationDetails(),Qr.buildHeaders,o,s]),l.insertKeyPlaceholderText="Hugging Face Token",l.keyHelpUrl="https://huggingface.co/settings/tokens",l.introPanelMarkUp=`
|
|
91
|
-
<div style="width: 100%; text-align: center; margin-left: -10px"><b>Hugging Face</b></div>
|
|
92
|
-
<p>First message may take an extented amount of time to complete as the model needs to be initialized.</p>`,l.permittedErrorPrefixes=["Authorization header"],l.url="".concat(a.URL_PREFIX).concat(n),l.textInputPlaceholderText=t,I(i)=="object"&&(i.model&&(l.url="".concat(a.URL_PREFIX).concat(i.model)),i.options&&(l.rawBody.options=i.options),i.parameters&&(l.rawBody.parameters=i.parameters)),l}return k(a,[{key:"preprocessBody",value:function(t,n,i){var o,s=JSON.parse(JSON.stringify(t)),l=n[n.length-1].text;if(l)return(o=s.options)!==null&&o!==void 0||(s.options={}),s.options.wait_for_model=!0,H({inputs:l},s)}},{key:"callServiceAPI",value:function(){var e=S(h().mark(function n(i,o,s){var l;return h().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:if(this.requestSettings){u.next=2;break}throw new Error("Request settings have not been set up");case 2:l=this.preprocessBody(this.rawBody,o,s),Z.request(this,l,i);case 4:case"end":return u.stop()}},n,this)}));function t(n,i,o){return e.apply(this,arguments)}return t}()}]),a}(de);xi.URL_PREFIX="https://api-inference.huggingface.co/models/";var Je=xi,_r=function(r){$(a,r);function a(e,t,n,i,o,s){var l;return _(this,a),l=R(this,a,[e,t,n,i,o,s]),l.isTextInputDisabled=!0,l.canSendMessage=a.canSendFile,l}return k(a,[{key:"preprocessBody",value:function(t,n,i){return i[0]}},{key:"callServiceAPI",value:function(){var e=S(h().mark(function n(i,o,s){return h().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:if(this.requestSettings){c.next=2;break}throw new Error("Request settings have not been set up");case 2:if(s!=null&&s[0]){c.next=4;break}throw new Error("No file was added");case 4:Z.poll(this,s[0],i,!1);case 5:case"end":return c.stop()}},n,this)}));function t(n,i,o){return e.apply(this,arguments)}return t}()}],[{key:"canSendFile",value:function(t,n){return!!(n!=null&&n[0])}}]),a}(Je),_l=function(r){$(a,r);function a(e){_(this,a);var t,n,i,o=(n=(t=e.directConnection)==null?void 0:t.huggingFace)==null?void 0:n.audioClassification,s=(i=e.directConnection)==null?void 0:i.huggingFace;return R(this,a,[e,"Attach an audio file","ehcalabres/wav2vec2-lg-xlsr-en-speech-emotion-recognition",o,s,{audio:{}}])}return k(a,[{key:"extractPollResultData",value:function(){var e=S(h().mark(function n(i){var o;return h().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:if(!i.estimated_time){l.next=2;break}return l.abrupt("return",{timeoutMS:(i.estimated_time+1)*1e3});case 2:if(!i.error){l.next=4;break}throw i.error;case 4:return l.abrupt("return",{text:((o=i[0])==null?void 0:o.label)||""});case 5:case"end":return l.stop()}},n)}));function t(n){return e.apply(this,arguments)}return t}()}]),a}(_r),kl=function(r){$(a,r);function a(e){_(this,a);var t,n,i,o=(n=(t=e.directConnection)==null?void 0:t.huggingFace)==null?void 0:n.imageClassification,s=(i=e.directConnection)==null?void 0:i.huggingFace;return R(this,a,[e,"Attach an image file","google/vit-base-patch16-224",o,s,{images:{}}])}return k(a,[{key:"extractPollResultData",value:function(){var e=S(h().mark(function n(i){var o;return h().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:if(!i.estimated_time){l.next=2;break}return l.abrupt("return",{timeoutMS:(i.estimated_time+1)*1e3});case 2:if(!i.error){l.next=4;break}throw i.error;case 4:return l.abrupt("return",{text:((o=i[0])==null?void 0:o.label)||""});case 5:case"end":return l.stop()}},n)}));function t(n){return e.apply(this,arguments)}return t}()}]),a}(_r),Mt="data:image/png;base64,",Ne=function(){function r(){_(this,r)}return k(r,null,[{key:"buildHeaders",value:function(e){return{Authorization:"Bearer ".concat(e),"Content-Type":"application/json"}}},{key:"handleVerificationResult",value:function(e,t,n,i){e.message?i(X.INVALID_KEY):n(t)}},{key:"buildKeyVerificationDetails",value:function(){return{url:"https://api.stability.ai/v1/engines/list",method:"GET",handleVerificationResult:r.handleVerificationResult}}}]),r}(),cn=function(r){$(a,r);function a(e,t,n,i,o){var s;return _(this,a),s=R(this,a,[e,t,n,i,o]),s.insertKeyPlaceholderText="Stability AI API Key",s.keyHelpUrl="https://platform.stability.ai/docs/getting-started/authentication",s.permittedErrorPrefixes=["Incorrect","invalid_"],s}return k(a)}(de),wl=function(r){$(a,r);function a(e){var t;_(this,a);var n,i=JSON.parse(JSON.stringify(e.directConnection)),o=i==null?void 0:i.stabilityAI,s={images:{files:{acceptedFormats:".png",maxNumberOfFiles:1}}};t=R(this,a,[e,Ne.buildKeyVerificationDetails(),Ne.buildHeaders,o,s]),t.url="https://api.stability.ai/v1/generation/esrgan-v1-x2plus/image-to-image/upscale",t.textInputPlaceholderText="Describe image changes",t.introPanelMarkUp=`
|
|
93
|
-
<div style="width: 100%; text-align: center; margin-left: -10px"><b>Stability AI</b></div>
|
|
94
|
-
<div style="width: 100%; text-align: center; margin-left: -10px; margin-top: 5px"><b>Image to Image Upscale</b></div>
|
|
95
|
-
<p>Upload an image to generate a new one with higher resolution.</p>
|
|
96
|
-
<p>Click <a href="https://platform.stability.ai/">here</a> for more info.</p>`;var l=(n=i==null?void 0:i.stabilityAI)==null?void 0:n.imageToImageUpscale;return I(l)=="object"&&(l.engine_id&&(t.url="https://api.stability.ai/v1/generation/".concat(l.engine_id,"/image-to-image/upscale")),a.cleanConfig(l),Object.assign(t.rawBody,l)),t.canSendMessage=a.canSendFileMessage,t}return k(a,[{key:"createFormDataBody",value:function(t,n){var i=new FormData;return i.append("image",n),Object.keys(t).forEach(function(o){i.append(o,String(t[o]))}),i}},{key:"callServiceAPI",value:function(){var e=S(h().mark(function n(i,o,s){var l;return h().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:if(this.requestSettings){u.next=2;break}throw new Error("Request settings have not been set up");case 2:if(s){u.next=4;break}throw new Error("Image was not found");case 4:l=this.createFormDataBody(this.rawBody,s[0]),D.tempRemoveContentHeader(this.requestSettings,Z.request.bind(this,this,l,i),!1);case 6:case"end":return u.stop()}},n,this)}));function t(n,i,o){return e.apply(this,arguments)}return t}()},{key:"extractResultData",value:function(){var e=S(h().mark(function n(i){return h().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:if(!i.message){s.next=2;break}throw i.message;case 2:return s.abrupt("return",{files:i.artifacts.map(function(l){return{src:"".concat(Mt).concat(l.base64),type:"image"}})});case 3:case"end":return s.stop()}},n)}));function t(n){return e.apply(this,arguments)}return t}()}],[{key:"cleanConfig",value:function(t){delete t.engine_id}},{key:"canSendFileMessage",value:function(t,n){return!!(n!=null&&n[0])}}]),a}(cn),Sl=function(r){$(a,r);function a(e){var t;_(this,a);var n,i=JSON.parse(JSON.stringify(e.directConnection)),o=i==null?void 0:i.stabilityAI,s={images:{files:{acceptedFormats:".png",maxNumberOfFiles:2}}};t=R(this,a,[e,Ne.buildKeyVerificationDetails(),Ne.buildHeaders,o,s]),t.url="https://api.stability.ai/v1/generation/stable-diffusion-xl-1024-v1-0/image-to-image/masking",t._maskSource="MASK_IMAGE_WHITE",t.textInputPlaceholderText="Describe image changes",t.introPanelMarkUp=`
|
|
97
|
-
<div style="width: 100%; text-align: center; margin-left: -10px"><b>Stability AI</b></div>
|
|
98
|
-
<div style="width: 100%; text-align: center; margin-left: -10px; margin-top: 5px"><b>Image to Image Masking</b></div>
|
|
99
|
-
<p>Upload an image, its mask image to create a new one based on the changes you have described for the mask area.</p>
|
|
100
|
-
<p>Click <a href="https://platform.stability.ai/">here</a> for more info.</p>`;var l=(n=i==null?void 0:i.stabilityAI)==null?void 0:n.imageToImageMasking;return I(l)=="object"&&(l.engine_id&&(t.url="https://api.stability.ai/v1/generation/".concat(l.engine_id,"/image-to-image/masking")),l.weight!==void 0&&l.weight!==null&&(t._imageWeight=l.weight),l.mask_source!==void 0&&l.mask_source!==null&&(t._maskSource=l.mask_source),a.cleanConfig(l),Object.assign(t.rawBody,l)),t.canSendMessage=a.canSendFileTextMessage,t}return k(a,[{key:"createFormDataBody",value:function(t,n,i,o){var s=new FormData;return s.append("init_image",n),s.append("mask_source",String(this._maskSource)),s.append("mask_image",i),o&&o!==""&&s.append("text_prompts[0][text]",o),this._imageWeight!==void 0&&this._imageWeight!==null&&s.append("text_prompts[0][weight]",String(this._imageWeight)),Object.keys(t).forEach(function(l){s.append(l,String(t[l]))}),s.get("weight")===void 0&&s.append("weight",String(1)),s}},{key:"callServiceAPI",value:function(){var e=S(h().mark(function n(i,o,s){var l,c,u,d;return h().wrap(function(m){for(;;)switch(m.prev=m.next){case 0:if(this.requestSettings){m.next=2;break}throw new Error("Request settings have not been set up");case 2:if(!(!s||!s[0]||!s[1])){m.next=4;break}throw new Error("Image was not found");case 4:u=(c=(l=o[o.length-1])==null?void 0:l.text)==null?void 0:c.trim(),d=this.createFormDataBody(this.rawBody,s[0],s[1],u),D.tempRemoveContentHeader(this.requestSettings,Z.request.bind(this,this,d,i),!1);case 6:case"end":return m.stop()}},n,this)}));function t(n,i,o){return e.apply(this,arguments)}return t}()},{key:"extractResultData",value:function(){var e=S(h().mark(function n(i){return h().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:if(!i.message){s.next=2;break}throw i.message;case 2:return s.abrupt("return",{files:i.artifacts.map(function(l){return{src:"".concat(Mt).concat(l.base64),type:"image"}})});case 3:case"end":return s.stop()}},n)}));function t(n){return e.apply(this,arguments)}return t}()}],[{key:"cleanConfig",value:function(t){delete t.engine_id,delete t.weight}},{key:"canSendFileTextMessage",value:function(t,n){return!!(n!=null&&n[0])&&!!(t&&t.trim()!=="")}}]),a}(cn),Cl=function(r){$(a,r);function a(e){_(this,a);var t,n,i,o=(n=(t=e.directConnection)==null?void 0:t.huggingFace)==null?void 0:n.audioSpeechRecognition,s=(i=e.directConnection)==null?void 0:i.huggingFace;return R(this,a,[e,"Attach an audio file","facebook/wav2vec2-large-960h-lv60-self",o,s,{audio:{}}])}return k(a,[{key:"extractPollResultData",value:function(){var e=S(h().mark(function n(i){return h().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:if(!i.estimated_time){s.next=2;break}return s.abrupt("return",{timeoutMS:(i.estimated_time+1)*1e3});case 2:if(!i.error){s.next=4;break}throw i.error;case 4:return s.abrupt("return",{text:i.text||""});case 5:case"end":return s.stop()}},n)}));function t(n){return e.apply(this,arguments)}return t}()}]),a}(_r),El=function(r){$(a,r);function a(e){_(this,a);var t,n,i,o=(n=(t=e.directConnection)==null?void 0:t.huggingFace)==null?void 0:n.textGeneration,s=(i=e.directConnection)==null?void 0:i.huggingFace;return R(this,a,[e,"Once upon a time","gpt2",o,s])}return k(a,[{key:"extractResultData",value:function(){var e=S(h().mark(function n(i){return h().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:if(!i.error){s.next=2;break}throw i.error;case 2:return s.abrupt("return",{text:i[0].generated_text||""});case 3:case"end":return s.stop()}},n)}));function t(n){return e.apply(this,arguments)}return t}()}]),a}(Je),Al=function(r){$(a,r);function a(e){var t;_(this,a);var n,i,o,s=(i=(n=e.directConnection)==null?void 0:n.huggingFace)==null?void 0:i.questionAnswer,l=(o=e.directConnection)==null?void 0:o.huggingFace;return t=R(this,a,[e,"Ask a question","bert-large-uncased-whole-word-masking-finetuned-squad",s,l]),t.permittedErrorPrefixes=["Authorization header","Error in"],t.context=s.context,t}return k(a,[{key:"preprocessBody",value:function(t,n){var i=n[n.length-1].text;if(i)return{inputs:{question:i,context:this.context,options:{wait_for_model:!0}}}}},{key:"extractResultData",value:function(){var e=S(h().mark(function n(i){return h().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:if(!i.error){s.next=2;break}throw i.error;case 2:return s.abrupt("return",{text:i.answer||""});case 3:case"end":return s.stop()}},n)}));function t(n){return e.apply(this,arguments)}return t}()}]),a}(Je),Pl=function(r){$(a,r);function a(e){_(this,a);var t,n,i,o=(n=(t=e.directConnection)==null?void 0:t.huggingFace)==null?void 0:n.summarization,s=(i=e.directConnection)==null?void 0:i.huggingFace;return R(this,a,[e,"Insert text to summarize","facebook/bart-large-cnn",o,s])}return k(a,[{key:"extractResultData",value:function(){var e=S(h().mark(function n(i){return h().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:if(!i.error){s.next=2;break}throw i.error;case 2:return s.abrupt("return",{text:i[0].summary_text||""});case 3:case"end":return s.stop()}},n)}));function t(n){return e.apply(this,arguments)}return t}()}]),a}(Je),Ll=function(r){$(a,r);function a(e){var t,n;_(this,a);var i,o,s,l=(o=(i=e.directConnection)==null?void 0:i.huggingFace)==null?void 0:o.conversation,c=(s=e.directConnection)==null?void 0:s.huggingFace;return n=R(this,a,[e,"Ask me anything!","facebook/blenderbot-400M-distill",l,c]),(t=n.maxMessages)!==null&&t!==void 0||(n.maxMessages=-1),n}return k(a,[{key:"processMessages",value:function(t){var n=t.filter(function(c){return c.text}),i=n[n.length-1].text,o=n.slice(0,n.length-1);if(i){var s=o.filter(function(c){return c.role==="user"}).map(function(c){return c.text}),l=o.filter(function(c){return c.role==="ai"}).map(function(c){return c.text});return{past_user_inputs:s,generated_responses:l,mostRecentMessageText:i}}}},{key:"preprocessBody",value:function(t,n){var i,o=JSON.parse(JSON.stringify(t)),s=this.processMessages(n);if(s)return(i=o.options)!==null&&i!==void 0||(o.options={}),o.options.wait_for_model=!0,H({inputs:{past_user_inputs:s.past_user_inputs,generated_responses:s.generated_responses,text:s.mostRecentMessageText}},o)}},{key:"extractResultData",value:function(){var e=S(h().mark(function n(i){return h().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:if(!i.error){s.next=2;break}throw i.error;case 2:return s.abrupt("return",{text:i.generated_text||""});case 3:case"end":return s.stop()}},n)}));function t(n){return e.apply(this,arguments)}return t}()}]),a}(Je),Tl=function(r){$(a,r);function a(e){var t;_(this,a);var n,i=JSON.parse(JSON.stringify(e.directConnection)),o=i.stabilityAI,s={images:{files:{acceptedFormats:".png",maxNumberOfFiles:1}}};t=R(this,a,[e,Ne.buildKeyVerificationDetails(),Ne.buildHeaders,o,s]),t.url="https://api.stability.ai/v1/generation/stable-diffusion-v1-6/image-to-image",t.textInputPlaceholderText="Describe image changes",t.introPanelMarkUp=`
|
|
101
|
-
<div style="width: 100%; text-align: center; margin-left: -10px"><b>Stability AI: Image to Image</b></div>
|
|
102
|
-
<p>Upload an image to create a new one with the changes you have described.</p>
|
|
103
|
-
<p>Click <a href="https://platform.stability.ai/">here</a> for more info.</p>`;var l=(n=i.stabilityAI)==null?void 0:n.imageToImage;return I(l)=="object"&&(l.engine_id&&(t.url="https://api.stability.ai/v1/generation/".concat(l.engine_id,"/text-to-image")),l.weight!==void 0&&l.weight!==null&&(t._imageWeight=l.weight),a.cleanConfig(l),Object.assign(t.rawBody,l)),t.canSendMessage=a.canSendFileTextMessage,t}return k(a,[{key:"createFormDataBody",value:function(t,n,i){var o=new FormData;return o.append("init_image",n),i&&i!==""&&o.append("text_prompts[0][text]",i),this._imageWeight!==void 0&&this._imageWeight!==null&&o.append("text_prompts[0][weight]",String(this._imageWeight)),Object.keys(t).forEach(function(s){o.append(s,String(t[s]))}),o.get("weight")===void 0&&o.append("weight",String(1)),o}},{key:"callServiceAPI",value:function(){var e=S(h().mark(function n(i,o,s){var l,c,u,d;return h().wrap(function(m){for(;;)switch(m.prev=m.next){case 0:if(this.requestSettings){m.next=2;break}throw new Error("Request settings have not been set up");case 2:if(s){m.next=4;break}throw new Error("Image was not found");case 4:u=(c=(l=o[o.length-1])==null?void 0:l.text)==null?void 0:c.trim(),d=this.createFormDataBody(this.rawBody,s[0],u),D.tempRemoveContentHeader(this.requestSettings,Z.request.bind(this,this,d,i),!1);case 6:case"end":return m.stop()}},n,this)}));function t(n,i,o){return e.apply(this,arguments)}return t}()},{key:"extractResultData",value:function(){var e=S(h().mark(function n(i){return h().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:if(!i.message){s.next=2;break}throw i.message;case 2:return s.abrupt("return",{files:i.artifacts.map(function(l){return{src:"".concat(Mt).concat(l.base64),type:"image"}})});case 3:case"end":return s.stop()}},n)}));function t(n){return e.apply(this,arguments)}return t}()}],[{key:"cleanConfig",value:function(t){delete t.engine_id,delete t.weight}},{key:"canSendFileTextMessage",value:function(t,n){return!!(n!=null&&n[0])&&!!(t&&t.trim()!=="")}}]),a}(cn),Ml=function(r){$(a,r);function a(e){_(this,a);var t,n,i,o=(n=(t=e.directConnection)==null?void 0:t.huggingFace)==null?void 0:n.translation,s=(i=e.directConnection)==null?void 0:i.huggingFace;return R(this,a,[e,"Insert text to translate","Helsinki-NLP/opus-tatoeba-en-ja",o,s])}return k(a,[{key:"extractResultData",value:function(){var e=S(h().mark(function n(i){return h().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:if(!i.error){s.next=2;break}throw i.error;case 2:return s.abrupt("return",{text:i[0].translation_text||""});case 3:case"end":return s.stop()}},n)}));function t(n){return e.apply(this,arguments)}return t}()}]),a}(Je),xl=function(r){$(a,r);function a(e){var t;_(this,a);var n,i=JSON.parse(JSON.stringify(e.directConnection)),o=i.stabilityAI;t=R(this,a,[e,Ne.buildKeyVerificationDetails(),Ne.buildHeaders,o]),t.url="https://api.stability.ai/v1/generation/stable-diffusion-v1-6/text-to-image",t.textInputPlaceholderText="Describe an image",t.introPanelMarkUp=`
|
|
104
|
-
<div style="width: 100%; text-align: center; margin-left: -10px"><b>Stability AI: Text to Image</b></div>
|
|
105
|
-
<p>Insert text to generate an image.</p>
|
|
106
|
-
<p>Click <a href="https://platform.stability.ai/">here</a> for more info.</p>`;var s=(n=i.stabilityAI)==null?void 0:n.textToImage;return I(s)=="object"&&(s.engine_id&&(t.url="https://api.stability.ai/v1/generation/".concat(s.engine_id,"/text-to-image")),s.weight!==void 0&&s.weight!==null&&(t._imageWeight=s.weight),a.cleanConfig(s),Object.assign(t.rawBody,s)),t.canSendMessage=a.canSendTextMessage,t}return k(a,[{key:"preprocessBody",value:function(t,n){var i=JSON.parse(JSON.stringify(t)),o={text:n};return this._imageWeight&&(o.weight=this._imageWeight),i.text_prompts=[o],i}},{key:"callServiceAPI",value:function(){var e=S(h().mark(function n(i,o){var s;return h().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:if(this.requestSettings){c.next=2;break}throw new Error("Request settings have not been set up");case 2:s=this.preprocessBody(this.rawBody,o[o.length-1].text),Z.request(this,s,i);case 4:case"end":return c.stop()}},n,this)}));function t(n,i){return e.apply(this,arguments)}return t}()},{key:"extractResultData",value:function(){var e=S(h().mark(function n(i){return h().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:if(!i.message){s.next=2;break}throw i.message;case 2:return s.abrupt("return",{files:i.artifacts.map(function(l){return{src:"".concat(Mt).concat(l.base64),type:"image"}})});case 3:case"end":return s.stop()}},n)}));function t(n){return e.apply(this,arguments)}return t}()}],[{key:"cleanConfig",value:function(t){delete t.engine_id,delete t.weight}},{key:"canSendTextMessage",value:function(t){return!!(t&&t.trim()!=="")}}]),a}(cn),Il=function(r){$(a,r);function a(e){var t;_(this,a);var n,i,o,s=(i=(n=e.directConnection)==null?void 0:n.huggingFace)==null?void 0:i.fillMask,l=(o=e.directConnection)==null?void 0:o.huggingFace;return t=R(this,a,[e,"The goal of life is [MASK].","bert-base-uncased",s,l]),t.introPanelMarkUp=`
|
|
107
|
-
<div style="width: 100%; text-align: center; margin-left: -10px"><b>Hugging Face</b></div>
|
|
108
|
-
<p>Insert a sentence with the word [MASK] and the model will try to fill it for you. E.g. I want [MASK].</p>
|
|
109
|
-
<p>First message may take an extented amount of time to complete as the model needs to be initialized.</p>`,t.permittedErrorPrefixes=["Authorization header","No mask_token"],t}return k(a,[{key:"extractResultData",value:function(){var e=S(h().mark(function n(i){return h().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:if(!i.error){s.next=2;break}throw i.error;case 2:return s.abrupt("return",{text:i[0].sequence||""});case 3:case"end":return s.stop()}},n)}));function t(n){return e.apply(this,arguments)}return t}()}]),a}(Je),ea=function(){function r(){_(this,r)}return k(r,null,[{key:"buildHeaders",value:function(e){return{Authorization:"Bearer ".concat(e),"Content-Type":"application/json",accept:"application/json"}}},{key:"handleVerificationResult",value:function(e,t,n,i){var o;(o=e.message)!=null&&o.includes("invalid request: prompt must be at least 1 token long")?n(t):i(X.INVALID_KEY)}},{key:"buildKeyVerificationDetails",value:function(){return{url:"https://api.cohere.ai/v1/generate",method:"POST",handleVerificationResult:r.handleVerificationResult,body:JSON.stringify({prompt:""})}}}]),r}(),kr=function(r){$(a,r);function a(e,t,n,i,o){var s;return _(this,a),s=R(this,a,[e,ea.buildKeyVerificationDetails(),ea.buildHeaders,o]),s.insertKeyPlaceholderText="Cohere API Key",s.keyHelpUrl="https://dashboard.cohere.ai/api-keys",s.permittedErrorPrefixes=["invalid"],s.url=t,s.textInputPlaceholderText=n,i&&I(i)=="object"&&Object.assign(s.rawBody,i),s}return k(a)}(de),Rl=function(r){$(a,r);function a(e){_(this,a);var t,n,i,o=(n=(t=e.directConnection)==null?void 0:t.cohere)==null?void 0:n.textGeneration,s=(i=e.directConnection)==null?void 0:i.cohere;return R(this,a,[e,"https://api.cohere.ai/v1/generate","Once upon a time",o,s])}return k(a,[{key:"preprocessBody",value:function(t,n){var i=JSON.parse(JSON.stringify(t)),o=n[n.length-1].text;if(o)return H({prompt:o},i)}},{key:"callServiceAPI",value:function(){var e=S(h().mark(function n(i,o){var s;return h().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:if(this.requestSettings){c.next=2;break}throw new Error("Request settings have not been set up");case 2:s=this.preprocessBody(this.rawBody,o),Z.request(this,s,i);case 4:case"end":return c.stop()}},n,this)}));function t(n,i){return e.apply(this,arguments)}return t}()},{key:"extractResultData",value:function(){var e=S(h().mark(function n(i){var o;return h().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:if(!i.message){l.next=2;break}throw i.message;case 2:return l.abrupt("return",{text:((o=i.generations)==null?void 0:o[0].text)||""});case 3:case"end":return l.stop()}},n)}));function t(n){return e.apply(this,arguments)}return t}()}]),a}(kr),$l=function(r){$(a,r);function a(e){_(this,a);var t,n,i,o=(n=(t=e.directConnection)==null?void 0:t.cohere)==null?void 0:n.summarization,s=(i=e.directConnection)==null?void 0:i.cohere;return R(this,a,[e,"https://api.cohere.ai/v1/summarize","Insert text to summarize",o,s])}return k(a,[{key:"preprocessBody",value:function(t,n){var i=JSON.parse(JSON.stringify(t)),o=n[n.length-1].text;if(o)return H({text:o},i)}},{key:"callServiceAPI",value:function(){var e=S(h().mark(function n(i,o){var s;return h().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:if(this.requestSettings){c.next=2;break}throw new Error("Request settings have not been set up");case 2:s=this.preprocessBody(this.rawBody,o),Z.request(this,s,i);case 4:case"end":return c.stop()}},n,this)}));function t(n,i){return e.apply(this,arguments)}return t}()},{key:"extractResultData",value:function(){var e=S(h().mark(function n(i){return h().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:if(!i.message){s.next=2;break}throw i.message;case 2:return s.abrupt("return",{text:i.summary||""});case 3:case"end":return s.stop()}},n)}));function t(n){return e.apply(this,arguments)}return t}()}]),a}(kr),se=function(){function r(){_(this,r)}return k(r,null,[{key:"buildHeaders",value:function(e){return{Authorization:"Bearer ".concat(e),"Content-Type":"application/json"}}},{key:"handleVerificationResult",value:function(e,t,n,i){var o=e;o.error?o.error.code==="invalid_api_key"?i(X.INVALID_KEY):i(X.CONNECTION_FAILED):n(t)}},{key:"buildKeyVerificationDetails",value:function(){return{url:"https://api.openai.com/v1/models",method:"GET",handleVerificationResult:r.handleVerificationResult}}},{key:"directFetch",value:function(){var a=S(h().mark(function t(n,i,o){var s,l,c=arguments;return h().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:return s=c.length>3&&c[3]!==void 0?c[3]:!0,n.requestSettings.method=o,d.next=4,D.fetch(n,n.requestSettings.headers,s,i).then(function(p){return D.processResponseByType(p)});case 4:if(l=d.sent,!l.error){d.next=7;break}throw l.error.message;case 7:return d.abrupt("return",l);case 8:case"end":return d.stop()}},t)}));function e(t,n,i){return a.apply(this,arguments)}return e}()}]),r}(),wr=function(r){$(a,r);function a(e){var t,n,i;_(this,a);var o,s,l,c=JSON.parse(JSON.stringify(e.directConnection)),u=c==null?void 0:c.openAI;i=R(this,a,[e,se.buildKeyVerificationDetails(),se.buildHeaders,u]),i.insertKeyPlaceholderText="OpenAI API Key",i.keyHelpUrl="https://platform.openai.com/account/api-keys",i.url="https://api.openai.com/v1/audio/speech",i.permittedErrorPrefixes=["Invalid"],i.introPanelMarkUp=`
|
|
110
|
-
<div style="width: 100%; text-align: center; margin-left: -10px"><b>OpenAI : Text To Speech</b></div>
|
|
111
|
-
<p>Generate an audio file based on your text input.</p>
|
|
112
|
-
<p>Click <a href="https://platform.openai.com/docs/guides/text-to-speech">here</a> for more information.</p>`;var d=(o=c==null?void 0:c.openAI)==null?void 0:o.textToSpeech;return I(d)=="object"&&Object.assign(i.rawBody,d),(t=(s=i.rawBody).model)!==null&&t!==void 0||(s.model=a.DEFAULT_MODEL),(n=(l=i.rawBody).voice)!==null&&n!==void 0||(l.voice=a.DEFAULT_VOIDE),i.textInputPlaceholderText="Insert text to generate audio",i.rawBody.response_format="mp3",i}return k(a,[{key:"preprocessBody",value:function(t,n){var i,o,s=JSON.parse(JSON.stringify(t)),l=(o=(i=n[n.length-1])==null?void 0:i.text)==null?void 0:o.trim();return l&&l!==""&&(s.input=l),s}},{key:"callServiceAPI",value:function(){var e=S(h().mark(function n(i,o){var s,l;return h().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:if((s=this.requestSettings)!=null&&s.headers){u.next=2;break}throw new Error("Request settings have not been set up");case 2:this.url=this.requestSettings.url||this.url,l=this.preprocessBody(this.rawBody,o),Z.request(this,l,i);case 5:case"end":return u.stop()}},n,this)}));function t(n,i){return e.apply(this,arguments)}return t}()},{key:"extractResultData",value:function(){var e=S(h().mark(function n(i){return h().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:if(!(i instanceof Blob)){s.next=2;break}return s.abrupt("return",new Promise(function(l){var c=new FileReader;c.readAsDataURL(i),c.onload=function(u){l({files:[{src:u.target.result,type:"audio"}]})}}));case 2:if(!i.error){s.next=4;break}throw i.error.message;case 4:return s.abrupt("return",{error:"error"});case 5:case"end":return s.stop()}},n)}));function t(n){return e.apply(this,arguments)}return t}()}]),a}(de);wr.DEFAULT_MODEL="tts-1";wr.DEFAULT_VOIDE="alloy";var Ol=wr,un=function(r){$(a,r);function a(e){var t,n;_(this,a);var i,o,s=JSON.parse(JSON.stringify(e.directConnection)),l=s==null?void 0:s.openAI;n=R(this,a,[e,se.buildKeyVerificationDetails(),se.buildHeaders,l,{audio:{}}]),n.insertKeyPlaceholderText="OpenAI API Key",n.keyHelpUrl="https://platform.openai.com/account/api-keys",n.introPanelMarkUp=`
|
|
113
|
-
<div style="width: 100%; text-align: center; margin-left: -10px"><b>OpenAI : Speech To Text</b></div>
|
|
114
|
-
<p><b>Upload an audio file</b> to transcribe it into text. You can optionally provide text to guide the audio
|
|
115
|
-
processing.
|
|
116
|
-
<p>Click <a href="https://platform.openai.com/docs/guides/speech-to-text">here</a> for more info.</p>`,n.url="",n.permittedErrorPrefixes=["Invalid"],n.textInputPlaceholderText="Upload an audio file",n._service_url=a.AUDIO_TRANSCRIPTIONS_URL;var c=(i=s==null?void 0:s.openAI)==null?void 0:i.audio;return I(c)=="object"&&(n.processConfig(c),a.cleanConfig(c),Object.assign(n.rawBody,c)),(t=(o=n.rawBody).model)!==null&&t!==void 0||(o.model=a.DEFAULT_MODEL),n.rawBody.response_format="json",n.canSendMessage=a.canSendFileMessage,n}return k(a,[{key:"processConfig",value:function(t){t!=null&&t.type&&t.type==="translation"&&(this._service_url=a.AUDIO_TRANSLATIONS_URL,delete t.language)}},{key:"preprocessBody",value:function(t,n){var i,o,s=JSON.parse(JSON.stringify(t)),l=(o=(i=n[n.length-1])==null?void 0:i.text)==null?void 0:o.trim();return l&&l!==""&&(s.prompt=l),s}},{key:"callServiceAPI",value:function(){var e=S(h().mark(function n(i,o,s){var l,c,u;return h().wrap(function(p){for(;;)switch(p.prev=p.next){case 0:if((l=this.requestSettings)!=null&&l.headers){p.next=2;break}throw new Error("Request settings have not been set up");case 2:if(s!=null&&s[0]){p.next=4;break}throw new Error("No file was added");case 4:this.url=this.requestSettings.url||this._service_url,c=this.preprocessBody(this.rawBody,o),u=a.createFormDataBody(c,s[0]),D.tempRemoveContentHeader(this.requestSettings,Z.request.bind(this,this,u,i),!1);case 7:case"end":return p.stop()}},n,this)}));function t(n,i,o){return e.apply(this,arguments)}return t}()},{key:"extractResultData",value:function(){var e=S(h().mark(function n(i){return h().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:if(!i.error){s.next=2;break}throw i.error.message;case 2:return s.abrupt("return",{text:i.text});case 3:case"end":return s.stop()}},n)}));function t(n){return e.apply(this,arguments)}return t}()}],[{key:"canSendFileMessage",value:function(t,n){return!!(n!=null&&n[0])}},{key:"cleanConfig",value:function(t){delete t.type}},{key:"createFormDataBody",value:function(t,n){var i=new FormData;return i.append("file",n),Object.keys(t).forEach(function(o){i.append(o,String(t[o]))}),i}}]),a}(de);un.AUDIO_TRANSCRIPTIONS_URL="https://api.openai.com/v1/audio/transcriptions";un.AUDIO_TRANSLATIONS_URL="https://api.openai.com/v1/audio/translations";un.DEFAULT_MODEL="whisper-1";var Nl=un,Ge=function(){function r(){_(this,r)}return k(r,null,[{key:"buildTextToSpeechHeaders",value:function(e,t){return{"Ocp-Apim-Subscription-Key":t,"Content-Type":"application/ssml+xml","X-Microsoft-OutputFormat":e}}},{key:"buildSpeechToTextHeaders",value:function(e){return{"Ocp-Apim-Subscription-Key":e,Accept:"application/json"}}},{key:"handleSpeechVerificationResult",value:function(e,t,n,i){e.error?i(X.INVALID_KEY):n(t)}},{key:"buildSpeechKeyVerificationDetails",value:function(e){return{url:"https://".concat(e,".api.cognitive.microsoft.com/sts/v1.0/issuetoken"),method:"POST",createHeaders:function(n){return{"Ocp-Apim-Subscription-Key":"".concat(n)}},handleVerificationResult:r.handleSpeechVerificationResult}}},{key:"buildSummarizationHeader",value:function(e){return{"Ocp-Apim-Subscription-Key":e,"Content-Type":"application/json"}}},{key:"handleLanguageVerificationResult",value:function(e,t,n,i){var o;((o=e.error)==null?void 0:o.code)==="401"?i(X.INVALID_KEY):n(t)}},{key:"buildLanguageKeyVerificationDetails",value:function(e){return{url:"".concat(e,"/language/analyze-text/jobs?api-version=2022-10-01-preview"),method:"POST",createHeaders:function(n){return{"Ocp-Apim-Subscription-Key":"".concat(n)}},handleVerificationResult:r.handleLanguageVerificationResult}}},{key:"handleTranslationVerificationResult",value:function(e,t,n,i){e.json().then(function(o){!Array.isArray(o)&&o.error.code===401e3?i(X.INVALID_KEY):n(t)})}},{key:"buildTranslationKeyVerificationDetails",value:function(e){return{url:"https://api.cognitive.microsofttranslator.com/translate?api-version=3.0&to=es",method:"POST",createHeaders:function(n){return r.buildTranslationHeaders(e,n)},handleVerificationResult:r.handleTranslationVerificationResult}}},{key:"buildTranslationHeaders",value:function(e,t){var n={"Ocp-Apim-Subscription-Key":t,"Content-Type":"application/json"};return e&&(n["Ocp-Apim-Subscription-Region"]=e),n}}]),r}(),zl=function(r){$(a,r);function a(e,t,n,i,o){var s;return _(this,a),s=R(this,a,[e,Ge.buildLanguageKeyVerificationDetails(n),t,i,o]),s.insertKeyPlaceholderText="Azure Language Subscription Key",s.keyHelpUrl="https://learn.microsoft.com/en-us/azure/api-management/api-management-subscriptions#create-and-manage-subscriptions-in-azure-portal",s.permittedErrorPrefixes=["Access"],s}return k(a)}(de),Dl=function(r){$(a,r);function a(e){var t,n;_(this,a);var i,o,s,l,c=(o=(i=e.directConnection)==null?void 0:i.azure)==null?void 0:o.summarization,u=(s=e.directConnection)==null?void 0:s.azure;return n=R(this,a,[e,Ge.buildSummarizationHeader,c.endpoint,u]),n.url="",n.textInputPlaceholderText="Insert text to summarize",(t=(l=n.rawBody).language)!==null&&t!==void 0||(l.language="en"),Object.assign(n.rawBody,c),n.url="".concat(c.endpoint,"/language/analyze-text/jobs?api-version=2022-10-01-preview"),n}return k(a,[{key:"preprocessBody",value:function(t,n){var i=n[n.length-1].text;if(i)return{analysisInput:{documents:[{id:"1",language:t.language,text:i}]},tasks:[{kind:"ExtractiveSummarization"}]}}},{key:"callServiceAPI",value:function(){var e=S(h().mark(function n(i,o){var s;return h().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:if(this.requestSettings){c.next=2;break}throw new Error("Request settings have not been set up");case 2:s=this.preprocessBody(this.rawBody,o),Z.request(this,s,i),this.messages=i;case 4:case"end":return c.stop()}},n,this)}));function t(n,i){return e.apply(this,arguments)}return t}()},{key:"extractResultData",value:function(){var e=S(h().mark(function n(i){var o,s,l;return h().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:if(!i.error){u.next=2;break}throw i.error.message;case 2:return this.messages&&this.completionsHandlers&&(s=i.headers.get("operation-location"),l={method:"GET",headers:(o=this.requestSettings)==null?void 0:o.headers},Z.executePollRequest(this,s,l,this.messages)),u.abrupt("return",{makingAnotherRequest:!0});case 4:case"end":return u.stop()}},n,this)}));function t(n){return e.apply(this,arguments)}return t}()},{key:"extractPollResultData",value:function(){var e=S(h().mark(function n(i){var o,s,l,c;return h().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:if(!i.error){d.next=2;break}throw i.error;case 2:if(i.status!=="running"){d.next=4;break}return d.abrupt("return",{timeoutMS:2e3});case 4:if(!(i.errors.length>0)){d.next=6;break}throw i.errors[0];case 6:if(!(i.tasks.items[0].results.errors.length>0)){d.next=8;break}throw i.tasks.items[0].results.errors[0];case 8:o="",s=oo(i.tasks.items[0].results.documents[0].sentences);try{for(s.s();!(l=s.n()).done;)c=l.value,o+=c.text}catch(p){s.e(p)}finally{s.f()}return d.abrupt("return",{text:o||""});case 12:case"end":return d.stop()}},n)}));function t(n){return e.apply(this,arguments)}return t}()}]),a}(zl),Bn=function(){function r(){_(this,r)}return k(r,null,[{key:"poll",value:function(){var a=S(h().mark(function t(n,i){var o,s,l,c;return h().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:return o={authorization:n,"content-type":"application/json"},d.t0="https://api.assemblyai.com/v2/transcript/",d.next=4,fetch("https://api.assemblyai.com/v2/transcript",{method:"POST",body:JSON.stringify({audio_url:i}),headers:o});case 4:return d.next=6,d.sent.json();case 6:d.t1=d.sent.id,s=d.t0.concat.call(d.t0,d.t1);case 8:if(l){d.next=24;break}return d.next=11,fetch(s,{headers:o});case 11:return d.next=13,d.sent.json();case 13:if(c=d.sent,c.status!=="completed"){d.next=18;break}l=c,d.next=22;break;case 18:if(c.status!=="error"){d.next=20;break}throw new Error("Transcription failed: ".concat(c.error));case 20:return d.next=22,new Promise(function(p){return setTimeout(p,3e3)});case 22:d.next=8;break;case 24:return d.abrupt("return",l);case 25:case"end":return d.stop()}},t)}));function e(t,n){return a.apply(this,arguments)}return e}()},{key:"buildHeaders",value:function(e){return{Authorization:e,"Content-Type":"application/octet-stream"}}},{key:"handleVerificationResult",value:function(e,t,n,i){var o=e;o.error?o.error.code==="invalid_api_key"?i(X.INVALID_KEY):i(X.CONNECTION_FAILED):n(t)}},{key:"buildKeyVerificationDetails",value:function(){return{url:"https://api.assemblyai.com/v2/upload",method:"POST",handleVerificationResult:r.handleVerificationResult}}}]),r}(),Bl=function(r){$(a,r);function a(e){var t;_(this,a);var n,i=(n=e.directConnection)==null?void 0:n.assemblyAI;return t=R(this,a,[e,Bn.buildKeyVerificationDetails(),Bn.buildHeaders,i,{audio:{}}]),t.insertKeyPlaceholderText="AssemblyAI API Key",t.keyHelpUrl="https://www.assemblyai.com/app/account",t.introPanelMarkUp=`
|
|
117
|
-
<div style="width: 100%; text-align: center; margin-left: -10px"><b>AssemblyAI Audio</b></div>
|
|
118
|
-
<p><b>Upload an audio file</b> to transcribe it into text.
|
|
119
|
-
<p>
|
|
120
|
-
Click <a href="https://www.assemblyai.com/docs/Guides/transcribing_an_audio_file#get-started">here</a> for more info.
|
|
121
|
-
</p>`,t.url="https://api.assemblyai.com/v2/upload",t.isTextInputDisabled=!0,t.textInputPlaceholderText="Upload an audio file",t.permittedErrorPrefixes=["Authentication","Invalid"],t.canSendMessage=a.canFileSendMessage,t}return k(a,[{key:"callServiceAPI",value:function(){var e=S(h().mark(function n(i,o,s){var l;return h().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:if((l=this.requestSettings)!=null&&l.headers){u.next=2;break}throw new Error("Request settings have not been set up");case 2:if(s!=null&&s[0]){u.next=4;break}throw new Error("No file was added");case 4:Z.request(this,s[0],i,!1);case 5:case"end":return u.stop()}},n,this)}));function t(n,i,o){return e.apply(this,arguments)}return t}()},{key:"extractResultData",value:function(){var e=S(h().mark(function n(i){var o,s,l;return h().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:if(!i.error){u.next=2;break}throw i.error;case 2:return l=(s=(o=this.requestSettings)==null?void 0:o.headers)==null?void 0:s.Authorization,u.next=5,Bn.poll(l,i.upload_url);case 5:return u.t0=u.sent.text,u.abrupt("return",{text:u.t0});case 7:case"end":return u.stop()}},n,this)}));function t(n){return e.apply(this,arguments)}return t}()}],[{key:"canFileSendMessage",value:function(t,n){return!!(n!=null&&n[0])}}]),a}(de),Ii=function(r){$(a,r);function a(e,t,n,i,o){var s;return _(this,a),s=R(this,a,[e,Ge.buildSpeechKeyVerificationDetails(n),t,i,o]),s.insertKeyPlaceholderText="Azure Speech Subscription Key",s.keyHelpUrl="https://learn.microsoft.com/en-us/azure/api-management/api-management-subscriptions#create-and-manage-subscriptions-in-azure-portal",s}return k(a)}(de),Ri=function(r){$(a,r);function a(e){var t,n,i,o;_(this,a);var s,l,c,u,d,p,m=(l=(s=e.directConnection)==null?void 0:s.azure)==null?void 0:l.textToSpeech,g=(c=e.directConnection)==null?void 0:c.azure;return o=R(this,a,[e,Ge.buildTextToSpeechHeaders.bind({},(m==null?void 0:m.outputFormat)||"audio-16khz-128kbitrate-mono-mp3"),m.region,g]),o.introPanelMarkUp=`
|
|
122
|
-
<div style="width: 100%; text-align: center; margin-left: -10px"><b>Azure Text To Speech</b></div>
|
|
123
|
-
<p>Insert text to synthesize it to audio.
|
|
124
|
-
<p>
|
|
125
|
-
Click <a href="`.concat(a.HELP_LINK,`">here</a> for more info.
|
|
126
|
-
</p>`),o.url="",Object.assign(o.rawBody,m),(t=(u=o.rawBody).lang)!==null&&t!==void 0||(u.lang="en-US"),(n=(d=o.rawBody).name)!==null&&n!==void 0||(d.name="en-US-JennyNeural"),(i=(p=o.rawBody).gender)!==null&&i!==void 0||(p.gender="Female"),o.url="https://".concat(m.region,".tts.speech.microsoft.com/cognitiveservices/v1"),o}return k(a,[{key:"preprocessBody",value:function(t,n){var i=n[n.length-1].text;if(i)return"<speak version='1.0' xml:lang='".concat(t.lang,`'>
|
|
127
|
-
<voice xml:lang='`).concat(t.lang,"' xml:gender='").concat(t.gender,"' name='").concat(t.name,`'>
|
|
128
|
-
`).concat(i,`
|
|
129
|
-
</voice>
|
|
130
|
-
</speak>`)}},{key:"callServiceAPI",value:function(){var e=S(h().mark(function n(i,o){var s;return h().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:if(this.requestSettings){c.next=2;break}throw new Error("Request settings have not been set up");case 2:s=this.preprocessBody(this.rawBody,o),Z.request(this,s,i,!1);case 4:case"end":return c.stop()}},n,this)}));function t(n,i){return e.apply(this,arguments)}return t}()},{key:"extractResultData",value:function(){var e=S(h().mark(function n(i){return h().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.abrupt("return",new Promise(function(l){var c=new FileReader;c.readAsDataURL(i),c.onload=function(u){l({files:[{src:u.target.result,type:"audio"}]})}}));case 1:case"end":return s.stop()}},n)}));function t(n){return e.apply(this,arguments)}return t}()}]),a}(Ii);Ri.HELP_LINK="https://learn.microsoft.com/en-GB/azure/cognitive-services/speech-service/get-started-text-to-speech?tabs=windows%2Cterminal&pivots=programming-language-rest";var Fl=Ri,$i=function(r){$(a,r);function a(e){var t;_(this,a);var n,i,o,s=(i=(n=e.directConnection)==null?void 0:n.azure)==null?void 0:i.speechToText,l=(o=e.directConnection)==null?void 0:o.azure,c={audio:{files:{acceptedFormats:".wav,.ogg"}}};t=R(this,a,[e,Ge.buildSpeechToTextHeaders,s.region,l,c]),t.introPanelMarkUp=`
|
|
131
|
-
<div style="width: 100%; text-align: center; margin-left: -10px"><b>Azure Speech To Text</b></div>
|
|
132
|
-
<p><b>Upload a .wav or .ogg audio file</b> to transcribe it into text.
|
|
133
|
-
<p>
|
|
134
|
-
Click <a href="`.concat(a.HELP_LINK,`">here</a> for more info.
|
|
135
|
-
</p>`),t.url="",t.isTextInputDisabled=!0,t.textInputPlaceholderText="Upload an audio file",t.canSendMessage=a.canFileSendMessage;var u=s.lang||"en-US";return t.url="https://".concat(s.region,".stt.speech.microsoft.com/speech/recognition/conversation/cognitiveservices/v1?language=").concat(u,"&format=detailed"),t.recordAudio=void 0,t}return k(a,[{key:"callServiceAPI",value:function(){var e=S(h().mark(function n(i,o,s){var l,c;return h().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:if((l=this.requestSettings)!=null&&l.headers){d.next=2;break}throw new Error("Request settings have not been set up");case 2:if(s!=null&&s[0]){d.next=4;break}throw new Error("No file was added");case 4:(c=this.requestSettings)!=null&&c.headers&&(this.requestSettings.headers["Content-Type"]=s[0].name.toLocaleLowerCase().endsWith(".wav")?"audio/wav; codecs=audio/pcm; samplerate=16000":"audio/ogg; codecs=opus"),Z.request(this,s[0],i,!1);case 5:case"end":return d.stop()}},n,this)}));function t(n,i,o){return e.apply(this,arguments)}return t}()},{key:"extractResultData",value:function(){var e=S(h().mark(function n(i){return h().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:if(!i.error){s.next=2;break}throw i.error;case 2:return s.abrupt("return",{text:i.DisplayText||""});case 3:case"end":return s.stop()}},n)}));function t(n){return e.apply(this,arguments)}return t}()}],[{key:"canFileSendMessage",value:function(t,n){return!!(n!=null&&n[0])}}]),a}(Ii);$i.HELP_LINK="https://learn.microsoft.com/en-GB/azure/cognitive-services/speech-service/get-started-text-to-speech?tabs=windows%2Cterminal&pivots=programming-language-rest";var jl=$i,ql=function(r){$(a,r);function a(e){var t;_(this,a);var n,i,o,s=(i=(n=e.directConnection)==null?void 0:n.azure)==null?void 0:i.translation,l=(o=e.directConnection)==null?void 0:o.azure;return t=R(this,a,[e,Ge.buildTranslationKeyVerificationDetails(s.region),Ge.buildTranslationHeaders.bind({},s==null?void 0:s.region),l]),t.insertKeyPlaceholderText="Azure Translate Subscription Key",t.keyHelpUrl="https://learn.microsoft.com/en-us/azure/api-management/api-management-subscriptions#create-and-manage-subscriptions-in-azure-portal",t.url="",t.url="https://api.cognitive.microsofttranslator.com/translate?api-version=3.0&to=".concat(s.language||"es"),t}return k(a,[{key:"preprocessBody",value:function(t){var n=t[t.length-1].text;if(n)return[{Text:n}]}},{key:"callServiceAPI",value:function(){var e=S(h().mark(function n(i,o){var s;return h().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:if(this.requestSettings){c.next=2;break}throw new Error("Request settings have not been set up");case 2:s=this.preprocessBody(o),Z.request(this,s,i);case 4:case"end":return c.stop()}},n,this)}));function t(n,i){return e.apply(this,arguments)}return t}()},{key:"extractResultData",value:function(){var e=S(h().mark(function n(i){var o;return h().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:if(!Array.isArray(i)){l.next=2;break}return l.abrupt("return",{text:((o=i[0].translations)==null?void 0:o[0].text)||""});case 2:throw i.error;case 3:case"end":return l.stop()}},n)}));function t(n){return e.apply(this,arguments)}return t}()}]),a}(de),ta=function(){function r(){_(this,r)}return k(r,null,[{key:"storeFiles",value:function(){var a=S(h().mark(function t(n,i,o){var s,l,c,u;return h().wrap(function(p){for(;;)switch(p.prev=p.next){case 0:if(s=n.requestSettings.headers,s){p.next=3;break}return p.abrupt("return");case 3:return n.url="https://api.openai.com/v1/files",l=s[D.CONTENT_TYPE],delete s[D.CONTENT_TYPE],c=o.map(function(){var m=S(h().mark(function g(b){var v;return h().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return v=new FormData,f.abrupt("return",(v.append("purpose","assistants"),v.append("file",b),new Promise(function(w){w(se.directFetch(n,v,"POST",!1))})));case 2:case"end":return f.stop()}},g)}));return function(g){return m.apply(this,arguments)}}()),p.prev=7,p.next=10,Promise.all(c);case 10:return u=p.sent.map(function(m){return m.id}),p.abrupt("return",(s[D.CONTENT_TYPE]=l,u));case 14:throw p.prev=14,p.t0=p.catch(7),s[D.CONTENT_TYPE]=l,D.displayError(i,p.t0),n.completionsHandlers.onFinish(),p.t0;case 17:case"end":return p.stop()}},t,null,[[7,14]])}));function e(t,n,i){return a.apply(this,arguments)}return e}()},{key:"getType",value:function(e,t){var n=e[t].path;return!n||n.endsWith("png")?"image":"any"}},{key:"getFiles",value:function(){var a=S(h().mark(function t(n,i){var o,s;return h().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return o=i.map(function(u){var d=u.fileId;return n.url="https://api.openai.com/v1/files/".concat(d,"/content"),new Promise(function(p){p(se.directFetch(n,void 0,"GET",!1))})}),c.next=3,Promise.all(o);case 3:return s=c.sent.map(function(u,d){return new Promise(function(p){var m=new FileReader;m.readAsDataURL(u),m.onload=function(g){p({src:g.target.result,name:i[d].name,type:r.getType(i,d)})}})}),c.next=6,Promise.all(s);case 6:return c.abrupt("return",c.sent);case 7:case"end":return c.stop()}},t)}));function e(t,n){return a.apply(this,arguments)}return e}()},{key:"getFileName",value:function(e){var t=e.split("/");return t[t.length-1]}},{key:"getFileDetails",value:function(e,t){var n,i=[];return(n=t==null?void 0:t.text)!=null&&n.value&&e.content.forEach(function(o){var s,l;(l=(s=o.text)==null?void 0:s.annotations)==null||l.forEach(function(c){var u;c.text&&c.text.startsWith("sandbox:")&&(u=c.file_path)!=null&&u.file_id&&i.push({path:c.text,fileId:c.file_path.file_id,name:r.getFileName(c.text)})})}),t!=null&&t.image_file&&i.push({fileId:t.image_file.file_id}),i}},{key:"getFilesAndNewText",value:function(){var a=S(h().mark(function t(n,i,o,s){var l,c,u;return h().wrap(function(p){for(;;)switch(p.prev=p.next){case 0:if(p.t0=i.length>0,!p.t0){p.next=6;break}return p.next=4,r.getFiles(n,i);case 4:u=p.sent,(l=s==null?void 0:s.text)!=null&&l.value&&u.forEach(function(m,g){var b;if(m.src){var v=i[g].path;(b=s==null?void 0:s.text)!=null&&b.value&&v&&(s.text.value=s.text.value.replace(v,m.src))}});case 6:return p.abrupt("return",{files:u,text:(c=s==null?void 0:s.text)==null?void 0:c.value,role:o});case 7:case"end":return p.stop()}},t)}));function e(t,n,i,o){return a.apply(this,arguments)}return e}()},{key:"getFilesAndText",value:function(){var a=S(h().mark(function t(n,i,o){var s;return h().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return s=r.getFileDetails(i,o),c.next=3,r.getFilesAndNewText(n,s,i.role,o);case 3:return c.abrupt("return",c.sent);case 4:case"end":return c.stop()}},t)}));function e(t,n,i){return a.apply(this,arguments)}return e}()}]),r}(),dn=function(r){$(a,r);function a(e){var t,n,i;_(this,a);var o,s,l,c,u,d,p=JSON.parse(JSON.stringify(e.directConnection)),m=p.openAI;i=R(this,a,[e,se.buildKeyVerificationDetails(),se.buildHeaders,m]),i.insertKeyPlaceholderText="OpenAI API Key",i.keyHelpUrl="https://platform.openai.com/account/api-keys",i.url="",i.permittedErrorPrefixes=["Incorrect"],i.searchedForThreadId=!1,i.config={},i.newAssistantDetails={model:"gpt-4"},i.shouldFetchHistory=!1;var g=(o=p.openAI)==null?void 0:o.assistant;if(I(g)=="object"){i.config=g;var b=i.config,v=b.new_assistant,y=b.thread_id,f=b.load_thread_history;Object.assign(i.newAssistantDetails,v),y&&(i.sessionId=y),f&&(i.shouldFetchHistory=!0);var w=(l=(s=e.directConnection)==null?void 0:s.openAI)==null?void 0:l.assistant,L=w.function_handler;L&&(i._functionHandler=L)}else(c=p.openAI)!=null&&c.assistant&&(p.openAI.assistant=g);return(t=(u=i.requestSettings).headers)!==null&&t!==void 0||(u.headers={}),(n=(d=i.requestSettings.headers)["OpenAI-Beta"])!==null&&n!==void 0||(d["OpenAI-Beta"]="assistants=v1"),i.maxMessages=1,i.shouldFetchHistory&&i.sessionId&&(i.fetchHistory=i.fetchHistoryFunc.bind(pe(i))),i}return k(a,[{key:"fetchHistoryFunc",value:function(){var e=S(h().mark(function n(){var i=this,o;return h().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return setTimeout(function(){return i.deepChat.disableSubmitButton()},2),l.prev=1,l.next=4,this.getThreadMessages(this.sessionId,!0);case 4:return o=l.sent,l.abrupt("return",(this.deepChat.disableSubmitButton(!1),o.reverse()));case 8:return l.prev=8,l.t0=l.catch(1),l.abrupt("return",[{error:"failed to fetch thread history"}]);case 11:case"end":return l.stop()}},n,this,[[1,8]])}));function t(){return e.apply(this,arguments)}return t}()},{key:"processMessage",value:function(t,n){var i=this.totalMessagesMaxCharLength||-1;return{content:vr.getCharacterLimitMessages(t,i)[0].text||"",role:"user",file_ids:n}}},{key:"createNewThreadMessages",value:function(t,n,i){var o=JSON.parse(JSON.stringify(t)),s=this.processMessage(n,i);return o.thread={messages:[s]},o}},{key:"callService",value:function(t,n,i){if(this.sessionId){this.url="".concat(a.THREAD_PREFIX,"/").concat(this.sessionId,"/messages");var o=this.processMessage(n,i);Z.request(this,o,t)}else{this.url="".concat(a.THREAD_PREFIX,"/runs");var s=this.createNewThreadMessages(this.rawBody,n,i);Z.request(this,s,t)}this.messages=t}},{key:"callServiceAPI",value:function(){var e=S(h().mark(function n(i,o,s){var l,c,u;return h().wrap(function(p){for(;;)switch(p.prev=p.next){case 0:if(this.requestSettings){p.next=2;break}throw new Error("Request settings have not been set up");case 2:if(!((l=(c=this.rawBody).assistant_id)!==null&&l!==void 0)){p.next=6;break}p.next=12;break;case 6:if(p.t0=this.config.assistant_id,p.t0){p.next=11;break}return p.next=10,this.createNewAssistant();case 10:p.t0=p.sent;case 11:c.assistant_id=p.t0;case 12:if(this.searchedForThreadId||this.searchPreviousMessagesForThreadId(i.messages),!s){p.next=19;break}return p.next=16,ta.storeFiles(this,i,s);case 16:p.t1=p.sent,p.next=20;break;case 19:p.t1=void 0;case 20:u=p.t1,this.requestSettings.method="POST",this.callService(i,o,u);case 22:case"end":return p.stop()}},n,this)}));function t(n,i,o){return e.apply(this,arguments)}return t}()},{key:"createNewAssistant",value:function(){var e=S(h().mark(function n(){var i;return h().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.prev=0,this.url=a.NEW_ASSISTANT_URL,s.next=4,se.directFetch(this,JSON.parse(JSON.stringify(this.newAssistantDetails)),"POST");case 4:return i=s.sent,s.abrupt("return",(this.config.assistant_id=i.id,this.config.assistant_id));case 8:s.prev=8,s.t0=s.catch(0),console.error(s.t0),console.error("Failed to create a new assistant");case 11:case"end":return s.stop()}},n,this,[[0,8]])}));function t(){return e.apply(this,arguments)}return t}()},{key:"searchPreviousMessagesForThreadId",value:function(t){var n=t.find(function(i){return i._sessionId});n&&(this.sessionId=n._sessionId),this.searchedForThreadId=!0}},{key:"extractResultData",value:function(){var e=S(h().mark(function n(i){var o,s,l;return h().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:if(!i.error){u.next=2;break}throw i.error.message;case 2:return u.next=4,this.assignThreadAndRun(i);case 4:return s="".concat(a.THREAD_PREFIX,"/").concat(this.sessionId,"/runs/").concat(this.run_id),l={method:"GET",headers:(o=this.requestSettings)==null?void 0:o.headers},u.abrupt("return",(Z.executePollRequest(this,s,l,this.messages),{makingAnotherRequest:!0}));case 6:case"end":return u.stop()}},n,this)}));function t(n){return e.apply(this,arguments)}return t}()},{key:"assignThreadAndRun",value:function(){var e=S(h().mark(function n(i){var o;return h().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:if(!this.sessionId){l.next=8;break}return this.url="".concat(a.THREAD_PREFIX,"/").concat(this.sessionId,"/runs"),l.next=4,se.directFetch(this,JSON.parse(JSON.stringify(this.rawBody)),"POST");case 4:o=l.sent,this.run_id=o.id,l.next=9;break;case 8:this.sessionId=i.thread_id,this.run_id=i.id,this.messages&&(this.messages.messages[this.messages.messages.length-1]._sessionId=this.sessionId);case 9:case"end":return l.stop()}},n,this)}));function t(n){return e.apply(this,arguments)}return t}()},{key:"getThreadMessages",value:function(){var e=S(h().mark(function n(i){var o=this,s,l,c,u,d,p=arguments;return h().wrap(function(g){for(;;)switch(g.prev=g.next){case 0:return s=p.length>1&&p[1]!==void 0?p[1]:!1,this.url="".concat(a.THREAD_PREFIX,"/").concat(i,"/messages"),g.next=4,se.directFetch(this,{},"GET");case 4:if(u=g.sent,g.t0=!s&&this.deepChat.responseInterceptor,!g.t0){g.next=10;break}return g.next=9,(c=(l=this.deepChat).responseInterceptor)==null?void 0:c.call(l,u);case 9:u=g.sent;case 10:return d=(s?u.data:[u.data[0]]).map(function(){var b=S(h().mark(function v(y){var f;return h().wrap(function(L){for(;;)switch(L.prev=L.next){case 0:return f=y.content.find(function(E){return!!E.text||!!E.image_file}),L.next=3,ta.getFilesAndText(o,y,f);case 3:return L.abrupt("return",L.sent);case 4:case"end":return L.stop()}},v)}));return function(v){return b.apply(this,arguments)}}()),g.abrupt("return",Promise.all(d));case 12:case"end":return g.stop()}},n,this)}));function t(n){return e.apply(this,arguments)}return t}()},{key:"extractPollResultData",value:function(){var e=S(h().mark(function n(i){var o,s,l,c,u,d,p,m,g,b,v;return h().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:if(c=i.status,u=i.required_action,!(c==="queued"||c==="in_progress")){f.next=3;break}return f.abrupt("return",{timeoutMS:a.POLLING_TIMEOUT_MS});case 3:if(!(c==="completed"&&this.messages)){f.next=11;break}return f.next=6,this.getThreadMessages(i.thread_id);case 6:return d=f.sent,p=d[0],m=p.text,g=p.files,f.abrupt("return",{text:m,_sessionId:this.sessionId,files:g});case 11:if(b=(o=u==null?void 0:u.submit_tool_outputs)==null?void 0:o.tool_calls,!(c==="requires_action"&&b)){f.next=22;break}return f.next=15,this.handleTools(b);case 15:return v=f.sent,f.next=18,(l=(s=this.deepChat).responseInterceptor)==null?void 0:l.call(s,v);case 18:if(f.t0=f.sent,f.t0){f.next=21;break}f.t0=v;case 21:return f.abrupt("return",f.t0);case 22:throw Error("Thread run status: ".concat(c));case 23:case"end":return f.stop()}},n,this)}));function t(n){return e.apply(this,arguments)}return t}()},{key:"handleTools",value:function(){var e=S(h().mark(function n(i){var o,s,l;return h().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:if(this._functionHandler){u.next=2;break}throw Error("Please define the `function_handler` property inside the [openAI](https://deepchat.dev/docs/directConnection/openAI#Assistant) object.");case 2:return o=i.map(function(d){return{name:d.function.name,arguments:d.function.arguments}}),u.next=5,this._functionHandler(o);case 5:if(s=u.sent,!(!Array.isArray(s)||s.find(function(d){return typeof d!="string"})||i.length!==s.length)){u.next=8;break}throw Error("Response must contain an array of strings for each individual function/tool_call, see https://deepchat.dev/docs/directConnection/OpenAI/#assistant-functions.");case 8:return l=s.map(function(d,p){return{tool_call_id:i[p].id,output:d}}),this.url="".concat(a.THREAD_PREFIX,"/").concat(this.sessionId,"/runs/").concat(this.run_id,"/submit_tool_outputs"),u.next=12,se.directFetch(this,{tool_outputs:l},"POST");case 12:return u.abrupt("return",{timeoutMS:a.POLLING_TIMEOUT_MS});case 13:case"end":return u.stop()}},n,this)}));function t(n){return e.apply(this,arguments)}return t}()}]),a}(de);dn.THREAD_PREFIX="https://api.openai.com/v1/threads";dn.NEW_ASSISTANT_URL="https://api.openai.com/v1/assistants";dn.POLLING_TIMEOUT_MS=800;var Vl=dn,pn=function(r){$(a,r);function a(e){var t;_(this,a);var n,i=e.directConnection,o=i==null?void 0:i.openAI,s={images:{files:{acceptedFormats:".png",maxNumberOfFiles:2}}};t=R(this,a,[e,se.buildKeyVerificationDetails(),se.buildHeaders,o,s]),t.insertKeyPlaceholderText="OpenAI API Key",t.keyHelpUrl="https://platform.openai.com/account/api-keys",t.introPanelMarkUp=`
|
|
136
|
-
<div style="width: 100%; text-align: center; margin-left: -10px"><b>OpenAI DALL·E</b></div>
|
|
137
|
-
<p><b>Insert text</b> to generate an image.</p>
|
|
138
|
-
<p><b>Upload 1</b> PNG image to generate its variation and optionally insert text to specify the change.</p>
|
|
139
|
-
<p><b>Upload 2</b> PNG images where the second is a copy of the first with a transparent area where the edit should
|
|
140
|
-
take place and text to specify the edit.</p>
|
|
141
|
-
<p>Click <a href="https://platform.openai.com/docs/guides/images/introduction">here</a> for more info.</p>`,t.url="",t.permittedErrorPrefixes=["Incorrect","Invalid input image"];var l=(n=i==null?void 0:i.openAI)==null?void 0:n.images;if(t.camera){var c=I(l)=="object"&&l.size?Number.parseInt(l.size):1024;t.camera.files={dimensions:{width:c,height:c}}}return I(l)=="object"&&Object.assign(t.rawBody,l),t.canSendMessage=a.canFileSendMessage,t}return k(a,[{key:"preprocessBody",value:function(t,n){var i=JSON.parse(JSON.stringify(t));return n&&n!==""&&(i.prompt=n),i}},{key:"callApiWithImage",value:function(t,n,i){var o,s,l,c=(s=(o=n[n.length-1])==null?void 0:o.text)==null?void 0:s.trim();if(i[1]||c&&c!==""){this.url=a.IMAGE_EDIT_URL;var u=this.preprocessBody(this.rawBody,c);l=a.createFormDataBody(u,i[0],i[1])}else this.url=a.IMAGE_VARIATIONS_URL,l=a.createFormDataBody(this.rawBody,i[0]);D.tempRemoveContentHeader(this.requestSettings,Z.request.bind(this,this,l,t),!1)}},{key:"callServiceAPI",value:function(){var e=S(h().mark(function n(i,o,s){var l,c;return h().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:if((l=this.requestSettings)!=null&&l.headers){d.next=2;break}throw new Error("Request settings have not been set up");case 2:if(!(s!=null&&s[0])){d.next=6;break}this.callApiWithImage(i,o,s),d.next=11;break;case 6:if(this.requestSettings){d.next=8;break}throw new Error("Request settings have not been set up");case 8:this.url=a.IMAGE_GENERATION_URL,c=this.preprocessBody(this.rawBody,o[o.length-1].text),Z.request(this,c,i);case 11:case"end":return d.stop()}},n,this)}));function t(n,i,o){return e.apply(this,arguments)}return t}()},{key:"extractResultData",value:function(){var e=S(h().mark(function n(i){return h().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:if(!i.error){s.next=2;break}throw i.error.message;case 2:return s.abrupt("return",{files:i.data.map(function(l){return l.url?{src:l.url,type:"image"}:{src:"".concat(Mt).concat(l.b64_json),type:"image"}})});case 3:case"end":return s.stop()}},n)}));function t(n){return e.apply(this,arguments)}return t}()}],[{key:"canFileSendMessage",value:function(t,n){return!!(n!=null&&n[0])||!!(t&&t.trim()!=="")}},{key:"createFormDataBody",value:function(t,n,i){var o=new FormData;return o.append("image",n),i&&o.append("mask",i),Object.keys(t).forEach(function(s){o.append(s,String(t[s]))}),o}}]),a}(de);pn.IMAGE_GENERATION_URL="https://api.openai.com/v1/images/generations";pn.IMAGE_VARIATIONS_URL="https://api.openai.com/v1/images/variations";pn.IMAGE_EDIT_URL="https://api.openai.com/v1/images/edits";var Ul=pn,Hl=function(r){$(a,r);function a(e){var t,n,i;_(this,a);var o,s,l,c,u=JSON.parse(JSON.stringify(e.directConnection)),d=u.openAI;i=R(this,a,[e,se.buildKeyVerificationDetails(),se.buildHeaders,d]),i.insertKeyPlaceholderText="OpenAI API Key",i.keyHelpUrl="https://platform.openai.com/account/api-keys",i.url="https://api.openai.com/v1/chat/completions",i.permittedErrorPrefixes=["Incorrect"],i.asyncCallInProgress=!1,i._systemMessage=a.generateSystemMessage("You are a helpful assistant.");var p=(o=u.openAI)==null?void 0:o.chat;if(I(p)=="object"){p.system_prompt&&(i._systemMessage=a.generateSystemMessage(p.system_prompt));var m=(l=(s=e.directConnection)==null?void 0:s.openAI)==null?void 0:l.chat,g=m.function_handler;g&&(i._functionHandler=g),i.cleanConfig(p),Object.assign(i.rawBody,p)}return(t=i.maxMessages)!==null&&t!==void 0||(i.maxMessages=-1),(n=(c=i.rawBody).model)!==null&&n!==void 0||(c.model="gpt-3.5-turbo"),i}return k(a,[{key:"cleanConfig",value:function(t){delete t.system_prompt,delete t.function_handler}},{key:"preprocessBody",value:function(t,n){var i,o=JSON.parse(JSON.stringify(t)),s=vr.getCharacterLimitMessages(n,this.totalMessagesMaxCharLength?this.totalMessagesMaxCharLength-this._systemMessage.content.length:-1).map(function(l){return{content:a.getContent(l),role:l.role===z.USER_ROLE?"user":"assistant"}});return n.find(function(l){return l.files&&l.files.length>0})&&((i=o.max_tokens)!==null&&i!==void 0||(o.max_tokens=300)),o.messages=[this._systemMessage].concat(ri(s)),o}},{key:"callServiceAPI",value:function(){var e=S(h().mark(function n(i,o){var s,l;return h().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:if(this.requestSettings){u.next=2;break}throw new Error("Request settings have not been set up");case 2:s=this.preprocessBody(this.rawBody,o),l=this.deepChat.stream,l&&(I(l)!="object"||!l.simulation)||s.stream?(s.stream=!0,re.request(this,s,i)):Z.request(this,s,i);case 4:case"end":return u.stop()}},n,this)}));function t(n,i){return e.apply(this,arguments)}return t}()},{key:"extractResultData",value:function(){var e=S(h().mark(function n(i,o,s){var l,c,u,d;return h().wrap(function(m){for(;;)switch(m.prev=m.next){case 0:if(!i.error){m.next=2;break}throw i.error.message;case 2:return m.abrupt("return",(c=(l=i.choices)==null?void 0:l[0])!=null&&c.delta?this.extractStreamResult(i.choices[0],o,s):(d=(u=i.choices)==null?void 0:u[0])!=null&&d.message?i.choices[0].message.tool_calls?this.handleTools(i.choices[0].message,o,s):{text:i.choices[0].message.content}:{text:""});case 3:case"end":return m.stop()}},n,this)}));function t(n,i,o){return e.apply(this,arguments)}return t}()},{key:"extractStreamResult",value:function(){var e=S(h().mark(function n(i,o,s){var l=this,c,u,d;return h().wrap(function(m){for(;;)switch(m.prev=m.next){case 0:if(c=i.delta,u=i.finish_reason,u!=="tool_calls"){m.next=7;break}return this.asyncCallInProgress=!0,d={tool_calls:this._streamToolCalls},m.abrupt("return",(this._streamToolCalls=void 0,this.handleTools(d,o,s)));case 7:c!=null&&c.tool_calls&&(this._streamToolCalls?c.tool_calls.forEach(function(g,b){l._streamToolCalls&&(l._streamToolCalls[b].function.arguments+=g.function.arguments)}):this._streamToolCalls=c.tool_calls);case 8:return m.abrupt("return",{text:(c==null?void 0:c.content)||""});case 9:case"end":return m.stop()}},n,this)}));function t(n,i,o){return e.apply(this,arguments)}return t}()},{key:"handleTools",value:function(){var e=S(h().mark(function n(i,o,s){var l,c,u,d,p,m,g,b,v,y;return h().wrap(function(w){for(;;)switch(w.prev=w.next){case 0:if(!(!i.tool_calls||!o||!s||!this._functionHandler)){w.next=2;break}throw Error("Please define the `function_handler` property inside the [openAI](https://deepchat.dev/docs/directConnection/openAI#Chat) object.");case 2:return m=JSON.parse(JSON.stringify(s)),g=i.tool_calls.map(function(L){return{name:L.function.name,arguments:L.function.arguments}}),w.next=6,(l=this._functionHandler)==null?void 0:l.call(this,g);case 6:if(b=w.sent,!b.text){w.next=15;break}return v={text:b.text},w.next=11,(u=(c=this.deepChat).responseInterceptor)==null?void 0:u.call(c,v);case 11:if(w.t0=w.sent,w.t0){w.next=14;break}w.t0=v;case 14:return w.abrupt("return",w.t0);case 15:if(m.messages.push({tool_calls:i.tool_calls,role:"assistant",content:null}),!(Array.isArray(b)&&!b.find(function(L){return typeof L!="string"})||g.length===b.length)){w.next=35;break}return b.forEach(function(L,E){var O,U=(O=i.tool_calls)==null?void 0:O[E];m==null||m.messages.push({role:"tool",tool_call_id:U==null?void 0:U.id,name:U==null?void 0:U.function.name,content:L.response})}),delete m.tools,delete m.tool_choice,delete m.stream,w.prev=17,w.next=20,o==null?void 0:o(m).then(function(L){return D.processResponseByType(L)});case 20:return y=w.sent,w.next=23,(p=(d=this.deepChat).responseInterceptor)==null?void 0:p.call(d,y);case 23:if(w.t1=w.sent,w.t1){w.next=26;break}w.t1=y;case 26:if(y=w.t1,!y.error){w.next=29;break}throw y.error.message;case 29:return w.abrupt("return",{text:y.choices[0].message.content||""});case 32:throw w.prev=32,w.t2=w.catch(17),this.asyncCallInProgress=!1,w.t2;case 35:throw Error("Response object must either be {response: string}[] for each individual function or {text: string} for a direct response, see https://deepchat.dev/docs/directConnection/OpenAI#FunctionHandler.");case 36:case"end":return w.stop()}},n,this,[[17,32]])}));function t(n,i,o){return e.apply(this,arguments)}return t}()}],[{key:"generateSystemMessage",value:function(t){return{role:"system",content:t}}},{key:"getContent",value:function(t){if(t.files&&t.files.length>0){var n=t.files.map(function(i){return{type:"image_url",image_url:{url:i.src}}});return t.text&&t.text.trim().length>0&&n.unshift({type:"text",text:t.text}),n}return t.text}}]),a}(de),Gl=function(r){$(a,r);function a(e){var t,n;_(this,a);var i,o=JSON.parse(JSON.stringify(e.directConnection)),s=(i=o.cohere)==null?void 0:i.chat,l=o.cohere;return n=R(this,a,[e,"https://api.cohere.ai/v1/chat","Ask me anything!",s,l]),I(s)=="object"&&Object.assign(n.rawBody,s),(t=n.maxMessages)!==null&&t!==void 0||(n.maxMessages=-1),n}return k(a,[{key:"preprocessBody",value:function(t,n){var i=JSON.parse(JSON.stringify(t)),o=n.filter(function(s){return s.text});return i.query=o[o.length-1].text,i.chat_history=o.slice(0,o.length-1).map(function(s){return{text:s.text,user_name:s.role==="ai"?"CHATBOT":"USER"}}),i}},{key:"callServiceAPI",value:function(){var e=S(h().mark(function n(i,o){var s;return h().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:if(this.requestSettings){c.next=2;break}throw new Error("Request settings have not been set up");case 2:s=this.preprocessBody(this.rawBody,o),Z.request(this,s,i);case 4:case"end":return c.stop()}},n,this)}));function t(n,i){return e.apply(this,arguments)}return t}()},{key:"extractResultData",value:function(){var e=S(h().mark(function n(i){return h().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:if(!i.message){s.next=2;break}throw i.message;case 2:return s.abrupt("return",{text:i.text});case 3:case"end":return s.stop()}},n)}));function t(n){return e.apply(this,arguments)}return t}()}]),a}(kr),Kl=function(){function r(){_(this,r)}return k(r,null,[{key:"create",value:function(e){var t=e.directConnection,n=e.request,i=e.demo,o=e.webModel;if(o)return new yr(e);if(t){if(t.openAI)return t.openAI.images?new Ul(e):t.openAI.speechToText?new Nl(e):t.openAI.textToSpeech?new Ol(e):t.openAI.assistant?new Vl(e):new Hl(e);if(t.assemblyAI)return new Bl(e);if(t.cohere)return t.cohere.textGeneration?new Rl(e):t.cohere.summarization?new $l(e):new Gl(e);if(t.huggingFace)return t.huggingFace.textGeneration?new El(e):t.huggingFace.summarization?new Pl(e):t.huggingFace.translation?new Ml(e):t.huggingFace.fillMask?new Il(e):t.huggingFace.questionAnswer?new Al(e):t.huggingFace.audioSpeechRecognition?new Cl(e):t.huggingFace.audioClassification?new _l(e):t.huggingFace.imageClassification?new kl(e):new Ll(e);if(t.azure){if(t.azure.speechToText)return new jl(e);if(t.azure.textToSpeech)return new Fl(e);if(t.azure.summarization)return new Dl(e);if(t.azure.translation)return new ql(e)}if(t.stabilityAI)return t.stabilityAI.imageToImage?new Tl(e):t.stabilityAI.imageToImageUpscale?new wl(e):t.stabilityAI.imageToImageMasking?new Sl(e):new xl(e)}return n?new Xt(e):new Xt(e,void 0,i||!0)}}]),r}(),Oi=function(){function r(){_(this,r)}return k(r,null,[{key:"appendStyleSheetToHead",value:function(){var e=document.getElementsByTagName("head")[0];if(!Array.from(e.getElementsByTagName("link")).some(function(n){return n.getAttribute("href")===r.FONT_URL})){var t=document.createElement("link");t.rel="stylesheet",t.href=r.FONT_URL,e.appendChild(t)}}}]),r}();Oi.FONT_URL="https://fonts.googleapis.com/css2?family=Inter:wght@400;600&display=swap";var Wl=Oi,Ni=k(function r(){_(this,r)});Ni.attibutes={string:function(a){return a},number:function(a){return parseFloat(a)},boolean:function(a){return a==="true"},object:function(a){return JSON.parse(a)},array:function(a){return JSON.parse(a)},function:function(a){return new Function("return ".concat(a))()}};function F(r){return function(a,e){Object.defineProperty(a,e,{});var t=a.constructor,n=e.toLocaleLowerCase();t._attributes_[n]=Ni.attibutes[r],t._attributeToProperty_[n]=e}}var Yl=function(){function r(){_(this,r)}return k(r,null,[{key:"colorToHex",value:function(e){var t=document.createElement("div");return t.style.color=e,document.body.appendChild(t),"#".concat(window.getComputedStyle(t).color.match(/\d+/g).map(function(n){return parseInt(n).toString(16).padStart(2,"0")}).join(""))}},{key:"set",value:function(e,t){var n,i,o,s;if((i=(n=t==null?void 0:t.loading)==null?void 0:n.bubble)!=null&&i.color){var l=r.colorToHex((s=(o=t==null?void 0:t.loading)==null?void 0:o.bubble)==null?void 0:s.color);e.style.setProperty("--message-dots-color",l),e.style.setProperty("--message-dots-color-fade","".concat(l,"33"))}else e.style.setProperty("--message-dots-color","#848484"),e.style.setProperty("--message-dots-color-fade","#55555533")}}]),r}(),Zl=function(){function r(a,e,t){_(this,r),this._isDisplayed=!1,a?(this._elementRef=this.createIntroPanelWithChild(a,t),this._isDisplayed=!0):e&&(this._elementRef=this.createInternalIntroPanel(e,t),this._isDisplayed=!0)}return k(r,[{key:"createIntroPanelWithChild",value:function(e,t){var n=r.createIntroPanel(t);return e.style.display==="none"&&(e.style.display="block"),n.appendChild(e),n}},{key:"createInternalIntroPanel",value:function(e,t){var n=r.createIntroPanel(t);return n.id="internal-intro-panel",n.innerHTML=e,n}},{key:"hide",value:function(){this._isDisplayed&&this._elementRef&&(this._elementRef.style.display="none",this._isDisplayed=!1)}},{key:"display",value:function(){!this._isDisplayed&&this._elementRef&&(this._elementRef.style.display="",this._isDisplayed=!0)}}],[{key:"createIntroPanel",value:function(e){var t=document.createElement("div");return t.classList.add("intro-panel"),Object.assign(t.style,e),t}}]),r}(),Jl=function(){function r(){_(this,r)}return k(r,null,[{key:"getText",value:function(e,t){var n;if(!e.directConnection&&!e.request&&!e.webModel&&!e.demo)return`Connect to any API using the [request](https://deepchat.dev/docs/connect#Request)
|
|
142
|
-
property or a popular service via
|
|
143
|
-
[directConnection](https://deepchat.dev/docs/directConnection/#directConnection).
|
|
144
|
-
|
|
145
|
-
Host AI entirely on your browser via a [webModel](https://deepchat.dev/docs/webModel).
|
|
146
|
-
|
|
147
|
-
To get started checkout the [Start](https://deepchat.dev/start) page and
|
|
148
|
-
live code [examples](https://deepchat.dev/examples/frameworks).
|
|
149
|
-
|
|
150
|
-
To remove this message set the [demo](https://deepchat.dev/docs/demo#demo) property to true.`;if(e.directConnection){if(!t.isDirectConnection())return`Please define a valid service inside
|
|
151
|
-
the [directConnection](https://deepchat.dev/docs/directConnection/#directConnection) object.`;var i=(n=e.directConnection.openAI)==null?void 0:n.chat;if(I(i)=="object"&&i.tools&&!i.function_handler)return"Please define the `function_handler` property inside the openAI [chat](https://deepchat.dev/docs/directConnection/openAI#Chat) object."}else if(e.request&&!e.request.url&&!e.request.handler)return"Please define a `url` or a `handler` property inside the [request](https://deepchat.dev/docs/connect#Request) object.";return null}}]),r}(),Xl=`<?xml version="1.0" encoding="iso-8859-1"?>
|
|
152
|
-
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"
|
|
153
|
-
viewBox="50 30 420 450" xml:space="preserve">
|
|
154
|
-
<g filter="brightness(0) saturate(100%) invert(16%) sepia(0%) saturate(1942%) hue-rotate(215deg) brightness(99%) contrast(93%)">
|
|
155
|
-
<g>
|
|
156
|
-
<path d="M447.933,103.629c-0.034-3.076-1.224-6.09-3.485-8.352L352.683,3.511c-0.004-0.004-0.007-0.005-0.011-0.008
|
|
157
|
-
C350.505,1.338,347.511,0,344.206,0H89.278C75.361,0,64.04,11.32,64.04,25.237v461.525c0,13.916,11.32,25.237,25.237,25.237
|
|
158
|
-
h333.444c13.916,0,25.237-11.32,25.237-25.237V103.753C447.96,103.709,447.937,103.672,447.933,103.629z M356.194,40.931
|
|
159
|
-
l50.834,50.834h-49.572c-0.695,0-1.262-0.567-1.262-1.262V40.931z M423.983,486.763c0,0.695-0.566,1.261-1.261,1.261H89.278
|
|
160
|
-
c-0.695,0-1.261-0.566-1.261-1.261V25.237c0-0.695,0.566-1.261,1.261-1.261h242.94v66.527c0,13.916,11.322,25.239,25.239,25.239
|
|
161
|
-
h66.527V486.763z"/>
|
|
162
|
-
</g>
|
|
163
|
-
</g>
|
|
164
|
-
<g>
|
|
165
|
-
<g>
|
|
166
|
-
<path d="M362.088,164.014H149.912c-6.62,0-11.988,5.367-11.988,11.988c0,6.62,5.368,11.988,11.988,11.988h212.175
|
|
167
|
-
c6.62,0,11.988-5.368,11.988-11.988C374.076,169.381,368.707,164.014,362.088,164.014z"/>
|
|
168
|
-
</g>
|
|
169
|
-
</g>
|
|
170
|
-
<g>
|
|
171
|
-
<g>
|
|
172
|
-
<path d="M362.088,236.353H149.912c-6.62,0-11.988,5.368-11.988,11.988c0,6.62,5.368,11.988,11.988,11.988h212.175
|
|
173
|
-
c6.62,0,11.988-5.368,11.988-11.988C374.076,241.721,368.707,236.353,362.088,236.353z"/>
|
|
174
|
-
</g>
|
|
175
|
-
</g>
|
|
176
|
-
<g>
|
|
177
|
-
<g>
|
|
178
|
-
<path d="M362.088,308.691H149.912c-6.62,0-11.988,5.368-11.988,11.988c0,6.621,5.368,11.988,11.988,11.988h212.175
|
|
179
|
-
c6.62,0,11.988-5.367,11.988-11.988C374.076,314.06,368.707,308.691,362.088,308.691z"/>
|
|
180
|
-
</g>
|
|
181
|
-
</g>
|
|
182
|
-
<g>
|
|
183
|
-
<g>
|
|
184
|
-
<path d="M256,381.031H149.912c-6.62,0-11.988,5.368-11.988,11.988c0,6.621,5.368,11.988,11.988,11.988H256
|
|
185
|
-
c6.62,0,11.988-5.367,11.988-11.988C267.988,386.398,262.62,381.031,256,381.031z"/>
|
|
186
|
-
</g>
|
|
187
|
-
</g>
|
|
188
|
-
</svg>`,Ql=function(){function r(){_(this,r)}return k(r,null,[{key:"createImage",value:function(e,t){var n=new Image;return n.src=e.src,Ce.scrollDownOnImageLoad(n.src,t),Ce.processContent("image",n,n.src,e.name)}},{key:"addNewImageMessage",value:function(){var a=S(h().mark(function t(n,i,o){var s,l;return h().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:s=r.createImage(i,n.elementRef),l=n.createNewMessageElement("",o),l.bubbleElement.appendChild(s),l.bubbleElement.classList.add("image-message"),Ce.addMessage(n,l,"image",o);case 2:case"end":return u.stop()}},t)}));function e(t,n,i){return a.apply(this,arguments)}return e}()},{key:"createAudioElement",value:function(e,t){var n=document.createElement("audio");return n.src=e.src,n.classList.add("audio-player"),n.controls=!0,Ie.IS_SAFARI&&(n.classList.add("audio-player-safari"),n.classList.add(t===z.USER_ROLE?"audio-player-safari-right":"audio-player-safari-left")),n}},{key:"addNewAudioMessage",value:function(e,t,n){var i=r.createAudioElement(t,n),o=e.createNewMessageElement("",n);o.bubbleElement.appendChild(i),o.bubbleElement.classList.add("audio-message"),Ce.addMessage(e,o,"audio",n)}},{key:"createAnyFile",value:function(e){var t=document.createElement("div");t.classList.add("any-file-message-contents");var n=document.createElement("div");n.classList.add("any-file-message-icon-container");var i=he.createSVGElement(Xl);i.classList.add("any-file-message-icon"),n.appendChild(i);var o=document.createElement("div");return o.classList.add("any-file-message-text"),o.textContent=e.name||Ce.DEFAULT_FILE_NAME,t.appendChild(n),t.appendChild(o),Ce.processContent("any",t,e.src,o.textContent)}},{key:"addNewAnyFileMessage",value:function(e,t,n){var i=e.createNewMessageElement("",n),o=r.createAnyFile(t);i.bubbleElement.classList.add("any-file-message-bubble"),i.bubbleElement.appendChild(o),Ce.addMessage(e,i,"file",n)}},{key:"addMessages",value:function(e,t,n){t.forEach(function(i){var o,s;i.ref&&(i=Ce.removeFileRef(i)),i.type==="audio"||(o=i.src)!=null&&o.startsWith("data:audio")?r.addNewAudioMessage(e,i,n):i.type==="image"||(s=i.src)!=null&&s.startsWith("data:image")?r.addNewImageMessage(e,i,n):r.addNewAnyFileMessage(e,i,n)})}}]),r}(),ec=function(r){$(a,r);function a(e,t,n){var i;_(this,a);var o,s;i=R(this,a,[e]);var l=t.permittedErrorPrefixes,c=t.introPanelMarkUp,u=t.demo;return i._errorMessageOverrides=(o=e.errorMessages)==null?void 0:o.overrides,i._onClearMessages=Jt.onClearMessages.bind(pe(i),e),i._onError=Jt.onError.bind(pe(i),e),i._displayLoadingMessage=a.getDisplayLoadingMessage(e,t),i._permittedErrorPrefixes=l,i.addSetupMessageIfNeeded(e,t)||i.populateIntroPanel(n,c,e.introPanelStyle),i.addIntroductoryMessage(e,t),e.initialMessages&&i.populateInitialMessages(e.initialMessages),i._displayServiceErrorMessages=(s=e.errorMessages)==null?void 0:s.displayServiceErrorMessages,e.getMessages=function(){return JSON.parse(JSON.stringify(i.messages))},e.clearMessages=i.clearMessages.bind(pe(i),t),e.refreshMessages=i.refreshTextMessages.bind(pe(i)),e.scrollToBottom=me.scrollToBottom.bind(pe(i),i.elementRef),e._addMessage=function(d,p){i.addNewMessage(H(H({},d),{},{sendUpdate:!!p}),!p)},t.isWebModel()&&t.setUpMessages(pe(i)),u&&i.prepareDemo(u),e.textToSpeech&&Gt.processConfig(e.textToSpeech,function(d){i.textToSpeech=d}),t.fetchHistory&&i.fetchHistory(t.fetchHistory),i}return k(a,[{key:"prepareDemo",value:function(t){I(t)=="object"&&(t.response&&(this.customDemoResponse=t.response),t.displayErrors&&(t.displayErrors.default&&this.addNewErrorMessage("",""),t.displayErrors.service&&this.addNewErrorMessage("service",""),t.displayErrors.speechToText&&this.addNewErrorMessage("speechToText","")),t.displayLoadingBubble&&this.addLoadingMessage())}},{key:"addSetupMessageIfNeeded",value:function(t,n){var i=Jl.getText(t,n);if(i){var o=this.createAndAppendNewMessageElement(i,z.AI_ROLE);this.applyCustomStyles(o,z.AI_ROLE,!1)}return!!i}},{key:"addIntroductoryMessage",value:function(t,n){var i,o;t!=null&&t.shadowRoot&&(this._introMessage=t.introMessage);var s=this._introMessage;if(n!=null&&n.isWebModel()&&((i=s)!==null&&i!==void 0||(s=n.getIntroMessage(s))),s){var l;s!=null&&s.text?l=this.createAndAppendNewMessageElement(s.text,z.AI_ROLE):s!=null&&s.html&&(l=er.add(this,s.html,z.AI_ROLE,this.messageElementRefs)),l&&(this.applyCustomStyles(l,z.AI_ROLE,!1,(o=this.messageStyles)==null?void 0:o.intro),l.outerContainer.classList.add("deep-chat-intro"))}}},{key:"removeIntroductoryMessage",value:function(){var t=this.messageElementRefs[0];t.outerContainer.classList.contains("deep-chat-intro")&&(t.outerContainer.remove(),this.messageElementRefs.shift())}},{key:"populateInitialMessages",value:function(t){var n=this;t.forEach(function(i){Ve.processInitialMessageFile(i),n.addNewMessage(i,!0)}),setTimeout(function(){return me.scrollToBottom(n.elementRef)},0)}},{key:"fetchHistory",value:function(){var e=S(h().mark(function n(i){var o=this;return h().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.next=2,i();case 2:l.sent.forEach(function(c){c.error?o.addNewErrorMessage("service",c.error):o.addNewMessage(c,!0)}),setTimeout(function(){return me.scrollToBottom(o.elementRef)},0);case 4:case"end":return l.stop()}},n)}));function t(n){return e.apply(this,arguments)}return t}()},{key:"addNewMessage",value:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,i=a.createMessageContent(t),o={status:t.overwrite};if(!t.ignoreText&&i.text!==void 0&&t.text!==null&&(this.addNewTextMessage(i.text,i.role,o),!n&&this.textToSpeech&&i.role!==z.USER_ROLE&&Gt.speak(i.text,this.textToSpeech)),i.files&&Array.isArray(i.files)&&Ql.addMessages(this,i.files,i.role),i.html!==void 0&&i.html!==null){var s=er.add(this,i.html,i.role,this.messageElementRefs,o);Zt.isElementTemporary(s)&&delete i.html}this.isValidMessageContent(i)&&this.updateStateOnMessage(i,t.overwrite,t.sendUpdate,n)}},{key:"isValidMessageContent",value:function(t){return t.text||t.html||t.files&&t.files.length>0}},{key:"updateStateOnMessage",value:function(t,n){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;n||this.messages.push(t),i&&this.sendClientUpdate(t,o)}},{key:"removeMessageOnError",value:function(){var t=this.messageElementRefs[this.messageElementRefs.length-1],n=t==null?void 0:t.bubbleElement;(n!=null&&n.classList.contains(He.MESSAGE_CLASS)&&n.textContent===""||a.isTemporaryElement(t))&&this.removeLastMessage()}},{key:"addNewErrorMessage",value:function(t,n){var i,o,s,l,c;this.removeMessageOnError();var u=a.createBaseElements(),d=u.outerContainer,p=u.bubbleElement;p.classList.add("error-message-text");var m=this.getPermittedMessage(n)||((i=this._errorMessageOverrides)==null?void 0:i[t])||((o=this._errorMessageOverrides)==null?void 0:o.default)||"Error, please try again.";this.renderText(p,m);var g=Kt.extractParticularSharedStyles(["fontSize","fontFamily"],(s=this.messageStyles)==null?void 0:s.default);Kt.applyCustomStylesToElements(u,!1,g),Kt.applyCustomStylesToElements(u,!1,(l=this.messageStyles)==null?void 0:l.error),this.elementRef.appendChild(d),me.scrollToBottom(this.elementRef),this.textToSpeech&&Gt.speak(m,this.textToSpeech),(c=this._onError)==null||c.call(this,m)}},{key:"getPermittedMessage",value:function(t){if(t){if(this._displayServiceErrorMessages)return t;if(typeof t=="string"&&this._permittedErrorPrefixes){var n=a.checkPermittedErrorPrefixes(this._permittedErrorPrefixes,t);if(n)return n}else if(Array.isArray(t)&&this._permittedErrorPrefixes)for(var i=0;i<t.length;i+=1){var o=a.checkPermittedErrorPrefixes(this._permittedErrorPrefixes,t[i]);if(o)return o}}}},{key:"removeError",value:function(){this.isLastMessageError()&&z.getLastMessageElement(this.elementRef).remove()}},{key:"addLoadingMessage",value:function(){var t;if(this._displayLoadingMessage){var n=this.createMessageElements("",z.AI_ROLE),i=n.outerContainer,o=n.bubbleElement;o.classList.add("loading-message-text");var s=document.createElement("div");s.classList.add("dots-flashing"),o.appendChild(s),this.applyCustomStyles(n,z.AI_ROLE,!1,(t=this.messageStyles)==null?void 0:t.loading),Yl.set(o,this.messageStyles),this.elementRef.appendChild(i),me.scrollToBottom(this.elementRef)}}},{key:"populateIntroPanel",value:function(t,n,i){(t||n)&&(this._introPanel=new Zl(t,n,i),this._introPanel._elementRef&&(wt.apply(this,this._introPanel._elementRef),this.elementRef.appendChild(this._introPanel._elementRef)))}},{key:"addMultipleFiles",value:function(){var e=S(h().mark(function n(i){return h().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.abrupt("return",Promise.all((i||[]).map(function(l){return new Promise(function(c){if(!l.type||l.type==="any"){var u=l.file.name||Ce.DEFAULT_FILE_NAME;c({name:u,type:"any",ref:l.file})}else{var d=new FileReader;d.readAsDataURL(l.file),d.onload=function(){c({src:d.result,type:l.type,ref:l.file})}}})})));case 1:case"end":return s.stop()}},n)}));function t(n){return e.apply(this,arguments)}return t}()},{key:"clearMessages",value:function(t,n){var i,o,s=[];this.messageElementRefs.forEach(function(l){var c=l.bubbleElement.classList;c.contains("loading-message-text")||c.contains(He.MESSAGE_CLASS)?s.push(l):l.outerContainer.remove()}),Array.from(this.elementRef.children).forEach(function(l){var c,u=(c=l.children[0])==null?void 0:c.children[0];u!=null&&u.classList.contains("error-message-text")&&l.remove()}),this.messageElementRefs=s,n!==!1&&((i=this._introPanel)!=null&&i._elementRef&&this._introPanel.display(),this.addIntroductoryMessage()),this.messages.splice(0,this.messages.length),this.textElementsToText.splice(0,this.textElementsToText.length),(o=this._onClearMessages)==null||o.call(this),delete t.sessionId}}],[{key:"getDisplayLoadingMessage",value:function(t,n){var i;return n.websocket?!1:(i=t.displayLoadingBubble)!==null&&i!==void 0?i:!0}},{key:"checkPermittedErrorPrefixes",value:function(t,n){for(var i=0;i<t.length;i+=1)if(n.startsWith(t[i]))return n}}]),a}(Pi),xt=function(){function r(){_(this,r)}return k(r,null,[{key:"adjustInputPadding",value:function(e,t){t["inside-left"].length>0&&e.classList.add("text-input-inner-left-adjustment"),t["inside-right"].length>0&&e.classList.add("text-input-inner-right-adjustment")}},{key:"adjustForOutsideButton",value:function(e,t,n){n["outside-right"].length===0&&n["outside-left"].length>0?(e[0].classList.add(r.INPUT_OUTSIDE_LEFT_SMALL_ADJUSTMENT_CLASS),t.classList.add(r.INPUT_OUTSIDE_LEFT_SMALL_ADJUSTMENT_CLASS)):n["outside-left"].length===0&&n["outside-right"].length>0&&(e[3].classList.add(r.INPUT_OUTSIDE_RIGHT_SMALL_ADJUSTMENT_CLASS),t.classList.add(r.INPUT_OUTSIDE_RIGHT_SMALL_ADJUSTMENT_CLASS))}},{key:"adjustOutsideSubmit",value:function(e,t,n){if(!(n["inside-left"].length>0||n["inside-right"].length>0)){if(n["outside-right"].length===0&&n["outside-left"].length>0)return e[0].classList.add(r.INPUT_OUTSIDE_LEFT_ADJUSTMENT_CLASS),t.classList.add(r.INPUT_OUTSIDE_LEFT_ADJUSTMENT_CLASS),n["outside-left"].map(function(i){return i.button.elementRef.classList.add("submit-button-enlarged")});if(n["outside-left"].length===0&&n["outside-right"].length>0)return e[3].classList.add(r.INPUT_OUTSIDE_RIGHT_ADJUSTMENT_CLASS),t.classList.add(r.INPUT_OUTSIDE_RIGHT_ADJUSTMENT_CLASS),n["outside-right"].map(function(i){return i.button.elementRef.classList.add("submit-button-enlarged")})}}},{key:"set",value:function(e,t,n,i){r.adjustOutsideSubmit(t,n,i)||r.adjustForOutsideButton(t,n,i),r.adjustInputPadding(e,i)}}]),r}();xt.INPUT_OUTSIDE_LEFT_ADJUSTMENT_CLASS="text-input-container-left-adjustment";xt.INPUT_OUTSIDE_RIGHT_ADJUSTMENT_CLASS="text-input-container-right-adjustment";xt.INPUT_OUTSIDE_LEFT_SMALL_ADJUSTMENT_CLASS="text-input-container-left-small-adjustment";xt.INPUT_OUTSIDE_RIGHT_SMALL_ADJUSTMENT_CLASS="text-input-container-right-small-adjustment";var tc=xt,Qt=function(){function r(){_(this,r)}return k(r,null,[{key:"create",value:function(){return Array.from({length:4}).map(function(e,t){var n=document.createElement("div");return n.classList.add("input-button-container"),(t===0||t===3)&&n.classList.add("outer-button-container"),(t===1||t===2)&&n.classList.add("inner-button-container"),n})}},{key:"add",value:function(e,t){e.insertBefore(t[1],e.firstChild),e.insertBefore(t[0],e.firstChild),e.appendChild(t[2]),e.appendChild(t[3])}},{key:"getContainerIndex",value:function(e){return e==="outside-left"?0:e==="inside-left"?1:e==="inside-right"?2:3}},{key:"addButton",value:function(e,t,n){t.classList.add(n);var i=r.getContainerIndex(n);e[i].appendChild(t),i===3&&t.classList.add("outside-right")}}]),r}(),na=["camera","gifs","images","audio","mixedFiles","submit","microphone"],st=function(){function r(){_(this,r)}return k(r,null,[{key:"createTextElement",value:function(e){var t=document.createElement("div");return t.classList.add("text-button"),t.innerText=e,t}},{key:"createElement",value:function(e,t){return t?r.createTextElement(e):he.createSVGElement(e)}},{key:"createCustomElement",value:function(e,t){var n,i,o,s,l=t==null?void 0:t[e];if((n=l==null?void 0:l.text)!=null&&n.content)return r.createElement((i=l==null?void 0:l.text)==null?void 0:i.content,!0);if((o=l==null?void 0:l.svg)!=null&&o.content)return r.createElement((s=l==null?void 0:l.svg)==null?void 0:s.content,!1)}},{key:"processElement",value:function(e,t){t!=null&&t.classList.contains("text-button")||e.classList.add("input-button-svg")}},{key:"createSpecificStateElement",value:function(e,t,n){var i;return n&&(i=r.createCustomElement(t,n)),r.processElement(e,i),i}},{key:"create",value:function(e,t,n){var i={};if(!n)return r.processElement(e),i;var o=r.createSpecificStateElement(e,t[0],n);i[t[0]]=o;var s=o;return t.slice(1).forEach(function(l){s=r.createCustomElement(l,n)||s,i[l]=s}),i}}]),r}(),nc=`<?xml version="1.0" encoding="utf-8"?>
|
|
189
|
-
<svg viewBox="0 0 32 32" version="1.1" xmlns="http://www.w3.org/2000/svg">
|
|
190
|
-
<path d="M16 0c-8.836 0-16 7.163-16 16s7.163 16 16 16c8.837 0 16-7.163 16-16s-7.163-16-16-16zM16 30.032c-7.72 0-14-6.312-14-14.032s6.28-14 14-14 14 6.28 14 14-6.28 14.032-14 14.032zM23 15h-6v-6c0-0.552-0.448-1-1-1s-1 0.448-1 1v6h-6c-0.552 0-1 0.448-1 1s0.448 1 1 1h6v6c0 0.552 0.448 1 1 1s1-0.448 1-1v-6h6c0.552 0 1-0.448 1-1s-0.448-1-1-1z"></path>
|
|
191
|
-
</svg>`,Be=function(){function r(){_(this,r)}return k(r,null,[{key:"unsetAllCSS",value:function(e,t){var n,i;t.container&&ie.unsetAllCSSMouseStates(e,t.container),(n=t.svg)!=null&&n.styles&&ie.unsetAllCSSMouseStates(e.children[0],t.svg.styles),(i=t.text)!=null&&i.styles&&ie.unsetAllCSSMouseStates(e.children[0],t.text.styles)}},{key:"unsetActionCSS",value:function(e,t){var n,i;t.container&&ie.unsetActivityCSSMouseStates(e,t.container),(n=t.svg)!=null&&n.styles&&ie.unsetActivityCSSMouseStates(e.children[0],t.svg.styles),(i=t.text)!=null&&i.styles&&ie.unsetActivityCSSMouseStates(e.children[0],t.text.styles)}},{key:"setElementsCSS",value:function(e,t,n){var i,o,s,l,c;Object.assign(e.style,(i=t.container)==null?void 0:i[n]),Object.assign(e.children[0].style,(s=(o=t.svg)==null?void 0:o.styles)==null?void 0:s[n]),Object.assign(e.children[0].style,(c=(l=t.text)==null?void 0:l.styles)==null?void 0:c[n])}},{key:"setElementCssUpToState",value:function(e,t,n){r.setElementsCSS(e,t,"default"),n!=="default"&&(r.setElementsCSS(e,t,"hover"),n!=="hover"&&r.setElementsCSS(e,t,"click"))}}]),r}(),It=function(){function r(a,e,t,n){_(this,r),this._mouseState={state:"default"},this.elementRef=a,this._customStyles=t,this.position=e,this.dropupText=n}return k(r,[{key:"buttonMouseLeave",value:function(e){this._mouseState.state="default",e&&(Be.unsetAllCSS(this.elementRef,e),Be.setElementsCSS(this.elementRef,e,"default"))}},{key:"buttonMouseEnter",value:function(e){this._mouseState.state="hover",e&&Be.setElementsCSS(this.elementRef,e,"hover")}},{key:"buttonMouseUp",value:function(e){e&&Be.unsetActionCSS(this.elementRef,e),this.buttonMouseEnter(e)}},{key:"buttonMouseDown",value:function(e){this._mouseState.state="click",e&&Be.setElementsCSS(this.elementRef,e,"click")}},{key:"setEvents",value:function(e){this.elementRef.onmousedown=this.buttonMouseDown.bind(this,e),this.elementRef.onmouseup=this.buttonMouseUp.bind(this,e),this.elementRef.onmouseenter=this.buttonMouseEnter.bind(this,e),this.elementRef.onmouseleave=this.buttonMouseLeave.bind(this,e)}},{key:"unsetCustomStateStyles",value:function(e){if(this._customStyles)for(var t=0;t<e.length;t+=1){var n=e[t],i=n&&this._customStyles[n];i&&Be.unsetActionCSS(this.elementRef,i)}}},{key:"reapplyStateStyle",value:function(e,t){if(this._customStyles){t&&this.unsetCustomStateStyles(t);var n=this._customStyles[e];n&&Be.setElementCssUpToState(this.elementRef,n,this._mouseState.state),this.setEvents(n)}}}]),r}(),ra=function(){function r(){_(this,r)}return k(r,null,[{key:"focusItemWhenOnEdge",value:function(e,t){var n=t?e.children[0]:e.children[e.children.length-1];r.focusSiblingItem(n,e,t,!0)}},{key:"focusSiblingItem",value:function(e,t,n){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,o=i?e:e[n?"nextSibling":"previousSibling"];o?(e.dispatchEvent(new MouseEvent("mouseleave")),o.dispatchEvent(new MouseEvent("mouseenter"))):(e.dispatchEvent(new MouseEvent("mouseleave")),r.focusItemWhenOnEdge(t,n))}}]),r}(),rc=function(){function r(){_(this,r)}return k(r,null,[{key:"addItemEvents",value:function(e,t,n,i){gi.add(t,i),t.addEventListener("click",function(){n.click()}),t.addEventListener("mouseenter",function(o){e.highlightedItem=o.target}),t.addEventListener("mouseleave",function(){e.highlightedItem=void 0})}},{key:"createItemText",value:function(e,t){var n=document.createElement("div");return Object.assign(n.style,t),n.classList.add("dropup-menu-item-text"),n.textContent=e||"File",n}},{key:"createItemIcon",value:function(e,t){var n=document.createElement("div");return Object.assign(n.style,t),n.classList.add("dropup-menu-item-icon"),n.appendChild(e.children[0]),n}},{key:"populateItem",value:function(e,t,n,i){var o=e.children[0];o.classList.contains("text-button")?t.appendChild(r.createItemText(o.textContent,i==null?void 0:i.text)):(t.appendChild(r.createItemIcon(e,i==null?void 0:i.iconContainer)),t.appendChild(r.createItemText(n,i==null?void 0:i.text)))}},{key:"createItem",value:function(e,t,n){var i,o=t.elementRef,s=t.dropupText,l=document.createElement("div");Object.assign(l.style,(i=n==null?void 0:n.item)==null?void 0:i.default),r.populateItem(o,l,s,n),l.classList.add("dropup-menu-item");var c=ie.processStateful((n==null?void 0:n.item)||{},{backgroundColor:"#f3f3f3"},{backgroundColor:"#ebebeb"});return r.addItemEvents(e,l,o,c),l}}]),r}(),ac=function(){function r(a,e){var t=this;_(this,r);var n;this._isOpen=!0,this._styles=e,this.elementRef=r.createElement((n=this._styles)==null?void 0:n.container),this.close(),setTimeout(function(){return t.addWindowEvents(a)})}return k(r,[{key:"open",value:function(){this.elementRef.style.display="block",this._isOpen=!0}},{key:"close",value:function(){this._isOpen&&(this.elementRef.style.display="none",this._isOpen=!1)}},{key:"toggle",value:function(){this._isOpen?this.close():this.open()}},{key:"addItem",value:function(e){var t=rc.createItem(this,e,this._styles);this.elementRef.appendChild(t)}},{key:"addWindowEvents",value:function(e){this.clickEvent=this.windowClick.bind(this,e),window.addEventListener("click",this.clickEvent),this.keyDownEvent=this.windowKeyDown.bind(this,e),window.addEventListener("keydown",this.keyDownEvent)}},{key:"windowClick",value:function(e,t){var n;!e.isConnected&&this.clickEvent?window.removeEventListener("click",this.clickEvent):e.parentElement!==((n=t.target.shadowRoot)==null?void 0:n.children[0])&&this.close()}},{key:"windowKeyDown",value:function(e,t){var n,i,o;!e.isConnected&&this.keyDownEvent?window.removeEventListener("keydown",this.keyDownEvent):this._isOpen&&(t.key===te.ESCAPE?(this.close(),(n=this.highlightedItem)==null||n.dispatchEvent(new MouseEvent("mouseleave"))):t.key===te.ENTER?((i=this.highlightedItem)==null||i.click(),(o=this.highlightedItem)==null||o.dispatchEvent(new MouseEvent("mouseleave"))):t.key===te.ARROW_DOWN?ra.focusSiblingItem(this.highlightedItem||this.elementRef.children[this.elementRef.children.length-1],this.elementRef,!0):t.key===te.ARROW_UP&&ra.focusSiblingItem(this.highlightedItem||this.elementRef.children[0],this.elementRef,!1))}}],[{key:"createElement",value:function(e){var t=document.createElement("div");return t.id="dropup-menu",Object.assign(t.style,e),t}}]),r}(),aa=function(r){$(a,r);function a(e,t){var n;_(this,a);var i;n=R(this,a,[a.createButtonElement(),void 0,{styles:(i=t==null?void 0:t.button)==null?void 0:i.styles}]);var o=n.createInnerElements(n._customStyles);return n._menu=new ac(e,t==null?void 0:t.menu),n.addClickEvent(),n.buttonContainer=a.createButtonContainer(),n.elementRef.appendChild(o.styles),n.buttonContainer.appendChild(n.elementRef),n.elementRef.classList.add("dropup-icon","upload-file-button"),n.elementRef.children[0].id="dropup-icon",n.buttonContainer.appendChild(n._menu.elementRef),n.reapplyStateStyle("styles"),n.addContainerEvents(e),n}return k(a,[{key:"createInnerElements",value:function(t){return{styles:this.createInnerElement(a.createSVGIconElement(),"styles",t)}}},{key:"createInnerElement",value:function(t,n,i){return st.createSpecificStateElement(this.elementRef,n,i)||t}},{key:"addClickEvent",value:function(){this.elementRef.onclick=this._menu.toggle.bind(this._menu)}},{key:"addItem",value:function(t){this._menu.addItem(t)}},{key:"addContainerEvents",value:function(t){var n=this;t.addEventListener("click",function(i){i.target.classList.contains("dropup-icon")||n._menu.close()})}}],[{key:"createButtonElement",value:function(){var t=document.createElement("div");return t.classList.add("input-button"),t}},{key:"createSVGIconElement",value:function(){return he.createSVGElement(nc)}},{key:"createButtonContainer",value:function(){var t=document.createElement("div");return t.id="dropup-container",t}},{key:"getPosition",value:function(t,n){var i,o;return(i=n==null?void 0:n.button)!=null&&i.position?(o=n==null?void 0:n.button)==null?void 0:o.position:t["outside-left"].length>0&&t["outside-right"].length===0?"outside-right":"outside-left"}}]),a}(It),ic=function(){function r(){_(this,r)}return k(r,null,[{key:"addToDropup",value:function(e,t,n,i){var o=new aa(n,i);na.forEach(function(l){var c=t["dropup-menu"].findIndex(function(d){return d.buttonType===l}),u=t["dropup-menu"][c];u&&(o.addItem(u.button),t["dropup-menu"].splice(c,1))});var s=aa.getPosition(t,i);Qt.addButton(e,o.buttonContainer,s),t[s].push({})}},{key:"addToSideContainer",value:function(e,t){["inside-left","inside-right","outside-left","outside-right"].forEach(function(n){var i=n;t[i].forEach(function(o){Qt.addButton(e,o.button.elementRef,i)})})}},{key:"setPosition",value:function(e,t,n){var i=H(H({},e[t]),{},{buttonType:t});n.push(i),delete e[t]}},{key:"createPositionsObj",value:function(){return{"dropup-menu":[],"outside-left":[],"inside-left":[],"inside-right":[],"outside-right":[]}}},{key:"generatePositions",value:function(e){var t=r.createPositionsObj();Object.keys(e).forEach(function(i){var o,s=(o=e[i])==null?void 0:o.button.position;s&&r.setPosition(e,i,t[s])}),t["inside-right"].length===0&&e.submit&&r.setPosition(e,"submit",t["inside-right"]),t["outside-right"].length===0&&(e.submit?r.setPosition(e,"submit",t["outside-right"]):e.microphone?r.setPosition(e,"microphone",t["outside-right"]):e.camera&&r.setPosition(e,"camera",t["outside-right"])),e.submit&&r.setPosition(e,"submit",t["outside-left"].length===0?t["outside-left"]:t["inside-right"]),e.microphone&&r.setPosition(e,"microphone",t["outside-left"].length===0?t["outside-left"]:t["inside-right"]);var n=Object.keys(e);return n.length>1||t["dropup-menu"].length>0?na.forEach(function(i){e[i]&&t["dropup-menu"].push(H(H({},e[i]),{},{buttonType:i}))}):n.length===1&&r.setPosition(e,n[0],t["outside-right"].length===0?t["outside-right"]:t["outside-left"]),t}},{key:"addButtons",value:function(e,t,n,i){var o=r.generatePositions(t);return r.addToSideContainer(e,o),o["dropup-menu"].length>0&&r.addToDropup(e,o,n,i),o}}]),r}(),oc=`<?xml version="1.0" encoding="utf-8"?>
|
|
192
|
-
<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
193
|
-
<title>file</title>
|
|
194
|
-
<path d="M20 10.9696L11.9628 18.5497C10.9782 19.4783 9.64274 20 8.25028 20C6.85782 20 5.52239 19.4783 4.53777 18.5497C3.55315 17.6211 3 16.3616 3 15.0483C3 13.7351 3.55315 12.4756 4.53777 11.547L12.575 3.96687C13.2314 3.34779 14.1217 3 15.05 3C15.9783 3 16.8686 3.34779 17.525 3.96687C18.1814 4.58595 18.5502 5.4256 18.5502 6.30111C18.5502 7.17662 18.1814 8.01628 17.525 8.63535L9.47904 16.2154C9.15083 16.525 8.70569 16.6989 8.24154 16.6989C7.77738 16.6989 7.33224 16.525 7.00403 16.2154C6.67583 15.9059 6.49144 15.4861 6.49144 15.0483C6.49144 14.6106 6.67583 14.1907 7.00403 13.8812L14.429 6.88674" stroke="#000000" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
195
|
-
</svg>`,sc=`<?xml version="1.0" encoding="utf-8"?>
|
|
196
|
-
<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
|
|
197
|
-
<path d="M20,15.2928932 L20,5.5 C20,4.67157288 19.3284271,4 18.5,4 L5.5,4 C4.67157288,4 4,4.67157288 4,5.5 L4,12.2928932 L7.14644661,9.14644661 C7.34170876,8.95118446 7.65829124,8.95118446 7.85355339,9.14644661 L13.5,14.7928932 L16.1464466,12.1464466 C16.3417088,11.9511845 16.6582912,11.9511845 16.8535534,12.1464466 L20,15.2928932 Z M20,16.7071068 L16.5,13.2071068 L13.8535534,15.8535534 C13.6582912,16.0488155 13.3417088,16.0488155 13.1464466,15.8535534 L7.5,10.2071068 L4,13.7071068 L4,18.5 C4,19.3284271 4.67157288,20 5.5,20 L18.5,20 C19.3284271,20 20,19.3284271 20,18.5 L20,16.7071068 Z M3,5.5 C3,4.11928813 4.11928813,3 5.5,3 L18.5,3 C19.8807119,3 21,4.11928813 21,5.5 L21,18.5 C21,19.8807119 19.8807119,21 18.5,21 L5.5,21 C4.11928813,21 3,19.8807119 3,18.5 L3,5.5 Z M15,6 L17,6 C17.5522847,6 18,6.44771525 18,7 L18,9 C18,9.55228475 17.5522847,10 17,10 L15,10 C14.4477153,10 14,9.55228475 14,9 L14,7 C14,6.44771525 14.4477153,6 15,6 Z M15,7 L15,9 L17,9 L17,7 L15,7 Z"/>
|
|
198
|
-
</svg>
|
|
199
|
-
`,lc=`<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="-49.49 -49.49 593.87 593.87" stroke-width="3.95908" transform="rotate(0)">
|
|
200
|
-
<g stroke-width="0"></g>
|
|
201
|
-
<g stroke-linecap="round" stroke-linejoin="round" stroke-width="0.98977"></g>
|
|
202
|
-
<g>
|
|
203
|
-
<g>
|
|
204
|
-
<g>
|
|
205
|
-
<path d="M163.205,76.413v293.301c-3.434-3.058-7.241-5.867-11.486-8.339c-21.38-12.452-49.663-15.298-77.567-7.846 c-49.038,13.096-80.904,54.519-71.038,92.337c4.019,15.404,14.188,28.221,29.404,37.087c13.553,7.894,29.87,11.933,47.115,11.933 c9.962,0,20.231-1.356,30.447-4.087c42.74-11.406,72.411-44.344,72.807-77.654h0.011v-0.162c0.002-0.166,0-0.331,0-0.496V187.072 l290.971-67.3v178.082c-3.433-3.055-7.238-5.863-11.481-8.334c-21.385-12.452-49.654-15.308-77.567-7.846 c-49.038,13.087-80.904,54.519-71.038,92.356c4.019,15.385,14.183,28.212,29.404,37.067c13.548,7.894,29.875,11.933,47.115,11.933 c9.962,0,20.231-1.356,30.452-4.087c42.74-11.413,72.411-44.346,72.804-77.654h0.004v-0.065c0.003-0.236,0.001-0.469,0-0.704V0 L163.205,76.413z M104.999,471.779c-22.543,6.038-45.942,3.846-62.572-5.846c-10.587-6.163-17.591-14.817-20.255-25.038 c-7.144-27.375,18.452-58.029,57.062-68.346c8.409-2.25,16.938-3.346,25.188-3.346c13.87,0,26.962,3.115,37.389,9.192 c10.587,6.163,17.591,14.817,20.255,25.029c0.809,3.102,1.142,6.248,1.139,9.4v0.321h0.014 C162.99,437.714,139.082,462.678,104.999,471.779z M182.898,166.853V92.067l290.971-67.298v74.784L182.898,166.853z M415.677,399.923c-22.558,6.038-45.942,3.837-62.587-5.846c-10.587-6.163-17.587-14.817-20.25-25.019 c-7.144-27.385,18.452-58.058,57.058-68.365c8.414-2.25,16.942-3.346,25.192-3.346c13.875,0,26.962,3.115,37.385,9.192 c10.596,6.163,17.596,14.817,20.26,25.029v0.01c0.796,3.05,1.124,6.144,1.135,9.244v0.468h0.02 C473.668,365.851,449.763,390.814,415.677,399.923z">
|
|
206
|
-
</path>
|
|
207
|
-
</g>
|
|
208
|
-
</g>
|
|
209
|
-
</g>
|
|
210
|
-
</svg>`,cc=`<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
|
211
|
-
<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 5.9266752 5.6408391" height="21.31971" width="22.4">
|
|
212
|
-
<g>
|
|
213
|
-
<path d="m 5.2564627,1.548212 c -3.1136005,-0.4796804 -1.5568006,-0.2398402 0,0 z M 2.0001198,2.0922063 c 0.1556781,0 0.2657489,0.020893 0.3917849,0.080366 0.081154,0.038347 0.1153492,0.134065 0.076377,0.2138602 -0.038973,0.07979 -0.1363527,0.1134129 -0.2175069,0.075091 -0.078199,-0.036919 -0.1407455,-0.048792 -0.250655,-0.048792 -0.2260486,0 -0.3921482,0.2042182 -0.3921482,0.4801409 0,0.2761822 0.1663188,0.4810688 0.3921482,0.4810688 0.1117901,0 0.2064255,-0.046133 0.255659,-0.1284198 l 0.00162,-0.00389 V 3.0534032 l -0.098011,1.75e-4 c -0.081844,0 -0.1495979,-0.059305 -0.1612403,-0.1365887 l -0.00175,-0.023683 c 0,-0.08047 0.060311,-0.1470874 0.1389194,-0.1585331 l 0.024085,-0.00195 h 0.2612303 c 0.081842,0 0.149598,0.059305 0.1612404,0.1365891 l 0.00175,0.023683 -3.398e-4,0.3968809 v 0 l -0.00168,0.014211 v 0 l -0.00553,0.023034 v 0 l -0.00532,0.014145 c -0.098178,0.22826 -0.3236506,0.3528713 -0.5706303,0.3528713 -0.4240855,0 -0.7181621,-0.3622714 -0.7181621,-0.8016063 0,-0.4391857 0.2940275,-0.8006848 0.7181621,-0.8006848 z m 1.2034759,0.031275 c 0.081843,0 0.1495977,0.059305 0.1612403,0.1365891 l 0.00175,0.023683 v 1.2211775 c 0,0.088516 -0.07298,0.1602721 -0.1630073,0.1602721 -0.081841,0 -0.1495972,-0.059305 -0.1612397,-0.1365892 L 3.040589,3.5049308 V 2.2837527 c 0,-0.088516 0.07298,-0.1602721 0.1630067,-0.1602714 z m 0.7813442,0 0.5209469,0.00195 c 0.090025,3.048e-4 0.1627543,0.072306 0.1624458,0.1608234 -2.809e-4,0.08047 -0.06083,0.1468798 -0.1394772,0.158066 l -0.024092,0.00195 -0.3575326,-0.0013 v 0.4497782 l 0.2928918,2.27e-4 c 0.081842,0 0.1495979,0.059305 0.1612403,0.136589 l 0.00175,0.023683 c 0,0.080469 -0.06031,0.1470871 -0.1389193,0.1585393 l -0.024092,0.00195 -0.2928919,-2.336e-4 1.563e-4,0.2860316 c 0,0.080471 -0.06031,0.1470873 -0.1389193,0.1585395 l -0.024085,0.00195 c -0.081843,0 -0.1495979,-0.059305 -0.1612403,-0.1365826 l -0.00175,-0.023691 V 2.2841354 c 2.798e-4,-0.08047 0.060829,-0.1468797 0.1394758,-0.1580594 z"/>
|
|
214
|
-
<path d="m 5.0894191,1.0943261 c 0,-0.21918999 -0.177687,-0.39686999 -0.396876,-0.39686999 h -3.43959 c -0.2191879,0 -0.391262,0.1777519 -0.3968759,0.39686999 l -0.027082,3.4379266 c 0.040152,0.2939927 0.4235456,0.409415 0.4235456,0.409415 l 3.4785583,-0.00851 c 0,0 0.3008506,-0.1402998 0.3236271,-0.4201576 0.042911,-0.5272495 0.034693,-1.6106146 0.034693,-3.4186761 z m -4.49792494,0 c 0,-0.36530999 0.29614504,-0.66145999 0.66145894,-0.66145999 h 3.43959 c 0.365314,0 0.66146,0.29615 0.66146,0.66145999 v 3.43959 c 0,0.36532 -0.296146,0.66146 -0.66146,0.66146 h -3.43959 c -0.3653139,0 -0.66145894,-0.29614 -0.66145894,-0.66146 z"/>
|
|
215
|
-
</g>
|
|
216
|
-
</svg>
|
|
217
|
-
`,uc={images:{id:"upload-images-icon",svgString:sc,dropupText:"Image"},gifs:{id:"upload-gifs-icon",svgString:cc,dropupText:"GIF"},audio:{id:"upload-audio-icon",svgString:lc,dropupText:"Audio"},mixedFiles:{id:"upload-mixed-files-icon",svgString:oc,dropupText:"File"}},Sr=function(){function r(a,e,t,n){var i=this;_(this,r),this._attachments=[],this._fileCountLimit=99,this._acceptedFormat="",e.maxNumberOfFiles&&(this._fileCountLimit=e.maxNumberOfFiles),this._toggleContainerDisplay=t,this._fileAttachmentsContainerRef=n,e.acceptedFormats&&(this._acceptedFormat=e.acceptedFormats),setTimeout(function(){i._validationHandler=a._validationHandler})}return k(r,[{key:"attemptAddFile",value:function(e,t){return r.isFileTypeValid(e,this._acceptedFormat)?(this.addAttachmentBasedOnType(e,t,!0),!0):!1}},{key:"addAttachmentBasedOnType",value:function(e,t,n){var i=r.getTypeFromBlob(e);if(i==="image"){var o=r.createImageAttachment(t);this.addFileAttachment(e,"image",o,n)}else if(i==="audio"){var s=or.createAudioAttachment(t);this.addFileAttachment(e,"audio",s,n)}else{var l=r.createAnyFileAttachment(e.name);this.addFileAttachment(e,"any",l,n)}}},{key:"addFileAttachment",value:function(e,t,n,i){var o,s=r.createContainer(n);if(this._attachments.length>=this._fileCountLimit){var l=this._attachments[this._attachments.length-1].removeButton;l==null||l.click();var c=this._fileAttachmentsContainerRef.children;this._fileAttachmentsContainerRef.insertBefore(s,c[0])}else this._fileAttachmentsContainerRef.appendChild(s);var u={file:e,attachmentContainerElement:s,fileType:t};return i&&(u.removeButton=this.createRemoveAttachmentButton(u),s.appendChild(u.removeButton)),this._toggleContainerDisplay(!0),this._attachments.push(u),this._fileAttachmentsContainerRef.scrollTop=this._fileAttachmentsContainerRef.scrollHeight,(o=this._validationHandler)==null||o.call(this),u}},{key:"createRemoveAttachmentButton",value:function(e){var t=document.createElement("div");t.classList.add("remove-file-attachment-button"),t.onclick=this.removeAttachment.bind(this,e);var n=document.createElement("div");return n.classList.add("x-icon"),n.innerText="×",t.appendChild(n),t}},{key:"removeAttachment",value:function(e){var t,n=this._attachments.findIndex(function(o){return o===e}),i=this._attachments[n].attachmentContainerElement;this._attachments.splice(n,1),or.stopAttachmentPlayback(i),i.remove(),this._toggleContainerDisplay(!1),(t=this._validationHandler)==null||t.call(this)}},{key:"getFiles",value:function(){return Array.from(this._attachments).map(function(e){return{file:e.file,type:e.fileType}})}},{key:"removeAllAttachments",value:function(){this._attachments.forEach(function(e){setTimeout(function(){var t;return(t=e.removeButton)==null?void 0:t.click()})})}}],[{key:"isFileTypeValid",value:function(e,t){if(t==="")return!0;for(var n=t.split(","),i=0;i<n.length;i++){var o=n[i].trim();if(e.type===o)return!0;if(o.startsWith(".")){var s=o.slice(1);if(e.name.endsWith(s))return!0}else if(e.name.endsWith(o)||o.endsWith("/*")&&e.type.startsWith(o.slice(0,-2)))return!0}return!1}},{key:"getTypeFromBlob",value:function(e){var t=e.type;return t.startsWith("image")?"image":t.startsWith("audio")?"audio":"any"}},{key:"createImageAttachment",value:function(e){var t=new Image;return t.src=e,t.classList.add("image-attachment"),t}},{key:"createAnyFileAttachment",value:function(e){var t=document.createElement("div");t.classList.add("border-bound-attachment"),Ie.IS_SAFARI&&t.classList.add("border-bound-attachment-safari");var n=document.createElement("div");n.classList.add("any-file-attachment-text");var i=document.createElement("div");return i.classList.add("file-attachment-text-container"),i.appendChild(n),n.textContent=e,t.appendChild(i),t}},{key:"createContainer",value:function(e){var t=document.createElement("div");return t.classList.add("file-attachment"),t.appendChild(e),t}}]),r}(),dc=`<?xml version="1.0" encoding="utf-8"?>
|
|
218
|
-
<svg viewBox="0 0 32 32" version="1.1" xmlns="http://www.w3.org/2000/svg">
|
|
219
|
-
<title>play</title>
|
|
220
|
-
<path d="M5.92 24.096q0 1.088 0.928 1.728 0.512 0.288 1.088 0.288 0.448 0 0.896-0.224l16.16-8.064q0.48-0.256 0.8-0.736t0.288-1.088-0.288-1.056-0.8-0.736l-16.16-8.064q-0.448-0.224-0.896-0.224-0.544 0-1.088 0.288-0.928 0.608-0.928 1.728v16.16z"></path>
|
|
221
|
-
</svg>`,ia=`<?xml version="1.0" encoding="utf-8"?>
|
|
222
|
-
<svg viewBox="0 0 32 32" version="1.1" xmlns="http://www.w3.org/2000/svg">
|
|
223
|
-
<title>stop</title>
|
|
224
|
-
<path d="M5.92 24.096q0 0.832 0.576 1.408t1.44 0.608h16.128q0.832 0 1.44-0.608t0.576-1.408v-16.16q0-0.832-0.576-1.44t-1.44-0.576h-16.128q-0.832 0-1.44 0.576t-0.576 1.44v16.16z"></path>
|
|
225
|
-
</svg>`,zi=function(r){$(a,r);function a(e,t,n,i){return _(this,a),R(this,a,[e,t,n,i])}return k(a,[{key:"createTimer",value:function(t,n){var i=this,o=0,s=n!==void 0&&n<a.TIMER_LIMIT_S?n:a.TIMER_LIMIT_S;return setInterval(function(){var l;o+=1,o===s&&((l=i.stopPlaceholderCallback)==null||l.call(i),i.clearTimer()),o===600&&t.classList.add("audio-placeholder-text-4-digits");var c=Math.floor(o/60),u=(o%60).toString().padStart(2,"0");t.textContent="".concat(c,":").concat(u)},1e3)}},{key:"createPlaceholderAudioAttachment",value:function(t){var n=a.createAudioContainer(),i=document.createElement("div");i.classList.add("audio-placeholder-text-3-digits");var o=document.createElement("div");o.classList.add("file-attachment-text-container","audio-placeholder-text-3-digits-container"),o.appendChild(i);var s=he.createSVGElement(ia);return s.classList.add("attachment-icon","stop-icon","not-removable-attachment-icon"),i.textContent="0:00",this._activePlaceholderTimer=this.createTimer(i,t),n.appendChild(o),this.addPlaceholderAudioAttachmentEvents(n,s,o),n}},{key:"addPlaceholderAudioAttachmentEvents",value:function(t,n,i){var o=this,s=function(){return t.replaceChildren(n)};t.addEventListener("mouseenter",s);var l=function(){return t.replaceChildren(i)};t.addEventListener("mouseleave",l);var c=function(){var d;return(d=o.stopPlaceholderCallback)==null?void 0:d.call(o)};t.addEventListener("click",c)}},{key:"addPlaceholderAttachment",value:function(t,n){var i=this.createPlaceholderAudioAttachment(n);this._activePlaceholderAttachment=this.addFileAttachment(new File([],""),"audio",i,!1),this.stopPlaceholderCallback=t}},{key:"completePlaceholderAttachment",value:function(t,n){var i=this._activePlaceholderAttachment;i&&(i.file=t,a.addAudioElements(i.attachmentContainerElement.children[0],n),i.removeButton=this.createRemoveAttachmentButton(i),i.attachmentContainerElement.appendChild(i.removeButton),this._activePlaceholderAttachment=void 0,this.clearTimer())}},{key:"removePlaceholderAttachment",value:function(){this._activePlaceholderAttachment&&(this.removeAttachment(this._activePlaceholderAttachment),this._activePlaceholderAttachment=void 0,this.clearTimer())}},{key:"clearTimer",value:function(){this._activePlaceholderTimer!==void 0&&(clearInterval(this._activePlaceholderTimer),this._activePlaceholderTimer=void 0,this.stopPlaceholderCallback=void 0)}}],[{key:"createAudioContainer",value:function(){var t=document.createElement("div");return t.classList.add("border-bound-attachment","audio-attachment-icon-container"),Ie.IS_SAFARI&&t.classList.add("border-bound-attachment-safari"),t}},{key:"addAudioElements",value:function(t,n){var i=t.parentElement?me.cloneElement(t):t,o=document.createElement("audio");o.src=n;var s=he.createSVGElement(dc);s.classList.add("attachment-icon","play-icon");var l=he.createSVGElement(ia);l.classList.add("attachment-icon","stop-icon"),i.replaceChildren(s),o.onplay=function(){i.replaceChildren(l)},o.onpause=function(){i.replaceChildren(s),o.currentTime=0},o.onended=function(){i.replaceChildren(s)},i.onclick=function(){o.paused?o.play():o.pause()}}},{key:"createAudioAttachment",value:function(t){var n=a.createAudioContainer();return a.addAudioElements(n,t),n}},{key:"stopAttachmentPlayback",value:function(t){var n,i,o;(o=(i=(n=t.children[0])==null?void 0:n.children)==null?void 0:i[0])!=null&&o.classList.contains("stop-icon")&&t.children[0].click()}}]),a}(Sr);zi.TIMER_LIMIT_S=5999;var or=zi,pc=function(){function r(){_(this,r)}return k(r,null,[{key:"create",value:function(e,t,n,i,o){return o==="audio"?new or(e,t,n,i):new Sr(e,t,n,i)}}]),r}(),Cr=function(){function r(a,e,t){_(this,r),this._fileAttachmentsTypes=[],this.elementRef=this.createAttachmentContainer();var n=I(t)=="object"&&!!t.displayFileAttachmentContainer;this.toggleContainerDisplay(n),a.appendChild(this.elementRef),e&&Object.assign(this.elementRef.style,e)}return k(r,[{key:"addType",value:function(e,t,n){var i=pc.create(e,t,this.toggleContainerDisplay.bind(this),this.elementRef,n);return this._fileAttachmentsTypes.push(i),i}},{key:"createAttachmentContainer",value:function(){var e=document.createElement("div");return e.id="file-attachment-container",e}},{key:"toggleContainerDisplay",value:function(e){e?this.elementRef.style.display="block":this.elementRef.children.length===0&&(this.elementRef.style.display="none")}},{key:"getAllFileData",value:function(){var e=this._fileAttachmentsTypes.map(function(t){return t.getFiles()}).flat();return e.length>0?e:void 0}},{key:"completePlaceholders",value:function(){var a=S(h().mark(function t(){return h().wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,Promise.all(this._fileAttachmentsTypes.map(function(){var o=S(h().mark(function s(l){var c;return h().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:return d.abrupt("return",(c=l.stopPlaceholderCallback)==null?void 0:c.call(l));case 1:case"end":return d.stop()}},s)}));return function(s){return o.apply(this,arguments)}}()));case 2:case"end":return i.stop()}},t,this)}));function e(){return a.apply(this,arguments)}return e}()},{key:"addFilesToAnyType",value:function(e){r.addFilesToType(e,this._fileAttachmentsTypes)}},{key:"removeAllFiles",value:function(){this._fileAttachmentsTypes.forEach(function(e){return e.removeAllAttachments()}),this.elementRef.replaceChildren(),this.toggleContainerDisplay(!1)}},{key:"getNumberOfTypes",value:function(){return this._fileAttachmentsTypes.length}}],[{key:"addFilesToType",value:function(e,t){e.forEach(function(n){var i=new FileReader;i.readAsDataURL(n),i.onload=function(o){for(var s=0;s<t.length&&!t[s].attemptAddFile(n,o.target.result);s+=1);}})}}]),r}(),Di=function(){function r(a,e,t){_(this,r),this._isOpen=!1,this._contentRef=r.createModalContent(e,t==null?void 0:t.backgroundColor),this._buttonPanel=r.createButtonPanel(t==null?void 0:t.backgroundColor),this._elementRef=r.createContainer(this._contentRef,t),this._elementRef.appendChild(this._buttonPanel),a.appendChild(this._elementRef),this._backgroundPanelRef=r.createDarkBackgroundPanel(),a.appendChild(this._backgroundPanelRef),this.addWindowEvents(a)}return k(r,[{key:"isOpen",value:function(){return this._isOpen}},{key:"addButtons",value:function(){for(var e=this,t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];n.forEach(function(o){return e._buttonPanel.appendChild(o)})}},{key:"close",value:function(){var e=this;this._elementRef.classList.remove("show-modal"),this._elementRef.classList.add("hide-modal"),this._backgroundPanelRef.classList.remove("show-modal-background"),this._backgroundPanelRef.classList.add("hide-modal-background"),this._isOpen=!1,setTimeout(function(){e._elementRef.style.display="none",e._backgroundPanelRef.style.display="none"},r.MODAL_CLOSE_TIMEOUT_MS)}},{key:"displayModalElements",value:function(){this._elementRef.style.display="flex",this._elementRef.classList.remove("hide-modal"),this._elementRef.classList.add("show-modal"),this._backgroundPanelRef.style.display="block",this._backgroundPanelRef.classList.remove("hide-modal-background"),this._backgroundPanelRef.classList.add("show-modal-background"),this._isOpen=!0}},{key:"openTextModal",value:function(e){this._contentRef.innerHTML=e,this.displayModalElements()}},{key:"addCloseButton",value:function(e,t,n){var i=this,o=t?r.createSVGButton(e):r.createTextButton(e);return this.addButtons(o),o.onclick=function(){i.close(),setTimeout(function(){n==null||n()},140)},o}},{key:"addWindowEvents",value:function(e){this.keyDownEvent=this.windowKeyDown.bind(this,e),window.addEventListener("keydown",this.keyDownEvent)}},{key:"windowKeyDown",value:function(e,t){var n,i;!e.isConnected&&this.keyDownEvent?window.removeEventListener("keydown",this.keyDownEvent):this._isOpen&&(t.key===te.ESCAPE?(this.close(),(n=this.extensionCloseCallback)==null||n.call(this)):t.key===te.ENTER&&(this.close(),(i=this.extensionCloseCallback)==null||i.call(this)))}}],[{key:"createContainer",value:function(e,t){var n=document.createElement("div");return n.classList.add("modal"),n.appendChild(e),t&&delete t.backgroundColor,Object.assign(n.style,t),n}},{key:"createModalContent",value:function(e,t){var n,i=document.createElement("div");return(n=i.classList).add.apply(n,ri(e)),t&&(i.style.backgroundColor=t),document.createElement("div").appendChild(i),i}},{key:"createButtonPanel",value:function(e){var t=document.createElement("div");return t.classList.add("modal-button-panel"),e&&(t.style.backgroundColor=e),t}},{key:"createDarkBackgroundPanel",value:function(){var e=document.createElement("div");return e.id="modal-background-panel",e}},{key:"createTextButton",value:function(e){var t=document.createElement("div");return t.classList.add("modal-button"),t.textContent=e,t}},{key:"createSVGButton",value:function(e){var t=document.createElement("div");t.classList.add("modal-button","modal-svg-button");var n=he.createSVGElement(e);return n.classList.add("modal-svg-button-icon"),t.appendChild(n),t}},{key:"createTextModalFunc",value:function(e,t,n){var i;if(I(t)=="object"&&(i=t.files)!=null&&i.infoModal){var o=new r(e,["modal-content"],t.files.infoModal.containerStyle);return o.addCloseButton("OK",!1,n),o.openTextModal.bind(o,t.infoModalTextMarkUp||"")}}}]),r}();Di.MODAL_CLOSE_TIMEOUT_MS=190;var gt=Di,mc=function(r){$(a,r);function a(e,t,n,i,o,s){var l;_(this,a);var c,u,d,p,m,g;l=R(this,a,[a.createButtonElement(),(c=n.button)==null?void 0:c.position,n.button,s]);var b=l.createInnerElements(i,o,l._customStyles);return l._inputElement=a.createInputElement((u=n==null?void 0:n.files)==null?void 0:u.acceptedFormats),l.addClickEvent(e,n),l.elementRef.replaceChildren(b.styles),l.reapplyStateStyle("styles"),l._fileAttachmentsType=t,l._openModalOnce=((p=(d=n.files)==null?void 0:d.infoModal)==null?void 0:p.openModalOnce)===!1||(g=(m=n.files)==null?void 0:m.infoModal)==null?void 0:g.openModalOnce,l}return k(a,[{key:"createInnerElements",value:function(t,n,i){var o=a.createSVGIconElement(t,n);return{styles:this.createInnerElement(o,"styles",i)}}},{key:"triggerImportPrompt",value:function(t){t.onchange=this.import.bind(this,t),t.click()}},{key:"import",value:function(t){Cr.addFilesToType(Array.from(t.files||[]),[this._fileAttachmentsType]),t.value=""}},{key:"createInnerElement",value:function(t,n,i){return st.createSpecificStateElement(this.elementRef,n,i)||t}},{key:"addClickEvent",value:function(t,n){var i=this.triggerImportPrompt.bind(this,this._inputElement),o=gt.createTextModalFunc(t,n,i);this.elementRef.onclick=this.click.bind(this,o)}},{key:"click",value:function(t){t&&(this._openModalOnce===void 0||this._openModalOnce===!0)?(t(),this._openModalOnce===!0&&(this._openModalOnce=!1)):this.triggerImportPrompt(this._inputElement)}}],[{key:"createInputElement",value:function(t){var n=document.createElement("input");return n.type="file",n.accept=t||"",n.hidden=!0,n.multiple=!0,n}},{key:"createButtonElement",value:function(){var t=document.createElement("div");return t.classList.add("input-button","upload-file-button"),t}},{key:"createSVGIconElement",value:function(t,n){var i=he.createSVGElement(n);return i.id=t,i}}]),a}(It),oa=function(){function r(){_(this,r)}return k(r,null,[{key:"create",value:function(e,t,n){var i=r.createElement(n);r.addEvents(i,e,t),e.appendChild(i)}},{key:"createElement",value:function(e){var t=document.createElement("div");return t.id="drag-and-drop",I(e)=="object"&&Object.assign(t.style,e),t}},{key:"addEvents",value:function(e,t,n){t.ondragenter=function(i){i.preventDefault(),r.display(e)},e.ondragleave=function(i){i.preventDefault(),r.hide(e)},e.ondragover=function(i){i.preventDefault()},e.ondrop=function(i){i.preventDefault(),r.uploadFile(n,i),r.hide(e)}}},{key:"uploadFile",value:function(e,t){var n,i=(n=t.dataTransfer)==null?void 0:n.files;i&&e.addFilesToAnyType(Array.from(i))}},{key:"display",value:function(e){e.style.display="block"}},{key:"hide",value:function(e){e.style.display="none"}},{key:"isEnabled",value:function(e,t){return t!==void 0&&t===!1?!1:!!t||e.getNumberOfTypes()>0}}]),r}(),hc=function(){function r(){_(this,r)}return k(r,null,[{key:"validate",value:function(e,t,n,i,o){var s=e(n,i,o);return s?t.changeToSubmitIcon():t.changeToDisabledIcon(),s}},{key:"useValidationFunc",value:function(){var a=S(h().mark(function t(n,i,o,s){var l,c,u,d;return h().wrap(function(m){for(;;)switch(m.prev=m.next){case 0:return l=i.inputElementRef,c=l.classList.contains("text-input-placeholder")?"":l.textContent,m.next=3,o.completePlaceholders();case 3:return u=o.getAllFileData(),d=u==null?void 0:u.map(function(g){return g.file}),m.abrupt("return",r.validate(n,s,c,d));case 5:case"end":return m.stop()}},t)}));function e(t,n,i,o){return a.apply(this,arguments)}return e}()},{key:"useValidationFuncProgrammatic",value:function(){var a=S(h().mark(function t(n,i,o){var s,l;return h().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return l=(s=i.files)==null?void 0:s.map(function(d){return d.file}),u.abrupt("return",r.validate(n,o,i.text,l,!0));case 2:case"end":return u.stop()}},t)}));function e(t,n,i){return a.apply(this,arguments)}return e}()},{key:"validateWebsocket",value:function(e,t){return e.websocket&&!Et.canSendMessage(e.websocket)?(t.changeToDisabledIcon(),!1):!0}},{key:"attach",value:function(e,t,n,i,o){var s=e.validateInput||Ve.processValidateInput(e);e._validationHandler=function(){var l=S(h().mark(function c(u){var d;return h().wrap(function(m){for(;;)switch(m.prev=m.next){case 0:if(!(o.status.loadingActive||o.status.requestInProgress||t.isSubmitProgrammaticallyDisabled===!0||!r.validateWebsocket(t,o))){m.next=2;break}return m.abrupt("return",!1);case 2:return d=s||t.canSendMessage,m.abrupt("return",d?u?r.useValidationFuncProgrammatic(d,u,o):r.useValidationFunc(d,n,i,o):null);case 4:case"end":return m.stop()}},c)}));return function(c){return l.apply(this,arguments)}}()}}]),r}(),gc=`<?xml version="1.0" encoding="iso-8859-1"?>
|
|
226
|
-
<svg height="1.4em" width="1.4em" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"
|
|
227
|
-
viewBox="0 0 490.9 490.9" xml:space="preserve">
|
|
228
|
-
<g>
|
|
229
|
-
<g>
|
|
230
|
-
<path d="M245.5,322.9c53,0,96.2-43.2,96.2-96.2V96.2c0-53-43.2-96.2-96.2-96.2s-96.2,43.2-96.2,96.2v130.5
|
|
231
|
-
C149.3,279.8,192.5,322.9,245.5,322.9z M173.8,96.2c0-39.5,32.2-71.7,71.7-71.7s71.7,32.2,71.7,71.7v130.5
|
|
232
|
-
c0,39.5-32.2,71.7-71.7,71.7s-71.7-32.2-71.7-71.7V96.2z"/>
|
|
233
|
-
<path d="M94.4,214.5c-6.8,0-12.3,5.5-12.3,12.3c0,85.9,66.7,156.6,151.1,162.8v76.7h-63.9c-6.8,0-12.3,5.5-12.3,12.3
|
|
234
|
-
s5.5,12.3,12.3,12.3h152.3c6.8,0,12.3-5.5,12.3-12.3s-5.5-12.3-12.3-12.3h-63.9v-76.7c84.4-6.3,151.1-76.9,151.1-162.8
|
|
235
|
-
c0-6.8-5.5-12.3-12.3-12.3s-12.3,5.5-12.3,12.3c0,76.6-62.3,138.9-138.9,138.9s-138.9-62.3-138.9-138.9
|
|
236
|
-
C106.6,220,101.2,214.5,94.4,214.5z"/>
|
|
237
|
-
</g>
|
|
238
|
-
</g>
|
|
239
|
-
</svg>
|
|
240
|
-
`,Bi=function(r){$(a,r);function a(e){var t;return _(this,a),(e==null?void 0:e.position)==="dropup-menu"&&(e.position="outside-right"),t=R(this,a,[a.createMicrophoneElement(),e==null?void 0:e.position,e]),t.isActive=!1,t._innerElements=t.createInnerElements(t._customStyles),t.changeToDefault(),t}return k(a,[{key:"createInnerElements",value:function(t){var n=a.createSVGIconElement();return{default:this.createInnerElement(n,"default",t),active:this.createInnerElement(n,"active",t),unsupported:this.createInnerElement(n,"unsupported",t),commandMode:this.createInnerElement(n,"commandMode",t)}}},{key:"createInnerElement",value:function(t,n,i){return st.createSpecificStateElement(this.elementRef,n,i)||t}},{key:"changeToActive",value:function(){this.elementRef.replaceChildren(this._innerElements.active),this.toggleIconFilter("active"),this.reapplyStateStyle("active",["default","commandMode"]),this.isActive=!0}},{key:"changeToDefault",value:function(){this.elementRef.replaceChildren(this._innerElements.default),this.toggleIconFilter("default"),this.reapplyStateStyle("default",["active","commandMode"]),this.isActive=!1}},{key:"changeToCommandMode",value:function(){this.elementRef.replaceChildren(this._innerElements.unsupported),this.toggleIconFilter("command"),this.reapplyStateStyle("commandMode",["active"])}},{key:"changeToUnsupported",value:function(){this.elementRef.replaceChildren(this._innerElements.unsupported),this.elementRef.classList.add("unsupported-microphone"),this.reapplyStateStyle("unsupported",["active"])}},{key:"toggleIconFilter",value:function(t){var n=this.elementRef.children[0];if(n.tagName.toLocaleLowerCase()==="svg")switch(t){case"default":n.classList.remove("active-microphone-icon","command-microphone-icon"),n.classList.add("default-microphone-icon");break;case"active":n.classList.remove("default-microphone-icon","command-microphone-icon"),n.classList.add("active-microphone-icon");break;case"command":n.classList.remove("active-microphone-icon","default-microphone-icon"),n.classList.add("command-microphone-icon");break}}}],[{key:"createMicrophoneElement",value:function(){var t=document.createElement("div");return t.id="microphone-button",t.classList.add("input-button"),t}},{key:"createSVGIconElement",value:function(){var t=he.createSVGElement(gc);return t.id="microphone-icon",t}}]),a}(It),Fi={},mn={},hn={},Rt={},Xe={};Object.defineProperty(Xe,"__esModule",{value:!0});Xe.Text=void 0;var gn=function(){function r(){_(this,r)}return k(r,null,[{key:"capitalize",value:function(e){return e.replace(r.FIRST_CHAR_REGEX,function(t){return t.toUpperCase()})}},{key:"lineBreak",value:function(e){return e.replace(r.DOUBLE_LINE,"<p></p>").replace(r.ONE_LINE,"<br>")}},{key:"isCharDefined",value:function(e){return e!==void 0&&e!==" "&&e!==" "&&e!==`
|
|
241
|
-
`&&e!==""}},{key:"breakupIntoWordsArr",value:function(e){return e.split(/(\W+)/)}}]),r}();Xe.Text=gn;gn.FIRST_CHAR_REGEX=/\S/;gn.DOUBLE_LINE=/\n\n/g;gn.ONE_LINE=/\n/g;Object.defineProperty(Rt,"__esModule",{value:!0});Rt.Translate=void 0;var fc=Xe,vc=function(){function r(){_(this,r)}return k(r,null,[{key:"translate",value:function(e,t){for(var n=fc.Text.breakupIntoWordsArr(e),i=0;i<n.length;i+=1)t[n[i]]&&(n[i]=t[n[i]]);return n.join("")}}]),r}();Rt.Translate=vc;Object.defineProperty(hn,"__esModule",{value:!0});hn.WebSpeechTranscript=void 0;var sa=Rt,bc=function(){function r(){_(this,r)}return k(r,null,[{key:"extract",value:function(e,t,n){for(var i="",o=e.resultIndex;o<e.results.length;++o){var s=e.results[o][0].transcript;n&&(s=sa.Translate.translate(s,n)),e.results[o].isFinal?t+=s:i+=s}return{interimTranscript:i,finalTranscript:t,newText:i||t}}},{key:"extractSafari",value:function(e,t,n){for(var i="",o="",s=e.resultIndex;s<e.results.length;++s){var l=e.results[s][0].transcript;n&&(l=sa.Translate.translate(l,n)),i+=l}return{interimTranscript:o,finalTranscript:i,newText:i}}}]),r}();hn.WebSpeechTranscript=bc;var dt={};Object.defineProperty(dt,"__esModule",{value:!0});dt.Browser=void 0;var ft=k(function r(){_(this,r)});dt.Browser=ft;ft.IS_SAFARI=function(){return ft._IS_SAFARI===void 0&&(ft._IS_SAFARI=/^((?!chrome|android).)*safari/i.test(navigator.userAgent)),ft._IS_SAFARI};var $t={},fn={};Object.defineProperty(fn,"__esModule",{value:!0});fn.EventListeners=void 0;var ji=function(){function r(){_(this,r)}return k(r,null,[{key:"getElementIfFocusedOnAvailable",value:function(e,t){return Array.isArray(e)?e.find(function(n){return t===n}):t===e?e:void 0}},{key:"keyDownWindow",value:function(e){var t=this;e.element&&r.getElementIfFocusedOnAvailable(e.element,document.activeElement)&&(r.KEY_DOWN_TIMEOUT!==null&&clearTimeout(r.KEY_DOWN_TIMEOUT),r.KEY_DOWN_TIMEOUT=setTimeout(function(){r.KEY_DOWN_TIMEOUT=null,t.resetRecording(e)},500))}},{key:"mouseDownWindow",value:function(e,t){this.mouseDownElement=r.getElementIfFocusedOnAvailable(e,t.target)}},{key:"mouseUpWindow",value:function(e){this.mouseDownElement&&this.resetRecording(e),this.mouseDownElement=void 0}},{key:"add",value:function(e,t){var n=(t==null?void 0:t.insertInCursorLocation)===void 0||(t==null?void 0:t.insertInCursorLocation);t!=null&&t.element&&n&&(e.mouseDownEvent=r.mouseDownWindow.bind(e,t.element),document.addEventListener("mousedown",e.mouseDownEvent),e.mouseUpEvent=r.mouseUpWindow.bind(e,t),document.addEventListener("mouseup",e.mouseUpEvent),e.keyDownEvent=r.keyDownWindow.bind(e,t),document.addEventListener("keydown",e.keyDownEvent))}},{key:"remove",value:function(e){document.removeEventListener("mousedown",e.mouseDownEvent),document.removeEventListener("mouseup",e.mouseUpEvent),document.removeEventListener("keydown",e.keyDownEvent)}}]),r}();fn.EventListeners=ji;ji.KEY_DOWN_TIMEOUT=null;var vn={};Object.defineProperty(vn,"__esModule",{value:!0});vn.PreResultUtils=void 0;var yc=function(){function r(){_(this,r)}return k(r,null,[{key:"process",value:function(e,t,n,i,o){var s=i==null?void 0:i(t,n);return s?(setTimeout(function(){s.restart?e.resetRecording(o):s.stop&&e.stop()}),(s.stop||s.restart)&&s.removeNewText):!1}}]),r}();vn.PreResultUtils=yc;var Ot={},Nt={};Object.defineProperty(Nt,"__esModule",{value:!0});Nt.AutoScroll=void 0;var _c=function(){function r(){_(this,r)}return k(r,null,[{key:"changeStateIfNeeded",value:function(e,t){t&&!e.isCursorAtEnd&&(e.endPadding="",e.scrollingSpan.innerHTML=" ")}},{key:"scrollGeneric",value:function(e,t){e.isCursorAtEnd?t.scrollTop=t.scrollHeight:e.scrollingSpan.scrollIntoView({block:"nearest"})}},{key:"scrollSafariPrimitiveToEnd",value:function(e){e.scrollLeft=e.scrollWidth,e.scrollTop=e.scrollHeight}},{key:"isElementOverflown",value:function(e){return e.scrollHeight>e.clientHeight||e.scrollWidth>e.clientWidth}},{key:"isRequired",value:function(e,t){return e&&r.isElementOverflown(t)}}]),r}();Nt.AutoScroll=_c;var Qe={};Object.defineProperty(Qe,"__esModule",{value:!0});Qe.Elements=void 0;var kc=function(){function r(){_(this,r)}return k(r,null,[{key:"isPrimitiveElement",value:function(e){return e.tagName==="INPUT"||e.tagName==="TEXTAREA"}},{key:"createInterimSpan",value:function(){var e=document.createElement("span");return e.style.color="grey",e.style.pointerEvents="none",e}},{key:"createGenericSpan",value:function(){var e=document.createElement("span");return e.style.pointerEvents="none",e}},{key:"appendSpans",value:function(e,t){if(e.spansPopulated=!0,e.insertInCursorLocation&&document.activeElement===t){var n=window.getSelection();if(n!=null&&n.focusNode){var i=n.getRangeAt(0);i.insertNode(e.scrollingSpan),i.insertNode(e.interimSpan),i.insertNode(e.finalSpan),i.collapse(!1),n.removeAllRanges(),n.addRange(i);return}}t.appendChild(e.finalSpan),t.appendChild(e.interimSpan),t.appendChild(e.scrollingSpan)}},{key:"applyCustomColors",value:function(e,t){t.interim&&(e.interimSpan.style.color=t.interim),t.final&&(e.finalSpan.style.color=t.final)}},{key:"isInsideShadowDOM",value:function(e){return e.getRootNode()instanceof ShadowRoot}}]),r}();Qe.Elements=kc;var et={};Object.defineProperty(et,"__esModule",{value:!0});et.Cursor=void 0;var wc=function(){function r(){_(this,r)}return k(r,null,[{key:"setOffsetForGeneric",value:function(e,t){for(var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,i=0,o=0;o<e.childNodes.length;o+=1){var s=e.childNodes[o];if(s.childNodes.length>0){var l=r.setOffsetForGeneric(s,t,n);if(l===-1)return-1;n+=l}else if(s.textContent!==null){if(n+s.textContent.length>t){var c=document.createRange();c.setStart(s,t-n),c.collapse(!0);var u=window.getSelection();return u==null||u.removeAllRanges(),u==null||u.addRange(c),e.focus(),-1}n+=s.textContent.length,i+=s.textContent.length}}return i}},{key:"focusEndOfGeneric",value:function(e){var t=document.createRange();t.selectNodeContents(e),t.collapse(!1);var n=window.getSelection();n&&(n.removeAllRanges(),n.addRange(t))}},{key:"setOffsetForSafariGeneric",value:function(e,t){var n=window.getSelection();if(n){var i=r.getGenericElementCursorOffset(e,n,!0);console.log(i),setTimeout(function(){},100),r.setOffsetForGeneric(e,i+t)}}},{key:"setOffsetForPrimitive",value:function(e,t,n){n&&e.blur(),e.setSelectionRange(t,t),e.focus()}},{key:"getGenericElementCursorOffset",value:function(e,t,n){var i=0;if(t.rangeCount>0){var o=t.getRangeAt(0),s=o.cloneRange();s.selectNodeContents(e),n?s.setEnd(o.startContainer,o.startOffset):s.setEnd(o.endContainer,o.endOffset),i=s.toString().length}return i}}]),r}();et.Cursor=wc;Object.defineProperty(Ot,"__esModule",{value:!0});Ot.CommandUtils=void 0;var la=Nt,Sc=Qe,Cc=dt,ca=et,ua=Xe,Ec=function(){function r(){_(this,r)}return k(r,null,[{key:"processCommand",value:function(e,t){return(!t||!t.caseSensitive)&&(e=e.toLowerCase()),(t==null?void 0:t.substrings)===!1?ua.Text.breakupIntoWordsArr(e):e}},{key:"process",value:function(e){var t;return((t=e.settings)===null||t===void 0?void 0:t.caseSensitive)===!0?e:Object.keys(e).reduce(function(n,i){var o=e[i];return n[i]=typeof o=="string"?r.processCommand(o,e.settings):o,n},{})}},{key:"toggleCommandModeOn",value:function(e){var t;e.isWaitingForCommand=!0,(t=e.onCommandModeTrigger)===null||t===void 0||t.call(e,!0)}},{key:"toggleCommandModeOff",value:function(e){var t;e.isWaitingForCommand&&((t=e.onCommandModeTrigger)===null||t===void 0||t.call(e,!1),e.isWaitingForCommand=!1)}},{key:"setText",value:function(e,t,n,i){r.toggleCommandModeOff(e),Sc.Elements.isPrimitiveElement(i)?(i.value=n,e.isTargetInShadow||ca.Cursor.setOffsetForPrimitive(i,n.length,!0),Cc.Browser.IS_SAFARI()&&e.autoScroll&&la.AutoScroll.scrollSafariPrimitiveToEnd(i)):(i.textContent=n,e.isTargetInShadow||ca.Cursor.focusEndOfGeneric(i),setTimeout(function(){return la.AutoScroll.scrollGeneric(e,i)})),e.resetRecording(t)}},{key:"checkIfMatchesSubstring",value:function(e,t){return t.includes(e)}},{key:"checkIfMatchesWord",value:function(e,t,n){for(var i=e,o=n.length-1;o>=0;o-=1){for(var s=o,l=i.length-1;n[s]===i[l]&&l>=0;)s-=1,l-=1;if(l<0)return!0}return!1}},{key:"execCommand",value:function(e,t,n,i,o){var s,l,c,u=e.commands;if(!(!u||!i||!n)){var d=((s=u.settings)===null||s===void 0?void 0:s.caseSensitive)===!0?t:t.toLowerCase(),p=ua.Text.breakupIntoWordsArr(d),m=((l=u.settings)===null||l===void 0?void 0:l.substrings)===!1?r.checkIfMatchesWord:r.checkIfMatchesSubstring;if(u.commandMode&&m(u.commandMode,d,p))return e.setInterimColorToFinal(),setTimeout(function(){return r.toggleCommandModeOn(e)}),{doNotProcessTranscription:!1};if(!(u.commandMode&&!e.isWaitingForCommand)){if(u.stop&&m(u.stop,d,p))return r.toggleCommandModeOff(e),setTimeout(function(){return e.stop()}),{doNotProcessTranscription:!1};if(u.pause&&m(u.pause,d,p))return r.toggleCommandModeOff(e),e.setInterimColorToFinal(),setTimeout(function(){var g;e.isPaused=!0,(g=e.onPauseTrigger)===null||g===void 0||g.call(e,!0)}),{doNotProcessTranscription:!1};if(u.resume&&m(u.resume,d,p))return e.isPaused=!1,(c=e.onPauseTrigger)===null||c===void 0||c.call(e,!1),r.toggleCommandModeOff(e),e.resetRecording(n),{doNotProcessTranscription:!0};if(u.reset&&m(u.reset,d,p))return o!==void 0&&r.setText(e,n,o,i),{doNotProcessTranscription:!0};if(u.removeAllText&&m(u.removeAllText,d,p))return r.setText(e,n,"",i),{doNotProcessTranscription:!0}}}}}]),r}();Ot.CommandUtils=Ec;var bn={};Object.defineProperty(bn,"__esModule",{value:!0});bn.Highlight=void 0;var Ac=Qe,pt=et,Pc=function(){function r(){_(this,r)}return k(r,null,[{key:"setStateForPrimitive",value:function(e,t){var n,i;t.selectionStart!==null&&(n=t.selectionStart),t.selectionEnd!==null&&(i=t.selectionEnd),e.isHighlighted=n!==i}},{key:"setStateForGeneric",value:function(e,t){var n=window.getSelection();if(n!=null&&n.focusNode){var i=pt.Cursor.getGenericElementCursorOffset(t,n,!0),o=pt.Cursor.getGenericElementCursorOffset(t,n,!1);e.isHighlighted=i!==o}}},{key:"setState",value:function(e,t){document.activeElement===t&&(Ac.Elements.isPrimitiveElement(t)?r.setStateForPrimitive(e,t):r.setStateForGeneric(e,t))}},{key:"removeForGeneric",value:function(e,t){var n=window.getSelection();if(n){var i=pt.Cursor.getGenericElementCursorOffset(t,n,!0);n.deleteFromDocument(),pt.Cursor.setOffsetForGeneric(t,i),e.isHighlighted=!1}}},{key:"removeForPrimitive",value:function(e,t){var n=t.selectionStart,i=t.selectionEnd,o=t.value;if(n&&i){var s=o.substring(0,n)+o.substring(i);t.value=s,pt.Cursor.setOffsetForPrimitive(t,n,e.autoScroll)}e.isHighlighted=!1}}]),r}();bn.Highlight=Pc;var yn={};Object.defineProperty(yn,"__esModule",{value:!0});yn.Padding=void 0;var Lc=Qe,da=et,rt=Xe,Tc=function(){function r(){_(this,r)}return k(r,null,[{key:"setStateForPrimitiveElement",value:function(e,t){if(document.activeElement===t&&t.selectionStart!==null){var n=t.selectionStart,i=t.value[n-1],o=t.selectionEnd===null?n:t.selectionEnd,s=t.value[o];rt.Text.isCharDefined(i)&&(e.startPadding=" ",e.numberOfSpacesBeforeNewText=1),rt.Text.isCharDefined(s)&&(e.endPadding=" ",e.numberOfSpacesAfterNewText=1),e.isCursorAtEnd=t.value.length===o;return}var l=t.value[t.value.length-1];rt.Text.isCharDefined(l)&&(e.startPadding=" ",e.numberOfSpacesBeforeNewText=1),e.isCursorAtEnd=!0}},{key:"setStateForGenericElement",value:function(e,t){var n,i,o;if(document.activeElement===t){var s=window.getSelection();if(s!=null&&s.focusNode){var l=da.Cursor.getGenericElementCursorOffset(t,s,!0),c=(n=t.textContent)===null||n===void 0?void 0:n[l-1],u=da.Cursor.getGenericElementCursorOffset(t,s,!1),d=(i=t.textContent)===null||i===void 0?void 0:i[u];rt.Text.isCharDefined(c)&&(e.startPadding=" "),rt.Text.isCharDefined(d)&&(e.endPadding=" "),e.isCursorAtEnd=((o=t.textContent)===null||o===void 0?void 0:o.length)===u;return}}var p=t.innerText.charAt(t.innerText.length-1);rt.Text.isCharDefined(p)&&(e.startPadding=" "),e.isCursorAtEnd=!0}},{key:"setState",value:function(e,t){Lc.Elements.isPrimitiveElement(t)?r.setStateForPrimitiveElement(e,t):r.setStateForGenericElement(e,t)}},{key:"adjustStateAfterRecodingPrimitiveElement",value:function(e,t){if(e.primitiveTextRecorded=!0,e.insertInCursorLocation&&document.activeElement===t&&(t.selectionEnd!==null&&(e.endPadding=e.endPadding+t.value.slice(t.selectionEnd)),t.selectionStart!==null)){e.startPadding=t.value.slice(0,t.selectionStart)+e.startPadding;return}e.startPadding=t.value+e.startPadding}},{key:"adjustSateForNoTextPrimitiveElement",value:function(e){e.numberOfSpacesBeforeNewText===1&&(e.startPadding=e.startPadding.substring(0,e.startPadding.length-1),e.numberOfSpacesBeforeNewText=0),e.numberOfSpacesAfterNewText===1&&(e.endPadding=e.endPadding.substring(1),e.numberOfSpacesAfterNewText=0)}}]),r}();yn.Padding=Tc;Object.defineProperty($t,"__esModule",{value:!0});$t.Speech=void 0;var pa=fn,Mc=vn,ma=Ot,qt=Nt,Fn=bn,we=Qe,jn=yn,ha=dt,ga=et,qn=Xe,xc=function(){function r(){_(this,r),this.finalTranscript="",this.interimSpan=we.Elements.createInterimSpan(),this.finalSpan=we.Elements.createGenericSpan(),this.scrollingSpan=we.Elements.createGenericSpan(),this.isCursorAtEnd=!1,this.spansPopulated=!1,this.startPadding="",this.endPadding="",this.numberOfSpacesBeforeNewText=0,this.numberOfSpacesAfterNewText=0,this.isHighlighted=!1,this.primitiveTextRecorded=!1,this.recognizing=!1,this._displayInterimResults=!0,this.insertInCursorLocation=!0,this.autoScroll=!0,this.isRestarting=!1,this.isPaused=!1,this.isWaitingForCommand=!1,this.isTargetInShadow=!1,this.cannotBeStopped=!1,this.resetState()}return k(r,[{key:"prepareBeforeStart",value:function(e){var t,n;if(e!=null&&e.element)if(pa.EventListeners.add(this,e),Array.isArray(e.element)){var i=e.element.find(function(o){return o===document.activeElement})||e.element[0];if(!i)return;this.prepare(i)}else this.prepare(e.element);(e==null?void 0:e.displayInterimResults)!==void 0&&(this._displayInterimResults=e.displayInterimResults),e!=null&&e.textColor&&(this._finalTextColor=(t=e==null?void 0:e.textColor)===null||t===void 0?void 0:t.final,we.Elements.applyCustomColors(this,e.textColor)),(e==null?void 0:e.insertInCursorLocation)!==void 0&&(this.insertInCursorLocation=e.insertInCursorLocation),(e==null?void 0:e.autoScroll)!==void 0&&(this.autoScroll=e.autoScroll),this._onResult=e==null?void 0:e.onResult,this._onPreResult=e==null?void 0:e.onPreResult,this._onStart=e==null?void 0:e.onStart,this._onStop=e==null?void 0:e.onStop,this._onError=e==null?void 0:e.onError,this.onCommandModeTrigger=e==null?void 0:e.onCommandModeTrigger,this.onPauseTrigger=e==null?void 0:e.onPauseTrigger,this._options=e,!((n=this._options)===null||n===void 0)&&n.commands&&(this.commands=ma.CommandUtils.process(this._options.commands))}},{key:"prepare",value:function(e){jn.Padding.setState(this,e),Fn.Highlight.setState(this,e),this.isTargetInShadow=we.Elements.isInsideShadowDOM(e),we.Elements.isPrimitiveElement(e)?(this._primitiveElement=e,this._originalText=this._primitiveElement.value):(this._genericElement=e,this._originalText=this._genericElement.textContent)}},{key:"resetRecording",value:function(e){this.isRestarting=!0,this.stop(!0),this.resetState(!0),this.start(e,!0)}},{key:"updateElements",value:function(e,t,n){var i,o=qn.Text.capitalize(t);if(!(this.finalTranscript===o&&e==="")){Mc.PreResultUtils.process(this,n,e==="",this._onPreResult,this._options)&&(e="",n="");var s=this.commands&&ma.CommandUtils.execCommand(this,n,this._options,this._primitiveElement||this._genericElement,this._originalText);if(s){if(s.doNotProcessTranscription)return;e="",n=""}if(!(this.isPaused||this.isWaitingForCommand)){(i=this._onResult)===null||i===void 0||i.call(this,n,e===""),this.finalTranscript=o,this._displayInterimResults||(e="");var l=this.finalTranscript===""&&e==="";this._primitiveElement?this.updatePrimitiveElement(this._primitiveElement,e,l):this._genericElement&&this.updateGenericElement(this._genericElement,e,l)}}}},{key:"updatePrimitiveElement",value:function(e,t,n){this.isHighlighted&&Fn.Highlight.removeForPrimitive(this,e),this.primitiveTextRecorded||jn.Padding.adjustStateAfterRecodingPrimitiveElement(this,e),n&&jn.Padding.adjustSateForNoTextPrimitiveElement(this);var i=this.startPadding+this.finalTranscript+t;if(e.value=i+this.endPadding,!this.isTargetInShadow){var o=i.length+this.numberOfSpacesAfterNewText;ga.Cursor.setOffsetForPrimitive(e,o,this.autoScroll)}this.autoScroll&&ha.Browser.IS_SAFARI()&&this.isCursorAtEnd&&qt.AutoScroll.scrollSafariPrimitiveToEnd(e)}},{key:"updateGenericElement",value:function(e,t,n){this.isHighlighted&&Fn.Highlight.removeForGeneric(this,e),this.spansPopulated||we.Elements.appendSpans(this,e);var i=(n?"":this.startPadding)+qn.Text.lineBreak(this.finalTranscript);this.finalSpan.innerHTML=i;var o=qt.AutoScroll.isRequired(this.autoScroll,e);qt.AutoScroll.changeStateIfNeeded(this,o);var s=qn.Text.lineBreak(t)+(n?"":this.endPadding);this.interimSpan.innerHTML=s,ha.Browser.IS_SAFARI()&&this.insertInCursorLocation&&ga.Cursor.setOffsetForSafariGeneric(e,i.length+s.length),o&&qt.AutoScroll.scrollGeneric(this,e),n&&(this.scrollingSpan.innerHTML="")}},{key:"finalise",value:function(e){this._genericElement&&(e?(this.finalSpan=we.Elements.createGenericSpan(),this.setInterimColorToFinal(),this.interimSpan=we.Elements.createInterimSpan(),this.scrollingSpan=we.Elements.createGenericSpan()):this._genericElement.textContent=this._genericElement.textContent,this.spansPopulated=!1),pa.EventListeners.remove(this)}},{key:"setInterimColorToFinal",value:function(){this.interimSpan.style.color=this._finalTextColor||"black"}},{key:"resetState",value:function(e){this._primitiveElement=void 0,this._genericElement=void 0,this.finalTranscript="",this.finalSpan.innerHTML="",this.interimSpan.innerHTML="",this.scrollingSpan.innerHTML="",this.startPadding="",this.endPadding="",this.isHighlighted=!1,this.primitiveTextRecorded=!1,this.numberOfSpacesBeforeNewText=0,this.numberOfSpacesAfterNewText=0,e||(this.stopTimeout=void 0)}},{key:"setStateOnStart",value:function(){var e;this.recognizing=!0,this.isRestarting?this.isRestarting=!1:(e=this._onStart)===null||e===void 0||e.call(this)}},{key:"setStateOnStop",value:function(){var e;this.recognizing=!1,this.isRestarting||(e=this._onStop)===null||e===void 0||e.call(this)}},{key:"setStateOnError",value:function(e){var t;(t=this._onError)===null||t===void 0||t.call(this,e),this.recognizing=!1}}]),r}();$t.Speech=xc;Object.defineProperty(mn,"__esModule",{value:!0});mn.WebSpeech=void 0;var fa=hn,va=dt,Ic=$t,Rc=function(r){$(a,r);function a(){return _(this,a),R(this,a)}return k(a,[{key:"start",value:function(t){var n;this._extractText===void 0&&(this._extractText=va.Browser.IS_SAFARI()?fa.WebSpeechTranscript.extractSafari:fa.WebSpeechTranscript.extract),this.validate()&&(this.prepareBeforeStart(t),this.instantiateService(t),(n=this._service)===null||n===void 0||n.start(),this._translations=t==null?void 0:t.translations)}},{key:"validate",value:function(){return a.getAPI()?!0:(this.error("Speech Recognition is unsupported"),!1)}},{key:"instantiateService",value:function(t){var n,i,o=a.getAPI();this._service=new o,this._service.continuous=!0,this._service.interimResults=(n=t==null?void 0:t.displayInterimResults)!==null&&n!==void 0?n:!0,this._service.lang=((i=t==null?void 0:t.language)===null||i===void 0?void 0:i.trim())||"en-US",this.setEvents()}},{key:"setEvents",value:function(){var t=this;this._service&&(this._service.onstart=function(){t.setStateOnStart()},this._service.onerror=function(n){va.Browser.IS_SAFARI()&&n.message==="Another request is started"||n.error==="aborted"&&t.isRestarting||n.error!=="no-speech"&&t.error(n.message||n.error)},this._service.onaudioend=function(){t.setStateOnStop()},this._service.onend=function(){t._stopping=!1},this._service.onresult=function(n){if(I(n.results)>"u"&&t._service)t._service.onend=null,t._service.stop();else if(t._extractText&&!t._stopping){var i=t._extractText(n,t.finalTranscript,t._translations),o=i.interimTranscript,s=i.finalTranscript,l=i.newText;t.updateElements(o,s,l)}})}},{key:"stop",value:function(t){var n;this._stopping=!0,(n=this._service)===null||n===void 0||n.stop(),this.finalise(t)}},{key:"error",value:function(t){console.error(t),this.setStateOnError(t),this.stop()}}],[{key:"getAPI",value:function(){return window.webkitSpeechRecognition||window.SpeechRecognition}}]),a}(Ic.Speech);mn.WebSpeech=Rc;var _n={};Object.defineProperty(_n,"__esModule",{value:!0});_n.GlobalState=void 0;var qi=function(){function r(){_(this,r)}return k(r,null,[{key:"doubleClickDetector",value:function(){return r.doubleClickPending?!0:(r.doubleClickPending=!0,setTimeout(function(){r.doubleClickPending=!1},300),!1)}}]),r}();_n.GlobalState=qi;qi.doubleClickPending=!1;var kn={},wn={};Object.defineProperty(wn,"__esModule",{value:!0});wn.PreventConnectionStop=void 0;var $c=function(){function r(){_(this,r)}return k(r,null,[{key:"applyPrevention",value:function(e){clearTimeout(e._manualConnectionStopPrevention),e.cannotBeStopped=!0,e._manualConnectionStopPrevention=setTimeout(function(){e.cannotBeStopped=!1},800)}},{key:"clearPrevention",value:function(e){clearTimeout(e._manualConnectionStopPrevention),e.cannotBeStopped=!1}}]),r}();wn.PreventConnectionStop=$c;var Sn={},Cn={};Object.defineProperty(Cn,"__esModule",{value:!0});Cn.README_URL=void 0;Cn.README_URL="https://github.com/OvidijusParsiunas/speech-to-element";Object.defineProperty(Sn,"__esModule",{value:!0});Sn.AzureSpeechConfig=void 0;var Vn=Cn,Oc=function(){function r(){_(this,r)}return k(r,null,[{key:"validateOptions",value:function(e,t){return t?!t.subscriptionKey&&!t.token&&!t.retrieveToken?(e("Please define a 'subscriptionKey', 'token' or 'retrieveToken' property - more info: ".concat(Vn.README_URL)),!1):t.region?!0:(e("Please define a 'region' property - more info: ".concat(Vn.README_URL)),!1):(e("Please provide subscription details - more info: ".concat(Vn.README_URL)),!1)}},{key:"getNewSpeechConfig",value:function(){var a=S(h().mark(function t(n,i){return h().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:if(!i.region){s.next=2;break}return s.abrupt("return",i.subscriptionKey?n.fromSubscription(i.subscriptionKey.trim(),i.region.trim()):i.token?n.fromAuthorizationToken(i.token.trim(),i.region.trim()):i.retrieveToken?i.retrieveToken().then(function(l){return i.region?n.fromAuthorizationToken((l==null?void 0:l.trim())||"",i.region.trim()):null}).catch(function(l){return console.error(l),null}):null);case 2:case"end":return s.stop()}},t)}));function e(t,n){return a.apply(this,arguments)}return e}()},{key:"process",value:function(e,t){t.language&&(e.speechRecognitionLanguage=t.language.trim())}},{key:"get",value:function(){var a=S(h().mark(function t(n,i){var o;return h().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.next=2,r.getNewSpeechConfig(n,i);case 2:return o=l.sent,l.abrupt("return",(o&&r.process(o,i),o));case 4:case"end":return l.stop()}},t)}));function e(t,n){return a.apply(this,arguments)}return e}()}]),r}();Sn.AzureSpeechConfig=Oc;var En={};Object.defineProperty(En,"__esModule",{value:!0});En.StopTimeout=void 0;var Vi=function(){function r(){_(this,r)}return k(r,null,[{key:"set",value:function(e){e.stopTimeout=setTimeout(function(){return e.stop()},e.stopTimeoutMS)}},{key:"reset",value:function(e,t){e.stopTimeoutMS=t||r.DEFAULT_MS,e.stopTimeout&&clearTimeout(e.stopTimeout),r.set(e)}}]),r}();En.StopTimeout=Vi;Vi.DEFAULT_MS=2e4;var An={};Object.defineProperty(An,"__esModule",{value:!0});An.AzureTranscript=void 0;var Nc=Rt,zc=function(){function r(){_(this,r)}return k(r,null,[{key:"extract",value:function(e,t,n,i){return i&&(e=Nc.Translate.translate(e,i)),n?{interimTranscript:"",finalTranscript:t+e,newText:e}:{interimTranscript:e,finalTranscript:t,newText:e}}}]),r}();An.AzureTranscript=zc;Object.defineProperty(kn,"__esModule",{value:!0});kn.Azure=void 0;var ba=wn,ya=Sn,Un=En,_a=An,Dc=$t,Bc=function(r){$(a,r);function a(){var e;return _(this,a),e=R(this,a,arguments),e._newTextPadding="",e}return k(a,[{key:"start",value:function(t,n){this._newTextPadding="",this.stopTimeout===void 0&&Un.StopTimeout.reset(this,t==null?void 0:t.stopAfterSilenceMs),this.prepareBeforeStart(t),this.startAsync(t),n||ba.PreventConnectionStop.applyPrevention(this)}},{key:"startAsync",value:function(){var e=S(h().mark(function n(i){var o;return h().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:if(l.t0=this.validate(i),!l.t0){l.next=6;break}return l.next=4,this.instantiateService(i);case 4:this._translations=i==null?void 0:i.translations,(o=this._service)===null||o===void 0||o.startContinuousRecognitionAsync(function(){},this.error);case 6:case"end":return l.stop()}},n,this)}));function t(n){return e.apply(this,arguments)}return t}()},{key:"validate",value:function(t){return a.getAPI()?ya.AzureSpeechConfig.validateOptions(this.error.bind(this),t):(this.moduleNotFound(),!1)}},{key:"instantiateService",value:function(){var e=S(h().mark(function n(i){var o,s,l,c;return h().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:return o=a.getAPI(),s=o.AudioConfig.fromDefaultMicrophoneInput(),d.next=4,ya.AzureSpeechConfig.get(o.SpeechConfig,i);case 4:l=d.sent,l?(c=new o.SpeechRecognizer(l,s),this.setEvents(c),this._service=c,i.retrieveToken&&this.retrieveTokenInterval(i.retrieveToken)):this.error("Unable to contact Azure server");case 6:case"end":return d.stop()}},n,this)}));function t(n){return e.apply(this,arguments)}return t}()},{key:"setEvents",value:function(t){t.recognizing=this.onRecognizing.bind(this),t.recognized=this.onRecognized.bind(this),t.sessionStarted=this.onSessionStarted.bind(this),t.canceled=this.onCanceled.bind(this),t.sessionStopped=this.onSessionStopped.bind(this)}},{key:"onRecognizing",value:function(t,n){if(!this._stopping){var i=_a.AzureTranscript.extract(this._newTextPadding+n.result.text,this.finalTranscript,!1,this._translations),o=i.interimTranscript,s=i.finalTranscript,l=i.newText;Un.StopTimeout.reset(this,this.stopTimeoutMS),this.updateElements(o,s,l)}}},{key:"onRecognized",value:function(t,n){var i=n.result;switch(i.reason){case window.SpeechSDK.ResultReason.Canceled:break;case window.SpeechSDK.ResultReason.RecognizedSpeech:if(i.text&&!this._stopping){var o=_a.AzureTranscript.extract(this._newTextPadding+i.text,this.finalTranscript,!0,this._translations),s=o.interimTranscript,l=o.finalTranscript,c=o.newText;Un.StopTimeout.reset(this,this.stopTimeoutMS),this.updateElements(s,l,c),l!==""&&(this._newTextPadding=" ")}break}}},{key:"onCanceled",value:function(t,n){n.reason===window.SpeechSDK.CancellationReason.Error&&this.error(n.errorDetails)}},{key:"onSessionStarted",value:function(){ba.PreventConnectionStop.clearPrevention(this),this.setStateOnStart()}},{key:"onSessionStopped",value:function(){this._retrieveTokenInterval||clearInterval(this._retrieveTokenInterval),this._stopping=!1,this.setStateOnStop()}},{key:"retrieveTokenInterval",value:function(t){var n=this;this._retrieveTokenInterval=setInterval(function(){t==null||t().then(function(i){n._service&&(n._service.authorizationToken=(i==null?void 0:i.trim())||"")}).catch(function(i){n.error(i)})},1e4)}},{key:"stop",value:function(t){var n;!t&&this._retrieveTokenInterval&&clearInterval(this._retrieveTokenInterval),this._stopping=!0,(n=this._service)===null||n===void 0||n.stopContinuousRecognitionAsync(),this.finalise(t)}},{key:"moduleNotFound",value:function(){console.error("speech recognition module not found:"),console.error(`please install the 'microsoft-cognitiveservices-speech-sdk' npm package or add a script tag: <script src="https://aka.ms/csspeech/jsbrowserpackageraw"><\/script>`),this.setStateOnError("speech recognition module not found")}},{key:"error",value:function(t){this._retrieveTokenInterval&&clearInterval(this._retrieveTokenInterval),console.error(t),this.setStateOnError(t),this.stop()}}],[{key:"getAPI",value:function(){return window.SpeechSDK}}]),a}(Dc.Speech);kn.Azure=Bc;Object.defineProperty(Fi,"__esModule",{value:!0});var ka=mn,Fc=Ot,be=_n,jc=kn,qc=function(){function r(){_(this,r)}return k(r,null,[{key:"toggle",value:function(e,t){var n,i,o=e.toLocaleLowerCase().trim();!((n=be.GlobalState.service)===null||n===void 0)&&n.recognizing?this.stop():o==="webspeech"?r.startWebSpeech(t):o==="azure"?r.startAzure(t):(console.error("service not found - must be either 'webspeech' or 'azure'"),(i=t==null?void 0:t.onError)===null||i===void 0||i.call(t,"service not found - must be either 'webspeech' or 'azure'"))}},{key:"startWebSpeech",value:function(e){r.stop()||(be.GlobalState.service=new ka.WebSpeech,be.GlobalState.service.start(e))}},{key:"isWebSpeechSupported",value:function(){return!!ka.WebSpeech.getAPI()}},{key:"startAzure",value:function(e){var t;r.stop()||!((t=be.GlobalState.service)===null||t===void 0)&&t.cannotBeStopped||(be.GlobalState.service=new jc.Azure,be.GlobalState.service.start(e))}},{key:"stop",value:function(){var e;return be.GlobalState.doubleClickDetector()?!0:(!((e=be.GlobalState.service)===null||e===void 0)&&e.recognizing&&be.GlobalState.service.stop(),!1)}},{key:"endCommandMode",value:function(){be.GlobalState.service&&Fc.CommandUtils.toggleCommandModeOff(be.GlobalState.service)}}]),r}(),Hn=Fi.default=qc,Vc=function(r){$(a,r);function a(e,t,n){var i;_(this,a);var o;i=R(this,a,[I(e.speechToText)=="object"?(o=e.speechToText)==null?void 0:o.button:{}]);var s=a.processConfiguration(t,e.speechToText),l=s.serviceName,c=s.processedConfig;if(i._addErrorMessage=n,l==="webspeech"&&!Hn.isWebSpeechSupported())i.changeToUnsupported();else{var u=!e.textInput||!e.textInput.disabled;i.elementRef.onclick=i.buttonClick.bind(pe(i),t,u,l,c)}return i}return k(a,[{key:"buttonClick",value:function(t,n,i,o){t.removeTextIfPlaceholder(),Hn.toggle(i,H({insertInCursorLocation:!1,element:n?t.inputElementRef:void 0,onError:this.onError.bind(this),onStart:this.changeToActive.bind(this),onStop:this.changeToDefault.bind(this),onCommandModeTrigger:this.onCommandModeTrigger.bind(this)},o))}},{key:"onCommandModeTrigger",value:function(t){t?this.changeToCommandMode():this.changeToActive()}},{key:"onError",value:function(){this._addErrorMessage("speechToText","speech input error")}}],[{key:"processConfiguration",value:function(t,n){var i,o,s,l,c,u=I(n)=="object"?n:{},d=I(u.webSpeech)=="object"?u.webSpeech:{},p=u.azure||{},m=H(H({displayInterimResults:(i=u.displayInterimResults)!==null&&i!==void 0?i:void 0,textColor:(o=u.textColor)!==null&&o!==void 0?o:void 0,translations:(s=u.translations)!==null&&s!==void 0?s:void 0,commands:(l=u.commands)!==null&&l!==void 0?l:void 0},d),p),g=(c=u.commands)==null?void 0:c.submit;return g&&(m.onPreResult=function(b){return b.toLowerCase().includes(g)?(setTimeout(function(){var v;return(v=t.submit)==null?void 0:v.call(t)}),Hn.endCommandMode(),{restart:!0,removeNewText:!0}):null}),{serviceName:a.getServiceName(u),processedConfig:m}}},{key:"getServiceName",value:function(t){return t.webSpeech?"webspeech":t.azure?"azure":"webspeech"}}]),a}(Bi),Ui=function(){function r(){_(this,r)}return k(r,null,[{key:"getFileName",value:function(e,t){var n=new Date,i=String(n.getHours()).padStart(2,"0"),o=String(n.getMinutes()).padStart(2,"0"),s=String(n.getSeconds()).padStart(2,"0");return"".concat(e,"-").concat(i,"-").concat(o,"-").concat(s,".").concat(t)}}]),r}(),Uc=function(r){$(a,r);function a(e,t){var n;_(this,a);var i,o;return n=R(this,a,[t.button]),n._waitingForBrowserApproval=!1,n._audioType=e,n._extension=((i=t.files)==null?void 0:i.format)||"mp3",n._maxDurationSeconds=(o=t.files)==null?void 0:o.maxDurationSeconds,n.elementRef.onclick=n.buttonClick.bind(pe(n)),n}return k(a,[{key:"buttonClick",value:function(){this._waitingForBrowserApproval||(this.isActive?this.stop():(this._waitingForBrowserApproval=!0,this.record()))}},{key:"stop",value:function(){var t=this;return new Promise(function(n){var i,o;t.changeToDefault(),(i=t._mediaRecorder)==null||i.stop(),(o=t._mediaStream)==null||o.getTracks().forEach(function(s){return s.stop()}),setTimeout(function(){n()},10)})}},{key:"record",value:function(){var t=this;navigator.mediaDevices.getUserMedia({audio:!0}).then(function(n){t.changeToActive(),t._mediaRecorder=new MediaRecorder(n),t._audioType.addPlaceholderAttachment(t.stop.bind(t),t._maxDurationSeconds),t._mediaStream=n,t._mediaRecorder.addEventListener("dataavailable",function(i){t.createFile(i)}),t._mediaRecorder.start()}).catch(function(n){console.error(n),t.stop()}).finally(function(){t._waitingForBrowserApproval=!1})}},{key:"createFile",value:function(t){var n=this,i=new Blob([t.data],{type:"audio/".concat(this._extension)}),o=Ui.getFileName(this._newFilePrefix||"audio",this._extension),s=new File([i],o,{type:i.type}),l=new FileReader;l.readAsDataURL(s),l.onload=function(c){n._audioType.completePlaceholderAttachment(s,c.target.result)}}}]),a}(Bi),Hc=`<?xml version="1.0" standalone="no"?>
|
|
242
|
-
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.0//EN" "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">
|
|
243
|
-
<svg xmlns="http://www.w3.org/2000/svg" stroke="currentColor" fill="none" stroke-width="1" viewBox="0 0 24 24" stroke-linecap="round" stroke-linejoin="round">
|
|
244
|
-
<line x1="22" y1="2" x2="11" y2="14"></line>
|
|
245
|
-
<polygon points="22 2 15 22 11 14 2 10 22 2"></polygon>
|
|
246
|
-
</svg>
|
|
247
|
-
`,Fe=function(){function r(){_(this,r)}return k(r,null,[{key:"setPropertyValueIfDoesNotExist",value:function(e,t,n){var i,o,s=t[0];t.length===1?(i=e[s])!==null&&i!==void 0||(e[s]=n):((o=e[s])!==null&&o!==void 0||(e[s]={}),t.shift(),r.setPropertyValueIfDoesNotExist(e[s],t,n))}},{key:"setPropertyValue",value:function(e,t,n){var i,o=t[0];t.length===1?e[o]=n:((i=e[o])!==null&&i!==void 0||(e[o]={}),t.shift(),r.setPropertyValue(e[o],t,n))}},{key:"getObjectValue",value:function(e,t){var n=t[0],i=e[n];return i===void 0||t.length===1?i:r.getObjectValue(i,t.slice(1))}},{key:"overwritePropertyObjectFromAnother",value:function(e,t,n){var i=r.getObjectValue(t,n);if(i){var o=H(H({},i),r.getObjectValue(e,n)||{});r.setPropertyValue(e,n,o)}}}]),r}(),wa=function(){function r(){_(this,r)}return k(r,null,[{key:"resetSubmit",value:function(e,t){t?e.unsetCustomStateStyles(["loading","submit"]):e.unsetCustomStateStyles(["stop","loading","submit"]),e.reapplyStateStyle("submit")}},{key:"overwriteDefaultStyleWithSubmit",value:function(e,t){if(e.submit){var n=JSON.parse(JSON.stringify(e[t]||{}));Fe.overwritePropertyObjectFromAnother(n,e.submit,["container","default"]),Fe.overwritePropertyObjectFromAnother(n,e.submit,["text","styles","default"]),Fe.overwritePropertyObjectFromAnother(n,e.submit,["svg","styles","default"]),e[t]=n}}},{key:"setUpDisabledButton",value:function(e){Fe.setPropertyValueIfDoesNotExist(e,["submit","container","default","backgroundColor"],""),Fe.setPropertyValueIfDoesNotExist(e,["disabled","container","default","backgroundColor"],"unset"),Fe.setPropertyValueIfDoesNotExist(e.submit,["svg","styles","default","filter"],""),Fe.setPropertyValueIfDoesNotExist(e.disabled,["svg","styles","default","filter"],"brightness(0) saturate(100%) invert(70%) sepia(0%) saturate(5564%) hue-rotate(207deg) brightness(100%) contrast(97%)"),r.overwriteDefaultStyleWithSubmit(e,"disabled")}},{key:"process",value:function(e){var t=JSON.parse(JSON.stringify(e||{}));return r.overwriteDefaultStyleWithSubmit(t,"loading"),r.overwriteDefaultStyleWithSubmit(t,"stop"),e!=null&&e.alwaysEnabled||r.setUpDisabledButton(t),t}}]),r}(),Pn=function(r){$(a,r);function a(e,t,n,i,o){var s;_(this,a);var l=wa.process(e.submitButtonStyles);return s=R(this,a,[a.createButtonContainerElement(),l==null?void 0:l.position,l]),s._isSVGLoadingIconOverriden=!1,s.status={requestInProgress:!1,loadingActive:!1},s._messages=n,s._inputElementRef=t,s._fileAttachments=o,s._innerElements=s.createInnerElements(),s._abortStream=new AbortController,s._stopClicked={listener:function(){}},s._serviceIO=i,s._alwaysEnabled=!!(l!=null&&l.alwaysEnabled),e.disableSubmitButton=s.disableSubmitButton.bind(pe(s),i),s.attemptOverwriteLoadingStyle(e),setTimeout(function(){var c;s._validationHandler=e._validationHandler,s.assignHandlers(s._validationHandler),(c=s._validationHandler)==null||c.call(pe(s))}),s}return k(a,[{key:"createInnerElements",value:function(){var t=st.create(this.elementRef,["submit","loading","stop"],this._customStyles),n=t.submit,i=t.loading,o=t.stop,s=n||a.createSubmitIconElement();return{submit:s,loading:i||a.createLoadingIconElement(),stop:o||a.createStopIconElement(),disabled:this.createDisabledIconElement(s)}}},{key:"createDisabledIconElement",value:function(t){return st.createCustomElement("disabled",this._customStyles)||t.cloneNode(!0)}},{key:"attemptOverwriteLoadingStyle",value:function(t){var n,i,o,s,l,c,u,d,p;if(!((i=(n=this._customStyles)==null?void 0:n.submit)!=null&&i.svg||(l=(s=(o=this._customStyles)==null?void 0:o.loading)==null?void 0:s.svg)!=null&&l.content||(d=(u=(c=this._customStyles)==null?void 0:c.loading)==null?void 0:u.text)!=null&&d.content)&&(t.displayLoadingBubble===void 0||t.displayLoadingBubble===!0)){var m=document.createElement("style");m.textContent=`
|
|
248
|
-
.loading-button > * {
|
|
249
|
-
filter: brightness(0) saturate(100%) invert(72%) sepia(0%) saturate(3044%) hue-rotate(322deg) brightness(100%)
|
|
250
|
-
contrast(96%) !important;
|
|
251
|
-
}`,(p=t.shadowRoot)==null||p.appendChild(m),this._isSVGLoadingIconOverriden=!0}}},{key:"assignHandlers",value:function(t){this._serviceIO.completionsHandlers={onFinish:this.resetSubmit.bind(this,t)},this._serviceIO.streamHandlers={onOpen:this.changeToStopIcon.bind(this),onClose:this.resetSubmit.bind(this,t),abortStream:this._abortStream,stopClicked:this._stopClicked};var n=this._serviceIO.deepChat.stream;I(n)=="object"&&typeof n.simulation=="number"&&(this._serviceIO.streamHandlers.simulationInterim=n.simulation)}},{key:"resetSubmit",value:function(t){this.status.requestInProgress=!1,this.status.loadingActive=!1,t()}},{key:"submitFromInput",value:function(){var e=S(h().mark(function n(){var i,o,s;return h().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return c.next=2,this._fileAttachments.completePlaceholders();case 2:o=this._fileAttachments.getAllFileData(),this._inputElementRef.classList.contains("text-input-placeholder")?this.attemptSubmit({text:"",files:o}):(s=(i=this._inputElementRef.textContent)==null?void 0:i.trim(),this.attemptSubmit({text:s,files:o}));case 4:case"end":return c.stop()}},n,this)}));function t(){return e.apply(this,arguments)}return t}()},{key:"programmaticSubmit",value:function(){var e=S(h().mark(function n(i){var o=this,s;return h().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:typeof i=="string"&&(i=Ve.processSubmitUserMessage(i)),s={text:i.text},i.files&&(s.files=Array.from(i.files).map(function(u){return{file:u,type:Sr.getTypeFromBlob(u)}})),setTimeout(function(){return o.attemptSubmit(s,!0)});case 3:case"end":return c.stop()}},n)}));function t(n){return e.apply(this,arguments)}return t}()},{key:"attemptSubmit",value:function(){var e=S(h().mark(function n(i){var o,s,l,c,u,d,p=arguments;return h().wrap(function(g){for(;;)switch(g.prev=g.next){case 0:return o=p.length>1&&p[1]!==void 0?p[1]:!1,g.next=3,(s=this._validationHandler)==null?void 0:s.call(this,o?i:void 0);case 3:if(g.t0=g.sent,g.t1=!1,g.t0!==g.t1){g.next=7;break}return g.abrupt("return");case 7:return this.changeToLoadingIcon(),g.next=10,this.addNewMessage(i);case 10:return this._serviceIO.isWebModel()||this._messages.addLoadingMessage(),ur.clear(this._inputElementRef),u=(l=i.files)==null?void 0:l.map(function(b){return b.file}),d={text:i.text===""?void 0:i.text,files:u},g.next=15,this._serviceIO.callAPI(d,this._messages);case 15:(c=this._fileAttachments)==null||c.removeAllFiles();case 16:case"end":return g.stop()}},n,this)}));function t(n){return e.apply(this,arguments)}return t}()},{key:"addNewMessage",value:function(){var e=S(h().mark(function n(i){var o,s,l;return h().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:if(o=i.text,s=i.files,l={role:z.USER_ROLE},o&&(l.text=o),u.t0=s,!u.t0){u.next=8;break}return u.next=7,this._messages.addMultipleFiles(s);case 7:l.files=u.sent;case 8:this._serviceIO.sessionId&&(l._sessionId=this._serviceIO.sessionId),Object.keys(l).length>0&&this._messages.addNewMessage(l);case 10:case"end":return u.stop()}},n,this)}));function t(n){return e.apply(this,arguments)}return t}()},{key:"stopStream",value:function(){var t;this._abortStream.abort(),(t=this._stopClicked)==null||t.listener(),this._validationHandler&&this.resetSubmit(this._validationHandler)}},{key:"changeToStopIcon",value:function(){this._serviceIO.websocket||(this.elementRef.classList.remove(a.LOADING_CLASS,a.DISABLED_CLASS,a.SUBMIT_CLASS),this.elementRef.replaceChildren(this._innerElements.stop),this.reapplyStateStyle("stop",["loading","submit"]),this.elementRef.onclick=this.stopStream.bind(this),this.status.loadingActive=!1)}},{key:"changeToLoadingIcon",value:function(){this._serviceIO.websocket||(this._isSVGLoadingIconOverriden||this.elementRef.replaceChildren(this._innerElements.loading),this.elementRef.classList.remove(a.SUBMIT_CLASS,a.DISABLED_CLASS),this.elementRef.classList.add(a.LOADING_CLASS),this.reapplyStateStyle("loading",["submit"]),this.elementRef.onclick=function(){},this.status.requestInProgress=!0,this.status.loadingActive=!0)}},{key:"changeToSubmitIcon",value:function(){this.elementRef.classList.contains(a.SUBMIT_CLASS)||(this.elementRef.classList.remove(a.LOADING_CLASS,a.DISABLED_CLASS),this.elementRef.classList.add(a.SUBMIT_CLASS),this.elementRef.replaceChildren(this._innerElements.submit),wa.resetSubmit(this,this.status.loadingActive),this.elementRef.onclick=this.submitFromInput.bind(this))}},{key:"changeToDisabledIcon",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;this._alwaysEnabled&&!t?this.changeToSubmitIcon():this.elementRef.classList.contains(a.DISABLED_CLASS)||(this.elementRef.classList.remove(a.LOADING_CLASS,a.SUBMIT_CLASS),this.elementRef.classList.add(a.DISABLED_CLASS),this.elementRef.replaceChildren(this._innerElements.disabled),this.reapplyStateStyle("disabled",["submit"]),this.elementRef.onclick=function(){})}},{key:"disableSubmitButton",value:function(t,n){var i;t.isSubmitProgrammaticallyDisabled=n!==!1,!(this.status.requestInProgress||this.status.loadingActive)&&(n===!1?(i=this._validationHandler)==null||i.call(this):this.changeToDisabledIcon(!0))}}],[{key:"createButtonContainerElement",value:function(){var t=document.createElement("div");return t.classList.add("input-button"),t}},{key:"createSubmitIconElement",value:function(){var t=he.createSVGElement(Hc);return t.id="submit-icon",t}},{key:"createLoadingIconElement",value:function(){var t=document.createElement("div");return t.classList.add("dots-jumping"),t}},{key:"createStopIconElement",value:function(){var t=document.createElement("div");return t.id="stop-icon",t}}]),a}(It);Pn.SUBMIT_CLASS="submit-button";Pn.LOADING_CLASS="loading-button";Pn.DISABLED_CLASS="disabled-button";var Gc=Pn,Kc=`<?xml version="1.0" encoding="utf-8"?>
|
|
252
|
-
<svg viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg">
|
|
253
|
-
<path d="M27.1 14.313V5.396L24.158 8.34c-2.33-2.325-5.033-3.503-8.11-3.503C9.902 4.837 4.901 9.847 4.899 16c.001 6.152 5.003 11.158 11.15 11.16 4.276 0 9.369-2.227 10.836-8.478l.028-.122h-3.23l-.022.068c-1.078 3.242-4.138 5.421-7.613 5.421a8 8 0 0 1-5.691-2.359A7.993 7.993 0 0 1 8 16.001c0-4.438 3.611-8.049 8.05-8.049 2.069 0 3.638.58 5.924 2.573l-3.792 3.789H27.1z"/>
|
|
254
|
-
</svg>
|
|
255
|
-
`,Wc=`<?xml version="1.0" encoding="utf-8"?>
|
|
256
|
-
<svg viewBox="0 0 32 32" version="1.1" xmlns="http://www.w3.org/2000/svg">
|
|
257
|
-
<title>capture</title>
|
|
258
|
-
<path d="M0 16q0 3.264 1.28 6.208t3.392 5.12 5.12 3.424 6.208 1.248 6.208-1.248 5.12-3.424 3.392-5.12 1.28-6.208-1.28-6.208-3.392-5.12-5.088-3.392-6.24-1.28q-3.264 0-6.208 1.28t-5.12 3.392-3.392 5.12-1.28 6.208zM4 16q0-3.264 1.6-6.016t4.384-4.352 6.016-1.632 6.016 1.632 4.384 4.352 1.6 6.016-1.6 6.048-4.384 4.352-6.016 1.6-6.016-1.6-4.384-4.352-1.6-6.048z"></path>
|
|
259
|
-
</svg>
|
|
260
|
-
`,Yc=`<?xml version="1.0" encoding="utf-8"?>
|
|
261
|
-
<svg viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg">
|
|
262
|
-
<path d="M195.2 195.2a64 64 0 0 1 90.496 0L512 421.504 738.304 195.2a64 64 0 0 1 90.496 90.496L602.496 512 828.8 738.304a64 64 0 0 1-90.496 90.496L512 602.496 285.696 828.8a64 64 0 0 1-90.496-90.496L421.504 512 195.2 285.696a64 64 0 0 1 0-90.496z"/>
|
|
263
|
-
</svg>`,Zc=`<?xml version="1.0" encoding="utf-8"?>
|
|
264
|
-
<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
265
|
-
<path d="M4.89163 13.2687L9.16582 17.5427L18.7085 8" stroke="#000000" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
266
|
-
</svg>`,Jc=function(r){$(a,r);function a(e,t,n,i){var o;_(this,a),o=R(this,a,[e,["modal-content","modal-camera-content"],n]),o._stopped=!1,o._format="image/png",o._canvas=document.createElement("canvas"),o._canvas.classList.add("camera-modal-canvas");var s=o.addButtonsAndTheirEvents(t),l=s.captureButton,c=s.submitButton;return o._captureButton=l,o._submitButton=c,o._captureIcon=o._captureButton.children[0],o._refreshIcon=he.createSVGElement(Kc),o._refreshIcon.classList.add("modal-svg-button-icon","modal-svg-refresh-icon"),(i==null?void 0:i.format)==="jpeg"&&(o._format="image/jpeg"),i!=null&&i.dimensions&&(o._dimensions=i.dimensions),o._contentRef.appendChild(o._canvas),o.extensionCloseCallback=o.stop,o}return k(a,[{key:"addButtonsAndTheirEvents",value:function(t){var n=gt.createSVGButton(Wc);n.classList.add("modal-svg-camera-button"),n.children[0].classList.add("modal-svg-camera-icon");var i=this.addCloseButton(Yc,!0);i.classList.add("modal-svg-close-button"),i.children[0].classList.add("modal-svg-close-icon");var o=gt.createSVGButton(Zc);return o.classList.add("modal-svg-submit-button"),this.addButtons(n,o),this.addButtonEvents(n,i,o,t),{captureButton:n,submitButton:o}}},{key:"addButtonEvents",value:function(t,n,i,o){var s=this;t.onclick=function(){s.capture()},n.addEventListener("click",this.stop.bind(this)),i.onclick=function(){var l=s.getFile();l&&Cr.addFilesToType([l],[o]),s.stop(),s.close()}}},{key:"stop",value:function(){var t=this;this._mediaStream&&this._mediaStream.getTracks().forEach(function(n){return n.stop()}),this._stopped=!0,setTimeout(function(){t._captureButton.replaceChildren(t._captureIcon),t._captureButton.classList.replace("modal-svg-refresh-button","modal-svg-camera-button");var n=t._canvas.getContext("2d");n==null||n.clearRect(0,0,t._canvas.width,t._canvas.height)},gt.MODAL_CLOSE_TIMEOUT_MS)}},{key:"start",value:function(){var t=this;this._dataURL=void 0,this._submitButton.classList.add("modal-svg-submit-disabled"),this._stopped=!1,navigator.mediaDevices.getUserMedia({video:this._dimensions||!0}).then(function(n){if(t._mediaStream=n,!t.isOpen())return t.stop();var i=document.createElement("video");i.srcObject=n,i.play(),requestAnimationFrame(t.updateCanvas.bind(t,i,t._canvas))}).catch(function(n){console.error(n),t.stop(),t.close()})}},{key:"capture",value:function(){this._dataURL?(this._captureButton.replaceChildren(this._captureIcon),this._captureButton.classList.replace("modal-svg-refresh-button","modal-svg-camera-button"),this._submitButton.classList.add("modal-svg-submit-disabled"),this._dataURL=void 0):(this._captureButton.replaceChildren(this._refreshIcon),this._captureButton.classList.replace("modal-svg-camera-button","modal-svg-refresh-button"),this._submitButton.classList.remove("modal-svg-submit-disabled"),this._dataURL=this._canvas.toDataURL())}},{key:"getFile",value:function(){if(this._dataURL){for(var t=atob(this._dataURL.split(",")[1]),n=new Array(t.length),i=0;i<t.length;i++)n[i]=t.charCodeAt(i);var o=new Uint8Array(n),s=new Blob([o],{type:this._format}),l=this._format==="image/jpeg"?"jpeg":"png",c=Ui.getFileName(this._newFilePrefix||"photo",l);return new File([s],c,{type:s.type})}}},{key:"updateCanvas",value:function(t,n){if(!this._stopped){if(!this._dataURL){n.width=t.videoWidth,n.height=t.videoHeight;var i=n.getContext("2d");i==null||i.drawImage(t,0,0,n.width,n.height)}requestAnimationFrame(this.updateCanvas.bind(this,t,n))}}},{key:"openCameraModal",value:function(t){this.displayModalElements(),t.start()}}],[{key:"createCameraModalFunc",value:function(t,n,i,o){var s=new a(t,n,i,o);return s.openCameraModal.bind(s,s)}}]),a}(gt),Xc=`<?xml version="1.0" encoding="utf-8"?>
|
|
267
|
-
<svg viewBox="0 0 32 32" version="1.1" xmlns="http://www.w3.org/2000/svg">
|
|
268
|
-
<path d="M29 7h-4.599l-2.401-4h-12l-2.4 4h-4.6c-1 0-3 1-3 2.969v16.031c0 1.657 1.5 3 2.792 3h26.271c1.313 0 2.938-1.406 2.938-2.968v-16.032c0-1-1-3-3-3zM30 26.032c0 0.395-0.639 0.947-0.937 0.969h-26.265c-0.232-0.019-0.797-0.47-0.797-1v-16.031c0-0.634 0.851-0.953 1-0.969h5.732l2.4-4h9.802l1.785 3.030 0.55 0.97h5.731c0.705 0 0.99 0.921 1 1v16.032zM16 10c-3.866 0-7 3.134-7 7s3.134 7 7 7 7-3.134 7-7-3.134-7-7-7zM16 22c-2.757 0-5-2.243-5-5s2.243-5 5-5 5 2.243 5 5-2.243 5-5 5z"></path>
|
|
269
|
-
</svg>`,Qc=function(r){$(a,r);function a(e,t,n){var i;_(this,a);var o;i=R(this,a,[a.createButtonElement(),(o=n==null?void 0:n.button)==null?void 0:o.position,(n==null?void 0:n.button)||{},"Photo"]);var s=i.createInnerElements(i._customStyles);return n&&i.addClickEvent(e,t,n.modalContainerStyle,n.files),i.elementRef.classList.add("upload-file-button"),i.elementRef.appendChild(s.styles),i.reapplyStateStyle("styles"),i}return k(a,[{key:"createInnerElements",value:function(t){return{styles:this.createInnerElement(a.createSVGIconElement(),"styles",t)}}},{key:"createInnerElement",value:function(t,n,i){return st.createSpecificStateElement(this.elementRef,n,i)||t}},{key:"addClickEvent",value:function(t,n,i,o){var s=Jc.createCameraModalFunc(t,n,i,o);this.elementRef.onclick=s}}],[{key:"createButtonElement",value:function(){var t=document.createElement("div");return t.classList.add("input-button"),t}},{key:"createSVGIconElement",value:function(){var t=he.createSVGElement(Xc);return t.id="camera-icon",t}}]),a}(It),eu=function(){function r(a,e,t,n){_(this,r),this.elementRef=r.createPanelElement(a.inputAreaStyle);var i=new ur(a,t),o={},s=this.createFileUploadComponents(a,t,n,o);a.speechToText&&!o.microphone&&(o.microphone={button:new Vc(a,i,e.addNewErrorMessage.bind(e))});var l=new Gc(a,i.inputElementRef,e,t,s);i.submit=l.submitFromInput.bind(l),hc.attach(a,t,i,s,l),a.submitUserMessage=l.programmaticSubmit.bind(l),o.submit={button:l},r.addElements(this.elementRef,i,o,n,s,a.dropupStyles)}return k(r,[{key:"createFileUploadComponents",value:function(e,t,n,i){var o,s,l,c,u=new Cr(this.elementRef,e.attachmentContainerStyle,t.demo);if(r.createUploadButtons(e,t.fileTypes||{},u,n,i),(o=t.camera)!=null&&o.files){var d=((s=i.images)==null?void 0:s.fileType)||u.addType(e,t.camera.files,"images");i.camera={button:new Qc(n,d,t.camera)}}if((l=t.recordAudio)!=null&&l.files){var p=((c=i.audio)==null?void 0:c.fileType)||u.addType(e,t.recordAudio.files,"audio");i.microphone={button:new Uc(p,t.recordAudio)}}return oa.isEnabled(u,e.dragAndDrop)&&oa.create(n,u,e.dragAndDrop),u}}],[{key:"createPanelElement",value:function(e){var t=document.createElement("div");return t.id="input",Object.assign(t.style,e),t}},{key:"createUploadButtons",value:function(e,t,n,i,o){Object.keys(t).forEach(function(s){var l=s,c=t[l];if(c.files){var u=n.addType(e,c.files,l),d=uc[l],p=d.id,m=d.svgString,g=d.dropupText,b=new mc(i,u,c,p,m,g);o[l]={button:b,fileType:u}}})}},{key:"addElements",value:function(e,t,n,i,o,s){me.addElements(e,t.elementRef);var l=Qt.create(),c=ic.addButtons(l,n,i,s);tc.set(t.inputElementRef,l,o.elementRef,c),Qt.add(e,l)}}]),r}(),tu=function(){function r(){_(this,r)}return k(r,null,[{key:"createElements",value:function(e,t,n){var i=document.createElement("div");i.id="chat-view";var o=new ec(e,t,n);t.websocket&&Et.createConnection(t,o);var s=new eu(e,o,t,i);return me.addElements(i,o.elementRef,s.elementRef),i}},{key:"render",value:function(e,t,n,i){var o=r.createElements(e,n,i);t.replaceChildren(o)}}]),r}(),nu=`#validate-property-key-view{height:100%;position:relative;display:flex;justify-content:center;align-items:center;padding:8px}#large-loading-ring{display:inline-block;width:50px;height:50px}#large-loading-ring:after{content:" ";display:block;width:38px;height:38px;margin:1px;border-radius:50%;border:5px solid #5fb2ff;border-color:#5fb2ff transparent #5fb2ff transparent;animation:large-loading-ring 1.4s linear infinite}@keyframes large-loading-ring{0%{transform:rotate(0)}to{transform:rotate(360deg)}}#insert-key-view{height:100%;position:relative}#insert-key-contents{text-align:center;position:absolute;top:44%;left:50%;transform:translate(-50%,-50%);width:82%;display:flex;max-width:700px}#insert-key-title{margin-bottom:15px}#insert-key-input-container{margin-right:2.7em;width:calc(100% - 80px)}#insert-key-input{padding:.3em 1.7em .3em .3em;border-width:1px;border-style:solid;border-radius:3px;width:100%;font-size:inherit}.insert-key-input-valid{border-color:gray}.insert-key-input-invalid{border-color:red}#visibility-icon-container{position:relative;float:right;cursor:pointer;-webkit-user-select:none;user-select:none}.visibility-icon{filter:brightness(0) saturate(100%) invert(63%) sepia(1%) saturate(9%) hue-rotate(43deg) brightness(98%) contrast(92%);position:absolute;right:-1.7em;top:-1.43em}#visible-icon{top:-1.4em}.visibility-icon:hover{filter:unset}.visibility-icon>*{pointer-events:none}#start-button{border:1px solid grey;color:#454545;border-radius:4px;width:3em;display:flex;justify-content:center;align-items:center;cursor:pointer;padding:.28em .3em;-webkit-user-select:none;user-select:none;background-color:#fff}#start-button:hover{background-color:#f2f2f2}#start-button:active{background-color:#d2d2d2}#insert-key-help-text-container{width:100%;position:absolute;margin-top:32px;margin-bottom:20px}#insert-key-help-text-contents{width:100%;position:absolute}#insert-key-input-invalid-text{display:block;margin-top:1em;margin-bottom:.5em;color:red}.insert-key-input-help-text{display:block;margin-top:16px}#loading-ring{display:inline-block;width:16px;height:16px}#loading-ring:after{content:" ";display:block;width:11px;height:11px;margin:1px;border-radius:50%;border:2px solid #0084ff;border-color:#0084ff transparent #0084ff transparent;animation:loading-ring 1.2s linear infinite}@keyframes loading-ring{0%{transform:rotate(0)}to{transform:rotate(360deg)}}#error-view{color:red;font-size:1.2em;line-height:1.3em;margin-top:-5px;text-align:center;height:100%;display:flex;justify-content:center;align-items:center;padding-left:8px;padding-right:8px}.intro-panel{position:absolute;display:flex;justify-content:center;right:0;bottom:0;left:0;margin:auto;height:fit-content;top:-2.5em}#internal-intro-panel{width:250px;height:min-content;display:block;border-radius:5px;overflow:auto;border:1px solid rgb(203,203,203);padding:10px;max-height:calc(100% - 6.8em)}#internal-intro-panel>p{margin-block-start:.8em;margin-block-end:.8em}pre code.hljs{display:block;overflow-x:auto;padding:1em}code.hljs{padding:3px 5px}/*!
|
|
270
|
-
Theme: a11y-dark
|
|
271
|
-
Author: @ericwbailey
|
|
272
|
-
Maintainer: @ericwbailey
|
|
273
|
-
|
|
274
|
-
Based on the Tomorrow Night Eighties theme: https://github.com/isagalaev/highlight.js/blob/master/src/styles/tomorrow-night-eighties.css
|
|
275
|
-
*/.hljs{background:#2b2b2b;color:#f8f8f2}.hljs-comment,.hljs-quote{color:#d4d0ab}.hljs-deletion,.hljs-name,.hljs-regexp,.hljs-selector-class,.hljs-selector-id,.hljs-tag,.hljs-template-variable,.hljs-variable{color:#ffa07a}.hljs-built_in,.hljs-link,.hljs-literal,.hljs-meta,.hljs-number,.hljs-params,.hljs-type{color:#f5ab35}.hljs-attribute{color:gold}.hljs-addition,.hljs-bullet,.hljs-string,.hljs-symbol{color:#abe338}.hljs-section,.hljs-title{color:#00e0e0}.hljs-keyword,.hljs-selector-tag{color:#dcc6e0}.hljs-emphasis{font-style:italic}.hljs-strong{font-weight:700}@media screen and (-ms-high-contrast: active){.hljs-addition,.hljs-attribute,.hljs-built_in,.hljs-bullet,.hljs-comment,.hljs-link,.hljs-literal,.hljs-meta,.hljs-number,.hljs-params,.hljs-quote,.hljs-string,.hljs-symbol,.hljs-type{color:highlight}.hljs-keyword,.hljs-selector-tag{font-weight:700}}#messages{overflow:auto}.outer-message-container:last-child{margin-bottom:5px}.inner-message-container{display:flex;margin-left:auto;margin-right:auto;width:calc(97.5% - 24px);max-width:100%}.message-bubble{margin-top:10px;word-wrap:break-word;width:fit-content;max-width:60%;border-radius:10px;padding:.42em .55em;height:fit-content;line-height:1.26em}.user-message-text{color:#fff;background-color:#0084ff;margin-right:0;margin-left:auto}.ai-message-text{color:#000;background-color:#e4e6eb;margin-left:0;margin-right:auto}.html-message{max-width:unset}.error-message-text{margin:14px auto 10px;background-color:#f4c0c0;color:#474747;text-align:center;max-width:95%}.loading-message-text{width:1em;padding:.6em .75em .6em 1.3em}.message-bubble>p:first-child{margin-top:0}.message-bubble>p:last-child{margin-bottom:0}pre{overflow:auto;display:block;word-break:break-all;word-wrap:break-word;border-radius:7px;background:#2b2b2b;color:#f8f8f2;margin-top:.8em;margin-bottom:.8em;padding:.6em;font-size:.9em;line-height:1.5em}.image-message{padding:0;display:flex;background-color:#ddd}.image-message>*,.image-message>*>*{width:100%;border-radius:8px;display:flex}.audio-message{width:60%;max-width:300px;height:2.2em;max-height:54px;padding:0;background-color:unset}.audio-player{width:100%;height:100%}.audio-player-safari{height:fit-content;width:40px}.audio-player-safari-left{float:left}.audio-player-safari-right{float:right}.any-file-message-bubble{padding:1px}.any-file-message-contents{display:flex}.any-file-message-icon-container{width:1.3em;min-width:1.3em;position:relative;border-radius:4px;margin-left:6px;margin-right:2px}.any-file-message-icon{background-color:#fff;border-radius:4px;position:absolute;width:1em;height:1.25em;padding:1px;margin-top:auto;margin-bottom:auto;top:0;bottom:0}.any-file-message-text{padding-top:5px;overflow-wrap:anywhere;padding-bottom:5px;padding-right:7px}.message-bubble>a{color:inherit}.left-item-position{margin-right:10px}.right-item-position{margin-left:10px}.deep-chat-web-model-button{margin-top:10px;margin-bottom:5px;margin-left:1px}.avatar{padding-top:5px;width:1.5em;height:1.5em;border-radius:1px}.avatar-container{margin-top:9px}.name{margin-top:16px;font-size:15px}#drag-and-drop{position:absolute;display:none;z-index:10;height:calc(100% - 10px);width:calc(100% - 10px);background-color:#70c6ff4d;border:5px dashed #6dafff}#file-attachment-container{position:absolute;height:3.6em;width:calc(80% - 4px);top:-2.5em;border-radius:5px;overflow:auto;text-align:left;background-color:#d7d7d73b;padding-left:4px}.file-attachment{width:2.85em;height:2.85em;display:inline-flex;margin-right:.6em;margin-bottom:.44em;margin-top:4px;position:relative;background-color:#fff;border-radius:5px}.image-attachment{width:100%;height:100%;object-fit:cover;border-radius:5px}.border-bound-attachment{width:calc(100% - 2px);height:calc(100% - 2px);border:1px solid #c3c3c3;border-radius:5px;overflow:hidden}.border-bound-attachment-safari{width:calc(100% - 1px);height:calc(100% - 1px)}.audio-attachment-icon-container{cursor:pointer}.audio-attachment-icon-container:hover{background-color:#f8f8f8}.attachment-icon{left:0;right:0;bottom:0;top:2px;margin:auto;position:absolute;width:25px;-webkit-user-select:none;user-select:none}.not-removable-attachment-icon{top:0;right:0;bottom:0;left:0}.play-icon{filter:brightness(0) saturate(100%) invert(17%) sepia(0%) saturate(1392%) hue-rotate(67deg) brightness(98%) contrast(97%)}.stop-icon{filter:brightness(0) saturate(100%) invert(29%) sepia(90%) saturate(1228%) hue-rotate(198deg) brightness(93%) contrast(98%)}.audio-placeholder-text-3-digits{padding-left:.26rem}.audio-placeholder-text-4-digits{padding-left:.1rem}.any-file-attachment{padding:2px 0}.file-attachment-text-container{position:absolute;width:inherit;display:flex;align-items:center;height:100%;top:-1px}.audio-placeholder-text-3-digits-container{padding-top:1px;cursor:default}.any-file-attachment-text{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;padding-left:.13em;margin-left:auto;margin-right:auto}.remove-file-attachment-button{height:1.25em;width:1.25em;border:1px solid #cfcfcf;border-radius:25px;background-color:#fff;top:-4px;right:-5px;position:absolute;display:flex;justify-content:center;cursor:pointer;-webkit-user-select:none;user-select:none}.remove-file-attachment-button:hover{background-color:#e4e4e4}.remove-file-attachment-button:active{background-color:#d7d7d7}.x-icon{color:#4e4e4e;top:-.075em;position:relative;font-size:1.05em}.modal{display:none;flex-direction:column;align-items:center;justify-content:center;position:absolute;width:80%;max-width:420px;max-height:80%;margin:auto;top:0;right:0;bottom:0;left:0;z-index:2}.modal-content{border-top:1px solid rgb(217,217,217);border-left:1px solid rgb(217,217,217);border-right:1px solid rgb(217,217,217);border-top-left-radius:inherit;border-top-right-radius:inherit;background-color:#fff;overflow-y:auto;height:fit-content;max-height:calc(100% - 3.3em);width:100%}.modal-content>p{margin-left:1em;margin-right:1em}.modal-content>ul{margin-right:1em}.modal-button-panel{height:3.3em;border:1px solid;border-color:rgb(223,223,223) rgb(217,217,217) rgb(217,217,217);border-bottom-left-radius:inherit;border-bottom-right-radius:inherit;background-color:#fff;text-align:center;justify-content:center;display:flex;width:100%}.modal-button{min-width:2.5em;text-align:center;color:#fff;border-radius:5px;padding:.4em .4em .3em;height:1.25em;background-color:#3279b2;top:0;bottom:0;cursor:pointer;-webkit-user-select:none;user-select:none;margin:auto .31em}.modal-button:hover{background-color:#276da7}.modal-button:active{background-color:#1b5687}.modal-svg-button{padding:0 0 2px;width:2em;height:1.8em}.modal-svg-button-icon{width:100%;height:100%;filter:brightness(0) saturate(100%) invert(100%) sepia(15%) saturate(4%) hue-rotate(346deg) brightness(101%) contrast(102%)}#modal-background-panel{position:absolute;width:100%;height:100%;background-color:#00000042;z-index:1;display:none}.show-modal-background{animation:fadeInBackground .3s ease-in-out}@keyframes fadeInBackground{0%{opacity:0}to{opacity:1}}.show-modal{animation:fadeInModal .3s ease-in-out}@keyframes fadeInModal{0%{opacity:0;scale:.95}to{opacity:1;scale:1}}.hide-modal-background{animation:fadeOutBackground .2s ease-in-out}@keyframes fadeOutBackground{0%{opacity:1}to{opacity:0}}.hide-modal{animation:fadeOutModal .2s ease-in-out}@keyframes fadeOutModal{0%{opacity:1;scale:1}to{opacity:0;scale:.95}}.modal-camera-content{overflow:hidden;text-align:center;border:unset;height:100%;background-color:#2a2a2a;display:flex;justify-content:center}.camera-modal-canvas{max-width:100%;max-height:100%;margin-top:auto;margin-bottom:auto}.modal-svg-submit-button{background-color:green}.modal-svg-submit-button:hover{background-color:#007500}.modal-svg-submit-button:active{background-color:#006500}.modal-svg-submit-disabled{pointer-events:none;background-color:#747474}.modal-svg-close-button{height:1.56em;padding-top:.37em;padding-bottom:0;background-color:#c13e3e}.modal-svg-close-button:hover{background-color:#b43434}.modal-svg-close-button:active{background-color:#972929}.modal-svg-close-icon{width:80%;height:80%}.modal-svg-camera-button{height:1.6em;padding-top:.38em;padding-bottom:0}.modal-svg-camera-icon{height:76%}.modal-svg-refresh-icon{height:105%}.modal-svg-refresh-button{height:1.66em;padding-top:.11em;padding-bottom:.21em}.input-button-container{position:relative;z-index:1}.inside-right{position:absolute;right:calc(10% + .35em);bottom:.85em}.inside-left{position:absolute;left:calc(10% + .35em);bottom:.85em}.outside-left{position:absolute;right:calc(11px - .55em);bottom:.88em}.outside-right{position:absolute;left:calc(11px - .55em);bottom:.88em}#upload-images-icon{position:absolute;pointer-events:none;width:1.45em;height:1.45em;left:.11em;bottom:.08em;filter:brightness(0) saturate(100%) invert(43%) sepia(0%) saturate(740%) hue-rotate(77deg) brightness(99%) contrast(92%)}#upload-gifs-icon{position:absolute;pointer-events:none;width:1.5em;height:1.48em;left:.07em;bottom:.08em;filter:brightness(0) saturate(100%) invert(49%) sepia(0%) saturate(2586%) hue-rotate(12deg) brightness(93%) contrast(90%)}#upload-audio-icon{position:absolute;pointer-events:none;width:1.21em;height:1.21em;left:.17em;bottom:.2em;filter:brightness(0) saturate(100%) invert(15%) sepia(0%) saturate(337%) hue-rotate(125deg) brightness(91%) contrast(94%);transform:scaleX(.95)}#camera-icon{position:absolute;pointer-events:none;width:1.21em;height:1.21em;left:.23em;bottom:.2em;filter:brightness(0) saturate(100%) invert(52%) sepia(0%) saturate(161%) hue-rotate(164deg) brightness(91%) contrast(92%);transform:scaleX(.95)}#upload-mixed-files-icon{position:absolute;pointer-events:none;width:1.21em;height:1.21em;left:.25em;bottom:.2em;filter:brightness(0) saturate(100%) invert(53%) sepia(0%) saturate(36%) hue-rotate(74deg) brightness(98%) contrast(93%);transform:scaleX(.95)}#interim-text{color:gray}#microphone-button{padding-top:.5px}.outer-button-container>#microphone-button{padding-bottom:1px}#microphone-icon{position:absolute;pointer-events:none;width:1.21em;height:1.21em;left:.25em;bottom:.25em}.default-microphone-icon{filter:brightness(0) saturate(100%) invert(32%) sepia(0%) saturate(924%) hue-rotate(46deg) brightness(95%) contrast(99%)}.active-microphone-icon{filter:brightness(0) saturate(100%) invert(10%) sepia(97%) saturate(7495%) hue-rotate(0deg) brightness(101%) contrast(107%);border-radius:10px}.command-microphone-icon{filter:brightness(0) saturate(100%) invert(42%) sepia(96%) saturate(1067%) hue-rotate(77deg) brightness(99%) contrast(102%)}.unsupported-microphone{display:none}#submit-icon{height:100%;filter:brightness(0) saturate(100%) invert(32%) sepia(0%) saturate(924%) hue-rotate(46deg) brightness(95%) contrast(99%);width:1.21em}#stop-icon{background-color:#acacac;position:absolute;width:.95em;height:.95em;left:.35em;bottom:.35em;border-radius:2px}.submit-button-enlarged{scale:1.1;margin-right:.3em;margin-left:.3em}.dots-jumping{position:relative;left:calc(-9990px + .275em);width:.22em;height:.22em;border-radius:5px;background-color:#848484;color:#848484;box-shadow:9990px 0 #848484,calc(9990px + .44em) 0 0 0 #848484,calc(9990px + .8em) 0 0 0 #848484;animation:dots-jumping 1.5s infinite linear;bottom:-.7em}@keyframes dots-jumping{0%{box-shadow:9990px 0 #848484,calc(9990px + .44em) 0 0 0 #848484,calc(9990px + .8em) 0 0 0 #848484}16.667%{box-shadow:9990px -6px #848484,calc(9990px + .44em) 0 0 0 #848484,calc(9990px + .8em) 0 0 0 #848484}33.333%{box-shadow:9990px 0 #848484,calc(9990px + .44em) 0 0 0 #848484,calc(9990px + .8em) 0 0 0 #848484}50%{box-shadow:9990px 0 #848484,calc(9990px + .44em) -6px 0 0 #848484,calc(9990px + .8em) 0 0 0 #848484}66.667%{box-shadow:9990px 0 #848484,calc(9990px + .44em) 0 0 0 #848484,calc(9990px + .8em) 0 0 0 #848484}83.333%{box-shadow:9990px 0 #848484,calc(9990px + .44em) 0 0 0 #848484,calc(9990px + .8em) -6px 0 0 #848484}to{box-shadow:9990px 0 #848484,calc(9990px + .44em) 0 0 0 #848484,calc(9990px + .8em) 0 0 0 #848484}}.dots-flashing{position:relative;width:.45em;height:.45em;border-radius:5px;background-color:var(--message-dots-color);color:var(--message-dots-color);animation:dots-flashing 1s infinite linear alternate;animation-delay:.5s}.dots-flashing:before,.dots-flashing:after{content:"";display:inline-block;position:absolute;top:0}.dots-flashing:before{left:-.7em;width:.45em;height:.45em;border-radius:5px;background-color:var(--message-dots-color);color:var(--message-dots-color);animation:dots-flashing 1s infinite alternate;animation-delay:0s}.dots-flashing:after{left:.7em;width:.45em;height:.45em;border-radius:5px;background-color:var(--message-dots-color);color:var(--message-dots-color);animation:dots-flashing 1s infinite alternate;animation-delay:1s}@keyframes dots-flashing{0%{background-color:var(--message-dots-color)}50%,to{background-color:var(--message-dots-color-fade)}}.input-button{border-radius:4px;cursor:pointer;margin-bottom:.2em;-webkit-user-select:none;user-select:none}.input-button-svg{width:1.65em;height:1.65em}.input-button:hover{background-color:#9c9c9c2e}.input-button:active{background-color:#9c9c9c5e}.loading-button{cursor:auto}.loading-button:hover{background-color:unset}.text-button{filter:unset!important;display:flex;justify-content:center;align-items:center;margin-left:4px;margin-right:4px;height:1.6em}#text-input-container{background-color:#fff;width:80%;display:flex;border:1px solid #0000001a;border-radius:5px;margin-top:.8em;margin-bottom:.8em;box-shadow:#959da533 0 1px 12px;overflow-y:auto;max-height:200px;position:relative}.text-input-container-left-adjustment{margin-left:1.5em}.text-input-container-right-adjustment{margin-right:1.5em}.text-input-container-left-small-adjustment{margin-left:1.1em}.text-input-container-left-small-adjustment>.outside-left{right:calc(14px - .55em)}.text-input-container-right-small-adjustment{margin-right:1.1em}.text-input-container-right-small-adjustment>.outside-right{left:calc(14px - .55em)}#text-input{text-align:left;outline:none;word-wrap:break-word;line-break:auto}.text-input-styling{padding:.4em .5em;overflow:overlay;width:100%}.text-input-inner-left-adjustment{padding-left:2.2em}.text-input-inner-right-adjustment{padding-right:2em}.text-input-disabled{pointer-events:none;-webkit-user-select:none;user-select:none}.text-input-placeholder{color:gray}.outside-right>#dropup-menu,.inside-right>#dropup-menu{right:0}#dropup-icon{position:absolute;pointer-events:none;width:1.16em;height:1.2em;left:.265em;bottom:.43em;filter:brightness(0) saturate(100%) invert(54%) sepia(0%) saturate(724%) hue-rotate(6deg) brightness(92%) contrast(90%)}#dropup-menu{background-color:#fff;position:absolute;transform:translateY(-100%);border-radius:5px;z-index:1;top:-.49em;box-shadow:#0003 -1px 2px 10px,#0000001a 0 2px 4px;cursor:pointer;-webkit-user-select:none;user-select:none}.dropup-menu-item{height:1.4em;padding:.28em .84em .28em .35em;display:flex;position:relative}.dropup-menu-item:first-child{padding-top:.49em;border-top-left-radius:inherit;border-top-right-radius:inherit}.dropup-menu-item:last-child{padding-bottom:.45em;border-bottom-left-radius:inherit;border-bottom-right-radius:inherit}.dropup-menu-item-icon{width:1.39em;position:relative;margin-right:.56em}.dropup-menu-item-icon>svg{bottom:0!important;top:0!important;margin-bottom:auto;margin-top:auto}.dropup-menu-item-text{margin-top:.08em;width:max-content}#input{width:100%;display:inline-flex;text-align:center;margin-left:auto;margin-right:auto;margin-top:auto;position:relative;justify-content:center}#chat-view{height:100%;display:grid;grid-template-columns:100%}::-webkit-scrollbar{width:9px;height:9px}::-webkit-scrollbar-thumb{background-color:#d0d0d0;border-radius:5px}::-webkit-scrollbar-track{background-color:#f2f2f2}:host{all:initial;display:table-cell}#container{height:inherit;width:inherit;overflow:hidden}
|
|
276
|
-
`,ru=Object.defineProperty,j=function(a,e,t,n){for(var i=void 0,o=a.length-1,s;o>=0;o--)(s=a[o])&&(i=s(e,t,i)||i);return i&&ru(e,t,i),i},B=function(r){$(a,r);function a(){var e;return _(this,a),e=R(this,a),e.getMessages=function(){return[]},e.submitUserMessage=function(){return console.warn("submitUserMessage failed - please wait for chat view to render before calling this property.")},e.focusInput=function(){return ui.focusFromParentElement(e._elementRef)},e.refreshMessages=function(){},e.clearMessages=function(){},e.scrollToBottom=function(){},e.disableSubmitButton=function(){},e._hasBeenRendered=!1,e._auxiliaryStyleApplied=!1,e._addMessage=function(){return console.warn("addMessage failed - please wait for chat view to render before calling this property.")},Wl.appendStyleSheetToHead(),e._elementRef=document.createElement("div"),e._elementRef.id="container",e.attachShadow({mode:"open"}).appendChild(e._elementRef),$n.apply(nu,e.shadowRoot),setTimeout(function(){e._hasBeenRendered||e.onRender()},20),e}return k(a,[{key:"changeToChatView",value:function(){this._activeService&&(this._activeService.validateConfigKey=!1),this.onRender()}},{key:"onRender",value:function(){var t;(!this._activeService||this._activeService.demo)&&(this._activeService=Kl.create(this)),this.auxiliaryStyle&&!this._auxiliaryStyleApplied&&($n.apply(this.auxiliaryStyle,this.shadowRoot),this._auxiliaryStyleApplied=!0),$n.applyDefaultStyleToComponent(this.style,this.chatStyle),Ve.checkForContainerStyles(this,this._elementRef),this._activeService.key&&this._activeService.validateConfigKey?mo.render(this._elementRef,this.changeToChatView.bind(this),this._activeService):!(this._activeService instanceof de)||this._activeService.key?((t=this._childElement)!==null&&t!==void 0||(this._childElement=this.children[0]),tu.render(this,this._elementRef,this._activeService,this._childElement)):this._activeService instanceof de&&yl.render(this._elementRef,this.changeToChatView.bind(this),this._activeService),this._hasBeenRendered=!0,Jt.onRender(this)}},{key:"disconnectedCallback",value:function(){yr.chat=void 0}}]),a}(gl);j([F("object")],B.prototype,"directConnection");j([F("object")],B.prototype,"request");j([F("object")],B.prototype,"webModel");j([F("object")],B.prototype,"stream");j([F("object")],B.prototype,"requestBodyLimits");j([F("function")],B.prototype,"requestInterceptor");j([F("function")],B.prototype,"responseInterceptor");j([F("function")],B.prototype,"validateInput");j([F("object")],B.prototype,"chatStyle");j([F("object")],B.prototype,"attachmentContainerStyle");j([F("object")],B.prototype,"dropupStyles");j([F("object")],B.prototype,"inputAreaStyle");j([F("object")],B.prototype,"textInput");j([F("object")],B.prototype,"submitButtonStyles");j([F("string")],B.prototype,"auxiliaryStyle");j([F("array")],B.prototype,"initialMessages");j([F("object")],B.prototype,"introMessage");j([F("object")],B.prototype,"avatars");j([F("object")],B.prototype,"names");j([F("boolean")],B.prototype,"displayLoadingBubble");j([F("object")],B.prototype,"errorMessages");j([F("object")],B.prototype,"messageStyles");j([F("object")],B.prototype,"textToSpeech");j([F("object")],B.prototype,"speechToText");j([F("object")],B.prototype,"images");j([F("object")],B.prototype,"gifs");j([F("object")],B.prototype,"camera");j([F("object")],B.prototype,"audio");j([F("object")],B.prototype,"microphone");j([F("object")],B.prototype,"mixedFiles");j([F("object")],B.prototype,"dragAndDrop");j([F("object")],B.prototype,"introPanelStyle");j([F("object")],B.prototype,"htmlClassUtilities");j([F("function")],B.prototype,"onNewMessage");j([F("function")],B.prototype,"onClearMessages");j([F("function")],B.prototype,"onComponentRender");j([F("function")],B.prototype,"onError");j([F("object")],B.prototype,"demo");j([F("object")],B.prototype,"_insertKeyViewStyles");customElements.define("deep-chat",B);/**
|
|
277
|
-
* @license
|
|
278
|
-
* Copyright 2019 Google LLC
|
|
279
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
280
|
-
*/const Wt=globalThis,Er=Wt.ShadowRoot&&(Wt.ShadyCSS===void 0||Wt.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Ar=Symbol(),Sa=new WeakMap;let Hi=class{constructor(a,e,t){if(this._$cssResult$=!0,t!==Ar)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=a,this.t=e}get styleSheet(){let a=this.o;const e=this.t;if(Er&&a===void 0){const t=e!==void 0&&e.length===1;t&&(a=Sa.get(e)),a===void 0&&((this.o=a=new CSSStyleSheet).replaceSync(this.cssText),t&&Sa.set(e,a))}return a}toString(){return this.cssText}};const au=r=>new Hi(typeof r=="string"?r:r+"",void 0,Ar),iu=(r,...a)=>{const e=r.length===1?r[0]:a.reduce((t,n,i)=>t+(o=>{if(o._$cssResult$===!0)return o.cssText;if(typeof o=="number")return o;throw Error("Value passed to 'css' function must be a 'css' function result: "+o+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(n)+r[i+1],r[0]);return new Hi(e,r,Ar)},ou=(r,a)=>{if(Er)r.adoptedStyleSheets=a.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(const e of a){const t=document.createElement("style"),n=Wt.litNonce;n!==void 0&&t.setAttribute("nonce",n),t.textContent=e.cssText,r.appendChild(t)}},Ca=Er?r=>r:r=>r instanceof CSSStyleSheet?(a=>{let e="";for(const t of a.cssRules)e+=t.cssText;return au(e)})(r):r;/**
|
|
281
|
-
* @license
|
|
282
|
-
* Copyright 2017 Google LLC
|
|
283
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
284
|
-
*/const{is:su,defineProperty:lu,getOwnPropertyDescriptor:cu,getOwnPropertyNames:uu,getOwnPropertySymbols:du,getPrototypeOf:pu}=Object,$e=globalThis,Ea=$e.trustedTypes,mu=Ea?Ea.emptyScript:"",Gn=$e.reactiveElementPolyfillSupport,vt=(r,a)=>r,en={toAttribute(r,a){switch(a){case Boolean:r=r?mu:null;break;case Object:case Array:r=r==null?r:JSON.stringify(r)}return r},fromAttribute(r,a){let e=r;switch(a){case Boolean:e=r!==null;break;case Number:e=r===null?null:Number(r);break;case Object:case Array:try{e=JSON.parse(r)}catch{e=null}}return e}},Pr=(r,a)=>!su(r,a),Aa={attribute:!0,type:String,converter:en,reflect:!1,hasChanged:Pr};Symbol.metadata??(Symbol.metadata=Symbol("metadata")),$e.litPropertyMetadata??($e.litPropertyMetadata=new WeakMap);class ot extends HTMLElement{static addInitializer(a){this._$Ei(),(this.l??(this.l=[])).push(a)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(a,e=Aa){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(a,e),!e.noAccessor){const t=Symbol(),n=this.getPropertyDescriptor(a,t,e);n!==void 0&&lu(this.prototype,a,n)}}static getPropertyDescriptor(a,e,t){const{get:n,set:i}=cu(this.prototype,a)??{get(){return this[e]},set(o){this[e]=o}};return{get(){return n==null?void 0:n.call(this)},set(o){const s=n==null?void 0:n.call(this);i.call(this,o),this.requestUpdate(a,s,t)},configurable:!0,enumerable:!0}}static getPropertyOptions(a){return this.elementProperties.get(a)??Aa}static _$Ei(){if(this.hasOwnProperty(vt("elementProperties")))return;const a=pu(this);a.finalize(),a.l!==void 0&&(this.l=[...a.l]),this.elementProperties=new Map(a.elementProperties)}static finalize(){if(this.hasOwnProperty(vt("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(vt("properties"))){const e=this.properties,t=[...uu(e),...du(e)];for(const n of t)this.createProperty(n,e[n])}const a=this[Symbol.metadata];if(a!==null){const e=litPropertyMetadata.get(a);if(e!==void 0)for(const[t,n]of e)this.elementProperties.set(t,n)}this._$Eh=new Map;for(const[e,t]of this.elementProperties){const n=this._$Eu(e,t);n!==void 0&&this._$Eh.set(n,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(a){const e=[];if(Array.isArray(a)){const t=new Set(a.flat(1/0).reverse());for(const n of t)e.unshift(Ca(n))}else a!==void 0&&e.push(Ca(a));return e}static _$Eu(a,e){const t=e.attribute;return t===!1?void 0:typeof t=="string"?t:typeof a=="string"?a.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var a;this._$ES=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),(a=this.constructor.l)==null||a.forEach(e=>e(this))}addController(a){var e;(this._$EO??(this._$EO=new Set)).add(a),this.renderRoot!==void 0&&this.isConnected&&((e=a.hostConnected)==null||e.call(a))}removeController(a){var e;(e=this._$EO)==null||e.delete(a)}_$E_(){const a=new Map,e=this.constructor.elementProperties;for(const t of e.keys())this.hasOwnProperty(t)&&(a.set(t,this[t]),delete this[t]);a.size>0&&(this._$Ep=a)}createRenderRoot(){const a=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return ou(a,this.constructor.elementStyles),a}connectedCallback(){var a;this.renderRoot??(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(a=this._$EO)==null||a.forEach(e=>{var t;return(t=e.hostConnected)==null?void 0:t.call(e)})}enableUpdating(a){}disconnectedCallback(){var a;(a=this._$EO)==null||a.forEach(e=>{var t;return(t=e.hostDisconnected)==null?void 0:t.call(e)})}attributeChangedCallback(a,e,t){this._$AK(a,t)}_$EC(a,e){var i;const t=this.constructor.elementProperties.get(a),n=this.constructor._$Eu(a,t);if(n!==void 0&&t.reflect===!0){const o=(((i=t.converter)==null?void 0:i.toAttribute)!==void 0?t.converter:en).toAttribute(e,t.type);this._$Em=a,o==null?this.removeAttribute(n):this.setAttribute(n,o),this._$Em=null}}_$AK(a,e){var i;const t=this.constructor,n=t._$Eh.get(a);if(n!==void 0&&this._$Em!==n){const o=t.getPropertyOptions(n),s=typeof o.converter=="function"?{fromAttribute:o.converter}:((i=o.converter)==null?void 0:i.fromAttribute)!==void 0?o.converter:en;this._$Em=n,this[n]=s.fromAttribute(e,o.type),this._$Em=null}}requestUpdate(a,e,t){if(a!==void 0){if(t??(t=this.constructor.getPropertyOptions(a)),!(t.hasChanged??Pr)(this[a],e))return;this.P(a,e,t)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(a,e,t){this._$AL.has(a)||this._$AL.set(a,e),t.reflect===!0&&this._$Em!==a&&(this._$Ej??(this._$Ej=new Set)).add(a)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(e){Promise.reject(e)}const a=this.scheduleUpdate();return a!=null&&await a,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??(this.renderRoot=this.createRenderRoot()),this._$Ep){for(const[i,o]of this._$Ep)this[i]=o;this._$Ep=void 0}const n=this.constructor.elementProperties;if(n.size>0)for(const[i,o]of n)o.wrapped!==!0||this._$AL.has(i)||this[i]===void 0||this.P(i,this[i],o)}let a=!1;const e=this._$AL;try{a=this.shouldUpdate(e),a?(this.willUpdate(e),(t=this._$EO)==null||t.forEach(n=>{var i;return(i=n.hostUpdate)==null?void 0:i.call(n)}),this.update(e)):this._$EU()}catch(n){throw a=!1,this._$EU(),n}a&&this._$AE(e)}willUpdate(a){}_$AE(a){var e;(e=this._$EO)==null||e.forEach(t=>{var n;return(n=t.hostUpdated)==null?void 0:n.call(t)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(a)),this.updated(a)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(a){return!0}update(a){this._$Ej&&(this._$Ej=this._$Ej.forEach(e=>this._$EC(e,this[e]))),this._$EU()}updated(a){}firstUpdated(a){}}ot.elementStyles=[],ot.shadowRootOptions={mode:"open"},ot[vt("elementProperties")]=new Map,ot[vt("finalized")]=new Map,Gn==null||Gn({ReactiveElement:ot}),($e.reactiveElementVersions??($e.reactiveElementVersions=[])).push("2.0.4");/**
|
|
285
|
-
* @license
|
|
286
|
-
* Copyright 2017 Google LLC
|
|
287
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
288
|
-
*/const bt=globalThis,tn=bt.trustedTypes,Pa=tn?tn.createPolicy("lit-html",{createHTML:r=>r}):void 0,Gi="$lit$",xe=`lit$${Math.random().toFixed(9).slice(2)}$`,Ki="?"+xe,hu=`<${Ki}>`,Ke=document,At=()=>Ke.createComment(""),Pt=r=>r===null||typeof r!="object"&&typeof r!="function",Wi=Array.isArray,gu=r=>Wi(r)||typeof(r==null?void 0:r[Symbol.iterator])=="function",Kn=`[
|
|
289
|
-
\f\r]`,mt=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,La=/-->/g,Ta=/>/g,je=RegExp(`>|${Kn}(?:([^\\s"'>=/]+)(${Kn}*=${Kn}*(?:[^
|
|
290
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),Ma=/'/g,xa=/"/g,Yi=/^(?:script|style|textarea|title)$/i,fu=r=>(a,...e)=>({_$litType$:r,strings:a,values:e}),vu=fu(1),lt=Symbol.for("lit-noChange"),ne=Symbol.for("lit-nothing"),Ia=new WeakMap,qe=Ke.createTreeWalker(Ke,129);function Zi(r,a){if(!Array.isArray(r)||!r.hasOwnProperty("raw"))throw Error("invalid template strings array");return Pa!==void 0?Pa.createHTML(a):a}const bu=(r,a)=>{const e=r.length-1,t=[];let n,i=a===2?"<svg>":"",o=mt;for(let s=0;s<e;s++){const l=r[s];let c,u,d=-1,p=0;for(;p<l.length&&(o.lastIndex=p,u=o.exec(l),u!==null);)p=o.lastIndex,o===mt?u[1]==="!--"?o=La:u[1]!==void 0?o=Ta:u[2]!==void 0?(Yi.test(u[2])&&(n=RegExp("</"+u[2],"g")),o=je):u[3]!==void 0&&(o=je):o===je?u[0]===">"?(o=n??mt,d=-1):u[1]===void 0?d=-2:(d=o.lastIndex-u[2].length,c=u[1],o=u[3]===void 0?je:u[3]==='"'?xa:Ma):o===xa||o===Ma?o=je:o===La||o===Ta?o=mt:(o=je,n=void 0);const m=o===je&&r[s+1].startsWith("/>")?" ":"";i+=o===mt?l+hu:d>=0?(t.push(c),l.slice(0,d)+Gi+l.slice(d)+xe+m):l+xe+(d===-2?s:m)}return[Zi(r,i+(r[e]||"<?>")+(a===2?"</svg>":"")),t]};class Lt{constructor({strings:a,_$litType$:e},t){let n;this.parts=[];let i=0,o=0;const s=a.length-1,l=this.parts,[c,u]=bu(a,e);if(this.el=Lt.createElement(c,t),qe.currentNode=this.el.content,e===2){const d=this.el.content.firstChild;d.replaceWith(...d.childNodes)}for(;(n=qe.nextNode())!==null&&l.length<s;){if(n.nodeType===1){if(n.hasAttributes())for(const d of n.getAttributeNames())if(d.endsWith(Gi)){const p=u[o++],m=n.getAttribute(d).split(xe),g=/([.?@])?(.*)/.exec(p);l.push({type:1,index:i,name:g[2],strings:m,ctor:g[1]==="."?_u:g[1]==="?"?ku:g[1]==="@"?wu:Ln}),n.removeAttribute(d)}else d.startsWith(xe)&&(l.push({type:6,index:i}),n.removeAttribute(d));if(Yi.test(n.tagName)){const d=n.textContent.split(xe),p=d.length-1;if(p>0){n.textContent=tn?tn.emptyScript:"";for(let m=0;m<p;m++)n.append(d[m],At()),qe.nextNode(),l.push({type:2,index:++i});n.append(d[p],At())}}}else if(n.nodeType===8)if(n.data===Ki)l.push({type:2,index:i});else{let d=-1;for(;(d=n.data.indexOf(xe,d+1))!==-1;)l.push({type:7,index:i}),d+=xe.length-1}i++}}static createElement(a,e){const t=Ke.createElement("template");return t.innerHTML=a,t}}function ct(r,a,e=r,t){var o,s;if(a===lt)return a;let n=t!==void 0?(o=e._$Co)==null?void 0:o[t]:e._$Cl;const i=Pt(a)?void 0:a._$litDirective$;return(n==null?void 0:n.constructor)!==i&&((s=n==null?void 0:n._$AO)==null||s.call(n,!1),i===void 0?n=void 0:(n=new i(r),n._$AT(r,e,t)),t!==void 0?(e._$Co??(e._$Co=[]))[t]=n:e._$Cl=n),n!==void 0&&(a=ct(r,n._$AS(r,a.values),n,t)),a}class yu{constructor(a,e){this._$AV=[],this._$AN=void 0,this._$AD=a,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(a){const{el:{content:e},parts:t}=this._$AD,n=((a==null?void 0:a.creationScope)??Ke).importNode(e,!0);qe.currentNode=n;let i=qe.nextNode(),o=0,s=0,l=t[0];for(;l!==void 0;){if(o===l.index){let c;l.type===2?c=new zt(i,i.nextSibling,this,a):l.type===1?c=new l.ctor(i,l.name,l.strings,this,a):l.type===6&&(c=new Su(i,this,a)),this._$AV.push(c),l=t[++s]}o!==(l==null?void 0:l.index)&&(i=qe.nextNode(),o++)}return qe.currentNode=Ke,n}p(a){let e=0;for(const t of this._$AV)t!==void 0&&(t.strings!==void 0?(t._$AI(a,t,e),e+=t.strings.length-2):t._$AI(a[e])),e++}}class zt{get _$AU(){var a;return((a=this._$AM)==null?void 0:a._$AU)??this._$Cv}constructor(a,e,t,n){this.type=2,this._$AH=ne,this._$AN=void 0,this._$AA=a,this._$AB=e,this._$AM=t,this.options=n,this._$Cv=(n==null?void 0:n.isConnected)??!0}get parentNode(){let a=this._$AA.parentNode;const e=this._$AM;return e!==void 0&&(a==null?void 0:a.nodeType)===11&&(a=e.parentNode),a}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(a,e=this){a=ct(this,a,e),Pt(a)?a===ne||a==null||a===""?(this._$AH!==ne&&this._$AR(),this._$AH=ne):a!==this._$AH&&a!==lt&&this._(a):a._$litType$!==void 0?this.$(a):a.nodeType!==void 0?this.T(a):gu(a)?this.k(a):this._(a)}S(a){return this._$AA.parentNode.insertBefore(a,this._$AB)}T(a){this._$AH!==a&&(this._$AR(),this._$AH=this.S(a))}_(a){this._$AH!==ne&&Pt(this._$AH)?this._$AA.nextSibling.data=a:this.T(Ke.createTextNode(a)),this._$AH=a}$(a){var i;const{values:e,_$litType$:t}=a,n=typeof t=="number"?this._$AC(a):(t.el===void 0&&(t.el=Lt.createElement(Zi(t.h,t.h[0]),this.options)),t);if(((i=this._$AH)==null?void 0:i._$AD)===n)this._$AH.p(e);else{const o=new yu(n,this),s=o.u(this.options);o.p(e),this.T(s),this._$AH=o}}_$AC(a){let e=Ia.get(a.strings);return e===void 0&&Ia.set(a.strings,e=new Lt(a)),e}k(a){Wi(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let t,n=0;for(const i of a)n===e.length?e.push(t=new zt(this.S(At()),this.S(At()),this,this.options)):t=e[n],t._$AI(i),n++;n<e.length&&(this._$AR(t&&t._$AB.nextSibling,n),e.length=n)}_$AR(a=this._$AA.nextSibling,e){var t;for((t=this._$AP)==null?void 0:t.call(this,!1,!0,e);a&&a!==this._$AB;){const n=a.nextSibling;a.remove(),a=n}}setConnected(a){var e;this._$AM===void 0&&(this._$Cv=a,(e=this._$AP)==null||e.call(this,a))}}class Ln{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(a,e,t,n,i){this.type=1,this._$AH=ne,this._$AN=void 0,this.element=a,this.name=e,this._$AM=n,this.options=i,t.length>2||t[0]!==""||t[1]!==""?(this._$AH=Array(t.length-1).fill(new String),this.strings=t):this._$AH=ne}_$AI(a,e=this,t,n){const i=this.strings;let o=!1;if(i===void 0)a=ct(this,a,e,0),o=!Pt(a)||a!==this._$AH&&a!==lt,o&&(this._$AH=a);else{const s=a;let l,c;for(a=i[0],l=0;l<i.length-1;l++)c=ct(this,s[t+l],e,l),c===lt&&(c=this._$AH[l]),o||(o=!Pt(c)||c!==this._$AH[l]),c===ne?a=ne:a!==ne&&(a+=(c??"")+i[l+1]),this._$AH[l]=c}o&&!n&&this.j(a)}j(a){a===ne?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,a??"")}}class _u extends Ln{constructor(){super(...arguments),this.type=3}j(a){this.element[this.name]=a===ne?void 0:a}}class ku extends Ln{constructor(){super(...arguments),this.type=4}j(a){this.element.toggleAttribute(this.name,!!a&&a!==ne)}}class wu extends Ln{constructor(a,e,t,n,i){super(a,e,t,n,i),this.type=5}_$AI(a,e=this){if((a=ct(this,a,e,0)??ne)===lt)return;const t=this._$AH,n=a===ne&&t!==ne||a.capture!==t.capture||a.once!==t.once||a.passive!==t.passive,i=a!==ne&&(t===ne||n);n&&this.element.removeEventListener(this.name,this,t),i&&this.element.addEventListener(this.name,this,a),this._$AH=a}handleEvent(a){var e;typeof this._$AH=="function"?this._$AH.call(((e=this.options)==null?void 0:e.host)??this.element,a):this._$AH.handleEvent(a)}}class Su{constructor(a,e,t){this.element=a,this.type=6,this._$AN=void 0,this._$AM=e,this.options=t}get _$AU(){return this._$AM._$AU}_$AI(a){ct(this,a)}}const Wn=bt.litHtmlPolyfillSupport;Wn==null||Wn(Lt,zt),(bt.litHtmlVersions??(bt.litHtmlVersions=[])).push("3.1.4");const Cu=(r,a,e)=>{const t=(e==null?void 0:e.renderBefore)??a;let n=t._$litPart$;if(n===void 0){const i=(e==null?void 0:e.renderBefore)??null;t._$litPart$=n=new zt(a.insertBefore(At(),i),i,void 0,e??{})}return n._$AI(r),n};/**
|
|
291
|
-
* @license
|
|
292
|
-
* Copyright 2017 Google LLC
|
|
293
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
294
|
-
*/class yt extends ot{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var e;const a=super.createRenderRoot();return(e=this.renderOptions).renderBefore??(e.renderBefore=a.firstChild),a}update(a){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(a),this._$Do=Cu(e,this.renderRoot,this.renderOptions)}connectedCallback(){var a;super.connectedCallback(),(a=this._$Do)==null||a.setConnected(!0)}disconnectedCallback(){var a;super.disconnectedCallback(),(a=this._$Do)==null||a.setConnected(!1)}render(){return lt}}var ti;yt._$litElement$=!0,yt.finalized=!0,(ti=globalThis.litElementHydrateSupport)==null||ti.call(globalThis,{LitElement:yt});const Yn=globalThis.litElementPolyfillSupport;Yn==null||Yn({LitElement:yt});(globalThis.litElementVersions??(globalThis.litElementVersions=[])).push("4.0.6");/**
|
|
295
|
-
* @license
|
|
296
|
-
* Copyright 2017 Google LLC
|
|
297
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
298
|
-
*/const Eu=r=>(a,e)=>{e!==void 0?e.addInitializer(()=>{customElements.define(r,a)}):customElements.define(r,a)};/**
|
|
299
|
-
* @license
|
|
300
|
-
* Copyright 2017 Google LLC
|
|
301
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
302
|
-
*/const Au={attribute:!0,type:String,converter:en,reflect:!1,hasChanged:Pr},Pu=(r=Au,a,e)=>{const{kind:t,metadata:n}=e;let i=globalThis.litPropertyMetadata.get(n);if(i===void 0&&globalThis.litPropertyMetadata.set(n,i=new Map),i.set(e.name,r),t==="accessor"){const{name:o}=e;return{set(s){const l=a.get.call(this);a.set.call(this,s),this.requestUpdate(o,l,r)},init(s){return s!==void 0&&this.P(o,void 0,r),s}}}if(t==="setter"){const{name:o}=e;return function(s){const l=this[o];a.call(this,s),this.requestUpdate(o,l,r)}}throw Error("Unsupported decorator location: "+t)};function Lu(r){return(a,e)=>typeof e=="object"?Pu(r,a,e):((t,n,i)=>{const o=n.hasOwnProperty(i);return n.constructor.createProperty(i,o?{...t,wrapped:!0}:t),o?Object.getOwnPropertyDescriptor(n,i):void 0})(r,a,e)}function ve(r){"@babel/helpers - typeof";return ve=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},ve(r)}function Pe(r,a){if(!(r instanceof a))throw new TypeError("Cannot call a class as a function")}function Tu(r,a){if(ve(r)!=="object"||r===null)return r;var e=r[Symbol.toPrimitive];if(e!==void 0){var t=e.call(r,a||"default");if(ve(t)!=="object")return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return(a==="string"?String:Number)(r)}function Ji(r){var a=Tu(r,"string");return ve(a)==="symbol"?a:String(a)}function Ra(r,a){for(var e=0;e<a.length;e++){var t=a[e];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(r,Ji(t.key),t)}}function Le(r,a,e){return a&&Ra(r.prototype,a),e&&Ra(r,e),Object.defineProperty(r,"prototype",{writable:!1}),r}function Oe(r){if(r===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}function sr(r,a){return sr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,n){return t.__proto__=n,t},sr(r,a)}function Tn(r,a){if(typeof a!="function"&&a!==null)throw new TypeError("Super expression must either be null or a function");r.prototype=Object.create(a&&a.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),Object.defineProperty(r,"prototype",{writable:!1}),a&&sr(r,a)}function Dt(r,a){if(a&&(ve(a)==="object"||typeof a=="function"))return a;if(a!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Oe(r)}function Ae(r){return Ae=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Ae(r)}function De(r,a,e){return a=Ji(a),a in r?Object.defineProperty(r,a,{value:e,enumerable:!0,configurable:!0,writable:!0}):r[a]=e,r}function Mu(r){if(Array.isArray(r))return r}function xu(r){if(typeof Symbol<"u"&&r[Symbol.iterator]!=null||r["@@iterator"]!=null)return Array.from(r)}function $a(r,a){(a==null||a>r.length)&&(a=r.length);for(var e=0,t=new Array(a);e<a;e++)t[e]=r[e];return t}function Iu(r,a){if(r){if(typeof r=="string")return $a(r,a);var e=Object.prototype.toString.call(r).slice(8,-1);if(e==="Object"&&r.constructor&&(e=r.constructor.name),e==="Map"||e==="Set")return Array.from(r);if(e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return $a(r,a)}}function Ru(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
303
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function $u(r){return Mu(r)||xu(r)||Iu(r)||Ru()}function Oa(r,a){var e=Object.keys(r);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(r);a&&(t=t.filter(function(n){return Object.getOwnPropertyDescriptor(r,n).enumerable})),e.push.apply(e,t)}return e}function Na(r){for(var a=1;a<arguments.length;a++){var e=arguments[a]!=null?arguments[a]:{};a%2?Oa(Object(e),!0).forEach(function(t){De(r,t,e[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(e)):Oa(Object(e)).forEach(function(t){Object.defineProperty(r,t,Object.getOwnPropertyDescriptor(e,t))})}return r}var Ou={type:"logger",log:function(a){this.output("log",a)},warn:function(a){this.output("warn",a)},error:function(a){this.output("error",a)},output:function(a,e){console&&console[a]&&console[a].apply(console,e)}},Nu=function(){function r(a){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Pe(this,r),this.init(a,e)}return Le(r,[{key:"init",value:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=e||Ou,this.options=t,this.debug=t.debug}},{key:"setDebug",value:function(e){this.debug=e}},{key:"log",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"log","",!0)}},{key:"warn",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","",!0)}},{key:"error",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"error","")}},{key:"deprecate",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}},{key:"forward",value:function(e,t,n,i){return i&&!this.debug?null:(typeof e[0]=="string"&&(e[0]="".concat(n).concat(this.prefix," ").concat(e[0])),this.logger[t](e))}},{key:"create",value:function(e){return new r(this.logger,Na(Na({},{prefix:"".concat(this.prefix,":").concat(e,":")}),this.options))}},{key:"clone",value:function(e){return e=e||this.options,e.prefix=e.prefix||this.prefix,new r(this.logger,e)}}]),r}(),Ee=new Nu,ze=function(){function r(){Pe(this,r),this.observers={}}return Le(r,[{key:"on",value:function(e,t){var n=this;return e.split(" ").forEach(function(i){n.observers[i]=n.observers[i]||[],n.observers[i].push(t)}),this}},{key:"off",value:function(e,t){if(this.observers[e]){if(!t){delete this.observers[e];return}this.observers[e]=this.observers[e].filter(function(n){return n!==t})}}},{key:"emit",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];if(this.observers[e]){var o=[].concat(this.observers[e]);o.forEach(function(l){l.apply(void 0,n)})}if(this.observers["*"]){var s=[].concat(this.observers["*"]);s.forEach(function(l){l.apply(l,[e].concat(n))})}}}]),r}();function ht(){var r,a,e=new Promise(function(t,n){r=t,a=n});return e.resolve=r,e.reject=a,e}function za(r){return r==null?"":""+r}function zu(r,a,e){r.forEach(function(t){a[t]&&(e[t]=a[t])})}function Lr(r,a,e){function t(s){return s&&s.indexOf("###")>-1?s.replace(/###/g,"."):s}function n(){return!r||typeof r=="string"}for(var i=typeof a!="string"?[].concat(a):a.split(".");i.length>1;){if(n())return{};var o=t(i.shift());!r[o]&&e&&(r[o]=new e),Object.prototype.hasOwnProperty.call(r,o)?r=r[o]:r={}}return n()?{}:{obj:r,k:t(i.shift())}}function Da(r,a,e){var t=Lr(r,a,Object),n=t.obj,i=t.k;n[i]=e}function Du(r,a,e,t){var n=Lr(r,a,Object),i=n.obj,o=n.k;i[o]=i[o]||[],i[o].push(e)}function nn(r,a){var e=Lr(r,a),t=e.obj,n=e.k;if(t)return t[n]}function Bu(r,a,e){var t=nn(r,e);return t!==void 0?t:nn(a,e)}function Xi(r,a,e){for(var t in a)t!=="__proto__"&&t!=="constructor"&&(t in r?typeof r[t]=="string"||r[t]instanceof String||typeof a[t]=="string"||a[t]instanceof String?e&&(r[t]=a[t]):Xi(r[t],a[t],e):r[t]=a[t]);return r}function at(r){return r.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var Fu={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function ju(r){return typeof r=="string"?r.replace(/[&<>"'\/]/g,function(a){return Fu[a]}):r}var Mn=typeof window<"u"&&window.navigator&&typeof window.navigator.userAgentData>"u"&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1,qu=[" ",",","?","!",";"];function Vu(r,a,e){a=a||"",e=e||"";var t=qu.filter(function(s){return a.indexOf(s)<0&&e.indexOf(s)<0});if(t.length===0)return!0;var n=new RegExp("(".concat(t.map(function(s){return s==="?"?"\\?":s}).join("|"),")")),i=!n.test(r);if(!i){var o=r.indexOf(e);o>0&&!n.test(r.substring(0,o))&&(i=!0)}return i}function rn(r,a){var e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(r){if(r[a])return r[a];for(var t=a.split(e),n=r,i=0;i<t.length;++i){if(!n||typeof n[t[i]]=="string"&&i+1<t.length)return;if(n[t[i]]===void 0){for(var o=2,s=t.slice(i,i+o).join(e),l=n[s];l===void 0&&t.length>i+o;)o++,s=t.slice(i,i+o).join(e),l=n[s];if(l===void 0)return;if(l===null)return null;if(a.endsWith(s)){if(typeof l=="string")return l;if(s&&typeof l[s]=="string")return l[s]}var c=t.slice(i+o).join(e);return c?rn(l,c,e):void 0}n=n[t[i]]}return n}}function Ba(r,a){var e=Object.keys(r);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(r);a&&(t=t.filter(function(n){return Object.getOwnPropertyDescriptor(r,n).enumerable})),e.push.apply(e,t)}return e}function Vt(r){for(var a=1;a<arguments.length;a++){var e=arguments[a]!=null?arguments[a]:{};a%2?Ba(Object(e),!0).forEach(function(t){De(r,t,e[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(e)):Ba(Object(e)).forEach(function(t){Object.defineProperty(r,t,Object.getOwnPropertyDescriptor(e,t))})}return r}function Uu(r){var a=Hu();return function(){var t=Ae(r),n;if(a){var i=Ae(this).constructor;n=Reflect.construct(t,arguments,i)}else n=t.apply(this,arguments);return Dt(this,n)}}function Hu(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}var Gu=function(r){Tn(e,r);var a=Uu(e);function e(t){var n,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};return Pe(this,e),n=a.call(this),Mn&&ze.call(Oe(n)),n.data=t||{},n.options=i,n.options.keySeparator===void 0&&(n.options.keySeparator="."),n.options.ignoreJSONStructure===void 0&&(n.options.ignoreJSONStructure=!0),n}return Le(e,[{key:"addNamespaces",value:function(n){this.options.ns.indexOf(n)<0&&this.options.ns.push(n)}},{key:"removeNamespaces",value:function(n){var i=this.options.ns.indexOf(n);i>-1&&this.options.ns.splice(i,1)}},{key:"getResource",value:function(n,i,o){var s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},l=s.keySeparator!==void 0?s.keySeparator:this.options.keySeparator,c=s.ignoreJSONStructure!==void 0?s.ignoreJSONStructure:this.options.ignoreJSONStructure,u=[n,i];o&&typeof o!="string"&&(u=u.concat(o)),o&&typeof o=="string"&&(u=u.concat(l?o.split(l):o)),n.indexOf(".")>-1&&(u=n.split("."));var d=nn(this.data,u);return d||!c||typeof o!="string"?d:rn(this.data&&this.data[n]&&this.data[n][i],o,l)}},{key:"addResource",value:function(n,i,o,s){var l=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1},c=l.keySeparator!==void 0?l.keySeparator:this.options.keySeparator,u=[n,i];o&&(u=u.concat(c?o.split(c):o)),n.indexOf(".")>-1&&(u=n.split("."),s=i,i=u[1]),this.addNamespaces(i),Da(this.data,u,s),l.silent||this.emit("added",n,i,o,s)}},{key:"addResources",value:function(n,i,o){var s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(var l in o)(typeof o[l]=="string"||Object.prototype.toString.apply(o[l])==="[object Array]")&&this.addResource(n,i,l,o[l],{silent:!0});s.silent||this.emit("added",n,i,o)}},{key:"addResourceBundle",value:function(n,i,o,s,l){var c=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1},u=[n,i];n.indexOf(".")>-1&&(u=n.split("."),s=o,o=i,i=u[1]),this.addNamespaces(i);var d=nn(this.data,u)||{};s?Xi(d,o,l):d=Vt(Vt({},d),o),Da(this.data,u,d),c.silent||this.emit("added",n,i,o)}},{key:"removeResourceBundle",value:function(n,i){this.hasResourceBundle(n,i)&&delete this.data[n][i],this.removeNamespaces(i),this.emit("removed",n,i)}},{key:"hasResourceBundle",value:function(n,i){return this.getResource(n,i)!==void 0}},{key:"getResourceBundle",value:function(n,i){return i||(i=this.options.defaultNS),this.options.compatibilityAPI==="v1"?Vt(Vt({},{}),this.getResource(n,i)):this.getResource(n,i)}},{key:"getDataByLanguage",value:function(n){return this.data[n]}},{key:"hasLanguageSomeTranslations",value:function(n){var i=this.getDataByLanguage(n),o=i&&Object.keys(i)||[];return!!o.find(function(s){return i[s]&&Object.keys(i[s]).length>0})}},{key:"toJSON",value:function(){return this.data}}]),e}(ze),Qi={processors:{},addPostProcessor:function(a){this.processors[a.name]=a},handle:function(a,e,t,n,i){var o=this;return a.forEach(function(s){o.processors[s]&&(e=o.processors[s].process(e,t,n,i))}),e}};function Fa(r,a){var e=Object.keys(r);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(r);a&&(t=t.filter(function(n){return Object.getOwnPropertyDescriptor(r,n).enumerable})),e.push.apply(e,t)}return e}function oe(r){for(var a=1;a<arguments.length;a++){var e=arguments[a]!=null?arguments[a]:{};a%2?Fa(Object(e),!0).forEach(function(t){De(r,t,e[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(e)):Fa(Object(e)).forEach(function(t){Object.defineProperty(r,t,Object.getOwnPropertyDescriptor(e,t))})}return r}function Ku(r){var a=Wu();return function(){var t=Ae(r),n;if(a){var i=Ae(this).constructor;n=Reflect.construct(t,arguments,i)}else n=t.apply(this,arguments);return Dt(this,n)}}function Wu(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}var ja={},qa=function(r){Tn(e,r);var a=Ku(e);function e(t){var n,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Pe(this,e),n=a.call(this),Mn&&ze.call(Oe(n)),zu(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,Oe(n)),n.options=i,n.options.keySeparator===void 0&&(n.options.keySeparator="."),n.logger=Ee.create("translator"),n}return Le(e,[{key:"changeLanguage",value:function(n){n&&(this.language=n)}},{key:"exists",value:function(n){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(n==null)return!1;var o=this.resolve(n,i);return o&&o.res!==void 0}},{key:"extractFromKey",value:function(n,i){var o=i.nsSeparator!==void 0?i.nsSeparator:this.options.nsSeparator;o===void 0&&(o=":");var s=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator,l=i.ns||this.options.defaultNS||[],c=o&&n.indexOf(o)>-1,u=!this.options.userDefinedKeySeparator&&!i.keySeparator&&!this.options.userDefinedNsSeparator&&!i.nsSeparator&&!Vu(n,o,s);if(c&&!u){var d=n.match(this.interpolator.nestingRegexp);if(d&&d.length>0)return{key:n,namespaces:l};var p=n.split(o);(o!==s||o===s&&this.options.ns.indexOf(p[0])>-1)&&(l=p.shift()),n=p.join(s)}return typeof l=="string"&&(l=[l]),{key:n,namespaces:l}}},{key:"translate",value:function(n,i,o){var s=this;if(ve(i)!=="object"&&this.options.overloadTranslationOptionHandler&&(i=this.options.overloadTranslationOptionHandler(arguments)),ve(i)==="object"&&(i=oe({},i)),i||(i={}),n==null)return"";Array.isArray(n)||(n=[String(n)]);var l=i.returnDetails!==void 0?i.returnDetails:this.options.returnDetails,c=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator,u=this.extractFromKey(n[n.length-1],i),d=u.key,p=u.namespaces,m=p[p.length-1],g=i.lng||this.language,b=i.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(g&&g.toLowerCase()==="cimode"){if(b){var v=i.nsSeparator||this.options.nsSeparator;return l?{res:"".concat(m).concat(v).concat(d),usedKey:d,exactUsedKey:d,usedLng:g,usedNS:m}:"".concat(m).concat(v).concat(d)}return l?{res:d,usedKey:d,exactUsedKey:d,usedLng:g,usedNS:m}:d}var y=this.resolve(n,i),f=y&&y.res,w=y&&y.usedKey||d,L=y&&y.exactUsedKey||d,E=Object.prototype.toString.apply(f),O=["[object Number]","[object Function]","[object RegExp]"],U=i.joinArrays!==void 0?i.joinArrays:this.options.joinArrays,q=!this.i18nFormat||this.i18nFormat.handleAsObject,W=typeof f!="string"&&typeof f!="boolean"&&typeof f!="number";if(q&&f&&W&&O.indexOf(E)<0&&!(typeof U=="string"&&E==="[object Array]")){if(!i.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");var Q=this.options.returnedObjectHandler?this.options.returnedObjectHandler(w,f,oe(oe({},i),{},{ns:p})):"key '".concat(d," (").concat(this.language,")' returned an object instead of string.");return l?(y.res=Q,y):Q}if(c){var Y=E==="[object Array]",V=Y?[]:{},J=Y?L:w;for(var G in f)if(Object.prototype.hasOwnProperty.call(f,G)){var _e="".concat(J).concat(c).concat(G);V[G]=this.translate(_e,oe(oe({},i),{joinArrays:!1,ns:p})),V[G]===_e&&(V[G]=f[G])}f=V}}else if(q&&typeof U=="string"&&E==="[object Array]")f=f.join(U),f&&(f=this.extendTranslation(f,n,i,o));else{var A=!1,C=!1,P=i.count!==void 0&&typeof i.count!="string",x=e.hasDefaultValue(i),N=P?this.pluralResolver.getSuffix(g,i.count,i):"",M=i["defaultValue".concat(N)]||i.defaultValue;!this.isValidLookup(f)&&x&&(A=!0,f=M),this.isValidLookup(f)||(C=!0,f=d);var K=i.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey,ae=K&&C?void 0:f,ee=x&&M!==f&&this.options.updateMissing;if(C||A||ee){if(this.logger.log(ee?"updateKey":"missingKey",g,m,d,ee?M:f),c){var ke=this.resolve(d,oe(oe({},i),{},{keySeparator:!1}));ke&&ke.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}var ce=[],fe=this.languageUtils.getFallbackCodes(this.options.fallbackLng,i.lng||this.language);if(this.options.saveMissingTo==="fallback"&&fe&&fe[0])for(var xn=0;xn<fe.length;xn++)ce.push(fe[xn]);else this.options.saveMissingTo==="all"?ce=this.languageUtils.toResolveHierarchy(i.lng||this.language):ce.push(i.lng||this.language);var Tr=function(tt,Rn,Mr){var xr=x&&Mr!==f?Mr:ae;s.options.missingKeyHandler?s.options.missingKeyHandler(tt,m,Rn,xr,ee,i):s.backendConnector&&s.backendConnector.saveMissing&&s.backendConnector.saveMissing(tt,m,Rn,xr,ee,i),s.emit("missingKey",tt,m,Rn,f)};this.options.saveMissing&&(this.options.saveMissingPlurals&&P?ce.forEach(function(In){s.pluralResolver.getSuffixes(In,i).forEach(function(tt){Tr([In],d+tt,i["defaultValue".concat(tt)]||M)})}):Tr(ce,d,M))}f=this.extendTranslation(f,n,i,y,o),C&&f===d&&this.options.appendNamespaceToMissingKey&&(f="".concat(m,":").concat(d)),(C||A)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?f=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?"".concat(m,":").concat(d):d,A?f:void 0):f=this.options.parseMissingKeyHandler(f))}return l?(y.res=f,y):f}},{key:"extendTranslation",value:function(n,i,o,s,l){var c=this;if(this.i18nFormat&&this.i18nFormat.parse)n=this.i18nFormat.parse(n,oe(oe({},this.options.interpolation.defaultVariables),o),s.usedLng,s.usedNS,s.usedKey,{resolved:s});else if(!o.skipInterpolation){o.interpolation&&this.interpolator.init(oe(oe({},o),{interpolation:oe(oe({},this.options.interpolation),o.interpolation)}));var u=typeof n=="string"&&(o&&o.interpolation&&o.interpolation.skipOnVariables!==void 0?o.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables),d;if(u){var p=n.match(this.interpolator.nestingRegexp);d=p&&p.length}var m=o.replace&&typeof o.replace!="string"?o.replace:o;if(this.options.interpolation.defaultVariables&&(m=oe(oe({},this.options.interpolation.defaultVariables),m)),n=this.interpolator.interpolate(n,m,o.lng||this.language,o),u){var g=n.match(this.interpolator.nestingRegexp),b=g&&g.length;d<b&&(o.nest=!1)}!o.lng&&this.options.compatibilityAPI!=="v1"&&s&&s.res&&(o.lng=s.usedLng),o.nest!==!1&&(n=this.interpolator.nest(n,function(){for(var f=arguments.length,w=new Array(f),L=0;L<f;L++)w[L]=arguments[L];return l&&l[0]===w[0]&&!o.context?(c.logger.warn("It seems you are nesting recursively key: ".concat(w[0]," in key: ").concat(i[0])),null):c.translate.apply(c,w.concat([i]))},o)),o.interpolation&&this.interpolator.reset()}var v=o.postProcess||this.options.postProcess,y=typeof v=="string"?[v]:v;return n!=null&&y&&y.length&&o.applyPostProcessor!==!1&&(n=Qi.handle(y,n,i,this.options&&this.options.postProcessPassResolved?oe({i18nResolved:s},o):o,this)),n}},{key:"resolve",value:function(n){var i=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s,l,c,u,d;return typeof n=="string"&&(n=[n]),n.forEach(function(p){if(!i.isValidLookup(s)){var m=i.extractFromKey(p,o),g=m.key;l=g;var b=m.namespaces;i.options.fallbackNS&&(b=b.concat(i.options.fallbackNS));var v=o.count!==void 0&&typeof o.count!="string",y=v&&!o.ordinal&&o.count===0&&i.pluralResolver.shouldUseIntlApi(),f=o.context!==void 0&&(typeof o.context=="string"||typeof o.context=="number")&&o.context!=="",w=o.lngs?o.lngs:i.languageUtils.toResolveHierarchy(o.lng||i.language,o.fallbackLng);b.forEach(function(L){i.isValidLookup(s)||(d=L,!ja["".concat(w[0],"-").concat(L)]&&i.utils&&i.utils.hasLoadedNamespace&&!i.utils.hasLoadedNamespace(d)&&(ja["".concat(w[0],"-").concat(L)]=!0,i.logger.warn('key "'.concat(l,'" for languages "').concat(w.join(", "),`" won't get resolved as namespace "`).concat(d,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),w.forEach(function(E){if(!i.isValidLookup(s)){u=E;var O=[g];if(i.i18nFormat&&i.i18nFormat.addLookupKeys)i.i18nFormat.addLookupKeys(O,g,E,L,o);else{var U;v&&(U=i.pluralResolver.getSuffix(E,o.count,o));var q="".concat(i.options.pluralSeparator,"zero");if(v&&(O.push(g+U),y&&O.push(g+q)),f){var W="".concat(g).concat(i.options.contextSeparator).concat(o.context);O.push(W),v&&(O.push(W+U),y&&O.push(W+q))}}for(var Q;Q=O.pop();)i.isValidLookup(s)||(c=Q,s=i.getResource(E,L,Q,o))}}))})}}),{res:s,usedKey:l,exactUsedKey:c,usedLng:u,usedNS:d}}},{key:"isValidLookup",value:function(n){return n!==void 0&&!(!this.options.returnNull&&n===null)&&!(!this.options.returnEmptyString&&n==="")}},{key:"getResource",value:function(n,i,o){var s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(n,i,o,s):this.resourceStore.getResource(n,i,o,s)}}],[{key:"hasDefaultValue",value:function(n){var i="defaultValue";for(var o in n)if(Object.prototype.hasOwnProperty.call(n,o)&&i===o.substring(0,i.length)&&n[o]!==void 0)return!0;return!1}}]),e}(ze);function Zn(r){return r.charAt(0).toUpperCase()+r.slice(1)}var Va=function(){function r(a){Pe(this,r),this.options=a,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Ee.create("languageUtils")}return Le(r,[{key:"getScriptPartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return null;var t=e.split("-");return t.length===2||(t.pop(),t[t.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(t.join("-"))}},{key:"getLanguagePartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return e;var t=e.split("-");return this.formatLanguageCode(t[0])}},{key:"formatLanguageCode",value:function(e){if(typeof e=="string"&&e.indexOf("-")>-1){var t=["hans","hant","latn","cyrl","cans","mong","arab"],n=e.split("-");return this.options.lowerCaseLng?n=n.map(function(i){return i.toLowerCase()}):n.length===2?(n[0]=n[0].toLowerCase(),n[1]=n[1].toUpperCase(),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=Zn(n[1].toLowerCase()))):n.length===3&&(n[0]=n[0].toLowerCase(),n[1].length===2&&(n[1]=n[1].toUpperCase()),n[0]!=="sgn"&&n[2].length===2&&(n[2]=n[2].toUpperCase()),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=Zn(n[1].toLowerCase())),t.indexOf(n[2].toLowerCase())>-1&&(n[2]=Zn(n[2].toLowerCase()))),n.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}},{key:"isSupportedCode",value:function(e){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}},{key:"getBestMatchFromCodes",value:function(e){var t=this;if(!e)return null;var n;return e.forEach(function(i){if(!n){var o=t.formatLanguageCode(i);(!t.options.supportedLngs||t.isSupportedCode(o))&&(n=o)}}),!n&&this.options.supportedLngs&&e.forEach(function(i){if(!n){var o=t.getLanguagePartFromCode(i);if(t.isSupportedCode(o))return n=o;n=t.options.supportedLngs.find(function(s){if(s===o)return s;if(!(s.indexOf("-")<0&&o.indexOf("-")<0)&&s.indexOf(o)===0)return s})}}),n||(n=this.getFallbackCodes(this.options.fallbackLng)[0]),n}},{key:"getFallbackCodes",value:function(e,t){if(!e)return[];if(typeof e=="function"&&(e=e(t)),typeof e=="string"&&(e=[e]),Object.prototype.toString.apply(e)==="[object Array]")return e;if(!t)return e.default||[];var n=e[t];return n||(n=e[this.getScriptPartFromCode(t)]),n||(n=e[this.formatLanguageCode(t)]),n||(n=e[this.getLanguagePartFromCode(t)]),n||(n=e.default),n||[]}},{key:"toResolveHierarchy",value:function(e,t){var n=this,i=this.getFallbackCodes(t||this.options.fallbackLng||[],e),o=[],s=function(c){c&&(n.isSupportedCode(c)?o.push(c):n.logger.warn("rejecting language code not found in supportedLngs: ".concat(c)))};return typeof e=="string"&&e.indexOf("-")>-1?(this.options.load!=="languageOnly"&&s(this.formatLanguageCode(e)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&s(this.getScriptPartFromCode(e)),this.options.load!=="currentOnly"&&s(this.getLanguagePartFromCode(e))):typeof e=="string"&&s(this.formatLanguageCode(e)),i.forEach(function(l){o.indexOf(l)<0&&s(n.formatLanguageCode(l))}),o}}]),r}(),Yu=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],Zu={1:function(a){return+(a>1)},2:function(a){return+(a!=1)},3:function(a){return 0},4:function(a){return a%10==1&&a%100!=11?0:a%10>=2&&a%10<=4&&(a%100<10||a%100>=20)?1:2},5:function(a){return a==0?0:a==1?1:a==2?2:a%100>=3&&a%100<=10?3:a%100>=11?4:5},6:function(a){return a==1?0:a>=2&&a<=4?1:2},7:function(a){return a==1?0:a%10>=2&&a%10<=4&&(a%100<10||a%100>=20)?1:2},8:function(a){return a==1?0:a==2?1:a!=8&&a!=11?2:3},9:function(a){return+(a>=2)},10:function(a){return a==1?0:a==2?1:a<7?2:a<11?3:4},11:function(a){return a==1||a==11?0:a==2||a==12?1:a>2&&a<20?2:3},12:function(a){return+(a%10!=1||a%100==11)},13:function(a){return+(a!==0)},14:function(a){return a==1?0:a==2?1:a==3?2:3},15:function(a){return a%10==1&&a%100!=11?0:a%10>=2&&(a%100<10||a%100>=20)?1:2},16:function(a){return a%10==1&&a%100!=11?0:a!==0?1:2},17:function(a){return a==1||a%10==1&&a%100!=11?0:1},18:function(a){return a==0?0:a==1?1:2},19:function(a){return a==1?0:a==0||a%100>1&&a%100<11?1:a%100>10&&a%100<20?2:3},20:function(a){return a==1?0:a==0||a%100>0&&a%100<20?1:2},21:function(a){return a%100==1?1:a%100==2?2:a%100==3||a%100==4?3:0},22:function(a){return a==1?0:a==2?1:(a<0||a>10)&&a%10==0?2:3}},Ju=["v1","v2","v3"],Ua={zero:0,one:1,two:2,few:3,many:4,other:5};function Xu(){var r={};return Yu.forEach(function(a){a.lngs.forEach(function(e){r[e]={numbers:a.nr,plurals:Zu[a.fc]}})}),r}var Qu=function(){function r(a){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Pe(this,r),this.languageUtils=a,this.options=e,this.logger=Ee.create("pluralResolver"),(!this.options.compatibilityJSON||this.options.compatibilityJSON==="v4")&&(typeof Intl>"u"||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=Xu()}return Le(r,[{key:"addRule",value:function(e,t){this.rules[e]=t}},{key:"getRule",value:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(e,{type:t.ordinal?"ordinal":"cardinal"})}catch{return}return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}},{key:"needsPlural",value:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=this.getRule(e,t);return this.shouldUseIntlApi()?n&&n.resolvedOptions().pluralCategories.length>1:n&&n.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(e,n).map(function(i){return"".concat(t).concat(i)})}},{key:"getSuffixes",value:function(e){var t=this,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=this.getRule(e,n);return i?this.shouldUseIntlApi()?i.resolvedOptions().pluralCategories.sort(function(o,s){return Ua[o]-Ua[s]}).map(function(o){return"".concat(t.options.prepend).concat(o)}):i.numbers.map(function(o){return t.getSuffix(e,o,n)}):[]}},{key:"getSuffix",value:function(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=this.getRule(e,n);return i?this.shouldUseIntlApi()?"".concat(this.options.prepend).concat(i.select(t)):this.getSuffixRetroCompatible(i,t):(this.logger.warn("no plural rule found for: ".concat(e)),"")}},{key:"getSuffixRetroCompatible",value:function(e,t){var n=this,i=e.noAbs?e.plurals(t):e.plurals(Math.abs(t)),o=e.numbers[i];this.options.simplifyPluralSuffix&&e.numbers.length===2&&e.numbers[0]===1&&(o===2?o="plural":o===1&&(o=""));var s=function(){return n.options.prepend&&o.toString()?n.options.prepend+o.toString():o.toString()};return this.options.compatibilityJSON==="v1"?o===1?"":typeof o=="number"?"_plural_".concat(o.toString()):s():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&e.numbers.length===2&&e.numbers[0]===1?s():this.options.prepend&&i.toString()?this.options.prepend+i.toString():i.toString()}},{key:"shouldUseIntlApi",value:function(){return!Ju.includes(this.options.compatibilityJSON)}}]),r}();function Ha(r,a){var e=Object.keys(r);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(r);a&&(t=t.filter(function(n){return Object.getOwnPropertyDescriptor(r,n).enumerable})),e.push.apply(e,t)}return e}function ye(r){for(var a=1;a<arguments.length;a++){var e=arguments[a]!=null?arguments[a]:{};a%2?Ha(Object(e),!0).forEach(function(t){De(r,t,e[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(e)):Ha(Object(e)).forEach(function(t){Object.defineProperty(r,t,Object.getOwnPropertyDescriptor(e,t))})}return r}function Ga(r,a,e){var t=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",n=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,i=Bu(r,a,e);return!i&&n&&typeof e=="string"&&(i=rn(r,e,t),i===void 0&&(i=rn(a,e,t))),i}var ed=function(){function r(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Pe(this,r),this.logger=Ee.create("interpolator"),this.options=a,this.format=a.interpolation&&a.interpolation.format||function(e){return e},this.init(a)}return Le(r,[{key:"init",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});var t=e.interpolation;this.escape=t.escape!==void 0?t.escape:ju,this.escapeValue=t.escapeValue!==void 0?t.escapeValue:!0,this.useRawValueToEscape=t.useRawValueToEscape!==void 0?t.useRawValueToEscape:!1,this.prefix=t.prefix?at(t.prefix):t.prefixEscaped||"{{",this.suffix=t.suffix?at(t.suffix):t.suffixEscaped||"}}",this.formatSeparator=t.formatSeparator?t.formatSeparator:t.formatSeparator||",",this.unescapePrefix=t.unescapeSuffix?"":t.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":t.unescapeSuffix||"",this.nestingPrefix=t.nestingPrefix?at(t.nestingPrefix):t.nestingPrefixEscaped||at("$t("),this.nestingSuffix=t.nestingSuffix?at(t.nestingSuffix):t.nestingSuffixEscaped||at(")"),this.nestingOptionsSeparator=t.nestingOptionsSeparator?t.nestingOptionsSeparator:t.nestingOptionsSeparator||",",this.maxReplaces=t.maxReplaces?t.maxReplaces:1e3,this.alwaysFormat=t.alwaysFormat!==void 0?t.alwaysFormat:!1,this.resetRegExp()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var e="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=new RegExp(e,"g");var t="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(t,"g");var n="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(n,"g")}},{key:"interpolate",value:function(e,t,n,i){var o=this,s,l,c,u=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function d(v){return v.replace(/\$/g,"$$$$")}var p=function(y){if(y.indexOf(o.formatSeparator)<0){var f=Ga(t,u,y,o.options.keySeparator,o.options.ignoreJSONStructure);return o.alwaysFormat?o.format(f,void 0,n,ye(ye(ye({},i),t),{},{interpolationkey:y})):f}var w=y.split(o.formatSeparator),L=w.shift().trim(),E=w.join(o.formatSeparator).trim();return o.format(Ga(t,u,L,o.options.keySeparator,o.options.ignoreJSONStructure),E,n,ye(ye(ye({},i),t),{},{interpolationkey:L}))};this.resetRegExp();var m=i&&i.missingInterpolationHandler||this.options.missingInterpolationHandler,g=i&&i.interpolation&&i.interpolation.skipOnVariables!==void 0?i.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables,b=[{regex:this.regexpUnescape,safeValue:function(y){return d(y)}},{regex:this.regexp,safeValue:function(y){return o.escapeValue?d(o.escape(y)):d(y)}}];return b.forEach(function(v){for(c=0;s=v.regex.exec(e);){var y=s[1].trim();if(l=p(y),l===void 0)if(typeof m=="function"){var f=m(e,s,i);l=typeof f=="string"?f:""}else if(i&&Object.prototype.hasOwnProperty.call(i,y))l="";else if(g){l=s[0];continue}else o.logger.warn("missed to pass in variable ".concat(y," for interpolating ").concat(e)),l="";else typeof l!="string"&&!o.useRawValueToEscape&&(l=za(l));var w=v.safeValue(l);if(e=e.replace(s[0],w),g?(v.regex.lastIndex+=l.length,v.regex.lastIndex-=s[0].length):v.regex.lastIndex=0,c++,c>=o.maxReplaces)break}}),e}},{key:"nest",value:function(e,t){var n=this,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o,s,l;function c(m,g){var b=this.nestingOptionsSeparator;if(m.indexOf(b)<0)return m;var v=m.split(new RegExp("".concat(b,"[ ]*{"))),y="{".concat(v[1]);m=v[0],y=this.interpolate(y,l);var f=y.match(/'/g),w=y.match(/"/g);(f&&f.length%2===0&&!w||w.length%2!==0)&&(y=y.replace(/'/g,'"'));try{l=JSON.parse(y),g&&(l=ye(ye({},g),l))}catch(L){return this.logger.warn("failed parsing options string in nesting for key ".concat(m),L),"".concat(m).concat(b).concat(y)}return delete l.defaultValue,m}for(;o=this.nestingRegexp.exec(e);){var u=[];l=ye({},i),l=l.replace&&typeof l.replace!="string"?l.replace:l,l.applyPostProcessor=!1,delete l.defaultValue;var d=!1;if(o[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(o[1])){var p=o[1].split(this.formatSeparator).map(function(m){return m.trim()});o[1]=p.shift(),u=p,d=!0}if(s=t(c.call(this,o[1].trim(),l),l),s&&o[0]===e&&typeof s!="string")return s;typeof s!="string"&&(s=za(s)),s||(this.logger.warn("missed to resolve ".concat(o[1]," for nesting ").concat(e)),s=""),d&&(s=u.reduce(function(m,g){return n.format(m,g,i.lng,ye(ye({},i),{},{interpolationkey:o[1].trim()}))},s.trim())),e=e.replace(o[0],s),this.regexp.lastIndex=0}return e}}]),r}();function Ka(r,a){var e=Object.keys(r);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(r);a&&(t=t.filter(function(n){return Object.getOwnPropertyDescriptor(r,n).enumerable})),e.push.apply(e,t)}return e}function Te(r){for(var a=1;a<arguments.length;a++){var e=arguments[a]!=null?arguments[a]:{};a%2?Ka(Object(e),!0).forEach(function(t){De(r,t,e[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(e)):Ka(Object(e)).forEach(function(t){Object.defineProperty(r,t,Object.getOwnPropertyDescriptor(e,t))})}return r}function td(r){var a=r.toLowerCase().trim(),e={};if(r.indexOf("(")>-1){var t=r.split("(");a=t[0].toLowerCase().trim();var n=t[1].substring(0,t[1].length-1);if(a==="currency"&&n.indexOf(":")<0)e.currency||(e.currency=n.trim());else if(a==="relativetime"&&n.indexOf(":")<0)e.range||(e.range=n.trim());else{var i=n.split(";");i.forEach(function(o){if(o){var s=o.split(":"),l=$u(s),c=l[0],u=l.slice(1),d=u.join(":").trim().replace(/^'+|'+$/g,"");e[c.trim()]||(e[c.trim()]=d),d==="false"&&(e[c.trim()]=!1),d==="true"&&(e[c.trim()]=!0),isNaN(d)||(e[c.trim()]=parseInt(d,10))}})}}return{formatName:a,formatOptions:e}}function it(r){var a={};return function(t,n,i){var o=n+JSON.stringify(i),s=a[o];return s||(s=r(n,i),a[o]=s),s(t)}}var nd=function(){function r(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Pe(this,r),this.logger=Ee.create("formatter"),this.options=a,this.formats={number:it(function(e,t){var n=new Intl.NumberFormat(e,Te({},t));return function(i){return n.format(i)}}),currency:it(function(e,t){var n=new Intl.NumberFormat(e,Te(Te({},t),{},{style:"currency"}));return function(i){return n.format(i)}}),datetime:it(function(e,t){var n=new Intl.DateTimeFormat(e,Te({},t));return function(i){return n.format(i)}}),relativetime:it(function(e,t){var n=new Intl.RelativeTimeFormat(e,Te({},t));return function(i){return n.format(i,t.range||"day")}}),list:it(function(e,t){var n=new Intl.ListFormat(e,Te({},t));return function(i){return n.format(i)}})},this.init(a)}return Le(r,[{key:"init",value:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}},n=t.interpolation;this.formatSeparator=n.formatSeparator?n.formatSeparator:n.formatSeparator||","}},{key:"add",value:function(e,t){this.formats[e.toLowerCase().trim()]=t}},{key:"addCached",value:function(e,t){this.formats[e.toLowerCase().trim()]=it(t)}},{key:"format",value:function(e,t,n){var i=this,o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},s=t.split(this.formatSeparator),l=s.reduce(function(c,u){var d=td(u),p=d.formatName,m=d.formatOptions;if(i.formats[p]){var g=c;try{var b=o&&o.formatParams&&o.formatParams[o.interpolationkey]||{},v=b.locale||b.lng||o.locale||o.lng||n;g=i.formats[p](c,v,Te(Te(Te({},m),o),b))}catch(y){i.logger.warn(y)}return g}else i.logger.warn("there was no format function for ".concat(p));return c},e);return l}}]),r}();function Wa(r,a){var e=Object.keys(r);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(r);a&&(t=t.filter(function(n){return Object.getOwnPropertyDescriptor(r,n).enumerable})),e.push.apply(e,t)}return e}function Ya(r){for(var a=1;a<arguments.length;a++){var e=arguments[a]!=null?arguments[a]:{};a%2?Wa(Object(e),!0).forEach(function(t){De(r,t,e[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(e)):Wa(Object(e)).forEach(function(t){Object.defineProperty(r,t,Object.getOwnPropertyDescriptor(e,t))})}return r}function rd(r){var a=ad();return function(){var t=Ae(r),n;if(a){var i=Ae(this).constructor;n=Reflect.construct(t,arguments,i)}else n=t.apply(this,arguments);return Dt(this,n)}}function ad(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function id(r,a){r.pending[a]!==void 0&&(delete r.pending[a],r.pendingCount--)}var od=function(r){Tn(e,r);var a=rd(e);function e(t,n,i){var o,s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return Pe(this,e),o=a.call(this),Mn&&ze.call(Oe(o)),o.backend=t,o.store=n,o.services=i,o.languageUtils=i.languageUtils,o.options=s,o.logger=Ee.create("backendConnector"),o.waitingReads=[],o.maxParallelReads=s.maxParallelReads||10,o.readingCalls=0,o.maxRetries=s.maxRetries>=0?s.maxRetries:5,o.retryTimeout=s.retryTimeout>=1?s.retryTimeout:350,o.state={},o.queue=[],o.backend&&o.backend.init&&o.backend.init(i,s.backend,s),o}return Le(e,[{key:"queueLoad",value:function(n,i,o,s){var l=this,c={},u={},d={},p={};return n.forEach(function(m){var g=!0;i.forEach(function(b){var v="".concat(m,"|").concat(b);!o.reload&&l.store.hasResourceBundle(m,b)?l.state[v]=2:l.state[v]<0||(l.state[v]===1?u[v]===void 0&&(u[v]=!0):(l.state[v]=1,g=!1,u[v]===void 0&&(u[v]=!0),c[v]===void 0&&(c[v]=!0),p[b]===void 0&&(p[b]=!0)))}),g||(d[m]=!0)}),(Object.keys(c).length||Object.keys(u).length)&&this.queue.push({pending:u,pendingCount:Object.keys(u).length,loaded:{},errors:[],callback:s}),{toLoad:Object.keys(c),pending:Object.keys(u),toLoadLanguages:Object.keys(d),toLoadNamespaces:Object.keys(p)}}},{key:"loaded",value:function(n,i,o){var s=n.split("|"),l=s[0],c=s[1];i&&this.emit("failedLoading",l,c,i),o&&this.store.addResourceBundle(l,c,o),this.state[n]=i?-1:2;var u={};this.queue.forEach(function(d){Du(d.loaded,[l],c),id(d,n),i&&d.errors.push(i),d.pendingCount===0&&!d.done&&(Object.keys(d.loaded).forEach(function(p){u[p]||(u[p]={});var m=d.loaded[p];m.length&&m.forEach(function(g){u[p][g]===void 0&&(u[p][g]=!0)})}),d.done=!0,d.errors.length?d.callback(d.errors):d.callback())}),this.emit("loaded",u),this.queue=this.queue.filter(function(d){return!d.done})}},{key:"read",value:function(n,i,o){var s=this,l=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,c=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,u=arguments.length>5?arguments[5]:void 0;if(!n.length)return u(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:n,ns:i,fcName:o,tried:l,wait:c,callback:u});return}this.readingCalls++;var d=function(b,v){if(s.readingCalls--,s.waitingReads.length>0){var y=s.waitingReads.shift();s.read(y.lng,y.ns,y.fcName,y.tried,y.wait,y.callback)}if(b&&v&&l<s.maxRetries){setTimeout(function(){s.read.call(s,n,i,o,l+1,c*2,u)},c);return}u(b,v)},p=this.backend[o].bind(this.backend);if(p.length===2){try{var m=p(n,i);m&&typeof m.then=="function"?m.then(function(g){return d(null,g)}).catch(d):d(null,m)}catch(g){d(g)}return}return p(n,i,d)}},{key:"prepareLoading",value:function(n,i){var o=this,s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},l=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),l&&l();typeof n=="string"&&(n=this.languageUtils.toResolveHierarchy(n)),typeof i=="string"&&(i=[i]);var c=this.queueLoad(n,i,s,l);if(!c.toLoad.length)return c.pending.length||l(),null;c.toLoad.forEach(function(u){o.loadOne(u)})}},{key:"load",value:function(n,i,o){this.prepareLoading(n,i,{},o)}},{key:"reload",value:function(n,i,o){this.prepareLoading(n,i,{reload:!0},o)}},{key:"loadOne",value:function(n){var i=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",s=n.split("|"),l=s[0],c=s[1];this.read(l,c,"read",void 0,void 0,function(u,d){u&&i.logger.warn("".concat(o,"loading namespace ").concat(c," for language ").concat(l," failed"),u),!u&&d&&i.logger.log("".concat(o,"loaded namespace ").concat(c," for language ").concat(l),d),i.loaded(n,u,d)})}},{key:"saveMissing",value:function(n,i,o,s,l){var c=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},u=arguments.length>6&&arguments[6]!==void 0?arguments[6]:function(){};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(i)){this.logger.warn('did not save key "'.concat(o,'" as the namespace "').concat(i,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(o==null||o==="")){if(this.backend&&this.backend.create){var d=Ya(Ya({},c),{},{isUpdate:l}),p=this.backend.create.bind(this.backend);if(p.length<6)try{var m;p.length===5?m=p(n,i,o,s,d):m=p(n,i,o,s),m&&typeof m.then=="function"?m.then(function(g){return u(null,g)}).catch(u):u(null,m)}catch(g){u(g)}else p(n,i,o,s,u,d)}!n||!n[0]||this.store.addResource(n[0],i,o,s)}}}]),e}(ze);function Za(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(a){var e={};if(ve(a[1])==="object"&&(e=a[1]),typeof a[1]=="string"&&(e.defaultValue=a[1]),typeof a[2]=="string"&&(e.tDescription=a[2]),ve(a[2])==="object"||ve(a[3])==="object"){var t=a[3]||a[2];Object.keys(t).forEach(function(n){e[n]=t[n]})}return e},interpolation:{escapeValue:!0,format:function(a,e,t,n){return a},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function Ja(r){return typeof r.ns=="string"&&(r.ns=[r.ns]),typeof r.fallbackLng=="string"&&(r.fallbackLng=[r.fallbackLng]),typeof r.fallbackNS=="string"&&(r.fallbackNS=[r.fallbackNS]),r.supportedLngs&&r.supportedLngs.indexOf("cimode")<0&&(r.supportedLngs=r.supportedLngs.concat(["cimode"])),r}function Xa(r,a){var e=Object.keys(r);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(r);a&&(t=t.filter(function(n){return Object.getOwnPropertyDescriptor(r,n).enumerable})),e.push.apply(e,t)}return e}function Se(r){for(var a=1;a<arguments.length;a++){var e=arguments[a]!=null?arguments[a]:{};a%2?Xa(Object(e),!0).forEach(function(t){De(r,t,e[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(e)):Xa(Object(e)).forEach(function(t){Object.defineProperty(r,t,Object.getOwnPropertyDescriptor(e,t))})}return r}function sd(r){var a=ld();return function(){var t=Ae(r),n;if(a){var i=Ae(this).constructor;n=Reflect.construct(t,arguments,i)}else n=t.apply(this,arguments);return Dt(this,n)}}function ld(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Ut(){}function cd(r){var a=Object.getOwnPropertyNames(Object.getPrototypeOf(r));a.forEach(function(e){typeof r[e]=="function"&&(r[e]=r[e].bind(r))})}var an=function(r){Tn(e,r);var a=sd(e);function e(){var t,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=arguments.length>1?arguments[1]:void 0;if(Pe(this,e),t=a.call(this),Mn&&ze.call(Oe(t)),t.options=Ja(n),t.services={},t.logger=Ee,t.modules={external:[]},cd(Oe(t)),i&&!t.isInitialized&&!n.isClone){if(!t.options.initImmediate)return t.init(n,i),Dt(t,Oe(t));setTimeout(function(){t.init(n,i)},0)}return t}return Le(e,[{key:"init",value:function(){var n=this,i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;typeof i=="function"&&(o=i,i={}),!i.defaultNS&&i.defaultNS!==!1&&i.ns&&(typeof i.ns=="string"?i.defaultNS=i.ns:i.ns.indexOf("translation")<0&&(i.defaultNS=i.ns[0]));var s=Za();this.options=Se(Se(Se({},s),this.options),Ja(i)),this.options.compatibilityAPI!=="v1"&&(this.options.interpolation=Se(Se({},s.interpolation),this.options.interpolation)),i.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=i.keySeparator),i.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=i.nsSeparator);function l(y){return y?typeof y=="function"?new y:y:null}if(!this.options.isClone){this.modules.logger?Ee.init(l(this.modules.logger),this.options):Ee.init(null,this.options);var c;this.modules.formatter?c=this.modules.formatter:typeof Intl<"u"&&(c=nd);var u=new Va(this.options);this.store=new Gu(this.options.resources,this.options);var d=this.services;d.logger=Ee,d.resourceStore=this.store,d.languageUtils=u,d.pluralResolver=new Qu(u,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),c&&(!this.options.interpolation.format||this.options.interpolation.format===s.interpolation.format)&&(d.formatter=l(c),d.formatter.init(d,this.options),this.options.interpolation.format=d.formatter.format.bind(d.formatter)),d.interpolator=new ed(this.options),d.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},d.backendConnector=new od(l(this.modules.backend),d.resourceStore,d,this.options),d.backendConnector.on("*",function(y){for(var f=arguments.length,w=new Array(f>1?f-1:0),L=1;L<f;L++)w[L-1]=arguments[L];n.emit.apply(n,[y].concat(w))}),this.modules.languageDetector&&(d.languageDetector=l(this.modules.languageDetector),d.languageDetector.init&&d.languageDetector.init(d,this.options.detection,this.options)),this.modules.i18nFormat&&(d.i18nFormat=l(this.modules.i18nFormat),d.i18nFormat.init&&d.i18nFormat.init(this)),this.translator=new qa(this.services,this.options),this.translator.on("*",function(y){for(var f=arguments.length,w=new Array(f>1?f-1:0),L=1;L<f;L++)w[L-1]=arguments[L];n.emit.apply(n,[y].concat(w))}),this.modules.external.forEach(function(y){y.init&&y.init(n)})}if(this.format=this.options.interpolation.format,o||(o=Ut),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){var p=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);p.length>0&&p[0]!=="dev"&&(this.options.lng=p[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined");var m=["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"];m.forEach(function(y){n[y]=function(){var f;return(f=n.store)[y].apply(f,arguments)}});var g=["addResource","addResources","addResourceBundle","removeResourceBundle"];g.forEach(function(y){n[y]=function(){var f;return(f=n.store)[y].apply(f,arguments),n}});var b=ht(),v=function(){var f=function(L,E){n.isInitialized&&!n.initializedStoreOnce&&n.logger.warn("init: i18next is already initialized. You should call init just once!"),n.isInitialized=!0,n.options.isClone||n.logger.log("initialized",n.options),n.emit("initialized",n.options),b.resolve(E),o(L,E)};if(n.languages&&n.options.compatibilityAPI!=="v1"&&!n.isInitialized)return f(null,n.t.bind(n));n.changeLanguage(n.options.lng,f)};return this.options.resources||!this.options.initImmediate?v():setTimeout(v,0),b}},{key:"loadResources",value:function(n){var i=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ut,s=o,l=typeof n=="string"?n:this.language;if(typeof n=="function"&&(s=n),!this.options.resources||this.options.partialBundledLanguages){if(l&&l.toLowerCase()==="cimode")return s();var c=[],u=function(m){if(m){var g=i.services.languageUtils.toResolveHierarchy(m);g.forEach(function(b){c.indexOf(b)<0&&c.push(b)})}};if(l)u(l);else{var d=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);d.forEach(function(p){return u(p)})}this.options.preload&&this.options.preload.forEach(function(p){return u(p)}),this.services.backendConnector.load(c,this.options.ns,function(p){!p&&!i.resolvedLanguage&&i.language&&i.setResolvedLanguage(i.language),s(p)})}else s(null)}},{key:"reloadResources",value:function(n,i,o){var s=ht();return n||(n=this.languages),i||(i=this.options.ns),o||(o=Ut),this.services.backendConnector.reload(n,i,function(l){s.resolve(),o(l)}),s}},{key:"use",value:function(n){if(!n)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!n.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return n.type==="backend"&&(this.modules.backend=n),(n.type==="logger"||n.log&&n.warn&&n.error)&&(this.modules.logger=n),n.type==="languageDetector"&&(this.modules.languageDetector=n),n.type==="i18nFormat"&&(this.modules.i18nFormat=n),n.type==="postProcessor"&&Qi.addPostProcessor(n),n.type==="formatter"&&(this.modules.formatter=n),n.type==="3rdParty"&&this.modules.external.push(n),this}},{key:"setResolvedLanguage",value:function(n){if(!(!n||!this.languages)&&!(["cimode","dev"].indexOf(n)>-1))for(var i=0;i<this.languages.length;i++){var o=this.languages[i];if(!(["cimode","dev"].indexOf(o)>-1)&&this.store.hasLanguageSomeTranslations(o)){this.resolvedLanguage=o;break}}}},{key:"changeLanguage",value:function(n,i){var o=this;this.isLanguageChangingTo=n;var s=ht();this.emit("languageChanging",n);var l=function(p){o.language=p,o.languages=o.services.languageUtils.toResolveHierarchy(p),o.resolvedLanguage=void 0,o.setResolvedLanguage(p)},c=function(p,m){m?(l(m),o.translator.changeLanguage(m),o.isLanguageChangingTo=void 0,o.emit("languageChanged",m),o.logger.log("languageChanged",m)):o.isLanguageChangingTo=void 0,s.resolve(function(){return o.t.apply(o,arguments)}),i&&i(p,function(){return o.t.apply(o,arguments)})},u=function(p){!n&&!p&&o.services.languageDetector&&(p=[]);var m=typeof p=="string"?p:o.services.languageUtils.getBestMatchFromCodes(p);m&&(o.language||l(m),o.translator.language||o.translator.changeLanguage(m),o.services.languageDetector&&o.services.languageDetector.cacheUserLanguage&&o.services.languageDetector.cacheUserLanguage(m)),o.loadResources(m,function(g){c(g,m)})};return!n&&this.services.languageDetector&&!this.services.languageDetector.async?u(this.services.languageDetector.detect()):!n&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(u):this.services.languageDetector.detect(u):u(n),s}},{key:"getFixedT",value:function(n,i,o){var s=this,l=function c(u,d){var p;if(ve(d)!=="object"){for(var m=arguments.length,g=new Array(m>2?m-2:0),b=2;b<m;b++)g[b-2]=arguments[b];p=s.options.overloadTranslationOptionHandler([u,d].concat(g))}else p=Se({},d);p.lng=p.lng||c.lng,p.lngs=p.lngs||c.lngs,p.ns=p.ns||c.ns,p.keyPrefix=p.keyPrefix||o||c.keyPrefix;var v=s.options.keySeparator||".",y;return p.keyPrefix&&Array.isArray(u)?y=u.map(function(f){return"".concat(p.keyPrefix).concat(v).concat(f)}):y=p.keyPrefix?"".concat(p.keyPrefix).concat(v).concat(u):u,s.t(y,p)};return typeof n=="string"?l.lng=n:l.lngs=n,l.ns=i,l.keyPrefix=o,l}},{key:"t",value:function(){var n;return this.translator&&(n=this.translator).translate.apply(n,arguments)}},{key:"exists",value:function(){var n;return this.translator&&(n=this.translator).exists.apply(n,arguments)}},{key:"setDefaultNamespace",value:function(n){this.options.defaultNS=n}},{key:"hasLoadedNamespace",value:function(n){var i=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;var s=o.lng||this.resolvedLanguage||this.languages[0],l=this.options?this.options.fallbackLng:!1,c=this.languages[this.languages.length-1];if(s.toLowerCase()==="cimode")return!0;var u=function(m,g){var b=i.services.backendConnector.state["".concat(m,"|").concat(g)];return b===-1||b===2};if(o.precheck){var d=o.precheck(this,u);if(d!==void 0)return d}return!!(this.hasResourceBundle(s,n)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||u(s,n)&&(!l||u(c,n)))}},{key:"loadNamespaces",value:function(n,i){var o=this,s=ht();return this.options.ns?(typeof n=="string"&&(n=[n]),n.forEach(function(l){o.options.ns.indexOf(l)<0&&o.options.ns.push(l)}),this.loadResources(function(l){s.resolve(),i&&i(l)}),s):(i&&i(),Promise.resolve())}},{key:"loadLanguages",value:function(n,i){var o=ht();typeof n=="string"&&(n=[n]);var s=this.options.preload||[],l=n.filter(function(c){return s.indexOf(c)<0});return l.length?(this.options.preload=s.concat(l),this.loadResources(function(c){o.resolve(),i&&i(c)}),o):(i&&i(),Promise.resolve())}},{key:"dir",value:function(n){if(n||(n=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!n)return"rtl";var i=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],o=this.services&&this.services.languageUtils||new Va(Za());return i.indexOf(o.getLanguagePartFromCode(n))>-1||n.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}},{key:"cloneInstance",value:function(){var n=this,i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ut,s=Se(Se(Se({},this.options),i),{isClone:!0}),l=new e(s);(i.debug!==void 0||i.prefix!==void 0)&&(l.logger=l.logger.clone(i));var c=["store","services","language"];return c.forEach(function(u){l[u]=n[u]}),l.services=Se({},this.services),l.services.utils={hasLoadedNamespace:l.hasLoadedNamespace.bind(l)},l.translator=new qa(l.services,l.options),l.translator.on("*",function(u){for(var d=arguments.length,p=new Array(d>1?d-1:0),m=1;m<d;m++)p[m-1]=arguments[m];l.emit.apply(l,[u].concat(p))}),l.init(s,o),l.translator.options=l.options,l.translator.backendConnector.services.utils={hasLoadedNamespace:l.hasLoadedNamespace.bind(l)},l}},{key:"toJSON",value:function(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}]),e}(ze);De(an,"createInstance",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},a=arguments.length>1?arguments[1]:void 0;return new an(r,a)});var le=an.createInstance();le.createInstance=an.createInstance;le.createInstance;le.dir;le.init;le.loadResources;le.reloadResources;le.use;le.changeLanguage;le.getFixedT;var Ht=le.t;le.exists;le.setDefaultNamespace;le.hasLoadedNamespace;le.loadNamespaces;le.loadLanguages;const ud="Retour",dd="Fermer",pd="Numéro de téléphone",md="Vider le champ",hd={placeholder:{day:"JJ",month:"MM",year:"AAAA"}},gd={back:ud,close:dd,phoneNumber:pd,clearField:md,date:hd},fd="Fermer",vd="Retour",bd="Gratuit",yd="En savoir plus",_d={seeLess:"Voir moins de suggestions",seeMore:"Voir plus de suggestions"},kd="(nouvelle fenêtre)",wd={requiredField:"Ce champ est obligatoire"},Sd={technical:"L'erreur est humaine, enfin cette fois elle est plutôt technique !",notFound:"",basketChange:"Votre paiement n'a pas pu être effectué. Il semblerait que votre panier ait changé."},Cd="Rafraîchir votre panier",Ed="Revenir à la page d'accueil",Ad="Rafraîchir la page",Pd="Nous vous invitons à rafraîchir la page.",Ld="Si vous le souhaitez, un conseiller client est à votre disposition pour répondre à toutes vos questions au 0969 323 515 (Service gratuit + prix appel), 7j/7 de 8h à 21h",Td="Pays",Md="Allemagne",xd="Autriche",Id="Belgique",Rd="Bulgarie",$d="Chypre",Od="Croatie",Nd="Danemark",zd="Espagne",Dd="Estonie",Bd="Finlande",Fd="France Métropolitaine",jd="Grèce",qd="Guadeloupe",Vd="Guyane Francaise",Ud="Hongrie",Hd="Îles Wallis et Futuna",Gd="Irlande",Kd="Italie",Wd="Lettonie",Yd="Lituanie",Zd="Luxembourg",Jd="Malte",Xd="Martinique",Qd="Mayotte",ep="Monaco",tp="Nouvelle-Calédonie",np="Pays-Bas",rp="Pologne",ap="Polynésie française",ip="Portugal",op="La Réunion",sp="Roumanie",lp="Royaume-Uni",cp="Saint-Barthélemy",up="Saint-Martin",dp="Saint-Pierre-et-Miquelon",pp="Slovaquie",mp="Slovénie",hp="Suède",gp="Suisse",fp="République Tchèque",vp="Islande",bp="Norvège",yp="Lichtenstein",_p={quantity:"Quantité",price:{regular:"Prix habituel",sale:"Prix de vente"},size:"Taille",color:"Couleur",customization:"Produit personnalisé avec le texte :"},kp={cgv:"/help_conditions.aspx",mkpCgv:"/popupvendortermsconditions.aspx",privacyPolicy:"/espace-mentions_legales.aspx",collectsPersonalData:"/collecte-des-donnees-personnelles.aspx",cguLoyaltyProgram:"/cgu-la-redoute-et-moi.aspx",btobSalesConditions:"/generalconditionssaleprofessionals.aspx",privacyCenter:"/privacy_center.aspx",partnersList:"/liste-partenaires.aspx"},wp={close:fd,back:vd,freeValue:bd,learnMore:yd,suggestion:_d,newTab:kd,form:wd,pageErrors:Sd,redirectBasketPage:Cd,redirectMainPage:Ed,refreshPage:Ad,refreshPageHint:Pd,customerServiceHint:Ld,country:Td,country_DE:Md,country_AT:xd,country_BE:Id,country_BG:Rd,country_CY:$d,country_HR:Od,country_DK:Nd,country_ES:zd,country_EE:Dd,country_FI:Bd,country_FR:Fd,country_GR:jd,country_GP:qd,country_GF:Vd,country_HU:Ud,country_WF:Hd,country_IE:Gd,country_IT:Kd,country_LV:Wd,country_LT:Yd,country_LU:Zd,country_MT:Jd,country_MQ:Xd,country_YT:Qd,country_MC:ep,country_NC:tp,country_NL:np,country_PL:rp,country_PF:ap,country_PT:ip,country_RE:op,country_RO:sp,country_UK:lp,country_BL:cp,country_MF:up,country_PM:dp,country_SK:pp,country_SI:mp,country_SE:hp,country_CH:gp,country_CZ:fp,country_IS:vp,country_NO:bp,country_LI:yp,product:_p,links:kp},Sp="Livraison et paiement, La Redoute",Cp={information:"Mon adresse de facturation",order:"Ma commande",payment:"Mon mode de paiement",securedPayment:"Paiement 100% sécurisé"},Ep="Nous ne livrons pas dans votre pays, veuillez fournir une adresse de livraison dans l'un des pays proposés.",Ap="Nous ne livrons pas dans les DOM-TOM, veuillez fournir une adresse de livraison en France métropolitaine.",Pp="Nous ne livrons pas dans les DOM-TOM, veuillez fournir une adresse de livraison en France métropolitaine.",Lp="Nous sommes ravis de vous accueillir parmi nos clients. Pour valider votre première commande La Redoute, merci de compléter les informations de votre compte ci-dessous.",Tp=`Cher client, nous avons maintenant ouvert un site dédié pour les personnes résident sur l’ile de la Réunion. Pour toutes commandes à livrer sur l’ile de la Réunion merci de bien vouloir passer commande sur le site <0>www.laredoute.re</0>, afin de bénéficier de meilleure condition de livraison et d’une offre de produits plus variés.</br>
|
|
304
|
-
Cela étant vous pouvez toujours choisir de vous faire livrer votre commande en France métropolitaine en renseignant dans le formulaire ci-dessous l'adresse de livraison souhaitée.`,Mp="Pour consulter la politique de protection des données de La Redoute, <1>cliquez-ici</1>.",xp="Panier",Ip="Livraison et Paiement",Rp="Adresse",$p="15",Op="9",Np="9",zp="15",Dp="14",Bp="Mes articles sont conservés $t(checkout:storageDuration, {'context': '{{context}}' }) jours dans le point de livraison",Fp="Vous serez informé de la livraison de vos articles par sms et par email. Vos articles sont conservés $t(checkout:storageDuration, {'context': '{{context}}' }) jours dans votre point de livraison. Le chargement des colis dans votre véhicule est à effectuer par vos soins. Veuillez vous munir d’une pièce d’identité et vérifier que votre véhicule est adapté.",jp="Vous serez informé de la livraison de vos articles par sms et par email. Vos articles sont conservés $t(checkout:storageDuration, {'context': '{{context}}' }) jours dans votre point de livraison. Le chargement des colis dans votre véhicule est à effectuer par vos soins. Veuillez vous munir d’une pièce d’identité et vérifier que votre véhicule est adapté.",qp="Détaxe",Vp="Livraison dans les DOM-TOM",Up="Réduction",Hp="Bons d'achats",Gp="dont {{ value }} d'éco-part",Kp="Adresse utilisée pour votre facturation",Wp="Modifier mes informations",Yp="Modifier mon adresse de livraison",Zp="TVA incluse",Jp="Numéro de téléphone",Xp="Mentions légales",Qp="Voir le détail",em="Frais de livraison",tm="Frais de livraison estimés",nm="",rm="Frais de paiement",am="Récapitulatif",im="Total",om="Total article(s)",sm="Modifier mon panier",lm="Veuillez sélectionner un mode de livraison",cm="Votre panier semble contenir un ou plusieurs articles ne pouvant être livré à l'adresse indiquée.<br />Vous pouvez modifier votre panier ou votre adresse avec les boutons ci-dessous",um="Supprimer des articles de mon panier",dm="Me faire livrer à une autre adresse",pm="Me faire livrer en France Métropolitaine",mm={disabledInfo:"Pour accéder à cette rubrique, veuillez remplir les étapes précédentes de la page."},hm={sentBy:"Expédiée par <strong>{{sellerName}}</strong>",soldBy:"Vendu par <strong>{{sellerName}}</strong>",hasHomeDeliveryOnly:"Ce vendeur propose uniquement la livraison à domicile",information:"",information_bulky:"Article(s) volumineux",information_small:"Petit(s) article(s)"},gm={fieldset:"Choisir un mode de livraison",delay:{type:""},date:{range:"Livraison entre le {{from}} et le {{to}}",day:"Livraison prévue le {{date}}",estimated:"Livraison à partir du {{date}}",exact:"Le {{date}}"},type:{name:"",name_8:"À domicile 24h",name_9:"À domicile",name_10:"À domicile",name_12:"À domicile en livraison Express",name_14:"À domicile en livraison Express",name_15:"En point Relais Colis ®",name_17:"À domicile",name_20:"En relais Pickup",name_24:"En point Relais Colis MAX",name_27:"En point Relais Colis DRIVE",name_email:"Par e-mail"},home:{info:"Vous serez informé de la livraison de vos articles par SMS et par email",info_9:"Vous serez informé de la livraison de vos articles par notre transporteur.",info_10:"Dès réception de votre colis à l’agence locale, notre transporteur vous contactera pour convenir d’un rendez-vous",info_12:"Vous serez informé de la livraison de vos articles par notre transporteur.",info_14:"Vous serez informé de la livraison de vos articles par notre transporteur.",shippingFormMessage:"Cette adresse s'appliquera à l'ensemble de vos <strong>livraisons à domicile</strong> et cela peut changer les dates de livraison indiquées précédemment."},pickpoint:{actions:{change:"Modifier mon point de retrait",change_relaisColis:"Modifier mon Relais Colis",change_pickup:"Modifier mon relais Pickup",change_relaisColisXL:"Modifier mon Relais Colis Max",change_relaisColisDrive:"Modifier mon Relais Colis Drive",details:"Localisation et horaires",details_a11y:"Localisation et horaires {{ pickpoint }}",schedule:"Horaires",schedule_a11y:"Horaires {{ pickpoint }}"},details:{address:"<strong>Adresse</strong>",openings:"<strong>Horaires</strong>"},modify:{title:"Choisir un point de retrait",title_relaisColis:"Choisir un Relais Colis",title_relaisColisXL:"Choisir un Relais Colis Max",title_relaisColisDrive:"Choisir un Relais Colis Drive",title_pickup:"Choisir un relais Pickup",inactive:"Momentanément indisponible",inactive_relaisColis:"Momentanément indisponible",inactive_pickup:"Momentanément indisponible",notfound:"<strong>Aucun point de retrait trouvé</strong> <br /> Veuillez saisir une autre adresse",notfound_relaisColis:"<strong>Aucun point relais trouvé</strong> <br /> Veuillez saisir une autre adresse",notfound_pickup:"<strong>Aucun relais Pickup trouvé</strong> <br /> Veuillez saisir une autre adresse",error:"<strong>Aucun point relais n’est disponible dans la zone. </strong> <br /> Veuillez élargir la recherche ou changer d’adresse.",error_relaisColis:"<strong>Une erreur est survenue </strong> <br /> Veuillez renouveler votre recherche de Relais Colis",error_pickup:"<strong>Une erreur est survenue </strong> <br /> Veuillez renouveler votre recherche de relais Pickup",renew:"Renouveler ma recherche",select:"Choisir ce point de retrait",select_relaisColis:"Choisir ce Relais Colis ®",select_pickup:"Choisir ce relais Pickup",form:{label:"Votre adresse"},list:"Liste",map:"Carte",radius:"Rechercher dans un rayon de","aria-label_skipGoogleMap":"Passer directement à la liste des points relais"}},email:{address:"Adresse e-mail de réception",message:"Votre message personnel",noMessage:"Pas de texte renseigné"},fallback:{message:"Le moyen de livraison n'a pas réussi à charger.",retry:"Réessayer"},multiShipping:{title:"Vous serez livrés en plusieurs fois",item:"Livraison n°{{number}} : "},showAll:"Choisir un autre mode de livraison",showAllFlag:"De nouveaux modes de livraison sont disponibles.",showBulkyHomeAvailable:"Livraison gratuite à domicile avec La Redoute +",showPickPointAvailable:"Livraison gratuite en point de retrait",icons_alt:{icon:"",icon_home:"Maison",icon_expressDelivery:"Livraison rapide",icon_relaisColis:"Relais colis",icon_relaisColisXL:"Relais colis XL",icon_relaisColisDrive:"Relais colis drive"}},fm={title:"Numéro de téléphone mobile",banner:"Pour assurer votre livraison nous avons besoin d’un numéro de téléphone mobile.",success:"Votre numéro de téléphone mobile a bien été enregistré.",change:"Modifier mon numéro de téléphone"},vm={fieldset:"Choisir un mode de paiment",disabledSelectionInfo:"Pour accéder à cette rubrique, veuillez remplir les étapes précédentes de la page.",disabledSelectionInfo_contact:"Veuillez choisir un mode de livraison et saisir un numéro de téléphone pour votre commande",type:{label:"",label_rpremium:"Premium / Mastercard La Redoute",label_bankcard:"Carte Bancaire",label_applepay:"Payer avec Apple Pay",label_giftcard:"Cartes Cadeaux",label_paypal:"Payer avec Paypal","label_paypal-stripe":"Payer avec Paypal","aria-label_paypalOneOrManyTimes":"Payer avec Paypal en 1 fois ou 4 fois sans frais",label_paypalOneOrManyTimes:"Payer avec Paypal en 1X ou 4X sans frais",label_paypalManyTimes:"Payer avec Paypal en 4X sans frais","label_payment 3x":"Paiement en 3 ou 4 fois sans frais",label_sofinco:"Cartes autres enseignes",label_kangourou:"Payer avec la carte Kangourou",label_corner:"Paiement en caisse","label_magasin cash":"Paiement en magasin - espèces","label_magasin check":"Paiement en magasin - chèque",label_ead:"Paiement en magasin","label_bank transfer":"Virement immédiat"},payment_bankcard:{submit:"Valider mon paiement et ma commande",legalMentionsLink:"Consulter les mentions légales.",changeBrand:"Cliquer pour sélectionner une autre marque",brandInfo:" Le paiement sera effectué avec la marque $t(checkout:payments.bankcard.brandLabel, {'context': '{{brand}}' }). ",fields:{cardNumber:"Votre carte bancaire",expirationDate:"Date d'expiration",cvv:"Code de vérification (CVV)"},saveAlias:"Enregistrer mon moyen de paiement.",saveAlias_optin:"Et hop ! J’enregistre ma CB pour faciliter mes prochains achats.",saveAlias_optout:"Ne pas enregistrer mon moyen de paiement.",fidelity:"Avec La Redoute +, vous acceptez la conservation de votre moyen de paiement afin de gagner du temps lors de vos achats",loyaltyProgramMentions:"En souscrivant à La Redoute +, vous acceptez que votre moyen de paiement soit conservé de façon sécurisée pour les besoins de gestion de vos abonnements en renouvellement tacite.",brandLabel:"CB",brandLabel_cb:"CB",brandLabel_visa:"Visa",brandLabel_mastercard:"Mastercard",brandLabel_amex:"American Express",errors:{init:"Une erreur est survenue.",required:"Le champ doit être renseigné",confirm:"Une erreur technique est survenue durant la confirmation du paiement"}},payment_stripe:{description:"",description_paypal:"Après avoir cliqué sur 'Effectuer mon paiement avec Paypal', vous serez redirigé vers la page de paiement sécurisé de Paypal.",submit:"Valider mon paiement et ma commande",submit_paypal:"Effectuer mon paiement avec Paypal",record:{intro:"En souscrivant à l’abonnement LA REDOUTE+, vous acceptez que votre moyen de paiement soit conservé(e) de façon sécurisé(e) pour le renouvellement tacite de votre abonnement et faciliter vos achats ultérieurs.",intro_paypal:"En souscrivant à l’abonnement LA REDOUTE+, vous acceptez que votre moyen de paiement soit conservé(e) de façon sécurisé(e) pour le renouvellement tacite de votre abonnement et faciliter vos achats ultérieurs.",label:{optout:"Ne pas enregistrer mon moyen de paiement pour les achats ultérieurs.",optin:"",optin_card:"Et hop ! J’enregistre ma CB pour faciliter mes prochains achats.",optin_paypal:"Mémoriser ce compte Paypal pour un prochain achat"}},errors:{confirm:"Une erreur technique est survenue durant la confirmation du paiement"},icons_alt:{icon:"",icon_bankcard:"Carte bancaire"}},payment_applePay:{info:"Payez en toute simplicité et en toute sécurité avec Apple Pay."},payment_bankcardAlias:{label:"Carte bancaire",label_visa:"Visa",label_mastercard:"Mastercard",label_amex:"American Express","label_american express":"American Express",label_cb:"Carte bancaire",endingWith:"se terminant par",expiresOn:"Expire le",submit:"Valider mon paiement et ma commande",redirectionFormLabel:"Redirection automatique vers la page de paiement"},payment_paypalAlias:{label:"Paypal",label_payment1x4xEnabled:"Payer avec Paypal au comptant via",submit:"Valider mon paiement et ma commande"},payment_cashier:{submit:"Valider mon paiement et ma commande"},payment_check:{submit:"Valider mon paiement et ma commande"},payment_ead:{description:"Merci de sélectionner cette méthode de paiement si le client souhaite payer via une méthode de paiement dédiée à la caisse du magasin",submit:"Valider mon paiement"},payment_giftcard:{info:"Si le montant de votre carte cadeau n'est pas suffisant, vous pourrez compléter votre règlement à l'aide de votre Carte Bancaire. Vous pouvez utiliser jusqu'à 5 cartes de la même marque.",modes:{fieldset:"Choisir une carte cadeau",label:"","label_la redoute":"La Redoute","label_spirit of cadeau":"Spirit of cadeau",label_illicado:"Illicado","label_cado carte":"Cado",label_cadhoc:"Cadhoc"},actions:{choose:"Utiliser ma carte cadeau",choose_disabled:"Choisir une carte cadeau"}},payment_bankTransfer:{description:"Votre commande sera traitée instantanément. Vous serez automatiquement redirigé vers l'espace sécurisé de votre banque pour confirmer le paiement.",descriptionListItem1:"Sélectionnez votre banque",descriptionListItem2:"Connectez-vous avec vos identifiants habituels",descriptionListItem3:"Validez la transaction",descriptionListItem4:"Votre achat est confirmé !",descriptionWarn:"L'utilisation du virement bancaire entraîne un débit immédiat à la commande",labels:{button:"Effectuer mon paiement par virement"}},payment_premium:{label:"Je choisis de régler cette commande :",info:"Un crédit vous engage et doit être remboursé. Vérifiez vos capacités de remboursement avant de vous engager.",modes:{label:"","label_rpremium cash":"Au comptant","label_rpremium 10x":"En 10 fois à partir de 1 € de plus/mois","label_rpremium 10x free":"En 10 fois sans frais à partir de 1 € de plus/mois","label_rpremium mensuality":"En petites mensualités","label_rpremium 3x":"En 3 mois sans frais","label_rpremium report":"Dans 3 mois sans frais"},actions:{choose:"Valider mon paiement et ma commande",choose_disabled:"Valider mon paiement et ma commande"}},payment_paypal:{description:"Après avoir cliqué sur 'Effectuer mon paiement avec Paypal', vous serez redirigé vers la page de paiement sécurisé de Paypal.",fidelity:"Avec La Redoute +, vous acceptez la conservation de votre compte Paypal afin de gagner du temps lors de vos achats",loyaltyProgramMentions:"En souscrivant à La Redoute +, vous acceptez que votre moyen de paiement soit conservé de façon sécurisée pour les besoins de gestion de vos abonnements en renouvellement tacite.",loyaltyProgramWarning:"Le paiement en plusieurs fois Paypal n’est pas compatible avec votre inscription au programme LR+",saveAlias:"Enregistrer mon moyen de paiement.",saveAlias_optin:"Mémoriser ce compte Paypal pour un prochain achat",saveAlias_optout:"Ne pas enregistrer mon moyen de paiement.",labels:{button:"Effectuer mon paiement avec Paypal"},errors:{confirm:"Une erreur technique est survenue durant la confirmation du paiement"}},payment_credit:{description:"En choisissant ce mode de paiement, vous allez être redirigé vers le serveur sécurisé de Sofinco et souscrire au paiement 3 ou 4 fois Carte Bancaire sans frais.<br /><br /> A noter : le prélèvement de la première échéance se fera à la prise de commande.",labels:{link:"Conditions du paiement 3 ou 4 fois sans frais",button:"Effectuer mon paiement 3 ou 4 fois CB sur Sofinco"}},payment_others:{info:"Un crédit vous engage et doit être remboursé. Vérifiez vos capacités de remboursement avant de vous engager.",cardNumber:{label:"Numéro de carte","label_kangourou cash":"Numéro de dossier","label_printemps cash":"Numéro de carte",errors:{required:"","required_kangourou cash":"Le numéro de dossier est obligatoire.","required_printemps cash":"Le n° de cette carte est invalide : merci de vérifier votre saisie.",length:"","length_kangourou cash":"Saisissez votre nouveau numéro de dossier. Si vous ne le possédez pas encore, contactez Sofinco au 09 73 32 33 09 (non surtaxé, tarif selon opérateur).","length_printemps cash":"Le n° de cette carte est invalide : merci de vérifier votre saisie.",refused:"Votre paiement par carte privative a été refusé. Veuillez choisir un autre mode de paiement ou contacter SOFINCO au 0 974 501 401 (service gratuit + prix appel, du lundi au vendredi de 9h à 20h)"}},modes:{fieldset:"Choisir une carte cadeau",label:"","label_kangourou cash":"Kangourou","label_printemps cash":"Printemps"},actions:{disabled:"Renseigner votre numéro de carte","disabled_kangourou cash":"Renseigner votre numéro de dossier","disabled_printemps cash":"Renseigner votre numéro de carte",submit:"Renseigner votre numéro de carte","submit_kangourou cash":"Effectuer mon paiement avec Kangourou","submit_printemps cash":"Effectuer mon paiement avec Printemps"}},payment_kangourou:{info:"Un crédit vous engage et doit être remboursé. Vérifiez vos capacités de remboursement avant de vous engager.",cardNumber:{label:"Numéro de dossier",errors:{required:"Le numéro de dossier est obligatoire.",length:"Saisissez votre nouveau numéro de dossier. Si vous ne le possédez pas encore, contactez Sofinco au 09 73 32 33 09 (non surtaxé, tarif selon opérateur).",refused:"Votre paiement par carte privative a été refusé. Veuillez choisir un autre mode de paiement ou contacter SOFINCO au 0 974 501 401 (service gratuit + prix appel, du lundi au vendredi de 9h à 20h)"}},actions:{disabled:"Renseigner votre numéro de dossier",submit:"Effectuer mon paiement avec Kangourou"}},mentionsLoyaltyRenewal:"En validant, vous acceptez que votre moyen de paiement soit conservé de façon sécurisée pour les besoins de gestion de vos abonnements et renouvellement tacite, et vous reconnaissez avoir pris connaissance des <8>Conditions Générales d'Utilisation de la Redoute +</8>",mentionsLr:"En validant ma commande j'accepte et je reconnais avoir pris connaissance de l'intégralité des <2>Conditions Générales de Vente Laredoute.fr</2>, de la <10>politique de confidentialité</10> et de <13>la collecte des données personnelles</13>.",mentionsLrLoyalty:"En validant ma commande j'accepte et je reconnais avoir pris connaissance de l'intégralité des <2>Conditions Générales de Vente Laredoute.fr</2>, des <8>Conditions Générales d'Utilisation de La Redoute +</8>, de la <10>politique de confidentialité</10> et de <13>la collecte des données personnelles</13>.",mentionsMkp:"En validant ma commande j'accepte et je reconnais avoir pris connaissance de l'intégralité des <4>Conditions spécifiques Marketplace</4>, de la <10>politique de confidentialité</10> et de <13>la collecte des données personnelles</13>.",mentionsMkpLoyalty:"En validant ma commande j'accepte et je reconnais avoir pris connaissance de l'intégralité des <4>Conditions Générales de Vente Marketplace</4>, des <8>Conditions Générales d'Utilisation de La Redoute +</8>, de la <10>politique de confidentialité</10> et de <13>la politique de données personnelles</13>.",mentionsLrMkp:"En validant ma commande j'accepte et je reconnais avoir pris connaissance de l'intégralité des <2>Conditions Générales de Vente Laredoute.fr</2>, des <4>Conditions Générales de Vente Marketplace</4>, de la <10>politique de confidentialité</10> et de <13>la politique de données personnelles</13>.",mentionsLrMkpLoyalty:"En validant ma commande j'accepte et je reconnais avoir pris connaissance de l'intégralité des <2>Conditions Générales de Vente Laredoute.fr</2>, des <4>Conditions Générales de Vente Marketplace</4>, des <8>Conditions Générales d'Utilisation de La Redoute +</8>, de la <10>politique de confidentialité</10> et de <13>la politique de données personnelles</13>.",mentionBtobLr:"En validant ma commande j'accepte et je reconnais avoir pris connaissance de l'intégralité des <2>Conditions Générales de Vente Laredoute.fr</2>, des <6>Conditions Générales de Vente aux professionnels</6> et de la <10>politique de confidentialité</10>.",mentionBtobMkp:"En validant ma commande j'accepte et je reconnais avoir pris connaissance de l'intégralité des <4>Conditions Générales de Vente Marketplace</4> et des <6>Conditions Générales de Vente aux professionnels</6>.",mentionBtobLrMkp:"En validant ma commande j'accepte et je reconnais avoir pris connaissance de l'intégralité des <2>Conditions Générales de Vente Laredoute.fr</2>, des <4>Conditions Générales de Vente Marketplace</4> et des <6>Conditions Générales de Vente aux professionnels</6>.",generalSalesConditions:"Conditions générales de vente",btobSalesConditions:"Conditions Générales de Vente aux professionnels",privacyPolicy:"Politique de confidentialité",collectsPersonalData:"Collecte des données personnelles",cguLoyaltyProgram:"Conditions générales d'utilisation de La Redoute +",cgvPaymentMethod:"",cgvPaymentMethodBtoB:"",fallback:{message:"Le moyen de paiement n'a pas réussi à charger.",retry:"Réessayer"},showAll:"Choisir un autre mode de paiement",showAllFlag:"De nouveaux modes de paiement sont disponibles.",errors:{error:"Une erreur est survenue.",error_COUPON_001:"Coupon invalide.",error_COUPON_002:"Date de validité de l'offre expiré. Supprimez la du panier.",error_ITEM_001:"Nous ne trouvons aucun article avec la référence suivante. Veuillez saisir une nouvelle référence.",error_ITEM_002:"Aucune livraison n'est disponible pour vos articles.",error_ITEM_003:"Article non livrable dans les DOMTOM et à l'international. Vous pourrez changer votre lieu de livraison après la validation du panier.",error_SHOPCART_001:"Article non livrable dans les DOMTOM et à l'international. Vous pourrez changer votre lieu de livraison après la validation du panier.",error_SHOPCART_020:"Le montant maximal d'une commande est atteint. Veuillez modifier votre commande.",error_SHOPCART_022:"Au moins un article a changé de disponibilité.",error_SHOPCART_027:"En raison de la situation actuelle, les articles encombrants de votre panier vendus et expédiés par La Redoute ne peuvent pas être livrés à votre adresse, nous en sommes désolés. Veuillez les mettre de côté ou les supprimer afin de poursuivre vos achats. Les articles de petite taille restent livrables en Colissimo ainsi que les articles livrés par les vendeurs Marketplace.",error_SHOPCART_016:"Une erreur est survenue, veuillez réessayer. Si le problème persiste vous pouvez revenir au panier et retenter de passer votre commande.",error_TECH_3:"Une erreur est survenue, veuillez réessayer plus tard.",error_FRAUD_001:"La commande a été enregistrée avec succès.",error_PAYMENT_044:"Votre paiement par carte bancaire a été refusé. Merci de vous rapprocher de votre banque.",error_PAYMENT_046:"Nous rencontrons un problème technique sur votre carte bancaire. Veuillez réessayer à nouveau ou changer de moyen de paiement.",error_PAYMENT_048:"Votre paiement 3X a été refusé. Merci de choisir un autre moyen de paiement.",error_PAYMENT_049:"Nous rencontrons un problème technique sur le paiement 3X. Veuillez réessayer ultérieurement ou changer de moyen de paiement.",error_PAYMENT_050:"Ajouter un moyen de paiement.",error_PAYMENT_051:"Votre paiement est accepté, merci d'ajouter un nouveau moyen de paiement.",error_PAYMENT_052:"Nous rencontrons un problème technique sur le paiement. Veuillez réessayer ultérieurement ou changer de moyen de paiement.",error_PAYMENT_053:"Votre paiement Rpremium a été refusé. Merci de choisir un autre mode de paiement ou de contacter SOFINCO au 0 974 501 401 (service gratuit + prix appel, du lundi au vendredi de 9h à 20h).",error_PAYMENT_054:"Nous rencontrons un problème technique sur le paiement Rpremium. Veuillez réessayer ultérieurement ou changer de mode de paiement.",error_PAYMENT_055:"Le paiement Paypal n'a pas été validé, merci de choisir un autre mode de paiement.",error_PAYMENT_056:"Nous rencontrons un problème technique sur Paypal. Veuillez réessayer ultérieurement ou changer de mode de paiement.",error_PAYMENT_057:"Votre paiement a été refusé. Veuillez choisir un autre mode de paiement ou contacter une conseillère au 0 969 323 515 (service gratuit + prix appel, 7j sur 7 de 8h à 20h).",error_PAYMENT_058:"Votre paiement par carte privative a été refusé. Veuillez choisir un autre mode de paiement ou contacter SOFINCO au 0 974 501 401 (service gratuit + prix appel, du lundi au vendredi de 9h à 20h).",error_PAYMENT_059:"Nous rencontrons un problème technique sur les cartes privatives. Veuillez réessayer ultérieurement.",error_PAYMENT_061:"Le paiement a échoué. Merci de réessayer ou d'utiliser un autre mode de paiement.",error_PAYMENT_062:"Vous avez annulé votre paiement.",error_PAYMENT_063:"Votre paiement a été refusé. Merci de ressaisir votre carte ou de choisir un autre mode de paiement.",error_PAYMENT_064:"Nous rencontrons un problème technique : Merci de réessayer ultérieurement.",error_PAYMENT_065:"Votre paiement a été annulé.",error_PAYMENT_066:"Cette page de paiement est expirée. Veuillez utiliser votre session en cours ou valider de nouveau votre panier.",error_APPE_030:"Veuillez vérifier votre code postal."},icons_alt:{icon_bankcard:"Carte bancaire",icon_giftCard:"Carte cadeau",icon_cashier:"Espèces",icon_check:"Chèque"}},bm={processing:"Chargement en cours",wait:"Veuillez patienter..."},ym={flag:"",label:"",status:"",flagFirstApplyPreferences:"Des achats toujours plus faciles",labelFirstApplyPreferences:"Votre tunnel d'achat est personnalisé selon vos choix lors de vos précédentes commandes."},_m={banner:{header:"<strong>Économisez {{fees}} €</strong> grâce à La Redoute + avec",header_added:"<strong>Vous avez économisé {{fees}} €</strong> grâce à La Redoute + avec",switch:"<strong>Oui ! J'essaie 30 jours gratuits</strong> puis 19€/an*",switch_added:"<strong>Essai gratuit de 30 jours ajouté ! 🎉</strong>",list:{freeHomeDelivery:"Livraison à domicile offerte (1)",discount:"Retours gratuits"},accept:"Oui ! J'essaie 30 jours gratuits",conditions:"Après l’essai gratuit de 30 jours, La Redoute + coûte 19€/an*. Désabonnez-vous à tout moment.",informations:"Plus d'informations sur La Redoute +"},modal:{header:"Pssst… il est encore temps d’essayer",list:{freeHomeDelivery:"Livraison à domicile offerte(1) et retours gratuits",discountFashion:"Prix exclusifs pour les clients La Redoute +(2)",discountHome:"Des Ventes Privées et des avantages"},accept:"Oui ! J'essaie 30 jours gratuits",skip:"Continuer sans La Redoute +",conditions:"Après l’essai gratuit de 30 jours, La Redoute + coûte 19€/an*. Désabonnez-vous à tout moment.",informations:"Plus d'informations sur La Redoute +"},toggle:{error:"Une erreur survenue",error_add:"Une erreur est survenue pendant la tentative d'ajout de La Redoute + à votre panier.",error_remove:"Une erreur est survenue pendant la tentative de suppression de La Redoute + de votre panier."},payment:{mention:"En souscrivant à l’abonnement LA REDOUTE+, vous acceptez que votre moyen de paiement soit conservé(e) de façon sécurisé(e) pour le renouvellement tacite de votre abonnement et faciliter vos achats ultérieurs.",mention_paypal:"En souscrivant à l’abonnement LA REDOUTE+, vous acceptez que votre moyen de paiement soit conservé(e) de façon sécurisé(e) pour le renouvellement tacite de votre abonnement et faciliter vos achats ultérieurs.",mention_rPremium:"En souscrivant à l’abonnement LA REDOUTE+, vous acceptez que votre moyen de paiement soit conservé(e) de façon sécurisé(e) pour le renouvellement tacite de votre abonnement et faciliter vos achats ultérieurs.",mention_aliases:"En souscrivant à l’abonnement LA REDOUTE+, vous acceptez que votre moyen de paiement soit conservé(e) de façon sécurisé(e) pour le renouvellement tacite de votre abonnement et faciliter vos achats ultérieurs."}},km={header:{name:"Vos bons d'achats",usedAmount:"{{amount}} utilisé pour cette commande",usedAmount_one:"{{amount}} utilisé pour cette commande",usedAmount_other:"{{amount}} utilisés pour cette commande",modify:"Modifier"},details:{info:"Vous pouvez utiliser jusqu'à {{limit}} bons d'achats",validityDate:"Valide jusqu'au <strong>{{date}}</strong>",number:"N° {{number}}",selectVouchers:"Choisissez vos bons d'achat",submit:"Appliquer et compléter ma commande",submit_disabled:"Sélectionnez un ou plusieurs bons d'achats",submit_complete:"Valider mon paiement et ma commande"},residual:"Une fois votre commande validée, un nouveau bon d'achat vous sera créé d'un montant de {{amount}}."},wm={minimalConfirmationDescription:"Merci pour votre commande {{orderId}}. Celle-ci a bien été enregistrée !",minimalConfirmationRefreshHint:"Le détail sera disponible très prochainement dans votre espace client."},Sm={backButton:"Retour à mon abonnement La Redoute +",pageTitle:"Renouvellement du moyen de paiement LR+",welcome:{label:`Cher client, vous pouvez modifier votre emprunte de paiement pour le renouvellement de votre abonnement La Redoute +.
|
|
305
|
-
Vous serez prélevé comme prévu à la date anniversaire de votre abonnement.`,status:"info",flag:""},headings:{payment:"Mon mode de paiement",securedPayment:"Paiement 100% sécurisé"}},Cm={backButton:"",pageTitle:"",welcome:{label:"",status:"",flag:""},headings:{payment:"",securedPayment:""},submit:""},Em={pageTitle:Sp,headings:Cp,noAddresseTitle:Ep,noAddresseTitle_DOM:Ap,noAddresseTitle_TOM:Pp,noAddresseTitle_NOADDRESS:Lp,noAddresseTitle_REUNION:Tp,noAddressLegalText:Mp,cart:xp,deliveryAndPayment:Ip,addressStepper:Rp,storageDuration:$p,storageDuration_relaisColis:Op,storageDuration_relaisColisXL:Np,storageDuration_relaisColisDrive:zp,storageDuration_pickup:Dp,deliveryRetainment:Bp,deliveryRetainment_relaisColisXL:Fp,deliveryRetainment_relaisColisDrive:jp,detax:qp,detaxIframeTitle:Vp,discount:Up,appliedVouchers:Hp,ecopart:Gp,billingAddressInformation:Kp,editMyBillingAddress:Wp,editMyShippingAddress:Yp,includedVAT:Zp,phoneNumber:Jp,legalmentions:Xp,seeDetail:Qp,shippingFees:em,shippingFees_estimated:tm,additionalShippingFees:nm,paymentFees:rm,summary:am,total:im,totalArticles:om,updateBasket:sm,selectADelivery:lm,infoPartialDelivery:cm,deleteArticleInBasket:um,updateDeliveryAddress:dm,updateDeliveryAddress_limited:pm,billingAddress:mm,seller:hm,deliveries:gm,contact:fm,payments:vm,transaction:bm,opinion:ym,loyalty:_m,vouchers:km,confirmation:wm,renewal:Sm,parAccountPayment:Cm},Am="39€",Pm="30",Lm="Sourd ou malentendant ?",Tm="Facil'iti - aide d'accessibilité $t(common:newTab)",Mm={homepage:"Page d’accueil La Redoute"},xm="Sourd line - Espace sourd $t(common:newTab)",Im={item_deadlineToChangeOpinion:{title:"$t(navigation:withdrawalPeriod) jours pour changer d'avis",title_break:"$t(navigation:withdrawalPeriod) jours pour changer d'avis",subtitle:"Bonne nouvelle ! Shoppez et faites-vous plaisir sans crainte sur laredoute.fr, vous avez $t(navigation:withdrawalPeriod) jours pour changer d’avis !",info:{1:"Les retours sont GRATUITS durant $t(navigation:withdrawalPeriod) jours pour les articles vendus et expédiés par La Redoute en point Relais Colis ®",2:"Remboursement sous 14 jours maximum à la réception de votre colis dans nos entrepôts"},link:{aria:"$t(common:learnMore) sur le délai de rétractation",href:"https://aide.laredoute.fr/categories/retours-remboursements"}},item_freeReturn:{title:"Retours gratuits",title_break:"",subtitle:"Les retours sont gratuits pour les articles vendus et expédiés par La Redoute. Vous pouvez faire votre déclaration de retour en ligne !",info:{1:"Déclarez votre retour directement dans votre suivi de commande",2:"Préparez votre colis et déposez-le en point Relais Colis ®",3:"Vous serez remboursé sous 14 jours maximum à la réception de votre colis dans nos entrepôts"},link:{aria:"$t(common:learnMore) sur les retours gratuits",href:"https://aide.laredoute.fr/categories/retours-remboursements"}},item_freeShippingInRelayFrom:{title:"Livraison gratuite en point Relais Colis® dès $t(navigation:startPriceFreeDeliveryRelay)",title_break:"Livraison gratuite dès $t(navigation:startPriceFreeDeliveryRelay) <br /> en point Relais Colis®",subtitle:"Livraison GRATUITE en point Relais Colis® des petits articles dès $t(navigation:startPriceFreeDeliveryRelay) d’achats* !<br> Vous n’avez plus de raison de ne pas craquer !",info:{1:"Livraison entre 1 à 3 jours ouvrés",2:"Pour les articles vendus et expédiés par La Redoute"},link:{aria:"$t(common:learnMore) sur la livraison gratuite en point relais colis",href:"https://aide.laredoute.fr/categories/livraison"}},item_securedPayment:{title:"Paiement 100% sécurisé",title_break:"Paiement<br/> 100% sécurisé",subtitle:"À La Redoute, votre paiement est 100% sécurisé ! Pas d’inquiétude, vos données sont protégées. Le serveur est crypté et les informations véhiculées sont codées.",info:{1:"Transactions protégées contre les interceptions malveillantes",2:"La Redoute n’a pas connaissance des données de votre carte bancaire",3:"Nous ne stockons pas vos données"},link:{aria:"En savoir plus sur le paiement sécurisé",href:"https://aide.laredoute.fr/contents/modalites-de-paiement"}},item_3x4xfromXEuros:{title:"Paiement en 3x ou 4x CB sans frais*",title_break:"Paiement en 3x ou 4x CB sans frais*",subtitle:"Une séance de shopping sans casser votre tirelire ? Choisissez le paiement en trois fois par carte bancaire ! Le 3 fois CB c’est l’option de financement qui s’adapte à vos besoins !",info:{1:"Disponible dès 40€ d'achats",2:"Souscription rapide et gratuite (dans votre panier)",3:"Validation instantanée",4:"Hop ! Vous recevez votre mot de passe de sécurité par SMS"},link:{aria:"$t(common:learnMore) sur comment payer ma commande",href:"https://aide.laredoute.fr/contents/modalites-de-paiement"}},item_certifiedMarketPlace:{title:"Vendeur Marketplace certifié",title_break:"",subtitle:"La Marketplace de La Redoute, c’est la certitude de s’adresser à des vendeurs partenaires de confiance, sélectionnés pour leur service clients et certifiés selon les critères suivants :",info:{1:"La qualité de la livraison (respect des délais, choix du transporteur, emballage)",2:"La Relation Clients (délais de réponse)",3:"Un produit neuf et vendu exclusivement par des partenaires professionnels"},link:{aria:"$t(common:learnMore) sur les commandes Marketplace",href:"https://aide.laredoute.fr/categories/commande-conseils/commande#market1"}},item_returnMarketPlace:{title:"Conditions de retour Marketplace",title_break:"Conditions de retour <br /> Marketplace",subtitle:"À La Redoute, nous travaillons avec des partenaires de confiance. Vous pouvez les joindre directement depuis votre suivi de commande en cliquant sur « contacter le vendeur »",info:{1:"Chaque vendeur a ses propres conditions de retour",2:"Le traitement et le remboursement de votre retour sont soumis au respect des instructions du vendeur"},link:{aria:"$t(common:learnMore) sur les retours de produits Marketplace",href:"https://aide.laredoute.fr/contents/qu-est-ce-que-la-marketplace-la-redoute"}},item_bulkyShipping:{title:"Livraison du volumineux dans la pièce de votre choix",title_break:"Livraison du volumineux <br/>dans la pièce de votre choix",subtitle:"Vous souhaitez commander un article volumineux ? Nos livreurs le déposent directement où vous le souhaitez, même à l’étage !",info:{1:"À la date et l’heure de votre choix (du lundi au samedi entre 7h et 19h)",2:"Prise de rendez-vous la veille par SMS",3:"Créneau de 2 heures"},link:{aria:"$t(common:learnMore) sur la livraison de produits volumineux",href:"https://aide.laredoute.fr/categories/livraison"}},item_returnBulky:{title:"Retours gratuits même sur le volumineux",title_break:"Retours gratuits <br/>même sur le volumineux",subtitle:"Même pour les articles volumineux, les retours sont gratuits ! Il vous suffira d’appeler un conseiller clients qui se chargera d’organiser la récupération de votre lit, matelas, bureau...",info:{1:"Pour les articles vendus et expédiés par La Redoute",2:"Nous récupérons votre colis chez vous, sur rendez-vous",3:"Remboursement sous 14 jours"},link:{aria:"$t(common:learnMore) sur le retour de produits volumineux",href:"https://aide.laredoute.fr/categories/retours-remboursements"}},item_returnBulkySmallArticle:{title:"Retours gratuits",title_break:"",subtitle:"Les retours sont gratuits pendant 30 jours pour les articles vendus et expédiés par La Redoute.",info:{1:"Pour les petits articles (livrables en Relais Colis) vous pouvez directement faire votre demande de retour en ligne, depuis votre suivi de commandes",2:"Pour les articles volumineux, appelez un conseiller client",3:"Notre transporteur se chargera de récupérer votre canapé, lit, bureau … à votre domicile",4:"Le remboursement se fait sous 14 jours à la réception de votre colis dans nos entrepôts"},link:{aria:"$t(common:learnMore) sur le retour de produits",href:"https://aide.laredoute.fr/categories/retours-remboursements"}},item_returnBulkyMarketPlace:{title:"Retours gratuits",title_break:"",subtitle:"Si l’article que vous avez commandé ne vous convient pas, vous pouvez le retourner gratuitement sous 30 jours (60 jours avec la carte R premium !)",info:{1:"Pour tous les articles vendus et expédiés par La Redoute",2:"Vous pouvez déclarer votre retour de petit article en ligne, directement depuis votre suivi de commandes ou appeler un conseiller client pour organiser la reprise de votre lit, bureau, canapé...",3:"Le remboursement se fait sous 14 jours après la réception de votre colis dans nos entrepôts",4:"Attention, pour les articles de la Marketplace, les conditions sont différentes. Vous pouvez contacter votre vendeur pour connaître les modalités de retours de vos articles"},link:{aria:"$t(common:learnMore) sur le retour de produits",href:"https://aide.laredoute.fr/categories/retours-remboursements"}},item_returnMarketPlaceSmallArticle:{title:"Retours gratuits",title_break:"",subtitle:"À La Redoute, vous avez la possibilité de retourner gratuitement vos articles vendus et expédiés par La Redoute sous 30 jours. (60 jours pour ceux qui ont la carte R premium)",info:{1:"Pour les articles vendus et expédiés par La Redoute, le remboursement se fait sous 14 jours",2:"Vous pouvez déclarer votre intention de retour directement depuis votre suivi de commandes",3:"Déposez les articles dans un point Relais Colis ®",4:"Les articles Marketplace ont des conditions de retours et de remboursement spécifiques à chaque vendeur"},link:{aria:"$t(common:learnMore) sur le retour de produits",href:"https://aide.laredoute.fr/categories/retours-remboursements"}}},Rm={information:'Vous êtes identifié en tant que "{{lastName}} {{firstName}}"',disconnect:"Déconnexion"},$m={startPriceFreeDeliveryRelay:Am,withdrawalPeriod:Pm,accessibilityHint:Lm,facilityLinkTitle:Tm,link:Mm,sourdLineLinkTitle:xm,reinsurance:Im,logAsBanner:Rm},Om={fields:{email:{label:"Email",label_signup:"Votre adresse email",hint:"",hint_signup:"Vous avez déjà un compte ? <1>Connectez-vous</1>.",errors:{required:"Merci d'indiquer votre email",length:"Votre email doit faire moins de 65 caractères.",format:"Email incorrect : merci de supprimer les espaces, les caractères spéciaux et les accents."}},password:{label:"Mot de passe",label_signup:"Votre mot de passe",errors:{required:"Merci d'indiquer votre mot de passe",space:"Votre mot de passe ne doit pas contenir d'espace",length:"Ce champ doit comporter au maximum 16 caractères."},visibility:{hide:"Cacher",show:"Montrer"},hint:{length:"Entre 8 et 16 caractères",uppercase:"1 majuscule",lowercase:"1 minuscule",digit:"1 chiffre"}},birthdate:{label:"Votre date de naissance",label_signup:"Votre date de naissance",errors:{invalid:"Veuillez entrer une date valide ex: 01/01/1970",young:"Vous devez avoir l'âge requis pour compléter votre inscription."},hint:"Vous devez avoir {{minimumAge}} ans ou plus pour commander sur laredoute.fr"},enterprise:{groupLabel:"Informations Légales de votre entreprise",contactGroupLabel:"Personne à contacter",addressGroupLabel:"Adresse de votre entreprise",country:{label:"Pays/Région"},corporateName:{label:"Raison sociale",errors:{length:"Ce champ ne peut dépasser 32 caractères",format:"Le champ doit seulement inclure des lettres ou des espaces."}},siret:{label:"Numéro de SIRET",errors:{length:"Ce champ doit comporter 14 chiffres.",format:"Ce champ doit comporter 14 chiffres."}},vat:{label:"Numéro de TVA intracommunautaire",errors:{length:"Ce champ doit comporter au maximum 15 chiffres.",format:"Le numéro de TVA rentré n'est pas valide."}}},address:{title:{label:"Civilité",label_signup:"Votre civilité",placeholder:"Sélectionner une civilité",opts:{mrs:"Madame",miss:"Mademoiselle",mr:"Monsieur",emp:"Entreprise"}},firstname:{label:"Prénom",label_signup:"Votre prénom",errors:{required:"Merci d'indiquer votre prénom",format:"Format incorrect : merci de n'utiliser que des lettres",length:"Merci d'indiquer entre 2 et 32 caractères"}},lastname:{label:"Nom",label_signup:"Votre nom",errors:{required:"Merci d'indiquer votre nom",format:"Format incorrect : merci de n'utiliser que des lettres",length:"Merci d'indiquer entre 2 et 32 caractères"}},street:{label:"Adresse",errors:{required:"Merci d'indiquer votre adresse",length:"Merci d'indiquer au maximum 40 caractères"}},houseNumber:{label:"Appartement, étage, porte… • optionnel",errors:{length:"Merci d'indiquer au maximum 40 caractères"}},streetComplement:{label:"Batiment, résidence, entrée… • optionnel",errors:{length:"Merci d'indiquer au maximum 40 caractères"}},hamlet:{label:"Lieu dit, boite postale... • optionnel",errors:{length:"Merci d'indiquer au maximum 40 caractères"}},province:{label:"",errors:{length:""}},zipCode:{label:"Code postal",errors:{required:"Merci d'indiquer un code postal valide",format:"Format incorrect: merci de ressaisir un code postal",length:"Format incorrect: merci de saisir un code postal à 5 chiffres"}},zipCodeComplement:{label:"",errors:{required:"",format:"",length:""}},city:{label:"Ville",errors:{required:"Merci d'indiquer votre ville",format:"Format incorrect : merci de n'utiliser que des lettres",length:"Merci d'indiquer au maximum 32 caractères"},placeholder:"Sélectionner une ville..."},country:{label:"Pays"},phoneNumber:{label:"Téléphone",label_mobile:"Téléphone mobile",errors:{required:"Pour faciliter vos livraisons: merci de saisir votre n° de téléphone mobile",format:{fixe:"Veuillez saisir un numéro de téléphone valide",mobile:"Veuillez saisir un numéro de téléphone mobile valide",mobile_FR:"Format incorrect: merci de saisir 10 chiffres, sans espace, commençant par 06 ou 07"}},hint:"Au cas où nous devrions vous contacter au sujet de votre commande","hint_phone-only":"Non utilisé pour la prospection commerciale"},phonePrefix:{label:"",errors:{required:""}}},options:{updateShipping:{label:"Utiliser également comme adresse de livraison"}},subscriptions:{label:"Découvrez des idées inspirantes, profitez de jolies promotions et d'offres exclusives.",collapse:{label:"Gérer mes autres préférences",description:"Nous utilisons également votre adresse postale pour vous adresser des publicités sur nos produits ou des offres partenaires."},yes:"Oui",no:"Non",options:{type:"",type_LRFR_EMAIL_LR:"Recevez les nouveautés et offres exclusives La Redoute par Email",type_LRFR_SMS_LR:"Recevez les bons plans de La Redoute par SMS",type_LRFR_EMAIL_PART:"Recevez les bons plans des partenaires de Redoute par email",type_LRFR_POSTAL_LR:"Je ne souhaite pas recevoir d’offres commerciales par courrier de la part de La Redoute",type_LRFR_POSTAL_PART:"Je ne souhaite pas recevoir d’offres commerciales par courrier des partenaires de La Redoute",type_SVC9:"Recevez les nouveautés et offres exclusives La Redoute par Email",type_SVC23:"Recevez les bons plans de La Redoute par SMS",type_SVC100:"Recevez les bons plans des partenaires de Redoute par email",type_SVC109:"Je ne souhaite pas recevoir d’offres commerciales par courrier de la part de La Redoute",type_SVC110:"Je ne souhaite pas recevoir d’offres commerciales par courrier des partenaires de La Redoute"},hint:{type:"",type_SVC9:"20€ offerts pour toute première inscription à la newsletter. <small>(1)</small>",type_LRFR_EMAIL_LR:"20€ offerts pour toute première inscription à la newsletter. <small>(1)</small>"}}},title:"Modifier","title_billing-address":"Modifier mon adresse de facturation","title_shipping-address":"Modifier mon adresse de livraison","title_phone-only":"Numéro de téléphone mobile",submit:"Valider","submit_billing-address":"Valider mon adresse de facturation","submit_shipping-address":"Confirmer mon adresse de livraison","submit_phone-only":"Valider",submit_signup:"Terminer",globalError:"Une erreur est survenue.","globalError_phone-only":"Une erreur est survenue. Vérifiez qu'il s'agit bien de votre numéro de téléphone mobile.",back:"Précédent"},Nm={suggestions:{title:"Suggestions d'adresse",info:"Pour réaliser votre livraison nous avons besoin de vérifier votre adresse.",hint:"Vous pouvez conserver l’adresse saisie, la modifier ou choisir l’une des adresses suggérées",form:{fields:{streetNumber:{label:"Numéro de voie",info:"Merci d’indiquer votre numéro de voie"},addressControlChoice:{label:"Addresse(s) suggérée(s)",label_one:"Adresse suggérée",label_other:"Adresses suggérées",label_reenter_one:"Adresse suggérée à compléter",label_reenter_other:"Adresses suggérées à compléter"},editPreviousAddress:{label:"Modifier mon adresse"},keepPreviousAddress:{label:"Conserver cette adresse"}},submit:"",submit_enabled:"Confirmer mon choix",submit_disabled:"Choisir une suggestion"}}},zm={form:Om,address:Nm},Dm={pageTitle:"La Redoute, Mode française | La Redoute",title:"Ravi de vous rencontrer !",information:"La Redoute collecte des données à caractère personnel pour la création des comptes client, le traitement des commandes, l'envoi de publicités personnalisées ou non de La Redoute ou de tiers selon vos choix (par email, sms, notification ou sur des sites internet et réseaux sociaux), la lutte contre la fraude lors du paiement, assurer le service client, mesurer la qualité des services, et sécuriser le site. Les données mentionnées d'un * sont obligatoires. Vous disposez d'un droit d'accès, de rectification, de portabilité et d'effacement des données vous concernant. Vous pouvez également demander la limitation du traitement ou vous opposer à leur traitement. Ces droits peuvent être exercés en <1>cliquant ici</1>. Pour plus d'information, vous pouvez consultez notre politique de confidentialité en <2>cliquant ici</2>. Pour connaître la liste de nos partenaires commerciaux, <3>cliquez-ici</3>.",showPassword:"Afficher le mot de passe",hidePassword:"Masquer le mot de passe"},Bm={pageTitle:"Signaler un contenu illicite",form:{fields:{civility:{label:"Vous nous contactez en tant que",placeholder:"Veuillez sélectionner une civilité",errors:{required:"Merci de sélectionner une civilité"}},lastName:{label:"Nom du représentant légal",errors:{required:"Merci d'indiquer votre nom",length:"Format incorrect.",format:"Format incorrect"}},firstName:{label:"Prénom du représentant légal",errors:{required:"Merci d'indiquer votre prénom",length:"Format incorrect.",format:"Format incorrect"}},email:{label:"Votre adresse email",errors:{required:"Merci d'indiquer votre email",length:"Format incorrect.",format:"Format incorrect"}},description:{label:"Description du signalement",placeholder:"Veuillez sélectionner une description",errors:{required:"Merci de sélectionner une description"}},message:{label:"Information complémentaires (optionnel)",hint:"1000 caractères maximum",errors:{length:"Merci de saisir maximum 1000 caractères."}},validation:{label:"Je déclare que ma notification est envoyée de bonne foi et que les éléments transmis sont exacts et valides.",errors:{required:"Merci de valider votre déclaration."}},url:{label:"Lien URL du contenu à signaler",errors:{required:"Merci d'indiquer l'url du contenu à signaler.",length:"Merci de renseigner un url de maximum 200 caractères."}},attachment:{label:"Pièce jointe (facultatif)"}},globalError:"Une erreur est survenue.",submit:"Envoyer",title:"Signaler un contenu illicite",legalText:"Les données sont collectées par La Redoute en tant que responsable de traitement dans le cadre des notifications présumées d’infraction et de gestion de la qualité des produits sur la base légale de l’article 16 du Règlement (UE) Digital Services Act. Les données sont à destination de la Relation Clients et sont conservées 36 mois Vous pouvez accéder aux données vous concernant, les rectifier, demander leur effacement ou exercer votre droit à la limitation du traitement de vos données. Pour exercer ces droits ou pour toute question sur le traitement de vos données dans ce dispositif, vous pouvez contacter le délégué à la protection des données <1>dpo@redoute.fr</1>",legalContact:"mailto:dpo@redoute.fr"},confirmationPage:{title:"Merci ! <br/> Nous avons bien pris en compte votre signalement",description:"Nous l'étudierons et reviendrons vers vous prochainement.",cta:"Accueil"}},Fm={signup:Dm,illegalContentReport:Bm},jm="👋 Bienvenue ! Je suis R’, votre conseiller virtuel La Redoute, je suis là pour vous aider ! Je débute, soyez indulgent ;) Sélectionnez une question récurrente/un sujet ou posez-moi votre question.",qm="Entrez votre question",Vm="Chatbot La Redoute",Um="Bonjour, afin de vous offrir la meilleure aide possible, nous utilisons l'intelligence artificielle. Ne partagez pas de données personnelles ou sensibles telles que vos données de paiement, pour en savoir plus, consultez <a href='https://www.laredoute.fr/'>notre politique de confidentialité</a>.",Hm={introMessage:jm,inputPlaceholder:qm,title:Vm,legalInformation:Um},Qa={chatbot:Hm,checkout:Em,common:wp,customer:Fm,navigation:$m,ui:gd,user:zm},Gm="Voltar",Km="Fechar",Wm="Número de telemóvel",Ym="Campeão vazio",Zm={placeholder:{day:"JJ",month:"MM",year:"AAAA"}},Jm={back:Gm,close:Km,phoneNumber:Wm,clearField:Ym,date:Zm},Xm="Fechar",Qm="",eh="Grátis",th="Saber mais",nh={seeLess:"Ver menos sugestões",seeMore:"Ver mais sugestões"},rh="(nova janela)",ah={requiredField:"Este campo é obrigatório"},ih={technical:"Errar é humano, mas desta vez é bastante técnico! Tente novamente dentro de alguns instantes",notFound:"Ops, nada de interessante aqui!",basketChange:"O seu pagamento falhou porque o seu carrinho foi alterado."},oh="Atualize o seu carrinho",sh="Voltar à página inicial",lh="Recarregue a página",ch="Atualize a página.",uh="O nosso Serviço de Apoio ao Cliente La Redoute está à sua disposição: - Ligue 244 810 000 (custo de chamada para rede fixa nacional) ou 707 20 10 10 (0.11€/min para chamadas efetuadas a partir de rede fixa, e 0.16€/min para chamadas efetuadas a partir de rede móvel), de 2a a 6a das 9h às 18h (horários sujeitos a alteração) as nossas assistentes dar-lhe-ão todos os esclarecimentos de que necessite. - Ou se preferir, envie-nos um e-mail, basta clicar em «Contacte-nos por e-mail» ou enviar um e-mail diretamente para apoiocliente@redoute.pt",dh="País",ph="Alemanha",mh="Áustria",hh="Bélgica",gh="Bulgária",fh="Suíça",vh="Chipre",bh="República Checa",yh="Croácia",_h="Dinamarca",kh="Espanha",wh="Estónia",Sh="Finlândia",Ch="França",Eh="Grécia",Ah="Hungria",Ph="Irlanda",Lh="Islândia",Th="Itália",Mh="Liechsteinstein",xh="Letónia",Ih="Lituânia",Rh="Luxemburgo",$h="Malta",Oh="Noruega",Nh="Holanda",zh="Polónia",Dh="Portugal",Bh="Roménia",Fh="Reino Unido",jh="Eslováquia",qh="Eslovénia",Vh="Suécia",Uh={quantity:"Montante",price:{regular:"Preço",sale:"Preço após desconto"},size:"Tamanho",color:"Cor",customization:"Produto personalizado com o texto:"},Hh={cgv:"/sellconditions.aspx",mkpCgv:"",privacyPolicy:"/politica-de-privacidade.aspx",collectsPersonalData:"/politica-de-privacidade.aspx",cguLoyaltyProgram:"",btobSalesConditions:"/b2b/sellconditions.aspx",privacyCenter:"/privacy_center.aspx",partnersList:""},Gh={close:Xm,back:Qm,freeValue:eh,learnMore:th,suggestion:nh,newTab:rh,form:ah,pageErrors:ih,redirectBasketPage:oh,redirectMainPage:sh,refreshPage:lh,refreshPageHint:ch,customerServiceHint:uh,country:dh,country_DE:ph,country_AT:mh,country_BE:hh,country_BG:gh,country_CH:fh,country_CY:vh,country_CZ:bh,country_HR:yh,country_DK:_h,country_ES:kh,country_EE:wh,country_FI:Sh,country_FR:Ch,country_GR:Eh,country_HU:Ah,country_IE:Ph,country_IS:Lh,country_IT:Th,country_LI:Mh,country_LV:xh,country_LT:Ih,country_LU:Rh,country_MT:$h,country_NO:Oh,country_NL:Nh,country_PL:zh,country_PT:Dh,country_RO:Bh,country_UK:Fh,country_SK:jh,country_SI:qh,country_SE:Vh,product:Uh,links:Hh},Kh="Entrega e pagamento, La Redoute",Wh={information:"A minha morada de faturação",order:"Escolha um modo de entrega",payment:"Escolha um modo de pagamento",securedPayment:"Pagamento 100% seguro"},Yh="Não enviamos para o seu país, forneça uma morada de entrega em um dos países oferecidos.",Zh="",Jh="Carrinho",Xh="Entrega e Pagamento",Qh="Endereço",eg="7",tg="7",ng='Os seus artigos estarão disponíveis para levantamento por um período de $t(checkout:storageDuration, {"context": "{{context}}" }) dias no Ponto Pickup',rg="",ag="",ig="Desconto",og="",sg="",lg="Morada de faturação",cg="Editar a minha morada",ug="Escolher outra morada de entrega",dg="iva incluído",pg="Número de telemóvel",mg="Menções legais",hg="Ver detalhes",gg="Envio",fg="Custos de envio",vg="",bg="Taxas de pagamento",yg="Detalhes da encomenda",_g="Total",kg="Total (sem desconto)",wg="Modificar o meu carrinho",Sg="Selecione um modo de envio",Cg="O seu carrinho parece conter um ou mais itens que não podem ser entregues na morada indicada.<br />Pode alterar o seu carrinho ou a sua morada nos botões abaixo",Eg="Remover itens do meu carrinho",Ag="Enviar para outra morada",Pg="Enviar para Portugal",Lg={disabledInfo:"Para acessar esta seção, execute as etapas anteriores na página."},Tg={sentBy:"Artigos da sua encomenda",soldBy:"Vendido por <strong>{{sellerName}}</strong>",hasHomeDeliveryOnly:"Este vendedor oferece apenas entregas ao domicílio",information:"",information_bulky:"Artigos volumosos",information_small:"Artigos normais"},Mg={fieldset:"Escolha um modo de entrega",delay:{type:""},date:{range:"Disponível para envio entre os dias {{from}} e {{to}}",day:"Entrega prevista no dia {{date}}",estimated:"Entrega de {{date}}",exact:"a {{date}}"},type:{name:"",name_03:"Entrega em Ponto Pickup",name_05:"Entrega em casa",name_10:"Entrega Plus"},home:{info:"",info_A:"A sua encomenda contém artigos de entrega Plus. Poderá receber a sua encomenda em diferentes envios.",info_B:"A sua encomenda contém artigos de Entrega Plus. A entrega destes artigos é realizada comodamente e sem esforço dentro da sua casa.",info_C:"A sua encomenda contém artigos enviados diretamente pelo nosso parceiro. Poderá receber a sua encomenda em diferentes envios.",info_D:"A entrega dos seus artigos é realizada comodamente e sem esforço dentro da sua casa.",shippingFormMessage:"Esta morada será aplicada a todos as suas <strong>entregas ao domicílio</strong> e isso pode alterar as datas de entrega indicadas anteriormente."},pickpoint:{actions:{change:"Alterar o meu ponto de entrega",change_pickup:"Escolher outro Ponto PICKUP",details:"Localização e horários",details_a11y:"Localização e horários {{ pickpoint }}",schedule:"Horários",schedule_a11y:"Horários {{ pickpoint }}"},details:{address:"<strong>Morada</strong>",openings:"<strong>Cronograma</strong>"},modify:{title:"Clique para escolher um Ponto Pickup",title_pickup:"Selecionar Ponto Pickup",inactive:"Este ponto de entrega está temporariamente indisponível",inactive_pickup:"Este ponto PICKUP está temporariamente indisponível",notfound:"<strong>Nenhum ponto de entrega encontrado</strong> <br /> Insira outra morada",notfound_pickup:"<strong>Nenhum ponto PICKUP encontrado</strong> <br /> Insira outra morada",error:"<strong>ocorreu um erro </strong> <br /> Por favor, atualize a sua pesquisa de ponto de entrega",error_pickup:"<strong>ocorreu um erro </strong> <br /> Por favor, atualize a sua pesquisa do ponto PICKUP",renew:"Atualize a pesquisa",select:"Escolha este ponto de entrega",select_pickup:"Escolher este Ponto Pickup",form:{label:"Pesquise por localidade ou cód. postal"},list:"Lista",map:"Mapa",radius:"Tamanho do raio da pesquisa","aria-label_skipGoogleMap":""}},email:{address:"",message:"",noMessage:""},fallback:{message:"Falha ao carregar",retry:"Tente novamente"},multiShipping:{title:"",item:""},showAll:"Escolha outro modo de entrega",showAllFlag:"Estão disponíveis novos modos de entrega",showBulkyHomeAvailable:"Entrega grátis em casa com a La Redoute",showPickPointAvailable:"Entrega grátis no ponto PICKUP",icons_alt:{icon:"",icon_home:"Lar",icon_homePlus:"Lar plus"}},xg={title:"Número de telemóvel",banner:"Para garantir a sua entrega, precisamos de um número de telemóvel.",success:"O seu número de telemóvel foi registado com sucesso.",change:"Alterar meu número de telemóvel"},Ig={fieldset:"Escolha um modo de pagamento",disabledSelectionInfo:"Para acessar esta seção, execute as etapas anteriores na página.",disabledSelectionInfo_contact:"Escolha um modo de entrega e insira um número de telemóvel para a sua encomenda",type:{label:"",label_bankcard:"Cartão de crédito",label_paypal:"PayPal","label_paypal-stripe":"PayPal","aria-label_paypalOneOrManyTimes":"Paypal",label_paypalOneOrManyTimes:"Paypal",label_paypalManyTimes:"PayPal",label_mbway:"MB WAY",label_multibanco:"Multibanco",label_cartao:"Cartão La Redoute+",label_klarna:"Pague em 3 vezes com a Klarna"},payment_bankcard:{submit:"Confirmar pagamento",legalMentionsLink:"Consulte as condições gerais",changeBrand:"Selecionar outra opção",brandInfo:' O pagamento será feito com a opção $t(checkout:payments.bankcard.brandLabel, {"context": "{{brand}}" }). ',fields:{cardNumber:"Número do cartão",expirationDate:"Data de validade",cvv:"CVV"},saveAlias:"",saveAlias_optin:"Guarde estes dados para futuras compras na La Redoute.",saveAlias_optout:"",fidelity:"",loyaltyProgramMentions:"Ao subscrever a La Redoute, aceita que os seus meios de pagamento sejam guardados de forma segura e que serão usados para efeitos de gestão das suas subscrições de renovação tácita.",brandLabel:"CB",brandLabel_cb:"CB",brandLabel_visa:"Visa",brandLabel_mastercard:"MasterCard",brandLabel_amex:"American Express",errors:{init:"Ocorreu um erro.",required:"Este campo é obrigatório.",confirm:"Ocorreu um erro técnico durante a confirmação do pagamento."}},payment_stripe:{description:"",description_paypal:"Será reencaminhado(a) em segurança para a página da sua conta PayPal para confirmar o pagamento.",description_klarna:"Divida as suas compras em até 3 pagamentos sem juros com a Klarna.",submit:"Confirmar pagamento",submit_paypal:"Confirmar",submit_klarna:"Confirmar",record:{intro:"",intro_paypal:"",label:{optout:"",optin:"",optin_card:"Guarde estes dados para compras futuras.",optin_paypal:"Guarde os dados desta conta PayPal para compras futuras"}},errors:{confirm:"Ocorreu um erro técnico durante a confirmação do pagamento."},icons_alt:{icon:"",icon_bankcard:"Cartão Bancário"}},payment_bankcardAlias:{label:"Cartão Bancário",label_visa:"Visa",label_mastercard:"MasterCard",label_amex:"American Express","label_american express":"American Express",label_cb:"Cartão Bancário",endingWith:"terminação em",expiresOn:"Expira em",submit:"Confirmar pagamento",redirectionFormLabel:"Redirecionamento automático para a página de pagamento"},payment_cartao:{label:"Eu escolho definir este pagamento:",modes:{label:"",label_38:"Conta permanente",label_18:"Cartão La Redoute - 3 x sem juros",label_58:"Cartão La Redoute - 6 x sem juros",label_68:"Cartão La Redoute - 10 x sem juros",label_28:"Crédito gratuito até 50 dias"},actions:{choose:"Confirmar pagamento",choose_disabled:"Validar o meu pagamento e o meu pedido"}},payment_mbway:{description:"Garanta sempre que o valor da encomenda não ultrapassa o limite de compras diário definido na aplicação.",actions:{disabled:"Introduza o nº telemóvel associado à sua conta MB WAY",submit:"Confirmar pagamento"},phoneNumber:{label:"Nº telemóvel associado ao MB WAY",errors:{required:"Indique um número telemóvel",refused:"Por favor insira um número de telemóvel válido"}}},payment_multibanco:{description:"Ao optar pelo multibanco, receberá um SMS e/ou e-mail após terminar a sua encomenda com os dados para proceder ao pagamento.",labels:{button:"Confirmar pagamento"}},mentionsLoyaltyRenewal:"",mentionsLr:"Ao validar a minha encomenda, aceito e declaro ter lido a <10>política de privacidade</10> e <13>a recolha de dados pessoais</13>.",mentionsLrLoyalty:"",mentionsMkp:"",mentionsMkpLoyalty:"",mentionsLrMkp:"",mentionsLrMkpLoyalty:"",mentionBtobLr:"",mentionBtobMkp:"",mentionBtobLrMkp:"",generalSalesConditions:"Condições gerais de venda",btobSalesConditions:"",privacyPolicy:"Política de Privacidade",collectsPersonalData:"Recolha de dados pessoais",cguLoyaltyProgram:"Condições gerais de utilização La Redoute",cgvPaymentMethod:"Li e aceito as <1>condições gerais de venda</1>",cgvPaymentMethodBtoB:"Li e aceito as <1>Termos e condições clientes profissionais</1>",fallback:{message:"Falha ao carregar a forma de pagamento.",retry:"Tente novamente"},showAll:"Ver mais modos de pagamento",showAllFlag:"Novos métodos de pagamento estão disponíveis.",errors:{error:"Ocorreu um erro de pagamento.",error_RH00045C_600:"A sua encomenda foi anulada pois recentemente efetuou outra encomenda semelhante. Se não for o caso, tente novamente mais tarde",error_RB00072C_037:"Número de telefone inválido ou não associado a uma conta mbway válida.",error_RB00072C_014:"O seu crédito é insuficiente. Queira contactar os nossos serviços.",error_GENERIC_DECLINE:"Ocorreu um erro de pagamento",error_EXPIRED_CARD:"o seu cartão de pagamento expirou",error_INSUFFICIENT_FUNDS:"O saldo do seu cartão é insuficiente.",error_PAYMENT_INTENT_AUTHENTICATION_FAILURE:"Pagamento rejeitado. Tente novamente ou entre em contato com o atendimento ao cliente.",error_PAYMENT_METHOD_CUSTOMER_DECLINE:"Pagamento rejeitado. Tente novamente ou entre em contato com o atendimento ao cliente."},icons_alt:{icon_bankcard:"Cartão Bancário"}},Rg={processing:"A carregar",wait:"Por favor, aguarde..."},$g={flag:"",label:"",status:"",flagFirstApplyPreferences:"Finalizar a sua encomenda é muito fácil!",labelFirstApplyPreferences:"O seu processo de compra foi personalizado de acordo com as suas encomendas anteriores"},Og={banner:{header:"",header_added:"",switch:"",switch_added:"",list:{freeHomeDelivery:"",discount:""},accept:"",conditions:"",informations:""},modal:{header:"",list:{freeHomeDelivery:"",discountFashion:"",discountHome:""},accept:"",skip:"",conditions:"",informations:""},toggle:{error:"",error_add:"",error_remove:""},payment:{mention:"",mention_paypal:"",mention_rPremium:"",mention_aliases:""}},Ng={header:{name:"",usedAmount:"",usedAmount_one:"",usedAmount_other:"",modify:""},details:{info:"",validityDate:"",number:"",selectVouchers:"",submit:"",submit_disabled:"",submit_complete:""},residual:""},zg={minimalConfirmationDescription:"Obrigado pela sua encomenda {{orderId}}. Está registada!",minimalConfirmationRefreshHint:"Os detalhes estarão disponíveis na sua área de cliente nos próximos minutos."},Dg={backButton:"",pageTitle:"",welcome:{label:"",status:"",flag:""},headings:{payment:"",securedPayment:""}},Bg={backButton:"",pageTitle:"",welcome:{label:"",status:"",flag:""},headings:{payment:"",securedPayment:""},submit:""},Fg={pageTitle:Kh,headings:Wh,noAddresseTitle:Yh,noAddressLegalText:Zh,cart:Jh,deliveryAndPayment:Xh,addressStepper:Qh,storageDuration:eg,storageDuration_pickup:tg,deliveryRetainment:ng,detax:rg,detaxIframeTitle:ag,discount:ig,appliedVouchers:og,ecopart:sg,billingAddressInformation:lg,editMyBillingAddress:cg,editMyShippingAddress:ug,includedVAT:dg,phoneNumber:pg,legalmentions:mg,seeDetail:hg,shippingFees:gg,shippingFees_estimated:fg,additionalShippingFees:vg,paymentFees:bg,summary:yg,total:_g,totalArticles:kg,updateBasket:wg,selectADelivery:Sg,infoPartialDelivery:Cg,deleteArticleInBasket:Eg,updateDeliveryAddress:Ag,updateDeliveryAddress_limited:Pg,billingAddress:Lg,seller:Tg,deliveries:Mg,contact:xg,payments:Ig,transaction:Rg,opinion:$g,loyalty:Og,vouchers:Ng,confirmation:zg,renewal:Dg,parAccountPayment:Bg},jg="50€",qg="30",Vg="",Ug="",Hg={homepage:"Página Inicial da La Redoute"},Gg="",Kg={item_deadlineToChangeOpinion:{title:"Tem $t(navigation:withdrawalPeriod) dias para trocar ou devolver",title_break:"Tem $t(navigation:withdrawalPeriod) dias para trocar ou devolver<br/>",subtitle:"Boas notícias! Tem $t(navigation:withdrawalPeriod) dias para mudar de ideias! 60 dias nas encomendas APP",info:{1:"São grátis para todos os artigos de moda e têxtil-lar",2:"Artigos de entrega exclusiva ao domicílio tem condições especiais"},link:{aria:"$t(common:learnMore) sobre trocas e devoluções",href:"/services/returns.aspx"}},item_freeReturn:{title:"Trocas & devoluções",title_break:"Trocas & devoluções",subtitle:"Tem 30 dias para devolver ou trocar aos seus artigos",info:{1:"Para artigos elegíveis para entrega nos pontos pickup pode devolver gratuitamente através dos mesmos pontos",2:"Para artigos de entrega exclusiva ao domicílio terá pode utilizar o transportador que desejar",3:"No verso da sua fatura terá todos os passos necessários caso precise de devolver o produto",4:"Aplicam-se termos e condições especiais para alguns artigos"},link:{aria:"$t(common:learnMore) sobre as trocas e devoluções",href:"/services/returns.aspx"}},item_freeShippingInRelayFrom:{title:"Envio Grátis a partir de $t(navigation:startPriceFreeDeliveryRelay)",title_break:"Envio grátis*",subtitle:"Entrega rápida e segura:",info:{1:"A entrega em casa ou no ponto PICKUP é GRÁTIS a partir de 50€",2:"A Entrega Plus é GRÁTIS a partir de 499€"},link:{aria:"$t(common:learnMore) sobre os modos de envio",href:"/services/delivery.aspx"}},item_securedPayment:{title:"Pagamento seguro",title_break:"Pagamento<br/> seguro",subtitle:"Pague a sua encomenda de forma rápida e segura",info:{1:"Todos os nossos modos de pagamento usam métodos avançados de segurança",2:"Protegemos a sua privacidade",3:"Não guardamos os seus dados"},link:{aria:"$t(common:learnMore) sobre os modos de pagamento",href:"/services/payment.aspx"}}},Wg={information:"",disconnect:""},Yg={startPriceFreeDeliveryRelay:jg,withdrawalPeriod:qg,accessibilityHint:Vg,facilityLinkTitle:Ug,link:Hg,sourdLineLinkTitle:Gg,reinsurance:Kg,logAsBanner:Wg},Zg={fields:{email:{label:"",label_signup:"",hint:"Vous avez déjà un compte ? <1>Connectez-vous</1>",errors:{required:"",length:"",format:""}},password:{label:"",label_signup:"",errors:{required:"",space:"",length:""},visibility:{hide:"",show:""},hint:{length:"",uppercase:"",lowercase:"",digit:""}},birthdate:{label:"",label_signup:"",errors:{invalid:"",young:""},hint:""},enterprise:{groupLabel:"",contactGroupLabel:"",addressGroupLabel:"",country:{label:""},corporateName:{label:"",errors:{length:"",format:""}},siret:{label:"",errors:{length:"",format:""}},vat:{label:"",errors:{length:"",format:""}}},address:{title:{label:"Género",placeholder:"Selecione um Género",opts:{mrs:"Feminino",miss:"",emp:"Empresa",mr:"Masculino"}},firstname:{label:"Nome",errors:{required:"Por favor, insira o seu primeiro nome",format:"Formato incorreto: use apenas letras",length:"Insira entre 2 a 32 caracteres"}},lastname:{label:"Apelido",errors:{required:"Por favor, insira o seu apelido",format:"Formato incorreto: use apenas letras",length:"Insira entre 2 a 32 caracteres"}},street:{label:"Morada",errors:{required:"Por favor, insira sua morada",length:"Insira no máximo 40 caracteres"}},houseNumber:{label:"Número • opcional",errors:{length:"Insira no máximo 40 caracteres"}},streetComplement:{label:"Andar, Porta • opcional",errors:{length:"Insira no máximo 40 caracteres"}},hamlet:{label:"Localidade • opcional",errors:{length:"Insira no máximo 40 caracteres"}},province:{label:"",errors:{length:""}},zipCode:{label:"Código postal",errors:{required:"Insira um código postal válido",format:"Formato incorreto: indique um código postal de 4 + 3 dígitos",length:"Por favor indique um código postal de 4 dígitos"}},zipCodeComplement:{label:"+ 3 digitos",errors:{required:"Insira um código postal válido",format:"Formato incorrecto: por favor indique um código postal de 4+3 dígitos",length:"Por favor indique um código postal de 4+3 dígitos"}},city:{label:"Localidade postal",errors:{required:"Por favor indique a sua localidade postal",format:"Formato incorreto: por favor utilize apenas letras",length:"Insira no máximo 32 caracteres"},placeholder:"Selecione uma localidade postal:"},country:{label:"País"},phoneNumber:{label:"Telefone",label_mobile:"Telemóvel",errors:{required:"Para facilitar as suas entregas: introduza o seu número de telemóvel",format:{fixe:"Por favor insira um número de telefone válido",mobile:"Por favor insira um número de telemóvel válido"}},hint:"Caso precisemos de entrar em contato consigo em relação ao seu pedido","hint_phone-only":"Não utilizado para a prospecção comercial"},phonePrefix:{label:"Prefixo do pais",errors:{required:""}}},options:{updateShipping:{label:"Use também como morada de entrega"}},subscriptions:{label:"",collapse:{label:"",description:""},yes:"",no:"",options:{type:""},hint:{type:""}}},title:"Editar","title_billing-address":"Alterar a minha morada conta cliente","title_shipping-address":"Alterar a minha morada de entrega","title_phone-only":"Número de telemóvel",submit:"Confirmar","submit_billing-address":"Confirmar a minha morada conta cliente","submit_shipping-address":"Confirmar a minha morada de entrega","submit_phone-only":"Confirmar",globalError:"Ocorreu um erro.","globalError_phone-only":"Ocorreu um erro. Verifique se o seu número de telemóvel.",globalError_010:"Ocorreu um erro. O código postal e a localidade postal inseridos não correspondem.",globalError_011:"Ocorreu um erro. O código postal e a localidade postal inseridos não correspondem.",back:"Précédent"},Jg={suggestions:{title:"",info:"",hint:"",form:{fields:{streetNumber:{label:"",info:""},addressControlChoice:{label:"",label_one:"",label_other:"",label_reenter_one:"",label_reenter_other:""},editPreviousAddress:{label:""},keepPreviousAddress:{label:""}},submit:"",submit_enabled:"",submit_disabled:""}}},Xg={form:Zg,address:Jg},Qg={pageTitle:"La Redoute, Mode française | La Redoute",title:"",information:"",showPassword:"Mostrar palavra-passe",hidePassword:"Ocultar palavra-passe"},ef={pageTitle:"",form:{fields:{civility:{label:"",placeholder:"",errors:{required:""}},lastName:{label:"",errors:{required:"",length:"",format:""}},firstName:{label:"",errors:{required:"",length:"",format:""}},email:{label:"",errors:{required:"",length:"",format:""}},description:{label:"",placeholder:"",errors:{required:""}},message:{label:"",hint:"",errors:{length:""}},validation:{label:"",errors:{required:""}},url:{label:"",errors:{required:"",length:""}},attachment:{label:""}},globalError:"",submit:"",title:"",legalText:"",legalContact:""},confirmationPage:{title:"",description:"",cta:""}},tf={signup:Qg,illegalContentReport:ef},nf={ui:Jm,common:Gh,checkout:Fg,navigation:Yg,user:Xg,customer:tf},rf="Ga terug",af="Sluiten",of="Mobiel nummer",sf="Leeg veld",lf={placeholder:{day:"JJ",month:"MM",year:"AAAA"}},cf={back:rf,close:af,phoneNumber:of,clearField:sf,date:lf},uf="Sluiten",df="",pf="Gratis",mf="Meer informatie",hf={seeLess:"Zie minder suggesties",seeMore:"Zie meer suggesties"},gf="(nieuw raam)",ff={requiredField:"dit veld is verplicht"},vf={technical:"Fouten maken is menselijk, maar deze keer is het vrij technisch! ",notFound:"Oeps, niets interessants hier!",basketChange:"Uw betaling is mislukt."},bf="Probeer het opnieuw",yf="Keer terug naar de startpagina",_f="herlaad de pagina",kf="Ververs de pagina.",wf="Onze klantenservice van La Redoute staat tot uw beschikking: - Bel 043 202 94 67 van maandag t/m vrijdag van 9.00 tot 18.00 uur (tijden onder voorbehoud) geven onze assistenten je alle informatie die je nodig hebt. ",Sf="Land",Cf="Belgie",Ef="Bulgarije",Af="Cyprus",Pf="Denemarken",Lf="Duitsland",Tf="Estland",Mf="Finland",xf="Frankrijk",If="Griekenland",Rf="Groot Brittanie",$f="Hongarije",Of="Ierland",Nf="IJsland",zf="Italie",Df="Kroatie",Bf="Letland",Ff="Liechtenstein",jf="Litouwen",qf="Luxemburg",Vf="Malta",Uf="Nederland",Hf="Noorwegen",Gf="Oostenrijk",Kf="Polen",Wf="Portugal",Yf="Roemenie",Zf="Slovenie",Jf="Slowakije",Xf="Spanje",Qf="Tsjechische Republiek",ev="Zweden",tv="Zwitserland",nv={quantity:"hoeveelheid",price:{regular:"Prijs",sale:"prijs na korting"},size:"Maat",color:"Kleur",customization:"Gepersonaliseerd product met de tekst:"},rv={cgv:"/sellconditions.aspx",mkpCgv:"",privacyPolicy:"/confidentiality.aspx",collectsPersonalData:"/confidentiality.aspx",cguLoyaltyProgram:"",btobSalesConditions:"",privacyCenter:"/privacy_center.aspx",partnersList:""},av={close:uf,back:df,freeValue:pf,learnMore:mf,suggestion:hf,newTab:gf,form:ff,pageErrors:vf,redirectBasketPage:bf,redirectMainPage:yf,refreshPage:_f,refreshPageHint:kf,customerServiceHint:wf,country:Sf,country_BE:Cf,country_BG:Ef,country_CY:Af,country_DK:Pf,country_DE:Lf,country_EE:Tf,country_FI:Mf,country_FR:xf,country_GR:If,country_GB:Rf,country_HU:$f,country_IE:Of,country_IS:Nf,country_IT:zf,country_HR:Df,country_LV:Bf,country_LI:Ff,country_LT:jf,country_LU:qf,country_MT:Vf,country_NL:Uf,country_NO:Hf,country_AT:Gf,country_PL:Kf,country_PT:Wf,country_RO:Yf,country_SI:Zf,country_SK:Jf,country_ES:Xf,country_CZ:Qf,country_SE:ev,country_CH:tv,product:nv,links:rv},iv="Levering en betaling, La Redoute",ov={information:"Het factuuradres",order:"Kies een bezorgmethode",payment:"Kies een betaalmethode",securedPayment:"100% veilige betaling"},sv="Wij verzenden niet naar uw land, geef een bezorgadres op in een van de aangeboden landen.",lv="",cv="Winkelmandje",uv="Levering en betaling",dv="Adres",pv="7",mv="7",hv='Uw artikelen worden bewaard $t(checkout:storageDuration, {"context": "{{context}}" }) dagen bij het PICKUP afleverpunt',gv="",fv="",vv="Korting",bv="",yv="",_v="Adres gebruikt voor uw facturering",kv="Bewerk mijn factuuradres",wv="Bezorgadres bewerken",Sv="inclusief BTW",Cv="Mobiel nummer",Ev="wettelijke vermeldingen",Av="zie de details",Pv="Verzendkosten",Lv="Verzendkosten",Tv="Bijdrage voor omvangrijke artikelen",Mv="Betalingskosten",xv="Overzicht",Iv="Totaal",Rv="Artikelen",$v="Wijzig mijn winkelmandje",Ov="Selecteer een verzendmethode",Nv="Uw winkelmandje lijkt een of meer artikelen te bevatten die niet op het opgegeven adres kunnen worden afgeleverd.<br />U kunt uw winkelmandje of uw adres wijzigen via onderstaande knoppen",zv="Artikelen uit mijn winkelwagen verwijderen",Dv="Verzenden naar een ander adres",Bv="Stuur naar Nederland",Fv={disabledInfo:"Om toegang te krijgen tot dit gedeelte, voltooit u de voorgaande stappen op de pagina."},jv={sentBy:"Artikelen uit uw bestelling",soldBy:"verkocht door <strong>{{sellerName}}</strong>",hasHomeDeliveryOnly:"Deze verkoper biedt alleen thuisbezorging aan",information:"",information_bulky:"volumineuze artikelen",information_small:"reguliere artikelen"},qv={fieldset:"Kies een bezorgmethode",delay:{type:"",type_A:"In bereiding",type_B:"Levering op afspraak",type_C:"Verzonden binnen 5 tot 8 dagen. Levering op afspraak",type_D:"Levering binnen de 5 tot 7 dagen",type_E:"Levering binnen de 3 tot 5 dagen",type_F:"Uitverkocht. Voorraad voorzien binnen enkele week(en) ongeveer",type_G:"Uitverkocht"},date:{range:"Beschikbaar voor verzending tussen dagen {{from}} Het is {{to}}",day:"Verwachte levering op de dag {{date}}",estimated:"Levering van {{date}}",exact:"De {{date}}"},type:{name:"",name_05:"Aan huis / op een ander adres",name_06:"Comfort levering",name_07:"Premium levering"},home:{info:"",info_A:"U ontvangt een email van zodra uw pakket is verwerkt door onze partner Bpost of POST NL, zodat u uw pakket kan volgen.",info_B:"Levering op afspraak, bevestig uw gegevens. Maak het de bezorgers gemakkelijker door informatie te geven over op welke verdieping ze moeten zijn. ",info_C:"Levering op afspraak, bevestig uw gegevens. Maak het de bezorgers gemakkelijker door informatie te geven over op welke verdieping ze moeten zijn. Het is belangrijk om voor de dag van levering zelf te controleren of de producten door de deuren en in de ruimtes passen zodat deze makkelijk via de gebruikelijke toegangswegen naar de gewenste ruimte kan worden gebracht.",info_D:"Artikelen worden geleverd in een kamer naar keuze, uitgezonderd voor leveringen waarbij bezorgers meer dan 3 verdiepingen trap op moeten lopen, of leveringen die zwaarder zijn dan 63 kg. Controleer voor de levering of de artikelen door de deur en in de ruimte past. Verpakkingen worden op verzoek meegenomen.",shippingFormMessage:"Dit adres geldt voor al uw <strong>leveringen aan huis</strong> en hierdoor kunnen de eerder aangegeven leveringsdata wijzigen."},pickpoint:{actions:{change:"Wijzig mijn afleverpunt",change_pickup:"Kies een ander PICKUP Point",details:"locatie en tijd",details_a11y:"locatie en tijd {{ pickpoint }}",schedule:"Schema's",schedule_a11y:"Schema's {{ pickpoint }}"},details:{address:"<strong>Huishouden</strong>",openings:"<strong>Tijdlijn</strong>"},modify:{title:"Kies een PICKUP-punt",title_pickup:"Kies een PICKUP-punt",inactive:"Dit afleverpunt is tijdelijk niet beschikbaar",inactive_pickup:"Dit PICKUP-punt is tijdelijk niet beschikbaar",notfound:"<strong>Geen afleverpunt gevonden</strong> <br /> Vul een ander adres in",notfound_pickup:"<strong>Geen PICKUP-punt gevonden</strong> <br /> Vul een ander adres in",error:"<strong>er is een fout opgetreden </strong> <br /> Werk uw zoekopdracht naar afleverpunten bij",error_pickup:"<strong>er is een fout opgetreden </strong> <br /> Werk uw PICKUP-puntzoekopdracht bij",renew:"zoeken bijwerken",select:"Kies dit afleverpunt",select_pickup:"Kies dit PICKUP-punt",form:{label:"jouw adres"},list:"Lijst",map:"Kaart",radius:"Zoek binnen een straal van","aria-label_skipGoogleMap":""}},email:{address:"",message:"",noMessage:""},fallback:{message:"Laden mislukt",retry:"Probeer het nog eens"},multiShipping:{title:"",item:""},showAll:"Kies een andere bezorgmethode",showAllFlag:"Er zijn nieuwe leveringswijzen beschikbaar",showBulkyHomeAvailable:"Gratis levering aan huis met La Redoute",showPickPointAvailable:"Gratis levering in het PICKUP-punt",icons_alt:{icon:"",icon_home:"Thuis"}},Vv={title:"Mobiel nummer",banner:"Om uw levering te garanderen, hebben we een mobiel telefoonnummer nodig.",success:"Uw mobiele nummer is succesvol geregistreerd.",change:"Wijzig mijn mobiele nummer"},Uv={fieldset:"Kies een betaal methode",disabledSelectionInfo:`
|
|
306
|
-
Om toegang te krijgen tot dit gedeelte, voltooit u de voorgaande stappen op de pagina.`,disabledSelectionInfo_contact:"Kies een bezorgmethode en voer een mobiel nummer in voor uw bestelling",type:{label:"",label_bankcard:"Creditcard",label_paypal:"PayPal","label_paypal-stripe":"PayPal","aria-label_paypalOneOrManyTimes":"Betaal met Paypal ",label_paypalOneOrManyTimes:"Betaal met Paypal",label_paypalManyTimes:"Betaal met Paypal",label_klarna:"Achteraf betalen",label_ideal:"iDEAL"},payment_bankcard:{submit:"Bevestig de betaling van de bestelling",legalMentionsLink:"RaadAchteraf betalenpleeg de algemene voorwaarden",changeBrand:"Selecteer een andere optie",brandInfo:' Betaling vindt plaats met de optie $t(checkout:payments.bankcard.brandLabel, {"context": "{{brand}}" }). ',fields:{cardNumber:"Kaartnummer",expirationDate:"Uiterste houdbaarheidsdatum",cvv:"CVV"},saveAlias:"",saveAlias_optin:"Bewaar deze gegevens voor toekomstige aankopen bij La Redoute.",saveAlias_optout:"",fidelity:"",loyaltyProgramMentions:"Door u te abonneren op La Redoute, aanvaardt u dat uw betalingswijzen veilig worden opgeslagen en dat ze zullen worden gebruikt voor het beheer van uw stilzwijgende verlengingsabonnementen.",brandLabel:"CB",brandLabel_cb:"CB",brandLabel_visa:"Visa",brandLabel_mastercard:"MasterCard",brandLabel_amex:"American Express",errors:{init:"Er is een fout opgetreden.",required:"Dit veld is verplicht.",confirm:"Er is een technische fout opgetreden tijdens de betalingsbevestiging."}},payment_stripe:{description:"",description_paypal:"Wanneer u PayPal als betaalmethode kiest, wordt u doorgestuurd naar een beveiligingspagina, waar u zich moet identificeren in uw PayPal-account om uw bestelling af te ronden.",description_klarna:"Shop nu, betaal later. Maak kennis met @klarna.nl, onze nieuwe partner. Met Klarna krijg je meer tijd om te beslissen of je een bestelling houdt, voordat je die betaalt. Geen rente. Geen kosten. Never! #smoothshopping #klarna",description_ideal:"Bevestig uw bestelling, u zal dan doorverwezen worden naar onze beveiligde betalingspagina.",submit:"Bevestig de betaling van de bestelling",submit_paypal:"Bevestig betaling",submit_klarna:"Bevestig betaling",submit_ideal:"Bevestig betaling",record:{intro:"",intro_paypal:"",label:{optout:"",optin:"",optin_card:"Bewaar deze gegevens voor toekomstige aankopen.",optin_paypal:"Bewaar deze PayPal-accountgegevens voor toekomstige aankopen"}},errors:{confirm:"Er is een technische fout opgetreden tijdens de betalingsbevestiging."},icons_alt:{icon:"",icon_bankcard:"Bankpas"}},payment_bankcardAlias:{label:"bankpas",label_visa:"Visa",label_mastercard:"MasterCard",label_amex:"American Express","label_american express":"American Express",label_cb:"bankpas",endingWith:"Eindigt op",expiresOn:"Verloopt op",submit:"Bevestig de betaling van de bestelling",redirectionFormLabel:"Automatische doorverwijzing naar de betaalpagina"},mentionsLoyaltyRenewal:"",mentionsLr:"Door mijn bestelling te valideren, accepteer en verklaar ik dat ik alle <2>Algemene verkoopvoorwaarden op Laredoute.nl</2>, het <10>privacybeleid</10> en het <13>verzamelen van persoonlijke gegevens heb gelezen </ 13>.",mentionsLrLoyalty:"",mentionsMkp:"",mentionsMkpLoyalty:"",mentionsLrMkp:"",mentionsLrMkpLoyalty:"",mentionBtobLr:"",mentionBtobMkp:"",mentionBtobLrMkp:"",generalSalesConditions:"Algemene verkoopvoorwaarden",btobSalesConditions:"",privacyPolicy:"Privacybeleid",collectsPersonalData:"Verzameling van persoonsgegevens",cguLoyaltyProgram:"Algemene gebruiksvoorwaarden La Redoute",cgvPaymentMethod:"",cgvPaymentMethodBtoB:"",fallback:{message:"Kan betaalmethode niet laden.",retry:"Probeer het nog eens"},showAll:"Kies een andere betaalmethode",showAllFlag:"Er zijn nieuwe betaalmethoden beschikbaar.",errors:{error:"Er is een betalingsfout opgetreden.",error_RH00045C_600:"Je bestelling is geannuleerd omdat je onlangs nog een soortgelijke bestelling hebt geplaatst. ",error_RB00072C_037:"Ongeldig telefoonnummer of niet gekoppeld aan een geldig mbway-account.",error_RB00072C_014:"Uw tegoed is onvoldoende. ",error_GENERIC_DECLINE:"Er is een betalingsfout opgetreden",error_EXPIRED_CARD:"uw betaalkaart is verlopen",error_INSUFFICIENT_FUNDS:"Uw kaartsaldo is onvoldoende.",error_PAYMENT_INTENT_AUTHENTICATION_FAILURE:"Betaling afgewezen. Probeer het opnieuw of neem contact op met de klantenservice.",error_PAYMENT_METHOD_CUSTOMER_DECLINE:"Betaling afgewezen. Probeer het opnieuw of neem contact op met de klantenservice."},icons_alt:{icon_bankcard:"Bankpas"}},Hv={processing:"Bezig met laden",wait:"Even geduld aub..."},Gv={flag:"Nieuw",label:"U ontdekt onze nieuwe aankooppagina.<br />",status:"",flagFirstApplyPreferences:"Eenvoudiger winkelen",labelFirstApplyPreferences:"Uw aankoopproces is aangepast aan de keuzes uit uw eerdere bestellingen."},Kv={banner:{header:"",header_added:"",switch:"",switch_added:"",list:{freeHomeDelivery:"",discount:""},accept:"",conditions:"",informations:""},modal:{header:"",list:{freeHomeDelivery:"",discountFashion:"",discountHome:""},accept:"",skip:"",conditions:"",informations:""},toggle:{error:"",error_add:"",error_remove:""},payment:{mention:"",mention_paypal:"",mention_rPremium:"",mention_aliases:""}},Wv={header:{name:"",usedAmount:"",modify:"",usedAmount_one:"",usedAmount_other:""},details:{info:"",validityDate:"",number:"",selectVouchers:"",submit:"",submit_disabled:"",submit_complete:""},residual:""},Yv={minimalConfirmationDescription:"Bedankt voor je bestelling {{orderId}}. ",minimalConfirmationRefreshHint:"Details zullen in de komende minuten beschikbaar zijn in uw account."},Zv={backButton:"",pageTitle:"",welcome:{label:"",status:"",flag:""},headings:{payment:"",securedPayment:""}},Jv={backButton:"",pageTitle:"",welcome:{label:"",status:"",flag:""},headings:{payment:"",securedPayment:""},submit:""},Xv={pageTitle:iv,headings:ov,noAddresseTitle:sv,noAddressLegalText:lv,cart:cv,deliveryAndPayment:uv,addressStepper:dv,storageDuration:pv,storageDuration_pickup:mv,deliveryRetainment:hv,detax:gv,detaxIframeTitle:fv,discount:vv,appliedVouchers:bv,ecopart:yv,billingAddressInformation:_v,editMyBillingAddress:kv,editMyShippingAddress:wv,includedVAT:Sv,phoneNumber:Cv,legalmentions:Ev,seeDetail:Av,shippingFees:Pv,shippingFees_estimated:Lv,additionalShippingFees:Tv,paymentFees:Mv,summary:xv,total:Iv,totalArticles:Rv,updateBasket:$v,selectADelivery:Ov,infoPartialDelivery:Nv,deleteArticleInBasket:zv,updateDeliveryAddress:Dv,updateDeliveryAddress_limited:Bv,billingAddress:Fv,seller:jv,deliveries:qv,contact:Vv,payments:Uv,transaction:Hv,opinion:Gv,loyalty:Kv,vouchers:Wv,confirmation:Yv,renewal:Zv,parAccountPayment:Jv},Qv="€ 50",eb="30",tb="",nb="",rb={homepage:"De startpagina van La Redoute"},ab="",ib={item_deadlineToChangeOpinion:{title:"30 dagen om van gedachten te veranderen",title_break:"30 dagen om van gedachten te veranderen",subtitle:"Goed nieuws! $t(navigation:withdrawalPeriod) dagen om van gedachten te veranderen!",info:{1:"Stuur binnen de 30 dagen uw kleine artikelen of defecte artikelen gratis retour.",2:"Ook grote of zware artikelen kunnen gratis teruggestuurd worden."},link:{aria:"$t(common:learnMore) over ruilen en retourneren",href:"/new-return.aspx"}},item_freeReturn:{title:"Gratis retour",title_break:"Gratis retour",subtitle:"Je hebt 30 dagen de tijd om je artikelen te retourneren of te ruilen",info:{1:"Voor kleding en kleine artikelen is er al een retourlabel geprint en bijgevoegd in het pakket",2:"Kleding en kleine artikelen kan u terugsturen via een PostNL-punt",3:"Meubels en grote artikelen komen we bij u ophalen.",4:"Voor sommige artikelen gelden speciale voorwaarden"},link:{aria:"$t(common:learnMore) over ruilen en retourneren",href:"/new-return.aspx"}},item_freeShippingInRelayFrom:{title:"Levering vanaf 2,99",title_break:"Levering vanaf 2,99",subtitle:"Leveringen aan huis",info:{1:"Bezorgkosten worden bij het afrekenen berekend",2:"Ze worden berekend op basis van het gewicht en de maten van het grootste artikel in uw mandje"},link:{aria:"$t(common:learnMore) over verzendwijzen",href:"/new-delivery.aspx"}},item_securedPayment:{title:"Veilige betaling",title_break:"Veilige betaling",subtitle:"Betaal snel en veilig je bestelling",info:{1:"Al onze betaalmethoden maken gebruik van geavanceerde beveiligingsmethoden",2:"Wij beschermen uw privacy",3:"Wij slaan uw gegevens niet op"},link:{aria:"$t(common:learnMore) over betalingswijzen",href:"/new-payment.aspx"}}},ob={information:"",disconnect:""},sb={startPriceFreeDeliveryRelay:Qv,withdrawalPeriod:eb,accessibilityHint:tb,facilityLinkTitle:nb,link:rb,sourdLineLinkTitle:ab,reinsurance:ib,logAsBanner:ob},lb={fields:{email:{label:"",label_signup:"",hint:"Vous avez déjà un compte ? <1>Connectez-vous</1>",errors:{required:"",length:"",format:""}},password:{label:"",label_signup:"",errors:{required:"",space:"",length:""},visibility:{hide:"",show:""},hint:{length:"",uppercase:"",lowercase:"",digit:""}},birthdate:{label:"",label_signup:"",errors:{invalid:"",young:""},hint:""},enterprise:{groupLabel:"",contactGroupLabel:"",addressGroupLabel:"",country:{label:""},corporateName:{label:"",errors:{length:"",format:""}},siret:{label:"",errors:{length:"",format:""}},vat:{label:"",errors:{length:"",format:""}}},address:{title:{label:"Geslacht",placeholder:"Selecteer een Geslacht",opts:{mrs:"Mevrouw",miss:"Geen",emp:"",mr:"Meneer"}},firstname:{label:"Voornaam",errors:{required:"Gelieve uw voornaam in te vullen",format:"Onjuist formaat: gebruik alleen letters",length:"Voer tussen de 2 en 32 tekens in"}},lastname:{label:"Achternaam",errors:{required:"Voer alstublieft uw bijnaam in",format:"Onjuist formaat: gebruik alleen letters",length:"Voer tussen de 2 en 32 tekens in"}},street:{label:"Adres (straat)",errors:{required:"Voer uw adres in",length:"Voer maximaal 40 tekens in"}},houseNumber:{label:"Huisnummer",errors:{length:"Voer maximaal 40 tekens in"}},streetComplement:{label:"Bijvoegsel, busnummer, verdieping • optioneel",errors:{length:"Voer maximaal 40 tekens in"}},hamlet:{label:"",errors:{length:""}},province:{label:"",errors:{length:""}},zipCode:{label:"Postcode",errors:{required:"Voer een geldige postcode in",format:"Onjuist formaat: 4 cijfers -spatie - 2 letters (vb : 1000 AA)",length:"Onjuist formaat: 4 cijfers -spatie - 2 letters (vb : 1000 AA)"}},zipCodeComplement:{label:"",errors:{required:"",format:"",length:""}},city:{label:"Stad/Gemeente",errors:{required:"Gelieve uw postadres aan te geven",format:"Onjuist formaat: gebruik alleen letters",length:"Voer maximaal 32 tekens in"},placeholder:"Selecteer een stad"},country:{label:"Land"},phoneNumber:{label:"Telefoon",label_mobile:"mobiele telefoon",errors:{required:"Om uw leveringen te vergemakkelijken: voer uw mobiele nummer in",format:{fixe:"Voer alstublieft een geldig telefoonnummer in",mobile:"Voer een geldig mobiel telefoonnummer in"}},hint:"Als we contact met u moeten opnemen over uw bestelling","hint_phone-only":"Niet gebruikt voor commerciële prospectie"},phonePrefix:{label:"Landcode",errors:{required:""}}},options:{updateShipping:{label:"Gebruik ook als bezorgadres"}},subscriptions:{label:"",collapse:{label:"",description:""},yes:"",no:"",options:{type:""},hint:{type:""}}},title:"Aanpassen","title_billing-address":"Wijzig het factuuradres","title_shipping-address":"Wijzig mijn bezorgadres","title_phone-only":"Mobiel nummer",submit:"Bevestigen","submit_billing-address":"Bevestig het factuuradres","submit_shipping-address":"Bevestig mijn bezorgadres","submit_phone-only":"Bevestigen",globalError:"Er is een fout opgetreden.","globalError_phone-only":"Er is een fout opgetreden. ",globalError_010:"Er is een fout opgetreden. De ingevoerde postcode en postcode komen niet overeen.",globalError_011:"Er is een fout opgetreden. De ingevoerde postcode en postcode komen niet overeen.",back:"Précédent"},cb={suggestions:{title:"",info:"",hint:"",form:{fields:{streetNumber:{label:"",info:""},addressControlChoice:{label:"",label_one:"",label_other:"",label_reenter_one:"",label_reenter_other:""},editPreviousAddress:{label:""},keepPreviousAddress:{label:""}},submit:"",submit_enabled:"",submit_disabled:""}}},ub={form:lb,address:cb},db={pageTitle:"La Redoute, Mode française | La Redoute",title:"",information:"",showPassword:"Wachtwoord tonen",hidePassword:"Wachtwoord verbergen"},pb={pageTitle:"",form:{fields:{civility:{label:"",placeholder:"",errors:{required:""}},lastName:{label:"",errors:{required:"",length:"",format:""}},firstName:{label:"",errors:{required:"",length:"",format:""}},email:{label:"",errors:{required:"",length:"",format:""}},description:{label:"",placeholder:"",errors:{required:""}},message:{label:"",hint:"",errors:{length:""}},validation:{label:"",errors:{required:""}},url:{label:"",errors:{required:"",length:""}},attachment:{label:""}},globalError:"",submit:"",title:"",legalText:"",legalContact:""},confirmationPage:{title:"",description:"",cta:""}},mb={signup:db,illegalContentReport:pb},hb={ui:cf,common:av,checkout:Xv,navigation:sb,user:ub,customer:mb},gb="Retour",fb="Fermer",vb="Numéro de téléphone",bb="Vider le champ",yb={placeholder:{day:"JJ",month:"MM",year:"AAAA"}},_b={back:gb,close:fb,phoneNumber:vb,clearField:bb,date:yb},kb="Fermer",wb="",Sb="Gratuit",Cb="En savoir plus",Eb={seeLess:"Voir moins de suggestions",seeMore:"Voir plus de suggestions"},Ab="(nouvelle fenêtre)",Pb={requiredField:"Ce champ est obligatoire"},Lb={technical:"L'erreur est humaine, enfin cette fois elle est plutôt technique !",notFound:"",basketChange:"Votre paiement n'a pas pu être effectué. Il semblerait que votre panier ait changé."},Tb="Rafraîchir votre panier",Mb="Revenir à la page d'accueil",xb="Rafraîchir la page",Ib="Nous vous invitons à rafraîchir la page.",Rb="Si vous le souhaitez, un conseiller client est à votre disposition pour répondre à toutes vos questions au 0969 323 515 (Service gratuit + prix appel), 7j/7 de 8h à 21h",$b="Pays",Ob="Belgique",Nb="Bulgarie",zb="Chypre",Db="Danemark",Bb="Allemagne",Fb="Estonie",jb="Finlande",qb="France",Vb="Grèce",Ub="Grande-Bretagne",Hb="Hongrie",Gb="Irlande",Kb="Islande",Wb="Italie",Yb="Croatie",Zb="Lettonie",Jb="Liechtenstein",Xb="Lituanie",Qb="Luxembourg",ey="Malte",ty="Pays-Bas",ny="Norvège",ry="Autriche",ay="Pologne",iy="Portugal",oy="Roumanie",sy="Slovénie",ly="Slovaquie",cy="Espagne",uy="République tchèque",dy="Suède",py="Suisse",my={quantity:"Quantité",price:{regular:"Prix habituel",sale:"Prix de vente"},size:"Taille",color:"Couleur",customization:"Produit personnalisé avec le texte :"},hy={cgv:"/sellconditions.aspx",mkpCgv:"",privacyPolicy:"/confidentiality.aspx",collectsPersonalData:"/confidentiality.aspx",cguLoyaltyProgram:"",btobSalesConditions:"",privacyCenter:"/privacy_center.aspx",partnersList:""},gy={close:kb,back:wb,freeValue:Sb,learnMore:Cb,suggestion:Eb,newTab:Ab,form:Pb,pageErrors:Lb,redirectBasketPage:Tb,redirectMainPage:Mb,refreshPage:xb,refreshPageHint:Ib,customerServiceHint:Rb,country:$b,country_BE:Ob,country_BG:Nb,country_CY:zb,country_DK:Db,country_DE:Bb,country_EE:Fb,country_FI:jb,country_FR:qb,country_GR:Vb,country_GB:Ub,country_HU:Hb,country_IE:Gb,country_IS:Kb,country_IT:Wb,country_HR:Yb,country_LV:Zb,country_LI:Jb,country_LT:Xb,country_LU:Qb,country_MT:ey,country_NL:ty,country_NO:ny,country_AT:ry,country_PL:ay,country_PT:iy,country_RO:oy,country_SI:sy,country_SK:ly,country_ES:cy,country_CZ:uy,country_SE:dy,country_CH:py,product:my,links:hy},fy="Livraison et paiement, La Redoute",vy={information:"Mon adresse de facturation",order:"Choisissez une méthode de livraison",payment:"Mon mode de paiement",securedPayment:"Paiement 100% sécurisé"},by="Nous ne livrons pas dans votre pays, veuillez fournir une adresse de livraison dans l'un des pays proposés.",yy="",_y="Panier",ky="Livraison et Paiement",wy="Adresse",Sy="7",Cy="Plus de 2300 Points Colis Bpost à votre disposition (Bureau de poste, Point poste, Point Colis, automate), vous trouverez certainement le point près de votre domicile !",Ey="Détaxe",Ay="Livraison dans les DOM-TOM",Py="Réduction",Ly="Bons d'achats",Ty="dont {{ value }} d'éco-part",My="Adresse utilisée pour votre facturation",xy="Modifier mon adresse de facturation ",Iy="Modifier mon adresse de livraison",Ry="TVA incluse",$y="Numéro de téléphone",Oy="Mentions légales",Ny="Voir le détail",zy="Frais de livraison",Dy="Frais de livraison estimés",By="",Fy="Frais de paiement",jy="Récapitulatif",qy="Total",Vy="Total article(s)",Uy="Modifier mon panier",Hy="Veuillez sélectionner un mode de livraison",Gy="Votre panier semble contenir un ou plusieurs articles ne pouvant être livré à l'adresse indiquée.<br />Vous pouvez modifier votre panier ou votre adresse avec les boutons ci-dessous",Ky="Supprimer des articles de mon panier",Wy="Me faire livrer à une autre adresse",Yy="Me faire livrer en France Métropolitaine",Zy={disabledInfo:"Pour accéder à cette rubrique, veuillez remplir les étapes précédentes de la page."},Jy={sentBy:"Les articles de votre commande",soldBy:"Vendu par <strong>{{sellerName}}</strong>",hasHomeDeliveryOnly:"Ce vendeur propose uniquement la livraison à domicile",information:"",information_bulky:"Article(s) volumineux",information_small:"Petit(s) article(s)"},Xy={fieldset:"Choisir un mode de livraison",delay:{type:"",type_A:"En préparation",type_B:"Livraison sur rendez-vous",type_C:"Expédié sous 4 à 6 jours. Livraison sur rendez-vous",type_D:"Livrable sous 3 à 5 jours",type_E:"Livrable sous 2 à 4 jours",type_F:"Epuisé. Entrée en stock prévue dans quelques semaine(s) environ",type_G:"Epuisé"},date:{range:"Livraison entre le {{from}} et le {{to}}",day:"Livraison prévue le {{date}}",estimated:"Livraison à partir du {{date}}",exact:"Le {{date}}"},type:{name:"",name_03:"Point Colis",name_05:"À domicile",name_06:"À domicile - Confort"},home:{info:"Dès l'expédition de votre colis, vous pourrez suivre toutes les étapes de la livraison dans votre suivi de commande, ainsi que via les applications Bpost/PostNL. ",shippingFormMessage:"Cette adresse s'appliquera à l'ensemble de vos <strong>livraisons à domicile</strong> et cela peut changer les dates de livraison indiquées précédemment."},pickpoint:{actions:{change:"Modifier mon point Colis",details:"Localisation et horaires",details_a11y:"Localisation et horaires {{ pickpoint }}",schedule:"Horaires",schedule_a11y:"Horaires {{ pickpoint }}"},details:{address:"<strong>Adresse</strong>",openings:"<strong>Horaires</strong>"},modify:{title:"Choisir un point de retrait",inactive:"Ce point de retrait est momentanément indisponible",notfound:"<strong>Aucun point de retrait trouvé</strong> <br /> Veuillez saisir une autre adresse",error:"<strong>Aucun point relais n’est disponible dans la zone. </strong> <br /> Veuillez élargir la recherche ou changer d’adresse.",renew:"Renouveler ma recherche",select:"Choisir ce point de retrait",form:{label:"Votre adresse"},list:"Liste",map:"Carte",radius:"Rechercher dans un rayon de","aria-label_skipGoogleMap":""}},email:{address:"Adresse e-mail de réception",message:"Votre message personnel",noMessage:"Pas de texte renseigné"},fallback:{message:"Le moyen de livraison n'a pas réussi à charger.",retry:"Réessayer"},multiShipping:{title:"Vous serez livrés en plusieurs fois",item:"Livraison n°{{number}} : "},showAll:"Choisir un autre mode de livraison",showAllFlag:"De nouveaux modes de livraison sont disponibles.",showBulkyHomeAvailable:"Livraison gratuite à domicile avec La Redoute +",showPickPointAvailable:"Livraison gratuite en point Colis",icons_alt:{icon:"",icon_home:"Maison"}},Qy={title:"Numéro de téléphone mobile",banner:"Pour assurer votre livraison nous avons besoin d’un numéro de téléphone mobile.",success:"Votre numéro de téléphone mobile a bien été enregistré.",change:"Modifier mon numéro de téléphone"},e_={fieldset:"Choisir un mode de paiment",disabledSelectionInfo:"Pour accéder à cette rubrique, veuillez remplir les étapes précédentes de la page.",disabledSelectionInfo_contact:"Veuillez choisir un mode de livraison et saisir un numéro de téléphone pour votre commande",type:{label:"",label_bankcard:"Carte Bancaire","label_paypal-stripe":"PayPal","aria-label_paypalOneOrManyTimes":"Payer avec Paypal",label_paypalOneOrManyTimes:"Payer avec Paypal",label_paypalManyTimes:"Payer avec Paypal",label_bancontact:"Bancontact - Payconiq",label_par:"Paiement après réception",label_klarna:"Acheter maintenant. Payer dans 30 jours avec Klarna"},payment_stripe:{description:"",description_paypal:"Après avoir cliqué sur 'Effectuer mon paiement avec Paypal', vous serez redirigé vers la page de paiement sécurisé de Paypal.",description_klarna:"Obtenir. Essayer. Adopter.",submit:"Valider mon paiement et ma commande",submit_klarna:"Effectuer mon paiement avec Klarna",submit_paypal:"Effectuer mon paiement avec Paypal",record:{intro:"Avec La Redoute +, vous acceptez la conservation de votre moyen de paiement afin de gagner du temps lors de vos achats",intro_paypal:"Avec La Redoute +, vous acceptez la conservation de votre compte Paypal afin de gagner du temps lors de vos achats",label:{optout:"Ne pas enregistrer mon moyen de paiement.",optin:"",optin_card:"J’enregistre ma carte pour faciliter mes prochains achats.",optin_paypal:"Mémoriser ce compte Paypal pour un prochain achat"}},errors:{confirm:"Une erreur technique est survenue durant la confirmation du paiement"},icons_alt:{icon:"",icon_bankcard:"Carte bancaire"}},payment_bankcardAlias:{label:"Carte bancaire",label_visa:"Visa",label_mastercard:"Mastercard",label_amex:"American Express","label_american express":"American Express",label_cb:"Carte bancaire",endingWith:"se terminant par",expiresOn:"Expire le",submit:"Valider mon paiement et ma commande",redirectionFormLabel:"Redirection automatique vers la page de paiement"},payment_par:{description:"<strong>Montant disponible actuellement :</strong> {{amount}}<br/><br/>A la réception de votre colis, moyennant une participation de {{ fees }}, vous disposez d'un délai de 14 jours pour effectuer votre paiement.",labels:{birthdate:"Date de naissance",day:"Jour",month:"Mois",year:"Année"},hint:"Pour sécuriser votre paiement, merci de nous indiquer votre date de naissance.",actions:{submit:"Valider mon paiement et ma commande"},errors:{date:"Veuillez entrer une date valide ex: 01/01/1970"}},mentionsLoyaltyRenewal:"",mentionsLr:"En validant ma commande, je déclare avoir pris connaissance de la <10>politique de confidentialité</10> et de <13>la collecte des données personnelles</13> et cookies.",mentionsLrLoyalty:"",mentionsMkp:"",mentionsMkpLoyalty:"",mentionsLrMkp:"",mentionsLrMkpLoyalty:"",mentionBtobLr:"",mentionBtobMkp:"",mentionBtobLrMkp:"",generalSalesConditions:"Conditions générales de vente",btobSalesConditions:"",privacyPolicy:"Politique de confidentialité",collectsPersonalData:"Collecte des données personnelles",cguLoyaltyProgram:"Conditions générales d'utilisation La Redoute +",cgvPaymentMethod:"En validant ma commande j'accepte et je reconnais avoir pris connaissance de l'intégralité des <1>Conditions Générales de Vente de laredoute.be.</1>",cgvPaymentMethodBtoB:"",fallback:{message:"Le moyen de paiement n'a pas réussi à charger.",retry:"Réessayer"},showAll:"Choisir un autre mode de paiement",showAllFlag:"De nouveaux modes de paiement sont disponibles.",errors:{error:"Une erreur est survenue.",error_RH00045C_600:"Votre commande a été annulée car vous avez récemment passé une autre commande similaire.",error_RB00072C_010:"Ce mode de paiement ne peut pas être utilisé. Merci de nous contacter.",error_RB00072C_011:"Ce mode de paiement ne peut pas être utilisé. Merci de nous contacter.",error_RB00072C_012:"Ce mode de paiement ne peut pas être utilisé. Merci de nous contacter.",error_RB00072C_013:"Ce mode de paiement ne peut pas être utilisé. Merci de nous contacter.",error_RB00072C_014:"Votre crédit est insuffisant.",error_RB00072C_020:"Cette date de naissance diffère de notre dossier client. Merci de la corriger.",error_GENERIC_DECLINE:"Une erreur de paiement s'est produite",error_EXPIRED_CARD:"votre carte de paiement a expiré",error_INSUFFICIENT_FUNDS:"Le solde de votre carte est insuffisant.",error_PAYMENT_INTENT_AUTHENTICATION_FAILURE:"Paiement rejeté. Essayez à nouveau ou contactez le service client.",error_PAYMENT_METHOD_CUSTOMER_DECLINE:"Paiement rejeté. Essayez à nouveau ou contactez le service client."},icons_alt:{icon_bankcard:"Carte bancaire",icon_paymentAfterReceipt:"Paiement après réception"}},t_={processing:"Chargement en cours",wait:"Veuillez patienter..."},n_={flag:"",label:"Vous découvrez notre nouvelle page d'achat.",status:"",flagFirstApplyPreferences:"Des achats toujours plus faciles",labelFirstApplyPreferences:"Votre tunnel d'achat est personnalisé selon vos choix lors de vos précédentes commandes."},r_={banner:{header:"",header_added:"",switch:"",switch_added:"",list:{freeHomeDelivery:"",discount:""},accept:"",conditions:"",informations:""},modal:{header:"",list:{freeHomeDelivery:"",discountFashion:"",discountHome:""},accept:"",skip:"",conditions:"",informations:""},toggle:{error:"",error_add:"",error_remove:""},payment:{mention:"",mention_paypal:"",mention_rPremium:"",mention_aliases:""}},a_={header:{name:"",usedAmount:"",modify:"",usedAmount_one:"",usedAmount_other:""},details:{info:"",validityDate:"",number:"",selectVouchers:"",submit:"",submit_disabled:"",submit_complete:""},residual:""},i_={minimalConfirmationDescription:"Merci pour votre commande {{orderId}}. Celle-ci a bien été enregistrée !",minimalConfirmationRefreshHint:"Le détail sera disponible très prochainement dans votre espace client."},o_={backButton:"",pageTitle:"",welcome:{label:"",status:"",flag:""},headings:{payment:"",securedPayment:""}},s_={backButton:"",pageTitle:"",welcome:{label:"",status:"",flag:""},headings:{payment:"",securedPayment:""},submit:""},l_={pageTitle:fy,headings:vy,noAddresseTitle:by,noAddressLegalText:yy,cart:_y,deliveryAndPayment:ky,addressStepper:wy,storageDuration:Sy,deliveryRetainment:Cy,detax:Ey,detaxIframeTitle:Ay,discount:Py,appliedVouchers:Ly,ecopart:Ty,billingAddressInformation:My,editMyBillingAddress:xy,editMyShippingAddress:Iy,includedVAT:Ry,phoneNumber:$y,legalmentions:Oy,seeDetail:Ny,shippingFees:zy,shippingFees_estimated:Dy,additionalShippingFees:By,paymentFees:Fy,summary:jy,total:qy,totalArticles:Vy,updateBasket:Uy,selectADelivery:Hy,infoPartialDelivery:Gy,deleteArticleInBasket:Ky,updateDeliveryAddress:Wy,updateDeliveryAddress_limited:Yy,billingAddress:Zy,seller:Jy,deliveries:Xy,contact:Qy,payments:e_,transaction:t_,opinion:n_,loyalty:r_,vouchers:a_,confirmation:i_,renewal:o_,parAccountPayment:s_},c_="1.99€",u_="30",d_="Sourd ou malentendant ?",p_="Facil'iti - aide d'accessibilité $t(common:newTab)",m_={homepage:"Page d’accueil La Redoute"},h_="Sourd line - Espace sourd $t(common:newTab)",g_={item_deadlineToChangeOpinion:{title:"$t(navigation:withdrawalPeriod) jours pour changer d'avis",title_break:"$t(navigation:withdrawalPeriod) jours pour changer d'avis",subtitle:"Bonne nouvelle ! Chez La Redoute, vous avez $t(navigation:withdrawalPeriod) jours pour changer d’avis !",info:{1:"Les retours sont <b>GRATUITS</b> durant $t(navigation:withdrawalPeriod) jours après la livraison. ",2:"Remboursement dès le traitement de votre colis dans nos entrepôts et via le paiement d'origine. "},link:{aria:"$t(common:learnMore) sur le délai de rétractation",href:"/new-return.aspx"}},item_freeReturn:{title:"Retours gratuits",title_break:"",subtitle:"Les retours sont GRATUITS pendant 30 jours pour TOUS les articles. ",info:{1:"<b>Retours de vêments ou petits articles</b> : Préparez votre colis et collez l’étiquette de retour. Rendez-vous au Point Colis ou au bureau de Poste le plus proche de chez vous et déposez gratuitement votre colis. Vous recevrez une preuve de retour à conserver jusqu’au traitement de votre retour par nos services.",2:"<b>Les articles volumineux</b> qui ont été livrés sur rendez-vous seront récupérés gratuitement à votre domicile. Contactez-nous par Whatsapp, Messenger, chat ou téléphone.",3:"Remboursement dès le lendemain du traitement de votre colis dans nos entrepôts et via le paiement d'origine de la commande. "},link:{aria:"$t(common:learnMore) sur les retours gratuits",href:"/new-return.aspx"}},item_freeShippingInRelayFrom:{title:"Livraison à partir de 1.99€ en Point Colis",title_break:"Livraison dès 1,99€ en point Colis ou 2,99€ à domicile",subtitle:"Livraison des petits articles à 1.99€ (en point colis) ou 2,99€ (à domicile).",info:{1:"Pour les <b>petits articles</b>, vous avez le choix de vous faire livrer à votre domicile, dans un point colis, ou dans un automate. ",2:"Pour les <b>articles volumineux</b>, livraison à domicile à partir de 4,99€ (le montant de la livraison est calculé lors du paiement et défini en fonction de l’article le plus volumineux du panier.)"},link:{aria:"$t(common:learnMore) sur la livraison en point relais ",href:"/new-delivery.aspx"}},item_securedPayment:{title:"Paiement 100% sécurisé",title_break:"Paiement<br/> 100% sécurisé",subtitle:"À La Redoute, votre paiement est 100% sécurisé ! ",info:{1:"Transactions protégées contre les interceptions malveillantes.",2:"La Redoute n’a pas connaissance des données de votre carte bancaire",3:"Nous ne stockons pas vos données"},link:{aria:"En savoir plus sur la livraison en point relais ",href:"/new-payment.aspx"}}},f_={information:"",disconnect:""},v_={startPriceFreeDeliveryRelay:c_,withdrawalPeriod:u_,accessibilityHint:d_,facilityLinkTitle:p_,link:m_,sourdLineLinkTitle:h_,reinsurance:g_,logAsBanner:f_},b_={fields:{email:{label:"",label_signup:"",hint:"Vous avez déjà un compte ? <1>Connectez-vous</1>",errors:{required:"",length:"",format:""}},password:{label:"",label_signup:"",errors:{required:"",space:"",length:""},visibility:{hide:"",show:""},hint:{length:"",uppercase:"",lowercase:"",digit:""}},birthdate:{label:"",label_signup:"",errors:{invalid:"",young:""},hint:""},enterprise:{groupLabel:"",contactGroupLabel:"",addressGroupLabel:"",country:{label:""},corporateName:{label:"",errors:{length:"",format:""}},siret:{label:"",errors:{length:"",format:""}},vat:{label:"",errors:{length:"",format:""}}},address:{title:{label:"Civilité",placeholder:"Sélectionner une civilité",opts:{mrs:"Madame",miss:"Mademoiselle",mr:"Monsieur",emp:"Entreprise"}},firstname:{label:"Prénom",errors:{required:"Merci d'indiquer votre prénom",format:"Format incorrect : merci de n'utiliser que des lettres",length:"Merci d'indiquer entre 2 et 32 caractères"}},lastname:{label:"Nom",errors:{required:"Merci d'indiquer votre nom",format:"Format incorrect : merci de n'utiliser que des lettres",length:"Merci d'indiquer entre 2 et 32 caractères"}},street:{label:"Adresse (rue)",errors:{required:"Merci d'indiquer votre adresse",length:"Merci d'indiquer au maximum 40 caractères"}},houseNumber:{label:"Numéro de porte",errors:{length:"Merci d'indiquer au maximum 40 caractères"}},streetComplement:{label:"Complément d'adresse • optionnel",errors:{length:"Merci d'indiquer au maximum 40 caractères"}},hamlet:{label:"",errors:{length:""}},province:{label:"",errors:{length:""}},zipCode:{label:"Code postal",errors:{required:"Merci d'indiquer un code postal valide",format:"Format incorrect : 4 chiffres",length:"Format incorrect : 4 chiffres"}},zipCodeComplement:{label:"",errors:{required:"",format:"",length:""}},city:{label:"Ville",errors:{required:"Merci d'indiquer votre ville",format:"Format incorrect : merci de n'utiliser que des lettres",length:"Merci d'indiquer au maximum 32 caractères"},placeholder:"Sélectionner une ville..."},country:{label:"Pays"},phoneNumber:{label:"Téléphone",label_mobile:"Téléphone mobile",errors:{required:"Pour faciliter vos livraisons: merci de saisir votre n° de téléphone mobile",format:{fixe:"Veuillez saisir un numéro de téléphone valide",mobile:"Veuillez saisir un numéro de téléphone mobile valide"}},hint:"Au cas où nous devrions vous contacter au sujet de votre commande","hint_phone-only":"Non utilisé pour la prospection commerciale"},phonePrefix:{label:"Préfixe du pays",errors:{required:""}}},options:{updateShipping:{label:"Utiliser également comme adresse de livraison"}},subscriptions:{label:"",collapse:{label:"",description:""},yes:"",no:"",options:{type:""},hint:{type:""}}},title:"Modifier","title_billing-address":"Modifier mon adresse de facturation","title_shipping-address":"Modifier mon adresse de livraison","title_phone-only":"Numéro de téléphone mobile",submit:"Valider","submit_billing-address":"Valider mon adresse de facturation","submit_shipping-address":"Confirmer mon adresse de livraison","submit_phone-only":"Valider",globalError:"Une erreur est survenue.","globalError_phone-only":"Une erreur est survenue. Vérifiez qu'il s'agit bien de votre numéro de téléphone mobile.",globalError_010:"Une erreur s'est produite. Le code postal saisi et le code postal de la ville ne correspondent pas.",globalError_011:"Une erreur s'est produite. Le code postal saisi et le code postal de la ville ne correspondent pas.",back:"Précédent"},y_={suggestions:{title:"",info:"",hint:"",form:{fields:{streetNumber:{label:"",info:""},addressControlChoice:{label:"",label_one:"",label_other:"",label_reenter_one:"",label_reenter_other:""},editPreviousAddress:{label:""},keepPreviousAddress:{label:""}},submit:"",submit_enabled:"",submit_disabled:""}}},__={form:b_,address:y_},k_={pageTitle:"La Redoute, Mode française | La Redoute",title:"",information:"",showPassword:"Afficher le mot de passe",hidePassword:"Masquer le mot de passe"},w_={pageTitle:"",form:{fields:{civility:{label:"",placeholder:"",errors:{required:""}},lastName:{label:"",errors:{required:"",length:"",format:""}},firstName:{label:"",errors:{required:"",length:"",format:""}},email:{label:"",errors:{required:"",length:"",format:""}},description:{label:"",placeholder:"",errors:{required:""}},message:{label:"",hint:"",errors:{length:""}},validation:{label:"",errors:{required:""}},url:{label:"",errors:{required:"",length:""}},attachment:{label:""}},globalError:"",submit:"",title:"",legalText:"",legalContact:""},confirmationPage:{title:"",description:"",cta:""}},S_={signup:k_,illegalContentReport:w_},ei={ui:_b,common:gy,checkout:l_,navigation:v_,user:__,customer:S_},C_="Ga terug",E_="Sluiten",A_="Mobiel nummer",P_="Leeg veld",L_={placeholder:{day:"JJ",month:"MM",year:"AAAA"}},T_={back:C_,close:E_,phoneNumber:A_,clearField:P_,date:L_},M_="Sluiten",x_="",I_="Vrij",R_="Om meer te weten",$_={seeLess:"Zie minder suggesties",seeMore:"Zie meer suggesties"},O_="(nieuw raam)",N_={requiredField:"dit veld is verplicht"},z_={technical:"Fouten maken is menselijk, maar deze keer is het vrij technisch! ",notFound:"Oeps, niets interessants hier!",basketChange:"Uw betaling is mislukt omdat uw winkelmandje is gewijzigd."},D_="Werk uw winkelmandje bij",B_="Keer terug naar de startpagina",F_="herlaad de pagina",j_="Ververs de pagina.",q_="Onze klantenservice van La Redoute staat tot uw beschikking: - Bel 043 202 94 67 van maandag t/m vrijdag van 9.00 tot 18.00 uur (tijden onder voorbehoud) geven onze assistenten je alle informatie die je nodig hebt. ",V_="Land",U_="Belgie",H_="Bulgarije",G_="Cyprus",K_="Denemarken",W_="Duitsland",Y_="Estland",Z_="Finland",J_="Frankrijk",X_="Griekenland",Q_="Groot Brittanie",e0="Hongarije",t0="Ierland",n0="IJsland",r0="Italie",a0="Kroatie",i0="Letland",o0="Liechtenstein",s0="Litouwen",l0="Luxemburg",c0="Malta",u0="Nederland",d0="Noorwegen",p0="Oostenrijk",m0="Polen",h0="Portugal",g0="Roemenie",f0="Slovenie",v0="Slowakije",b0="Spanje",y0="Tsjechische Republiek",_0="Zweden",k0="Zwitserland",w0={quantity:"hoeveelheid",price:{regular:"Prijs",sale:"prijs na korting"},size:"Maat",color:"Kleur",customization:"Gepersonaliseerd product met de tekst:"},S0={cgv:"/nl/sellconditions.aspx",mkpCgv:"",privacyPolicy:"/nl/confidentiality.aspx",collectsPersonalData:"/nl/confidentiality.aspx",cguLoyaltyProgram:"",btobSalesConditions:"",privacyCenter:"/nl/privacy_center.aspx",partnersList:""},C0={close:M_,back:x_,freeValue:I_,learnMore:R_,suggestion:$_,newTab:O_,form:N_,pageErrors:z_,redirectBasketPage:D_,redirectMainPage:B_,refreshPage:F_,refreshPageHint:j_,customerServiceHint:q_,country:V_,country_BE:U_,country_BG:H_,country_CY:G_,country_DK:K_,country_DE:W_,country_EE:Y_,country_FI:Z_,country_FR:J_,country_GR:X_,country_GB:Q_,country_HU:e0,country_IE:t0,country_IS:n0,country_IT:r0,country_HR:a0,country_LV:i0,country_LI:o0,country_LT:s0,country_LU:l0,country_MT:c0,country_NL:u0,country_NO:d0,country_AT:p0,country_PL:m0,country_PT:h0,country_RO:g0,country_SI:f0,country_SK:v0,country_ES:b0,country_CZ:y0,country_SE:_0,country_CH:k0,product:w0,links:S0},E0="Levering en betaling, La Redoute",A0={information:"Mijn facturatie adres",order:"Kies een bezorgmethode",payment:"Kies een betaalmethode",securedPayment:"100% veilige betaling"},P0="Wij verzenden niet naar uw land, geef een afleveradres op in een van de aangeboden landen.",L0="",T0="Winkelmandje",M0="Levering en betaling",x0="Adres",I0="7",R0="Meer dan 2 300 Pakjespunten (Postkantoor, PostPunt, Pakjespunt, Pakjesautomaat) , u bent zeker dicht bij huis geleverd te worden !",$0="",O0="",N0="Korting",z0="",D0="",B0="Adres gebruikt voor uw facturering",F0="Mijn adresgegevens wijzigen ",j0="Bezorgadres bewerken",q0="inclusief BTW",V0="Mobiel nummer",U0="wettelijke vermeldingen",H0="zie de details",G0="Verzenden",K0="Verzendkosten",W0="Bijdrage voor omvangrijke artikelen",Y0="Betalingskosten",Z0="Overzicht",J0="Totaal",X0="Totaal (zonder korting)",Q0="Wijzig mijn winkelmandje",e1="Selecteer een verzendmethode",t1="Uw winkelmandje lijkt een of meer artikelen te bevatten die niet op het opgegeven adres kunnen worden afgeleverd.<br />U kunt uw winkelmandje of uw adres wijzigen via onderstaande knoppen",n1="Artikelen uit mijn winkelwagen verwijderen",r1="Verzenden naar een ander adres",a1="Stuur naar Nederland",i1={disabledInfo:"Om toegang te krijgen tot dit gedeelte, voltooit u de voorgaande stappen op de pagina."},o1={sentBy:"Artikelen uit uw bestelling",soldBy:"verkocht door <strong>{{sellerName}}</strong>",hasHomeDeliveryOnly:"Deze verkoper biedt alleen thuisbezorging aan",information:"",information_bulky:"volumineuze artikelen",information_small:"reguliere artikelen"},s1={fieldset:"Kies een bezorgmethode",delay:{type:"",type_A:"In bereiding",type_B:"Levering op afspraak",type_C:"Verzonden binnen 4 tot 6 dagen. Levering op afspraak",type_D:"Levering binnen de 3 tot 5 dagen",type_E:"Levering binnen de 2 tot 4 dagen",type_F:"Uitverkocht. Voorraad voorzien binnen enkele week(en) ongeveer",type_G:"Uitverkocht"},date:{range:"Beschikbaar voor verzending tussen dagen {{from}} Het is {{to}}",day:"Verwachte levering op de dag {{date}}",estimated:"Levering van {{date}}",exact:"De {{date}}"},type:{name:"",name_03:"Leveringspunt",name_05:"Aan huis / op een ander adres",name_06:"Comfort levering"},home:{info:"Zodra uw pakket is verstuurd, kan u de verschillende stappen van de levering opvolgen in uw klantenaccount alsook op de app Bpost/Postnl. ",shippingFormMessage:"Dit adres geldt voor al uw <strong>leveringen aan huis</strong> en hierdoor kunnen de eerder aangegeven leveringsdata wijzigen."},pickpoint:{actions:{change:"Mijn leveringspunt wijzigen",details:"locatie en openingsuren",details_a11y:"locatie en openingsuren {{ pickpoint }}",schedule:"Openingsuren",schedule_a11y:"Openingsuren {{ pickpoint }}"},details:{address:"<strong>Huishouden</strong>",openings:"<strong>Tijdlijn</strong>"},modify:{title:"Mijn leveringspunt wijzigen",inactive:"Dit afleverpunt is tijdelijk niet beschikbaar",notfound:"<strong>Geen afleverpunt gevonden</strong> <br /> Vul een ander adres in",error:"<strong>er is een fout opgetreden </strong> <br /> Werk uw zoekopdracht naar afleverpunten bij",renew:"zoeken bijwerken",select:"Kies dit afleverpunt",form:{label:"jouw adres"},list:"Lijst",map:"Kaart",radius:"Zoek binnen een straal van","aria-label_skipGoogleMap":""}},email:{address:"",message:"",noMessage:""},fallback:{message:"Laden mislukt",retry:"Probeer het nog eens"},multiShipping:{title:"",item:""},showAll:"Kies een andere bezorgmethode",showAllFlag:"Er zijn nieuwe leveringswijzen beschikbaar",showBulkyHomeAvailable:"Gratis levering aan huis met La Redoute",showPickPointAvailable:"Gratis levering in het leveringspunt",icons_alt:{icon:"",icon_home:"Thuis"}},l1={title:"Mobiel nummer",banner:"Om uw levering te garanderen, hebben we een mobiel telefoonnummer nodig.",success:"Uw mobiele nummer is succesvol geregistreerd.",change:"Wijzig mijn mobiele nummer"},c1={fieldset:"Kies een betaal methode",disabledSelectionInfo:`
|
|
307
|
-
Om toegang te krijgen tot dit gedeelte, voltooit u de voorgaande stappen op de pagina.`,disabledSelectionInfo_contact:"Kies een bezorgmethode en voer een mobiel nummer in voor uw bestelling",type:{label:"",label_bankcard:"Creditcard","label_paypal-stripe":"PayPal","aria-label_paypalOneOrManyTimes":"Betaal met Paypal",label_paypalOneOrManyTimes:"Betaal met Paypal",label_paypalManyTimes:"Betaal met Paypal",label_bancontact:"Bancontact - Payconiq",label_klarna:"Shop nu. Betaal in 30 dagen met Klarna.",label_par:"Betaling na ontvangst"},payment_stripe:{description:"",description_paypal:"Wanneer u PayPal als betaalmethode kiest, wordt u doorgestuurd naar een beveiligingspagina, waar u zich moet identificeren in uw PayPal-account om uw bestelling af te ronden.",description_klarna:"Probeer. Betaal. Geniet.",description_ideal:"Bevestig uw bestelling, u zal dan doorverwezen worden naar onze beveiligde betalingspagina.",submit:"Bevestig de betaling van de bestelling",submit_paypal:"Bevestig betaling",submit_klarna:"Bevestig betaling",submit_ideal:"Bevestig betaling",record:{intro:"",intro_paypal:"",label:{optout:"",optin:"",optin_card:"Bewaar deze gegevens voor toekomstige aankopen.",optin_paypal:"Bewaar deze PayPal-accountgegevens voor toekomstige aankopen"}},errors:{confirm:"Er is een technische fout opgetreden tijdens de betalingsbevestiging."},icons_alt:{icon:"",icon_bankcard:"Bankpas"}},payment_bankcardAlias:{label:"bankpas",label_visa:"Visa",label_mastercard:"MasterCard",label_amex:"American Express","label_american express":"American Express",label_cb:"bankpas",endingWith:"met laatste 4 cijfers",expiresOn:"Verloopt op",submit:"Bevestig de betaling van de bestelling",redirectionFormLabel:"Automatische doorverwijzing naar de betaalpagina"},payment_par:{description:"<strong>Momenteel beschikbaar bedrag:</strong> {{amount}}<br/><br/>Na ontvangst van uw pakket, voor een bijdrage van {{ fees }}, heeft u een periode van 14 dagen om uw betaling uit te voeren.",labels:{birthdate:"Geboortedatum",day:"Dag",month:"Maand",year:"Jaar"},hint:"Om uw betaling te garanderen, verzoeken wij u uw geboortedatum aan ons door te geven.",actions:{submit:"Verzend mijn betaling en mijn bestelling"},errors:{date:"Voer een geldige datum in, bijvoorbeeld: 01/01/1970"}},mentionsLoyaltyRenewal:"",mentionsLr:"Door mijn bestelling te valideren, verklaar ik dat ik het <10>vertrouwelijkheidsbeleid</10> en het verzamelen van <13>persoonlijke gegevens</13> en cookies heb gelezen.",mentionsLrLoyalty:"",mentionsMkp:"",mentionsMkpLoyalty:"",mentionsLrMkp:"",mentionsLrMkpLoyalty:"",mentionBtobLr:"",mentionBtobMkp:"",mentionBtobLrMkp:"",generalSalesConditions:"Algemene verkoopvoorwaarden",btobSalesConditions:"",privacyPolicy:"Privacybeleid",collectsPersonalData:"Verzameling van persoonsgegevens",cguLoyaltyProgram:"Algemene gebruiksvoorwaarden La Redoute",cgvPaymentMethod:"Door uw bestelling te bevestigen gaat u akkoord met de <1>Algemene verkoopsvoorwaarden.</1>",cgvPaymentMethodBtoB:"",fallback:{message:"Kan betaalmethode niet laden.",retry:"Probeer het nog eens"},showAll:"Kies een andere betaalmethode",showAllFlag:"Er zijn nieuwe betaalmethoden beschikbaar.",errors:{error:"Er is een betalingsfout opgetreden.",error_RH00045C_600:"Je bestelling is geannuleerd omdat je onlangs nog een soortgelijke bestelling hebt geplaatst. ",error_RB00072C_010:"Deze betaalmethode kan niet worden gebruikt. Neem contact met ons op.",error_RB00072C_011:"Deze betaalmethode kan niet worden gebruikt. Neem contact met ons op.",error_RB00072C_012:"Deze betaalmethode kan niet worden gebruikt. Neem contact met ons op.",error_RB00072C_013:"Deze betaalmethode kan niet worden gebruikt. Neem contact met ons op.",error_RB00072C_014:"Uw tegoed is onvoldoende.",error_RB00072C_020:"Deze geboortedatum wijkt af van ons klantenbestand. Gelieve dit te corrigeren.",error_GENERIC_DECLINE:"Er is een betalingsfout opgetreden",error_EXPIRED_CARD:"uw betaalkaart is verlopen",error_INSUFFICIENT_FUNDS:"Uw kaartsaldo is onvoldoende.",error_PAYMENT_INTENT_AUTHENTICATION_FAILURE:"Betaling afgewezen. Probeer het opnieuw of neem contact op met de klantenservice.",error_PAYMENT_METHOD_CUSTOMER_DECLINE:"Betaling afgewezen. Probeer het opnieuw of neem contact op met de klantenservice."},icons_alt:{icon_bankcard:"Bankpas",icon_paymentAfterReceipt:"Betaling na ontvangst"}},u1={processing:"Bezig met laden",wait:"Even geduld aub..."},d1={flag:"",label:"U ontdekt onze nieuwe aankooppagina.",status:"",flagFirstApplyPreferences:"Eenvoudiger winkelen",labelFirstApplyPreferences:"Uw aankoopproces is aangepast aan de keuzes uit uw eerdere bestellingen."},p1={banner:{header:"",header_added:"",switch:"",switch_added:"",list:{freeHomeDelivery:"",discount:""},accept:"",conditions:"",informations:""},modal:{header:"",list:{freeHomeDelivery:"",discountFashion:"",discountHome:""},accept:"",skip:"",conditions:"",informations:""},toggle:{error:"",error_add:"",error_remove:""},payment:{mention:"",mention_paypal:"",mention_rPremium:"",mention_aliases:""}},m1={header:{name:"",usedAmount:"",modify:"",usedAmount_one:"",usedAmount_other:""},details:{info:"",validityDate:"",number:"",selectVouchers:"",submit:"",submit_disabled:"",submit_complete:""},residual:""},h1={minimalConfirmationDescription:"Bedankt voor je bestelling {{orderId}}. ",minimalConfirmationRefreshHint:"Details zullen in de komende minuten beschikbaar zijn in uw account."},g1={backButton:"",pageTitle:"",welcome:{label:"",status:"",flag:""},headings:{payment:"",securedPayment:""}},f1={backButton:"",pageTitle:"",welcome:{label:"",status:"",flag:""},headings:{payment:"",securedPayment:""},submit:""},v1={pageTitle:E0,headings:A0,noAddresseTitle:P0,noAddressLegalText:L0,cart:T0,deliveryAndPayment:M0,addressStepper:x0,storageDuration:I0,deliveryRetainment:R0,detax:$0,detaxIframeTitle:O0,discount:N0,appliedVouchers:z0,ecopart:D0,billingAddressInformation:B0,editMyBillingAddress:F0,editMyShippingAddress:j0,includedVAT:q0,phoneNumber:V0,legalmentions:U0,seeDetail:H0,shippingFees:G0,shippingFees_estimated:K0,additionalShippingFees:W0,paymentFees:Y0,summary:Z0,total:J0,totalArticles:X0,updateBasket:Q0,selectADelivery:e1,infoPartialDelivery:t1,deleteArticleInBasket:n1,updateDeliveryAddress:r1,updateDeliveryAddress_limited:a1,billingAddress:i1,seller:o1,deliveries:s1,contact:l1,payments:c1,transaction:u1,opinion:d1,loyalty:p1,vouchers:m1,confirmation:h1,renewal:g1,parAccountPayment:f1},b1="€ 1",y1="30",_1="",k1="",w1={homepage:"De startpagina van La Redoute"},S1="",C1={item_deadlineToChangeOpinion:{title:"$t(navigation:withdrawalPeriod) dagen om uw artikelen te retourneren",title_break:"$t(navigation:withdrawalPeriod) dagen om uw artikelen te retourneren<br/>",subtitle:"Goed nieuws! U heeft $t(navigation:withdrawalPeriod) dagen om van gedachten te veranderen!",info:{1:"GRATIS retour. U heeft $t(navigation:withdrawalPeriod) dagen na levering om uw artikelen te retourneren. ",2:"Uw artikelen worden terugbetaald op dezelfde manier als u betaald heeft zodra uw retour geregistreerd is in onze magazijnen. "},link:{aria:"$t(common:learnMore) over ruilen en retourneren",href:"/new-return.aspx"}},item_freeReturn:{title:"Gratis retour",title_break:"",subtitle:"Retourneren is GRATIS voor ALLE artikelen bij La Redoute binnen 30 dagen. ",info:{1:"<b>Kledij en kleine artikelen</b>: Plaats uw artikel in het originele zakje/doos. Het volstaat om uw retourlabel met barcode boven op het leveringsetiket van uw origineel pakket te kleven. Ga naar het dichtstbijzijnde Pakjespunt/Postkantoor van Bpost en geef uw retourpakket gratis af. U zal een retourbewijs ontvangen. ",2:"<b>Meubelen en grote artikelen</b> : Artikelen die werden geleverd op afspraak komen we gratis bij u ophalen. Contacteer ons via een Chat, Whatsapp, Messenger of telefonisch.",3:"Uw terugbetaling vindt plaats na bewerking van de retour in ons magazijn en via de oorspronkelijke betaalwijze.",4:""},link:{aria:"$t(common:learnMore) over ruilen en retourneren",href:"/new-return.aspx"}},item_freeShippingInRelayFrom:{title:"Verzending vanaf I€ in een pakjespunt",title_break:"Levering vanaf 1.99€ in een pakjespunt of 2,99€ aan huis",subtitle:"Levering van kledij en kleine artikelen aan 1.99€ (in een Pakjespunt) of thuis vanaf 2,99€",info:{1:"Voor <b>kledij en kleine artikelen</b>, u heeft de keuze voor de levering: bij u thuis, in een Pakjespunt Bpost naar keuze of in een automaat.",2:"Voor <b>grote artikelen</b>, thuislevering vanaf €4.99 (de bezorgkosten worden tijdens het afrekenen berekend op basis van het grootste artikel in het winkelmandje)"},link:{aria:"$t(common:learnMore) over verzendwijzen",href:"/new-delivery.aspx"}},item_securedPayment:{title:"Veilige betaling",title_break:"Betaling<br/> veilig",subtitle:"Bij La Redoute is uw betaling 100% veilig!",info:{1:"Al onze betaalmethoden maken gebruik van geavanceerde beveiligingsmethoden.",2:"Wij beschermen uw privacy",3:"Wij slaan uw gegevens niet op"},link:{aria:"$t(common:learnMore) over betalingswijzen",href:"/new-payment.aspx"}}},E1={information:"",disconnect:""},A1={startPriceFreeDeliveryRelay:b1,withdrawalPeriod:y1,accessibilityHint:_1,facilityLinkTitle:k1,link:w1,sourdLineLinkTitle:S1,reinsurance:C1,logAsBanner:E1},P1={fields:{email:{label:"",label_signup:"",hint:"Vous avez déjà un compte ? <1>Connectez-vous</1>",errors:{required:"",length:"",format:""}},password:{label:"",label_signup:"",errors:{required:"",space:"",length:""},visibility:{hide:"",show:""},hint:{length:"",uppercase:"",lowercase:"",digit:""}},birthdate:{label:"",label_signup:"",errors:{invalid:"",young:""},hint:""},enterprise:{groupLabel:"",contactGroupLabel:"",addressGroupLabel:"",country:{label:""},corporateName:{label:"",errors:{length:"",format:""}},siret:{label:"",errors:{length:"",format:""}},vat:{label:"",errors:{length:"",format:""}}},address:{title:{label:"Geslacht",placeholder:"Selecteer een Geslacht",opts:{mrs:"Mevrouw",miss:"Geen",emp:"",mr:"Meneer"}},firstname:{label:"Voornaam",errors:{required:"Gelieve uw voornaam in te vullen",format:"Onjuist formaat: gebruik alleen letters",length:"Voer tussen de 2 en 32 tekens in"}},lastname:{label:"Achternaam",errors:{required:"Voer alstublieft uw bijnaam in",format:"Onjuist formaat: gebruik alleen letters",length:"Voer tussen de 2 en 32 tekens in"}},street:{label:"Adres (straat)",errors:{required:"Voer uw adres in",length:"Voer maximaal 40 tekens in"}},houseNumber:{label:"Huisnummer",errors:{length:"Voer maximaal 40 tekens in"}},streetComplement:{label:"Bijvoegsel, busnummer, verdieping • optioneel",errors:{length:"Voer maximaal 40 tekens in"}},hamlet:{label:"",errors:{length:""}},province:{label:"",errors:{length:""}},zipCode:{label:"Postcode",errors:{required:"Voer een geldige postcode in",format:"Onjuist formaat: 4 cijfers",length:"Onjuist formaat: 4 cijfers"}},zipCodeComplement:{label:"",errors:{required:"",format:"",length:""}},city:{label:"Stad/Gemeente",errors:{required:"Gelieve uw postadres aan te geven",format:"Onjuist formaat: gebruik alleen letters",length:"Voer maximaal 32 tekens in"},placeholder:"Selecteer een stad"},country:{label:"Land"},phoneNumber:{label:"Telefoon",label_mobile:"mobiele telefoon",errors:{required:"Om uw leveringen te vergemakkelijken: voer uw mobiele nummer in",format:{fixe:"Voer alstublieft een geldig telefoonnummer in",mobile:"Voer een geldig mobiel telefoonnummer in"}},hint:"Als we contact met u moeten opnemen over uw bestelling","hint_phone-only":"Niet gebruikt voor commerciële prospectie"},phonePrefix:{label:"Landcode",errors:{required:""}}},options:{updateShipping:{label:"Gebruik ook als afleveradres"}},subscriptions:{label:"",collapse:{label:"",description:""},yes:"",no:"",options:{type:""},hint:{type:""}}},title:"Aanpassen","title_billing-address":"Wijzig mijn facturatie adres","title_shipping-address":"Wijzig mijn afleveradres","title_phone-only":"Mobiel nummer",submit:"Bevestigen","submit_billing-address":"Bevestig mijn facturatie adres","submit_shipping-address":"Bevestig mijn afleveradres","submit_phone-only":"Bevestigen",globalError:"Er is een fout opgetreden.","globalError_phone-only":"Er is een fout opgetreden. ",globalError_010:"Er is een fout opgetreden. De ingevoerde postcode en postcode komen niet overeen.",globalError_011:"Er is een fout opgetreden. De ingevoerde postcode en postcode komen niet overeen.",back:"Précédent"},L1={suggestions:{title:"",info:"",hint:"",form:{fields:{streetNumber:{label:"",info:""},addressControlChoice:{label:"",label_one:"",label_other:"",label_reenter_one:"",label_reenter_other:""},editPreviousAddress:{label:""},keepPreviousAddress:{label:""}},submit:"",submit_enabled:"",submit_disabled:""}}},T1={form:P1,address:L1},M1={pageTitle:"La Redoute, Mode française | La Redoute",title:"",information:"",showPassword:"Wachtwoord tonen",hidePassword:"Wachtwoord verbergen"},x1={pageTitle:"",form:{fields:{civility:{label:"",placeholder:"",errors:{required:""}},lastName:{label:"",errors:{required:"",length:"",format:""}},firstName:{label:"",errors:{required:"",length:"",format:""}},email:{label:"",errors:{required:"",length:"",format:""}},description:{label:"",placeholder:"",errors:{required:""}},message:{label:"",hint:"",errors:{length:""}},validation:{label:"",errors:{required:""}},url:{label:"",errors:{required:"",length:""}},attachment:{label:""}},globalError:"",submit:"",title:"",legalText:"",legalContact:""},confirmationPage:{title:"",description:"",cta:""}},I1={signup:M1,illegalContentReport:x1},R1={ui:T_,common:C0,checkout:v1,navigation:A1,user:T1,customer:I1},$1="Volver",O1="Cerrar",N1="Número de teléfono móvil",z1="Vaciar campo",D1={placeholder:{day:"JJ",month:"MM",year:"AAAA"}},B1={back:$1,close:O1,phoneNumber:N1,clearField:z1,date:D1},F1="Cerrar",j1="",q1="Gratis",V1="Saber mas",U1={seeLess:"Ver menos sugerencias",seeMore:"Vea más recomendaciones"},H1="(nueva ventana)",G1={requiredField:"Este campo es obligatorio"},K1={technical:"Errar es humano, ¡pero esta vez es bastante técnico! ",notFound:"Ups, nada interesante aquí!",basketChange:"Tu pago falló porque tu carrito fue cambiado."},W1="Actualiza tu carrito",Y1="Regresar a la página principal",Z1="Recargar la pagina",J1="Recarga la página.",X1="Nuestro Servicio de Atención al Cliente de La Redoute está a tu disposición: - Llama al 244 810 000 (coste de llamada a red fija nacional) o al 707 20 10 10 (0,11€/min para llamadas realizadas desde red fija, y 0,16€/min para llamadas desde la red móvil), de lunes a viernes de 9 a 18 horas (horario sujeto a cambios) nuestros asistentes te brindarán toda la información que necesites. ",Q1="País",ek="Alemania",tk="Austria",nk="Bélgica",rk="Bulgaria",ak="Suiza",ik="Chipre",ok="República Checa",sk="Croacia",lk="Dinamarca",ck="España",uk="Estonia",dk="Finlandia",pk="Francia",mk="Grecia",hk="Hungría",gk="Irlanda",fk="Islandia",vk="Italia",bk="Liechsteinstein",yk="Letonia",_k="Lituania",kk="Luxemburgo",wk="Malta",Sk="Noruega",Ck="Países Bajos",Ek="Polonia",Ak="Portugal",Pk="Rumania",Lk="Reino Unido",Tk="Eslovaquia",Mk="Eslovenia",xk="Suecia",Ik={quantity:"Cantidad",price:{regular:"Precio",sale:"precio después del descuento"},size:"Tamaño",color:"Color",customization:"Producto personalizado con el texto:"},Rk={cgv:"/condiciones-de-venta.aspx",mkpCgv:"",privacyPolicy:"/politica-de-privacidad.aspx",collectsPersonalData:"/politica-de-cookies.aspx",cguLoyaltyProgram:"",btobSalesConditions:"/b2b/condicionesdeventa.aspx",privacyCenter:"/privacy_center.aspx",partnersList:""},$k={close:F1,back:j1,freeValue:q1,learnMore:V1,suggestion:U1,newTab:H1,form:G1,pageErrors:K1,redirectBasketPage:W1,redirectMainPage:Y1,refreshPage:Z1,refreshPageHint:J1,customerServiceHint:X1,country:Q1,country_DE:ek,country_AT:tk,country_BE:nk,country_BG:rk,country_CH:ak,country_CY:ik,country_CZ:ok,country_HR:sk,country_DK:lk,country_ES:ck,country_EE:uk,country_FI:dk,country_FR:pk,country_GR:mk,country_HU:hk,country_IE:gk,country_IS:fk,country_IT:vk,country_LI:bk,country_LV:yk,country_LT:_k,country_LU:kk,country_MT:wk,country_NO:Sk,country_NL:Ck,country_PL:Ek,country_PT:Ak,country_RO:Pk,country_UK:Lk,country_SK:Tk,country_SI:Mk,country_SE:xk,product:Ik,links:Rk},Ok="Entrega y pago, La Redoute",Nk={information:"Mi dirección de facturación",order:"Elige tu forma de entrega",payment:"Elige tu forma de pago",securedPayment:"Pago 100% seguro"},zk="No enviamos a su país, proporcione una dirección de entrega en uno de los países ofrecidos.",Dk="",Bk="Cesta",Fk="Entrega y Pago",jk="Dirección",qk="7",Vk="",Uk='Dispondrás de $t(checkout:storageDuration, {"context": "{{context}}" }) días desde la entrega de tu pedido para recogerlo en el Punto de Recogida',Hk="",Gk="",Kk="Descuento",Wk="",Yk="",Zk="Dirección de facturación",Jk="Editar mi dirección",Xk="Elegir otra dirección de entrega",Qk="VAT incluido",ew="Número de teléfono móvil",tw="Menciones legales",nw="Ver detalles",rw="Envío",aw="Costos de envío",iw="",ow="Tasas de pago",sw="Detalles del pedido",lw="Total",cw="Total (sin descuento)",uw="Modificar mi cesto",dw="Seleccione un método de envío",pw="Su cesta parece contener uno o más artículos que no se pueden enviar a la dirección especificada.<br />Puedes cambiar tu cesta o tu dirección usando los botones de abajo",mw="Quitar artículos de mi cesta",hw="Enviar a otra dirección",gw="Enviar a Portugal",fw={disabledInfo:"Para acceder a esta sección, complete los pasos anteriores en la página."},vw={sentBy:"Artículos de tu pedido",soldBy:"Vendido por <strong>{{sellerName}}</strong>",hasHomeDeliveryOnly:"Este vendedor solo ofrece entrega a domicilio",information:"",information_bulky:"Objetos voluminosos",information_small:"Artículos regulares"},bw={fieldset:"Elija un método de entrega",delay:{type:"",type_A:"Entrega en 4 a 9 días laborables",type_B:"Agotado",type_C:"Entrega en 8 a 11 días laborables",type_D:"Entrega en 4 a 9 días laborables",type_E:"El plazo de entrega depende de cada artículo."},date:{range:"Disponible para envío entre días {{from}} Es {{to}}",day:"Entrega prevista en el día {{date}}",estimated:"Entrega de {{date}}",exact:"El {{date}}"},type:{name:"",name_03:"Entrega en oficina MRW",name_04:"Entrega a domicilio con montaje",name_05:"Entrega a domicilio MRW",name_06:"Entrega a domicilio",name_07:"Entrega a pie de calle",name_10:"Entrega en punto de recogida y Lockers INPOST"},home:{info:"",info_A:"En la estancia que elijas. No incluye el desembalaje ni el montaje de la mercancía.",info_B:`Montaje disponible solo para productos con opción de montaje indicado en la cesta (máximo 2 artículos).
|
|
308
|
-
En la estancia que elijas. Incluye el desembalaje de la •mercancía, el montaje y la retirada de embalajes. `,info_C:"Nuestro transportista se pondrá en contacto contigo para acordar la fecha de entrega. No sube ni entrega en el interior de la casa o edificio.",shippingFormMessage:"Esta dirección se aplicará a todos sus <strong>entregas a domicilio</strong> y esto puede cambiar las fechas de entrega indicadas anteriormente."},pickpoint:{actions:{change:"Cambiar mi punto de entrega",details:"Ubicación y horario",details_a11y:"Ubicación y horario {{ pickpoint }}",schedule:"Horarios",schedule_a11y:"Horarios {{ pickpoint }}"},details:{address:"<strong>Dirreción</strong>",openings:"<strong>Horarios</strong>"},modify:{title:"Haga clic para elegir un punto de recogida",inactive:"Este punto de entrega no está disponible temporalmente",notfound:"<strong>No se encontró ningún punto de entrega</strong> <br /> Introduce otra dirección",error:"<strong>oOurrio un error </strong> <br /> Por favor actualice su búsqueda de punto de entrega",renew:"Actualizar búsqueda",select:"Elige este punto de entrega",form:{label:"Busca por ubicación o código. "},list:"Lista",map:"Mapa",radius:"Buscar dentro de un radio de","aria-label_skipGoogleMap":""}},email:{address:"",message:"",noMessage:""},fallback:{message:"Falló al cargar",retry:"Inténtalo de nuevo"},multiShipping:{title:"",item:""},showAll:"Cambiar método de entrega",showAllFlag:"Hay nuevos modos de entrega disponibles",showBulkyHomeAvailable:"Reparto a domicilio gratuito con La Redoute",showPickPointAvailable:"Entrega gratuita en el punto de RECOGIDA"},yw={title:"Número de teléfono móvil",banner:"Para garantizar su entrega, necesitamos un número de teléfono móvil.",success:"Su número de móvil ha sido registrado con éxito.",change:"Cambiar mi número de móvil",icons_alt:{icon:"",icon_home:"Hogar"}},_w={fieldset:"Elija un método de pago",disabledSelectionInfo:"Para acceder a esta sección, complete los pasos anteriores en la página.",disabledSelectionInfo_contact:"Elija un método de entrega e ingrese un número de teléfono móvil para su pedido",type:{label:"",label_bankcard:"Tarjeta de crédito",label_paypal:"PayPal","label_paypal-stripe":"PayPal","aria-label_paypalOneOrManyTimes":"Paga con Paypal en 1 cuota o 3 cuotas sin comisiones",label_paypalOneOrManyTimes:"Paga con Paypal en hasta 3 cuotas sin comisiones",label_paypalManyTimes:"Paga con Paypal en hasta 3 plazos sin comisiones","label_sequra-3x":"Paga en 3 cuotas sin coste o hasta 18","label_sequra-30dias":"Paga después de recibir tu pedido","label_cash-on-delivery":"Contra-Reembolso"},payment_bankcard:{submit:"Confirmo mi compra",legalMentionsLink:"Consulta las condiciones generales",changeBrand:"Seleccione otra opción",brandInfo:' El pago se realizará con la opción $t(checkout:payments.bankcard.brandLabel, {"context": "{{brand}}" }). ',fields:{cardNumber:"Numero de tarjeta",expirationDate:"Fecha de validez",cvv:"CVV"},saveAlias:"",saveAlias_optin:"Guarda estos datos para futuras compras en La Redoute.",saveAlias_optout:"",fidelity:"",loyaltyProgramMentions:"Al suscribirte a La Redoute, aceptas que tus métodos de pago se almacenen de forma segura y que se utilicen con el fin de gestionar tus suscripciones de renovación tácita.",brandLabel:"CB",brandLabel_cb:"CB",brandLabel_visa:"Visa",brandLabel_mastercard:"Tarjeta MasterCard",brandLabel_amex:"American Express",errors:{init:"Ocurrio un error.",required:"Este campo es obligatorio.",confirm:"Ocurrió un error técnico durante la confirmación del pago."}},payment_stripe:{description:"",description_paypal:`En el momento en el que pulses el botón "Confirmo mi compra" serás redirigido a la web de PayPal donde podrás finalizar el pago.
|
|
309
|
-
Tu pedido será confirmado cuando se haya validado el pago en el sitio web de PayPal.`,submit:"Confirmo mi compra",submit_paypal:"Confirmo mi compra",record:{intro:"",intro_paypal:"",label:{optout:"",optin:"",optin_card:"Guarda estos datos para futuras compras.",optin_paypal:"Guarde los datos de esta cuenta de PayPal para futuras compras"}},errors:{confirm:"Ocurrió un error técnico durante la confirmación del pago."},icons_alt:{icon:"",icon_bankcard:"Tarjeta de crédito"}},payment_bankcardAlias:{label:"Tarjeta de crédito",label_visa:"Visa",label_mastercard:"MasterCard",label_amex:"American Express","label_american express":"American Express",label_cb:"Tarjeta de crédito",endingWith:"terminación en",expiresOn:"Expira en",submit:"Confirmo mi compra",redirectionFormLabel:"Redirección automática a la página de pago"},payment_sequra:{info:"",info_3x:`- Sin costes si eliges dividir el pago en 3 meses o con un coste único mensual si eliges 6, 12 o 18 meses. Sin intereses ocultos ni letra pequeña. La aprobación es instantánea.<br/>
|
|
310
|
-
- El primer pago se hace con tarjeta bancaria en el momento de la compra. Te cargaremos automáticamente el resto de pagos en la misma tarjeta.<br/>
|
|
311
|
-
- Puedes pagar la totalidad cuando tú quieras. `,info_30dias:"<ol><li>Realiza tu pedido.</li><li>Paga con tu tarjeta bancaria solo 1.95€ en concepto de gastos de gestión (no reembolsables)</li><li>Recibe tu pedido en casa, pruébate las prendras y estrénalas.</li><li>Olvídate de todo y SeQura cargará el importe de tu compra en la misma tarjeta bancaria 30 dias después de la fecha de realización de pedido.</li><li>Es posible pagar antes. Para ello, contacta con SeQura.</li></ol>",submit:"Confirmo mi compra",contact:{title:"Tienes alguna pregunta ?",content:"¿Tienes alguna pregunta ? Habla con nuestro partner <1>SeQura</1> a través de su WhatsApp (93 176 00 08) o envía un e-mail a <3>clientes@sequra.es</3>",email:"mailto:clientes@sequra.es",link:"https://www.sequra.es/contacto/compradores"}},payment_par:{description:"Realizo el pago de mi pedido en efectivo en el momento de la entrega de mi paquete.<br/>Coste de gestión del contra reembolso: {{ fees }} <br/><strong>Atención, este es el último paso en la tramitación del pedido.</strong><br/><br/>Introduce por favor el IBAN en tu espacio de cliente, ya que en caso de que tengas que hacer una devolución, si no disponemos de él, el reembolso se hará mediante un cheque.",actions:{submit:"Confirmo mi compra"}},mentionsLoyaltyRenewal:"",mentionsLr:"Al validar mi pedido, acepto y declaro haber leído las <2>Condiciones Generales de Venta Laredoute.es</2>, la <10>Política de privacidad</10> y <13>la recogida de datos personales</13>.",mentionsLrLoyalty:"",mentionsMkp:"",mentionsMkpLoyalty:"",mentionsLrMkp:"",mentionsLrMkpLoyalty:"",mentionBtobLr:"",mentionBtobMkp:"",mentionBtobLrMkp:"",generalSalesConditions:"Condiciones generales de venta",btobSalesConditions:"",privacyPolicy:"Política de privacidad",collectsPersonalData:"Recogida de datos personales",cguLoyaltyProgram:"Condiciones generales de uso La Redoute",cgvPaymentMethod:"He leído y acepto la <1>condiciones generales de venta</1>",cgvPaymentMethodBtoB:"He leído y acepto la <1>Términos y Condiciones Clientes Profesionales</1>",fallback:{message:"Error al cargar el método de pago.",retry:"Inténtalo de nuevo"},showAll:"Cambiar método de pago",showAllFlag:"Hay nuevos métodos de pago disponibles.",errors:{error:"Ocurrió un error de pago.",error_RH00045C_600:"Su pedido ha sido cancelado porque recientemente realizó otro pedido similar. ",error_RB00072C_037:"Número de teléfono no válido.",error_RB00072C_014:"Su crédito es insuficiente. ",error_GENERIC_DECLINE:"Ocurrió un error de pago",error_EXPIRED_CARD:"Su tarjeta de pago ha caducado",error_INSUFFICIENT_FUNDS:"El saldo de tu tarjeta es insuficiente.",error_PAYMENT_INTENT_AUTHENTICATION_FAILURE:"Pago rechazado. ",error_PAYMENT_METHOD_CUSTOMER_DECLINE:"Pago rechazado. "},icons_alt:{icon_bankcard:"Tarjeta de crédito",icon_paymentAfterReceipt:"Pago después del recibo"}},kw={processing:"A cargar",wait:"Espere por favor..."},ww={flag:"",label:"",status:"info",flagFirstApplyPreferences:"Compras más fáciles",labelFirstApplyPreferences:"Tu proceso de compra se personaliza de acuerdo con tus elecciones en tus pedidos anteriores."},Sw={banner:{header:"",header_added:"",switch:"",switch_added:"",list:{freeHomeDelivery:"",discount:""},accept:"",conditions:"",informations:""},modal:{header:"",list:{freeHomeDelivery:"",discountFashion:"",discountHome:""},accept:"",skip:"",conditions:"",informations:""},toggle:{error:"",error_add:"",error_remove:""},payment:{mention:"",mention_paypal:"",mention_rPremium:"",mention_aliases:""}},Cw={header:{name:"",usedAmount:"",usedAmount_one:"",usedAmount_other:"",modify:""},details:{info:"",validityDate:"",number:"",selectVouchers:"",submit:"",submit_disabled:"",submit_complete:""},residual:""},Ew={minimalConfirmationDescription:"Gracias por su orden {{orderId}}. ",minimalConfirmationRefreshHint:"Los detalles estarán disponibles en su área de cliente en los próximos minutos."},Aw={backButton:"",pageTitle:"",welcome:{label:"",status:"",flag:""},headings:{payment:"",securedPayment:""}},Pw={backButton:"",pageTitle:"",welcome:{label:"",status:"",flag:""},headings:{payment:"",securedPayment:""},submit:""},Lw={pageTitle:Ok,headings:Nk,noAddresseTitle:zk,noAddressLegalText:Dk,cart:Bk,deliveryAndPayment:Fk,addressStepper:jk,storageDuration:qk,storageDuration_pickup:Vk,deliveryRetainment:Uk,detax:Hk,detaxIframeTitle:Gk,discount:Kk,appliedVouchers:Wk,ecopart:Yk,billingAddressInformation:Zk,editMyBillingAddress:Jk,editMyShippingAddress:Xk,includedVAT:Qk,phoneNumber:ew,legalmentions:tw,seeDetail:nw,shippingFees:rw,shippingFees_estimated:aw,additionalShippingFees:iw,paymentFees:ow,summary:sw,total:lw,totalArticles:cw,updateBasket:uw,selectADelivery:dw,infoPartialDelivery:pw,deleteArticleInBasket:mw,updateDeliveryAddress:hw,updateDeliveryAddress_limited:gw,billingAddress:fw,seller:vw,deliveries:bw,contact:yw,payments:_w,transaction:kw,opinion:ww,loyalty:Sw,vouchers:Cw,confirmation:Ew,renewal:Aw,parAccountPayment:Pw},Tw="50€",Mw="30",xw="",Iw="",Rw={homepage:"La página de inicio de La Redoute"},$w="",Ow={item_deadlineToChangeOpinion:{title:"Atención al cliente 7/7",title_break:"Atención al cliente 7/7",subtitle:"¡Contacta con nosotros!",info:{1:"Puedes enviarnos tus consultas al 747 75 38 15, te atenderemos de lunes a domingo de 9h a 22h.",2:"Ten listo tu número de cliente para facilitar tu proceso y contáctanos."},link:{aria:"$t(common:learnMore) sobre cambios y devoluciones",href:"/servicios.aspx?page=return"}},item_freeReturn:{title:"Atención al cliente 7/7",title_break:"Atención al cliente 7/7",subtitle:"¿Necesitas ayuda? ¡Estamos a tu disposición!",info:{1:"Para artículos elegibles para entrega en puntos de recogida, puedes devolverlos sin cargo a través de los mismos puntos.",2:"Los plazos medios de entrega publicados se basan en la disponiblidad de los artículos en el momento de hacer el pedido.",3:"En el reverso de tu factura tendrás todos los pasos necesarios en caso de que necesites devolver el producto.",4:"Se aplican términos y condiciones especiales para algunos artículos."},link:{aria:"$t(common:learnMore) sobre cambios y devoluciones",href:"/servicios.aspx?page=return"}},item_freeShippingInRelayFrom:{title:"Envíos GRATIS por 29€ de compra en puntos de recogida",title_break:"Envíos GRATIS* por 29€ de compra en puntos de recogida",subtitle:"Ponemos a tu disposición varias opciones de entrega, escoge la que se ajuste más a tus necesidades.",info:{1:"Recíbelo en tu domicilio o en el punto de recogida que elijas.",2:"Tenemos servicio de entrega a domicilio + montaje en artículos voluminosos."},link:{aria:"$t(common:learnMore) sobre los modos de envío",href:"/servicios.aspx?page=delivery"}},item_securedPayment:{title:"Pago seguro",title_break:"Pago<br/> seguro",subtitle:"Paga tu pedido de forma rápida y segura:",info:{1:"Todos nuestros métodos de pago utilizan métodos de seguridad avanzados.",2:"Protegemos tu privacidad.",3:"No guardamos tus datos."},link:{aria:"$t(common:learnMore) sobre métodos de pago",href:"/servicios.aspx?page=payment"}}},Nw={information:"",disconnect:""},zw={startPriceFreeDeliveryRelay:Tw,withdrawalPeriod:Mw,accessibilityHint:xw,facilityLinkTitle:Iw,link:Rw,sourdLineLinkTitle:$w,reinsurance:Ow,logAsBanner:Nw},Dw={fields:{email:{label:"",label_signup:"",hint:"Vous avez déjà un compte ? <1>Connectez-vous</1>",errors:{required:"",length:"",format:""}},password:{label:"",label_signup:"",errors:{required:"",space:"",length:""},visibility:{hide:"",show:""},hint:{length:"",uppercase:"",lowercase:"",digit:""}},birthdate:{label:"",label_signup:"",errors:{invalid:"",young:""},hint:""},enterprise:{groupLabel:"",contactGroupLabel:"",addressGroupLabel:"",country:{label:""},corporateName:{label:"",errors:{length:"",format:""}},siret:{label:"",errors:{length:"",format:""}},vat:{label:"",errors:{length:"",format:""}}},address:{title:{label:"Género",placeholder:"Seleccione un Género",opts:{mrs:"Femenino",miss:"",emp:"Empresa",mr:"Masculino"}},firstname:{label:"Nombre",errors:{required:"Por favor, introduzca su nombre de pila",format:"Formato incorrecto: use solo letras",length:"Introduzca entre 2 y 32 caracteres"}},lastname:{label:"Apellido",errors:{required:"Introduzca su apodo",format:"Formato incorrecto: use solo letras",length:"Introduzca entre 2 y 32 caracteres"}},street:{label:"Dirección",errors:{required:"Por favor ingrese su dirección",length:"Introduzca un máximo de 40 caracteres"}},houseNumber:{label:"Número • opcional",errors:{length:"Introduzca un máximo de 40 caracteres"}},streetComplement:{label:"Información adicional • opcional",errors:{length:"Introduzca un máximo de 40 caracteres"}},hamlet:{label:"Piso, Puerta • opcional",errors:{length:"Introduzca un máximo de 40 caracteres"}},province:{label:"Provincia",errors:{length:"Introduzca un máximo de 40 caracteres"}},zipCode:{label:"Código postal",errors:{required:"Por favor ingrese un código postal válido",format:"Formato incorrecto: ingrese un código postal de 5 dígitos",length:"Por favor ingrese un código postal de 5 dígitos"}},zipCodeComplement:{label:"",errors:{required:"",format:"",length:""}},city:{label:"Ciudad",errors:{required:"Por favor indique su ubicación postal",format:"Formato incorrecto: utilice solo letras",length:"Introduzca un máximo de 32 caracteres"},placeholder:"Seleccione una ubicación postal:"},country:{label:"País"},phoneNumber:{label:"Teléfono",label_mobile:"Teléfono móvil",errors:{required:"Para facilitar sus entregas: introduzca su número de teléfono móvil",format:{fixe:"Por favor ingrese un número de teléfono válido",mobile:"Por favor, introduzca un número de teléfono móvil válido"}},hint:"Si necesitamos comunicarnos contigo sobre tu pedido","hint_phone-only":"No se utiliza para la prospección comercial"},phonePrefix:{label:"Prefijo del país",errors:{required:""}}},options:{updateShipping:{label:"Usar también como dirección de entrega"}},subscriptions:{label:"",collapse:{label:"",description:""},yes:"",no:"",options:{type:""},hint:{type:""}}},title:"Para editar","title_billing-address":"Mi nueva dirección","title_shipping-address":"Cambiar mi dirección de entrega","title_phone-only":"Número de teléfono móvil",submit:"Confirmar","submit_billing-address":"Validar mi dirección","submit_shipping-address":"Confirmar mi dirección de entrega","submit_phone-only":"Confirmar",globalError:"Ocurrio un error.","globalError_phone-only":"Ocurrio un error. ",globalError_010:"Ocurrio un error. ",globalError_011:"Ocurrio un error. El código postal introducido y el código postal de la ciudad no coinciden.",back:"Précédent"},Bw={suggestions:{title:"",info:"",hint:"",form:{fields:{streetNumber:{label:"",info:""},addressControlChoice:{label:"",label_one:"",label_other:"",label_reenter_one:"",label_reenter_other:""},editPreviousAddress:{label:""},keepPreviousAddress:{label:""}},submit:"",submit_enabled:"",submit_disabled:""}}},Fw={form:Dw,address:Bw},jw={pageTitle:"La Redoute, Mode française | La Redoute",title:"",information:"",showPassword:"Mostrar contraseña",hidePassword:"Ocultar contraseña"},qw={pageTitle:"",form:{fields:{civility:{label:"",placeholder:"",errors:{required:""}},lastName:{label:"",errors:{required:"",length:"",format:""}},firstName:{label:"",errors:{required:"",length:"",format:""}},email:{label:"",errors:{required:"",length:"",format:""}},description:{label:"",placeholder:"",errors:{required:""}},message:{label:"",hint:"",errors:{length:""}},validation:{label:"",errors:{required:""}},url:{label:"",errors:{required:"",length:""}},attachment:{label:""}},globalError:"",submit:"",title:"",legalText:"",legalContact:""},confirmationPage:{title:"",description:"",cta:""}},Vw={signup:jw,illegalContentReport:qw},Uw={ui:B1,common:$k,checkout:Lw,navigation:zw,user:Fw,customer:Vw},Hw="Ritorno",Gw="Chiudi",Kw="Numero di cellulare",Ww="Campo vuoto",Yw={placeholder:{day:"JJ",month:"MM",year:"AAAA"}},Zw={back:Hw,close:Gw,phoneNumber:Kw,clearField:Ww,date:Yw},Jw="Chiudi",Xw="",Qw="Gratuita",eS="Scopri di più",tS={seeLess:"Visualizza meno suggerimenti",seeMore:"Visualizza altri consigli"},nS="(nuova finestra)",rS={requiredField:"Questo campo è obbligatorio"},aS={technical:"Errare è umano, ma questa volta è piuttosto tecnico! ",notFound:"Ops, niente di interessante qui!",basketChange:"Il tuo pagamento non è riuscito perché il tuo carrello è stato modificato."},iS="Aggiorna il tuo carrello",oS="Torna alla pagina principale",sS="Ricarica la pagina",lS="Ricarica la pagina.",cS="Il nostro Servizio Clienti La Redoute è a tua disposizione: - Chiama il 244 810 000 (costo della chiamata verso rete fissa nazionale) o 707 20 10 10 (0,11 €/min per le chiamate effettuate da rete fissa e 0,16 €/min per le chiamate da rete fissa) rete mobile), dal lunedì al venerdì dalle 9.00 alle 18.00 (orario soggetto a modifiche) i nostri assistenti ti forniranno tutte le informazioni di cui hai bisogno. ",uS="Paese",dS="Germania",pS="Austria",mS="Belgio",hS="Bulgaria",gS="svizzero",fS="Cipro",vS="Repubblica Ceca",bS="Croazia",yS="Danimarca",_S="Spagna",kS="Estonia",wS="Finlandia",SS="Francia",CS="Grecia",ES="Ungheria",AS="Irlanda",PS="Islanda",LS="Italia",TS="Liechtenstein",MS="Lettonia",xS="Lituania",IS="Lussemburgo",RS="malto",$S="Norvegia",OS="Olanda",NS="Polonia",zS="Portogallo",DS="Romania",BS="Regno Unito",FS="Slovacchia",jS="Slovenia",qS="Svezia",VS={quantity:"Quantità",price:{regular:"Prezzo",sale:"prezzo dopo lo sconto"},size:"Taglia",color:"Colore",customization:"Prodotto personalizzato con il testo:"},US={cgv:"/services/sellconditions.aspx",mkpCgv:"",privacyPolicy:"/staticpages/privacy.aspx",collectsPersonalData:"/staticpages/privacy.aspx",cguLoyaltyProgram:"",btobSalesConditions:"",privacyCenter:"/privacy_center.aspx",partnersList:""},HS={close:Jw,back:Xw,freeValue:Qw,learnMore:eS,suggestion:tS,newTab:nS,form:rS,pageErrors:aS,redirectBasketPage:iS,redirectMainPage:oS,refreshPage:sS,refreshPageHint:lS,customerServiceHint:cS,country:uS,country_DE:dS,country_AT:pS,country_BE:mS,country_BG:hS,country_CH:gS,country_CY:fS,country_CZ:vS,country_HR:bS,country_DK:yS,country_ES:_S,country_EE:kS,country_FI:wS,country_FR:SS,country_GR:CS,country_HU:ES,country_IE:AS,country_IS:PS,country_IT:LS,country_LI:TS,country_LV:MS,country_LT:xS,country_LU:IS,country_MT:RS,country_NO:$S,country_NL:OS,country_PL:NS,country_PT:zS,country_RO:DS,country_UK:BS,country_SK:FS,country_SI:jS,country_SE:qS,product:VS,links:US},GS="Consegna e pagamento, La Redoute",KS={information:"Indirizzo di fatturazione",order:"Scegli un metodo di consegna",payment:"Scegli un metodo di pagamento",securedPayment:"Pagamento sicuro al 100%."},WS="Non effettuiamo spedizioni nel tuo Paese, ti preghiamo di fornire un indirizzo di consegna in uno dei Paesi offerti.",YS="",ZS="Carrello",JS="Consegna e pagamento",XS="Indirizzo",QS="7",eC="7",tC='I tuoi articoli saranno disponibili per il ritiro per un periodo di $t(checkout:storageDuration, {"context": "{{context}}" }) giorni lavorativi presso il Punto di Raccolta',nC="",rC="",aC="Sconto",iC="",oC="",sC="Indirizzo di fatturazione",lC="Modifica il tuo indirizzo",cC="Scegli un altro indirizzo di consegna",uC="IVA inclusa",dC="Numero di cellulare",pC="Menzioni legali",mC="Guarda i dettagli",hC="Spedizione",gC="Spese di spedizione",fC="",vC="Contrassegno (+4,90€)",bC="Dettagli dell'ordine",yC="Totale",_C="Totale (senza sconto)",kC="Modifica il mio carrello",wC="Seleziona un metodo di spedizione",SC="Sembra che il tuo carrello contenga uno o più articoli che non possono essere spediti all'indirizzo specificato.<br />Puoi modificare il tuo carrello o il tuo indirizzo utilizzando i pulsanti sottostanti",CC="Rimuovi gli articoli dal mio carrello",EC="Invia ad un altro indirizzo",AC="Spedire in Portogallo",PC={disabledInfo:"Per accedere a questa sezione, completare i passaggi precedenti nella pagina."},LC={sentBy:"Articoli nel tuo ordine",soldBy:"Venduto da <strong>{{sellerName}}</strong>",hasHomeDeliveryOnly:"Questo venditore offre solo la consegna a domicilio",information:"",information_bulky:"Oggetti ingombranti",information_small:"Articoli regolari"},TC={fieldset:"Scegli un metodo di consegna",delay:{type:""},date:{range:"Disponibile per la spedizione tra giorni {{from}} È {{to}}",day:"Consegna prevista lo stesso giorno {{date}}",estimated:"Consegna {{date}}",exact:"Lui {{date}}"},type:{name:"",name_03:"Punto di raccolta",name_04:"Consegna a domicilio",name_05:"Consegna a domicilio",name_06:"Consegna al piano",name_07:"",name_10:"Consegna al punto di raccolta e Locker INPOST"},home:{info:"",info_A:"Il nostro corriere ti informerà sulla data di consegna all’arrivo degli articoli presso la filiale di destino.",info_B:"Verifica che tutti i passaggi e le entrate (porte, scale, ingressi...) permettano il transito del/dei collo/i durante la consegna.",info_C:"Il nostro corriere ti contatterà per concordare la data di consegna. ",info_D:"Per la consegna degli articoli voluminosi il corriere Golilla ti contatterà per prendere appuntamento e organizzare la consegna. Verifica che tutti i passaggi e le entrate (porte, scale, ingressi...) permettano il transito del/dei colli durante la consegna.",info_E:"Per la consegna degli articoli voluminosi il corriere Golilla ti contatterà per prendere appuntamento e organizzare la consegna. Verifica che tutti i passaggi e le entrate (porte, scale, ingressi...) permettano il transito del/dei colli durante la consegna. Per altri articoli, presi in carico da BRT, la consegna non è prevista al piano. Riceverai un SMS e/o un'e-mail con le informazioni sulla spedizione.",shippingFormMessage:"Questo indirizzo si applicherà a tutti i tuoi <strong>Consegna a domicilio</strong> e ciò potrebbe modificare le date di consegna sopra indicate."},pickpoint:{actions:{change:"Cambia il punto di raccolta",details:"Posizione e orari",details_a11y:"Posizione e programma {{ pickpoint }}",schedule:"Orari",schedule_a11y:"Orari {{ pickpoint }}"},details:{address:"<strong>Indirizzo</strong>",openings:"<strong>Orari</strong>"},modify:{title:"Clicca per scegliere un punto di raccolta",inactive:"Questo punto di consegna è temporaneamente non disponibile",notfound:"<strong>Nessun punto di consegna trovato</strong> <br /> Inserisci un altro indirizzo",error:"<strong> Si è verificato un errore </strong> <br /> Aggiorna la ricerca del punto di consegna",renew:"Aggiorna ricerca",select:"Scegli questo punto di raccolta",form:{label:"Cerca sulla mappa o inserisci il CAP"},list:"Elenco",map:"Carta",radius:"Cerca nel raggio di","aria-label_skipGoogleMap":""}},email:{address:"",message:"",noMessage:""},fallback:{message:"Caricamento fallito",retry:"riprova"},multiShipping:{title:"",item:""},showAll:"Scegli un altro metodo di spedizione",showAllFlag:"Sono disponibili nuove modalità di consegna",showBulkyHomeAvailable:"Consegna a domicilio gratuita con La Redoute",showPickPointAvailable:"Consegna gratuita presso il punto PICKUP"},MC={title:"Numero di cellulare",banner:"Per garantire la consegna abbiamo bisogno di un numero di cellulare.",success:"Il tuo numero di cellulare è stato registrato con successo.",change:"Cambia il mio numero di cellulare",icons_alt:{icon:"",icon_home:"Casa"}},xC={fieldset:"Scegli un metodo di pagamento",disabledSelectionInfo:"Per accedere a questa sezione, completare i passaggi precedenti nella pagina.",disabledSelectionInfo_contact:"Scegli un metodo di consegna e inserisci un numero di cellulare per il tuo ordine",type:{label:"",label_bankcard:"Carta di credito",label_paypal:"PayPal","label_paypal-stripe":"PayPal","aria-label_paypalOneOrManyTimes":"Paga con Paypal in 1 rata o 3 rate senza commissioni",label_paypalOneOrManyTimes:"Paypal: paga in 1X o 3X senza commissioni",label_paypalManyTimes:"Paga con Paypal in 3X senza commissioni","label_sequra-3x":"Paga a rate","label_sequra-30dias":"Acquista ora, paga tra 30 giorni","label_cash-on-delivery":"Contrassegno",label_klarna:"Klarna"},payment_bankcard:{submit:"confermare il pagamento",legalMentionsLink:"Controlla le condizioni generali",changeBrand:"Seleziona un'altra opzione",brandInfo:' Il pagamento verrà effettuato con opzione $t(checkout:payments.bankcard.brandLabel, {"context": "{{brand}}" }). ',fields:{cardNumber:"Numero di carta",expirationDate:"Data di validità",cvv:"CVV"},saveAlias:"",saveAlias_optin:"Salva questi dati per futuri acquisti presso La Redoute.",saveAlias_optout:"",fidelity:"",loyaltyProgramMentions:"Iscrivendoti a La Redoute, accetti che i tuoi metodi di pagamento vengano archiviati in modo sicuro e utilizzati allo scopo di gestire i tuoi abbonamenti con rinnovo tacito.",brandLabel:"C.B.",brandLabel_cb:"C.B.",brandLabel_visa:"Visa",brandLabel_mastercard:"MasterCard",brandLabel_amex:"American Express",errors:{init:"Si è verificato un errore.",required:"Questo campo è obbligatorio.",confirm:"Si è verificato un errore tecnico durante la conferma del pagamento."}},payment_stripe:{description:"",description_paypal:"Verrai reindirizzato in modo sicuro alla pagina del tuo conto PayPal per confermare il pagamento.",description_klarna:"Paga in 3 comode rate senza interessi con Klarna",submit:"Conferma il pagamento",submit_paypal:"Conferma",submit_klarna:"Conferma",record:{intro:"",intro_paypal:"",label:{optout:"",optin:"",optin_card:"Salva questi dati per acquisti futuri.",optin_paypal:"Salva i dettagli del conto PayPal per acquisti futuri"}},errors:{confirm:"Si è verificato un errore tecnico durante la conferma del pagamento."},icons_alt:{icon:"",icon_bankcard:"Carta di credito"}},payment_bankcardAlias:{label:"Carta di credito",label_visa:"Visa",label_mastercard:"MasterCard",label_amex:"American Express","label_american express":"American Express",label_cb:"Carta di credito",endingWith:"termina con",expiresOn:"Scade il",submit:"Conferma il pagamento",redirectionFormLabel:"Reindirizzamento automatico alla pagina di pagamento"},payment_sequra:{submit:"Confermo il mio ordine"},payment_par:{description:"L'importo del tuo ordine sarà aggiornato (+4,90€ per contributo di contrassegno)",actions:{submit:"Conferma"}},mentionsLoyaltyRenewal:"",mentionsLr:"Convalidando il mio ordine, accetto e dichiaro di aver letto tutte le <2>Condizioni Generali di Vendita Laredoute.it</2>, la <10>politica sulla riservatezza</10> E <13>la raccolta dei dati personali</13>.",mentionsLrLoyalty:"",mentionsMkp:"",mentionsMkpLoyalty:"",mentionsLrMkp:"",mentionsLrMkpLoyalty:"",mentionBtobLr:"",mentionBtobMkp:"",mentionBtobLrMkp:"",generalSalesConditions:"Condizioni generali di vendita",btobSalesConditions:"",privacyPolicy:"politica sulla riservatezza",collectsPersonalData:"Raccolta dei dati personali",cguLoyaltyProgram:"Condizioni generali d'uso La Redoute",cgvPaymentMethod:"Ho letto e accetto l <1>condizioni generali di vendita</1>",cgvPaymentMethodBtoB:"Ho letto e accetto l <1>Termini e Condizioni Clienti Professionali</1>",fallback:{message:"Errore durante il caricamento del metodo di pagamento.",retry:"riprova"},showAll:"Scegli un altro metodo di pagamento",showAllFlag:"Sono disponibili nuovi metodi di pagamento.",errors:{error:"Si è verificato un errore nel pagamento.",error_RH00045C_600:"Il tuo ordine è stato annullato perché di recente hai effettuato un altro ordine simile. ",error_RB00072C_037:"Numero di telefono invalido.",error_RB00072C_014:"Il tuo credito è insufficiente. ",error_GENERIC_DECLINE:"Si è verificato un errore nel pagamento",error_EXPIRED_CARD:"La tua carta di pagamento è scaduta",error_INSUFFICIENT_FUNDS:"Il saldo della tua carta è insufficiente.",error_PAYMENT_INTENT_AUTHENTICATION_FAILURE:"Pagamento rifiutato. ",error_PAYMENT_METHOD_CUSTOMER_DECLINE:"Pagamento rifiutato. "},icons_alt:{icon_bankcard:"Carta di credito",icon_paymentAfterReceipt:"Pagamento dopo il ricevimento"}},IC={processing:"Caricamento",wait:"Attendere prego..."},RC={flag:"",label:"Scopri la nostra nuova pagina di acquisto 😉",status:"",flagFirstApplyPreferences:"Acquisti più facili",labelFirstApplyPreferences:"Il tuo processo di acquisto è personalizzato in base alle tue scelte negli ordini precedenti."},$C={banner:{header:"",header_added:"",switch:"",switch_added:"",list:{freeHomeDelivery:"",discount:""},accept:"",conditions:"",informations:""},modal:{header:"",list:{freeHomeDelivery:"",discountFashion:"",discountHome:""},accept:"",skip:"",conditions:"",informations:""},toggle:{error:"",error_add:"",error_remove:""},payment:{mention:"",mention_paypal:"",mention_rPremium:"",mention_aliases:""}},OC={header:{name:"",usedAmount:"",usedAmount_one:"",usedAmount_other:"",modify:""},details:{info:"",validityDate:"",number:"",selectVouchers:"",submit:"",submit_disabled:"",submit_complete:""},residual:""},NC={minimalConfirmationDescription:"grazie per il tuo ordine {{orderId}}. ",minimalConfirmationRefreshHint:"I dettagli saranno disponibili nella tua area clienti nei prossimi minuti."},zC={backButton:"",pageTitle:"",welcome:{label:"",status:"",flag:""},headings:{payment:"",securedPayment:""}},DC={backButton:"",pageTitle:"",welcome:{label:"",status:"",flag:""},headings:{payment:"",securedPayment:""},submit:""},BC={pageTitle:GS,headings:KS,noAddresseTitle:WS,noAddressLegalText:YS,cart:ZS,deliveryAndPayment:JS,addressStepper:XS,storageDuration:QS,storageDuration_pickup:eC,deliveryRetainment:tC,detax:nC,detaxIframeTitle:rC,discount:aC,appliedVouchers:iC,ecopart:oC,billingAddressInformation:sC,editMyBillingAddress:lC,editMyShippingAddress:cC,includedVAT:uC,phoneNumber:dC,legalmentions:pC,seeDetail:mC,shippingFees:hC,shippingFees_estimated:gC,additionalShippingFees:fC,paymentFees:vC,summary:bC,total:yC,totalArticles:_C,updateBasket:kC,selectADelivery:wC,infoPartialDelivery:SC,deleteArticleInBasket:CC,updateDeliveryAddress:EC,updateDeliveryAddress_limited:AC,billingAddress:PC,seller:LC,deliveries:TC,contact:MC,payments:xC,transaction:IC,opinion:RC,loyalty:$C,vouchers:OC,confirmation:NC,renewal:zC,parAccountPayment:DC},FC="€49",jC="14",qC="",VC="",UC={homepage:"La home page di La Redoute"},HC="",GC={item_deadlineToChangeOpinion:{title:"$t(navigation:withdrawalPeriod) giorni per cambiare idea",title_break:" $t(navigation:withdrawalPeriod) giorni per effettuare il reso<br/>",subtitle:"Buone notizie! Hai $t(navigation:withdrawalPeriod) giorni per cambiare idea! ",info:{1:"I resi sono gratuiti per tutti i nostri articoli",2:"Segui le nostre modalità di reso indicate sul sito o sul retro del collo."},link:{aria:"$t(common:learnMore) su cambi e resi",href:"/services/resi-e-cambi.aspx"}},item_freeReturn:{title:"Reso gratuito",title_break:"Reso gratuito",subtitle:"Hai 14 giorni per restituire o cambiare i tuoi articoli",info:{1:"Per gli articoli di piccole dimensioni, abbigliamento e biancheria per la casa, segui le istruzioni sul sito o sul retro del collo",2:"Per gli articoli voluminosi contatta il nostro servizio clienti",3:"Il pacco deve essere preparato utilizzando possibilmente il nostro imballaggio, ed inserendo all’interno l’apposita copia della bolla di spedizione.",4:"Per alcuni articoli si applicano termini e condizioni speciali."},link:{aria:"$t(common:learnMore) su cambi e resi",href:"/services/resi-e-cambi.aspx"}},item_freeShippingInRelayFrom:{title:"Spedizione gratuita da $t(navigation:startPriceFreeDeliveryRelay) di acquisto",title_break:"spedizione gratuita<br/> da $t(navigation:startPriceFreeDeliveryRelay)",subtitle:"Per consegne a domicilio e presso punti di ritiro",info:{1:`Spedizione gratuita per Mobili e articoli voluminosi a partire da 49€
|
|
312
|
-
`,2:"Per gli ordini inferiori a 49€, i costi di consegna ammontano a 4,95€ se a domicilio e a 3,95€ per la consegna in un Punto di Ritiro."},link:{aria:"$t(common:learnMore) sui metodi di spedizione",href:"/services/spedizioni.aspx"}},item_securedPayment:{title:"Pagamento sicuro",title_break:"Pagamento 100% <br/> Sicuro",subtitle:"Paga il tuo ordine in modo rapido e sicuro",info:{1:"Tutti i nostri metodi di pagamento utilizzano metodi di sicurezza avanzati",2:"Proteggiamo la tua privacy",3:"Il server utilizza un canale di comunicazione criptato e tutte le informazioni sono codificate."},link:{aria:"$t(common:learnMore) sui metodi di pagamento",href:"/services/pagamenti.aspx"}}},KC={information:"",disconnect:""},WC={startPriceFreeDeliveryRelay:FC,withdrawalPeriod:jC,accessibilityHint:qC,facilityLinkTitle:VC,link:UC,sourdLineLinkTitle:HC,reinsurance:GC,logAsBanner:KC},YC={fields:{email:{label:"",label_signup:"",hint:"Vous avez déjà un compte ? <1>Connectez-vous</1>",errors:{required:"",length:"",format:""}},password:{label:"",label_signup:"",errors:{required:"",space:"",length:""},visibility:{hide:"",show:""},hint:{length:"",uppercase:"",lowercase:"",digit:""}},birthdate:{label:"",label_signup:"",errors:{invalid:"",young:""},hint:""},enterprise:{groupLabel:"",contactGroupLabel:"",addressGroupLabel:"",country:{label:""},corporateName:{label:"",errors:{length:"",format:""}},siret:{label:"",errors:{length:"",format:""}},vat:{label:"",errors:{length:"",format:""}}},address:{title:{label:"Privato (Sig.ra/Sig.) o azienda",placeholder:"Seleziona privato o azienda",opts:{mrs:"",miss:"Signora",emp:"Azienda",mr:"Signore"}},firstname:{label:"Nome",errors:{required:"Per favore inserire il proprio Nome",format:"Formato errato: utilizzare solo lettere",length:"Immettere da 2 a 32 caratteri"}},lastname:{label:"Cognome",errors:{required:"Inserisci il tuo soprannome",format:"Formato errato: utilizzare solo lettere",length:"Immettere da 2 a 32 caratteri"}},street:{label:"Indirizzo",errors:{required:"Per favore inserisci il tuo indirizzo",length:"Immettere un massimo di 40 caratteri"}},houseNumber:{label:"Numero",errors:{length:"Immettere un massimo di 40 caratteri"}},streetComplement:{label:"Informazioni aggiuntive • facoltative",errors:{length:"Immettere un massimo di 40 caratteri"}},hamlet:{label:"Pavimento, Porta • opzionale",errors:{length:"Inserire un massimo di 40 caratteri"}},province:{label:"Provincia • opzionale",errors:{length:"Immettere un massimo di 40 caratteri"}},zipCode:{label:"Codice Postale",errors:{required:"prego inserire un codice postale valido",format:"Formato errato: inserisci un codice postale di 5 cifre",length:"Inserisci un codice postale di 5 cifre"}},zipCodeComplement:{label:"",errors:{required:"",format:"",length:""}},city:{label:"Città",errors:{required:"Si prega di indicare la località postale",format:"Formattazione errata: utilizzare solo lettere",length:"Immettere un massimo di 32 caratteri"},placeholder:"Seleziona una località postale:"},country:{label:"Paese"},phoneNumber:{label:"Telefono",label_mobile:"Cellulare",errors:{required:"Per facilitare le tue consegne: inserisci il tuo numero di cellulare",format:{fixe:"Si prega di inserire un numero di telefono valido",mobile:"Inserisci un numero di cellulare valido"}},hint:"Se abbiamo bisogno di contattarti in merito al tuo ordine","hint_phone-only":"Non utilizzato per la prospezione commerciale"},phonePrefix:{label:"Prefisso del paese",errors:{required:""}}},options:{updateShipping:{label:"Utilizzare anche come indirizzo di consegna"}},subscriptions:{label:"",collapse:{label:"",description:""},yes:"",no:"",options:{type:""},hint:{type:""}}},title:"Modificare","title_billing-address":"Cambia l'indirizzo del tuo account cliente","title_shipping-address":"Cambia il tuo indirizzo di consegna","title_phone-only":"Numero di cellulare",submit:"Confermare","submit_billing-address":"Conferma l'indirizzo del tuo account cliente","submit_shipping-address":"Conferma il tuo indirizzo di consegna","submit_phone-only":"Confermare",globalError:"Si è verificato un errore.","globalError_phone-only":"Si è verificato un errore. ",globalError_010:"Si è verificato un errore. ",globalError_011:"Si è verificato un errore. Il codice postale inserito e il codice postale della città non corrispondono.",back:"Précédent"},ZC={suggestions:{title:"",info:"",hint:"",form:{fields:{streetNumber:{label:"",info:""},addressControlChoice:{label:"",label_one:"",label_other:"",label_reenter_one:"",label_reenter_other:""},editPreviousAddress:{label:""},keepPreviousAddress:{label:""}},submit:"",submit_enabled:"",submit_disabled:""}}},JC={form:YC,address:ZC},XC={pageTitle:"La Redoute, Mode française | La Redoute",title:"",information:"",showPassword:"Mostra password",hidePassword:"Nascondi password"},QC={pageTitle:"",form:{fields:{civility:{label:"",placeholder:"",errors:{required:""}},lastName:{label:"",errors:{required:"",length:"",format:""}},firstName:{label:"",errors:{required:"",length:"",format:""}},email:{label:"",errors:{required:"",length:"",format:""}},description:{label:"",placeholder:"",errors:{required:""}},message:{label:"",hint:"",errors:{length:""}},validation:{label:"",errors:{required:""}},url:{label:"",errors:{required:"",length:""}},attachment:{label:""}},globalError:"",submit:"",title:"",legalText:"",legalContact:""},confirmationPage:{title:"",description:"",cta:""}},eE={signup:XC,illegalContentReport:QC},tE={ui:Zw,common:HS,checkout:BC,navigation:WC,user:JC,customer:eE},nE="Geh zurück",rE="Schließen",aE="Handynummer",iE="Leeres Feld",oE={placeholder:{day:"JJ",month:"MM",year:"AAAA"}},sE={back:nE,close:rE,phoneNumber:aE,clearField:iE,date:oE},lE="Schließen",cE="",uE="Gratis",dE="Mehr Informationen",pE={seeLess:"Weniger Vorschläge anzeigen",seeMore:"Weitere Vorschläge ansehen"},mE="(neues Fenster)",hE={requiredField:"Dieses Feld ist erforderlich"},gE={technical:"Fehler zu machen ist menschlich, aber dieses Mal ist es ziemlich technisch! ",notFound:"Ups, hier gibt es nichts Interessantes!",basketChange:"Ihre Zahlung ist fehlgeschlagen."},fE="versuchen Sie es erneut",vE="Zurück zur Startseite",bE="Seite aktualisieren",yE="Lade die Seite neu.",_E="Unser La Redoute-Kundendienst steht Ihnen zur Verfügung: - Rufen Sie uns von Montag bis Freitag von 9:00 bis 18:00 Uhr unter der Nummer 043 202 94 67 an (Änderungen vorbehalten). Unsere Mitarbeiter geben Ihnen alle Informationen, die Sie benötigen. ",kE="Land",wE="Belgien",SE="Bulgarien",CE="Zypern",EE="Dänemark",AE="Deutschland",PE="Estland",LE="Finnland",TE="Frankreich",ME="Griechenland",xE="Großbritannien",IE="Ungarn",RE="Irland",$E="Island",OE="Italien",NE="Kroatien",zE="Lettland",DE="Liechtenstein",BE="Litauen",FE="Luxemburg",jE="Malta",qE="Die Niederlande",VE="Norwegen",UE="Österreich",HE="Polen",GE="Portugal",KE="Rumänien",WE="Slowenien",YE="Slowakei",ZE="Spanien",JE="Tschechien",XE="Schweden",QE="Schweiz",eA={quantity:"Menge",price:{regular:"Preis",sale:"Preis nach Rabatt"},size:"Größe",color:"Farbe",customization:"Personalisiertes Produkt mit dem Text:"},tA={cgv:"/sellconditions.aspx",mkpCgv:"",privacyPolicy:"/privacy-policy.aspx",collectsPersonalData:"/privacy-policy.aspx",cguLoyaltyProgram:"",btobSalesConditions:"",privacyCenter:"/privacy_center.aspx",partnersList:""},nA={close:lE,back:cE,freeValue:uE,learnMore:dE,suggestion:pE,newTab:mE,form:hE,pageErrors:gE,redirectBasketPage:fE,redirectMainPage:vE,refreshPage:bE,refreshPageHint:yE,customerServiceHint:_E,country:kE,country_BE:wE,country_BG:SE,country_CY:CE,country_DK:EE,country_DE:AE,country_EE:PE,country_FI:LE,country_FR:TE,country_GR:ME,country_GB:xE,country_HU:IE,country_IE:RE,country_IS:$E,country_IT:OE,country_HR:NE,country_LV:zE,country_LI:DE,country_LT:BE,country_LU:FE,country_MT:jE,country_NL:qE,country_NO:VE,country_AT:UE,country_PL:HE,country_PT:GE,country_RO:KE,country_SI:WE,country_SK:YE,country_ES:ZE,country_CZ:JE,country_SE:XE,country_CH:QE,product:eA,links:tA},rA="Lieferung und Zahlung, La Redoute",aA={information:"Ihre Rechnungsadresse",order:"Bitte wählen Sie Ihre Versandart",payment:"Bezahlungsart wählen",securedPayment:"100 % sichere Zahlung"},iA="Wir versenden nicht in Ihr Land, bitte geben Sie eine Lieferadresse in einem der angebotenen Länder an.",oA="",sA="Warenkorb",lA="Lieferung und Bezahlung",cA="Adresse",uA="7",dA="7",pA='Ihre Artikel werden gespeichert $t(checkout:storageDuration, {"context": "{{context}}" }) Tage am PICKUP-Lieferpunkt',mA="",hA="",gA="Rabatt",fA="",vA="",bA="Adresse, die für Ihre Rechnung verwendet wird",yA="Rechnungsadresse bearbeiten",_A="Lieferadresse bearbeiten",kA="inkl. MwSt.",wA="Handynummer",SA="rechtliche Hinweise",CA="Siehe Details",EA="Lieferkosten",AA="Lieferkosten",PA="Beitrag für umfangreiche Artikel",LA="Zahlungsgebühren",TA="Ihre Bestellung",MA="Gesamt",xA="Artikel",IA="Ändern Sie meinen Warenkorb",RA="Wählen Sie eine Versandart",$A="Ihr Warenkorb enthält offenbar einen oder mehrere Artikel, die nicht an die von Ihnen angegebene Adresse geliefert werden können.<br />Sie können Ihren Warenkorb oder Ihre Adresse über die Schaltflächen unten ändern",OA="Artikel aus meinem Warenkorb entfernen",NA="Zu einer anderen Adresse verschicken",zA="In die Niederlande senden",DA={disabledInfo:"Um auf diesen Abschnitt zuzugreifen, führen Sie die vorherigen Schritte auf der Seite aus."},BA={sentBy:"Versand durch <strong>{{sellerName}}</strong>",soldBy:"verkauft durch <strong>{{sellerName}}</strong>",hasHomeDeliveryOnly:"Dieser Verkäufer bietet nur die Lieferung nach Hause an",information:"",information_bulky:"sperrige Gegenstände",information_small:"Regelmäßige Artikel"},FA={fieldset:"Wählen Sie eine Versandart",delay:{type:"",type_A:"Die Lieferzeit hängt von den einzelnen Artikeln in Ihrem Warenkorb ab.",type_B:"Nicht verfügbar",type_C:"Lieferung innerhalb 6 Werktagen",type_D:"Bzgl. des Liefertermins meldet sich unser Transporteur innerhalb 8 Tagen bei Ihnen",type_E:"Ihre Bestellung ist in guten Händen",type_F:"Die Lieferzeit hängt von jedem Artikel ab",type_G:"Ausverkauft"},date:{range:"Verfügbar für den Nachtversand {{from}} Es ist {{to}}",day:"Voraussichtliche Lieferung am selben Tag {{date}}",estimated:"Lieferung von {{date}}",exact:"Der {{date}}"},type:{name:"",name_05:"Express Lieferung in 48 Stunden nach Hause",name_06:"Standard Lieferung nach Hause",name_07:"Standard Lieferung nach Hause"},home:{info:"",info_A:"Sobald Ihr Paket von unserem Partner Bpost oder POST NL bearbeitet wurde, erhalten Sie eine E-Mail, damit Sie Ihr Paket verfolgen können.",info_B:"Lieferung nach Vereinbarung, bestätigen Sie Ihre Angaben.",info_C:"Lieferung nach Vereinbarung, bestätigen Sie Ihre Angaben.",info_D:"",info_E:"Ihre Bestellung enthält sperrige Artikel, die nach Terminvereinbarung geliefert werden.",info_F:"Ihre Bestellung enthält einen oder mehrere sperrige Artikel, die nach Terminvereinbarung geliefert werden. Die restlichen Artikel Ihres Warenkorbs werden mit der Standard-Liefermethode geliefert.",shippingFormMessage:"Diese Adresse gilt für alle Ihre <strong>Lieferungen nach Hause</strong> Daher können sich die zuvor angegebenen Liefertermine ändern."},pickpoint:{actions:{change:"Ändere meinen Lieferort",change_pickup:"Wählen Sie einen anderen Abholpunkt",details:"Ort und Zeit",details_a11y:"Ort und Zeit {{ pickpoint }}",schedule:"Schema",schedule_a11y:"Schema {{ pickpoint }}"},details:{address:"<strong>Haushalte</strong>",openings:"<strong>Zeitleiste</strong>"},modify:{title:"Wählen Sie einen Abholpunkt",title_pickup:"Wählen Sie einen Abholpunkt",inactive:"Dieser Lieferpunkt ist vorübergehend nicht verfügbar",inactive_pickup:"Dieser Abholpunkt ist vorübergehend nicht verfügbar",notfound:"<strong>Kein Lieferpunkt gefunden</strong> <br /> Geben Sie eine andere Adresse ein",notfound_pickup:"<strong>Kein Abholpunkt gefunden</strong> <br /> Geben Sie eine andere Adresse ein",error:"<strong>Ein Fehler ist aufgetreten </strong> <br /> Bitte aktualisieren Sie Ihre Suche nach Abgabestellen",error_pickup:"<strong>Ein Fehler ist aufgetreten </strong> <br /> Aktualisieren Sie Ihre PICKUP-Punktsuche",renew:"Suchaktualisierung",select:"Wählen Sie diesen Lieferort",select_pickup:"Wählen Sie diesen ABHOLPUNKT",form:{label:"deine Adresse"},list:"Aufführen",map:"Karte",radius:"Suche im Umkreis von","aria-label_skipGoogleMap":""}},email:{address:"",message:"",noMessage:""},fallback:{message:"Das Laden ist fehlgeschlagen",retry:"Versuchen Sie es erneut"},multiShipping:{title:"",item:""},showAll:"Wählen Sie eine andere Versandart",showAllFlag:"Es stehen neue Versandmethoden zur Verfügung",showBulkyHomeAvailable:"Kostenlose Lieferung nach Hause mit La Redoute",showPickPointAvailable:"Kostenlose Lieferung zum Abholpunkt",icons_alt:{icon:"",icon_home:"Zu Hause"}},jA={title:"Handynummer",banner:"Um Ihre Lieferung zu garantieren, benötigen wir eine Mobiltelefonnummer.",success:"Ihre Handynummer wurde erfolgreich registriert.",change:"Meine Handynummer ändern"},qA={fieldset:"Wählen Sie eine Bezahlungsart",disabledSelectionInfo:"Führen Sie bitte zunächst die vorherigen Schritte aus.",disabledSelectionInfo_contact:"Wählen Sie eine Versandart und geben Sie eine Handynummer für Ihre Bestellung ein",type:{label:"",label_bankcard:"Kreditkarte",label_paypal:"PayPal","label_paypal-stripe":"PayPal","aria-label_paypalOneOrManyTimes":"Bezahlen Sie mit Paypal in 1 oder 4 Raten ohne Kosten",label_paypalOneOrManyTimes:"Bezahlen Sie mit Paypal in 1X oder 4X ohne Gebühren",label_paypalManyTimes:"Bezahlen Sie mit Paypal in 4X ohne Kosten",label_klarna:"Klarna",label_ideal:"Ideal"},payment_bankcard:{submit:"Zahlung bestätigen",legalMentionsLink:"RatBezahlen Sie anschließend die Allgemeinen Geschäftsbedingungen",changeBrand:"Wählen Sie eine andere Option",brandInfo:' Die Bezahlung erfolgt mit der Option $t(checkout:payments.bankcard.brandLabel, {"context": "{{brand}}" }). ',fields:{cardNumber:"Kartennummer",expirationDate:"Verfallsdatum",cvv:"CVV"},saveAlias:"",saveAlias_optin:"Bewahren Sie diese Informationen für zukünftige Einkäufe bei La Redoute auf.",saveAlias_optout:"",fidelity:"",loyaltyProgramMentions:"Indem Sie sich bei La Redoute anmelden, akzeptieren Sie, dass Ihre Zahlungsmethoden sicher gespeichert werden und zur Verwaltung Ihrer stillen Verlängerungsabonnements verwendet werden.",brandLabel:"CB",brandLabel_cb:"CB",brandLabel_visa:"Visa",brandLabel_mastercard:"MasterCard",brandLabel_amex:"American Express",errors:{init:"Ein Fehler ist aufgetreten.",required:"Dieses Feld ist erforderlich.",confirm:"Bei der Zahlungsbestätigung ist ein technischer Fehler aufgetreten."}},payment_stripe:{description:"",description_paypal:"Wenn Sie PayPal als Zahlungsmethode wählen, werden Sie auf eine Sicherheitsseite weitergeleitet, auf der Sie sich in Ihrem PayPal-Konto identifizieren müssen, um Ihre Bestellung abzuschließen.",description_klarna:`Bezahle sofort oder flexibel in bis zu 30 Tagen.
|
|
313
|
-
<br/><br/>
|
|
314
|
-
Bezahle in 3 Raten. Zinsfrei.
|
|
315
|
-
<br/><br/>
|
|
316
|
-
Bezahle in 6 oder mehr monatlichen Raten (Zinsen können anfallen).`,description_ideal:"Bestätigen Sie Ihre Bestellung, Sie werden dann zu unserer sicheren Zahlungsseite weitergeleitet.",submit:"Zahlung bestätigen",submit_paypal:"Zahlung bestätigen",submit_klarna:"Zahlung bestätigen",submit_ideal:"Zahlung bestätigen",record:{intro:"",intro_paypal:"",label:{optout:"",optin:"",optin_card:"Bewahren Sie diese Informationen für zukünftige Einkäufe auf.",optin_paypal:"Speichern Sie diese PayPal-Kontoinformationen für zukünftige Einkäufe"}},errors:{confirm:"Bei der Zahlungsbestätigung ist ein technischer Fehler aufgetreten."},icons_alt:{icon:"",icon_bankcard:"Debitkarte"}},payment_bankcardAlias:{label:"Debitkarte",label_visa:"Visa",label_mastercard:"MasterCard",label_amex:"American Express","label_american express":"American Express",label_cb:"Debitkarte",endingWith:"Endet mit",expiresOn:"Läuft ab am",submit:"Zahlung bestätigen",redirectionFormLabel:"Automatische Weiterleitung zur Zahlungsseite"},mentionsLoyaltyRenewal:"",mentionsLr:"Mit der Bestätigung meiner Bestellung akzeptiere ich die <2>Allgemeinen Verkaufsbedingungen auf Laredoute.de</2>, sowie die <10>Datenschutzrichtlinie</10> und stimme der <13>Erhebung personenbezogener Daten</ 13> zu.",mentionsLrLoyalty:"",mentionsMkp:"",mentionsMkpLoyalty:"",mentionsLrMkp:"",mentionsLrMkpLoyalty:"",mentionBtobLr:"",mentionBtobMkp:"",mentionBtobLrMkp:"",generalSalesConditions:"Allgemeine Kaufverträge",btobSalesConditions:"",privacyPolicy:"Datenschutzrichtlinie",collectsPersonalData:"Erhebung personenbezogener Daten",cguLoyaltyProgram:"Allgemeine Nutzungsbedingungen La Redoute",cgvPaymentMethod:"",cgvPaymentMethodBtoB:"",fallback:{message:"Die Zahlungsmethode kann nicht geladen werden.",retry:"Versuchen Sie es erneut"},showAll:"Wählen Sie eine andere Zahlungsmethode",showAllFlag:"Neue Zahlungsmethoden sind verfügbar.",errors:{error:"Es ist ein Zahlungsfehler aufgetreten.",error_RH00045C_600:"Ihre Bestellung wurde storniert, da Sie kürzlich eine ähnliche Bestellung aufgegeben haben. ",error_RB00072C_037:"Ungültige Telefonnummer oder nicht mit einem gültigen MBway-Konto verknüpft.",error_RB00072C_014:"Ihr Kredit reicht nicht aus. ",error_GENERIC_DECLINE:"Es ist ein Zahlungsfehler aufgetreten",error_EXPIRED_CARD:"Ihre Zahlungskarte ist abgelaufen",error_INSUFFICIENT_FUNDS:"Ihr Kartenguthaben reicht nicht aus.",error_PAYMENT_INTENT_AUTHENTICATION_FAILURE:"Zahlung abgelehnt. ",error_PAYMENT_METHOD_CUSTOMER_DECLINE:"Zahlung abgelehnt. "},icons_alt:{icon_bankcard:"Debitkarte"}},VA={processing:"Wird geladen",wait:"Bitte warten..."},UA={flag:"",label:"",status:"",flagFirstApplyPreferences:"Einfacher einkaufen",labelFirstApplyPreferences:"Ihr Einkaufsprozess wurde an Ihre Auswahl bei Ihren vorherigen Bestellungen angepasst."},HA={banner:{header:"",header_added:"",switch:"",switch_added:"",list:{freeHomeDelivery:"",discount:""},accept:"",conditions:"",informations:""},modal:{header:"",list:{freeHomeDelivery:"",discountFashion:"",discountHome:""},accept:"",skip:"",conditions:"",informations:""},toggle:{error:"",error_add:"",error_remove:""},payment:{mention:"",mention_paypal:"",mention_rPremium:"",mention_aliases:""}},GA={header:{name:"",usedAmount:"",modify:"",usedAmount_one:"",usedAmount_other:""},details:{info:"",validityDate:"",number:"",selectVouchers:"",submit:"",submit_disabled:"",submit_complete:""},residual:""},KA={minimalConfirmationDescription:"Danke für Ihre Bestellung {{orderId}}. ",minimalConfirmationRefreshHint:"Details werden in den nächsten Minuten in Ihrem Konto verfügbar sein."},WA={backButton:"",pageTitle:"",welcome:{label:"",status:"",flag:""},headings:{payment:"",securedPayment:""}},YA={backButton:"",pageTitle:"",welcome:{label:"",status:"",flag:""},headings:{payment:"",securedPayment:""},submit:""},ZA={pageTitle:rA,headings:aA,noAddresseTitle:iA,noAddressLegalText:oA,cart:sA,deliveryAndPayment:lA,addressStepper:cA,storageDuration:uA,storageDuration_pickup:dA,deliveryRetainment:pA,detax:mA,detaxIframeTitle:hA,discount:gA,appliedVouchers:fA,ecopart:vA,billingAddressInformation:bA,editMyBillingAddress:yA,editMyShippingAddress:_A,includedVAT:kA,phoneNumber:wA,legalmentions:SA,seeDetail:CA,shippingFees:EA,shippingFees_estimated:AA,additionalShippingFees:PA,paymentFees:LA,summary:TA,total:MA,totalArticles:xA,updateBasket:IA,selectADelivery:RA,infoPartialDelivery:$A,deleteArticleInBasket:OA,updateDeliveryAddress:NA,updateDeliveryAddress_limited:zA,billingAddress:DA,seller:BA,deliveries:FA,contact:jA,payments:qA,transaction:VA,opinion:UA,loyalty:HA,vouchers:GA,confirmation:KA,renewal:WA,parAccountPayment:YA},JA="50 €",XA="30",QA="",eP="",tP={homepage:"Die Homepage von La Redoute"},nP="",rP={item_deadlineToChangeOpinion:{title:"30 Tage Rückgabegarantie",title_break:"30 Tage Rückgabegarantie",subtitle:"Gute Nachrichten! Shoppen Sie und machen Sie sich eine Freude ohne Stress auf laredoute.de, Sie haben 30 Tage Zeit, Ihre Meinung zu ändern!",info:{1:"Senden Sie Ihre Artikel innerhalb von 30 Tagen kostenlos zurück.",2:"Auch große oder schwere Artikel können kostenlos zurückgegeben werden."},link:{aria:"$t(common:learnMore) über Umtausch und Rückgabe",href:"/services/returns.aspx"}},item_freeReturn:{title:"Kostenlose Retouren*",title_break:"Kostenlose Retouren*",subtitle:"Sie haben 30 Tage Zeit, Ihre Artikel zurückzugeben oder umzutauschen",info:{1:"Für Kleidung und Kleinteile liegt bereits ein Rücksendeetikett ausgedruckt im Paket bei",2:"Sollte kein Rücksendeetikett Ihrem Paket beiliegen, kontaktieren Sie bitte unseren Kundenservice, welcher Ihnen das Etikett per E-Mail zukommen lässt.",3:"Wir holen Möbel und Großgegenstände bei Ihnen ab. Kontaktieren Sie dazu bitte unseren Kundenservice, welcher einen Termin mit der Spedition vereinbaren wird.",4:"Für einige Artikel gelten besondere Konditionen"},link:{aria:"$t(common:learnMore) über Umtausch und Rückgabe",href:"/services/returns.aspx"}},item_freeShippingInRelayFrom:{title:"Gratis Versand* (Bedingungen ansehen)",title_break:"Gratis Versand (Bedingungen ansehen)",subtitle:"Versandkosten",info:{1:"Die Versandkosten werden im Warenkorb berechnet",2:"Sie werden auf der Grundlage des Gewichts und der Maße des größten Artikels in Ihrem Warenkorb berechnet"},link:{aria:"$t(common:learnMore) über Versandarten",href:"/services/delivery.aspx"}},item_securedPayment:{title:"Sichere Bezahlung",title_break:"Sichere Bezahlung",subtitle:"Bezahlen Sie Ihre Bestellung schnell und sicher",info:{1:"Alle unsere Zahlungsmethoden verwenden fortschrittliche Sicherheitsmethoden",2:"Wir schützen Ihre Privatsphäre",3:"Wir speichern Ihre Daten nicht"},link:{aria:"$t(common:learnMore) über Zahlungsmethoden",href:"/services/payment.aspx"}}},aP={information:"",disconnect:""},iP={startPriceFreeDeliveryRelay:JA,withdrawalPeriod:XA,accessibilityHint:QA,facilityLinkTitle:eP,link:tP,sourdLineLinkTitle:nP,reinsurance:rP,logAsBanner:aP},oP={fields:{email:{label:"",label_signup:"",hint:"Vous avez déjà un compte ? <1>Connectez-vous</1>",errors:{required:"",length:"",format:""}},password:{label:"",label_signup:"",errors:{required:"",space:"",length:""},visibility:{hide:"",show:""},hint:{length:"",uppercase:"",lowercase:"",digit:""}},birthdate:{label:"",label_signup:"",errors:{invalid:"",young:""},hint:""},enterprise:{groupLabel:"",contactGroupLabel:"",addressGroupLabel:"",country:{label:""},corporateName:{label:"",errors:{length:"",format:""}},siret:{label:"",errors:{length:"",format:""}},vat:{label:"",errors:{length:"",format:""}}},address:{title:{label:"Anrede",placeholder:"Wählen Sie ein Geschlecht aus",opts:{mrs:"Frau",miss:"",emp:"",mr:"Herr"}},firstname:{label:"Vorname",errors:{required:"Bitte geben Sie Ihren Vornamen ein",format:"Falsches Format: Verwenden Sie nur Buchstaben",length:"Geben Sie zwischen 2 und 32 Zeichen ein"}},lastname:{label:"Nachname",errors:{required:"Bitte geben Sie ihren Spitznamen ein",format:"Falsches Format: Verwenden Sie nur Buchstaben",length:"Geben Sie zwischen 2 und 32 Zeichen ein"}},street:{label:"Straßenname",errors:{required:"Geben Sie Ihre Adresse ein",length:"Geben Sie bis zu 40 Zeichen ein"}},houseNumber:{label:"Hausnummer",errors:{length:"Geben Sie bis zu 40 Zeichen ein"}},streetComplement:{label:"Stock, Briefkasten, ... • optional",errors:{length:"Geben Sie bis zu 40 Zeichen ein"}},hamlet:{label:"",errors:{length:""}},province:{label:"",errors:{length:""}},zipCode:{label:"Postleitzahl",errors:{required:"Bitte geben Sie eine gültige Postleitzahl ein",format:"Falsches Format: 4 Zahlen – Leerzeichen – 2 Buchstaben (z. B.: 1000 AA)",length:"Falsches Format: 4 Zahlen – Leerzeichen – 2 Buchstaben (z. B.: 1000 AA)"}},zipCodeComplement:{label:"",errors:{required:"",format:"",length:""}},city:{label:"Stadt",errors:{required:"Bitte geben Sie Ihre Postanschrift an",format:"Falsches Format: Verwenden Sie nur Buchstaben",length:"Geben Sie bis zu 32 Zeichen ein"},placeholder:"Wählen Sie eine Stadt aus"},country:{label:"Land"},phoneNumber:{label:"Telefon",label_mobile:"Mobiltelefon",errors:{required:"Um Ihre Lieferungen zu erleichtern: Geben Sie Ihre Handynummer ein",format:{fixe:"Bitte geben Sie eine gültige Telefonnummer ein",mobile:"Bitte geben Sie eine gültige Handynummer an"}},hint:"Falls wir Sie bezüglich Ihrer Bestellung kontaktieren müssen","hint_phone-only":"Wird nicht für kommerzielle Prospektion verwendet"},phonePrefix:{label:"Landesvorwahl",errors:{required:""}}},options:{updateShipping:{label:"Auch als Lieferadresse verwenden"}},subscriptions:{label:"",collapse:{label:"",description:""},yes:"",no:"",options:{type:""},hint:{type:""}}},title:"Anpassen","title_billing-address":"Rechnungsadresse ändern","title_shipping-address":"Lieferadresse ändern","title_phone-only":"Handynummer",submit:"Bestätigen","submit_billing-address":"Rechnungsadresse bestätigen","submit_shipping-address":"Lieferadresse bestätigen","submit_phone-only":"Bestätigen",globalError:"Ein Fehler ist aufgetreten.","globalError_phone-only":"Ein Fehler ist aufgetreten. ",globalError_010:"Ein Fehler ist aufgetreten. ",globalError_011:"Ein Fehler ist aufgetreten. ",back:"Précédent"},sP={suggestions:{title:"",info:"",hint:"",form:{fields:{streetNumber:{label:"",info:""},addressControlChoice:{label:"",label_one:"",label_other:"",label_reenter_one:"",label_reenter_other:""},editPreviousAddress:{label:""},keepPreviousAddress:{label:""}},submit:"",submit_enabled:"",submit_disabled:""}}},lP={form:oP,address:sP},cP={pageTitle:"La Redoute, Mode française | La Redoute",title:"",information:"",showPassword:"Das Passwort anzeigen",hidePassword:"Passwort ausblenden"},uP={pageTitle:"",form:{fields:{civility:{label:"",placeholder:"",errors:{required:""}},lastName:{label:"",errors:{required:"",length:"",format:""}},firstName:{label:"",errors:{required:"",length:"",format:""}},email:{label:"",errors:{required:"",length:"",format:""}},description:{label:"",placeholder:"",errors:{required:""}},message:{label:"",hint:"",errors:{length:""}},validation:{label:"",errors:{required:""}},url:{label:"",errors:{required:"",length:""}},attachment:{label:""}},globalError:"",submit:"",title:"",legalText:"",legalContact:""},confirmationPage:{title:"",description:"",cta:""}},dP={signup:cP,illegalContentReport:uP},pP={ui:sE,common:nA,checkout:ZA,navigation:iP,user:lP,customer:dP},mP="Retour",hP="Fermer",gP="Numéro de téléphone",fP="Vider le champ",vP={placeholder:{day:"JJ",month:"MM",year:"AAAA"}},bP={back:mP,close:hP,phoneNumber:gP,clearField:fP,date:vP},yP="Fermer",_P="",kP="Gratuit",wP="En savoir plus",SP={seeLess:"Voir moins de suggestions",seeMore:"Voir plus de suggestions"},CP="(nouvelle fenêtre)",EP={requiredField:"Ce champ est obligatoire"},AP={technical:"Page non accessible ",notFound:"",basketChange:"Votre paiement n'a pas pu être effectué. Il semblerait que votre panier ait changé."},PP="Rafraîchir votre panier",LP="Revenir à la page d'accueil",TP="Rafraîchir la page",MP="Essayez de recharger la page.",xP=`Besoin d'aide? <a href="/contact.aspx" style="text-decoration: underline;">Contactez-nous !</a> Nous sommes à votre disposition.`,IP="Pays",RP="Belgique",$P="Bulgarie",OP="Chypre",NP="Danemark",zP="Allemagne",DP="Estonie",BP="Finlande",FP="France",jP="Grèce",qP="Grande-Bretagne",VP="Hongrie",UP="Irlande",HP="Islande",GP="Italie",KP="Croatie",WP="Lettonie",YP="Liechtenstein",ZP="Lituanie",JP="Luxembourg",XP="Malte",QP="Pays-Bas",eL="Norvège",tL="Autriche",nL="Pologne",rL="Portugal",aL="Roumanie",iL="Slovénie",oL="Slovaquie",sL="Espagne",lL="République tchèque",cL="Suède",uL="Suisse",dL={quantity:"Quantité",price:{regular:"Prix habituel",sale:"Prix de vente"},size:"Taille",color:"Couleur",customization:"Produit personnalisé avec le texte :"},pL={cgv:"/services/sellconditions.aspx",mkpCgv:"",privacyPolicy:"/gdpr-swiss.aspx",collectsPersonalData:"/gdpr-swiss.aspx",cguLoyaltyProgram:"",btobSalesConditions:"",privacyCenter:"/privacy_center.aspx",partnersList:""},mL={close:yP,back:_P,freeValue:kP,learnMore:wP,suggestion:SP,newTab:CP,form:EP,pageErrors:AP,redirectBasketPage:PP,redirectMainPage:LP,refreshPage:TP,refreshPageHint:MP,customerServiceHint:xP,country:IP,country_BE:RP,country_BG:$P,country_CY:OP,country_DK:NP,country_DE:zP,country_EE:DP,country_FI:BP,country_FR:FP,country_GR:jP,country_GB:qP,country_HU:VP,country_IE:UP,country_IS:HP,country_IT:GP,country_HR:KP,country_LV:WP,country_LI:YP,country_LT:ZP,country_LU:JP,country_MT:XP,country_NL:QP,country_NO:eL,country_AT:tL,country_PL:nL,country_PT:rL,country_RO:aL,country_SI:iL,country_SK:oL,country_ES:sL,country_CZ:lL,country_SE:cL,country_CH:uL,product:dL,links:pL},hL="Livraison et paiement, La Redoute",gL={information:"Votre adresse de facturation",order:"Choisissez une méthode de livraison",payment:"Votre mode de paiement",securedPayment:"Paiement 100% sécurisé"},fL="Nous ne livrons pas dans votre pays, veuillez fournir une adresse de livraison dans l'un des pays proposés.",vL="",bL="Panier",yL="Livraison et Paiement",_L="Adresse",kL="7",wL="Vous serez directement averti de l’arrivée de votre colis par e-mail ou par SMS.",SL="Détaxe",CL="Livraison dans les DOM-TOM",EL="Réduction",AL="Bons d'achats",PL="dont {{ value }} d'éco-part",LL="",TL="Modifier l'adresse de votre compte ",ML="Livrer à une autre adresse pour cette commande",xL="TVA incluse",IL="Numéro de téléphone",RL="Mentions légales",$L="Voir le détail",OL="Frais de livraison",NL="Frais de livraison",zL="",DL="Frais de paiement",BL="Récapitulatif",FL="Total",jL="Total articles",qL="Modifier mon panier",VL="Veuillez sélectionner un mode de livraison",UL="Votre panier semble contenir un ou plusieurs articles ne pouvant être livré à l'adresse indiquée.<br />Vous pouvez modifier votre panier ou votre adresse avec les boutons ci-dessous",HL="Supprimer des articles de mon panier",GL="Livrer à une autre adresse pour cette commande",KL="Livrer à une autre adresse pour cette commande",WL={disabledInfo:"Pour pouvoir voir votre adresse de facturation, veuillez d'abord renseigner un numéro de téléphone mobile (voir plus haut)."},YL={sentBy:"Les articles de votre commande",soldBy:"Vendu par <strong>{{sellerName}}</strong>",hasHomeDeliveryOnly:"Ce vendeur propose uniquement la livraison à domicile",information:"",information_bulky:"Article(s) volumineux",information_small:"Petit(s) article(s)"},ZL={fieldset:"Choisir un mode de livraison",delay:{type:"",type_A:"Prise de rendez-vous par notre transporteur sous 7 à 9 semaines",type_B:"Livré en 2-4 jours ouvrables",type_C:"Prise de rendez-vous par notre transporteur sous 2 à 4 semaines",type_D:"Livré en 3-5 jours ouvrables",type_E:"Livré en 3-5 jours ouvrables",type_F:"Prise de rendez-vous par notre transporteur sous 4 à 6 jours",type_G:"Prise de rendez-vous par notre transporteur sous 4 à 7 semaines"},date:{range:"Livraison entre le {{from}} et le {{to}}",day:"Livraison prévue le {{date}}",estimated:"Livraison à partir du {{date}}",exact:"Le {{date}}"},type:{name:"",name_03:"dans un Pickpost",name_08:"Livraison à domicile",name_06:"À domicile"},home:{info:"",info_A:"Vos articles seront livrés à domicile sur rendez-vous, dans la pièce de votre choix. Notre transporteur prendra contact avec vous pour fixer une date de livraison.",info_B:"Certains articles de votre panier seront livrés à domicile sur rendez-vous, dans la pièce de votre choix. Notre transporteur prendra contact avec vous pour fixer une date de livraison.",shippingFormMessage:"Cette adresse s'appliquera à l'ensemble de vos <strong>livraisons à domicile</strong> et cela peut changer les dates de livraison indiquées précédemment."},pickpoint:{actions:{change:"Changer de point PickPost",details:"Localisation et horaires d'ouverture",details_a11y:"Localisation et horaires d'ouverture {{ pickpoint }}",schedule:"Horaires",schedule_a11y:"Horaires {{ pickpoint }}"},details:{address:"<strong>Adresse</strong>",openings:"<strong>Horaires d'ouverture</strong>"},modify:{title:"Choisir un point de retrait",inactive:"Ce point de retrait est momentanément indisponible",notfound:"<strong>Aucun point de retrait trouvé</strong> <br /> Veuillez saisir une autre adresse",error:"<strong>Aucun point relais n’est disponible dans la zone. </strong> <br /> Veuillez élargir la recherche ou changer d’adresse.",renew:"Renouveler ma recherche",select:"Choisir ce point de retrait",form:{label:"Votre adresse"},list:"Liste",map:"Carte",radius:"Rechercher dans un rayon de","aria-label_skipGoogleMap":"Passer directement à la liste des points relais"}},email:{address:"Adresse e-mail de réception",message:"Votre message personnel",noMessage:"Pas de texte renseigné"},fallback:{message:"Le moyen de livraison n'a pas réussi à charger.",retry:"Réessayer"},multiShipping:{title:"Vous serez livrés en plusieurs fois",item:"Livraison n°{{number}} : "},showAll:"Choisir un autre mode de livraison",showAllFlag:"De nouveaux modes de livraison sont disponibles.",showBulkyHomeAvailable:"Livraison gratuite à domicile avec La Redoute +",showPickPointAvailable:"Livraison gratuite en point Colis",icons_alt:{icon:"",icon_home:"Maison"}},JL={title:"Numéro de téléphone mobile",banner:"Pour assurer votre livraison nous avons besoin d’un numéro de téléphone mobile.",success:"Votre numéro de téléphone mobile a bien été enregistré.",change:"Modifier mon numéro de téléphone"},XL={fieldset:"Choisir un mode de paiment",disabledSelectionInfo:"Pour accéder à cette rubrique, veuillez remplir les étapes précédentes de la page.",disabledSelectionInfo_contact:"Pour pouvoir sélectionner votre moyen de paiement, veuillez d'abord renseigner un numéro de téléphone mobile (voir plus haut).",type:{label:"",label_bankcard:"Carte Bancaire","label_paypal-stripe":"PayPal","aria-label_paypalOneOrManyTimes":"Payer avec Paypal",label_paypalOneOrManyTimes:"Payer avec Paypal ",label_paypalManyTimes:"Payer avec Paypal en 4X sans frais",label_par:"Paiement sur facture","label_efinance-ogone":"E-Finance","label_twint-stripe":"TWINT","label_postcard-ogone":"Postcard"},payment_stripe:{description:"",description_paypal:"En choississant ce mode de paiement, vous allez être re-dirigé vers le serveur sécurisé de Paypal et accéder à votre compte Paypal. Votre commande sera enregistrée lorsque vous aurez validé votre paiement sur le site Paypal.",description_twint:'Important : pour que nous puissions valider la confirmation de votre commande, veuillez cliquer sur le bouton "retour à la boutique" une fois votre paiement validé sur la page twint.',submit:"Valider la commande",submit_paypal:"Valider la commande",record:{intro:"Avec La Redoute +, vous acceptez la conservation de votre moyen de paiement afin de gagner du temps lors de vos achats",intro_paypal:"Avec La Redoute +, vous acceptez la conservation de votre compte Paypal afin de gagner du temps lors de vos achats",label:{optout:"Ne pas enregistrer mon moyen de paiement.",optin:"",optin_card:"J’enregistre ma carte pour faciliter mes prochains achats.",optin_paypal:"Mémoriser ce compte Paypal pour un prochain achat"}},errors:{confirm:"Une erreur technique est survenue durant la confirmation du paiement"},icons_alt:{icon:"",icon_bankcard:"Carte bancaire"}},payment_bankcardAlias:{label:"Carte bancaire",label_visa:"Visa",label_mastercard:"Mastercard",label_amex:"American Express","label_american express":"American Express",label_cb:"Carte bancaire",endingWith:"se terminant par",expiresOn:"Expire le",submit:"Valider la commande",redirectionFormLabel:"Redirection automatique vers la page de paiement"},payment_par:{description:"<strong>Montant disponible actuellement :</strong> {{amount}}<br/><br/>A la réception de votre colis, moyennant une participation de {{ fees }}, vous disposez d'un délai de 14 jours pour effectuer votre paiement.",description_Cycle1:"La facture relative à votre commande vous parviendra par email 4 jours après l’expédition de votre colis.<br/><br/>Vous recevrez ensuite par envoi séparé une situation mensuelle de votre compte récapitulant vos achats, paiements ou éventuels retours.",description_Cycle2:"Vous avez atteint votre limite maximale autorisée pour le paiement sur facture. Pour valider votre commande avec ce moyen de paiement, merci de régler un acompte de <strong>{{amount}}</strong> <br/><br/>Veuillez sélectionner un moyen de paiement pour régler ce montant :",description_Cycle3:"Vous avez atteint votre limite maximale autorisée pour le paiement sur facture. <br/><br/>Vous pouvez régler {{amount}} par virement bancaire ou à l'office de poste avec une QR-facture (BVR).<br/><br/>Vous avez également la possibilité d'utiliser les autres moyens de paiements ci-dessus.<br/>Votre commande sera conservée jusqu’à 20 jours, dans l’attente de votre paiement.<br/><br/>Veuillez sélectionner un moyen de paiement pour régler ce montant :",description_Cycle4:"Vous avez atteint votre limite maximale autorisée pour le paiement sur facture. <br/><br/>Vous pouvez régler {{amount}} par virement bancaire ou à l'office de poste avec une QR-facture (BVR).<br/><br/>Vous avez également la possibilité d'utiliser les autres moyens de paiements ci-dessus.<br/>Votre commande sera conservée jusqu’à 20 jours, dans l’attente de votre paiement.<br/><br/>Veuillez sélectionner un moyen de paiement pour régler ce montant :",modes:{label:"",label_bvr:"QR-Facture","label_bank-details":"Virement bancaire"},labels:{birthdate:"Date de naissance",day:"Jour",month:"Mois",year:"Année"},hint:"Pour sécuriser votre paiement, merci de nous indiquer votre date de naissance.",actions:{submit:"Valider la commande"},errors:{date:"Veuillez entrer une date valide ex: 01/01/1970"}},payment_postcard:{description:"Validez votre commande, vous serez alors redirigé(e) vers le serveur sécurisé de la PostFinance. Identifiez-vous en suivant les instructions données. Votre commande sera enregistrée lorsque vous aurez validé votre paiement sur le site PostFinance.",submit:"Valider la commande",error:"Une erreur technique est survenue durant la confirmation du paiement"},payment_efinance:{description:"Validez votre commande, vous serez alors redirigé(e) vers le serveur sécurisé de la PostFinance. Identifiez-vous en suivant les instructions données. Pensez à vous munir de votre Card-Reader fourni par votre banque, il vous sera demandé pour encore plus de sécurité. Votre commande sera enregistrée lorsque vous aurez validé votre paiement sur le site PostFinance.",submit:"Valider la commande",error:"Une erreur technique est survenue durant la confirmation du paiement"},mentionsLoyaltyRenewal:"",mentionsLr:"En validant votre commande vous acceptez et reconnaissez avoir pris connaissance de l'intégralité des <2>Conditions Générales de Vente</2>",mentionsLrLoyalty:"",mentionsMkp:"",mentionsMkpLoyalty:"",mentionsLrMkp:"",mentionsLrMkpLoyalty:"",mentionBtobLr:"",mentionBtobMkp:"",mentionBtobLrMkp:"",generalSalesConditions:"Conditions générales de vente",btobSalesConditions:"",privacyPolicy:"Politique de confidentialité",collectsPersonalData:"Collecte des données personnelles",cguLoyaltyProgram:"Conditions générales d'utilisation La Redoute +",cgvPaymentMethod:"En validant ma commande j'accepte et je reconnais avoir pris connaissance de l'intégralité des <1>Conditions Générales de Vente de laredoute.ch.</1>",cgvPaymentMethodBtoB:"",fallback:{message:"Le moyen de paiement n'a pas réussi à charger.",retry:"Réessayer"},showAll:"Choisir un autre mode de paiement",showAllFlag:"De nouveaux modes de paiement sont disponibles.",errors:{error:"Une erreur est survenue.",error_RH00045C_600:"Votre commande a été annulée car vous avez récemment passé une autre commande similaire.",error_RB00072C_010:"Ce mode de paiement ne peut pas être utilisé. Merci de nous contacter.",error_RB00072C_011:"Ce mode de paiement ne peut pas être utilisé. Merci de nous contacter.",error_RB00072C_012:"Ce mode de paiement ne peut pas être utilisé. Merci de nous contacter.",error_RB00072C_013:"Ce mode de paiement ne peut pas être utilisé. Merci de nous contacter.",error_RB00072C_014:"Votre crédit est insuffisant.",error_RB00072C_020:"Cette date de naissance diffère de notre dossier client. Merci de la corriger.",error_GENERIC_DECLINE:"Une erreur de paiement s'est produite",error_EXPIRED_CARD:"votre carte de paiement a expiré",error_INSUFFICIENT_FUNDS:"Le solde de votre carte est insuffisant.",error_PAYMENT_INTENT_AUTHENTICATION_FAILURE:"Paiement rejeté. Essayez à nouveau ou contactez le service client.",error_PAYMENT_METHOD_CUSTOMER_DECLINE:"Paiement rejeté. Essayez à nouveau ou contactez le service client.",error_OGONE_PAYMENT_CANCELLED:"Paiement rejeté. Essayez à nouveau ou contactez le service client.",error_OGONE_PAYMENT_DECLINED:"Une erreur de paiement s'est produite"},icons_alt:{icon_bankcard:"Carte bancaire",icon_paymentAfterReceipt:"Paiement sur facture"}},QL={processing:"Chargement en cours",wait:"Veuillez patienter..."},eT={flag:"",label:"",status:"",flagFirstApplyPreferences:"Vos préférences ont été sauvegardées lors de votre dernière commande.",labelFirstApplyPreferences:""},tT={banner:{header:"",header_added:"",switch:"",switch_added:"",list:{freeHomeDelivery:"",discount:""},accept:"",conditions:"",informations:""},modal:{header:"",list:{freeHomeDelivery:"",discountFashion:"",discountHome:""},accept:"",skip:"",conditions:"",informations:""},toggle:{error:"",error_add:"",error_remove:""},payment:{mention:"",mention_paypal:"",mention_rPremium:"",mention_aliases:""}},nT={header:{name:"",usedAmount:"",modify:"",usedAmount_one:"",usedAmount_other:""},details:{info:"",validityDate:"",number:"",selectVouchers:"",submit:"",submit_disabled:"",submit_complete:""},residual:""},rT={minimalConfirmationDescription:"Merci pour votre commande {{orderId}}. Celle-ci a bien été enregistrée !",minimalConfirmationRefreshHint:"Le détail sera disponible très prochainement dans votre espace client."},aT={backButton:"",pageTitle:"",welcome:{label:"",status:"",flag:""},headings:{payment:"",securedPayment:""}},iT={backButton:"Retour à mon suivi de compte",pageTitle:"Votre suivi de compte - Paiement",welcome:{label:"Veuillez choisir l'un des moyens de paiement proposés ci-dessous. Montant : {{fees}}",status:"info",flag:""},headings:{payment:"Effectuer mon paiement",securedPayment:"Paiement 100% sécurisé"},submit:"Valider mon paiement"},oT={pageTitle:hL,headings:gL,noAddresseTitle:fL,noAddressLegalText:vL,cart:bL,deliveryAndPayment:yL,addressStepper:_L,storageDuration:kL,deliveryRetainment:wL,detax:SL,detaxIframeTitle:CL,discount:EL,appliedVouchers:AL,ecopart:PL,billingAddressInformation:LL,editMyBillingAddress:TL,editMyShippingAddress:ML,includedVAT:xL,phoneNumber:IL,legalmentions:RL,seeDetail:$L,shippingFees:OL,shippingFees_estimated:NL,additionalShippingFees:zL,paymentFees:DL,summary:BL,total:FL,totalArticles:jL,updateBasket:qL,selectADelivery:VL,infoPartialDelivery:UL,deleteArticleInBasket:HL,updateDeliveryAddress:GL,updateDeliveryAddress_limited:KL,billingAddress:WL,seller:YL,deliveries:ZL,contact:JL,payments:XL,transaction:QL,opinion:eT,loyalty:tT,vouchers:nT,confirmation:rT,renewal:aT,parAccountPayment:iT},sT="1€",lT="30",cT="Sourd ou malentendant ?",uT="Facil'iti - aide d'accessibilité $t(common:newTab)",dT={homepage:"Page d’accueil La Redoute"},pT="Sourd line - Espace sourd $t(common:newTab)",mT={item_deadlineToChangeOpinion:{title:"Retour gratuit",title_break:"Retour gratuit",subtitle:"Vous voulez retourner vos articles gratuitement ? C'est possible !",info:{1:"Retour gratuit en relais colis, pour les articles de moins de 30 kg.",2:"Retour gratuit pour les articles meubles & déco de plus de 30 kg sur demande."},link:{aria:"$t(common:learnMore) sur le délai de rétractation",href:"/services.aspx"}},item_freeReturn:{title:"Aide et contact",title_break:"Aide et contact",subtitle:`Besoin d’aide ? Nous sommes à votre disposition!
|
|
317
|
-
Munissez-vous de votre numéro de client pour faciliter votre démarche et contactez-nous.`,info:{1:"Déclarez votre retour directement dans votre suivi de commande",2:"Préparez votre colis et déposez-le en point Relais Colis ®",3:"Vous serez remboursé sous 14 jours maximum à la réception de votre colis dans nos entrepôts"},link:{aria:"$t(common:learnMore) sur les retours gratuits",href:"/contact.aspx"}},item_freeShippingInRelayFrom:{title:"30 jours pour changer d'avis",title_break:"30 jours pour changer d'avis",subtitle:"Confortable ! La Redoute vous laisse 30 jours pour vous décider avant de renvoyer vos articles.",info:{1:"Livraison entre 1 à 3 jours ouvrés",2:"Pour les articles vendus et expédiés par La Redoute"},link:{aria:"$t(common:learnMore) sur la livraison en point relais ",href:"/services.aspx"}},item_securedPayment:{title:"Paiement facile et sécurisé",title_break:"Paiement facile et sécurié",subtitle:"À La Redoute, votre paiement est 100% sécurisé ! ",info:{1:"Transactions protégées contre les interceptions malveillantes.",2:"La Redoute n’a pas connaissance des données de votre carte bancaire",3:"Nous ne stockons pas vos données"},link:{aria:"En savoir plus sur la livraison en point relais ",href:"/services.aspx?page=payment"}}},hT={information:"",disconnect:""},gT={startPriceFreeDeliveryRelay:sT,withdrawalPeriod:lT,accessibilityHint:cT,facilityLinkTitle:uT,link:dT,sourdLineLinkTitle:pT,reinsurance:mT,logAsBanner:hT},fT={fields:{email:{label:"",label_signup:"",hint:"Vous avez déjà un compte ? <1>Connectez-vous</1>",errors:{required:"",length:"",format:""}},password:{label:"",label_signup:"",errors:{required:"",space:"",length:""},visibility:{hide:"",show:""},hint:{length:"",uppercase:"",lowercase:"",digit:""}},birthdate:{label:"",label_signup:"",errors:{invalid:"",young:""},hint:""},enterprise:{groupLabel:"",contactGroupLabel:"",addressGroupLabel:"",country:{label:""},corporateName:{label:"",errors:{length:"",format:""}},siret:{label:"",errors:{length:"",format:""}},vat:{label:"",errors:{length:"",format:""}}},address:{title:{label:"Civilité",placeholder:"Sélectionner une civilité",opts:{mrs:"Madame",miss:"Mademoiselle",mr:"Monsieur",emp:"Entreprise"}},firstname:{label:"Prénom",errors:{required:"Merci d'indiquer votre prénom",format:"Format incorrect : merci de n'utiliser que des lettres",length:"Merci d'indiquer entre 2 et 32 caractères"}},lastname:{label:"Nom",errors:{required:"Merci d'indiquer votre nom",format:"Format incorrect : merci de n'utiliser que des lettres",length:"Merci d'indiquer entre 2 et 32 caractères"}},street:{label:"Adresse (rue)",errors:{required:"Merci d'indiquer votre adresse",length:"Merci d'indiquer au maximum 40 caractères"}},houseNumber:{label:"Numéro de porte",errors:{length:"Merci d'indiquer au maximum 40 caractères"}},streetComplement:{label:"Complément d'adresse • optionnel",errors:{length:"Merci d'indiquer au maximum 40 caractères"}},hamlet:{label:"",errors:{length:""}},province:{label:"",errors:{length:""}},zipCode:{label:"Code postal",errors:{required:"Merci d'indiquer un code postal valide",format:"Format incorrect : 4 chiffres",length:"Format incorrect : 4 chiffres"}},zipCodeComplement:{label:"",errors:{required:"",format:"",length:""}},city:{label:"Ville",errors:{required:"Merci d'indiquer votre ville",format:"Format incorrect : merci de n'utiliser que des lettres",length:"Merci d'indiquer au maximum 32 caractères"},placeholder:"Sélectionner une ville..."},country:{label:"Pays"},phoneNumber:{label:"Téléphone mobile (ex: 078xxxxxxx)",label_mobile:"Téléphone mobile (ex: 078xxxxxxx)",errors:{required:"Pour faciliter vos livraisons: merci de saisir votre n° de téléphone mobile",format:{fixe:"Veuillez saisir un numéro de téléphone valide",mobile:"Veuillez saisir un numéro de téléphone mobile valide"}},hint:"Pour faciliter la prise de contact lors de la livraison","hint_phone-only":"Non utilisé pour la prospection commerciale"},phonePrefix:{label:"Préfixe du pays",errors:{required:""}}},options:{updateShipping:{label:"Utiliser également comme adresse de livraison"}},subscriptions:{label:"",collapse:{label:"",description:""},yes:"",no:"",options:{type:""},hint:{type:""}}},title:"Modifier","title_billing-address":"Modifier l'adresse de votre compte","title_shipping-address":"Livrer à une autre adresse pour cette commande","title_phone-only":"Numéro de téléphone mobile",submit:"Valider","submit_billing-address":"Valider","submit_shipping-address":"Confirmer cette adresse de livraison","submit_phone-only":"Valider",globalError:"Une erreur est survenue.","globalError_phone-only":"Une erreur est survenue. Vérifiez qu'il s'agit bien de votre numéro de téléphone mobile.",globalError_010:"Une erreur s'est produite. Le code postal saisi et le code postal de la ville ne correspondent pas.",globalError_011:"Une erreur s'est produite. Le code postal saisi et le code postal de la ville ne correspondent pas.",back:"Précédent"},vT={suggestions:{title:"",info:"",hint:"",form:{fields:{streetNumber:{label:"",info:""},addressControlChoice:{label:"",label_one:"",label_other:"",label_reenter_one:"",label_reenter_other:""},editPreviousAddress:{label:""},keepPreviousAddress:{label:""}},submit:"",submit_enabled:"",submit_disabled:""}}},bT={form:fT,address:vT},yT={pageTitle:"La Redoute, Mode française | La Redoute",title:"",information:"",showPassword:"Afficher le mot de passe",hidePassword:"Masquer le mot de passe"},_T={pageTitle:"",form:{fields:{civility:{label:"",placeholder:"",errors:{required:""}},lastName:{label:"",errors:{required:"",length:"",format:""}},firstName:{label:"",errors:{required:"",length:"",format:""}},email:{label:"",errors:{required:"",length:"",format:""}},description:{label:"",placeholder:"",errors:{required:""}},message:{label:"",hint:"",errors:{length:""}},validation:{label:"",errors:{required:""}},url:{label:"",errors:{required:"",length:""}},attachment:{label:""}},globalError:"",submit:"",title:"",legalText:"",legalContact:""},confirmationPage:{title:"",description:"",cta:""}},kT={signup:yT,illegalContentReport:_T},wT={ui:bP,common:mL,checkout:oT,navigation:gT,user:bT,customer:kT},ST="Ritorno",CT="Vicino",ET="Numero di cellulare",AT="Campo vuoto",PT={placeholder:{day:"JJ",month:"MM",year:"AAAA"}},LT={back:ST,close:CT,phoneNumber:ET,clearField:AT,date:PT},TT="Vicino",MT="",xT="Gratuito",IT="Scopri di più",RT={seeLess:"Visualizza meno suggerimenti",seeMore:"Visualizza altri consigli"},$T="(nuova finestra)",OT={requiredField:"Questo campo è obbligatorio"},NT={technical:"Pagina non accessibile",notFound:"Ops, niente di interessante qui!",basketChange:"Il tuo pagamento non è riuscito perché il tuo carrello è stato modificato."},zT="Aggiorna il tuo carrello",DT="Torna alla pagina principale",BT="Ricarica la pagina",FT="Prova a ricaricare la pagina.",jT='Avete bisogno di aiuto? <a href="/contact.aspx" style="text-decoration: underline;">Contattateci subito! </a> Saremo lieti di ascoltarvi.',qT="Paese",VT="Germania",UT="Austria",HT="Belgio",GT="Bulgaria",KT="Svizzera",WT="Cipro",YT="Repubblica Ceca",ZT="Croazia",JT="Danimarca",XT="Spagna",QT="Estonia",eM="Finlandia",tM="Francia",nM="Grecia",rM="Ungheria",aM="Irlanda",iM="Islanda",oM="Italia",sM="Liechtenstein",lM="Lettonia",cM="Lituania",uM="Lussemburgo",dM="malto",pM="Norvegia",mM="Olanda",hM="Polonia",gM="Portogallo",fM="Romania",vM="Regno Unito",bM="Slovacchia",yM="Slovenia",_M="Svezia",kM={quantity:"Quantità",price:{regular:"Prezzo",sale:"prezzo dopo lo sconto"},size:"Taglia",color:"Colore",customization:"Prodotto personalizzato con il testo:"},wM={cgv:"/it/services/sellconditions.aspx",mkpCgv:"",privacyPolicy:"/it/gdpr-swiss.aspx",collectsPersonalData:"/it/gdpr-swiss.aspx",cguLoyaltyProgram:"",btobSalesConditions:"",privacyCenter:"/it/privacy_center.aspx",partnersList:""},SM={close:TT,back:MT,freeValue:xT,learnMore:IT,suggestion:RT,newTab:$T,form:OT,pageErrors:NT,redirectBasketPage:zT,redirectMainPage:DT,refreshPage:BT,refreshPageHint:FT,customerServiceHint:jT,country:qT,country_DE:VT,country_AT:UT,country_BE:HT,country_BG:GT,country_CH:KT,country_CY:WT,country_CZ:YT,country_HR:ZT,country_DK:JT,country_ES:XT,country_EE:QT,country_FI:eM,country_FR:tM,country_GR:nM,country_HU:rM,country_IE:aM,country_IS:iM,country_IT:oM,country_LI:sM,country_LV:lM,country_LT:cM,country_LU:uM,country_MT:dM,country_NO:pM,country_NL:mM,country_PL:hM,country_PT:gM,country_RO:fM,country_UK:vM,country_SK:bM,country_SI:yM,country_SE:_M,product:kM,links:wM},CM="Consegna e pagamento, La Redoute",EM={information:"Indirizzo di fatturazione",order:"Scegli un metodo di consegna",payment:"Il suo metodo di pagamento",securedPayment:"Pagamento sicuro al 100%."},AM="Non effettuiamo spedizioni nel tuo Paese, ti preghiamo di fornire un indirizzo di consegna in uno dei Paesi offerti.",PM="",LM="Carrello",TM="Consegna e pagamento",MM="Indirizzo",xM="7",IM="7",RM="Sarete avvisati direttamente dell'arrivo del pacco tramite e-mail o SMS.",$M="",OM="",NM="Sconto",zM="",DM="",BM="",FM="Modifica dell'indirizzo del conto ",jM="Consegnare ad un altro indirizzo per questo ordine",qM="IVA inclusa",VM="Numero di cellulare",UM="Menzioni legali",HM="Guarda i detagli",GM="Spedizione",KM="Spese di spedizione",WM="",YM="Contrassegno (+1,95€)",ZM="Dettagli dell'ordine",JM="Totale",XM="Totale (senza sconto)",QM="Modifica il mio carrello",e2="Seleziona un metodo di spedizione",t2="Sembra che il tuo carrello contenga uno o più articoli che non possono essere spediti all'indirizzo specificato.<br />Puoi modificare il tuo carrello o il tuo indirizzo utilizzando i pulsanti sottostanti",n2="Rimuovi gli articoli dal mio carrello",r2="Consegnare ad un altro indirizzo per questo ordine",a2="Consegnare ad un altro indirizzo per questo ordine",i2={disabledInfo:"Per visualizzare l'indirizzo di fatturazione, inserire prima un numero di cellulare (vedi sopra)."},o2={sentBy:"Articoli dell'ordine",soldBy:"Venduto da <strong>{{sellerName}}</strong>",hasHomeDeliveryOnly:"Questo venditore offre solo la consegna a domicilio",information:"",information_bulky:"Oggetti ingombranti",information_small:"Articoli regolari"},s2={fieldset:"Scegli un metodo di consegna",delay:{type:"",type_A:"Appuntamento fissato dal nostro corriere entro 7-9 settimane",type_B:"Consegnato in 2-4 giorni lavorativi",type_C:"Appuntamento fissato dal nostro corriere entro 2 o 4 settimane",type_D:"Consegnato in 3-5 giorni lavorativi",type_E:"Consegnato in 3-5 giorni lavorativi",type_F:"Appuntamento fissato dal nostro corriere entro 4-6 giorni",type_G:"Appuntamento fissato dal nostro corriere entro 4-7 settimane"},date:{range:"Disponibile per la spedizione tra giorni {{from}} È {{to}}",day:"Consegna prevista lo stesso giorno {{date}}",estimated:"Consegna {{date}}",exact:"Lui {{date}}"},type:{name:"",name_03:"in un Pickpost",name_08:"Consegna a domicilio",name_06:"A domicilio"},home:{info:"",info_A:"I vostri articoli saranno consegnati a casa vostra su appuntamento, nella stanza di vostra scelta. Il nostro corriere vi contatterà per concordare la data di consegna.",info_B:"Alcuni articoli del vostro cesto saranno consegnati a casa vostra su appuntamento, nella stanza di vostra scelta. Il nostro corriere vi contatterà per concordare la data di consegna.",info_C:"",info_D:"",info_E:"",shippingFormMessage:"Questo indirizzo si applicherà a tutti i tuoi <strong>Consegna a domicilio</strong> e ciò potrebbe modificare le date di consegna sopra indicate."},pickpoint:{actions:{change:"Cambiare il PickPost punto",details:"Posizione e orari di apertura",details_a11y:"Posizione e orari di apertura {{ pickpoint }}",schedule:"Orari",schedule_a11y:"Orari {{ pickpoint }}"},details:{address:"<strong>Indirizzo</strong>",openings:"<strong>Orari di apertura</strong>"},modify:{title:"Clicca per scegliere un punto di ritiro",inactive:"Questo punto di consegna è temporaneamente non disponibile",notfound:"<strong>Nessun punto di consegna trovato</strong> <br /> Inserisci un altro indirizzo",error:"<strong> Si è verificato un errore </strong> <br /> Aggiorna la ricerca del punto di consegna",renew:"Aggiorna ricerca",select:"Scegli questo punto di raccolta",form:{label:"Il suo indirizzo"},list:"Elenco",map:"Carta",radius:"Cerca nel raggio di","aria-label_skipGoogleMap":"Vai direttamente all'elenco dei punti di ritrasmissione"}},email:{address:"",message:"",noMessage:""},fallback:{message:"Caricamento fallito",retry:"riprova"},multiShipping:{title:"",item:""},showAll:"Scegli un altro metodo di spedizione",showAllFlag:"Sono disponibili nuove modalità di consegna",showBulkyHomeAvailable:"Consegna a domicilio gratuita con La Redoute",showPickPointAvailable:"Consegna gratuita presso il punto PICKUP"},l2={title:"Numero di cellulare",banner:"Per garantire la consegna abbiamo bisogno di un numero di cellulare.",success:"Il tuo numero di cellulare è stato registrato con successo.",change:"Cambia il mio numero di cellulare",icons_alt:{icon:"",icon_home:"Casa"}},c2={fieldset:"Scegli un metodo di pagamento",disabledSelectionInfo:"Per accedere a questa sezione, completare i passaggi precedenti nella pagina.",disabledSelectionInfo_contact:"Per selezionare il metodo di pagamento, inserire innanzitutto il numero di cellulare (vedi sopra).",type:{label:"",label_bankcard:"Carta di credito",label_paypal:"PayPal","label_paypal-stripe":"PayPal","aria-label_paypalOneOrManyTimes":"Paga con Paypal in 1 rata o 3 rate senza commissioni",label_paypalOneOrManyTimes:"Paga con Paypal in 1X o 3X senza commissioni",label_paypalManyTimes:"Paga con Paypal in 4X senza commissioni",label_par:"Pagamento su fattura","label_efinance-ogone":"E-Finance","label_twint-stripe":"TWINT","label_postcard-ogone":"Postcard"},payment_bankcard:{submit:"confermare il pagamento",legalMentionsLink:"Controlla le condizioni generali",changeBrand:"Seleziona un'altra opzione",brandInfo:' Il pagamento verrà effettuato con opzione $t(checkout:payments.bankcard.brandLabel, {"context": "{{brand}}" }). ',fields:{cardNumber:"Numero di carta",expirationDate:"Data di validità",cvv:"CVV"},saveAlias:"",saveAlias_optin:"Salva questi dati per futuri acquisti presso La Redoute.",saveAlias_optout:"",fidelity:"",loyaltyProgramMentions:"Iscrivendoti a La Redoute, accetti che i tuoi metodi di pagamento vengano archiviati in modo sicuro e utilizzati allo scopo di gestire i tuoi abbonamenti con rinnovo tacito.",brandLabel:"C.B.",brandLabel_cb:"C.B.",brandLabel_visa:"Visa",brandLabel_mastercard:"MasterCard",brandLabel_amex:"American Express",errors:{init:"Si è verificato un errore.",required:"Questo campo è obbligatorio.",confirm:"Si è verificato un errore tecnico durante la conferma del pagamento."}},payment_stripe:{description:"",description_paypal:"Scegliendo questo metodo di pagamento, sarete reindirizzati al server sicuro di Paypal e accederete al vostro conto Paypal. L'ordine verrà registrato una volta convalidato il pagamento sul sito di Paypal.",description_twint:'Importante: per poter confermare il vostro ordine, cliccate sul pulsante "torna al negozio" una volta convalidato il pagamento nella pagina di twint.',submit:"Confermare l'ordine",submit_paypal:"Confermare l'ordine",record:{intro:"",intro_paypal:"",label:{optout:"",optin:"",optin_card:"Salva questi dati per acquisti futuri.",optin_paypal:"Salva i dettagli del conto PayPal per acquisti futuri"}},errors:{confirm:"Si è verificato un errore tecnico durante la conferma del pagamento."},icons_alt:{icon:"",icon_bankcard:"Carta di credito"}},payment_bankcardAlias:{label:"Carta di credito",label_visa:"Visa",label_mastercard:"MasterCard",label_amex:"American Express","label_american express":"American Express",label_cb:"Carta di credito",endingWith:"terminando con",expiresOn:"Scade tra",submit:"Confermare l'ordine",redirectionFormLabel:"Reindirizzamento automatico alla pagina di pagamento"},payment_par:{description:"L'importo del tuo ordine sarà aggiornato (+1,95€ per contributo di contrassegno)",description_Cycle1:"La fattura dell'ordine vi sarà inviata per e-mail 4 giorni dopo la spedizione del pacco.<br/><br/>Riceverete poi un estratto conto mensile separato che riepiloga gli acquisti, i pagamenti e gli eventuali resi.",description_Cycle2:"È stato raggiunto il limite massimo autorizzato per il pagamento tramite fattura. Per convalidare l'ordine con questo metodo di pagamento, si prega di versare un acconto di<strong>{{amount}}</strong> <br/><br/>Selezionare un metodo di pagamento per versare questo importo:",description_Cycle3:"Avete raggiunto il limite massimo autorizzato per il pagamento tramite fattura. <br/><br/>È possibile pagare {{amount}} tramite bonifico bancario o presso l'ufficio postale con un bollettino QR (BVR).<br/><br/>È possibile utilizzare anche gli altri metodi di pagamento elencati sopra.<br/>Il vostro ordine sarà trattenuto per un massimo di 20 giorni, in attesa del pagamento.<br/><br/>Selezionare un metodo di pagamento per pagare questo importo:",description_Cycle4:"Avete raggiunto il limite massimo autorizzato per il pagamento tramite fattura. <br/><br/>È possibile pagare {{amount}} tramite bonifico bancario o presso l'ufficio postale con un bollettino QR (BVR).<br/><br/>È possibile utilizzare anche gli altri metodi di pagamento elencati sopra.<br/>Il vostro ordine sarà trattenuto per un massimo di 20 giorni, in attesa del pagamento.<br/><br/>Selezionare un metodo di pagamento per pagare questo importo:",modes:{label:"",label_bvr:"QR-fattura","label_bank-details":"Trasferimento bancario"},labels:{birthdate:"",day:"",month:"",year:""},hint:"",actions:{submit:"Confermare l'ordine"},errors:{date:""}},payment_postcard:{description:"Convalida il tuo ordine, verrai reindirizzato sul server sicuro di PostFinance. Identificati seguendo le istruzioni fornite. Il vostro ordine verrà registrato non appena avrete convalidato il pagamento sul sito PostFinance.",submit:"Confermare l'ordine",error:"Si è verificato un errore tecnico durante la conferma del pagamento."},payment_efinance:{description:"Convalida il tuo ordine, verrai reindirizzato sul server sicuro di PostFinance. Identificati seguendo le istruzioni fornite. Ricordati di portare con te il tuo Card-Reader fornito dalla tua banca, ti verrà richiesto per una sicurezza ancora maggiore. Il vostro ordine verrà registrato non appena avrete convalidato il pagamento sul sito PostFinance.",submit:"Confermare l'ordine",error:"Si è verificato un errore tecnico durante la conferma del pagamento."},mentionsLoyaltyRenewal:"",mentionsLr:"Confermando l'ordine, accetto e riconosco di aver letto per intero le <2>Condizioni Generali di Vendita.</2>",mentionsLrLoyalty:"",mentionsMkp:"",mentionsMkpLoyalty:"",mentionsLrMkp:"",mentionsLrMkpLoyalty:"",mentionBtobLr:"",mentionBtobMkp:"",mentionBtobLrMkp:"",generalSalesConditions:"Condizioni generali di vendita",btobSalesConditions:"",privacyPolicy:"politica sulla riservatezza",collectsPersonalData:"Raccolta dei dati personali",cguLoyaltyProgram:"Condizioni generali d'uso La Redoute",cgvPaymentMethod:"Ho letto e accetto l <1>condizioni generali di vendita</1>",cgvPaymentMethodBtoB:"Ho letto e accetto l <1>Termini e Condizioni Clienti Professionali</1>",fallback:{message:"Errore durante il caricamento del metodo di pagamento.",retry:"riprova"},showAll:"Scegli un altro metodo di pagamento",showAllFlag:"Sono disponibili nuovi metodi di pagamento.",errors:{error:"Si è verificato un errore nel pagamento.",error_RH00045C_600:"Il tuo ordine è stato annullato perché di recente hai effettuato un altro ordine simile. ",error_RB00072C_037:"Numero di telefono invalido.",error_RB00072C_014:"Il tuo credito è insufficiente. ",error_GENERIC_DECLINE:"Si è verificato un errore nel pagamento",error_EXPIRED_CARD:"La tua carta di pagamento è scaduta",error_INSUFFICIENT_FUNDS:"Il saldo della tua carta è insufficiente.",error_PAYMENT_INTENT_AUTHENTICATION_FAILURE:"Pagamento rifiutato. ",error_PAYMENT_METHOD_CUSTOMER_DECLINE:"Pagamento rifiutato. ",error_OGONE_PAYMENT_CANCELLED:"Pagamento rifiutato.",error_OGONE_PAYMENT_DECLINED:"Si è verificato un errore nel pagamento"},icons_alt:{icon_bankcard:"Carta di credito",icon_paymentAfterReceipt:"Pagamento su fattura"}},u2={processing:"Caricare",wait:"Attendere prego..."},d2={flag:"",label:"",status:"",flagFirstApplyPreferences:"Le preferenze sono state salvate con l'ultimo ordine.",labelFirstApplyPreferences:""},p2={banner:{header:"",header_added:"",switch:"",switch_added:"",list:{freeHomeDelivery:"",discount:""},accept:"",conditions:"",informations:""},modal:{header:"",list:{freeHomeDelivery:"",discountFashion:"",discountHome:""},accept:"",skip:"",conditions:"",informations:""},toggle:{error:"",error_add:"",error_remove:""},payment:{mention:"",mention_paypal:"",mention_rPremium:"",mention_aliases:""}},m2={header:{name:"",usedAmount:"",usedAmount_one:"",usedAmount_other:"",modify:""},details:{info:"",validityDate:"",number:"",selectVouchers:"",submit:"",submit_disabled:"",submit_complete:""},residual:""},h2={minimalConfirmationDescription:"grazie per il tuo ordine {{orderId}}. ",minimalConfirmationRefreshHint:"I dettagli saranno disponibili nella tua area clienti nei prossimi minuti."},g2={backButton:"",pageTitle:"",welcome:{label:"",status:"",flag:""},headings:{payment:"",securedPayment:""}},f2={backButton:"Torniamo al monitoraggio del mio account",pageTitle:"Monitoraggio del tuo account - Pagamento",welcome:{label:"Scegliere uno dei metodi di pagamento indicati di seguito. Importo : {{fees}}",status:"informazione",flag:""},headings:{payment:"Il mio metodo di pagamento",securedPayment:"Pagamento sicuro al 100%."},submit:"Conferma"},v2={pageTitle:CM,headings:EM,noAddresseTitle:AM,noAddressLegalText:PM,cart:LM,deliveryAndPayment:TM,addressStepper:MM,storageDuration:xM,storageDuration_pickup:IM,deliveryRetainment:RM,detax:$M,detaxIframeTitle:OM,discount:NM,appliedVouchers:zM,ecopart:DM,billingAddressInformation:BM,editMyBillingAddress:FM,editMyShippingAddress:jM,includedVAT:qM,phoneNumber:VM,legalmentions:UM,seeDetail:HM,shippingFees:GM,shippingFees_estimated:KM,additionalShippingFees:WM,paymentFees:YM,summary:ZM,total:JM,totalArticles:XM,updateBasket:QM,selectADelivery:e2,infoPartialDelivery:t2,deleteArticleInBasket:n2,updateDeliveryAddress:r2,updateDeliveryAddress_limited:a2,billingAddress:i2,seller:o2,deliveries:s2,contact:l2,payments:c2,transaction:u2,opinion:d2,loyalty:p2,vouchers:m2,confirmation:h2,renewal:g2,parAccountPayment:f2},b2="€50",y2="30",_2="",k2="",w2={homepage:"La home page di La Redoute"},S2="",C2={item_deadlineToChangeOpinion:{title:"Reso gratuito",title_break:"Reso gratuito",subtitle:"Desiderate restituire gratuitamente i vostri articoli? È possibile!",info:{1:"Il reso è gratuito presso il Relais Colis per gli articoli di peso inferiore a 30 kg.",2:"Restituzione gratuita per mobili e articoli decorativi di peso superiore a 30 kg su richiesta."},link:{aria:"$t(common:learnMore) su cambi e resi",href:"/services.aspx"}},item_freeReturn:{title:"Aiuto e contatto",title_break:"Aiuto e contatto",subtitle:`Avete bisogno di aiuto? Siamo sempre a vostra disposizione!
|
|
318
|
-
Tenete a portata di mano il vostro numero cliente, in modo da poter rispondere più rapidamente alle vostre richieste.`,info:{1:"Per gli articoli di piccole dimensioni, abbigliamento e biancheria per la casa, segui le istruzioni sul sito o sul retro del collo",2:"Per gli articoli voluminosi contatta il nostro servizio clienti",3:"Il pacco deve essere preparato utilizzando possibilmente il nostro imballaggio, ed inserendo all’interno l’apposita copia della bolla di spedizione."},link:{aria:"$t(common:learnMore) su cambi e resi",href:"/contact.aspx"}},item_freeShippingInRelayFrom:{title:"30 giorno per il reso",title_break:"30 giorni per il reso",subtitle:"Comodo! La Redoute vi concede 30 giorni per decidere prima di restituire i vostri articoli.",info:{1:"Consegna da 1 a 3 giorni lavorativi",2:"Per gli articoli venduti e spediti da La Redoute"},link:{aria:"$t(common:learnMore) sui metodi di spedizione",href:"/services.aspx"}},item_securedPayment:{title:"Pagamento facile e sicuro",title_break:"Pagamento facile e sicuro",subtitle:"Paga il tuo ordine in modo rapido e sicuro",info:{1:"Tutti i nostri metodi di pagamento utilizzano metodi di sicurezza avanzati",2:"Proteggiamo la tua privacy",3:"Non memorizziamo i tuoi dati"},link:{aria:"$t(common:learnMore) sui metodi di pagamento",href:"/services.aspx?page=payment"}}},E2={information:"",disconnect:""},A2={startPriceFreeDeliveryRelay:b2,withdrawalPeriod:y2,accessibilityHint:_2,facilityLinkTitle:k2,link:w2,sourdLineLinkTitle:S2,reinsurance:C2,logAsBanner:E2},P2={fields:{email:{label:"",label_signup:"",hint:"Vous avez déjà un compte ? <1>Connectez-vous</1>",errors:{required:"",length:"",format:""}},password:{label:"",label_signup:"",errors:{required:"",space:"",length:""},visibility:{hide:"",show:""},hint:{length:"",uppercase:"",lowercase:"",digit:""}},birthdate:{label:"",label_signup:"",errors:{invalid:"",young:""},hint:""},enterprise:{groupLabel:"",contactGroupLabel:"",addressGroupLabel:"",country:{label:""},corporateName:{label:"",errors:{length:"",format:""}},siret:{label:"",errors:{length:"",format:""}},vat:{label:"",errors:{length:"",format:""}}},address:{title:{label:"Privato (Sig.ra/Sig.) o azienda",placeholder:"Seleziona privato o azienda",opts:{mrs:"Signora",miss:"Signora",emp:"Azienda",mr:"Signore"}},firstname:{label:"Nome",errors:{required:"Per favore inserire il proprio Nome",format:"Formato errato: utilizzare solo lettere",length:"Immettere da 2 a 32 caratteri"}},lastname:{label:"Cognome",errors:{required:"Inserisci il tuo soprannome",format:"Formato errato: utilizzare solo lettere",length:"Immettere da 2 a 32 caratteri"}},street:{label:"Indirizzo",errors:{required:"Per favore inserisci il tuo indirizzo",length:"Immettere un massimo di 40 caratteri"}},houseNumber:{label:"Numero",errors:{length:"Immettere un massimo di 40 caratteri"}},streetComplement:{label:"Informazioni aggiuntive • facoltative",errors:{length:"Immettere un massimo di 40 caratteri"}},hamlet:{label:"Pavimento, Porta • opzionale",errors:{length:"Inserire un massimo di 40 caratteri"}},province:{label:"Provincia • opzionale",errors:{length:"Immettere un massimo di 40 caratteri"}},zipCode:{label:"Codice Postale",errors:{required:"prego inserire un codice postale valido",format:"Formato errato: inserisci un codice postale di 5 cifre",length:"Inserisci un codice postale di 5 cifre"}},zipCodeComplement:{label:"",errors:{required:"",format:"",length:""}},city:{label:"Città",errors:{required:"Si prega di indicare la località postale",format:"Formattazione errata: utilizzare solo lettere",length:"Immettere un massimo di 32 caratteri"},placeholder:"Seleziona una località postale:"},country:{label:"Paese"},phoneNumber:{label:"Cellulare (Es: 078xxxxxxx)",label_mobile:"Cellulare (Es: 078xxxxxxx)",errors:{required:"Per facilitare le tue consegne: inserisci il tuo numero di cellulare",format:{fixe:"Si prega di inserire un numero di telefono valido",mobile:"Inserisci un numero di cellulare valido"}},hint:"Per facilitare il contatto alla consegna","hint_phone-only":"Non utilizzato per la prospezione commerciale"},phonePrefix:{label:"Prefisso del paese",errors:{required:""}}},options:{updateShipping:{label:"Utilizzare anche come indirizzo di consegna"}},subscriptions:{label:"",collapse:{label:"",description:""},yes:"",no:"",options:{type:""},hint:{type:""}}},title:"Modificare","title_billing-address":"Modifica l'indirizzo sul mio conto","title_shipping-address":"Consegnare ad un altro indirizzo per questo ordine","title_phone-only":"Numero di cellulare",submit:"Confermare","submit_billing-address":"Conferma","submit_shipping-address":"Confermare questo indirizzo di consegna","submit_phone-only":"Confermare",globalError:"Si è verificato un errore.","globalError_phone-only":"Si è verificato un errore. ",globalError_010:"Si è verificato un errore. Il codice postale inserito e il codice postale della città non corrispondono.",globalError_011:"Si è verificato un errore. Il codice postale inserito e il codice postale della città non corrispondono.",back:"Précédent"},L2={suggestions:{title:"",info:"",hint:"",form:{fields:{streetNumber:{label:"",info:""},addressControlChoice:{label:"",label_one:"",label_other:"",label_reenter_one:"",label_reenter_other:""},editPreviousAddress:{label:""},keepPreviousAddress:{label:""}},submit:"",submit_enabled:"",submit_disabled:""}}},T2={form:P2,address:L2},M2={pageTitle:"La Redoute, Mode française | La Redoute",title:"",information:"",showPassword:"Mostra password",hidePassword:"Nascondi password"},x2={pageTitle:"",form:{fields:{civility:{label:"",placeholder:"",errors:{required:""}},lastName:{label:"",errors:{required:"",length:"",format:""}},firstName:{label:"",errors:{required:"",length:"",format:""}},email:{label:"",errors:{required:"",length:"",format:""}},description:{label:"",placeholder:"",errors:{required:""}},message:{label:"",hint:"",errors:{length:""}},validation:{label:"",errors:{required:""}},url:{label:"",errors:{required:"",length:""}},attachment:{label:""}},globalError:"",submit:"",title:"",legalText:"",legalContact:""},confirmationPage:{title:"",description:"",cta:""}},I2={signup:M2,illegalContentReport:x2},R2={ui:LT,common:SM,checkout:v2,navigation:A2,user:T2,customer:I2},$2="Geh zurück",O2="Schließen",N2="Mobiltelefonnummer",z2="Leeres Feld",D2={placeholder:{day:"JJ",month:"MM",year:"AAAA"}},B2={back:$2,close:O2,phoneNumber:N2,clearField:z2,date:D2},F2="Schließen",j2="",q2="Gratis",V2="Mehr Informationen",U2={seeLess:"Weniger Vorschläge anzeigen",seeMore:"Weitere Vorschläge ansehen"},H2="(neues Fenster)",G2={requiredField:"Dieses Feld ist erforderlich"},K2={technical:"Seite nicht erreichbar",notFound:"Ups, hier gibt es nichts Interessantes!",basketChange:"Ihre Zahlung ist fehlgeschlagen."},W2="versuchen Sie es erneut",Y2="Zurück zur Startseite",Z2="Seite aktualisieren",J2="Versuchen Sie, die Seite neu zu laden.",X2='Brauchen Sie Hilfe? <a href="/contact.aspx" style="text-decoration: underline;">Kontaktieren Sie uns!</a> Wir stehen Ihnen gerne zur Verfügung.',Q2="Land",ex="Belgien",tx="Bulgarien",nx="Zypern",rx="Dänemark",ax="Deutschland",ix="Estland",ox="Finnland",sx="Frankreich",lx="Griechenland",cx="Großbritannien",ux="Ungarn",dx="Irland",px="Island",mx="Italien",hx="Kroatien",gx="Lettland",fx="Liechtenstein",vx="Litauen",bx="Luxemburg",yx="Malta",_x="Die Niederlande",kx="Norwegen",wx="Österreich",Sx="Polen",Cx="Portugal",Ex="Rumänien",Ax="Slowenien",Px="Slowakei",Lx="Spanien",Tx="Tschechien",Mx="Schweden",xx="Schweiz",Ix={quantity:"Menge",price:{regular:"Preis",sale:"Preis nach Rabatt"},size:"Grösse",color:"Farbe",customization:"Personalisiertes Produkt mit dem Text:"},Rx={cgv:"/de/services/sellconditions.aspx",mkpCgv:"",privacyPolicy:"/de/gdpr-swiss.aspx",collectsPersonalData:"/de/gdpr-swiss.aspx",cguLoyaltyProgram:"",btobSalesConditions:"",privacyCenter:"/de/privacy_center.aspx",partnersList:""},$x={close:F2,back:j2,freeValue:q2,learnMore:V2,suggestion:U2,newTab:H2,form:G2,pageErrors:K2,redirectBasketPage:W2,redirectMainPage:Y2,refreshPage:Z2,refreshPageHint:J2,customerServiceHint:X2,country:Q2,country_BE:ex,country_BG:tx,country_CY:nx,country_DK:rx,country_DE:ax,country_EE:ix,country_FI:ox,country_FR:sx,country_GR:lx,country_GB:cx,country_HU:ux,country_IE:dx,country_IS:px,country_IT:mx,country_HR:hx,country_LV:gx,country_LI:fx,country_LT:vx,country_LU:bx,country_MT:yx,country_NL:_x,country_NO:kx,country_AT:wx,country_PL:Sx,country_PT:Cx,country_RO:Ex,country_SI:Ax,country_SK:Px,country_ES:Lx,country_CZ:Tx,country_SE:Mx,country_CH:xx,product:Ix,links:Rx},Ox="Lieferung und Zahlung, La Redoute",Nx={information:"Ihre Rechnungsadresse",order:"Versandart wählen",payment:"Ihre Bezahlungsart",securedPayment:"100 % sichere Zahlung"},zx="Wir versenden nicht in Ihr Land, bitte geben Sie eine Lieferadresse in einem der angebotenen Länder an.",Dx="",Bx="Warenkorb",Fx="Lieferung und Bezahlung",jx="Adresse",qx="7",Vx="7",Ux="Sie werden direkt per E-Mail oder SMS über die Ankunft Ihres Pakets benachrichtigt.",Hx="",Gx="",Kx="Reduktion",Wx="",Yx="",Zx="",Jx="Ihre Kontoadresse ändern",Xx="Lieferung an eine andere Adresse für diese Bestellung",Qx="inklusive MwSt.",eI="Mobiltelefonnummer",tI="rechtliche Hinweise",nI="Siehe Details",rI="Versandkosten",aI="Versandkosten",iI="Beitrag für umfangreiche Artikel",oI="Zahlungsgebühren",sI="Ihre Bestellung",lI="Total",cI="In Ihrem Warenkorb",uI="Ändern Sie meinen Warenkorb",dI="Wählen Sie eine Versandart",pI="Ihr Warenkorb enthält offenbar einen oder mehrere Artikel, die nicht an die von Ihnen angegebene Adresse geliefert werden können.<br />Sie können Ihren Warenkorb oder Ihre Adresse über die Schaltflächen unten ändern",mI="Artikel aus meinem Warenkorb entfernen",hI="Lieferung an eine andere Adresse für diese Bestellung",gI="Lieferung an eine andere Adresse für diese Bestellung",fI={disabledInfo:"Um Ihre Rechnungsadresse sehen zu können, geben Sie bitte zuerst eine Mobiltelefonnummer ein (siehe oben)."},vI={sentBy:"Die Artikel Ihrer Bestellung",soldBy:"verkauft durch <strong>{{sellerName}}</strong>",hasHomeDeliveryOnly:"Dieser Verkäufer bietet nur die Lieferung nach Hause an",information:"",information_bulky:"sperrige Gegenstände",information_small:"Regelmäßige Artikel"},bI={fieldset:"Wählen Sie eine Versandart",delay:{type:"",type_A:"Terminvereinbarung durch unseren Spediteur innerhalb von 7 bis 9 Wochen",type_B:"Lieferung innerhalb von 2–4 Werktagen",type_C:"Terminvereinbarung durch unseren Spediteur innerhalb von 2 bis 4 Wochen",type_D:"Lieferung innerhalb von 3–5 Werktagen",type_E:"Lieferung innerhalb von 3–5 Werktagen",type_F:"Terminvereinbarung durch unseren Spediteur innerhalb von 4 bis 6 Tagen",type_G:"Terminvereinbarung durch unseren Spediteur innerhalb von 4 bis 7 Wochen"},date:{range:"Verfügbar für den Nachtversand {{from}} Es ist {{to}}",day:"Voraussichtliche Lieferung am selben Tag {{date}}",estimated:"Lieferung von {{date}}",exact:"Der {{date}}"},type:{name:"",name_03:"an eine PickPost-Stelle",name_08:"Lieferung zu Hause"},home:{info:"",info_A:"Ihre Artikel werden nach vorheriger Absprache zu Ihnen nach Hause in den Raum Ihrer Wahl geliefert. Unser Spediteur wird sich mit Ihnen in Verbindung setzen, um einen Liefertermin zu vereinbaren.",info_B:"Einige Artikel in Ihrem Warenkorb werden nach vorheriger Absprache nach Hause in den Raum Ihrer Wahl geliefert. Unser Spediteur wird sich mit Ihnen in Verbindung setzen, um einen Liefertermin zu vereinbaren.",info_C:"",info_D:"",shippingFormMessage:"Diese Adresse gilt für alle Ihre <strong>Lieferungen nach Hause</strong> Daher können sich die zuvor angegebenen Liefertermine ändern."},pickpoint:{actions:{change:"PickPost-Standort ändern",change_pickup:"PickPost-Standort ändern",details:"Standort und Öffnungszeiten",details_a11y:"Standort und Öffnungszeiten {{ pickpoint }}",schedule:"Öffnungszeiten",schedule_a11y:"Öffnungszeiten {{ pickpoint }}"},details:{address:"<strong>Adresse</strong>",openings:"<strong>Öffnungszeiten</strong>"},modify:{title:"Wählen Sie einen Abholort",title_pickup:"Wählen Sie einen Abholort",inactive:"Dieser Lieferpunkt ist vorübergehend nicht verfügbar",inactive_pickup:"Dieser Abholort ist vorübergehend nicht verfügbar",notfound:"<strong>Kein Lieferpunkt gefunden</strong> <br /> Geben Sie eine andere Adresse ein",notfound_pickup:"<strong>Kein Abholort gefunden</strong> <br /> Geben Sie eine andere Adresse ein",error:"<strong>Ein Fehler ist aufgetreten </strong> <br /> Bitte aktualisieren Sie Ihre Suche nach Abgabestellen",error_pickup:"<strong>Ein Fehler ist aufgetreten </strong> <br /> Aktualisieren Sie Ihre PICKUP-Punktsuche",renew:"Suchaktualisierung",select:"Wählen Sie diesen Lieferort",select_pickup:"Wählen Sie diesen Abholort",form:{label:"Ihre Adresse"},list:"Aufführen",map:"Karte",radius:"Suche im Umkreis von","aria-label_skipGoogleMap":"Gehen Sie direkt zur Liste der Relaispunkte"}},email:{address:"",message:"",noMessage:""},fallback:{message:"Das Laden ist fehlgeschlagen",retry:"Versuchen Sie es erneut"},multiShipping:{title:"",item:""},showAll:"Wählen Sie eine andere Versandart",showAllFlag:"Es stehen neue Versandmethoden zur Verfügung",showBulkyHomeAvailable:"Kostenlose Lieferung nach Hause mit La Redoute",showPickPointAvailable:"Kostenlose Lieferung zum Abholort",icons_alt:{icon:"",icon_home:"Zu Hause"}},yI={title:"Mobiltelefonnummer",banner:"Um Ihre Lieferung zu garantieren, benötigen wir eine Mobiltelefonnummer.",success:"Ihre Mobiltelefonnummer wurde erfolgreich registriert.",change:"Mobiltelefonnummer ändern"},_I={fieldset:"Wählen Sie eine Bezahlungsart",disabledSelectionInfo:"Führen Sie bitte zunächst die vorherigen Schritte aus.",disabledSelectionInfo_contact:"Um Ihre Zahlungsmethode auswählen zu können, geben Sie bitte zunächst eine Mobiltelefonnummer an (siehe oben).",type:{label:"",label_bankcard:"Kreditkarte",label_paypal:"PayPal","label_paypal-stripe":"PayPal","aria-label_paypalOneOrManyTimes":"Bezahlen Sie mit Paypal in 1 oder 4 Raten ohne Kosten",label_paypalOneOrManyTimes:"Bezahlen Sie mit Paypal in 1X oder 4X ohne Gebühren",label_paypalManyTimes:"Bezahlen Sie mit Paypal in 4X ohne Kosten",label_par:"Zahlung auf Rechnung","label_efinance-ogone":"E-Finance","label_twint-stripe":"TWINT","label_postcard-ogone":"Postcard"},payment_bankcard:{submit:"Bestätigen Sie die Zahlung der Bestellung",legalMentionsLink:"RatBezahlen Sie anschließend die Allgemeinen Geschäftsbedingungen",changeBrand:"Wählen Sie eine andere Option",brandInfo:' Die Bezahlung erfolgt mit der Option $t(checkout:payments.bankcard.brandLabel, {"context": "{{brand}}" }). ',fields:{cardNumber:"Kartennummer",expirationDate:"Verfallsdatum",cvv:"CVV"},saveAlias:"",saveAlias_optin:"Bewahren Sie diese Informationen für zukünftige Einkäufe bei La Redoute auf.",saveAlias_optout:"",fidelity:"",loyaltyProgramMentions:"Indem Sie sich bei La Redoute anmelden, akzeptieren Sie, dass Ihre Zahlungsmethoden sicher gespeichert werden und zur Verwaltung Ihrer stillen Verlängerungsabonnements verwendet werden.",brandLabel:"CB",brandLabel_cb:"CB",brandLabel_visa:"Visa",brandLabel_mastercard:"MasterCard",brandLabel_amex:"American Express",errors:{init:"Ein Fehler ist aufgetreten.",required:"Dieses Feld ist erforderlich.",confirm:"Bei der Zahlungsbestätigung ist ein technischer Fehler aufgetreten."}},payment_stripe:{description:"",description_paypal:"Wenn Sie diese Zahlungsmethode wählen, werden Sie auf den sicheren Server von Paypal weitergeleitet und erhalten Zugang zu Ihrem Paypal-Konto. Ihre Bestellung wird registriert, sobald Sie Ihre Zahlung auf der Paypal-Website bestätigt haben.",description_klarna:"Jetzt einkaufen, später bezahlen. Lernen Sie @klarna.ch kennen, unseren neuen Partner. Mit Klarna haben Sie mehr Zeit, zu entscheiden, ob Sie eine Bestellung behalten möchten, bevor Sie sie bezahlen. Keine Kosten, Niemals! #smoothshopping #klarna",description_ideal:"Bestätigen Sie Ihre Bestellung, Sie werden dann zu unserer sicheren Zahlungsseite weitergeleitet.",description_twint:'Wichtig: Damit wir Ihre Bestellung bestätigen können, klicken Sie bitte auf die Schaltfläche "Zurück zum Shop", sobald Ihre Zahlung auf der twint-Seite bestätigt wurde.',submit:"Bestellung abschliessen",submit_paypal:"Bestellung abschliessen",submit_klarna:"Bestätige Zahlung",submit_ideal:"Bestätige Zahlung",record:{intro:"",intro_paypal:"",label:{optout:"",optin:"",optin_card:"Bewahren Sie diese Informationen für zukünftige Einkäufe auf.",optin_paypal:"Speichern Sie diese PayPal-Kontoinformationen für zukünftige Einkäufe"}},errors:{confirm:"Bei der Zahlungsbestätigung ist ein technischer Fehler aufgetreten."},icons_alt:{icon:"",icon_bankcard:"Debitkarte"}},payment_par:{description:"",description_Cycle1:"Die Rechnung für Ihre Bestellung wird Ihnen 4 Tage nach dem Versand Ihres Pakets per E-Mail zugestellt.<br/><br/>Sie erhalten dann mit einer separaten Sendung einen monatlichen Kontostand, in dem Ihre Einkäufe, Zahlungen oder eventuelle Rücksendungen zusammengefasst sind.",description_Cycle2:"Sie haben Ihr maximal zulässiges Limit für die Zahlung auf Rechnung erreicht. Um Ihre Bestellung mit dieser Zahlungsmethode zu bestätigen, zahlen Sie bitte eine Anzahlung von<strong>{{amount}}</strong> <br/><br/>Bitte wählen Sie eine Zahlungsmethode, um diesen Betrag zu begleichen :",description_Cycle3:"Sie haben Ihr maximal zulässiges Limit für die Zahlung auf Rechnung erreicht. <br/><br/>Sie können {{amount}} per Banküberweisung oder auf dem Postamt mit einer QR-Rechnung (ESR) bezahlen.<br/><br/>Sie haben auch die Möglichkeit, die anderen oben genannten Zahlungsmethoden zu verwenden.<br/>Ihre Bestellung wird bis zu 20 Tage lang aufbewahrt, bis Ihre Zahlung eingegangen ist.<br/><br/>Bitte wählen Sie eine Zahlungsmethode, um diesen Betrag zu begleichen :",description_Cycle4:"Sie haben Ihr maximal zulässiges Limit für die Zahlung auf Rechnung erreicht. <br/><br/>Sie können {{amount}} per Banküberweisung oder auf dem Postamt mit einer QR-Rechnung (ESR) bezahlen.<br/><br/>Sie haben auch die Möglichkeit, die anderen oben genannten Zahlungsmethoden zu verwenden.<br/>Ihre Bestellung wird bis zu 20 Tage lang aufbewahrt, bis Ihre Zahlung eingegangen ist.<br/><br/>Bitte wählen Sie eine Zahlungsmethode, um diesen Betrag zu begleichen :",modes:{label:"",label_bvr:"QR-Rechnung","label_bank-details":"Banküberweisung"},labels:{birthdate:"",day:"",month:"",year:""},hint:"",actions:{submit:"Bestellung abschliessen"},errors:{date:""}},payment_bankcardAlias:{label:"Debitkarte",label_visa:"Visa",label_mastercard:"MasterCard",label_amex:"American Express","label_american express":"American Express",label_cb:"Debitkarte",endingWith:"Endet mit",expiresOn:"Läuft ab",submit:"Bestellung abschliessen",redirectionFormLabel:"Automatische Weiterleitung zur Zahlungsseite"},payment_postcard:{description:"Bestätigen Sie Ihre Bestellung, Sie werden dann auf den sicheren PostFinance-Server weitergeleitet. Identifizieren Sie sich, indem Sie die gegebenen Anweisungen befolgen. Ihre Bestellung wird registriert, wenn Sie dies getan haben haben Ihre Zahlung auf der Website von PostFinance validiert.",submit:"Bestellung abschliessen",error:"Bei der Zahlungsbestätigung ist ein technischer Fehler aufgetreten."},payment_efinance:{description:"Bestätigen Sie Ihre Bestellung, Sie werden dann auf den sicheren PostFinance-Server weitergeleitet. Identifizieren Sie sich, indem Sie die gegebenen Anweisungen befolgen. Denken Sie daran, Ihr von Ihrer Bank bereitgestelltes Kartenlesegerät mitzubringen. Für noch mehr Sicherheit werden Sie danach gefragt. Ihre Bestellung wird erfasst, sobald Sie Ihre Zahlung auf der PostFinance-Website bestätigt haben.",submit:"Bestellung abschliessen",error:"Bei der Zahlungsbestätigung ist ein technischer Fehler aufgetreten."},mentionsLoyaltyRenewal:"",mentionsLr:"Mit dem Absenden Ihrer Bestellung bestätigen Sie, dass Sie die <2>Allgemeinen Verkaufsbedingungen</2> vollständig gelesen haben und anerkennen.",mentionsLrLoyalty:"",mentionsMkp:"",mentionsMkpLoyalty:"",mentionsLrMkp:"",mentionsLrMkpLoyalty:"",mentionBtobLr:"",mentionBtobMkp:"",mentionBtobLrMkp:"",generalSalesConditions:"Allgemeine Kaufverträge",btobSalesConditions:"",privacyPolicy:"Datenschutzrichtlinie",collectsPersonalData:"Erhebung personenbezogener Daten",cguLoyaltyProgram:"Allgemeine Nutzungsbedingungen La Redoute",cgvPaymentMethod:"",cgvPaymentMethodBtoB:"",fallback:{message:"Die Zahlungsmethode kann nicht geladen werden.",retry:"Versuchen Sie es erneut"},showAll:"Wählen Sie eine andere Zahlungsmethode",showAllFlag:"Neue Zahlungsmethoden sind verfügbar.",errors:{error:"Es ist ein Zahlungsfehler aufgetreten.",error_RH00045C_600:"Ihre Bestellung wurde storniert, da Sie kürzlich eine ähnliche Bestellung aufgegeben haben. ",error_RB00072C_037:"Ungültige Telefonnummer oder nicht mit einem gültigen MBway-Konto verknüpft.",error_RB00072C_014:"Ihr Kredit reicht nicht aus. ",error_GENERIC_DECLINE:"Es ist ein Zahlungsfehler aufgetreten",error_EXPIRED_CARD:"Ihre Zahlungskarte ist abgelaufen",error_INSUFFICIENT_FUNDS:"Ihr Kartenguthaben reicht nicht aus.",error_PAYMENT_INTENT_AUTHENTICATION_FAILURE:"Zahlung abgelehnt. ",error_PAYMENT_METHOD_CUSTOMER_DECLINE:"Zahlung abgelehnt. ",error_OGONE_PAYMENT_CANCELLED:"Zahlung abgelehnt.",error_OGONE_PAYMENT_DECLINED:"Es ist ein Zahlungsfehler aufgetreten"},icons_alt:{icon_bankcard:"Debitkarte"}},kI={processing:"Wird geladen",wait:"Bitte warten..."},wI={flag:"",label:"",status:"",flagFirstApplyPreferences:"Ihre Einstellungen wurden bei Ihrer letzten Bestellung gespeichert.",labelFirstApplyPreferences:""},SI={banner:{header:"",header_added:"",switch:"",switch_added:"",list:{freeHomeDelivery:"",discount:""},accept:"",conditions:"",informations:""},modal:{header:"",list:{freeHomeDelivery:"",discountFashion:"",discountHome:""},accept:"",skip:"",conditions:"",informations:""},toggle:{error:"",error_add:"",error_remove:""},payment:{mention:"",mention_paypal:"",mention_rPremium:"",mention_aliases:""}},CI={header:{name:"",usedAmount:"",modify:"",usedAmount_one:"",usedAmount_other:""},details:{info:"",validityDate:"",number:"",selectVouchers:"",submit:"",submit_disabled:"",submit_complete:""},residual:""},EI={minimalConfirmationDescription:"Danke für Ihre Bestellung {{orderId}}. ",minimalConfirmationRefreshHint:"Details werden in den nächsten Minuten in Ihrem Konto verfügbar sein."},AI={backButton:"",pageTitle:"",welcome:{label:"",status:"",flag:""},headings:{payment:"",securedPayment:""}},PI={backButton:"Zurück zu meiner Kontoverfolgung",pageTitle:"Ihre Kontoüberwachung - Zahlung",welcome:{label:"Bitte wählen Sie eine der unten vorgeschlagenen Zahlungsmethoden. Betrag: {{fees}}",status:"Information",flag:""},headings:{payment:"Meine Zahlungsmethode",securedPayment:"100 % sichere Zahlung"},submit:"Bestätige Zahlung"},LI={pageTitle:Ox,headings:Nx,noAddresseTitle:zx,noAddressLegalText:Dx,cart:Bx,deliveryAndPayment:Fx,addressStepper:jx,storageDuration:qx,storageDuration_pickup:Vx,deliveryRetainment:Ux,detax:Hx,detaxIframeTitle:Gx,discount:Kx,appliedVouchers:Wx,ecopart:Yx,billingAddressInformation:Zx,editMyBillingAddress:Jx,editMyShippingAddress:Xx,includedVAT:Qx,phoneNumber:eI,legalmentions:tI,seeDetail:nI,shippingFees:rI,shippingFees_estimated:aI,additionalShippingFees:iI,paymentFees:oI,summary:sI,total:lI,totalArticles:cI,updateBasket:uI,selectADelivery:dI,infoPartialDelivery:pI,deleteArticleInBasket:mI,updateDeliveryAddress:hI,updateDeliveryAddress_limited:gI,billingAddress:fI,seller:vI,deliveries:bI,contact:yI,payments:_I,transaction:kI,opinion:wI,loyalty:SI,vouchers:CI,confirmation:EI,renewal:AI,parAccountPayment:PI},TI="50 €",MI="30",xI="",II="",RI={homepage:"Die Homepage von La Redoute"},$I="",OI={item_deadlineToChangeOpinion:{title:"Gratis Rückgabe",title_break:"Gratis Rückgabe",subtitle:"Sie möchten Artikel kostenlos zurückgeben? Kein Problem!",info:{1:"Kostenlose Rücksendung von Artikeln mit einem Gewicht von weniger als 30 kg via Päckli Punkt.",2:"Kostenlose Rücksendung von Möbel- & Dekoartikeln über 30 kg auf Anfrage."},link:{aria:"$t(common:learnMore) über Umtausch und Rückgabe",href:"/services.aspx"}},item_freeReturn:{title:"Hilfe und Kontakt",title_break:"Hilfe und Kontakt",subtitle:`Brauchen Sie Hilfe? Wir sind jederzeit für Sie da!
|
|
319
|
-
Bitte halten Sie Ihre Kundennummer bereit, damit wir schneller auf Ihr Anliegen reagieren können.`,info:{1:"Für Kleidung und Kleinteile liegt bereits ein Rücksendeetikett ausgedruckt im Paket bei",2:"Sollte kein Rücksendeetikett Ihrem Paket beiliegen, kontaktieren Sie bitte unseren Kundenservice, welcher Ihnen das Etikett per E-Mail zukommen lässt.",3:"Wir holen Möbel und Großgegenstände bei Ihnen ab. Kontaktieren Sie dazu bitte unseren Kundenservice, welcher einen Termin mit der Spedition vereinbaren wird."},link:{aria:"$t(common:learnMore) über Umtausch und Rückgabe",href:"/contact.aspx"}},item_freeShippingInRelayFrom:{title:"30 Tage Rückgaberecht",title_break:"30 Tage Rückgaberecht",subtitle:"Bequem ! La Redoute lässt Ihnen 30 Tage Zeit, sich zu entscheiden, bevor Sie Ihre Artikel zurückschicken.",info:{1:"Die Versandkosten werden im Warenkorb berechnet",2:"Sie werden auf der Grundlage des Gewichts und der Maße des größten Artikels in Ihrem Warenkorb berechnet"},link:{aria:"$t(common:learnMore) über Versandarten",href:"/services.aspx"}},item_securedPayment:{title:"Einfaches und sicheres Bezahlen",title_break:"Einfaches und sicheres Bezahlen",subtitle:"Bezahlen Sie Ihre Bestellung schnell und sicher",info:{1:"Alle unsere Zahlungsmethoden verwenden fortschrittliche Sicherheitsmethoden",2:"Wir schützen Ihre Privatsphäre",3:"Wir speichern Ihre Daten nicht"},link:{aria:"$t(common:learnMore) über Zahlungsmethoden",href:"/services.aspx?page=payment"}}},NI={information:"",disconnect:""},zI={startPriceFreeDeliveryRelay:TI,withdrawalPeriod:MI,accessibilityHint:xI,facilityLinkTitle:II,link:RI,sourdLineLinkTitle:$I,reinsurance:OI,logAsBanner:NI},DI={fields:{email:{label:"",label_signup:"",hint:"Vous avez déjà un compte ? <1>Connectez-vous</1>",errors:{required:"",length:"",format:""}},password:{label:"",label_signup:"",errors:{required:"",space:"",length:""},visibility:{hide:"",show:""},hint:{length:"",uppercase:"",lowercase:"",digit:""}},birthdate:{label:"",label_signup:"",errors:{invalid:"",young:""},hint:""},enterprise:{groupLabel:"",contactGroupLabel:"",addressGroupLabel:"",country:{label:""},corporateName:{label:"",errors:{length:"",format:""}},siret:{label:"",errors:{length:"",format:""}},vat:{label:"",errors:{length:"",format:""}}},address:{title:{label:"Anrede",placeholder:"Wählen Sie ein Geschlecht aus",opts:{mrs:"Frau",miss:"",emp:"",mr:"Herr"}},firstname:{label:"Vorname",errors:{required:"Bitte geben Sie Ihren Vornamen ein",format:"Falsches Format: Verwenden Sie nur Buchstaben",length:"Geben Sie zwischen 2 und 32 Zeichen ein"}},lastname:{label:"Nachname",errors:{required:"Bitte geben Sie ihren Spitznamen ein",format:"Falsches Format: Verwenden Sie nur Buchstaben",length:"Geben Sie zwischen 2 und 32 Zeichen ein"}},street:{label:"Strassenname",errors:{required:"Geben Sie Ihre Adresse ein",length:"Geben Sie bis zu 40 Zeichen ein"}},houseNumber:{label:"Hausnummer",errors:{length:"Geben Sie bis zu 40 Zeichen ein"}},streetComplement:{label:"Adresszusatz • optional",errors:{length:"Geben Sie bis zu 40 Zeichen ein"}},hamlet:{label:"",errors:{length:""}},province:{label:"",errors:{length:""}},zipCode:{label:"Postleitzahl",errors:{required:"Bitte geben Sie eine gültige Postleitzahl ein",format:"Falsches Format: 4 Zahlen – Leerzeichen – 2 Buchstaben (z. B.: 1000 AA)",length:"Falsches Format: 4 Zahlen – Leerzeichen – 2 Buchstaben (z. B.: 1000 AA)"}},zipCodeComplement:{label:"",errors:{required:"",format:"",length:""}},city:{label:"Stadt",errors:{required:"Bitte geben Sie Ihre Postanschrift an",format:"Falsches Format: Verwenden Sie nur Buchstaben",length:"Geben Sie bis zu 32 Zeichen ein"},placeholder:"Wählen Sie eine Stadt aus"},country:{label:"Land"},phoneNumber:{label:"Mobiltelefon (Bsp: 078xxxxxxx)",label_mobile:"Mobiltelefon (Bsp: 078xxxxxxx)",errors:{required:"Um Ihre Lieferungen zu vereinfachen, bitte geben Sie Ihre Mobiltelefonnummer ein.",format:{fixe:"Bitte geben Sie eine gültige Telefonnummer ein",mobile:"Bitte geben Sie eine gültige Mobiltelefonnummer an"}},hint:"Um die Kontaktaufnahme bei der Lieferung zu erleichtern","hint_phone-only":"Wird nicht für kommerzielle Prospektion verwendet"},phonePrefix:{label:"Landesvorwahl",errors:{required:""}}},options:{updateShipping:{label:"Auch als Lieferadresse verwenden"}},subscriptions:{label:"",collapse:{label:"",description:""},yes:"",no:"",options:{type:""},hint:{type:""}}},title:"Anpassen","title_billing-address":"Ihre Kontoadresse ändern","title_shipping-address":"Lieferung an eine andere Anschrift für diese Bestellung","title_phone-only":"Mobiltelefonnummer",submit:"Bestätigen","submit_billing-address":"Bestätigen","submit_shipping-address":"Diese Lieferadresse bestätigen","submit_phone-only":"Bestätigen",globalError:"Ein Fehler ist aufgetreten.","globalError_phone-only":"Ein Fehler ist aufgetreten. ",globalError_010:"Ein Fehler ist aufgetreten. ",globalError_011:"Ein Fehler ist aufgetreten. ",back:"Précédent"},BI={suggestions:{title:"",info:"",hint:"",form:{fields:{streetNumber:{label:"",info:""},addressControlChoice:{label:"",label_one:"",label_other:"",label_reenter_one:"",label_reenter_other:""},editPreviousAddress:{label:""},keepPreviousAddress:{label:""}},submit:"",submit_enabled:"",submit_disabled:""}}},FI={form:DI,address:BI},jI={pageTitle:"La Redoute, Mode française | La Redoute",title:"",information:"",showPassword:"Das Passwort anzeigen",hidePassword:"Passwort ausblenden"},qI={pageTitle:"",form:{fields:{civility:{label:"",placeholder:"",errors:{required:""}},lastName:{label:"",errors:{required:"",length:"",format:""}},firstName:{label:"",errors:{required:"",length:"",format:""}},email:{label:"",errors:{required:"",length:"",format:""}},description:{label:"",placeholder:"",errors:{required:""}},message:{label:"",hint:"",errors:{length:""}},validation:{label:"",errors:{required:""}},url:{label:"",errors:{required:"",length:""}},attachment:{label:""}},globalError:"",submit:"",title:"",legalText:"",legalContact:""},confirmationPage:{title:"",description:"",cta:""}},VI={signup:jI,illegalContentReport:qI},UI={ui:B2,common:$x,checkout:LI,navigation:zI,user:FI,customer:VI},HI="Back",GI="Close",KI="Phone number",WI="Clear field",YI={placeholder:{day:"JJ",month:"MM",year:"AAAA"}},ZI={back:HI,close:GI,phoneNumber:KI,clearField:WI,date:YI},JI="Close",XI="",QI="Free",eR="Learn more",tR={seeLess:"See fewer suggestions",seeMore:"See more suggestions"},nR="(new window)",rR={requiredField:"This field is required"},aR={technical:"Page not accessible",notFound:"",basketChange:"Your payment could not be completed. "},iR="Refresh your cart",oR="Return to home page",sR="Refresh the page",lR="Try reloading the page.",cR='Need help? <a href="/contact.aspx" style="text-decoration: underline;">Contact us !</a> We look forward to hearing from you.',uR="Country",dR="Belgium",pR="Bulgaria",mR="Cyprus",hR="Denmark",gR="Germany",fR="Estonia",vR="Finland",bR="France",yR="Greece",_R="Britain",kR="Hungary",wR="Ireland",SR="Iceland",CR="Italy",ER="Croatia",AR="Latvia",PR="Liechtenstein",LR="Lithuania",TR="Luxembourg",MR="Malta",xR="The Netherlands",IR="Norway",RR="Austria",$R="Poland",OR="Portugal",NR="Romania",zR="Slovenia",DR="Slovakia",BR="Spain",FR="Czech Republic",jR="Sweden",qR="Switzerland",VR={quantity:"Quantity",price:{regular:"Usual price",sale:"Selling price"},size:"Size",color:"Color",customization:"Personalized product with text:"},UR={cgv:"/en/services/sellconditions.aspx",mkpCgv:"",privacyPolicy:"/en/gdpr-swiss.aspx",collectsPersonalData:"/en/gdpr-swiss.aspx",cguLoyaltyProgram:"",btobSalesConditions:"",privacyCenter:"/en/privacy_center.aspx",partnersList:""},HR={close:JI,back:XI,freeValue:QI,learnMore:eR,suggestion:tR,newTab:nR,form:rR,pageErrors:aR,redirectBasketPage:iR,redirectMainPage:oR,refreshPage:sR,refreshPageHint:lR,customerServiceHint:cR,country:uR,country_BE:dR,country_BG:pR,country_CY:mR,country_DK:hR,country_DE:gR,country_EE:fR,country_FI:vR,country_FR:bR,country_GR:yR,country_GB:_R,country_HU:kR,country_IE:wR,country_IS:SR,country_IT:CR,country_HR:ER,country_LV:AR,country_LI:PR,country_LT:LR,country_LU:TR,country_MT:MR,country_NL:xR,country_NO:IR,country_AT:RR,country_PL:$R,country_PT:OR,country_RO:NR,country_SI:zR,country_SK:DR,country_ES:BR,country_CZ:FR,country_SE:jR,country_CH:qR,product:VR,links:UR},GR="Delivery and payment, La Redoute",KR={information:"Your billing address",order:"Choose a delivery method",payment:"Your payment method",securedPayment:"100% secure payment"},WR="We do not ship to your country, please provide a delivery address in one of the countries offered.",YR="",ZR="Basket",JR="Delivery and Payment",XR="Address",QR="7",e$="You will be notified directly of the arrival of your parcel by e-mail or SMS.",t$="Tax refund",n$="Delivery in the French Overseas Territories",r$="Reduction",a$="Vouchers",i$="of which {{ value }} eco-share",o$="",s$="Change your account address",l$="Deliver to another address for this order",c$="Tax included",u$="Phone number",d$="Legal Notice",p$="See details",m$="Shipping cost",h$="Delivery costs",g$="",f$="Payment fees",v$="Summary",b$="Total",y$="Total item(s)",_$="Edit my cart",k$="Please select a delivery method",w$="Your basket appears to contain one or more items that cannot be delivered to the address indicated.<br />You can modify your basket or your address with the buttons below",S$="Remove items from my cart",C$="Deliver to another address for this order",E$="Deliver to another address for this order",A$={disabledInfo:"To see your billing address, please first enter a mobile phone number (see above)."},P$={sentBy:"The items in your order",soldBy:"Sold by <strong>{{sellerName}}</strong>",hasHomeDeliveryOnly:"This seller only offers home delivery",information:"",information_bulky:"Large item(s)",information_small:"Small item(s)"},L$={fieldset:"Choose a delivery method",delay:{type:"",type_A:"Appointment made by our carrier within 7 to 9 weeks",type_B:"Delivered in 2-4 business days",type_C:"Appointment made by our carrier within 2 to 4 weeks",type_D:"Delivered in 3-5 business days",type_E:"Delivered in 3-5 business days",type_F:"Appointment made by our carrier within 4 to 6 days",type_G:"Appointment made by our carrier within 4 to 7 weeks"},date:{range:"Delivery between {{from}} and the {{to}}",day:"Delivery scheduled for {{date}}",estimated:"Delivery from {{date}}",exact:"THE {{date}}"},type:{name:"",name_03:"in a Pickpost",name_08:"Home delivery"},home:{info:"",info_A:"Your items will be delivered to your home by appointment, in the room of your choice. Our carrier will contact you to arrange a delivery date.",info_B:"Some items in your basket will be delivered to your home by appointment, to the room of your choice. Our carrier will contact you to arrange a delivery date.",shippingFormMessage:"This address will apply to all of your <strong>home deliveries</strong> and this may change the delivery dates previously indicated."},pickpoint:{actions:{change:"Modify the PickPost point",details:"Location and opening times",details_a11y:"Location and opening times {{ pickpoint }}",schedule:"Opening hours",schedule_a11y:"Opening hours {{ pickpoint }}"},details:{address:"<strong>Address</strong>",openings:"<strong>Opening hours</strong>"},modify:{title:"Choose a collection point",inactive:"This collection point is temporarily unavailable",notfound:"<strong>No collection point found</strong> <br /> Please enter another address",error:"<strong>No relay point is available in the area. </strong> <br /> Please broaden the search or change address.",renew:"Renew my search",select:"Choose this collection point",form:{label:"Your address"},list:"List",map:"Map",radius:"Search within a radius of","aria-label_skipGoogleMap":"Go directly to the list of relay points"}},email:{address:"Receiving email address",message:"Your personal message",noMessage:"No text entered"},fallback:{message:"The delivery method failed to load.",retry:"Try again"},multiShipping:{title:"You will be delivered in several installments",item:"Delivery no.{{number}} : "},showAll:"Choose another delivery method",showAllFlag:"New delivery methods are available.",showBulkyHomeAvailable:"Free home delivery with La Redoute",showPickPointAvailable:"Free delivery to Parcel point",icons_alt:{icon:"",icon_home:"Home"}},T$={title:"Phone number",banner:"To ensure your delivery we need a mobile phone number.",success:"Your mobile phone number has been successfully registered.",change:"Change my phone number"},M$={fieldset:"Choose a payment method",disabledSelectionInfo:"To access this section, please complete the previous steps on the page.",disabledSelectionInfo_contact:"To select your payment method, please first enter your mobile phone number (see above).",type:{label:"",label_bankcard:"Bank card","label_paypal-stripe":"PayPal","aria-label_paypalOneOrManyTimes":"Pay with Paypal",label_paypalOneOrManyTimes:"Pay with Paypal ",label_paypalManyTimes:"Pay with Paypal in 4X without fees",label_par:"Payment on invoice","label_efinance-ogone":"E-Finance","label_twint-stripe":"TWINT","label_postcard-ogone":"Postcard"},payment_stripe:{description:"",description_paypal:"By choosing this method of payment, you will be redirected to the Paypal secure server and access your Paypal account. Your order will be registered once you have validated your payment on the Paypal site.",description_twint:'Important: so that we can confirm your order, please click on the "back to shop" button once your payment has been validated on the twint page.',submit:"Validate order",submit_paypal:"Validate order",record:{intro:"With La Redoute, you agree to keep your payment method in order to save time when shopping",intro_paypal:"With La Redoute, you agree to keep your Paypal account in order to save time when shopping",label:{optout:"Do not save my payment method.",optin:"",optin_card:"I register my card to make my next purchases easier.",optin_paypal:"Remember this Paypal account for a future purchase"}},errors:{confirm:"A technical error occurred during payment confirmation"},icons_alt:{icon:"",icon_bankcard:"Bank card"}},payment_bankcardAlias:{label:"Bank card",label_visa:"Visa",label_mastercard:"MasterCard",label_amex:"American Express","label_american express":"American Express",label_cb:"Bank card",endingWith:"ending with",expiresOn:"Expires on",submit:"Validate order",redirectionFormLabel:"Automatic redirection to payment page"},payment_par:{description:"<strong>Amount currently available:</strong> {{amount}}<br/><br/>Upon receipt of your package, for a contribution of {{ fees }}, you have 14 days to make your payment.",description_Cycle1:"The invoice for your order will be sent to you by email 4 days after your parcel has been dispatched.<br/><br/>You will then receive a separate monthly statement summarising your purchases, payments and any returns.",description_Cycle2:"You have reached your maximum authorised limit for payment by invoice. To validate your order with this payment method, please pay a deposit of<strong>{{amount}}</strong> <br/><br/>Please select a payment method to pay this amount:",description_Cycle3:"You have reached your maximum authorised limit for payment by invoice. <br/><br/>You can pay {{amount}} by bank transfer or at the post office with a QR-bill (BVR).<br/><br/>You can also use the other payment methods listed above.<br/>Your order will be held for up to 20 days, pending payment.<br/><br/>Please select a payment method to pay this amount:",description_Cycle4:"You have reached your maximum authorised limit for payment by invoice. <br/><br/>You can pay {{amount}} by bank transfer or at the post office with a QR-bill (BVR).<br/><br/>You can also use the other payment methods listed above.<br/>Your order will be held for up to 20 days, pending payment.<br/><br/>Please select a payment method to pay this amount:",modes:{label:"",label_bvr:"QR-Invoice","label_bank-details":"Bank transfer"},labels:{birthdate:"Date of birth",day:"Day",month:"Month",year:"Year"},hint:"To secure your payment, please tell us your date of birth.",actions:{submit:"Validate order"},errors:{date:"Please enter a valid date ex: 01/01/1970"}},payment_postcard:{description:"Validate your order, you will then be redirected to the secure PostFinance server. Identify yourself by following the instructions given. Your order will be recorded when you have validated your payment on the PostFinance website.",submit:"Validate order",error:"A technical error occurred during payment confirmation"},payment_efinance:{description:"Validate your order, you will then be redirected to the secure PostFinance server. Identify yourself by following the instructions given. Remember to bring your Card-Reader provided by your bank, you will be asked for it for even greater security. Your order will be recorded when you have validated your payment on the PostFinance website.",submit:"Validate order",error:"A technical error occurred during payment confirmation"},mentionsLoyaltyRenewal:"",mentionsLr:"By confirming my order I accept and confirm that I have read all the <2>General Conditions of Sale</2>.",mentionsLrLoyalty:"",mentionsMkp:"",mentionsMkpLoyalty:"",mentionsLrMkp:"",mentionsLrMkpLoyalty:"",mentionBtobLr:"",mentionBtobMkp:"",mentionBtobLrMkp:"",generalSalesConditions:"Terms of Sales",btobSalesConditions:"",privacyPolicy:"Privacy Policy",collectsPersonalData:"Collection of personal data",cguLoyaltyProgram:"General conditions of use La Redoute",cgvPaymentMethod:"By validating my order I accept and acknowledge having read all of the <1>General Conditions of Sale of laredoute.ch.</1>",cgvPaymentMethodBtoB:"",fallback:{message:"The payment method failed to load.",retry:"Try again"},showAll:"Choose another payment method",showAllFlag:"New payment methods are available.",errors:{error:"An error has occurred.",error_RH00045C_600:"Your order has been canceled because you recently placed another similar order.",error_RB00072C_010:"This payment method cannot be used. ",error_RB00072C_011:"This payment method cannot be used. ",error_RB00072C_012:"This payment method cannot be used. ",error_RB00072C_013:"This payment method cannot be used. ",error_RB00072C_014:"Your credit is insufficient.",error_RB00072C_020:"This date of birth differs from our customer file. ",error_GENERIC_DECLINE:"A payment error has occurred",error_EXPIRED_CARD:"your payment card has expired",error_INSUFFICIENT_FUNDS:"The balance on your card is insufficient.",error_PAYMENT_INTENT_AUTHENTICATION_FAILURE:"Payment rejected. ",error_PAYMENT_METHOD_CUSTOMER_DECLINE:"Payment rejected. ",error_OGONE_PAYMENT_CANCELLED:"Payment rejected.",error_OGONE_PAYMENT_DECLINED:"A payment error has occurred"},icons_alt:{icon_bankcard:"Bank card",icon_paymentAfterReceipt:"Payment on invoice"}},x$={processing:"Loading",wait:"Please wait..."},I$={flag:"",label:"",status:"",flagFirstApplyPreferences:"Your preferences were saved with your last order.",labelFirstApplyPreferences:""},R$={banner:{header:"",header_added:"",switch:"",switch_added:"",list:{freeHomeDelivery:"",discount:""},accept:"",conditions:"",informations:""},modal:{header:"",list:{freeHomeDelivery:"",discountFashion:"",discountHome:""},accept:"",skip:"",conditions:"",informations:""},toggle:{error:"",error_add:"",error_remove:""},payment:{mention:"",mention_paypal:"",mention_rPremium:"",mention_aliases:""}},$$={header:{name:"",usedAmount:"",modify:"",usedAmount_one:"",usedAmount_other:""},details:{info:"",validityDate:"",number:"",selectVouchers:"",submit:"",submit_disabled:"",submit_complete:""},residual:""},O$={minimalConfirmationDescription:"thank you for your order {{orderId}}. ",minimalConfirmationRefreshHint:"Details will be available very soon in your customer area."},N$={backButton:"",pageTitle:"",welcome:{label:"",status:"",flag:""},headings:{payment:"",securedPayment:""}},z$={backButton:"Back to my account tracking",pageTitle:"Your account monitoring - Payment",welcome:{label:"Please choose one of the payment methods below. Amount : {{fees}}",status:"information",flag:""},headings:{payment:"My payment method",securedPayment:"100% secure payment"},submit:"Confirm"},D$={pageTitle:GR,headings:KR,noAddresseTitle:WR,noAddressLegalText:YR,cart:ZR,deliveryAndPayment:JR,addressStepper:XR,storageDuration:QR,deliveryRetainment:e$,detax:t$,detaxIframeTitle:n$,discount:r$,appliedVouchers:a$,ecopart:i$,billingAddressInformation:o$,editMyBillingAddress:s$,editMyShippingAddress:l$,includedVAT:c$,phoneNumber:u$,legalmentions:d$,seeDetail:p$,shippingFees:m$,shippingFees_estimated:h$,additionalShippingFees:g$,paymentFees:f$,summary:v$,total:b$,totalArticles:y$,updateBasket:_$,selectADelivery:k$,infoPartialDelivery:w$,deleteArticleInBasket:S$,updateDeliveryAddress:C$,updateDeliveryAddress_limited:E$,billingAddress:A$,seller:P$,deliveries:L$,contact:T$,payments:M$,transaction:x$,opinion:I$,loyalty:R$,vouchers:$$,confirmation:O$,renewal:N$,parAccountPayment:z$},B$="1€",F$="30",j$="Deaf or hard of hearing?",q$="Facil'iti - accessibility help $t(common:newTab)",V$={homepage:"Home page La Redoute"},U$="Deaf line - Deaf space $t(common:newTab)",H$={item_deadlineToChangeOpinion:{title:"Free returns",title_break:"Free returns",subtitle:"Would you like to return your items free of charge? You can!",info:{1:"Free returns to Relais Colis for items weighing less than 30 kg.",2:"Free returns for furniture and decorative items weighing more than 30 kg on request."},link:{aria:"$t(common:learnMore) on the withdrawal period",href:"/services.aspx"}},item_freeReturn:{title:"Help and contact",title_break:"Help and contact",subtitle:`Need help? We're here, 24/7!
|
|
320
|
-
Help us answer your questions faster by having your customer reference handy.`,info:{1:"Declare your return directly in your order tracking",2:"Prepare your package and drop it off at a Relais Colis ® point",3:"You will be reimbursed within 14 days maximum upon receipt of your package in our warehouses"},link:{aria:"$t(common:learnMore) on free returns",href:"/contact.aspx"}},item_freeShippingInRelayFrom:{title:"30 days to change your mind",title_break:"30 days to change your mind",subtitle:"Comfortable! La Redoute gives you 30 days to make up your mind before returning your items.",info:{1:"Delivery between 1 to 3 working days",2:"For items sold and shipped by La Redoute"},link:{aria:"$t(common:learnMore) on delivery to relay point ",href:"/services.aspx"}},item_securedPayment:{title:"Easy and secure payment",title_break:"Easy and secure payment",subtitle:"At La Redoute, your payment is 100% secure! ",info:{1:"Transactions protected against malicious interception.",2:"La Redoute has no knowledge of your bank card details",3:"We do not store your data"},link:{aria:"Find out more about relay point delivery ",href:"/services.aspx?page=payment"}}},G$={information:"",disconnect:""},K$={startPriceFreeDeliveryRelay:B$,withdrawalPeriod:F$,accessibilityHint:j$,facilityLinkTitle:q$,link:V$,sourdLineLinkTitle:U$,reinsurance:H$,logAsBanner:G$},W$={fields:{email:{label:"",label_signup:"",hint:"Vous avez déjà un compte ? <1>Connectez-vous</1>",errors:{required:"",length:"",format:""}},password:{label:"",label_signup:"",errors:{required:"",space:"",length:""},visibility:{hide:"",show:""},hint:{length:"",uppercase:"",lowercase:"",digit:""}},birthdate:{label:"",label_signup:"",errors:{invalid:"",young:""},hint:""},enterprise:{groupLabel:"",contactGroupLabel:"",addressGroupLabel:"",country:{label:""},corporateName:{label:"",errors:{length:"",format:""}},siret:{label:"",errors:{length:"",format:""}},vat:{label:"",errors:{length:"",format:""}}},address:{title:{label:"Civility",placeholder:"Select a title",opts:{mrs:"Mrs",miss:"Miss",mr:"Mr",emp:"Business"}},firstname:{label:"First name",errors:{required:"Please indicate your first name",format:"Incorrect format: please only use letters",length:"Please enter between 2 and 32 characters"}},lastname:{label:"Name",errors:{required:"Please indicate your name",format:"Incorrect format: please only use letters",length:"Please enter between 2 and 32 characters"}},street:{label:"Street address",errors:{required:"Please indicate your address",length:"Please enter a maximum of 40 characters"}},houseNumber:{label:"Door number",errors:{length:"Please enter a maximum of 40 characters"}},streetComplement:{label:"Address complement • optional",errors:{length:"Please enter a maximum of 40 characters"}},hamlet:{label:"",errors:{length:""}},province:{label:"",errors:{length:""}},zipCode:{label:"Postal code",errors:{required:"Please enter a valid postal code",format:"Incorrect format: 4 digits",length:"Incorrect format: 4 digits"}},zipCodeComplement:{label:"",errors:{required:"",format:"",length:""}},city:{label:"City",errors:{required:"Please indicate your city",format:"Incorrect format: please only use letters",length:"Please enter a maximum of 32 characters"},placeholder:"Select a city..."},country:{label:"Country"},phoneNumber:{label:"Mobile phone (Ex: 078xxxxxxx)",label_mobile:"Mobile phone (Ex: 078xxxxxxx)",errors:{required:"To facilitate your deliveries: please enter your mobile phone number",format:{fixe:"Please enter a valid phone number",mobile:"Please enter a valid mobile phone number"}},hint:"To facilitate contact on delivery","hint_phone-only":"Not used for commercial prospecting"},phonePrefix:{label:"Country prefix",errors:{required:""}}},options:{updateShipping:{label:"Also use as delivery address"}},subscriptions:{label:"",collapse:{label:"",description:""},yes:"",no:"",options:{type:""},hint:{type:""}}},title:"To modify","title_billing-address":"Change your account adress","title_shipping-address":"","title_phone-only":"Phone number",submit:"To validate","submit_billing-address":"Validate","submit_shipping-address":"Confirm this delivery address","submit_phone-only":"To validate",globalError:"An error has occurred.","globalError_phone-only":"An error has occurred. ",globalError_010:"An error has occurred. ",globalError_011:"An error has occurred. ",back:"Précédent"},Y$={suggestions:{title:"",info:"",hint:"",form:{fields:{streetNumber:{label:"",info:""},addressControlChoice:{label:"",label_one:"",label_other:"",label_reenter_one:"",label_reenter_other:""},editPreviousAddress:{label:""},keepPreviousAddress:{label:""}},submit:"",submit_enabled:"",submit_disabled:""}}},Z$={form:W$,address:Y$},J$={pageTitle:"La Redoute, Mode française | La Redoute",title:"",information:"",showPassword:"Show password",hidePassword:"Hide password"},X$={pageTitle:"",form:{fields:{civility:{label:"",placeholder:"",errors:{required:""}},lastName:{label:"",errors:{required:"",length:"",format:""}},firstName:{label:"",errors:{required:"",length:"",format:""}},email:{label:"",errors:{required:"",length:"",format:""}},description:{label:"",placeholder:"",errors:{required:""}},message:{label:"",hint:"",errors:{length:""}},validation:{label:"",errors:{required:""}},url:{label:"",errors:{required:"",length:""}},attachment:{label:""}},globalError:"",submit:"",title:"",legalText:"",legalContact:""},confirmationPage:{title:"",description:"",cta:""}},Q$={signup:J$,illegalContentReport:X$},e4={ui:ZI,common:HR,checkout:D$,navigation:K$,user:Z$,customer:Q$},t4={fr:{"fr-FR":Qa},pt:{"pt-PT":nf},nl:{"nl-NL":hb},be:{"fr-BE":ei,"nl-BE":R1},lu:{"fr-BE":ei},ch:{"de-CH":UI,"fr-CH":wT,"it-CH":R2,"en-CH":e4},de:{"de-DE":pP},es:{"es-ES":Uw},it:{"it-IT":tE},uk:{"en-GB":Qa}};var n4=Object.defineProperty,r4=Object.getOwnPropertyDescriptor,eo=r=>{throw TypeError(r)},to=(r,a,e,t)=>{for(var n=t>1?void 0:t?r4(a,e):a,i=r.length-1,o;i>=0;i--)(o=r[i])&&(n=(t?o(a,e,n):o(n))||n);return t&&n&&n4(a,e,n),n},no=(r,a,e)=>a.has(r)||eo("Cannot "+e),a4=(r,a,e)=>(no(r,a,"read from private field"),e?e.call(r):a.get(r)),i4=(r,a,e)=>a.has(r)?eo("Cannot add the same private member more than once"):a instanceof WeakSet?a.add(r):a.set(r,e),o4=(r,a,e,t)=>(no(r,a,"write to private field"),a.set(r,e),e),Yt;const s4="fr",lr="fr-FR";var ni;const l4=(ni=t4[s4])==null?void 0:ni[lr];le.init({lng:lr,resources:{[lr]:l4}});exports.Chatbot=class extends yt{constructor(){super(...arguments),this._chatElementRef=null,i4(this,Yt,"")}get apiUrl(){return a4(this,Yt)}set apiUrl(a){o4(this,Yt,a)}static getVersion(){return"LR Chatbot - 0.4.0"}firstUpdated(){var a;if(this._chatElementRef=(a=this.shadowRoot)==null?void 0:a.getElementById("chat-element"),this._chatElementRef){const e=this._chatElementRef;e.demo=!0,this.setChatTranslations(),this.setChatStyle(),this.setChatInitialMessages(),this.setChatConnection()}}disconnectedCallback(){super.disconnectedCallback()}setChatTranslations(){const a=this._chatElementRef;a.introMessage={html:Ht("chatbot:introMessage")},a.textInput={...a.textInput,placeholder:{text:Ht("chatbot:inputPlaceholder")}}}setChatStyle(){const a=this._chatElementRef;a.avatars=!0,a.chatStyle={width:"auto"}}setChatInitialMessages(){this._chatElementRef}setChatConnection(){const a=this._chatElementRef;a.request={handler:(e,t)=>{}},a.responseInterceptor=async e=>e}render(){return vu`
|
|
321
|
-
<div id="chat-popin" part="popin">
|
|
322
|
-
<div id="chat-popin-menu" part="menu">
|
|
323
|
-
<span id="chat-popin-menu-title">${Ht("chatbot:title")}</span>
|
|
324
|
-
<button id="chat-popin-menu-button-minimize" >-</button>
|
|
325
|
-
<button id="chat-popin-menu-button-close">x</button>
|
|
326
|
-
</div>
|
|
327
|
-
<div id="chat-popin-menu-legal" part="menu">
|
|
328
|
-
${Ht("chatbot:legalInformation")}
|
|
329
|
-
</div>
|
|
330
|
-
<deep-chat id="chat-element" part="chat-element"></deep-chat>
|
|
331
|
-
</div`}};Yt=new WeakMap;exports.Chatbot.styles=iu`
|
|
332
|
-
#chat-popin {
|
|
333
|
-
position: fixed;
|
|
334
|
-
bottom: 0px;
|
|
335
|
-
right: 7%;
|
|
336
|
-
z-index: 99999;
|
|
337
|
-
width: 320px;
|
|
338
|
-
}
|
|
339
|
-
`;to([Lu()],exports.Chatbot.prototype,"apiUrl",1);exports.Chatbot=to([Eu("lr-chatbot")],exports.Chatbot);
|