@liip/liipgpt 3.9.0 → 3.9.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.
Files changed (45) hide show
  1. package/LICENSE +88 -0
  2. package/button/liipgpt-button.iife.js +11 -71
  3. package/chat/liipgpt-chat.iife.js +16 -16
  4. package/config/index.cjs +947 -946
  5. package/config/index.d.ts +6 -0
  6. package/config/index.js +947 -946
  7. package/configurator/_app/env.js +1 -1
  8. package/configurator/_app/immutable/chunks/7mY4OJGU.js +1 -0
  9. package/configurator/_app/immutable/chunks/BDHUTFW9.js +2 -0
  10. package/configurator/_app/immutable/chunks/{BoSlghYU.js → BDbfujSm.js} +1 -1
  11. package/configurator/_app/immutable/chunks/{cE02ifhd.js → C6m1Wdl1.js} +1 -1
  12. package/configurator/_app/immutable/chunks/{DGbgqVw-.js → CA38AHEC.js} +2 -2
  13. package/configurator/_app/immutable/chunks/CFeIeoV1.js +1 -0
  14. package/configurator/_app/immutable/chunks/{kfKo0Lxm.js → CKhT1xS_.js} +1 -1
  15. package/configurator/_app/immutable/chunks/DAn_q4l-.js +16 -0
  16. package/configurator/_app/immutable/chunks/{CzlKx6Dn.js → DGQ954rx.js} +1 -1
  17. package/configurator/_app/immutable/chunks/DPni1rWl.js +1 -0
  18. package/configurator/_app/immutable/chunks/{BiMiaf32.js → DYa1ApbB.js} +1 -1
  19. package/configurator/_app/immutable/chunks/DfXcv-Ak.js +61 -0
  20. package/configurator/_app/immutable/chunks/Z70hfwyo.js +143 -0
  21. package/configurator/_app/immutable/chunks/hdHt6us6.js +1 -0
  22. package/configurator/_app/immutable/chunks/{CW8XT_f0.js → p7ChcveW.js} +1 -1
  23. package/configurator/_app/immutable/entry/{app.CwqfSUK4.js → app.ft0cgG-t.js} +2 -2
  24. package/configurator/_app/immutable/entry/start.BxzUuOt1.js +1 -0
  25. package/configurator/_app/immutable/nodes/{0.WsdkbKsV.js → 0.CXGLTbqu.js} +1 -1
  26. package/configurator/_app/immutable/nodes/{1.2qVIdLFb.js → 1.DJw369ut.js} +1 -1
  27. package/configurator/_app/immutable/nodes/{2.zFWWXwja.js → 2.Dx5eSBWM.js} +5 -5
  28. package/configurator/_app/immutable/nodes/{3.YVKriLPj.js → 3.CjC17y9u.js} +1 -1
  29. package/configurator/_app/version.json +1 -1
  30. package/configurator/index.html +6 -6
  31. package/configurator/sidebar.html +6 -6
  32. package/index.cjs +1201 -3510
  33. package/index.js +1168 -3479
  34. package/package.json +2 -2
  35. package/search-summary/liipgpt-search-summary.iife.js +3 -3
  36. package/configurator/_app/immutable/chunks/BKESH8zC.js +0 -1
  37. package/configurator/_app/immutable/chunks/BKZTsJMz.js +0 -1
  38. package/configurator/_app/immutable/chunks/C8BUw-Wc.js +0 -61
  39. package/configurator/_app/immutable/chunks/CWvh3_h0.js +0 -16
  40. package/configurator/_app/immutable/chunks/CqCdl07t.js +0 -1
  41. package/configurator/_app/immutable/chunks/DWxJNFvO.js +0 -143
  42. package/configurator/_app/immutable/chunks/Dn_5PWao.js +0 -2
  43. package/configurator/_app/immutable/chunks/IPBcm7Y9.js +0 -1
  44. package/configurator/_app/immutable/entry/start.C9g5qB7o.js +0 -1
  45. package/configurator/bs.png +0 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@liip/liipgpt",
3
- "version": "3.9.0",
3
+ "version": "3.9.1",
4
4
  "description": "LiipGPT Chat and Library",
5
5
  "type": "module",
6
6
  "exports": {
@@ -39,5 +39,5 @@
39
39
  ],
40
40
  "keywords": [],
41
41
  "author": "falkz",
42
- "license": ""
42
+ "license": "LicenseRef-LiipGPT"
43
43
  }
@@ -395,14 +395,14 @@ Please report this to https://github.com/markedjs/marked.`,e){let e=`<p>An error
395
395
  <path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" d="m11.1 19.7001 8.1 -7.8 -8.1 -7.8v4.40002H8.89999c-4.5 0 -8.200001 3.69998 -8.200001 8.19998v2.7c0 0.3 0.2 0.5 0.500001 0.5h0.09999c0.2 0 0.40001 -0.2 0.40001 -0.4 0.2 -2.3 2.1 -4.2001 4.5 -4.2001H11v4.4001h0.1Z" stroke-width="1"></path>
396
396
  <path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" d="m15.1 19.7001 8.2 -7.8 -8.2 -7.8" stroke-width="1"></path>
397
397
  </svg>
398
- `,embedAvatar:``,phone:`<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="M6.6 10.8c1.4 2.8 3.8 5.1 6.6 6.6l2.2-2.2c.3-.3.7-.4 1-.2 1.1.4 2.3.6 3.6.6.6 0 1 .4 1 1V20c0 .6-.4 1-1 1C10.6 21 3 13.4 3 4c0-.6.4-1 1-1h3.5c.6 0 1 .4 1 1 0 1.3.2 2.5.6 3.6.1.3 0 .7-.2 1L6.6 10.8z"/></svg>`,email:`<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><rect x="2" y="4" width="20" height="16" rx="2"/><path d="m2 7 10 7 10-7"/></svg>`,headerLogo:``}}},Dy=wy(Ey,{tokens:{base:{lineColor:`color-mix(in srgb, var(--color-brand-100) 20%, transparent)`},components:{body:{background:`var(--color-grey-900)`,color:`var(--color-grey-100)`,focus:{color:`var(--color-highlight-400)`},custom:{selectionColor:`var(--color-grey-1000)`,selectionBackground:`var(--color-brand-400)`}},avatar:{color:`var(--color-brand-200)`,background:`var(--color-grey-800)`},anchor:{color:`var(--color-brand-300)`,hover:{color:`var(--color-brand-50)`}},btnPrimary:{color:`var(--color-grey-1000)`,background:`var(--color-brand-300)`,hover:{background:`var(--color-brand-100)`}},btnSecondary:{color:`var(--color-brand-100)`,background:`var(--color-brand-900)`,hover:{color:`var(--color-grey-0)`,background:`var(--color-brand-800)`}},btnTertiary:{color:`var(--anchor-color)`,background:`transparent`,borderRadius:`var(--base-border-radius)`,hover:{color:`var(--anchor-hover-color)`}},card:{color:`var(--body-color)`,background:`var(--color-grey-800)`,hover:{color:`var(--color-grey-0)`,background:`var(--color-brand-900)`}},input:{background:`var(--color-grey-900)`,borderColor:`var(--color-grey-700)`,custom:{placeholderColor:`var(--color-grey-400)`}},label:{color:`var(--color-grey-50)`},checkbox:{background:`var(--color-grey-700)`,borderColor:`var(--color-grey-500)`,custom:{checkedColor:`var(--color-grey-900)`,checkedBorderColor:`var(--color-brand-300)`,checkedBackground:`var(--color-brand-300)`}},radio:{background:`var(--color-grey-700)`,borderColor:`var(--color-grey-500)`,custom:{checkedColor:`var(--color-grey-900)`,checkedBorderColor:`var(--color-brand-300)`,checkedBackground:`var(--color-brand-300)`}},contextBox:{custom:{titleColor:`var(--color-grey-50)`}},referenceDescription:{color:`var(--color-grey-300)`,hover:{color:`var(--color-grey-300)`}},chatFooter:{color:`var(--color-grey-500)`},chatInput:{color:`var(--color-grey-100)`},chatInputSubmit:{custom:{deactivatedBackground:`var(--color-grey-400)`,deactivatedBorderColor:`var(--color-grey-400)`}},dialog:{custom:{backgroundOverlay:`rgba(0, 0, 0, 0.5)`}},tooltip:{background:`var(--color-grey-1000)`},searchSummary:{color:`var(--body-color)`,background:`var(--color-grey-800)`,borderColor:`var(--color-grey-700)`,borderWidth:`1px`,borderRadius:`var(--base-border-radius)`,boxShadow:`none`,custom:{padding:`clamp(0.75rem, 0.6364rem + 0.5682cqw, 1rem)`,linkColor:`var(--anchor-color)`,referenceListColor:`var(--anchor-color)`,referenceListFontSize:`1em`,disclaimerLinkColor:`var(--anchor-color)`,errorColor:`var(--message-error-color)`,footerBackground:`var(--search-summary-background)`}},messageJsonLdMap:{custom:{markerColor:`#6658c8`,mapStyleUrl:`https://tiles.openfreemap.org/styles/fiord`}}}}}),Oy={fineGrained:{light:Ey,dark:Dy}}})),Ay,jy,My=s((()=>{ky(),q_(),Ay=e=>typeof e==`string`?G_[e]:e,jy=e=>{let t=Ay(e?.colors?.brand||G_.gray),n=Ay(e?.colors?.highlight||t),r={0:`#ffffff`,1e3:`#000000`,...Ay(e?.colors?.grey||G_.gray)},i;return i=e.avatarImageUrl?`<img src="${e.avatarImageUrl}" alt="Avatar" style="width: 100%; height: 100%; object-fit: cover; border-radius: 50%; aspect-ratio: 1 / 1; display: block; filter: drop-shadow(0 0 1px rgba(0, 0, 0, 0.1));" />`:Oy.fineGrained.light.tokens.svgs.avatar,{fontURLs:e.font?.urls,tokens:{font:{family:e.font?.family},colors:{brand:t,highlight:n,grey:r},base:{fontSizeXs:e.font?.sizeXs,fontSizeSm:e.font?.sizeSm,fontSizeBody:e.font?.sizeBody,fontSizeH3:e.font?.sizeH3,fontSizeH2:e.font?.sizeH2,fontSizeH1:e.font?.sizeH1,fontWeightNormal:e.font?.weightBold,fontWeightBold:e.font?.weightNormal,fontWeightTitle:e.font?.weightTitle,borderRadius:e.borderRadius},components:{body:{background:e.colors?.background,color:e.colors?.text},anchor:{color:e.colors?.anchor?.default,hover:{color:e.colors?.anchor?.hover}}},svgs:{avatar:i}}}}})),Ny,Py=s((()=>{My(),ky(),Ty(),Ny=e=>{let t=jy(e);return{light:wy(Oy.fineGrained.light,t)}}})),Fy,Iy=s((()=>{ky(),Ty(),Fy=e=>{let t={};return e.dark&&(t.dark=wy(Oy.fineGrained.dark,e.dark)),e.light&&(t.light=wy(Oy.fineGrained.light,e.light)),!e.dark&&!e.light&&(t.light=e.light),t}})),Ly,Ry=s((()=>{Ly={de:{askQuestionAgain:`Frage erneut stellen`,answerGood:`Gute Antwort`,answerBad:`Schlechte Antwort`,chatInputPlaceholder:`Fragen Sie mich etwas`,chatInputPlaceholderListening:`Ich höre zu...`,chatInputSubmit:`Aufforderung senden`,chatInputAbort:`Antwort unterbrechen`,chatInputStartListening:`Spracherkennung starten`,chatInputStopListening:`Spracherkennung beenden`,introductionTitle:`Ich bin <span class="liipgpt-gradient-text">LiipGPT</span>. Wie kann ich Ihnen heute helfen?`,newChat:`Neuer Chat`,maintenanceModeError:`Der Chat ist derzeit nicht verfügbar. Bitte versuchen Sie es später erneut.`,messageBotLoading:`Lass mich nachdenken`,messageBotError:`Es ist ein Fehler aufgetreten:`,messageBotDefaultError:`Unbekannter Fehler`,referenceLink:`Link zur Referenz`,referencesDisplay:`Referenzen anzeigen`,referencesHide:`Referenzen ausblenden`,referencesTitle:`Referenzen`,referencesFurtherTitle:`Weitere Referenzen`,chatFooterText:``,scrollToBottom:`Nach unten scrollen`,openMenu:`Menü öffnen`,closeMenu:`Menü schließen`,closeChat:`Chat schließen`,close:`Schließen`,openInfo:`Info öffnen`,send:`Abschicken`,thankYouForFeedback:`Danke für Dein Feedback!`,answerFormThankYou:`Vielen Dank, Ihre Anfrage wurde gesendet.`,giveFeedback:`Feedback geben`,sendFeedback:`Feedback senden`,feedbackFormTitle:`Feedback geben, um unseren Chatbot zu verbessern`,feedbackFormMessage:`Ihre Nachricht`,feedbackFormMessagePlaceholder:`Schreiben Sie hier Ihre Nachricht...`,feedbackFormEmail:`E-Mail`,feedbackFormEmailPlaceholder:`Ihre E-Mail eingeben...`,classificationSubmit:`Abschicken`,classificationThankYou:`Danke für Dein Feedback!`,classificationTitle:`Bitte bewerten Sie den Einfluss und die Qualität der Antwort`,selectLanguage:`Sprache auswählen`,languageChanged:`Sprache auf Deutsch geändert.`,selectColorTheme:`Farbmodus wählen`,lightMode:`Hell`,darkMode:`Dunkel`,noResultsFound:`Keine Ergebnisse gefunden`,aboutThisChat:`
398
+ `,embedAvatar:``,phone:`<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="M6.6 10.8c1.4 2.8 3.8 5.1 6.6 6.6l2.2-2.2c.3-.3.7-.4 1-.2 1.1.4 2.3.6 3.6.6.6 0 1 .4 1 1V20c0 .6-.4 1-1 1C10.6 21 3 13.4 3 4c0-.6.4-1 1-1h3.5c.6 0 1 .4 1 1 0 1.3.2 2.5.6 3.6.1.3 0 .7-.2 1L6.6 10.8z"/></svg>`,email:`<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><rect x="2" y="4" width="20" height="16" rx="2"/><path d="m2 7 10 7 10-7"/></svg>`,headerLogo:``}}},Dy=wy(Ey,{tokens:{base:{lineColor:`color-mix(in srgb, var(--color-brand-100) 20%, transparent)`},components:{body:{background:`var(--color-grey-900)`,color:`var(--color-grey-100)`,focus:{color:`var(--color-highlight-400)`},custom:{selectionColor:`var(--color-grey-1000)`,selectionBackground:`var(--color-brand-400)`}},avatar:{color:`var(--color-brand-200)`,background:`var(--color-grey-800)`},anchor:{color:`var(--color-brand-300)`,hover:{color:`var(--color-brand-50)`}},btnPrimary:{color:`var(--color-grey-1000)`,background:`var(--color-brand-300)`,hover:{background:`var(--color-brand-100)`}},btnSecondary:{color:`var(--color-brand-100)`,background:`var(--color-brand-900)`,hover:{color:`var(--color-grey-0)`,background:`var(--color-brand-800)`}},btnTertiary:{color:`var(--anchor-color)`,background:`transparent`,borderRadius:`var(--base-border-radius)`,hover:{color:`var(--anchor-hover-color)`}},card:{color:`var(--body-color)`,background:`var(--color-grey-800)`,hover:{color:`var(--color-grey-0)`,background:`var(--color-brand-900)`}},input:{background:`var(--color-grey-900)`,borderColor:`var(--color-grey-700)`,custom:{placeholderColor:`var(--color-grey-400)`}},label:{color:`var(--color-grey-50)`},checkbox:{background:`var(--color-grey-700)`,borderColor:`var(--color-grey-500)`,custom:{checkedColor:`var(--color-grey-900)`,checkedBorderColor:`var(--color-brand-300)`,checkedBackground:`var(--color-brand-300)`}},radio:{background:`var(--color-grey-700)`,borderColor:`var(--color-grey-500)`,custom:{checkedColor:`var(--color-grey-900)`,checkedBorderColor:`var(--color-brand-300)`,checkedBackground:`var(--color-brand-300)`}},contextBox:{custom:{titleColor:`var(--color-grey-50)`}},referenceDescription:{color:`var(--color-grey-300)`,hover:{color:`var(--color-grey-300)`}},chatFooter:{color:`var(--color-grey-500)`},chatInput:{color:`var(--color-grey-100)`},chatInputSubmit:{custom:{deactivatedBackground:`var(--color-grey-400)`,deactivatedBorderColor:`var(--color-grey-400)`}},dialog:{custom:{backgroundOverlay:`rgba(0, 0, 0, 0.5)`}},tooltip:{background:`var(--color-grey-1000)`},searchSummary:{color:`var(--body-color)`,background:`var(--color-grey-800)`,borderColor:`var(--color-grey-700)`,borderWidth:`1px`,borderRadius:`var(--base-border-radius)`,boxShadow:`none`,custom:{padding:`clamp(0.75rem, 0.6364rem + 0.5682cqw, 1rem)`,linkColor:`var(--anchor-color)`,referenceListColor:`var(--anchor-color)`,referenceListFontSize:`1em`,disclaimerLinkColor:`var(--anchor-color)`,errorColor:`var(--message-error-color)`,footerBackground:`var(--search-summary-background)`}},messageJsonLdMap:{custom:{markerColor:`#6658c8`,mapStyleUrl:`https://tiles.openfreemap.org/styles/fiord`}}}}}),Oy={fineGrained:{light:Ey,dark:Dy}}})),Ay,jy,My=s((()=>{ky(),q_(),Ay=e=>typeof e==`string`?G_[e]:e,jy=e=>{let t=Ay(e?.colors?.brand||G_.gray),n=Ay(e?.colors?.highlight||t),r={0:`#ffffff`,1e3:`#000000`,...Ay(e?.colors?.grey||G_.gray)},i;return i=e.avatarImageUrl?`<img src="${e.avatarImageUrl}" alt="Avatar" style="width: 100%; height: 100%; object-fit: cover; border-radius: 50%; aspect-ratio: 1 / 1; display: block; filter: drop-shadow(0 0 1px rgba(0, 0, 0, 0.1));" />`:Oy.fineGrained.light.tokens.svgs.avatar,{fontURLs:e.font?.urls,tokens:{font:{family:e.font?.family},colors:{brand:t,highlight:n,grey:r},base:{fontSizeXs:e.font?.sizeXs,fontSizeSm:e.font?.sizeSm,fontSizeBody:e.font?.sizeBody,fontSizeH3:e.font?.sizeH3,fontSizeH2:e.font?.sizeH2,fontSizeH1:e.font?.sizeH1,fontWeightNormal:e.font?.weightBold,fontWeightBold:e.font?.weightNormal,fontWeightTitle:e.font?.weightTitle,borderRadius:e.borderRadius},components:{body:{background:e.colors?.background,color:e.colors?.text},anchor:{color:e.colors?.anchor?.default,hover:{color:e.colors?.anchor?.hover}}},svgs:{avatar:i}}}}})),Ny,Py=s((()=>{My(),ky(),Ty(),Ny=e=>{let t=jy(e);return{light:wy(Oy.fineGrained.light,t)}}})),Fy,Iy=s((()=>{ky(),Ty(),Fy=e=>{let t={};return e.dark&&(t.dark=wy(Oy.fineGrained.dark,e.dark)),e.light&&(t.light=wy(Oy.fineGrained.light,e.light)),!e.dark&&!e.light&&(t.light=e.light),t}})),Ly,Ry=s((()=>{Ly={de:{askQuestionAgain:`Frage erneut stellen`,answerGood:`Gute Antwort`,answerBad:`Schlechte Antwort`,chatInputPlaceholder:`Fragen Sie mich etwas`,chatInputPlaceholderListening:`Ich höre zu...`,chatInputSubmit:`Aufforderung senden`,chatInputAbort:`Antwort unterbrechen`,chatInputStartListening:`Spracherkennung starten`,chatInputStopListening:`Spracherkennung beenden`,introductionTitle:`Ich bin <span class="liipgpt-gradient-text">LiipGPT</span>. Wie kann ich Ihnen heute helfen?`,newChat:`Neuer Chat`,maintenanceModeError:`Der Chat ist derzeit nicht verfügbar. Bitte versuchen Sie es später erneut.`,messageBotLoading:`Lass mich nachdenken`,messageBotError:`Es ist ein Fehler aufgetreten:`,messageBotDefaultError:`Unbekannter Fehler`,referenceLink:`Link zur Referenz`,referencesDisplay:`Referenzen anzeigen`,referencesHide:`Referenzen ausblenden`,referencesTitle:`Referenzen`,referencesFurtherTitle:`Weitere Referenzen`,chatFooterText:``,scrollToBottom:`Nach unten scrollen`,openMenu:`Menü öffnen`,closeMenu:`Menü schliessen`,closeChat:`Chat schliessen`,close:`Schliessen`,openInfo:`Info öffnen`,send:`Abschicken`,thankYouForFeedback:`Danke für Dein Feedback!`,answerFormThankYou:`Vielen Dank, Ihre Anfrage wurde gesendet.`,giveFeedback:`Feedback geben`,sendFeedback:`Feedback senden`,feedbackFormTitle:`Feedback geben, um unseren Chatbot zu verbessern`,feedbackFormMessage:`Ihre Nachricht`,feedbackFormMessagePlaceholder:`Schreiben Sie hier Ihre Nachricht...`,feedbackFormEmail:`E-Mail`,feedbackFormEmailPlaceholder:`Ihre E-Mail eingeben...`,classificationSubmit:`Abschicken`,classificationThankYou:`Danke für Dein Feedback!`,classificationTitle:`Bitte bewerten Sie den Einfluss und die Qualität der Antwort`,selectLanguage:`Sprache auswählen`,languageChanged:`Sprache auf Deutsch geändert.`,selectColorTheme:`Farbmodus wählen`,lightMode:`Hell`,darkMode:`Dunkel`,noResultsFound:`Keine Ergebnisse gefunden`,aboutThisChat:`
399
399
  <p>
400
400
  <strong>Dies ist ein Platzhaltertext, um dem Chatbot Kontext zu geben</strong>
401
401
  </p>
402
402
  <p>
403
403
  Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec mauris diam, vestibulum vitae cursus et, hendrerit sed dolor. Sed quis nisl quis ipsum tempus hendrerit. <a href="https://www.liipgpt.ch/" target="_blank">Weitere Informationen <span class="sr-only">, (öffnet in einem neuen Tab)</span></a>
404
404
  </p>
405
- `,ariaMainNavigation:`Hauptnavigation`,ariaMainNavigationInfo:`Über diesen Chat`,ariaMainNavigationLinks:`Links`,ariaMainNavigationLanguageSwitch:`Sprachwechsel`,ariaMainNavigationColorMode:`Farbmodus`,ariaGotoMainNavigation:`Zur Hauptnavigation springen`,ariaAskQuestion:`Texteingabe`,ariaAskQuestionRegion:`Stellen Sie eine Frage`,ariaNotifications:`Benachrichtigungen`,ariaPredefinedQuestions:`Vordefinierte Fragen`,ariaPredefinedQuestionsRegion:`Probieren Sie unsere Beispielfragen`,ariaChatHistory:`Chatverlauf`,ariaOpenChat:`Chat öffnen`,ariaQuestionFromYou:`Ihre Frage:`,ariaAnswerFromBot:`Antwort {n} vom Assistenten:`,ariaLastAnswerNavigation:`Navigation und Optionen für die letzte Antwort`,ariaQuestionSent:`Frage gesendet. Antwort wird generiert.`,ariaAnswerReady:`Antwort bereit.`,ariaAnswerFinished:`Antwort abgeschlossen. Stellen Sie eine weitere Frage oder navigieren Sie zurück, um den Chat-Verlauf zu überprüfen, Feedback zu geben oder Referenzen zur Antwort anzuzeigen.`,ariaAnswerFinishedWithSelectedTopic:`Antwort abgeschlossen. Stellen Sie eine weitere Frage oder navigieren Sie zurück, um das gewählte Thema zu ändern, den Chat-Verlauf zu überprüfen, Feedback zu geben oder Referenzen zur Antwort anzuzeigen.`,ariaAskQuestionAgain:`Letzte Frage in das Chat-Eingabefeld kopieren, um sie erneut zu stellen`,ariaAnswerGood:`Diese Antwort als gut bewerten`,ariaAnswerBad:`Diese Antwort als schlecht bewerten`,ariaReferenceSource:`Quelle:`,ariaGiveFeedback:`Detailliertes Feedback zur Antwort geben`,ariaAnswerForm:`Formular zu dieser Antwort öffnen`,ariaLanguageChanged:`Sprache auf Deutsch geändert.`,ariaLightSelected:`Hellmodus aktiviert.`,ariaDarkSelected:`Dunkelmodus aktiviert.`,ariaSettings:`Chateinstellungen`,ariaSettingsRegion:`Passen Sie Ihre Chat-Präferenzen an`,ariaReferencesRegion:`Referenzen zur aktuellen Frage`,ariaOpensInNewTab:`(öffnet in neuem Tab)`,ariaPageTitle:`Chatbot`,ariaCloseWithEsc:`Diesen Inhalt mit der Escape-Taste schließen`,ariaInfoTitle:`Über diesen Chatbot`,ariaFlyoutRegion:`Chatbot`,ariaSelected:`ausgewählt`,ariaUnselected:`nicht ausgewählt`,ariaAllSelected:`Alle Elemente ausgewählt`,ariaAllUnselected:`Alle Elemente nicht ausgewählt`,ariaAllReseted:`Standardelemente ausgewählt`,ariaChangeTopic:`Thema ändern`,hideSettings:`Einstellungen ausblenden`,showSettings:`Einstellungen`,chooseAtLeastOneOption:`Wählen Sie mindestens eine Option`,selectAll:`Alle auswählen`,selectNone:`Alle abwählen`,resetToDefaults:`Zurücksetzen`,messageTooLong:`Ihre Nachricht muss kürzer als {questionLengthLimit} Zeichen sein. Aktuell ist sie {questionLength} Zeichen lang`,selectedTopic:`Ausgewähltes Thema`,changeTopic:`Thema ändern`,searchSummaryExpand:`Gesamte Antwort`,searchSummaryCollapse:`Weniger anzeigen`,searchSummaryOptInDefault:`KI-Suche aktivieren`,searchSummaryOptOut:`KI-Suche deaktivieren`,searchSummaryError:`Etwas ist schiefgelaufen.`,searchSummaryDisclaimer:`<p><strong>Ich bin ein KI-Assistent.</strong></p><p>Meine Antworten werden von einer künstlichen Intelligenz generiert und sind deshalb nicht immer korrekt. Wenn Sie mich aktivieren, unterstütze ich Sie bei der Suche nach den richtigen Informationen.</p>`,searchSummaryLoading:`Antwort wird generiert…`,searchSummaryFollowUpPlaceholder:`Stellen Sie eine Folgefrage…`,searchSummaryFollowUpSubmit:`Im Chat fortfahren`,ariaSearchSummaryExpand:`Vollständige Antwort anzeigen`,ariaSearchSummaryCollapse:`Antwort einklappen`,ariaSearchSummaryOptOut:`KI-Suche deaktivieren`,ariaSearchSummaryFollowUpInput:`Frage stellen`,jsonLdEventDate:`Datum`,jsonLdEventLocation:`Ort`,jsonLdEventDescription:`Infos`,jsonLdEventCtaLabel:`Zum Event`,jsonLdCtaLabel:`Mehr erfahren`,jsonLdMapOpenMap:`Karte öffnen`,ariaJsonLdMapCanvas:`Karte`,ariaJsonLdEventCard:`Veranstaltung`,ariaJsonLdMapCard:`Standort`,ariaJsonLdCtaCard:`Link`},en:{askQuestionAgain:`Ask question again`,answerGood:`Good answer`,answerBad:`Bad answer`,chatInputPlaceholder:`Ask me something`,chatInputPlaceholderListening:`I'm listening...`,chatInputSubmit:`Send prompt`,chatInputAbort:`Stop response`,chatInputStartListening:`Start speech recognition`,chatInputStopListening:`Stop speech recognition`,introductionTitle:`I am <span class="liipgpt-gradient-text">LiipGPT</span>. How can I help you out today?`,newChat:`New discussion`,maintenanceModeError:`The chat is currently not available. Please try again later.`,messageBotLoading:`Let me think`,messageBotError:`An error occurred:`,messageBotDefaultError:`Unknown error`,referenceLink:`Link to reference`,referencesDisplay:`Show references`,referencesHide:`Hide references`,referencesTitle:`References`,referencesFurtherTitle:`More references`,chatFooterText:``,scrollToBottom:`Scroll to bottom`,openMenu:`Open menu`,closeMenu:`Close menu`,closeChat:`Close chat`,openInfo:`Open info`,close:`Close`,send:`Send`,thankYouForFeedback:`Thank you for your feedback!`,answerFormThankYou:`Thank you, your request has been sent.`,giveFeedback:`Give feedback`,sendFeedback:`Send feedback`,feedbackFormTitle:`Give feedback to improve our Chatbot`,feedbackFormMessage:`Your message`,feedbackFormMessagePlaceholder:`Write your message here...`,feedbackFormEmail:`E-Mail`,feedbackFormEmailPlaceholder:`Enter your E-Mail`,classificationSubmit:`Submit`,classificationThankYou:`Thank you for your feedback!`,classificationTitle:`Please rate the impact and quality of the answer`,selectLanguage:`Select language`,languageChanged:`Language changed to English.`,selectColorTheme:`Choose color mode`,lightMode:`Light`,darkMode:`Dark`,noResultsFound:`No results found`,aboutThisChat:`
405
+ `,ariaMainNavigation:`Hauptnavigation`,ariaMainNavigationInfo:`Über diesen Chat`,ariaMainNavigationLinks:`Links`,ariaMainNavigationLanguageSwitch:`Sprachwechsel`,ariaMainNavigationColorMode:`Farbmodus`,ariaGotoMainNavigation:`Zur Hauptnavigation springen`,ariaAskQuestion:`Texteingabe`,ariaAskQuestionRegion:`Stellen Sie eine Frage`,ariaNotifications:`Benachrichtigungen`,ariaPredefinedQuestions:`Vordefinierte Fragen`,ariaPredefinedQuestionsRegion:`Probieren Sie unsere Beispielfragen`,ariaChatHistory:`Chatverlauf`,ariaOpenChat:`Chat öffnen`,ariaQuestionFromYou:`Ihre Frage:`,ariaAnswerFromBot:`Antwort {n} vom Assistenten:`,ariaLastAnswerNavigation:`Navigation und Optionen für die letzte Antwort`,ariaQuestionSent:`Frage gesendet. Antwort wird generiert.`,ariaAnswerReady:`Antwort bereit.`,ariaAnswerFinished:`Antwort abgeschlossen. Stellen Sie eine weitere Frage oder navigieren Sie zurück, um den Chat-Verlauf zu überprüfen, Feedback zu geben oder Referenzen zur Antwort anzuzeigen.`,ariaAnswerFinishedWithSelectedTopic:`Antwort abgeschlossen. Stellen Sie eine weitere Frage oder navigieren Sie zurück, um das gewählte Thema zu ändern, den Chat-Verlauf zu überprüfen, Feedback zu geben oder Referenzen zur Antwort anzuzeigen.`,ariaAskQuestionAgain:`Letzte Frage in das Chat-Eingabefeld kopieren, um sie erneut zu stellen`,ariaAnswerGood:`Diese Antwort als gut bewerten`,ariaAnswerBad:`Diese Antwort als schlecht bewerten`,ariaReferenceSource:`Quelle:`,ariaGiveFeedback:`Detailliertes Feedback zur Antwort geben`,ariaAnswerForm:`Formular zu dieser Antwort öffnen`,ariaLanguageChanged:`Sprache auf Deutsch geändert.`,ariaLightSelected:`Hellmodus aktiviert.`,ariaDarkSelected:`Dunkelmodus aktiviert.`,ariaSettings:`Chateinstellungen`,ariaSettingsRegion:`Passen Sie Ihre Chat-Präferenzen an`,ariaReferencesRegion:`Referenzen zur aktuellen Frage`,ariaOpensInNewTab:`(öffnet in neuem Tab)`,ariaPageTitle:`Chatbot`,ariaCloseWithEsc:`Diesen Inhalt mit der Escape-Taste schliessen`,ariaInfoTitle:`Über diesen Chatbot`,ariaFlyoutRegion:`Chatbot`,ariaSelected:`ausgewählt`,ariaUnselected:`nicht ausgewählt`,ariaAllSelected:`Alle Elemente ausgewählt`,ariaAllUnselected:`Alle Elemente nicht ausgewählt`,ariaAllReseted:`Standardelemente ausgewählt`,ariaChangeTopic:`Thema ändern`,hideSettings:`Einstellungen ausblenden`,showSettings:`Einstellungen`,chooseAtLeastOneOption:`Wählen Sie mindestens eine Option`,selectAll:`Alle auswählen`,selectNone:`Alle abwählen`,resetToDefaults:`Zurücksetzen`,messageTooLong:`Ihre Nachricht muss kürzer als {questionLengthLimit} Zeichen sein. Aktuell ist sie {questionLength} Zeichen lang`,selectedTopic:`Ausgewähltes Thema`,changeTopic:`Thema ändern`,searchSummaryExpand:`Gesamte Antwort`,searchSummaryCollapse:`Weniger anzeigen`,searchSummaryOptInDefault:`KI-Suche aktivieren`,searchSummaryOptOut:`KI-Suche deaktivieren`,searchSummaryError:`Etwas ist schiefgelaufen.`,searchSummaryDisclaimer:`<p><strong>Ich bin ein KI-Assistent.</strong></p><p>Meine Antworten werden von einer künstlichen Intelligenz generiert und sind deshalb nicht immer korrekt. Wenn Sie mich aktivieren, unterstütze ich Sie bei der Suche nach den richtigen Informationen.</p>`,searchSummaryLoading:`Antwort wird generiert…`,searchSummaryFollowUpPlaceholder:`Stellen Sie eine Folgefrage…`,searchSummaryFollowUpSubmit:`Im Chat fortfahren`,ariaSearchSummaryExpand:`Vollständige Antwort anzeigen`,ariaSearchSummaryCollapse:`Antwort einklappen`,ariaSearchSummaryOptOut:`KI-Suche deaktivieren`,ariaSearchSummaryFollowUpInput:`Frage stellen`,jsonLdEventDate:`Datum`,jsonLdEventLocation:`Ort`,jsonLdEventDescription:`Infos`,jsonLdEventCtaLabel:`Zum Event`,jsonLdCtaLabel:`Mehr erfahren`,jsonLdMapOpenMap:`Karte öffnen`,ariaJsonLdMapCanvas:`Karte`,ariaJsonLdEventCard:`Veranstaltung`,ariaJsonLdMapCard:`Standort`,ariaJsonLdCtaCard:`Link`},en:{askQuestionAgain:`Ask question again`,answerGood:`Good answer`,answerBad:`Bad answer`,chatInputPlaceholder:`Ask me something`,chatInputPlaceholderListening:`I'm listening...`,chatInputSubmit:`Send prompt`,chatInputAbort:`Stop response`,chatInputStartListening:`Start speech recognition`,chatInputStopListening:`Stop speech recognition`,introductionTitle:`I am <span class="liipgpt-gradient-text">LiipGPT</span>. How can I help you out today?`,newChat:`New discussion`,maintenanceModeError:`The chat is currently not available. Please try again later.`,messageBotLoading:`Let me think`,messageBotError:`An error occurred:`,messageBotDefaultError:`Unknown error`,referenceLink:`Link to reference`,referencesDisplay:`Show references`,referencesHide:`Hide references`,referencesTitle:`References`,referencesFurtherTitle:`More references`,chatFooterText:``,scrollToBottom:`Scroll to bottom`,openMenu:`Open menu`,closeMenu:`Close menu`,closeChat:`Close chat`,openInfo:`Open info`,close:`Close`,send:`Send`,thankYouForFeedback:`Thank you for your feedback!`,answerFormThankYou:`Thank you, your request has been sent.`,giveFeedback:`Give feedback`,sendFeedback:`Send feedback`,feedbackFormTitle:`Give feedback to improve our Chatbot`,feedbackFormMessage:`Your message`,feedbackFormMessagePlaceholder:`Write your message here...`,feedbackFormEmail:`E-Mail`,feedbackFormEmailPlaceholder:`Enter your E-Mail`,classificationSubmit:`Submit`,classificationThankYou:`Thank you for your feedback!`,classificationTitle:`Please rate the impact and quality of the answer`,selectLanguage:`Select language`,languageChanged:`Language changed to English.`,selectColorTheme:`Choose color mode`,lightMode:`Light`,darkMode:`Dark`,noResultsFound:`No results found`,aboutThisChat:`
406
406
  <p>
407
407
  <strong>This is a placeholder text to give context to the chat-bot</strong>
408
408
  </p>
@@ -423,4 +423,4 @@ Please report this to https://github.com/markedjs/marked.`,e){let e=`<p>An error
423
423
  <p>
424
424
  Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec mauris diam, vestibulum vitae cursus et, hendrerit sed dolor. Sed quis nisl quis ipsum tempus hendrerit. <a href="https://www.liipgpt.ch/" target="_blank">Plus d'informations <span class="sr-only">, (ouvre dans un nouvel onglet)</span></a>
425
425
  </p>
426
- `,ariaMainNavigation:`Navigation principale`,ariaMainNavigationInfo:`À propos de ce chat`,ariaMainNavigationLinks:`Liens`,ariaMainNavigationLanguageSwitch:`Changement de langue`,ariaMainNavigationColorMode:`Mode couleur`,ariaGotoMainNavigation:`Aller à la navigation principale`,ariaAskQuestion:`Saisie texte`,ariaAskQuestionRegion:`Poser une question`,ariaNotifications:`Notifications`,ariaPredefinedQuestions:`Questions prédéfinies`,ariaPredefinedQuestionsRegion:`Essayez nos questions d'exemple`,ariaChatHistory:`Historique du chat`,ariaOpenChat:`Ouvrir le chat`,ariaQuestionFromYou:`Votre question:`,ariaAnswerFromBot:`Réponse {n} de l'Assistant:`,ariaLastAnswerNavigation:`Navigation et options pour la dernière réponse`,ariaQuestionSent:`Question envoyée. Génération de la réponse en cours...`,ariaAnswerReady:`Réponse prête.`,ariaAnswerFinished:`Réponse terminée. Posez une autre question ou naviguez en arrière pour consulter l'historique du chat, donner un avis ou voir les références liées à la réponse.`,ariaAnswerFinishedWithSelectedTopic:`Réponse terminée. Posez une autre question ou naviguez en arrière pour changer le sujet sélectionné, consulter l'historique du chat, donner un avis ou voir les références liées à la réponse.`,ariaAskQuestionAgain:`Copier la dernière question dans le champ de saisie pour la reposer`,ariaAnswerGood:`Évaluer cette réponse comme bonne`,ariaAnswerBad:`Évaluer cette réponse comme mauvaise`,ariaReferenceSource:`Source:`,ariaGiveFeedback:`Donner un feedback détaillé sur la réponse`,ariaAnswerForm:`Ouvrir le formulaire pour cette réponse`,ariaLanguageChanged:`Langue française sélectionnée.`,ariaLightSelected:`Mode clair activé.`,ariaDarkSelected:`Mode sombre activé.`,ariaSettings:`Paramètres du chat`,ariaSettingsRegion:`Ajustez vos préférences de chat`,ariaReferencesRegion:`Références pour la question actuelle`,ariaOpensInNewTab:`(ouvre dans un nouvel onglet)`,ariaPageTitle:`Chatbot`,ariaCloseWithEsc:`Fermer ce contenu en appuyant sur la touche Échap`,ariaInfoTitle:`À propos de ce chatbot`,ariaFlyoutRegion:`Chatbot`,ariaSelected:`sélectionné`,ariaUnselected:`non sélectionné`,ariaAllSelected:`Tous les éléments sélectionnés`,ariaAllUnselected:`Tous les éléments non sélectionnés`,ariaAllReseted:`Éléments par défaut sélectionnés`,ariaChangeTopic:`Changer de sujet`,hideSettings:`Masquer les paramètres`,showSettings:`Paramètres`,chooseAtLeastOneOption:`Veuillez choisir au moins une option`,selectAll:`Tout sélectionner`,selectNone:`Tout désélectionner`,resetToDefaults:`Réinitialiser`,messageTooLong:`Votre message doit être plus court que {questionLengthLimit} caractères. Actuellement, il fait {questionLength} caractères`,selectedTopic:`Sujet sélectionné`,changeTopic:`Changer de sujet`,searchSummaryExpand:`Réponse complète`,searchSummaryCollapse:`Afficher moins`,searchSummaryOptInDefault:`Activer la recherche IA`,searchSummaryOptOut:`Désactiver la recherche IA`,searchSummaryError:`Une erreur s'est produite.`,searchSummaryDisclaimer:`<p><strong>Je suis un assistant IA.</strong></p><p>Mes réponses sont générées par l'intelligence artificielle et peuvent ne pas toujours être correctes.</p>`,searchSummaryLoading:`Génération de la réponse…`,searchSummaryFollowUpPlaceholder:`Posez une question de suivi…`,searchSummaryFollowUpSubmit:`Continuer dans le chat`,ariaSearchSummaryExpand:`Afficher la réponse complète`,ariaSearchSummaryCollapse:`Réduire la réponse`,ariaSearchSummaryOptOut:`Désactiver la recherche IA`,ariaSearchSummaryFollowUpInput:`Poser une question de suivi`,jsonLdEventDate:`Date`,jsonLdEventLocation:`Lieu`,jsonLdEventDescription:`Infos`,jsonLdEventCtaLabel:`Voir l'événement`,jsonLdCtaLabel:`En savoir plus`,jsonLdMapOpenMap:`Ouvrir la carte`,ariaJsonLdMapCanvas:`Carte`,ariaJsonLdEventCard:`Événement`,ariaJsonLdMapCard:`Localisation`,ariaJsonLdCtaCard:`Lien`}}})),zy,By,Vy=s((()=>{zy=d(by(),1),Ry(),By=e=>(e??=Ly,{de:(0,zy.default)(Ly.de,e.de??{}),en:(0,zy.default)(Ly.en,e.en??{}),fr:(0,zy.default)(Ly.fr,e.fr??{}),it:(0,zy.default)(Ly.it,e.it??{})})})),Hy,Uy,Wy=s((()=>{yy(),Py(),Iy(),Vy(),Hy=e=>({init:e?.init??[],bot:{before:e?.bot?.before??[],after:e?.bot?.after??[]},user:{before:e?.user?.before??[],after:e?.user?.after??[]}}),Uy=e=>{let t;t=e.theme?.fineGrained?Fy(e.theme?.fineGrained):Ny(e?.theme??{});let n=By(e?.translations),r={...e,forcePredefinedQuestions:e.forcePredefinedQuestions??!1,forceChatPage:e.forceChatPage??!1,showOverallFeedbackButton:e.showOverallFeedbackButton??!1,showOverallFeedbackEmail:e.showOverallFeedbackEmail??!0,showCloseChatButton:e.showCloseChatButton??!1,showContextInfo:e.showContextInfo??!1,showContextMenu:e.showContextMenu??!1,showReferencesByDefault:e.showReferencesByDefault??!1,showTextFeedback:e.showTextFeedback??!0,showExpandedSelectors:e.showExpandedSelectors??!1,inlineLayout:e.inlineLayout??!1,questionPrefix:e.questionPrefix??``,blockPII:e.blockPII??!1,allowAudioInput:e.allowAudioInput??!1,supportedLanguages:e.supportedLanguages??Object.keys(n),fullTheme:t,translations:n,buttonHref:e.buttonHref,addQueryToUrlParams:e.addQueryToUrlParams??!0,addRetrievalQuestionToUrlParams:e.addRetrievalQuestionToUrlParams??!1,renderKatex:e.renderKatex??!1,sendReferrer:e.sendReferrer??`all`,selectorsConfig:e.selectorsConfig??[],questionLengthLimit:e.questionLengthLimit??600,forceConsent:e.forceConsent??!1,askQuestionAgain:e.askQuestionAgain??!1,enableBackdrop:e.enableBackdrop??!1,parentPageContext:e.parentPageContext??{},messageAdditions:Hy(e.messageAdditions??{}),contextVersion:e.contextVersion??0};return e.classification&&(r.classification=e.classification),e.menu&&(r.menu=e.menu),e.answerForm&&(r.answerForm=e.answerForm),r}})),Gy=l({loadChatConfig:()=>Ky});async function Ky({apiUrl:e,lang:t,forceTheme:n}){let r=Uy(await qy(e));return{chatConfig:r,language:qv(t,r.supportedLanguages),colorScheme:_y(Object.keys(r.fullTheme))}}var qy,Jy=s((()=>{vy(),mv(),Wy(),qy=async e=>{let t=await(await fetch(`${e}/chatconfig`)).json();return pv.parse(t)}}));Yv();var Yy=Xr(`<!> <!> <!>`,1),Xy=Xr(`<div class="search-summary__disclaimer-text"></div>`),Zy=Xr(`<div class="search-summary__opt-in-slot-mount"></div>`),Qy=Xr(`<button type="button"> </button>`),$y=Xr(`<div class="search-summary__opt-in-panel"><div class="search-summary__opt-in-body"><div class="search-summary__disclaimer"><!></div></div> <div class="search-summary__footer"><!></div></div>`),eb=Xr(`<div class="search-summary__loading" aria-live="polite"><span class="search-summary__loading-spinner" aria-hidden="true"></span> <span class="search-summary__loading-text"> </span></div>`),tb=Xr(`<div class="search-summary__error" role="alert"> </div>`),nb=Xr(`<li class="search-summary__reference"><a target="_blank" rel="noopener noreferrer"> </a></li>`),rb=Xr(`<div class="search-summary__references-title"> </div> <ol class="search-summary__references"></ol>`,1),ib=Xr(`<div class="search-summary__follow-up-submit-icon"></div>`),ab=Qr(`<svg class="search-summary__follow-up-submit-icon search-summary__follow-up-submit-icon--fallback" viewBox="0 0 24 24" aria-hidden="true" focusable="false"><g fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="m12 1v22"></path><path d="m4 9 8-8 8 8"></path></g></svg>`),ob=Xr(`<form><label class="search-summary__sr-only" for="search-summary-follow-up-input"> </label> <div class="search-summary__follow-up-field"><input id="search-summary-follow-up-input" class="search-summary__follow-up-input" type="text"/> <button type="submit" class="search-summary__follow-up-submit"><span class="search-summary__sr-only"> </span> <!></button></div></form>`),sb=Xr(`<div class="search-summary__expand-slot-mount"></div>`),cb=Xr(`<button type="button"> </button>`),lb=Xr(`<div class="search-summary__opt-out-slot-mount"></div>`),ub=Xr(`<button type="button"> </button>`),db=Xr(`<div><div class="search-summary__footer-actions"><!></div> <!></div>`),fb=Xr(`<div><div class="search-summary__answer-wrap"><!> <div aria-live="polite"></div></div> <!> <!> <!></div> <!>`,1),pb=Xr(`<!> <!> <div><!></div>`,1);function mb(e,t){et(t,!0);function n(e){let t=e.trim();return!(!t||/^[a-zA-Z][a-zA-Z\d+.-]*:/.test(t)||t.startsWith(`//`))}let r=H(t,`lang`,7,`de`),i=H(t,`apiUrl`,7),a=H(t,`apiKey`,7,``),o=H(t,`question`,7),s=H(t,`height`,7,`280`),c=H(t,`maxHeight`,7),l=H(t,`optIn`,7,!1),u=H(t,`optInLabel`,7),d=H(t,`expandLabel`,7),f=H(t,`collapseLabel`,7),p=H(t,`optOutLabel`,7),m=H(t,`useChatConfig`,7,!1),h=H(t,`forceTheme`,7),g=H(t,`disclaimerHtml`,7,``),_=H(t,`labelledBy`,7),v=H(t,`chatUrl`,7),y=H(t,`mode`,7,`search`),b=H(t,`source`,7,`search-summary`),x=H(t,`cache`,7,!1),S=H(t,`activateAiButtonSlot`,7,null),C=H(t,`expandAnswerButtonSlot`,7,null),ee=H(t,`deactivateAiButtonSlot`,7,null),te=I(null),ne=I(null),w=I(!1),re=[`de`,`en`,`fr`,`it`],ie=F(()=>B(ne)?.language??qv(r(),re)),T=F(()=>({...Xv[B(ie)],...B(te)})),ae=I(`loading`),oe=I(null),se=I(null),ce=I(null),le=I(null),ue=I(!1),E=I(!1),de=I(!1),fe=I(un(fy)),pe=F(()=>ly(s())),D=F(()=>uy(B(pe))),me=F(()=>B(D)===null),he=F(()=>B(D)??fy),ge=F(()=>c()===void 0?``:ly(c()));function _e(){if(!B(ge))return null;let e=uy(B(ge));return e===null?B(oe)?dy(B(oe),B(ge)):null:e}let ve=I(!1);Rn(()=>hy(e=>L(ve,e,!0)));function ye(e){return B(ve)?0:e}let be=new Wa(Pr(()=>B(he)),{duration:400,easing:Va}),xe=I(!1);Rn(()=>{if(!B(xe)){if(B(E)){be.set(B(fe),{duration:ye(400)});return}!B(me)&&B(D)!==null&&be.set(B(D),{duration:ye(400)})}});function Se(){return B(oe)?B(D)===null?dy(B(oe),B(pe)):B(D):B(he)}async function Ce(e){L(xe,!0),await be.set(e,{duration:ye(400)}),L(xe,!1)}function we(){if(!B(oe))return Se();if(B(oe).offsetHeight>0)return B(oe).offsetHeight;let e=B(oe).style.height;if(!e)return Se();let t=uy(e);return t===null?dy(B(oe),e):t}let Te=I(``),Ee=I(un([])),De=I(``),Oe=I(null),ke=I(!1),Ae=I(``),je=F(()=>v()&&n(v())?v():void 0),Me=F(()=>!!B(je)&&!!B(Oe)),Ne=F(()=>B(Me)&&B(ke)),Pe=F(()=>!B(E)&&B(ue)),Fe=F(()=>B(ae)!==`opt-in`&&B(ae)!==`loading`&&B(ae)!==`error`&&(B(ue)||B(E))&&!(B(E)&&B(Me))),Ie=F(()=>l()&&B(ae)!==`opt-in`),Le=F(()=>B(E)?f()||B(T).searchSummaryCollapse:d()||B(T).searchSummaryExpand),Re=F(()=>B(E)?B(T).ariaSearchSummaryCollapse:B(T).ariaSearchSummaryExpand),ze=I(``),Be=I(``),Ve=null,O=F(()=>B(E)?B(Be)||f()||B(T).searchSummaryCollapse:d()||B(ze)||B(T).searchSummaryExpand),He=F(()=>B(E)?B(Be)||f()||B(T).ariaSearchSummaryCollapse:d()||B(ze)||B(T).ariaSearchSummaryExpand),k=F(()=>B(ne)?Tm(B(ne).chatConfig.fullTheme[B(ne).colorScheme].tokens,{root:`.search-summary`}):``),Ue=F(()=>B(ne)?.chatConfig.fullTheme[B(ne).colorScheme]?.customCSS?py(B(ne).chatConfig.fullTheme[B(ne).colorScheme].customCSS):``),We=F(()=>B(ne)?.chatConfig.fullTheme[B(ne).colorScheme]?.fontCSS??``),Ge=F(()=>B(ne)?.chatConfig.fullTheme[B(ne).colorScheme]?.tokens?.svgs?.submit??``),Ke=F(()=>B(ne)!==null),qe=F(()=>B(Ke)?` search-summary__btn`:``),Je=F(()=>B(Ke)?` search-summary__follow-up--themed`:``);function Ye(){if(!B(oe))return B(he);let e=B(oe).style.height;B(oe).style.height=`auto`;let t=B(se)?.style.flex??``;B(se)&&(B(se).style.flex=`none`);let n=B(oe).scrollHeight;return B(se)&&(B(se).style.flex=t),B(oe).style.height=e,n}function Xe(){L(ue,(B(se)?.scrollHeight??0)>(B(se)?.offsetHeight??0)+1)}function Ze(){let e=Ye(),t=_e();L(fe,t===null?e:Math.min(e,t),!0),L(de,t!==null&&e>t,!0)}async function Qe(){if(B(oe))if(!B(E))Ze(),be.set(we(),{duration:0}),L(E,!0),L(ae,`expanded`),await jr(),Xe(),Ze(),await Ce(B(fe));else{be.set(we(),{duration:0});let e=Se();L(E,!1),L(ae,B(Te)?`done`:`loading`,!0),await jr(),Xe(),await Ce(e)}}let j=I(!1);Bn(()=>{B(j)||i()&&(L(ae,l()&&!ry(i())?`opt-in`:`loading`,!0),L(j,!0))}),Rn(()=>{if(!i()||!m()){L(ne,null),L(te,null),L(w,!0);return}let e=!1;return L(w,!1),Promise.resolve().then(()=>(Jy(),Gy)).then(({loadChatConfig:e})=>e({apiUrl:i(),lang:r(),forceTheme:h()})).then(t=>{e||(L(ne,t,!0),L(te,t.chatConfig.translations[t.language]??null,!0))}).catch(()=>{e||(L(ne,null),L(te,null))}).finally(()=>{e||L(w,!0)}),()=>{e=!0}});let $e=F(()=>B(j)&&B(w)),nt=I(!1);Rn(()=>{if(!B($e)||B(nt))return;let e=requestAnimationFrame(()=>L(nt,!0));return()=>cancelAnimationFrame(e)}),Rn(()=>{if(!B(oe))return;B(Te),B(Ee).length,B(pe),Ze(),Xe();let e=new ResizeObserver(()=>{Ze(),Xe()});return e.observe(B(oe)),B(se)&&e.observe(B(se)),()=>e.disconnect()});function rt(e){return e.classList.add(`search-summary__btn--leaving`),{duration:ye(200)}}function it(e,t){if(B(ve)){t();return}let n=e.currentTarget;n.classList.add(`search-summary__btn--leaving`),n.addEventListener(`animationend`,t,{once:!0})}function at(e=null){if(B(ve)){lt();return}e?.classList.add(`search-summary__btn--leaving`),B(se)?.classList.add(`search-summary__content--leaving`),B(ce)?.classList.add(`search-summary__footer--leaving`),B(ce)?.querySelector(`.search-summary__expand, .search-summary__expand-slot-mount`)?.classList.add(`search-summary__btn--leaving`);let t=B(se)??e;t?t.addEventListener(`animationend`,lt,{once:!0}):lt()}function ot(e){at(e.currentTarget)}function st(){iy(i()),L(ae,`loading`)}function ct(){dt?.(),ft&&ft.abort().catch(()=>{}),dt=void 0,ft=void 0,L(Oe,null),L(ke,!1),L(Ae,``),M=!1,L(Te,``),L(Ee,[],!0),L(De,``),L(E,!1),L(ue,!1)}function lt(){ay(i()),ct(),L(ae,`opt-in`)}let M=!1,ut,dt,ft;function pt(){if(M)return;M=!0,ut=o();let e=new Gv({apiUrl:i(),apiKey:a()});try{let t=e.createConversation();L(Oe,t.id,!0),ft=t.chat(o(),{lang:B(ie),mode:y()||void 0,source:b()||void 0,cache:x()||void 0})}catch(e){L(De,e instanceof Error&&e.message?e.message:B(T).searchSummaryError,!0),L(ae,`error`);return}dt=ft.subscribe(e=>{if(e.errors.length>0){L(De,e.errors.join(`, `)||B(T).searchSummaryError,!0),L(ae,`error`);return}if(e.state===`loading`){L(ae,`loading`);return}L(Te,e.message.html,!0),L(Ee,e.references.used.slice().sort((e,t)=>(e.referenceIndex.used??0)-(t.referenceIndex.used??0)),!0),e.state===`streaming`?B(E)||L(ae,`answering`):e.state===`done`&&(L(ke,!0),B(E)||L(ae,`done`),queueMicrotask(Xe))})}Rn(()=>{!o()||!i()||B(ae)!==`loading`||pt()});function mt(){if(ct(),l()&&!ry(i())){L(ae,`opt-in`);return}L(ae,`loading`),pt()}Rn(()=>{let e=o();!e||!M||e===ut||Pr(()=>mt())}),xi(()=>{dt?.(),ft&&ft.abort().catch(()=>{})}),Rn(()=>{B(le)&&(B(le).innerHTML=B(Te),B(le).querySelectorAll(`liipgpt-reference-number`).forEach(e=>e.remove()),queueMicrotask(Xe))});function ht(e){e.preventDefault();let t=B(Ae).trim();if(!t||!B(je)||!B(Oe))return;let n=new URL(B(je),window.location.href);if(n.pathname===window.location.pathname){let e=new URLSearchParams(window.location.search);for(let[t,r]of n.searchParams)e.set(t,r);n.search=e.toString()}n.searchParams.set(`follow-up-q`,t),n.hash=`cID=${B(Oe)}`,window.location.assign(n.toString())}let gt=I(null),_t=I(null),vt=I(null);Rn(()=>{let e=B(gt),t=S();if(!(!e||!t))return sy(e,t,st)?.({label:u()||void 0}),()=>cy(e,t)}),Rn(()=>{let e=B(_t),t=C();if(!(!e||!t||!B(Fe)))return Ve!==t&&(Ve=t,L(ze,t.textContent?.trim()??``,!0),L(Be,t.dataset.collapseLabel?.trim()??``,!0)),sy(e,t,Qe)?.({label:B(O),ariaLabel:B(He),ariaExpanded:B(E)}),()=>cy(e,t)}),Rn(()=>{!C()||!B(Fe)||(C().textContent=B(O),C().setAttribute(`aria-label`,B(He)),C().setAttribute(`aria-expanded`,String(B(E))))}),Rn(()=>{let e=B(vt),t=ee();if(!(!e||!t||!B(Ie)))return sy(e,t,()=>at(e))?.({label:p()||void 0,ariaLabel:B(T).ariaSearchSummaryOptOut}),()=>cy(e,t)});var N={reload:mt,get lang(){return r()},set lang(e=`de`){r(e),P()},get apiUrl(){return i()},set apiUrl(e){i(e),P()},get apiKey(){return a()},set apiKey(e=``){a(e),P()},get question(){return o()},set question(e){o(e),P()},get height(){return s()},set height(e=`280`){s(e),P()},get maxHeight(){return c()},set maxHeight(e){c(e),P()},get optIn(){return l()},set optIn(e=!1){l(e),P()},get optInLabel(){return u()},set optInLabel(e){u(e),P()},get expandLabel(){return d()},set expandLabel(e){d(e),P()},get collapseLabel(){return f()},set collapseLabel(e){f(e),P()},get optOutLabel(){return p()},set optOutLabel(e){p(e),P()},get useChatConfig(){return m()},set useChatConfig(e=!1){m(e),P()},get forceTheme(){return h()},set forceTheme(e){h(e),P()},get disclaimerHtml(){return g()},set disclaimerHtml(e=``){g(e),P()},get labelledBy(){return _()},set labelledBy(e){_(e),P()},get chatUrl(){return v()},set chatUrl(e){v(e),P()},get mode(){return y()},set mode(e=`search`){y(e),P()},get source(){return b()},set source(e=`search-summary`){b(e),P()},get cache(){return x()},set cache(e=!1){x(e),P()},get activateAiButtonSlot(){return S()},set activateAiButtonSlot(e=null){S(e),P()},get expandAnswerButtonSlot(){return C()},set expandAnswerButtonSlot(e=null){C(e),P()},get deactivateAiButtonSlot(){return ee()},set deactivateAiButtonSlot(e=null){ee(e),P()}},yt=pb(),bt=Sn(yt);Qv(bt,{id:`search-summary-css`,get css(){return Zv}});var xt=Cn(bt,2),St=e=>{var t=Yy(),n=Sn(t);Qv(n,{id:`search-summary-font-css`,get css(){return B(We)}});var r=Cn(n,2);Qv(r,{id:`search-summary-theme-css`,get css(){return B(k)}});var i=Cn(r,2),a=e=>{Qv(e,{id:`search-summary-custom-css`,get css(){return B(Ue)}})};Ci(i,e=>{B(Ue)&&e(a)}),V(e,t)};Ci(xt,e=>{B(Ke)&&B(k)&&e(St)});var Ct=Cn(xt,2);let wt,Tt;var Et=xn(Ct),Dt=e=>{var t=$y(),n=xn(t),r=xn(n),i=xn(r),a=e=>{var t=$r(),n=Sn(t),r=e=>{var t=Xy();Ni(t,()=>B(T).searchSummaryDisclaimer,!0),A(t),V(e,t)};Ci(n,e=>{B(T).searchSummaryDisclaimer&&e(r)}),V(e,t)},o=e=>{var t=$r();Ni(Sn(t),g),V(e,t)};Ci(i,e=>{m()?e(a):e(o,-1)}),A(r),A(n);var s=Cn(n,2),c=xn(s),l=e=>{var t=Zy();ka(t,e=>L(gt,e),()=>B(gt)),V(e,t)},d=e=>{var t=Qy(),n=xn(t,!0);A(t),Kn(()=>{ta(t,1,`search-summary__opt-in${B(qe)??``}${B(Ke)?` search-summary__btn--secondary`:``}`),fi(n,u()||B(T).searchSummaryOptInDefault)}),Hr(`click`,t,e=>it(e,st)),V(e,t)};Ci(c,e=>{S()?e(l):e(d,-1)}),A(s),A(t),V(e,t)},Ot=e=>{var t=fb(),n=Sn(t);let r;var i=xn(n),a=xn(i),o=e=>{var t=eb(),n=Cn(xn(t),2),r=xn(n,!0);A(n),A(t),Kn(()=>fi(r,B(T).searchSummaryLoading)),V(e,t)};Ci(a,e=>{B(ae)===`loading`&&e(o)});var s=Cn(a,2);let c;ka(s,e=>L(le,e),()=>B(le)),A(i);var l=Cn(i,2),u=e=>{var t=tb(),n=xn(t,!0);A(t),Kn(()=>fi(n,B(De)||B(T).searchSummaryError)),V(e,t)};Ci(l,e=>{B(ae)===`error`&&e(u)});var d=Cn(l,2),f=e=>{var t=rb(),n=Sn(t),r=xn(n,!0);A(n);var i=Cn(n,2);Di(i,21,()=>B(Ee),e=>e.referenceIndex.used??e.url,(e,t)=>{var n=nb(),r=xn(n),i=xn(r,!0);A(r),A(n),Kn(()=>{_a(n,B(t).referenceIndex.used??void 0),ya(r,`href`,B(t).url),ya(r,`tabindex`,B(Pe)?-1:void 0),fi(i,B(t).display.listItem.title||B(t).display.card.title||B(t).url)}),V(e,n)}),A(i),Kn(()=>fi(r,B(T).referencesTitle)),V(e,t)};Ci(d,e=>{B(Ee).length>0&&e(f)});var m=Cn(d,2),h=e=>{var t=ob(),n=xn(t),r=xn(n,!0);A(n);var i=Cn(n,2),a=xn(i);ga(a);var o=Cn(a,2),s=xn(o),c=xn(s,!0);A(s);var l=Cn(s,2),u=e=>{var t=ib();Ni(t,()=>B(Ge),!0),A(t),V(e,t)},d=e=>{V(e,ab())};Ci(l,e=>{B(Ge)?e(u):e(d,-1)}),A(o),A(i),A(t),Kn(()=>{ta(t,1,`search-summary__follow-up${B(Je)??``}`),t.inert=B(Pe),fi(r,B(T).ariaSearchSummaryFollowUpInput),ya(a,`placeholder`,B(T).searchSummaryFollowUpPlaceholder),ya(a,`aria-label`,B(T).ariaSearchSummaryFollowUpInput),ya(o,`aria-label`,B(T).searchSummaryFollowUpSubmit),fi(c,B(T).searchSummaryFollowUpSubmit)}),Vr(`submit`,t,ht),Ta(a,()=>B(Ae),e=>L(Ae,e)),V(e,t)};Ci(m,e=>{B(Ne)&&e(h)}),A(n),ka(n,e=>L(se,e),()=>B(se));var g=Cn(n,2),_=e=>{var t=db();let n;var r=xn(t),i=xn(r),a=e=>{var t=$r(),n=Sn(t),r=e=>{var t=sb();ka(t,e=>L(_t,e),()=>B(_t)),Hi(2,t,()=>rt),V(e,t)},i=e=>{var t=cb(),n=xn(t,!0);A(t),Kn(()=>{ta(t,1,`search-summary__expand${B(qe)??``}${B(Ke)?` search-summary__btn--primary`:``}`),ya(t,`aria-expanded`,B(E)),ya(t,`aria-label`,B(Re)),fi(n,B(Le))}),Hr(`click`,t,Qe),Hi(2,t,()=>rt),V(e,t)};Ci(n,e=>{C()?e(r):e(i,-1)}),V(e,t)};Ci(i,e=>{B(Fe)&&e(a)}),A(r);var o=Cn(r,2),s=e=>{var t=$r(),n=Sn(t),r=e=>{var t=lb();ka(t,e=>L(vt,e),()=>B(vt)),V(e,t)},i=e=>{var t=ub(),n=xn(t,!0);A(t),Kn(()=>{ta(t,1,`search-summary__opt-out${B(qe)??``}${B(Ke)?` search-summary__btn--secondary`:``}`),ya(t,`aria-label`,B(T).ariaSearchSummaryOptOut),fi(n,p()||B(T).searchSummaryOptOut)}),Hr(`click`,t,ot),V(e,t)};Ci(n,e=>{ee()?e(r):e(i,-1)}),V(e,t)};Ci(o,e=>{B(Ie)&&e(s)}),A(t),ka(t,e=>L(ce,e),()=>B(ce)),Kn(()=>n=ta(t,1,`search-summary__footer`,null,n,{"search-summary__footer--overlay":B(Ne)})),V(e,t)};Ci(g,e=>{(!B(Ne)||B(Fe)||B(Ie))&&e(_)}),Kn(()=>{r=ta(n,1,`search-summary__content`,null,r,{"search-summary__content--with-follow-up":B(Ne)}),c=ta(s,1,`search-summary__answer`,null,c,{"search-summary__answer--themed":B(Ke)})}),V(e,t)};return Ci(Et,e=>{B(ae)===`opt-in`?e(Dt):e(Ot,-1)}),A(Ct),ka(Ct,e=>L(oe,e),()=>B(oe)),Kn(()=>{wt=ta(Ct,1,`search-summary`,null,wt,{"search-summary--ready":B(nt)}),ya(Ct,`data-state`,B(ae)),ya(Ct,`data-expanded`,B(E)?`true`:`false`),ya(Ct,`data-capped`,B(E)&&B(de)?`true`:void 0),ya(Ct,`role`,_()?`region`:void 0),ya(Ct,`aria-labelledby`,_()),Tt=ra(Ct,``,Tt,{height:B(E)||B(xe)||!B(me)?`${be.current}px`:B(pe),"max-height":B(ge)||null})}),V(e,yt),tt(N)}Ur([`click`]),za(mb,{lang:{},apiUrl:{},apiKey:{},question:{},height:{},maxHeight:{},optIn:{},optInLabel:{},expandLabel:{},collapseLabel:{},optOutLabel:{},useChatConfig:{},forceTheme:{},disclaimerHtml:{},labelledBy:{},chatUrl:{},mode:{},source:{},cache:{},activateAiButtonSlot:{},expandAnswerButtonSlot:{},deactivateAiButtonSlot:{}},[],[`reload`],{mode:`open`});function hb(e,t){et(t,!0);let n=H(t,`lang`,7),r=H(t,`apiUrl`,7),i=H(t,`apiKey`,7),a=H(t,`question`,7),o=H(t,`height`,7),s=H(t,`maxHeight`,7),c=H(t,`optIn`,7),l=H(t,`optInLabel`,7),u=H(t,`expandLabel`,7),d=H(t,`collapseLabel`,7),f=H(t,`optOutLabel`,7),p=H(t,`useChatConfig`,7),m=H(t,`forceTheme`,7),h=H(t,`wrapperClass`,7),g=H(t,`labelledBy`,7),_=H(t,`chatUrl`,7),v=H(t,`mode`,7),y=H(t,`source`,7),b=H(t,`cache`,7),x=F(()=>({lang:n(),apiUrl:r(),apiKey:i(),question:a(),height:o(),maxHeight:s(),optIn:c(),optInLabel:l(),expandLabel:u(),collapseLabel:d(),optOutLabel:f(),useChatConfig:p(),forceTheme:m(),labelledBy:g(),chatUrl:_(),mode:v(),source:y(),cache:b()})),S=I(void 0),C=t.$$host;Rn(()=>{C&&h()&&(C.className=h())}),Rn(()=>{if(!C||!B(S))return;let e=C;return e.reload=()=>B(S)?.reload(),()=>{delete e.reload}});let ee=F(()=>C?.querySelector(`[slot="disclaimer"]`)?.innerHTML??``),te=I(null),ne=I(null),w=I(null);return Bn(()=>{if(p()){L(te,null),L(ne,null),L(w,null);return}L(te,C?.querySelector(`[slot="activate-ai-button"]`)??null,!0),L(ne,C?.querySelector(`[slot="expand-answer-button"]`)??null,!0),L(w,C?.querySelector(`[slot="deactivate-ai-button"]`)??null,!0)}),ka(mb(e,Na(()=>B(x),{get disclaimerHtml(){return B(ee)},get activateAiButtonSlot(){return B(te)},get expandAnswerButtonSlot(){return B(ne)},get deactivateAiButtonSlot(){return B(w)}})),e=>L(S,e,!0),()=>B(S)),tt({get lang(){return n()},set lang(e){n(e),P()},get apiUrl(){return r()},set apiUrl(e){r(e),P()},get apiKey(){return i()},set apiKey(e){i(e),P()},get question(){return a()},set question(e){a(e),P()},get height(){return o()},set height(e){o(e),P()},get maxHeight(){return s()},set maxHeight(e){s(e),P()},get optIn(){return c()},set optIn(e){c(e),P()},get optInLabel(){return l()},set optInLabel(e){l(e),P()},get expandLabel(){return u()},set expandLabel(e){u(e),P()},get collapseLabel(){return d()},set collapseLabel(e){d(e),P()},get optOutLabel(){return f()},set optOutLabel(e){f(e),P()},get useChatConfig(){return p()},set useChatConfig(e){p(e),P()},get forceTheme(){return m()},set forceTheme(e){m(e),P()},get wrapperClass(){return h()},set wrapperClass(e){h(e),P()},get labelledBy(){return g()},set labelledBy(e){g(e),P()},get chatUrl(){return _()},set chatUrl(e){_(e),P()},get mode(){return v()},set mode(e){v(e),P()},get source(){return y()},set source(e){y(e),P()},get cache(){return b()},set cache(e){b(e),P()}})}return customElements.define(`liipgpt-search-summary`,za(hb,{lang:{attribute:`lang`,type:`String`},apiUrl:{attribute:`api-url`,type:`String`},apiKey:{attribute:`api-key`,type:`String`},question:{attribute:`question`,type:`String`},height:{attribute:`height`,type:`String`},maxHeight:{attribute:`max-height`,type:`String`},optIn:{attribute:`opt-in`,type:`Boolean`},optInLabel:{attribute:`opt-in-label`,type:`String`},expandLabel:{attribute:`expand-label`,type:`String`},collapseLabel:{attribute:`collapse-label`,type:`String`},optOutLabel:{attribute:`opt-out-label`,type:`String`},useChatConfig:{attribute:`use-chat-config`,type:`Boolean`},forceTheme:{attribute:`force-theme`,type:`String`},wrapperClass:{attribute:`wrapper-class`,type:`String`},labelledBy:{attribute:`labelled-by`,type:`String`},chatUrl:{attribute:`chat-url`,type:`String`},mode:{attribute:`mode`,type:`String`},source:{attribute:`source`,type:`String`},cache:{attribute:`cache`,type:`Boolean`}},[],[])),e.LiipGPTSearchSummary=hb,e})({});
426
+ `,ariaMainNavigation:`Navigation principale`,ariaMainNavigationInfo:`À propos de ce chat`,ariaMainNavigationLinks:`Liens`,ariaMainNavigationLanguageSwitch:`Changement de langue`,ariaMainNavigationColorMode:`Mode couleur`,ariaGotoMainNavigation:`Aller à la navigation principale`,ariaAskQuestion:`Saisie texte`,ariaAskQuestionRegion:`Poser une question`,ariaNotifications:`Notifications`,ariaPredefinedQuestions:`Questions prédéfinies`,ariaPredefinedQuestionsRegion:`Essayez nos questions d'exemple`,ariaChatHistory:`Historique du chat`,ariaOpenChat:`Ouvrir le chat`,ariaQuestionFromYou:`Votre question:`,ariaAnswerFromBot:`Réponse {n} de l'Assistant:`,ariaLastAnswerNavigation:`Navigation et options pour la dernière réponse`,ariaQuestionSent:`Question envoyée. Génération de la réponse en cours...`,ariaAnswerReady:`Réponse prête.`,ariaAnswerFinished:`Réponse terminée. Posez une autre question ou naviguez en arrière pour consulter l'historique du chat, donner un avis ou voir les références liées à la réponse.`,ariaAnswerFinishedWithSelectedTopic:`Réponse terminée. Posez une autre question ou naviguez en arrière pour changer le sujet sélectionné, consulter l'historique du chat, donner un avis ou voir les références liées à la réponse.`,ariaAskQuestionAgain:`Copier la dernière question dans le champ de saisie pour la reposer`,ariaAnswerGood:`Évaluer cette réponse comme bonne`,ariaAnswerBad:`Évaluer cette réponse comme mauvaise`,ariaReferenceSource:`Source:`,ariaGiveFeedback:`Donner un feedback détaillé sur la réponse`,ariaAnswerForm:`Ouvrir le formulaire pour cette réponse`,ariaLanguageChanged:`Langue française sélectionnée.`,ariaLightSelected:`Mode clair activé.`,ariaDarkSelected:`Mode sombre activé.`,ariaSettings:`Paramètres du chat`,ariaSettingsRegion:`Ajustez vos préférences de chat`,ariaReferencesRegion:`Références pour la question actuelle`,ariaOpensInNewTab:`(ouvre dans un nouvel onglet)`,ariaPageTitle:`Chatbot`,ariaCloseWithEsc:`Fermer ce contenu en appuyant sur la touche Échap`,ariaInfoTitle:`À propos de ce chatbot`,ariaFlyoutRegion:`Chatbot`,ariaSelected:`sélectionné`,ariaUnselected:`non sélectionné`,ariaAllSelected:`Tous les éléments sélectionnés`,ariaAllUnselected:`Tous les éléments non sélectionnés`,ariaAllReseted:`Éléments par défaut sélectionnés`,ariaChangeTopic:`Changer de sujet`,hideSettings:`Masquer les paramètres`,showSettings:`Paramètres`,chooseAtLeastOneOption:`Veuillez choisir au moins une option`,selectAll:`Tout sélectionner`,selectNone:`Tout désélectionner`,resetToDefaults:`Réinitialiser`,messageTooLong:`Votre message doit être plus court que {questionLengthLimit} caractères. Actuellement, il fait {questionLength} caractères`,selectedTopic:`Sujet sélectionné`,changeTopic:`Changer de sujet`,searchSummaryExpand:`Réponse complète`,searchSummaryCollapse:`Afficher moins`,searchSummaryOptInDefault:`Activer la recherche IA`,searchSummaryOptOut:`Désactiver la recherche IA`,searchSummaryError:`Une erreur s'est produite.`,searchSummaryDisclaimer:`<p><strong>Je suis un assistant IA.</strong></p><p>Mes réponses sont générées par l'intelligence artificielle et peuvent ne pas toujours être correctes.</p>`,searchSummaryLoading:`Génération de la réponse…`,searchSummaryFollowUpPlaceholder:`Posez une question de suivi…`,searchSummaryFollowUpSubmit:`Continuer dans le chat`,ariaSearchSummaryExpand:`Afficher la réponse complète`,ariaSearchSummaryCollapse:`Réduire la réponse`,ariaSearchSummaryOptOut:`Désactiver la recherche IA`,ariaSearchSummaryFollowUpInput:`Poser une question de suivi`,jsonLdEventDate:`Date`,jsonLdEventLocation:`Lieu`,jsonLdEventDescription:`Infos`,jsonLdEventCtaLabel:`Voir l'événement`,jsonLdCtaLabel:`En savoir plus`,jsonLdMapOpenMap:`Ouvrir la carte`,ariaJsonLdMapCanvas:`Carte`,ariaJsonLdEventCard:`Événement`,ariaJsonLdMapCard:`Localisation`,ariaJsonLdCtaCard:`Lien`}}})),zy,By,Vy=s((()=>{zy=d(by(),1),Ry(),By=e=>(e??=Ly,{de:(0,zy.default)(Ly.de,e.de??{}),en:(0,zy.default)(Ly.en,e.en??{}),fr:(0,zy.default)(Ly.fr,e.fr??{}),it:(0,zy.default)(Ly.it,e.it??{})})})),Hy,Uy,Wy=s((()=>{yy(),Py(),Iy(),Vy(),Hy=e=>({init:e?.init??[],bot:{before:e?.bot?.before??[],after:e?.bot?.after??[]},user:{before:e?.user?.before??[],after:e?.user?.after??[]}}),Uy=e=>{let t;t=e.theme?.fineGrained?Fy(e.theme?.fineGrained):Ny(e?.theme??{});let n=By(e?.translations),r={...e,forcePredefinedQuestions:e.forcePredefinedQuestions??!1,forceChatPage:e.forceChatPage??!1,showOverallFeedbackButton:e.showOverallFeedbackButton??!1,showOverallFeedbackEmail:e.showOverallFeedbackEmail??!0,showCloseChatButton:e.showCloseChatButton??!1,showContextInfo:e.showContextInfo??!1,showContextMenu:e.showContextMenu??!1,showReferencesByDefault:e.showReferencesByDefault??!1,showTextFeedback:e.showTextFeedback??!0,showExpandedSelectors:e.showExpandedSelectors??!1,inlineLayout:e.inlineLayout??!1,questionPrefix:e.questionPrefix??``,blockPII:e.blockPII??!1,allowAudioInput:e.allowAudioInput??!1,supportedLanguages:e.supportedLanguages??Object.keys(n),fullTheme:t,translations:n,buttonHref:e.buttonHref,addQueryToUrlParams:e.addQueryToUrlParams??!0,addRetrievalQuestionToUrlParams:e.addRetrievalQuestionToUrlParams??!1,renderKatex:e.renderKatex??!1,sendReferrer:e.sendReferrer??`all`,selectorsConfig:e.selectorsConfig??[],questionLengthLimit:e.questionLengthLimit??600,forceConsent:e.forceConsent??!1,askQuestionAgain:e.askQuestionAgain??!1,enableBackdrop:e.enableBackdrop??!1,parentPageContext:e.parentPageContext??{},messageAdditions:Hy(e.messageAdditions??{}),contextVersion:e.contextVersion??0};return e.classification&&(r.classification=e.classification),e.menu&&(r.menu=e.menu),e.answerForm&&(r.answerForm=e.answerForm),r}})),Gy=l({loadChatConfig:()=>Ky});async function Ky({apiUrl:e,lang:t,forceTheme:n}){let r=Uy(await qy(e));return{chatConfig:r,language:qv(t,r.supportedLanguages),colorScheme:_y(Object.keys(r.fullTheme))}}var qy,Jy=s((()=>{vy(),mv(),Wy(),qy=async e=>{let t=await(await fetch(`${e}/chatconfig`)).json();return pv.parse(t)}}));Yv();var Yy=Xr(`<!> <!> <!>`,1),Xy=Xr(`<div class="search-summary__disclaimer-text"></div>`),Zy=Xr(`<div class="search-summary__opt-in-slot-mount"></div>`),Qy=Xr(`<button type="button"> </button>`),$y=Xr(`<div class="search-summary__opt-in-panel"><div class="search-summary__opt-in-body"><div class="search-summary__disclaimer"><!></div></div> <div class="search-summary__footer"><!></div></div>`),eb=Xr(`<div class="search-summary__loading" aria-live="polite"><span class="search-summary__loading-spinner" aria-hidden="true"></span> <span class="search-summary__loading-text"> </span></div>`),tb=Xr(`<div class="search-summary__error" role="alert"> </div>`),nb=Xr(`<li class="search-summary__reference"><a target="_blank" rel="noopener noreferrer"> </a></li>`),rb=Xr(`<div class="search-summary__references-title"> </div> <ol class="search-summary__references"></ol>`,1),ib=Xr(`<div class="search-summary__follow-up-submit-icon"></div>`),ab=Qr(`<svg class="search-summary__follow-up-submit-icon search-summary__follow-up-submit-icon--fallback" viewBox="0 0 24 24" aria-hidden="true" focusable="false"><g fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="m12 1v22"></path><path d="m4 9 8-8 8 8"></path></g></svg>`),ob=Xr(`<form><label class="search-summary__sr-only" for="search-summary-follow-up-input"> </label> <div class="search-summary__follow-up-field"><input id="search-summary-follow-up-input" class="search-summary__follow-up-input" type="text"/> <button type="submit" class="search-summary__follow-up-submit"><span class="search-summary__sr-only"> </span> <!></button></div></form>`),sb=Xr(`<div class="search-summary__expand-slot-mount"></div>`),cb=Xr(`<button type="button"> </button>`),lb=Xr(`<div class="search-summary__opt-out-slot-mount"></div>`),ub=Xr(`<button type="button"> </button>`),db=Xr(`<div><div class="search-summary__footer-actions"><!></div> <!></div>`),fb=Xr(`<div><div class="search-summary__answer-wrap"><!> <div aria-live="polite"></div></div> <!> <!> <!></div> <!>`,1),pb=Xr(`<!> <!> <div><!></div>`,1);function mb(e,t){et(t,!0);function n(e){let t=e.trim();return!(!t||/^[a-zA-Z][a-zA-Z\d+.-]*:/.test(t)||t.startsWith(`//`))}let r=H(t,`lang`,7,`de`),i=H(t,`apiUrl`,7),a=H(t,`apiKey`,7,``),o=H(t,`question`,7),s=H(t,`height`,7,`280`),c=H(t,`maxHeight`,7),l=H(t,`optIn`,7,!1),u=H(t,`optInLabel`,7),d=H(t,`expandLabel`,7),f=H(t,`collapseLabel`,7),p=H(t,`optOutLabel`,7),m=H(t,`useChatConfig`,7,!1),h=H(t,`forceTheme`,7),g=H(t,`disclaimerHtml`,7,``),_=H(t,`labelledBy`,7),v=H(t,`chatUrl`,7),y=H(t,`mode`,7,`search`),b=H(t,`source`,7,`search-summary`),x=H(t,`cache`,7,!1),S=H(t,`activateAiButtonSlot`,7,null),C=H(t,`expandAnswerButtonSlot`,7,null),ee=H(t,`deactivateAiButtonSlot`,7,null),te=I(null),ne=I(null),w=I(!1),re=[`de`,`en`,`fr`,`it`],ie=F(()=>B(ne)?.language??qv(r(),re)),T=F(()=>({...Xv[B(ie)],...B(te)})),ae=I(`loading`),oe=I(null),se=I(null),ce=I(null),le=I(null),ue=I(!1),E=I(!1),de=I(!1),fe=I(un(fy)),pe=F(()=>ly(s())),D=F(()=>uy(B(pe))),me=F(()=>B(D)===null),he=F(()=>B(D)??fy),ge=F(()=>c()===void 0?``:ly(c()));function _e(){if(!B(ge))return null;let e=uy(B(ge));return e===null?B(oe)?dy(B(oe),B(ge)):null:e}let ve=I(!1);Rn(()=>hy(e=>L(ve,e,!0)));function ye(e){return B(ve)?0:e}let be=new Wa(Pr(()=>B(he)),{duration:400,easing:Va}),xe=I(!1);Rn(()=>{if(!B(xe)){if(B(E)){be.set(B(fe),{duration:ye(400)});return}!B(me)&&B(D)!==null&&be.set(B(D),{duration:ye(400)})}});function Se(){return B(oe)?B(D)===null?dy(B(oe),B(pe)):B(D):B(he)}async function Ce(e){L(xe,!0),await be.set(e,{duration:ye(400)}),L(xe,!1)}function we(){if(!B(oe))return Se();if(B(oe).offsetHeight>0)return B(oe).offsetHeight;let e=B(oe).style.height;if(!e)return Se();let t=uy(e);return t===null?dy(B(oe),e):t}let Te=I(``),Ee=I(un([])),De=I(``),Oe=I(null),ke=I(!1),Ae=I(``),je=F(()=>v()&&n(v())?v():void 0),Me=F(()=>!!B(je)&&!!B(Oe)),Ne=F(()=>B(Me)&&B(ke)),Pe=F(()=>!B(E)&&B(ue)),Fe=F(()=>B(ae)!==`opt-in`&&B(ae)!==`loading`&&B(ae)!==`error`&&(B(ue)||B(E))&&!(B(E)&&B(Me))),Ie=F(()=>l()&&B(ae)!==`opt-in`),Le=F(()=>B(E)?f()||B(T).searchSummaryCollapse:d()||B(T).searchSummaryExpand),Re=F(()=>B(E)?B(T).ariaSearchSummaryCollapse:B(T).ariaSearchSummaryExpand),ze=I(``),Be=I(``),Ve=null,O=F(()=>B(E)?B(Be)||f()||B(T).searchSummaryCollapse:d()||B(ze)||B(T).searchSummaryExpand),He=F(()=>B(E)?B(Be)||f()||B(T).ariaSearchSummaryCollapse:d()||B(ze)||B(T).ariaSearchSummaryExpand),k=F(()=>B(ne)?Tm(B(ne).chatConfig.fullTheme[B(ne).colorScheme].tokens,{root:`.search-summary`}):``),Ue=F(()=>B(ne)?.chatConfig.fullTheme[B(ne).colorScheme]?.customCSS?py(B(ne).chatConfig.fullTheme[B(ne).colorScheme].customCSS):``),We=F(()=>B(ne)?.chatConfig.fullTheme[B(ne).colorScheme]?.fontCSS??``),Ge=F(()=>B(ne)?.chatConfig.fullTheme[B(ne).colorScheme]?.tokens?.svgs?.submit??``),Ke=F(()=>B(ne)!==null),qe=F(()=>B(Ke)?` search-summary__btn`:``),Je=F(()=>B(Ke)?` search-summary__follow-up--themed`:``);function Ye(){if(!B(oe))return B(he);let e=B(oe).style.height;B(oe).style.height=`auto`;let t=B(se)?.style.flex??``;B(se)&&(B(se).style.flex=`none`);let n=B(oe).scrollHeight;return B(se)&&(B(se).style.flex=t),B(oe).style.height=e,n}function Xe(){L(ue,(B(se)?.scrollHeight??0)>(B(se)?.offsetHeight??0)+1)}function Ze(){let e=Ye(),t=_e();L(fe,t===null?e:Math.min(e,t),!0),L(de,t!==null&&e>t,!0)}async function Qe(){if(B(oe))if(!B(E))Ze(),be.set(we(),{duration:0}),L(E,!0),L(ae,`expanded`),await jr(),Xe(),Ze(),await Ce(B(fe));else{be.set(we(),{duration:0});let e=Se();L(E,!1),L(ae,B(Te)?`done`:`loading`,!0),await jr(),Xe(),await Ce(e)}}let j=I(!1);Bn(()=>{B(j)||i()&&(L(ae,l()&&!ry(i())?`opt-in`:`loading`,!0),L(j,!0))}),Rn(()=>{if(!i()||!m()){L(ne,null),L(te,null),L(w,!0);return}let e=!1;return L(w,!1),Promise.resolve().then(()=>(Jy(),Gy)).then(({loadChatConfig:e})=>e({apiUrl:i(),lang:r(),forceTheme:h()})).then(t=>{e||(L(ne,t,!0),L(te,t.chatConfig.translations[t.language]??null,!0))}).catch(()=>{e||(L(ne,null),L(te,null))}).finally(()=>{e||L(w,!0)}),()=>{e=!0}});let $e=F(()=>B(j)&&B(w)),nt=I(!1);Rn(()=>{if(!B($e)||B(nt))return;let e=requestAnimationFrame(()=>L(nt,!0));return()=>cancelAnimationFrame(e)}),Rn(()=>{if(!B(oe))return;B(Te),B(Ee).length,B(pe),Ze(),Xe();let e=new ResizeObserver(()=>{Ze(),Xe()});return e.observe(B(oe)),B(se)&&e.observe(B(se)),()=>e.disconnect()});function rt(e){return e.classList.add(`search-summary__btn--leaving`),{duration:ye(200)}}function it(e,t){if(B(ve)){t();return}let n=e.currentTarget;n.classList.add(`search-summary__btn--leaving`),n.addEventListener(`animationend`,t,{once:!0})}function at(e=null){if(B(ve)){lt();return}e?.classList.add(`search-summary__btn--leaving`),B(se)?.classList.add(`search-summary__content--leaving`),B(ce)?.classList.add(`search-summary__footer--leaving`),B(ce)?.querySelector(`.search-summary__expand, .search-summary__expand-slot-mount`)?.classList.add(`search-summary__btn--leaving`);let t=B(se)??e;t?t.addEventListener(`animationend`,lt,{once:!0}):lt()}function ot(e){at(e.currentTarget)}function st(){iy(i()),L(ae,`loading`)}function ct(){dt?.(),ft&&ft.abort().catch(()=>{}),dt=void 0,ft=void 0,L(Oe,null),L(ke,!1),L(Ae,``),M=!1,L(Te,``),L(Ee,[],!0),L(De,``),L(E,!1),L(ue,!1)}function lt(){ay(i()),ct(),L(ae,`opt-in`)}let M=!1,ut,dt,ft;function pt(){if(M)return;M=!0,ut=o();let e=new Gv({apiUrl:i(),apiKey:a()});try{let t=e.createConversation();L(Oe,t.id,!0),ft=t.chat(o(),{lang:B(ie),mode:y()||void 0,source:b()||void 0,cache:x()||void 0})}catch(e){L(De,e instanceof Error&&e.message?e.message:B(T).searchSummaryError,!0),L(ae,`error`);return}dt=ft.subscribe(e=>{if(e.errors.length>0){L(De,e.errors.join(`, `)||B(T).searchSummaryError,!0),L(ae,`error`);return}if(e.state===`loading`){L(ae,`loading`);return}L(Te,e.message.html,!0),L(Ee,e.references.used.slice().sort((e,t)=>(e.referenceIndex.used??0)-(t.referenceIndex.used??0)),!0),e.state===`streaming`?B(E)||L(ae,`answering`):e.state===`done`&&(L(ke,!0),B(E)||L(ae,`done`),queueMicrotask(Xe))})}Rn(()=>{!o()||!i()||B(ae)!==`loading`||pt()});function mt(){if(ct(),l()&&!ry(i())){L(ae,`opt-in`);return}L(ae,`loading`),pt()}Rn(()=>{let e=o();!e||!M||e===ut||Pr(()=>mt())}),xi(()=>{dt?.(),ft&&ft.abort().catch(()=>{})}),Rn(()=>{B(le)&&(B(le).innerHTML=B(Te),B(le).querySelectorAll(`liipgpt-reference-number`).forEach(e=>e.remove()),queueMicrotask(Xe))});function ht(e){e.preventDefault();let t=B(Ae).trim();if(!t||!B(je)||!B(Oe))return;let n=new URL(B(je),window.location.href);if(n.pathname===window.location.pathname){let e=new URLSearchParams(window.location.search);for(let[t,r]of n.searchParams)e.set(t,r);n.search=e.toString()}n.searchParams.set(`follow-up-q`,t),n.hash=`cID=${B(Oe)}`,window.location.assign(n.toString())}let gt=I(null),_t=I(null),vt=I(null);Rn(()=>{let e=B(gt),t=S();if(!(!e||!t))return sy(e,t,st)?.({label:u()||void 0}),()=>cy(e,t)}),Rn(()=>{let e=B(_t),t=C();if(!(!e||!t||!B(Fe)))return Ve!==t&&(Ve=t,L(ze,t.textContent?.trim()??``,!0),L(Be,t.dataset.collapseLabel?.trim()??``,!0)),sy(e,t,Qe)?.({label:B(O),ariaLabel:B(He),ariaExpanded:B(E)}),()=>cy(e,t)}),Rn(()=>{!C()||!B(Fe)||(C().textContent=B(O),C().setAttribute(`aria-label`,B(He)),C().setAttribute(`aria-expanded`,String(B(E))))}),Rn(()=>{let e=B(vt),t=ee();if(!(!e||!t||!B(Ie)))return sy(e,t,()=>at(e))?.({label:p()||void 0,ariaLabel:B(T).ariaSearchSummaryOptOut}),()=>cy(e,t)});var N={reload:mt,get lang(){return r()},set lang(e=`de`){r(e),P()},get apiUrl(){return i()},set apiUrl(e){i(e),P()},get apiKey(){return a()},set apiKey(e=``){a(e),P()},get question(){return o()},set question(e){o(e),P()},get height(){return s()},set height(e=`280`){s(e),P()},get maxHeight(){return c()},set maxHeight(e){c(e),P()},get optIn(){return l()},set optIn(e=!1){l(e),P()},get optInLabel(){return u()},set optInLabel(e){u(e),P()},get expandLabel(){return d()},set expandLabel(e){d(e),P()},get collapseLabel(){return f()},set collapseLabel(e){f(e),P()},get optOutLabel(){return p()},set optOutLabel(e){p(e),P()},get useChatConfig(){return m()},set useChatConfig(e=!1){m(e),P()},get forceTheme(){return h()},set forceTheme(e){h(e),P()},get disclaimerHtml(){return g()},set disclaimerHtml(e=``){g(e),P()},get labelledBy(){return _()},set labelledBy(e){_(e),P()},get chatUrl(){return v()},set chatUrl(e){v(e),P()},get mode(){return y()},set mode(e=`search`){y(e),P()},get source(){return b()},set source(e=`search-summary`){b(e),P()},get cache(){return x()},set cache(e=!1){x(e),P()},get activateAiButtonSlot(){return S()},set activateAiButtonSlot(e=null){S(e),P()},get expandAnswerButtonSlot(){return C()},set expandAnswerButtonSlot(e=null){C(e),P()},get deactivateAiButtonSlot(){return ee()},set deactivateAiButtonSlot(e=null){ee(e),P()}},yt=pb(),bt=Sn(yt);Qv(bt,{id:`search-summary-css`,get css(){return Zv}});var xt=Cn(bt,2),St=e=>{var t=Yy(),n=Sn(t);Qv(n,{id:`search-summary-font-css`,get css(){return B(We)}});var r=Cn(n,2);Qv(r,{id:`search-summary-theme-css`,get css(){return B(k)}});var i=Cn(r,2),a=e=>{Qv(e,{id:`search-summary-custom-css`,get css(){return B(Ue)}})};Ci(i,e=>{B(Ue)&&e(a)}),V(e,t)};Ci(xt,e=>{B(Ke)&&B(k)&&e(St)});var Ct=Cn(xt,2);let wt,Tt;var Et=xn(Ct),Dt=e=>{var t=$y(),n=xn(t),r=xn(n),i=xn(r),a=e=>{var t=$r(),n=Sn(t),r=e=>{var t=Xy();Ni(t,()=>B(T).searchSummaryDisclaimer,!0),A(t),V(e,t)};Ci(n,e=>{B(T).searchSummaryDisclaimer&&e(r)}),V(e,t)},o=e=>{var t=$r();Ni(Sn(t),g),V(e,t)};Ci(i,e=>{m()?e(a):e(o,-1)}),A(r),A(n);var s=Cn(n,2),c=xn(s),l=e=>{var t=Zy();ka(t,e=>L(gt,e),()=>B(gt)),V(e,t)},d=e=>{var t=Qy(),n=xn(t,!0);A(t),Kn(()=>{ta(t,1,`search-summary__opt-in${B(qe)??``}${B(Ke)?` search-summary__btn--secondary`:``}`),fi(n,u()||B(T).searchSummaryOptInDefault)}),Hr(`click`,t,e=>it(e,st)),V(e,t)};Ci(c,e=>{S()?e(l):e(d,-1)}),A(s),A(t),V(e,t)},Ot=e=>{var t=fb(),n=Sn(t);let r;var i=xn(n),a=xn(i),o=e=>{var t=eb(),n=Cn(xn(t),2),r=xn(n,!0);A(n),A(t),Kn(()=>fi(r,B(T).searchSummaryLoading)),V(e,t)};Ci(a,e=>{B(ae)===`loading`&&e(o)});var s=Cn(a,2);let c;ka(s,e=>L(le,e),()=>B(le)),A(i);var l=Cn(i,2),u=e=>{var t=tb(),n=xn(t,!0);A(t),Kn(()=>fi(n,B(De)||B(T).searchSummaryError)),V(e,t)};Ci(l,e=>{B(ae)===`error`&&e(u)});var d=Cn(l,2),f=e=>{var t=rb(),n=Sn(t),r=xn(n,!0);A(n);var i=Cn(n,2);Di(i,21,()=>B(Ee),e=>e.referenceIndex.used??e.url,(e,t)=>{var n=nb(),r=xn(n),i=xn(r,!0);A(r),A(n),Kn(()=>{_a(n,B(t).referenceIndex.used??void 0),ya(r,`href`,B(t).url),ya(r,`tabindex`,B(Pe)?-1:void 0),fi(i,B(t).display.listItem.title||B(t).display.card.title||B(t).url)}),V(e,n)}),A(i),Kn(()=>fi(r,B(T).referencesTitle)),V(e,t)};Ci(d,e=>{B(Ee).length>0&&e(f)});var m=Cn(d,2),h=e=>{var t=ob(),n=xn(t),r=xn(n,!0);A(n);var i=Cn(n,2),a=xn(i);ga(a);var o=Cn(a,2),s=xn(o),c=xn(s,!0);A(s);var l=Cn(s,2),u=e=>{var t=ib();Ni(t,()=>B(Ge),!0),A(t),V(e,t)},d=e=>{V(e,ab())};Ci(l,e=>{B(Ge)?e(u):e(d,-1)}),A(o),A(i),A(t),Kn(()=>{ta(t,1,`search-summary__follow-up${B(Je)??``}`),t.inert=B(Pe),fi(r,B(T).ariaSearchSummaryFollowUpInput),ya(a,`placeholder`,B(T).searchSummaryFollowUpPlaceholder),ya(a,`aria-label`,B(T).ariaSearchSummaryFollowUpInput),ya(o,`aria-label`,B(T).searchSummaryFollowUpSubmit),fi(c,B(T).searchSummaryFollowUpSubmit)}),Vr(`submit`,t,ht),Ta(a,()=>B(Ae),e=>L(Ae,e)),V(e,t)};Ci(m,e=>{B(Ne)&&e(h)}),A(n),ka(n,e=>L(se,e),()=>B(se));var g=Cn(n,2),_=e=>{var t=db();let n;var r=xn(t),i=xn(r),a=e=>{var t=$r(),n=Sn(t),r=e=>{var t=sb();ka(t,e=>L(_t,e),()=>B(_t)),Hi(2,t,()=>rt),V(e,t)},i=e=>{var t=cb(),n=xn(t,!0);A(t),Kn(()=>{ta(t,1,`search-summary__expand${B(qe)??``}${B(Ke)?` search-summary__btn--primary`:``}`),ya(t,`aria-expanded`,B(E)),ya(t,`aria-label`,B(Re)),fi(n,B(Le))}),Hr(`click`,t,Qe),Hi(2,t,()=>rt),V(e,t)};Ci(n,e=>{C()?e(r):e(i,-1)}),V(e,t)};Ci(i,e=>{B(Fe)&&e(a)}),A(r);var o=Cn(r,2),s=e=>{var t=$r(),n=Sn(t),r=e=>{var t=lb();ka(t,e=>L(vt,e),()=>B(vt)),V(e,t)},i=e=>{var t=ub(),n=xn(t,!0);A(t),Kn(()=>{ta(t,1,`search-summary__opt-out${B(qe)??``}${B(Ke)?` search-summary__btn--secondary`:``}`),ya(t,`aria-label`,B(T).ariaSearchSummaryOptOut),fi(n,p()||B(T).searchSummaryOptOut)}),Hr(`click`,t,ot),V(e,t)};Ci(n,e=>{ee()?e(r):e(i,-1)}),V(e,t)};Ci(o,e=>{B(Ie)&&e(s)}),A(t),ka(t,e=>L(ce,e),()=>B(ce)),Kn(()=>n=ta(t,1,`search-summary__footer`,null,n,{"search-summary__footer--overlay":B(Ne)})),V(e,t)};Ci(g,e=>{(!B(Ne)||B(Fe)||B(Ie))&&e(_)}),Kn(()=>{r=ta(n,1,`search-summary__content`,null,r,{"search-summary__content--with-follow-up":B(Ne)}),c=ta(s,1,`search-summary__answer`,null,c,{"search-summary__answer--themed":B(Ke)})}),V(e,t)};return Ci(Et,e=>{B(ae)===`opt-in`?e(Dt):e(Ot,-1)}),A(Ct),ka(Ct,e=>L(oe,e),()=>B(oe)),Kn(()=>{wt=ta(Ct,1,`search-summary`,null,wt,{"search-summary--ready":B(nt)}),ya(Ct,`data-state`,B(ae)),ya(Ct,`data-expanded`,B(E)?`true`:`false`),ya(Ct,`data-capped`,B(E)&&B(de)?`true`:void 0),ya(Ct,`role`,_()?`region`:void 0),ya(Ct,`aria-labelledby`,_()),Tt=ra(Ct,``,Tt,{height:B(E)||B(xe)||!B(me)?`${be.current}px`:B(pe),"max-height":B(ge)||null})}),V(e,yt),tt(N)}Ur([`click`]),za(mb,{lang:{},apiUrl:{},apiKey:{},question:{},height:{},maxHeight:{},optIn:{},optInLabel:{},expandLabel:{},collapseLabel:{},optOutLabel:{},useChatConfig:{},forceTheme:{},disclaimerHtml:{},labelledBy:{},chatUrl:{},mode:{},source:{},cache:{},activateAiButtonSlot:{},expandAnswerButtonSlot:{},deactivateAiButtonSlot:{}},[],[`reload`],{mode:`open`});function hb(e,t){et(t,!0);let n=H(t,`lang`,7),r=H(t,`apiUrl`,7),i=H(t,`apiKey`,7),a=H(t,`question`,7),o=H(t,`height`,7),s=H(t,`maxHeight`,7),c=H(t,`optIn`,7),l=H(t,`optInLabel`,7),u=H(t,`expandLabel`,7),d=H(t,`collapseLabel`,7),f=H(t,`optOutLabel`,7),p=H(t,`useChatConfig`,7),m=H(t,`forceTheme`,7),h=H(t,`wrapperClass`,7),g=H(t,`labelledBy`,7),_=H(t,`chatUrl`,7),v=H(t,`mode`,7),y=H(t,`source`,7),b=H(t,`cache`,7),x=F(()=>({lang:n(),apiUrl:r(),apiKey:i(),question:a(),height:o(),maxHeight:s(),optIn:c(),optInLabel:l(),expandLabel:u(),collapseLabel:d(),optOutLabel:f(),useChatConfig:p(),forceTheme:m(),labelledBy:g(),chatUrl:_(),mode:v(),source:y(),cache:b()})),S=I(void 0),C=t.$$host;Rn(()=>{C&&h()&&(C.className=h())}),Rn(()=>{if(!C||!B(S))return;let e=C;return e.reload=()=>B(S)?.reload(),()=>{delete e.reload}});let ee=F(()=>C?.querySelector(`[slot="disclaimer"]`)?.innerHTML??``),te=I(null),ne=I(null),w=I(null);return Bn(()=>{if(p()){L(te,null),L(ne,null),L(w,null);return}L(te,C?.querySelector(`[slot="activate-ai-button"]`)??null,!0),L(ne,C?.querySelector(`[slot="expand-answer-button"]`)??null,!0),L(w,C?.querySelector(`[slot="deactivate-ai-button"]`)??null,!0)}),ka(mb(e,Na(()=>B(x),{get disclaimerHtml(){return B(ee)},get activateAiButtonSlot(){return B(te)},get expandAnswerButtonSlot(){return B(ne)},get deactivateAiButtonSlot(){return B(w)}})),e=>L(S,e,!0),()=>B(S)),tt({get lang(){return n()},set lang(e){n(e),P()},get apiUrl(){return r()},set apiUrl(e){r(e),P()},get apiKey(){return i()},set apiKey(e){i(e),P()},get question(){return a()},set question(e){a(e),P()},get height(){return o()},set height(e){o(e),P()},get maxHeight(){return s()},set maxHeight(e){s(e),P()},get optIn(){return c()},set optIn(e){c(e),P()},get optInLabel(){return l()},set optInLabel(e){l(e),P()},get expandLabel(){return u()},set expandLabel(e){u(e),P()},get collapseLabel(){return d()},set collapseLabel(e){d(e),P()},get optOutLabel(){return f()},set optOutLabel(e){f(e),P()},get useChatConfig(){return p()},set useChatConfig(e){p(e),P()},get forceTheme(){return m()},set forceTheme(e){m(e),P()},get wrapperClass(){return h()},set wrapperClass(e){h(e),P()},get labelledBy(){return g()},set labelledBy(e){g(e),P()},get chatUrl(){return _()},set chatUrl(e){_(e),P()},get mode(){return v()},set mode(e){v(e),P()},get source(){return y()},set source(e){y(e),P()},get cache(){return b()},set cache(e){b(e),P()}})}return customElements.define(`liipgpt-search-summary`,za(hb,{lang:{attribute:`lang`,type:`String`},apiUrl:{attribute:`api-url`,type:`String`},apiKey:{attribute:`api-key`,type:`String`},question:{attribute:`question`,type:`String`},height:{attribute:`height`,type:`String`},maxHeight:{attribute:`max-height`,type:`String`},optIn:{attribute:`opt-in`,type:`Boolean`},optInLabel:{attribute:`opt-in-label`,type:`String`},expandLabel:{attribute:`expand-label`,type:`String`},collapseLabel:{attribute:`collapse-label`,type:`String`},optOutLabel:{attribute:`opt-out-label`,type:`String`},useChatConfig:{attribute:`use-chat-config`,type:`Boolean`},forceTheme:{attribute:`force-theme`,type:`String`},wrapperClass:{attribute:`wrapper-class`,type:`String`},labelledBy:{attribute:`labelled-by`,type:`String`},chatUrl:{attribute:`chat-url`,type:`String`},mode:{attribute:`mode`,type:`String`},source:{attribute:`source`,type:`String`},cache:{attribute:`cache`,type:`Boolean`}},[],[])),e.LiipGPTSearchSummary=hb,e.PiiChecks=[{type:`email`,check:e=>/\b[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}\b/.test(e)},{type:`creditCard`,check:e=>/\b(?:\d[ -]*?){13,16}\b/.test(e)},{type:`ahv`,check:e=>/\b756\.\d{4}\.\d{4}\.\d{2}\b/.test(e)},{type:`phoneSwiss`,check:e=>/\b0(?:\s*\d){2}(?:\s*\/\s*)?(?:\s*\d){7,}\b/.test(e)},{type:`phoneInternational`,check:e=>/(?:\+|00)(?:\s*\d){10,}\b/.test(e)},{type:`swissPassport`,check:e=>/\b[A-HJ-NP-Z](?=.*\d)[A-HJ-NP-Z0-9]{7}\b/.test(e)},{type:`longNumber`,check:e=>/\b\d{9,}\b/.test(e)}],e})({});
@@ -1 +0,0 @@
1
- import{Kt as e,Lt as t,Mt as n,Rt as r,c as i,i as a,kt as o,o as s,ot as c}from"./rEsbAd0y.js";import"./Bo0U8J3e.js";import"./CFKVnMbq.js";import"./CZzAbm1q.js";import"./DGbgqVw-.js";import"./DKyUMEyV.js";import"./CPPDi2Fg.js";import"./C8BUw-Wc.js";import"./BX7oppMQ.js";import"./BKZTsJMz.js";import{t as l}from"./DWxJNFvO.js";import"./CWvh3_h0.js";import"./CzlKx6Dn.js";import{t as u}from"./BiTRwaVm.js";function d(a,d){r(d,!0);let f=s(d,`forceTheme`,7),p=s(d,`apiUrl`,7),m=s(d,`apiKey`,7),h=s(d,`speechRecognitionApiKey`,7),g=s(d,`lang`,7),_=s(d,`features`,7),v=s(d,`loaderBackground`,7),y=s(d,`loaderColor`,7),b=s(d,`flyout`,7),x=s(d,`flyoutStyle`,7),S=s(d,`flyoutClass`,7),C=s(d,`chatClass`,7),w=s(d,`inlineLayout`,7),T=s(d,`forceChatPage`,7),E=s(d,`hidePredefinedQuestions`,7),D=s(d,`autofirePredefinedQuestionId`,7),O=s(d,`additionalStartParameters`,7),k=s(d,`question`,7),A=s(d,`mode`,7),j=s(d,`source`,7),M=s(d,`cache`,7),N=o(()=>({forceTheme:f(),apiUrl:p(),apiKey:m(),speechRecognitionApiKey:h(),lang:g(),features:_(),loaderBackground:v(),loaderColor:y(),flyout:b(),flyoutStyle:x(),flyoutClass:S(),chatClass:C(),inlineLayout:w(),forceChatPage:T(),hidePredefinedQuestions:E(),autofirePredefinedQuestionId:D(),additionalStartParameters:O(),question:k(),mode:A(),source:j(),cache:M()}));var P={get forceTheme(){return f()},set forceTheme(e){f(e),n()},get apiUrl(){return p()},set apiUrl(e){p(e),n()},get apiKey(){return m()},set apiKey(e){m(e),n()},get speechRecognitionApiKey(){return h()},set speechRecognitionApiKey(e){h(e),n()},get lang(){return g()},set lang(e){g(e),n()},get features(){return _()},set features(e){_(e),n()},get loaderBackground(){return v()},set loaderBackground(e){v(e),n()},get loaderColor(){return y()},set loaderColor(e){y(e),n()},get flyout(){return b()},set flyout(e){b(e),n()},get flyoutStyle(){return x()},set flyoutStyle(e){x(e),n()},get flyoutClass(){return S()},set flyoutClass(e){S(e),n()},get chatClass(){return C()},set chatClass(e){C(e),n()},get inlineLayout(){return w()},set inlineLayout(e){w(e),n()},get forceChatPage(){return T()},set forceChatPage(e){T(e),n()},get hidePredefinedQuestions(){return E()},set hidePredefinedQuestions(e){E(e),n()},get autofirePredefinedQuestionId(){return D()},set autofirePredefinedQuestionId(e){D(e),n()},get additionalStartParameters(){return O()},set additionalStartParameters(e){O(e),n()},get question(){return k()},set question(e){k(e),n()},get mode(){return A()},set mode(e){A(e),n()},get source(){return j()},set source(e){j(e),n()},get cache(){return M()},set cache(e){M(e),n()}};{let t=(t,n=e)=>{l(t,i({host:d.$$host,get onError(){return n()}},()=>c(N)))},n=o(()=>c(N).flyout??!1);u(a,{get silent(){return c(n)},body:t,$$slots:{body:!0}})}return t(P)}customElements.define(`liipgpt-chat`,a(d,{forceTheme:{attribute:`force-theme`,type:`String`},apiUrl:{attribute:`api-url`,type:`String`},apiKey:{attribute:`api-key`,type:`String`},speechRecognitionApiKey:{attribute:`speech-recognition-api-key`,type:`String`},lang:{attribute:`lang`,type:`String`},features:{attribute:`features`,type:`String`},loaderBackground:{attribute:`loader-background`,type:`String`},loaderColor:{attribute:`loader-color`,type:`String`},flyout:{attribute:`flyout`,type:`Boolean`},flyoutStyle:{attribute:`flyout-style`,type:`String`},flyoutClass:{attribute:`flyout-class`,type:`String`},chatClass:{attribute:`chat-class`,type:`String`},inlineLayout:{attribute:`inline-layout`,type:`Boolean`},forceChatPage:{attribute:`force-chat-page`,type:`Boolean`},hidePredefinedQuestions:{attribute:`hide-predefined-questions`,type:`Boolean`},autofirePredefinedQuestionId:{attribute:`autofire-predefined-question-id`,type:`String`},additionalStartParameters:{attribute:`additional-start-parameters`,type:`String`},question:{attribute:`question`,type:`String`},mode:{attribute:`mode`,type:`String`},source:{attribute:`source`,type:`String`},cache:{attribute:`cache`,type:`Boolean`}},[],[],{mode:`open`}));export{d as LiipGPTChat};
@@ -1 +0,0 @@
1
- import{r as e,t}from"./CibALFW0.js";import{Ct as n,Dt as r,Ft as i,Ht as a,It as o,J as s,L as c,Lt as l,M as u,Mt as d,Rt as f,Tt as p,Y as m,ct as h,ft as g,g as _,gt as v,ht as y,i as b,it as x,jt as ee,k as te,kt as S,lt as C,m as ne,o as w,ot as T,s as re,xt as E,zt as ie}from"./rEsbAd0y.js";import{t as D}from"./DjVmpym-.js";import{i as ae,n as oe,r as se,t as ce}from"./DGbgqVw-.js";import{d as le,l as O,m as ue,o as de,p as fe,u as pe}from"./C8BUw-Wc.js";import{a as me,n as he,r as ge,t as _e}from"./BX7oppMQ.js";var k={randomUUID:typeof crypto<`u`&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function ve(e,t,n){e||={};let r=e.random??e.rng?.()??pe();if(r.length<16)throw Error(`Random bytes length must be >= 16`);if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,t){if(n||=0,n<0||n+16>t.length)throw RangeError(`UUID byte range ${n}:${n+15} is out of buffer bounds`);for(let e=0;e<16;++e)t[n+e]=r[e];return t}return le(r)}function A(e,t,n){return k.randomUUID&&!t&&!e?k.randomUUID():ve(e,t,n)}var j={de:{aborted:`Verbindung zum Server wurde unerwartet unterbrochen. Bitte versuchen Sie es erneut.`,"client-error":`Ein unbekannter Fehler ist aufgetreten. Bitte versuchen Sie es erneut.`,"server-error":`Ein unbekannter Fehler ist aufgetreten. Bitte versuchen Sie es erneut.`,"sse-error":`Ein unbekannter Fehler ist aufgetreten. Bitte versuchen Sie es erneut.`,blocked:`Ihre Anfrage wurde blockiert.`,"pii-detected":`Es wurden persönliche Daten erkannt. Bitte entfernen Sie diese und versuchen Sie es erneut.`,"incomplete-error":`Ein unbekannter Fehler ist aufgetreten. Die Antwort könnte unvollständig sein.`,"unexpected-call":`Ein unbekannter Fehler ist aufgetreten. Die Antwort könnte unvollständig sein.`,"quota-reached":`Kontingent überschritten. Bitte versuchen Sie es später erneut.`,"rate-limit":`Kontingent überschritten. Bitte versuchen Sie es später erneut.`,maintenance:`Der Chat ist derzeit nicht verfügbar. Bitte versuchen Sie es später erneut.`,"too-long":`Ihre Frage war zu lang, versuchen Sie es mit einer Kürzeren.`,"too-short":`Ihre Frage war zu kurz, versuchen Sie es mit einer Längeren.`,"feedback-failed":`Feedback senden fehlgeschlagen. Bitte versuchen Sie es erneut.`,"answer-form-failed":`Formular konnte nicht gesendet werden. Bitte versuchen Sie es erneut.`,"speech-not-supported":`Spracherkennung wird nicht unterstützt.`,"speech-transcription-failed":`Sprachtranskription fehlgeschlagen.`,"speech-no-text-detected":`Kein Text in der Spracheingabe erkannt.`,"speech-microphone-access-denied":`Mikrofonzugriff verweigert.`},en:{aborted:`Connection to the server was unexpectedly interrupted. Please try again.`,"client-error":`An unknown error has occurred. Please try again.`,"server-error":`An unknown error has occurred. Please try again.`,"sse-error":`An unknown error has occurred. Please try again.`,blocked:`Your request has been blocked.`,"pii-detected":`Personal data has been detected. Please remove it and try again.`,"incomplete-error":`An unknown error has occurred. The response might be incomplete.`,"unexpected-call":`An unknown error has occurred. The response might be incomplete.`,"quota-reached":`Quota exceeded. Please try again later.`,"rate-limit":`Quota exceeded. Please try again later.`,maintenance:`The chat is currently unavailable. Please try again later.`,"too-long":`Your question was too long, try a shorter one.`,"too-short":`Your question was too short, try a longer one.`,"feedback-failed":`Failed to send feedback. Please try again.`,"answer-form-failed":`Failed to send the form. Please try again.`,"speech-not-supported":`Speech recognition is not supported.`,"speech-transcription-failed":`Speech transcription failed.`,"speech-no-text-detected":`No text detected in speech input.`,"speech-microphone-access-denied":`Microphone access denied.`},it:{aborted:`La connessione al server è stata interrotta inaspettatamente. Si prega di riprovare.`,"client-error":`Si è verificato un errore sconosciuto. Si prega di riprovare.`,"server-error":`Si è verificato un errore sconosciuto. Si prega di riprovare.`,"sse-error":`Si è verificato un errore sconosciuto. Si prega di riprovare.`,blocked:`La tua richiesta è stata bloccata.`,"pii-detected":`Sono stati rilevati dati personali. Si prega di rimuoverli e riprovare.`,"incomplete-error":`Si è verificato un errore sconosciuto. La risposta potrebbe essere incompleta.`,"unexpected-call":`Si è verificato un errore sconosciuto. La risposta potrebbe essere incompleta.`,"quota-reached":`Quota superata. Si prega di riprovare più tardi.`,"rate-limit":`Quota superata. Si prega di riprovare più tardi.`,maintenance:`La chat non è attualmente disponibile. Si prega di riprovare più tardi.`,"too-long":`La tua domanda era troppo lunga, prova con una più breve.`,"too-short":`La tua domanda era troppo breve, prova con una più lunga.`,"feedback-failed":`Invio del feedback non riuscito. Si prega di riprovare.`,"answer-form-failed":`Invio del modulo non riuscito. Si prega di riprovare.`,"speech-not-supported":`Il riconoscimento vocale non è supportato.`,"speech-transcription-failed":`Trascrizione vocale fallita.`,"speech-no-text-detected":`Nessun testo rilevato nell'input vocale.`,"speech-microphone-access-denied":`Accesso al microfono negato.`},fr:{aborted:`La connexion au serveur a été interrompue de façon inattendue. Veuillez réessayer.`,"client-error":`Une erreur inconnue s'est produite. Veuillez réessayer.`,"server-error":`Une erreur inconnue s'est produite. Veuillez réessayer.`,"sse-error":`Une erreur inconnue s'est produite. Veuillez réessayer.`,"pii-detected":`Des données personnelles ont été détectées. Veuillez les supprimer et réessayer.`,blocked:`Votre demande a été bloquée.`,"incomplete-error":`Une erreur inconnue s'est produite. La réponse pourrait être incomplète.`,"unexpected-call":`Une erreur inconnue s'est produite. La réponse pourrait être incomplète.`,"quota-reached":`Quota dépassé. Veuillez réessayer plus tard.`,"rate-limit":`Quota dépassé. Veuillez réessayer plus tard.`,maintenance:`Le chat est actuellement indisponible. Veuillez réessayer plus tard.`,"too-long":`Votre question était trop longue, essayez d'en poser une plus courte.`,"too-short":`Votre question était trop courte, essayez d'en poser une plus longue.`,"feedback-failed":`Échec de l'envoi du feedback. Veuillez réessayer.`,"answer-form-failed":`Échec de l'envoi du formulaire. Veuillez réessayer.`,"speech-not-supported":`La reconnaissance vocale n'est pas prise en charge.`,"speech-transcription-failed":`Échec de la transcription vocale.`,"speech-no-text-detected":`Aucun texte détecté dans l'entrée vocale.`,"speech-microphone-access-denied":`Accès au microphone refusé.`}},M={de:{email:`Bitte keine E-Mail Adressen eingeben`,creditCard:`Bitte keine Kreditkarteninformationen eingeben`,ahv:`Bitte keine AHV-Nummern eingeben`,phoneSwiss:`Bitte keine Telefonnummern eingeben`,phoneInternational:`Bitte keine Telefonnummern eingeben`,swissPassport:`Bitte keine Passinformationen eingeben`,longNumber:`Bitte keine langen Nummern eingeben`},en:{email:`Please do not enter email addresses`,creditCard:`Please do not enter credit card information`,ahv:`Please do not enter AHV numbers`,phoneSwiss:`Please do not enter phone numbers`,phoneInternational:`Please do not enter phone numbers`,swissPassport:`Please do not enter passport information`,longNumber:`Please do not enter long numbers`},it:{email:`Si prega di non inserire indirizzi email`,creditCard:`Si prega di non inserire informazioni sulla carta di credito`,ahv:`Si prega di non inserire numeri AVS`,phoneSwiss:`Si prega di non inserire numeri di telefono`,phoneInternational:`Si prega di non inserire numeri di telefono`,swissPassport:`Si prega di non inserire informazioni sul passaporto`,longNumber:`Si prega di non inserire numeri lunghi`},fr:{email:`Veuillez ne pas saisir d'adresses e-mail`,creditCard:`Veuillez ne pas saisir d'informations de carte de crédit`,ahv:`Veuillez ne pas saisir de numéros AVS`,phoneSwiss:`Veuillez ne pas saisir de numéros de téléphone`,phoneInternational:`Veuillez ne pas saisir de numéros de téléphone`,swissPassport:`Veuillez ne pas saisir d'informations de passeport`,longNumber:`Veuillez ne pas saisir de longs numéros`}},ye=t(((e,t)=>{t.exports=function e(t,n){if(t===n)return!0;if(t&&n&&typeof t==`object`&&typeof n==`object`){if(t.constructor!==n.constructor)return!1;var r,i,a;if(Array.isArray(t)){if(r=t.length,r!=n.length)return!1;for(i=r;i--!==0;)if(!e(t[i],n[i]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if(a=Object.keys(t),r=a.length,r!==Object.keys(n).length)return!1;for(i=r;i--!==0;)if(!Object.prototype.hasOwnProperty.call(n,a[i]))return!1;for(i=r;i--!==0;){var o=a[i];if(!e(t[o],n[o]))return!1}return!0}return t!==t&&n!==n}}));function be(...e){return e.filter(Boolean).join(` `)}var xe=typeof document<`u`,Se=typeof window<`u`?window:void 0;typeof window<`u`&&window.document,typeof window<`u`&&window.navigator,typeof window<`u`&&window.location;function Ce(e){let t=e.activeElement;for(;t?.shadowRoot;){let e=t.shadowRoot.activeElement;if(e===t)break;t=e}return t}new class{#e;#t;constructor(e={}){let{window:t=Se,document:n=t?.document}=e;t!==void 0&&(this.#e=n,this.#t=ee(e=>{let n=x(t,`focusin`,e),r=x(t,`focusout`,e);return()=>{n(),r()}}))}get current(){return this.#t?.(),this.#e?Ce(this.#e):null}};var N=class{#e;#t;constructor(e){this.#e=e,this.#t=Symbol(e)}get key(){return this.#t}exists(){return o(this.#t)}get(){let e=i(this.#t);if(e===void 0)throw Error(`Context "${this.#e}" not found`);return e}getOr(e){let t=i(this.#t);return t===void 0?e:t}set(e){return ie(this.#t,e)}};function we(e,t){switch(e){case`post`:y(t);break;case`pre`:v(t);break}}function P(e,t,n,r={}){let{lazy:i=!1}=r,a=!i,o=Array.isArray(e)?[]:void 0;we(t,()=>{let t=Array.isArray(e)?e.map(e=>e()):e();if(!a){a=!0,o=t;return}let r=C(()=>n(t,o));return o=t,r})}function F(e,t,n){let r=g(()=>{let i=!1;P(e,t,(e,t)=>{if(i){r();return}let a=n(e,t);return i=!0,a},{lazy:!0})});y(()=>r)}function I(e,t,n){P(e,`post`,t,n)}function Te(e,t,n){P(e,`pre`,t,n)}I.pre=Te;function Ee(e,t){F(e,`post`,t)}function De(e,t){F(e,`pre`,t)}Ee.pre=De;function Oe(e,t){let n,r=null;return(...i)=>new Promise(a=>{r&&r(void 0),r=a,clearTimeout(n),n=setTimeout(async()=>{let t=await e(...i);r&&=(r(t),null)},t)})}function ke(e,t){let n=0,r=null;return(...i)=>{let a=Date.now();return n&&a-n<t?r??Promise.resolve(void 0):(n=a,r=e(...i),r)}}function L(e,t,i={},a){let{lazy:o=!1,once:s=!1,initialValue:c,debounce:l,throttle:u}=i,d=r(n(c)),f=r(!1),m=r(void 0),h=r(n([])),g=()=>{T(h).forEach(e=>e()),p(h,[],!0)},_=e=>{p(h,[...T(h),e],!0)},v=async(e,n,r=!1)=>{try{p(f,!0),p(m,void 0),g();let i=new AbortController;_(()=>i.abort());let a=await t(e,n,{data:T(d),refetching:r,onCleanup:_,signal:i.signal});return p(d,a,!0),a}catch(e){e instanceof DOMException&&e.name===`AbortError`||p(m,e,!0);return}finally{p(f,!1)}},y=l?Oe(v,l):u?ke(v,u):v,b=Array.isArray(e)?e:[e],x;return a((t,n)=>{s&&x||(x=t,y(Array.isArray(e)?t:t[0],Array.isArray(e)?n:n?.[0]))},{lazy:o}),{get current(){return T(d)},get loading(){return T(f)},get error(){return T(m)},mutate:e=>{p(d,e,!0)},refetch:t=>{let n=b.map(e=>e());return y(Array.isArray(e)?n:n[0],Array.isArray(e)?n:n[0],t??!0)}}}function Ae(e,t,n){return L(e,t,n,(t,n)=>{let r=Array.isArray(e)?e:[e];I(()=>r.map(e=>e()),(e,n)=>{t(e,n??[])},n)})}function je(e,t,n){return L(e,t,n,(t,n)=>{let r=Array.isArray(e)?e:[e];I.pre(()=>r.map(e=>e()),(e,n)=>{t(e,n??[])},n)})}Ae.pre=je,new N(`richColorsContext`);var Me=new N(`<Toaster/>`),R=0,Ne=class{#e=r(n([]));get toasts(){return T(this.#e)}set toasts(e){p(this.#e,e,!0)}#t=r(n([]));get heights(){return T(this.#t)}set heights(e){p(this.#t,e,!0)}#n=e=>{let t=this.toasts.findIndex(t=>t.id===e);return t===-1?null:t};addToast=e=>{xe&&this.toasts.unshift(e)};updateToast=({id:e,data:t,type:n,message:r})=>{let i=this.toasts.findIndex(t=>t.id===e),a=this.toasts[i];this.toasts[i]={...a,...t,id:e,title:r,type:n,updated:!0}};create=e=>{let{message:t,...n}=e,r=typeof e?.id==`number`||e.id&&e.id?.length>0?e.id:R++,i=e.dismissible===void 0?e.dismissable===void 0?!0:e.dismissable:e.dismissible,a=e.type===void 0?`default`:e.type;return C(()=>{this.toasts.find(e=>e.id===r)?this.updateToast({id:r,data:e,type:a,message:t,dismissible:i}):this.addToast({...n,id:r,title:t,dismissible:i,type:a})}),r};dismiss=e=>(C(()=>{if(e===void 0){this.toasts=this.toasts.map(e=>({...e,dismiss:!0}));return}let t=this.toasts.findIndex(t=>t.id===e);this.toasts[t]&&(this.toasts[t]={...this.toasts[t],dismiss:!0})}),e);remove=e=>{if(e===void 0){this.toasts=[];return}let t=this.#n(e);if(t!==null)return this.toasts.splice(t,1),e};message=(e,t)=>this.create({...t,type:`default`,message:e});error=(e,t)=>this.create({...t,type:`error`,message:e});success=(e,t)=>this.create({...t,type:`success`,message:e});info=(e,t)=>this.create({...t,type:`info`,message:e});warning=(e,t)=>this.create({...t,type:`warning`,message:e});loading=(e,t)=>this.create({...t,type:`loading`,message:e});promise=(e,t)=>{if(!t)return;let n;t.loading!==void 0&&(n=this.create({...t,promise:e,type:`loading`,message:typeof t.loading==`string`?t.loading:t.loading()}));let r=e instanceof Promise?e:e(),i=n!==void 0;return r.then(e=>{if(typeof e==`object`&&e&&`ok`in e&&typeof e.ok==`boolean`&&!e.ok){i=!1;let t=Pe(e);this.create({id:n,type:`error`,message:t})}else if(t.success!==void 0){i=!1;let r=typeof t.success==`function`?t.success(e):t.success;this.create({id:n,type:`success`,message:r})}}).catch(e=>{if(t.error!==void 0){i=!1;let r=typeof t.error==`function`?t.error(e):t.error;this.create({id:n,type:`error`,message:r})}}).finally(()=>{i&&(this.dismiss(n),n=void 0),t.finally?.()}),n};custom=(e,t)=>{let n=t?.id||R++;return this.create({component:e,id:n,...t}),n};removeHeight=e=>{this.heights=this.heights.filter(t=>t.toastId!==e)};setHeight=e=>{let t=this.#n(e.toastId);if(t===null){this.heights.push(e);return}this.heights[t]=e};reset=()=>{this.toasts=[],this.heights=[]}};function Pe(e){return e&&typeof e==`object`&&`status`in e?`HTTP error! Status: ${e.status}`:`Error! ${e}`}var z=new Ne;function Fe(e,t){return z.create({message:e,...t})}var Ie=class{#e=S(()=>z.toasts.filter(e=>!e.dismiss));get toasts(){return T(this.#e)}},B=Object.assign(Fe,{success:z.success,info:z.info,warning:z.warning,error:z.error,custom:z.custom,message:z.message,promise:z.promise,dismiss:z.dismiss,loading:z.loading,getActiveToasts:()=>z.toasts.filter(e=>!e.dismiss)}),Le=e=>{let t=new Set;Object.getOwnPropertyNames(e).forEach(e=>t.add(e));let n=Object.getPrototypeOf(e);for(;n&&n!==Object.prototype;)Object.getOwnPropertyNames(n).forEach(e=>t.add(e)),n=Object.getPrototypeOf(n);return Array.from(t)},Re=(e,t)=>{let n={};return t.forEach(t=>{n[t]=e[t]}),n},ze=console.warn,Be=()=>{},Ve=(e,t)=>C(()=>{console.warn=Be;let n=a(t?Re(e,t):e);return console.warn=ze,n}),He=e=>e&&typeof e.then==`function`,Ue=class{config;self;devtools;stateKeys;constructor(e,t){this.config=e,this.self=t,typeof window<`u`&&window.__REDUX_DEVTOOLS_EXTENSION__&&(this.stateKeys=Le(this.config.state),this.devtools=window.__REDUX_DEVTOOLS_EXTENSION__.connect({name:this.config.name??`updatelogic`}),this.devtools.init(this.createStateSnapshot()),this.devtools.subscribe(e=>{e.type===`DISPATCH`&&e.state}))}createStateSnapshot(){return Ve(this.config.state,this.stateKeys)}sendStart(e,t){this.devtools.send({type:`→ ${e}`,args:t},this.createStateSnapshot())}sendError(e,t,n){this.devtools.send({type:`❌ ${e}`,args:t,error:n},this.createStateSnapshot())}sendSuccess(e,t,n){this.devtools.send({type:`✓ ${e}`,args:t,return:n},this.createStateSnapshot())}isIncluded(e){return this.config.excludeInDevTools?!this.config.excludeInDevTools.includes(e):!0}createProxyFunction(e,t){let n=this.devtools&&this.isIncluded(e);return typeof t==`function`?(...r)=>{if(!n)return C(()=>t.call(this.self,...r));let i=Ve(r);this.sendStart(e,i);try{let n=C(()=>t.call(this.self,...r));return He(n)?n.then(t=>(this.sendSuccess(e,i,t),t),t=>{throw this.sendError(e,i,t),t}):(this.sendSuccess(e,i,n),n)}catch(t){throw this.sendError(e,i,t),t}}:t}},We=(e,t)=>{let n={},r=new Ue(e,n);return Object.keys(t).forEach(e=>{if(e===`state`||e===`name`)return;let i=t[e];n[e]=r.createProxyFunction(e,i)}),n};async function Ge(){if(typeof navigator>`u`||!navigator.mediaDevices||!navigator.mediaDevices.enumerateDevices)return!1;try{return(await navigator.mediaDevices.enumerateDevices()).some(e=>e.kind===`audioinput`)}catch(e){return console.error(`Error checking for microphone:`,e),!1}}function V(){return typeof window>`u`||!window.MediaRecorder?null:MediaRecorder.isTypeSupported(`audio/mp4`)?`audio/mp4`:MediaRecorder.isTypeSupported(`audio/webm`)?`audio/webm`:MediaRecorder.isTypeSupported(`audio/wav`)?`audio/wav`:null}function Ke(){return typeof window>`u`?!1:!!(window.MediaRecorder&&V())}function qe(){if(typeof window>`u`)return!1;if(`ontouchstart`in window||navigator.maxTouchPoints>0)return!0;let e=navigator.msMaxTouchPoints;return!!(`msMaxTouchPoints`in navigator&&e&&e>0)}function Je(){return typeof window>`u`?!1:!!(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)||qe())}var H=class{mediaRecorder=null;audioChunks=[];started=!1;starting=!1;stream=null;options;audioContext=null;analyser=null;dataArray=null;volumeUpdateInterval=null;constructor(e={}){this.options=e}async start(){if(this.started||this.starting){console.warn(`AudioRecorder: Start already in progress or already started`);return}if(!Ke()||!navigator.mediaDevices){let e=Error(`MediaRecorder not supported or no microphone access`);throw this.options.onError?.(e),e}try{if(this.starting=!0,this.stream=await navigator.mediaDevices.getUserMedia({audio:{echoCancellation:!0,noiseSuppression:!0,autoGainControl:!0},video:!1}),!this.starting){this.stopStream(this.stream);return}this.mediaRecorder&&this.mediaRecorder.state!==`inactive`&&(console.warn(`AudioRecorder: MediaRecorder already active, stopping previous recording`),this.mediaRecorder.stop(),this.cleanup()),this.started=!0,this.starting=!1;let e=V();if(!e)throw Error(`No supported media type found`);let t={mimeType:e};this.mediaRecorder=new MediaRecorder(this.stream,t),this.audioChunks=[],this.mediaRecorder.ondataavailable=e=>{e.data.size>0&&this.audioChunks.push(e.data)},this.mediaRecorder.onstop=async()=>{let t=this.audioChunks.length>0?new Blob(this.audioChunks,{type:e}):null;await this.options.onDataAvailable?.(t),this.options.onStop?.(),this.cleanup()},this.mediaRecorder.onerror=e=>{let t=Error(`MediaRecorder error: ${e}`);this.options.onError?.(t),this.cleanup()},this.mediaRecorder.start(),this.setupVolumeAnalysis(this.stream),this.options.onStart?.()}catch(e){this.started=!1,this.starting=!1;let t=e instanceof Error?e:Error(String(e));throw this.options.onError?.(t),t}}stop(){this.started=!1,this.starting=!1,this.volumeUpdateInterval&&=(clearInterval(this.volumeUpdateInterval),null),this.mediaRecorder&&this.mediaRecorder.state!==`inactive`?this.mediaRecorder.stop():(this.stream&&this.stopStream(this.stream),this.cleanup())}setupVolumeAnalysis(e){if(this.options.onVolumeChange)try{this.audioContext=new AudioContext,this.analyser=this.audioContext.createAnalyser(),this.analyser.fftSize=256,this.analyser.smoothingTimeConstant=.8;let t=this.analyser.frequencyBinCount;this.dataArray=new Uint8Array(t),this.audioContext.createMediaStreamSource(e).connect(this.analyser),this.startVolumeMonitoring()}catch(e){console.warn(`Failed to set up volume analysis:`,e)}}startVolumeMonitoring(){!this.analyser||!this.dataArray||!this.options.onVolumeChange||(this.volumeUpdateInterval=window.setInterval(()=>{if(!this.analyser||!this.dataArray||!this.started)return;this.analyser.getByteFrequencyData(this.dataArray);let e=0;for(let t=0;t<this.dataArray.length;t++)e+=this.dataArray[t]*this.dataArray[t];let t=Math.sqrt(e/this.dataArray.length)/255;t=(t*3)**.7;let n=Math.min(100,Math.max(0,Math.round(t*100)));this.options.onVolumeChange?.(n)},100))}get recording(){return this.started&&this.mediaRecorder?.state===`recording`}get isStarting(){return this.starting}stopStream(e){e.getTracks().forEach(e=>e.stop())}cleanup(){this.volumeUpdateInterval&&=(clearInterval(this.volumeUpdateInterval),null),this.audioContext&&=(this.audioContext.close().catch(console.warn),null),this.analyser=null,this.dataArray=null,this.stream&&=(this.stopStream(this.stream),null),this.mediaRecorder=null,this.audioChunks=[],this.started=!1,this.starting=!1}static isSupported(){return Ke()}static getSupportedMediaType(){return V()}},Ye=ue(),Xe=(e,t)=>{if(e instanceof HTMLTextAreaElement&&t instanceof HTMLTextAreaElement){t.textContent=e.value;return}if(e instanceof HTMLSelectElement&&t instanceof HTMLSelectElement){Array.from(e.options).forEach((e,n)=>{t.options[n]&&(t.options[n].selected=e.selected)});return}e instanceof HTMLInputElement&&t instanceof HTMLInputElement&&(t.setAttribute(`value`,e.value),(e.type===`checkbox`||e.type===`radio`)&&(e.checked?t.setAttribute(`checked`,`checked`):t.removeAttribute(`checked`)))},Ze=e=>{let t=e.cloneNode(!0);if(!(t instanceof Element))return``;let n=`input, textarea, select`,r=e.querySelectorAll(n),i=t.querySelectorAll(n);return r.forEach((e,t)=>{let n=i[t];n&&Xe(e,n)}),Ye.sanitize(t.outerHTML,{FORBID_TAGS:[`style`,`script`],FORBID_ATTR:[`style`,`class`]})},Qe=e=>{if(!e?.length)return[];let t=e.join(`,`),n=document.querySelectorAll(t);return Array.from(n,Ze)},U=`liipgpt:context`,$e=class{contextVersion=0;#e=r();get currentContext(){return T(this.#e)}set currentContext(e){p(this.#e,e,!0)}getFromLocalStorage(){let e=localStorage.getItem(U);if(e){let t;try{if(t=JSON.parse(e),t.version!==this.contextVersion){localStorage.removeItem(U);return}else return t.context}catch(e){console.error(`Failed to parse liipgpt:context`,e);return}}}storeToLocalStorage(){localStorage.setItem(`liipgpt:context`,JSON.stringify({version:Z.data.chatConfig.contextVersion,context:this.currentContext}))}constructor(e){this.init=e,this.currentContext=this.getFromLocalStorage()??e.initialValue}getContext(){return a(this.currentContext)}setContextVersion(e){this.contextVersion=e}setContext(e){this.currentContext=e,this.storeToLocalStorage()}resetContext(){this.currentContext=this.init.initialValue,this.storeToLocalStorage()}updateContext(e){this.setContext(e(this.currentContext))}},et=()=>localStorage.getItem(U),tt=[{type:`email`,check:e=>/\b[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}\b/.test(e)},{type:`creditCard`,check:e=>/\b(?:\d[ -]*?){13,16}\b/.test(e)},{type:`ahv`,check:e=>/\b756\.\d{4}\.\d{4}\.\d{2}\b/.test(e)},{type:`phoneSwiss`,check:e=>/\b0(?:\s*\d){2}(?:\s*\/\s*)?(?:\s*\d){7,}\b/.test(e)},{type:`phoneInternational`,check:e=>/(?:\+|00)(?:\s*\d){10,}\b/.test(e)},{type:`swissPassport`,check:e=>/\b[A-HJ-NP-Z](?=.*\d)[A-HJ-NP-Z0-9]{7}\b/.test(e)},{type:`longNumber`,check:e=>/\b\d{9,}\b/.test(e)}],nt=e=>{for(let t of tt)if(t.check(e))return t.type},W=`liipgpt:selectorValues`,G=`liipgpt:selectorKnownDefaults`,rt=()=>{try{let e=O.getItem(W),t=O.getItem(G);return e?{values:JSON.parse(e),knownDefaults:t?JSON.parse(t):{}}:null}catch{return null}},it=e=>{let t={};for(let n of e)t[n.settingName]=n.defaultValues??(n.allowEmpty?[]:[n.values[0]]).filter(Boolean);return t},K=(e,t)=>{try{let n=it(t);O.setItem(W,JSON.stringify(e)),O.setItem(G,JSON.stringify(n))}catch(e){console.error(`Failed to save selector values:`,e)}},at=e=>{try{let t=rt();if(!t)return;delete t.values[e],delete t.knownDefaults[e],O.setItem(W,JSON.stringify(t.values)),O.setItem(G,JSON.stringify(t.knownDefaults))}catch(e){console.error(`Failed to clear selector saved state:`,e)}},ot=e=>{let t=rt(),n=e.map(e=>{let n=e.defaultValues??(e.allowEmpty?[]:[e.values[0]]).filter(Boolean);if(!t?.values[e.settingName])return[e.settingName,n];let r=t.values[e.settingName],i=t.knownDefaults[e.settingName]||[],a=r.filter(t=>e.values.includes(t)),o=i.filter(e=>!n.includes(e)),s=a.filter(e=>!o.includes(e)),c=n.filter(e=>!i.includes(e)&&!s.includes(e)),l=[...s,...c];return l.length===0&&!e.allowEmpty?[e.settingName,n]:[e.settingName,l]});return Object.fromEntries(n)},q=class extends Error{constructor(e){super(e),this.name=`UnreachableError`}},st=e(ye(),1),ct=(e,t)=>{if(!e)return;let n=t.find(t=>t.id===e);return n||console.warn(`autofire-predefined-question-id="${e}" did not match any loaded predefined question. Falling back to default routing.`),n},J=(e,t,n,r,i)=>{if(e&&!t)return{name:`consent-page`};let a=new URLSearchParams(window.location.search),o=a.get(`q`),s=a.get(`id`)??void 0,c=a.get(`sid`)??void 0;return o?{name:`chat-page`,query:o,predefinedQuestionId:s,switchQuestionId:c}:i?{name:`chat-page`,query:i}:r?{name:`chat-page`,query:r.question,predefinedQuestionId:r.id}:n?{name:`chat-page`}:{name:`start-page`}},Y=`follow-up-q`,lt=e=>/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i.test(e),ut=()=>{let e=new URLSearchParams(window.location.hash.replace(/^#/,``)).get(`cID`)??void 0;return{cID:e&&lt(e)?e:void 0,followUpQuestion:new URLSearchParams(window.location.search).get(Y)?.trim()||void 0}},dt=()=>{let e=new URLSearchParams(window.location.search);if(!e.has(Y))return;e.delete(Y);let t=e.toString();history.replaceState(null,``,`${window.location.pathname}${t?`?${t}`:``}${window.location.hash}`)},ft=e=>{if(e)try{let t=JSON.parse(e);if(t&&typeof t==`object`&&!Array.isArray(t))return t;console.warn(`additional-start-parameters must be a JSON object. Received: ${e}`);return}catch(t){console.warn(`Failed to parse additional-start-parameters as JSON: ${e}`,t);return}},pt=e=>{let t=ft(e);return t?(e=>Array.isArray(e)?e.map(String):typeof e==`string`?e.split(`,`).map(e=>e.trim()).filter(Boolean):[])(t.scopeAvailableSlugs).length===1:!1},X=e=>e?e.map(e=>({id:A(),...e})):[],Z=new class{#e=r(n({}));get data(){return T(this.#e)}set data(e){p(this.#e,e,!0)}#t=r(n({}));get targets(){return T(this.#t)}set targets(e){p(this.#t,e,!0)}#n=r(!1);get initialized(){return T(this.#n)}set initialized(e){p(this.#n,e,!0)}#r=r(0);get currentAudioVolume(){return T(this.#r)}set currentAudioVolume(e){p(this.#r,e,!0)}ariaLiveMessagesClearingTimeoutDuration=350;#i=r(null);get currentAudioRecorder(){return T(this.#i)}set currentAudioRecorder(e){p(this.#i,e,!0)}#a=r(!1);get isTranscribing(){return T(this.#a)}set isTranscribing(e){p(this.#a,e,!0)}#o=S(()=>{if(!this.initialized)return[];let e=this.data.chatConfig.menu;return e?e[this.data.language]??[]:[]});get menu(){return T(this.#o)}set menu(e){p(this.#o,e)}#s=S(()=>this.initialized?this.data.chatConfig.translations[this.data.language]??{}:{});get t(){return T(this.#s)}set t(e){p(this.#s,e)}#c=S(()=>this.initialized?j[this.data.language]??{}:j.en??{});get errorTranslations(){return T(this.#c)}set errorTranslations(e){p(this.#c,e)}#l=S(()=>this.initialized?M[this.data.language]??{}:M.en??{});get piiTranslations(){return T(this.#l)}set piiTranslations(e){p(this.#l,e)}#u=S(()=>this.initialized?this.data.currentColorScheme:`light`);get colorScheme(){return T(this.#u)}set colorScheme(e){p(this.#u,e)}#d=S(()=>this.initialized?this.data.chatConfig.fullTheme[this.data.currentColorScheme]:{});get themeBase(){return T(this.#d)}set themeBase(e){p(this.#d,e)}#f=S(()=>this.themeBase.tokens);get theme(){return T(this.#f)}set theme(e){p(this.#f,e)}#p=S(()=>{if(!this.initialized)return[];let e=[];for(let t of this.data.chatConfig.selectorsConfig)t.allowEmpty||(this.data.selectorValues[t.settingName]||[]).length===0&&e.push(t.settingName);return e});get selectorsWithErrors(){return T(this.#p)}set selectorsWithErrors(e){p(this.#p,e)}#m=S(()=>{if(!this.initialized)return{};let e=this.data.chatConfig,t={};for(let n of e.selectorsConfig){let r=ge(e.translations,n.settingName,this.data.language,e.supportedLanguages);r||console.error(`Missing translation for setting ${n.settingName} in all languages`),t[n.settingName]=r??{name:n.settingName,placeholder:``,values:{}}}return t});get selectorTranslations(){return T(this.#m)}set selectorTranslations(e){p(this.#m,e)}#h=S(()=>{if(!this.initialized)return!1;let e=this.data.chatConfig;return this.data.route.name===`chat-page`&&!e.forceChatPage||e.showContextInfo||e.showContextMenu||e.showCloseChatButton||this.data.props.flyout});get hasMainNavigationContent(){return T(this.#h)}set hasMainNavigationContent(e){p(this.#h,e)}#g=S(()=>{if(!this.initialized)return``;let e=this.t,t=this.data.chatConfig,n=this.data.route.name===`chat-page`&&!t.forceChatPage,r=[];return n&&r.push(e.newChat),t.showContextInfo&&r.push(e.ariaMainNavigationInfo),t.showContextMenu&&(this.menu.length>0&&r.push(e.ariaMainNavigationLinks),t.supportedLanguages.length>0&&r.push(e.ariaMainNavigationLanguageSwitch),this.data.has2ColorSchemes&&r.push(e.ariaMainNavigationColorMode)),(t.showCloseChatButton||this.data.props.flyout)&&r.push(e.closeChat),r.length===0?e.ariaMainNavigation:`${e.ariaMainNavigation}: ${r.join(`, `)}`});get ariaMainNavigationRegion(){return T(this.#g)}set ariaMainNavigationRegion(e){p(this.#g,e)}},Q,$,mt,ht=We({name:`chat-logic`,state:Z,excludeInDevTools:[`onInput`]},{async init(e){$=e;let t=$.speechRecognitionApiKey||void 0;Q=new de({apiUrl:$.apiUrl,apiKey:$.apiKey,speechRecognitionApiKey:t,strict:!0,startParameters:ft($.additionalStartParameters)});try{let e=await Q.getChatConfig();window.CHAT_CONFIG_OVERRIDE&&Object.assign(e,window.CHAT_CONFIG_OVERRIDE);let t=(await Q.getMetadata()).mode===`maintenance`;t&&this.showErrorToast(`maintenance`);let n=ae(e);$.inlineLayout!==void 0&&(n.inlineLayout=$.inlineLayout),$.forceChatPage!==void 0&&(n.forceChatPage=$.forceChatPage);let r;r=$.lang?he($.lang,n.supportedLanguages):_e(n.supportedLanguages),me(r,Z.targets.mainElement);let i=await this.getPredefinedQuestions(r),a=n.translations[r]?.ariaOpensInNewTab;a&&Q.setNewTabSrText(a);let o=[];if(n.renderKatex){let e=await D(()=>import(`https://esm.sh/marked-katex-extension@5.1.5`),[],import.meta.url).catch(e=>{console.error(`Couldn't load marked-katex-extension:`,e)});e&&(Q.setMarkedExtensions(e.default({nonStandard:!0,output:`mathml`})),o.push(`https://cdn.jsdelivr.net/npm/katex@0.16.22/dist/katex.min.css`))}let s=Object.keys(n.fullTheme),c=!1;if(n.forceConsent)try{c=O.getItem(`liipgpt:termsAccepted`)===`true`}catch(e){console.warn(`Failed to load terms acceptance from storage:`,e)}let l=ct($.autofirePredefinedQuestionId,i);Z.data={currentConversationState:`idle`,chatConfig:n,language:r,predefinedQuestions:i,isInMaintenance:t,history:X(n.messageAdditions.init),selectedColorScheme:oe(),has2ColorSchemes:s.length===2,currentColorScheme:ce(s),conversationFeedbackId:void 0,conversationFeedbackIsOpen:!1,answerFormMessageId:void 0,openedPopup:void 0,props:$,flyoutIsOpen:!1,questionHasPii:void 0,chatInputValue:``,selectorValues:ot(n.selectorsConfig),selectorsIsOpen:!1,predefinedQuestionId:void 0,switchQuestionId:void 0,currentReferencesAsideId:void 0,ariaLiveStatusMessage:void 0,ariaLiveStatusMessageClearingTimeout:void 0,wasReferencesAsideClosed:!1,isAsideMobile:!0,route:J(n.forceConsent??!1,c,n.forceChatPage??!1,l,$.question),additionalStylesheets:o,hasOpenedOverlays:!1,isInlineLayoutContained:!1,termsAccepted:c,selectedTopic:void 0},window.LIIPGPT_LISTENERS?.route?.(Z.data.route),window.LIIPGPT_LISTENERS?.conversation?.(Z.data.currentConversationState),Z.data.selectorsIsOpen=Z.data.chatConfig.showExpandedSelectors??!1,Z.initialized=!0,this.checkForOpenedPopup(),window.addEventListener(`hashchange`,()=>{this.checkForOpenedPopup()}),await this.startFromHandoverOrRoute(()=>this.goto(J(n.forceConsent??!1,c,n.forceChatPage??!1,l,$.question),!0))}catch(e){throw B.error(e instanceof Error?e.message:`Failed to load the chatbot. Please reload the page.`,{duration:1e4,unstyled:!0,classes:{toast:`toast`}}),e}},setTarget(e,t){Z.targets[e]=t},goto(e,t=!1){if(!(!t&&(0,st.default)(Z.data.route,e)))switch(Z.data.route=e,window.LIIPGPT_LISTENERS?.route?.(e),e.name){case`consent-page`:break;case`start-page`:e.prefill&&(Z.data.chatInputValue=e.prefill);break;case`chat-page`:if(Z.data.chatInputValue=e.query??``,Z.data.predefinedQuestionId=e.predefinedQuestionId,Z.data.switchQuestionId=e.switchQuestionId,e.query&&(this.onSubmit(),Z.data.chatConfig.addQueryToUrlParams)){let t=new URLSearchParams(window.location.search);t.set(`q`,e.query),e.predefinedQuestionId?t.set(`id`,e.predefinedQuestionId):t.delete(`id`),e.switchQuestionId?t.set(`sid`,e.switchQuestionId):t.delete(`sid`),history.pushState(null,``,`?${t.toString()}${window.location.hash}`)}break}},getSelectorConfig(e){let t=Z.data.chatConfig.selectorsConfig.find(t=>t.settingName===e);if(!t)throw Error(`Setting ${e} not found`);return t},getPrettifiedSelectorValues(){let e=Object.entries(Z.data.selectorValues).map(([e,t])=>{let n;try{n=this.getSelectorConfig(e)}catch(t){console.error(`Error getting selector config for ${e}: ${t}`);return}return n.type===`single-select`?[e,t[0]]:[e,t]}).filter(e=>!!e);return Object.fromEntries(e)},setSelectorValue(e,t){let n=this.getSelectorConfig(e);if(!n){console.warn(`Trying to set setting ${e} but it is not defined in the chat config`);return}if(n.type===`single-select`&&t.length>1){console.warn(`Trying to set multiple values for single-select setting ${e}`);return}Z.data.selectorValues[e]=t,K(Z.data.selectorValues,Z.data.chatConfig.selectorsConfig)},resetSelectorToDefaults(e){let t=this.getSelectorConfig(e);if(!t){console.warn(`Trying to reset setting ${e} but it is not defined in the chat config`);return}let n=t.defaultValues??(t.allowEmpty?[]:[t.values[0]]).filter(Boolean);return at(e),Z.data.selectorValues[e]=n,K(Z.data.selectorValues,Z.data.chatConfig.selectorsConfig),n},async getPredefinedQuestions(e){if($?.hidePredefinedQuestions)return[];try{return Q.getPredefinedQuestions({url:window.location.origin+window.location.pathname,language:e})}catch(e){return console.warn(`Failed to load predefined questions:`,e),[]}},setColorScheme(e){Z.data.selectedColorScheme=e,Z.data.currentColorScheme=se(e),this.setAriaLiveStatusMessage(e===`dark`?Z.t.ariaDarkSelected:Z.t.ariaLightSelected)},async abort(){await mt?.abort()},changeConversationState(e){Z.data.currentConversationState=e,window.LIIPGPT_LISTENERS?.conversation?.(e)},onInput(e){Z.data.chatConfig.blockPII&&(Z.data.questionHasPii=nt(e)),Z.data.chatInputValue=e,Z.data.predefinedQuestionId=void 0,Z.data.switchQuestionId=void 0},onSubmit(e=!1,t,n=!1){let r=Qe(Z.data.chatConfig.parentPageContext?.extractSelectors);if(Z.data.questionHasPii){console.warn(`Question contains PII, not submitting:`,Z.data.questionHasPii);return}let i=Z.data.chatConfig.questionPrefix?`${Z.data.chatConfig.questionPrefix} ${Z.data.chatInputValue}`:Z.data.chatInputValue;n||(Z.data.history.push(...X(Z.data.chatConfig.messageAdditions.user.before)),Z.data.history.push({type:`user`,time:new Date().toISOString(),message:Z.data.chatInputValue}),Z.data.history.push(...X(Z.data.chatConfig.messageAdditions.user.after)));let a=Z.data.history.push(...X(Z.data.chatConfig.messageAdditions.bot.before));Z.data.history.push({id:`UNRESOLVED`,state:`loading`,errors:[],type:`bot`,time:new Date().toISOString(),message:{markdown:``,html:``,text:``},references:{all:[],used:[],unused:[]}});let o=!1,s=!1,c={features:$.features?$.features.trim().split(`,`):[`formatting`],mode:$.mode||void 0,cache:$.cache||void 0,onError:e=>{this.showErrorToast(e),window.LIIPGPT_LISTENERS?.error?.(e),(e===`pii-detected`||e===`blocked`)&&this.editLatestQuestion()},onMessage:e=>{e.type===`topic-selected`&&(Z.data.selectedTopic={label:e.label,placeholder:e.placeholder,locked:pt($.additionalStartParameters)}),e.type===`state`&&e.state!==`history-entry-initialized`&&!s&&(s=!0,this.setAriaLiveStatusMessage(Z.t.ariaQuestionSent))},lang:Z.data.language,selectorValues:{...this.getPrettifiedSelectorValues(),context:et(),...t},predefinedQuestionId:Z.data.predefinedQuestionId,switchQuestionId:Z.data.switchQuestionId,onEmbed:e=>{let t=Z.data.history[a];t&&t.type===`bot`&&!t.message.markdown?(Z.data.history[a]={...e,id:t.id??A()},o=!0):Z.data.history.push({...e,id:A()})}};Z.data.predefinedQuestionId=void 0,Z.data.switchQuestionId=void 0,r.length&&(c.selectorValues.parentPageContextHtml=r);let l=(e,t)=>{try{let n=new URL(e),r=new URL(t);return n.origin===r.origin&&n.pathname===r.pathname}catch{return!1}},u=Z.data.chatConfig.sendReferrer??`all`;if([`all`,`own`,`location`].includes(u)){let e=u===`location`||Z.data.props.flyout,t;t=e?`${window.location.protocol}//${window.location.host}${window.location.pathname}`:l(document.referrer,window.location.href)?null:document.referrer;let n=u===`own`&&!Z.data.props.flyout&&t&&!t.startsWith(window.location.origin);c.referrer=t&&!n?t:void 0}Z.data.props.source?c.source=Z.data.props.source:Z.data.props.flyout&&(c.source=`flyout`),Z.data.currentConversationId||(Z.data.currentConversationId=Q.createConversationId());let d=Q.chat(Z.data.currentConversationId,i,c);mt=d,Z.data.lastChatResponseId=d.id,Z.data.currentConversationState!==`searching`&&this.changeConversationState(`searching`);let f=!1,p,m=!!Z.data.currentReferencesAsideId;(e&&m||!e&&Z.data.chatConfig.showReferencesByDefault)&&(Z.data.isAsideMobile||this.openReferencesAside(d.id)),d.subscribe(e=>{if(!o&&Z.data.history[a]&&(Z.data.history[a]={question:Z.data.chatInputValue,...e}),Z.data.chatConfig.addRetrievalQuestionToUrlParams&&e.retrievalQuestion){let t=new URLSearchParams(window.location.search);t.get(`search`)!==e.retrievalQuestion&&(t.set(`search`,e.retrievalQuestion),history.replaceState(null,``,`?${t.toString()}${window.location.hash}`))}Z.data.chatConfig.showReferencesByDefault&&!Z.data.wasReferencesAsideClosed&&Z.data.currentReferencesAsideId!==e.id&&!Z.data.isAsideMobile&&this.openReferencesAside(e.id),e.state===`streaming`&&Z.data.currentConversationState!==`answering`&&this.changeConversationState(`answering`),e.state===`done`&&(this.changeConversationState(`idle`),f||(f=!0,this.setAriaLiveStatusMessage(`${Z.t.ariaAnswerReady} ... ${e.message.text} ... ${Z.data.selectedTopic?Z.t.ariaAnswerFinishedWithSelectedTopic:Z.t.ariaAnswerFinished}`),Z.data.history.push(...X(Z.data.chatConfig.messageAdditions.bot.after))),Z.data.currentReferencesAsideId&&e.references.used.length>0?(clearTimeout(p),p=setTimeout(()=>{this.openReferencesAside(e.id)},100)):this.closeReferencesAside())}),Z.data.chatInputValue=``},async onStartSpeechRecognition(){try{if(!await Ge()){this.showErrorToast(`speech-not-supported`);return}if(await navigator.mediaDevices.getUserMedia({audio:!0}),H.isSupported())Z.data.chatInputValue=``,Z.currentAudioRecorder=new H({onDataAvailable:async e=>{Z.isTranscribing=!0,await this.handleTranscription(e)},onError:()=>{this.showErrorToast(`speech-microphone-access-denied`),Z.currentAudioRecorder=null,Z.isTranscribing=!1},onVolumeChange:e=>{Z.currentAudioVolume=e}}),Z.currentAudioRecorder.start();else{this.showErrorToast(`speech-not-supported`);return}}catch(e){throw this.showErrorToast(`speech-microphone-access-denied`),Z.currentAudioRecorder=null,Z.isTranscribing=!1,e}},editLatestQuestion(){let e=Z.data.history.findLastIndex(e=>e?.type===`user`);if(e===-1){console.error(`No last user question, available`);return}let t=Z.data.history.splice(e)[0];Z.data.chatInputValue=t.message},onStopSpeechRecognition(){if(Z.currentAudioRecorder){let e=Z.currentAudioRecorder;Z.currentAudioRecorder=null,e.stop()}Z.currentAudioVolume=0},async handleTranscription(e){if(!e){console.warn(`No audio data received`);return}try{let t=await Q.transcribeAudio(e,{lang:Z.data.language});if(t.error){this.showErrorToast(`speech-transcription-failed`);return}if(t.transcript.trim()){if(Z.data.chatConfig.blockPII&&(Z.data.questionHasPii=nt(t.transcript.trim()),Z.data.questionHasPii))return;Z.data.chatInputValue=t.transcript.trim()}else this.showErrorToast(`speech-no-text-detected`)}catch(e){console.error(`Speech transcription error:`,e),this.showErrorToast(`speech-transcription-failed`)}finally{Z.currentAudioRecorder=null,Z.isTranscribing=!1,Z.currentAudioVolume=0}},async startFromHandoverOrRoute(e){let{cID:t,followUpQuestion:n}=ut();if(!t){e();return}let r=await this.rehydrateFromSearchSummaryHandover(t);n?(Z.data.route={name:`chat-page`},Z.data.chatInputValue=n,this.onSubmit(!0)):r||e(),dt()},async rehydrateFromSearchSummaryHandover(e){Z.data.currentConversationId=e;let t=await Q.getMetadata(),n=t.mode===`ready`?t.userId:void 0,r=n?await Q.getChatHistory(e,n):[];if(r.length===0)return Z.data.currentConversationId=void 0,!1;let i={all:[],used:[],unused:[]},a=new fe({newTabSrText:Z.t.ariaOpensInNewTab}),o=[];for(let{question:e,answer:t}of r)o.push({type:`user`,time:new Date().toISOString(),message:e,id:A()}),o.push({id:A(),state:`done`,errors:[],type:`bot`,time:new Date().toISOString(),message:{markdown:t,html:a.toHTML(t,i),text:t},references:{all:[],used:[],unused:[]}});return Z.data.history=[...X(Z.data.chatConfig.messageAdditions.init),...o],Z.data.route={name:`chat-page`},!0},async onStartConversation(e,t,n){await this.abort(),Z.data.history=X(Z.data.chatConfig.messageAdditions.init),Z.data.currentConversationId=Q.createConversationId(),this.goto({name:`chat-page`,query:e,predefinedQuestionId:t,switchQuestionId:n})},async onNewConversation(){await this.abort();let e=Z.data.currentConversationId;if(Z.data.currentConversationId=void 0,Z.data.currentReferencesAsideId=void 0,Z.data.history=X(Z.data.chatConfig.messageAdditions.init),Z.data.predefinedQuestionId=void 0,Z.data.switchQuestionId=void 0,Z.data.selectedTopic=void 0,Z.data.chatConfig.addQueryToUrlParams){let e=new URLSearchParams(window.location.search);e.delete(`q`),e.delete(`id`),e.delete(`sid`),history.pushState(null,``,`?${e.toString()}${window.location.hash}`)}this.goto({name:`start-page`}),e&&Q.userAction(`newDiscussion`,{conversationId:e,lang:Z.data.language}).catch(e=>{console.error(`Failed to notify backend of new discussion:`,e)})},async onChangeTopic(){let e=Z.data.chatConfig.selectedTopicResetPredefinedQuestionId;if(!e){console.warn("No selectedTopicResetPredefinedQuestionId available to reset the selected topic. Set it in the `Config DB` in the backend, in a `generalConfig` default set.");return}await this.abort(),Z.data.selectedTopic=void 0,Z.data.predefinedQuestionId=e,Z.data.switchQuestionId=void 0,Z.data.chatInputValue=``,this.onSubmit(!0,void 0,!0)},showSuccessToast(e){B.success(Z.t[e],{unstyled:!0,duration:3e3,classes:{toast:`toast`}})},showErrorToast(e){B.error(Z.errorTranslations[e],{unstyled:!0,duration:3e3,classes:{toast:`toast`}})},async submitFeedback(e){try{let t=Z.data.conversationFeedbackId||Z.data.lastChatResponseId;if(!t)throw new q(`Tried to give feedback with no id.`);let n=Z.data.history.find(e=>e.type===`bot`&&e.id===t);await Q.feedback(t,n?.question??``,e),setTimeout(()=>{this.showSuccessToast(`thankYouForFeedback`)},500)}catch(e){console.error(`Feedback failed:`,e),this.showErrorToast(`feedback-failed`)}},toggleReferencesAside(e){Z.data.currentReferencesAsideId===e?this.closeReferencesAside():this.openReferencesAside(e)},openReferencesAside(e){Z.data.currentReferencesAsideId=e,this.setOpenOverlay(!0)},closeReferencesAside(){Z.data.currentReferencesAsideId=void 0,Z.data.wasReferencesAsideClosed=!0,this.setOpenOverlay(!1)},setAsideMobile(e){Z.data.isAsideMobile=e},openFlyout(){Z.data.flyoutIsOpen=!0},closeFlyout(){Z.data.flyoutIsOpen=!1},openConversationFeedback(){Z.data.conversationFeedbackIsOpen=!0,this.setOpenOverlay(!0)},openMessageFeedback(e){Z.data.conversationFeedbackId=e},closeFeedback(){Z.data.conversationFeedbackIsOpen=!1,Z.data.conversationFeedbackId=void 0,this.setOpenOverlay(!1)},openAnswerForm(e){Z.data.answerFormMessageId=e,this.setOpenOverlay(!0)},closeAnswerForm(){Z.data.answerFormMessageId=void 0,this.setOpenOverlay(!1)},async submitAnswerForm(e){try{let t=Z.data.chatConfig.answerForm,n=Z.data.answerFormMessageId;if(!t)throw new q(`Tried to submit the answer form with no answerForm config.`);if(!n)throw new q(`Tried to submit the answer form with no message id.`);let r=Z.data.history.findIndex(e=>e.type===`bot`&&e.id===n),i=r===-1?void 0:Z.data.history[r],a=Z.data.history.slice(0,r===-1?void 0:r).findLast(e=>e.type===`user`)?.message,o=i?.question||a||(i?.type===`bot`?i.retrievalQuestion??``:``);await Q.submitAnswerForm({receiverEmail:t.receiverEmail,fields:t.fields.map(t=>({name:t.name,value:e[t.name]??``})),question:o,answer:i?.type===`bot`?i.message.text:``,requestId:n,lang:Z.data.language}),setTimeout(()=>{this.showSuccessToast(`answerFormThankYou`)},500)}catch(e){console.error(`Answer form submission failed:`,e),this.showErrorToast(`answer-form-failed`)}},setOpenOverlay(e){Z.data.hasOpenedOverlays=e},setAriaLiveStatusMessage(e){Z.data.ariaLiveStatusMessage=e,clearTimeout(Z.data.ariaLiveStatusMessageClearingTimeout),Z.data.ariaLiveStatusMessageClearingTimeout=setTimeout(()=>{Z.data.ariaLiveStatusMessage=``},Z.ariaLiveMessagesClearingTimeoutDuration)},closePopup(){window.location.hash=``},checkForOpenedPopup(){let e=window.location.hash.slice(1),t=Z.t.popups?.find(t=>t.hash===e);t?Z.data.openedPopup=t:Z.data.openedPopup=void 0},async thumbs(e,t){try{let n=Z.data.history.find(t=>t.type===`bot`&&t.id===e),r=n?.type===`bot`?n:void 0;if(r?.feedback===t)return;t===`up`?await Q.thumbsUp(e,n?.question??``):await Q.thumbsDown(e,n?.question??``);let i=!r?.feedback;r&&(r.feedback=t),i&&this.showSuccessToast(`thankYouForFeedback`)}catch(e){console.error(`Feedback failed:`,e),this.showErrorToast(`feedback-failed`)}},async onLanguageChange(e){if(Z.data.language=he(e,Z.data.chatConfig.supportedLanguages),me(Z.data.language,Z.targets.mainElement),Z.data.predefinedQuestions=await this.getPredefinedQuestions(Z.data.language),this.setAriaLiveStatusMessage(Z.t.ariaLanguageChanged),Z.data.chatConfig.reflectLanguageInPath){let e=new URL(window.location.href);e.pathname=`/${Z.data.language}`,window.history.replaceState({},``,e.toString())}},async acceptTerms(){Z.data.termsAccepted=!0;try{O.setItem(`liipgpt:termsAccepted`,`true`)}catch(e){console.warn(`Failed to save terms acceptance to storage:`,e)}this.closePopup(),await h(),this.goto(J(Z.data.chatConfig.forceConsent??!1,!0,Z.data.chatConfig.forceChatPage??!1,ct(Z.data.props.autofirePredefinedQuestionId,Z.data.predefinedQuestions),Z.data.props.question))},updateChatInput(e){Z.data.chatInputValue=e}});function gt(e,t){f(t,!0);let n=w(t,`href`,7),r=w(t,`target`,7),i=w(t,`onclick`,7),a=w(t,`className`,23,()=>[]),o=w(t,`isStandalone`,7,!1),p=w(t,`children`,7),h=w(t,`type`,7,`button`),g=w(t,`use`,7),v=w(t,`class`,7),y=re(t,[`$$slots`,`$$events`,`$$legacy`,`$$host`,`href`,`target`,`onclick`,`className`,`isStandalone`,`children`,`type`,`use`,`class`]),b=S(()=>n()?`a`:`button`),x=S(()=>[...Array.isArray(a())?a():a()?[a()]:[],...v()?[v()]:[]]),ee=()=>({}),C=S(()=>g()??ee);var ie={get href(){return n()},set href(e){n(e),d()},get target(){return r()},set target(e){r(e),d()},get onclick(){return i()},set onclick(e){i(e),d()},get className(){return a()},set className(e=[]){a(e),d()},get isStandalone(){return o()},set isStandalone(e=!1){o(e),d()},get children(){return p()},set children(e){p(e),d()},get type(){return h()},set type(e=`button`){h(e),d()},get use(){return g()},set use(e){g(e),d()},get class(){return v()},set class(e){v(e),d()}},D=m();return u(E(D),()=>T(b),!1,(e,t)=>{te(e,e=>T(C)?.(e)),_(e,()=>({...y,onclick:n()?void 0:i(),type:n()?void 0:h(),href:n(),role:n()?`link`:`button`,target:n()?r():void 0,class:T(x),[ne]:{"open-button--standalone":o()}}));var a=m();c(E(a),p),s(t,a)}),s(e,D),l(ie)}b(gt,{href:{},target:{},onclick:{},className:{},isStandalone:{},children:{},type:{},use:{},class:{}},[],[],{mode:`open`});export{H as a,B as c,be as d,A as f,$e as i,z as l,Z as n,Je as o,ht as r,Ie as s,gt as t,Me as u};