@liip/liipgpt 3.11.2 → 3.12.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (56) hide show
  1. package/button/liipgpt-button.iife.js +1 -1
  2. package/button/liipgpt-button.js +1 -1
  3. package/chat/liipgpt-chat.iife.js +17 -17
  4. package/chat/liipgpt-chat.js +17 -17
  5. package/config/index.cjs +1 -0
  6. package/config/index.d.ts +4 -0
  7. package/config/index.js +1 -0
  8. package/configurator/_app/env.js +1 -1
  9. package/configurator/_app/immutable/chunks/{BZRp1cWz.js → B4lUgYsH.js} +1 -1
  10. package/configurator/_app/immutable/chunks/{Bzr04ZcD.js → BAn02Khb.js} +1 -1
  11. package/configurator/_app/immutable/chunks/{CIHHNprL.js → BJVrdkuG.js} +1 -1
  12. package/configurator/_app/immutable/chunks/BTdvPkyd.js +1 -0
  13. package/configurator/_app/immutable/chunks/BndQp4ie.js +1 -0
  14. package/configurator/_app/immutable/chunks/C6xrTJ8-.js +1 -0
  15. package/configurator/_app/immutable/chunks/CNNudH1c.js +15 -0
  16. package/configurator/_app/immutable/chunks/{SzunIEqj.js → DHHLckcz.js} +1 -1
  17. package/configurator/_app/immutable/chunks/DK3lEKRX.js +3 -0
  18. package/configurator/_app/immutable/chunks/{MXZgHzgQ.js → DS0EeZTa.js} +1 -1
  19. package/configurator/_app/immutable/chunks/DUHuqsF-.js +1 -0
  20. package/configurator/_app/immutable/chunks/{BBBsf1IY.js → DWQwd7UL.js} +2 -2
  21. package/configurator/_app/immutable/chunks/{CD6_VnKE.js → DmZKIk3Y.js} +1 -1
  22. package/configurator/_app/immutable/chunks/{hdHt6us6.js → I5DxyXWx.js} +1 -1
  23. package/configurator/_app/immutable/chunks/IVrT20gg.js +16 -0
  24. package/configurator/_app/immutable/chunks/MqTIsSeD.js +1 -0
  25. package/configurator/_app/immutable/chunks/{6ikKRAEA.js → hJTLHSgs.js} +2 -2
  26. package/configurator/_app/immutable/chunks/{C32fguu7.js → o5n3JJnR.js} +1 -1
  27. package/configurator/_app/immutable/chunks/qdgQQPPN.js +143 -0
  28. package/configurator/_app/immutable/chunks/z-U4HNd3.js +1 -0
  29. package/configurator/_app/immutable/entry/{app.B_61kXQ4.js → app.CFzWtUmE.js} +2 -2
  30. package/configurator/_app/immutable/entry/start.CmVJPKRp.js +1 -0
  31. package/configurator/_app/immutable/nodes/{0.Bi08LRX0.js → 0.C5XdevBn.js} +2 -1
  32. package/configurator/_app/immutable/nodes/1.SYxOPfTY.js +1 -0
  33. package/configurator/_app/immutable/nodes/{2.BNeVNh0R.js → 2.Bldafw2d.js} +9 -9
  34. package/configurator/_app/immutable/nodes/{3.D1rPht9H.js → 3.DamO4w17.js} +1 -1
  35. package/configurator/_app/version.json +1 -1
  36. package/configurator/index.html +7 -7
  37. package/configurator/sidebar.html +7 -7
  38. package/index.cjs +1 -0
  39. package/index.d.ts +17 -1
  40. package/index.js +1 -0
  41. package/package.json +1 -1
  42. package/search-summary/liipgpt-search-summary.iife.js +2 -2
  43. package/search-summary/liipgpt-search-summary.js +2 -2
  44. package/search-summary/{load-chat-config-BnSgm085.js → load-chat-config-C0gjKjFi.js} +1 -1
  45. package/configurator/_app/immutable/chunks/59Qy4pzN.js +0 -1
  46. package/configurator/_app/immutable/chunks/C1yKSdkL.js +0 -143
  47. package/configurator/_app/immutable/chunks/COh_IaBC.js +0 -1
  48. package/configurator/_app/immutable/chunks/CYtlA8cd.js +0 -1
  49. package/configurator/_app/immutable/chunks/Ct3VxfiR.js +0 -1
  50. package/configurator/_app/immutable/chunks/CzUv7c8S.js +0 -1
  51. package/configurator/_app/immutable/chunks/DBQyBiSh.js +0 -16
  52. package/configurator/_app/immutable/chunks/oxab-KY5.js +0 -15
  53. package/configurator/_app/immutable/chunks/rEsbAd0y.js +0 -3
  54. package/configurator/_app/immutable/chunks/s6x81Lfq.js +0 -1
  55. package/configurator/_app/immutable/entry/start.BOhSSe81.js +0 -1
  56. package/configurator/_app/immutable/nodes/1.E_trvDMx.js +0 -1
package/config/index.cjs CHANGED
@@ -740,6 +740,7 @@ var completeChatConfigSchema = import_mini7.z.object({
740
740
  showContextMenu: import_mini7.z.boolean(),
741
741
  showContextInfo: import_mini7.z.boolean(),
742
742
  showReferencesByDefault: import_mini7.z.boolean(),
743
+ referencesLayout: import_mini7.z.optional(import_mini7.z.enum(["aside", "inline"])),
743
744
  showExpandedSelectors: import_mini7.z.boolean(),
744
745
  showTextFeedback: import_mini7.z.boolean(),
745
746
  inlineLayout: import_mini7.z.boolean(),
package/config/index.d.ts CHANGED
@@ -2704,6 +2704,10 @@ export declare const chatConfigSchema: z.ZodMiniObject<{
2704
2704
  showContextMenu: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
2705
2705
  showContextInfo: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
2706
2706
  showReferencesByDefault: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
2707
+ referencesLayout: z.ZodMiniOptional<z.ZodMiniOptional<z.ZodMiniEnum<{
2708
+ aside: "aside";
2709
+ inline: "inline";
2710
+ }>>>;
2707
2711
  showExpandedSelectors: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
2708
2712
  showTextFeedback: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
2709
2713
  inlineLayout: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
package/config/index.js CHANGED
@@ -695,6 +695,7 @@ var completeChatConfigSchema = z7.object({
695
695
  showContextMenu: z7.boolean(),
696
696
  showContextInfo: z7.boolean(),
697
697
  showReferencesByDefault: z7.boolean(),
698
+ referencesLayout: z7.optional(z7.enum(["aside", "inline"])),
698
699
  showExpandedSelectors: z7.boolean(),
699
700
  showTextFeedback: z7.boolean(),
700
701
  inlineLayout: z7.boolean(),
@@ -1 +1 @@
1
- export const env={"PUBLIC_API_URL":"https://liipgpt.dev.cluster.liipgpt.ch/liipgpt","PUBLIC_CI_COMMIT_TAG":"3.11.2"}
1
+ export const env={"PUBLIC_API_URL":"https://liipgpt.dev.cluster.liipgpt.ch/liipgpt","PUBLIC_CI_COMMIT_TAG":"3.12.0"}
@@ -1 +1 @@
1
- import"./rEsbAd0y.js";import{a as e,i as t,r as n}from"./59Qy4pzN.js";var r={get data(){return e.data},get error(){return e.error},get form(){return e.form},get params(){return e.params},get route(){return e.route},get state(){return e.state},get status(){return e.status},get url(){return e.url}};Object.defineProperty({get from(){return t.current?t.current.from:null},get to(){return t.current?t.current.to:null},get type(){return t.current?t.current.type:null},get willUnload(){return t.current?t.current.willUnload:null},get delta(){return t.current?t.current.delta:null},get complete(){return t.current?t.current.complete:null}},`current`,{get(){throw Error(`Replace navigating.current.<prop> with navigating.<prop>`)}}),n.updated.check;var i=r;export{i as t};
1
+ import"./DK3lEKRX.js";import{a as e,i as t,r as n}from"./z-U4HNd3.js";var r={get data(){return e.data},get error(){return e.error},get form(){return e.form},get params(){return e.params},get route(){return e.route},get state(){return e.state},get status(){return e.status},get url(){return e.url}};Object.defineProperty({get from(){return t.current?t.current.from:null},get to(){return t.current?t.current.to:null},get type(){return t.current?t.current.type:null},get willUnload(){return t.current?t.current.willUnload:null},get delta(){return t.current?t.current.delta:null},get complete(){return t.current?t.current.complete:null}},`current`,{get(){throw Error(`Replace navigating.current.<prop> with navigating.<prop>`)}}),n.updated.check;var i=r;export{i as t};
@@ -1,4 +1,4 @@
1
- import{Dt as e,Et as t,Nt as n,Tt as r,it as i,jt as a,ot as o,ut as s,wt as c}from"./rEsbAd0y.js";import{S as l,a as u,b as d,h as f,l as p,m,o as ee,p as h,y as te}from"./BaFk5JeE.js";import{c as ne,f as re,l as g,o as ie,s as ae,u as oe}from"./CIHHNprL.js";var{entries:se,setPrototypeOf:ce,isFrozen:le,getPrototypeOf:ue,getOwnPropertyDescriptor:_}=Object,{freeze:v,seal:y,create:de}=Object,{apply:fe,construct:pe}=typeof Reflect<`u`&&Reflect;v||=function(e){return e},y||=function(e){return e},fe||=function(e,t){var n=[...arguments].slice(2);return e.apply(t,n)},pe||=function(e){return new e(...[...arguments].slice(1))};var me=S(Array.prototype.forEach),he=S(Array.prototype.lastIndexOf),ge=S(Array.prototype.pop),_e=S(Array.prototype.push),ve=S(Array.prototype.splice),ye=S(String.prototype.toLowerCase),be=S(String.prototype.toString),xe=S(String.prototype.match),Se=S(String.prototype.replace),Ce=S(String.prototype.indexOf),we=S(String.prototype.trim),b=S(Object.prototype.hasOwnProperty),x=S(RegExp.prototype.test),Te=Ee(TypeError);function S(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);var n=[...arguments].slice(1);return fe(e,t,n)}}function Ee(e){return function(){return pe(e,[...arguments])}}function C(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:ye;ce&&ce(e,null);let r=t.length;for(;r--;){let i=t[r];if(typeof i==`string`){let e=n(i);e!==i&&(le(t)||(t[r]=e),i=e)}e[i]=!0}return e}function De(e){for(let t=0;t<e.length;t++)b(e,t)||(e[t]=null);return e}function w(e){let t=de(null);for(let[n,r]of se(e))b(e,n)&&(Array.isArray(r)?t[n]=De(r):r&&typeof r==`object`&&r.constructor===Object?t[n]=w(r):t[n]=r);return t}function Oe(e,t){for(;e!==null;){let n=_(e,t);if(n){if(n.get)return S(n.get);if(typeof n.value==`function`)return S(n.value)}e=ue(e)}function n(){return null}return n}var ke=v(`a.abbr.acronym.address.area.article.aside.audio.b.bdi.bdo.big.blink.blockquote.body.br.button.canvas.caption.center.cite.code.col.colgroup.content.data.datalist.dd.decorator.del.details.dfn.dialog.dir.div.dl.dt.element.em.fieldset.figcaption.figure.font.footer.form.h1.h2.h3.h4.h5.h6.head.header.hgroup.hr.html.i.img.input.ins.kbd.label.legend.li.main.map.mark.marquee.menu.menuitem.meter.nav.nobr.ol.optgroup.option.output.p.picture.pre.progress.q.rp.rt.ruby.s.samp.search.section.select.shadow.slot.small.source.spacer.span.strike.strong.style.sub.summary.sup.table.tbody.td.template.textarea.tfoot.th.thead.time.tr.track.tt.u.ul.var.video.wbr`.split(`.`)),Ae=v(`svg.a.altglyph.altglyphdef.altglyphitem.animatecolor.animatemotion.animatetransform.circle.clippath.defs.desc.ellipse.enterkeyhint.exportparts.filter.font.g.glyph.glyphref.hkern.image.inputmode.line.lineargradient.marker.mask.metadata.mpath.part.path.pattern.polygon.polyline.radialgradient.rect.stop.style.switch.symbol.text.textpath.title.tref.tspan.view.vkern`.split(`.`)),je=v([`feBlend`,`feColorMatrix`,`feComponentTransfer`,`feComposite`,`feConvolveMatrix`,`feDiffuseLighting`,`feDisplacementMap`,`feDistantLight`,`feDropShadow`,`feFlood`,`feFuncA`,`feFuncB`,`feFuncG`,`feFuncR`,`feGaussianBlur`,`feImage`,`feMerge`,`feMergeNode`,`feMorphology`,`feOffset`,`fePointLight`,`feSpecularLighting`,`feSpotLight`,`feTile`,`feTurbulence`]),Me=v([`animate`,`color-profile`,`cursor`,`discard`,`font-face`,`font-face-format`,`font-face-name`,`font-face-src`,`font-face-uri`,`foreignobject`,`hatch`,`hatchpath`,`mesh`,`meshgradient`,`meshpatch`,`meshrow`,`missing-glyph`,`script`,`set`,`solidcolor`,`unknown`,`use`]),Ne=v(`math.menclose.merror.mfenced.mfrac.mglyph.mi.mlabeledtr.mmultiscripts.mn.mo.mover.mpadded.mphantom.mroot.mrow.ms.mspace.msqrt.mstyle.msub.msup.msubsup.mtable.mtd.mtext.mtr.munder.munderover.mprescripts`.split(`.`)),Pe=v([`maction`,`maligngroup`,`malignmark`,`mlongdiv`,`mscarries`,`mscarry`,`msgroup`,`mstack`,`msline`,`msrow`,`semantics`,`annotation`,`annotation-xml`,`mprescripts`,`none`]),Fe=v([`#text`]),Ie=v(`accept.action.align.alt.autocapitalize.autocomplete.autopictureinpicture.autoplay.background.bgcolor.border.capture.cellpadding.cellspacing.checked.cite.class.clear.color.cols.colspan.controls.controlslist.coords.crossorigin.datetime.decoding.default.dir.disabled.disablepictureinpicture.disableremoteplayback.download.draggable.enctype.enterkeyhint.exportparts.face.for.headers.height.hidden.high.href.hreflang.id.inert.inputmode.integrity.ismap.kind.label.lang.list.loading.loop.low.max.maxlength.media.method.min.minlength.multiple.muted.name.nonce.noshade.novalidate.nowrap.open.optimum.part.pattern.placeholder.playsinline.popover.popovertarget.popovertargetaction.poster.preload.pubdate.radiogroup.readonly.rel.required.rev.reversed.role.rows.rowspan.spellcheck.scope.selected.shape.size.sizes.slot.span.srclang.start.src.srcset.step.style.summary.tabindex.title.translate.type.usemap.valign.value.width.wrap.xmlns.slot`.split(`.`)),Le=v(`accent-height.accumulate.additive.alignment-baseline.amplitude.ascent.attributename.attributetype.azimuth.basefrequency.baseline-shift.begin.bias.by.class.clip.clippathunits.clip-path.clip-rule.color.color-interpolation.color-interpolation-filters.color-profile.color-rendering.cx.cy.d.dx.dy.diffuseconstant.direction.display.divisor.dur.edgemode.elevation.end.exponent.fill.fill-opacity.fill-rule.filter.filterunits.flood-color.flood-opacity.font-family.font-size.font-size-adjust.font-stretch.font-style.font-variant.font-weight.fx.fy.g1.g2.glyph-name.glyphref.gradientunits.gradienttransform.height.href.id.image-rendering.in.in2.intercept.k.k1.k2.k3.k4.kerning.keypoints.keysplines.keytimes.lang.lengthadjust.letter-spacing.kernelmatrix.kernelunitlength.lighting-color.local.marker-end.marker-mid.marker-start.markerheight.markerunits.markerwidth.maskcontentunits.maskunits.max.mask.mask-type.media.method.mode.min.name.numoctaves.offset.operator.opacity.order.orient.orientation.origin.overflow.paint-order.path.pathlength.patterncontentunits.patterntransform.patternunits.points.preservealpha.preserveaspectratio.primitiveunits.r.rx.ry.radius.refx.refy.repeatcount.repeatdur.restart.result.rotate.scale.seed.shape-rendering.slope.specularconstant.specularexponent.spreadmethod.startoffset.stddeviation.stitchtiles.stop-color.stop-opacity.stroke-dasharray.stroke-dashoffset.stroke-linecap.stroke-linejoin.stroke-miterlimit.stroke-opacity.stroke.stroke-width.style.surfacescale.systemlanguage.tabindex.tablevalues.targetx.targety.transform.transform-origin.text-anchor.text-decoration.text-rendering.textlength.type.u1.u2.unicode.values.viewbox.visibility.version.vert-adv-y.vert-origin-x.vert-origin-y.width.word-spacing.wrap.writing-mode.xchannelselector.ychannelselector.x.x1.x2.xmlns.y.y1.y2.z.zoomandpan`.split(`.`)),Re=v(`accent.accentunder.align.bevelled.close.columnsalign.columnlines.columnspan.denomalign.depth.dir.display.displaystyle.encoding.fence.frame.height.href.id.largeop.length.linethickness.lspace.lquote.mathbackground.mathcolor.mathsize.mathvariant.maxsize.minsize.movablelimits.notation.numalign.open.rowalign.rowlines.rowspacing.rowspan.rspace.rquote.scriptlevel.scriptminsize.scriptsizemultiplier.selection.separator.separators.stretchy.subscriptshift.supscriptshift.symmetric.voffset.width.xmlns`.split(`.`)),ze=v([`xlink:href`,`xml:id`,`xlink:title`,`xml:space`,`xmlns:xlink`]),Be=y(/\{\{[\w\W]*|[\w\W]*\}\}/gm),Ve=y(/<%[\w\W]*|[\w\W]*%>/gm),He=y(/\$\{[\w\W]*/gm),T=y(/^data-[\-\w.\u00B7-\uFFFF]+$/),Ue=y(/^aria-[\-\w]+$/),We=y(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),E=y(/^(?:\w+script|data):/i),Ge=y(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Ke=y(/^html$/i),D=y(/^[a-z][.\w]*(-[.\w]+)+$/i),qe=Object.freeze({__proto__:null,ARIA_ATTR:Ue,ATTR_WHITESPACE:Ge,CUSTOM_ELEMENT:D,DATA_ATTR:T,DOCTYPE_NAME:Ke,ERB_EXPR:Ve,IS_ALLOWED_URI:We,IS_SCRIPT_OR_DATA:E,MUSTACHE_EXPR:Be,TMPLIT_EXPR:He}),Je={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,progressingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},Ye=function(){return typeof window>`u`?null:window},Xe=function(e,t){if(typeof e!=`object`||typeof e.createPolicy!=`function`)return null;let n=null,r=`data-tt-policy-suffix`;t&&t.hasAttribute(r)&&(n=t.getAttribute(r));let i=`dompurify`+(n?`#`+n:``);try{return e.createPolicy(i,{createHTML(e){return e},createScriptURL(e){return e}})}catch{return console.warn(`TrustedTypes policy `+i+` could not be created.`),null}},Ze=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function Qe(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Ye(),t=e=>Qe(e);if(t.version=`3.3.3`,t.removed=[],!e||!e.document||e.document.nodeType!==Je.document||!e.Element)return t.isSupported=!1,t;let{document:n}=e,r=n,i=r.currentScript,{DocumentFragment:a,HTMLTemplateElement:o,Node:s,Element:c,NodeFilter:l,NamedNodeMap:u=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:d,DOMParser:f,trustedTypes:p}=e,m=c.prototype,ee=Oe(m,`cloneNode`),h=Oe(m,`remove`),te=Oe(m,`nextSibling`),ne=Oe(m,`childNodes`),re=Oe(m,`parentNode`);if(typeof o==`function`){let e=n.createElement(`template`);e.content&&e.content.ownerDocument&&(n=e.content.ownerDocument)}let g,ie=``,{implementation:ae,createNodeIterator:oe,createDocumentFragment:ce,getElementsByTagName:le}=n,{importNode:ue}=r,_=Ze();t.isSupported=typeof se==`function`&&typeof re==`function`&&ae&&ae.createHTMLDocument!==void 0;let{MUSTACHE_EXPR:y,ERB_EXPR:fe,TMPLIT_EXPR:pe,DATA_ATTR:S,ARIA_ATTR:Ee,IS_SCRIPT_OR_DATA:De,ATTR_WHITESPACE:Be,CUSTOM_ELEMENT:Ve}=qe,{IS_ALLOWED_URI:He}=qe,T=null,Ue=C({},[...ke,...Ae,...je,...Ne,...Fe]),E=null,Ge=C({},[...Ie,...Le,...Re,...ze]),D=Object.seal(de(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),$e=null,et=null,O=Object.seal(de(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}})),tt=!0,k=!0,A=!1,j=!0,M=!1,nt=!0,N=!1,P=!1,rt=!1,F=!1,it=!1,at=!1,ot=!0,st=!1,ct=!0,I=!1,L={},R=null,z=C({},[`annotation-xml`,`audio`,`colgroup`,`desc`,`foreignobject`,`head`,`iframe`,`math`,`mi`,`mn`,`mo`,`ms`,`mtext`,`noembed`,`noframes`,`noscript`,`plaintext`,`script`,`style`,`svg`,`template`,`thead`,`title`,`video`,`xmp`]),lt=null,ut=C({},[`audio`,`video`,`img`,`source`,`image`,`track`]),dt=null,ft=C({},[`alt`,`class`,`for`,`id`,`label`,`name`,`pattern`,`placeholder`,`role`,`summary`,`title`,`value`,`style`,`xmlns`]),pt=`http://www.w3.org/1998/Math/MathML`,mt=`http://www.w3.org/2000/svg`,B=`http://www.w3.org/1999/xhtml`,V=B,ht=!1,gt=null,_t=C({},[pt,mt,B],be),H=C({},[`mi`,`mo`,`mn`,`ms`,`mtext`]),U=C({},[`annotation-xml`]),vt=C({},[`title`,`style`,`font`,`a`,`script`]),yt=null,bt=[`application/xhtml+xml`,`text/html`],W=null,xt=null,St=n.createElement(`form`),Ct=function(e){return e instanceof RegExp||e instanceof Function},wt=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(xt&&xt===e)){if((!e||typeof e!=`object`)&&(e={}),e=w(e),yt=bt.indexOf(e.PARSER_MEDIA_TYPE)===-1?`text/html`:e.PARSER_MEDIA_TYPE,W=yt===`application/xhtml+xml`?be:ye,T=b(e,`ALLOWED_TAGS`)?C({},e.ALLOWED_TAGS,W):Ue,E=b(e,`ALLOWED_ATTR`)?C({},e.ALLOWED_ATTR,W):Ge,gt=b(e,`ALLOWED_NAMESPACES`)?C({},e.ALLOWED_NAMESPACES,be):_t,dt=b(e,`ADD_URI_SAFE_ATTR`)?C(w(ft),e.ADD_URI_SAFE_ATTR,W):ft,lt=b(e,`ADD_DATA_URI_TAGS`)?C(w(ut),e.ADD_DATA_URI_TAGS,W):ut,R=b(e,`FORBID_CONTENTS`)?C({},e.FORBID_CONTENTS,W):z,$e=b(e,`FORBID_TAGS`)?C({},e.FORBID_TAGS,W):w({}),et=b(e,`FORBID_ATTR`)?C({},e.FORBID_ATTR,W):w({}),L=b(e,`USE_PROFILES`)?e.USE_PROFILES:!1,tt=e.ALLOW_ARIA_ATTR!==!1,k=e.ALLOW_DATA_ATTR!==!1,A=e.ALLOW_UNKNOWN_PROTOCOLS||!1,j=e.ALLOW_SELF_CLOSE_IN_ATTR!==!1,M=e.SAFE_FOR_TEMPLATES||!1,nt=e.SAFE_FOR_XML!==!1,N=e.WHOLE_DOCUMENT||!1,F=e.RETURN_DOM||!1,it=e.RETURN_DOM_FRAGMENT||!1,at=e.RETURN_TRUSTED_TYPE||!1,rt=e.FORCE_BODY||!1,ot=e.SANITIZE_DOM!==!1,st=e.SANITIZE_NAMED_PROPS||!1,ct=e.KEEP_CONTENT!==!1,I=e.IN_PLACE||!1,He=e.ALLOWED_URI_REGEXP||We,V=e.NAMESPACE||B,H=e.MATHML_TEXT_INTEGRATION_POINTS||H,U=e.HTML_INTEGRATION_POINTS||U,D=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&Ct(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(D.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&Ct(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(D.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements==`boolean`&&(D.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),M&&(k=!1),it&&(F=!0),L&&(T=C({},Fe),E=de(null),L.html===!0&&(C(T,ke),C(E,Ie)),L.svg===!0&&(C(T,Ae),C(E,Le),C(E,ze)),L.svgFilters===!0&&(C(T,je),C(E,Le),C(E,ze)),L.mathMl===!0&&(C(T,Ne),C(E,Re),C(E,ze))),b(e,`ADD_TAGS`)||(O.tagCheck=null),b(e,`ADD_ATTR`)||(O.attributeCheck=null),e.ADD_TAGS&&(typeof e.ADD_TAGS==`function`?O.tagCheck=e.ADD_TAGS:(T===Ue&&(T=w(T)),C(T,e.ADD_TAGS,W))),e.ADD_ATTR&&(typeof e.ADD_ATTR==`function`?O.attributeCheck=e.ADD_ATTR:(E===Ge&&(E=w(E)),C(E,e.ADD_ATTR,W))),e.ADD_URI_SAFE_ATTR&&C(dt,e.ADD_URI_SAFE_ATTR,W),e.FORBID_CONTENTS&&(R===z&&(R=w(R)),C(R,e.FORBID_CONTENTS,W)),e.ADD_FORBID_CONTENTS&&(R===z&&(R=w(R)),C(R,e.ADD_FORBID_CONTENTS,W)),ct&&(T[`#text`]=!0),N&&C(T,[`html`,`head`,`body`]),T.table&&(C(T,[`tbody`]),delete $e.tbody),e.TRUSTED_TYPES_POLICY){if(typeof e.TRUSTED_TYPES_POLICY.createHTML!=`function`)throw Te(`TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.`);if(typeof e.TRUSTED_TYPES_POLICY.createScriptURL!=`function`)throw Te(`TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.`);g=e.TRUSTED_TYPES_POLICY,ie=g.createHTML(``)}else g===void 0&&(g=Xe(p,i)),g!==null&&typeof ie==`string`&&(ie=g.createHTML(``));v&&v(e),xt=e}},Tt=C({},[...Ae,...je,...Me]),Et=C({},[...Ne,...Pe]),Dt=function(e){let t=re(e);(!t||!t.tagName)&&(t={namespaceURI:V,tagName:`template`});let n=ye(e.tagName),r=ye(t.tagName);return gt[e.namespaceURI]?e.namespaceURI===mt?t.namespaceURI===B?n===`svg`:t.namespaceURI===pt?n===`svg`&&(r===`annotation-xml`||H[r]):!!Tt[n]:e.namespaceURI===pt?t.namespaceURI===B?n===`math`:t.namespaceURI===mt?n===`math`&&U[r]:!!Et[n]:e.namespaceURI===B?t.namespaceURI===mt&&!U[r]||t.namespaceURI===pt&&!H[r]?!1:!Et[n]&&(vt[n]||!Tt[n]):!!(yt===`application/xhtml+xml`&&gt[e.namespaceURI]):!1},G=function(e){_e(t.removed,{element:e});try{re(e).removeChild(e)}catch{h(e)}},K=function(e,n){try{_e(t.removed,{attribute:n.getAttributeNode(e),from:n})}catch{_e(t.removed,{attribute:null,from:n})}if(n.removeAttribute(e),e===`is`)if(F||it)try{G(n)}catch{}else try{n.setAttribute(e,``)}catch{}},Ot=function(e){let t=null,r=null;if(rt)e=`<remove></remove>`+e;else{let t=xe(e,/^[\r\n\t ]+/);r=t&&t[0]}yt===`application/xhtml+xml`&&V===B&&(e=`<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>`+e+`</body></html>`);let i=g?g.createHTML(e):e;if(V===B)try{t=new f().parseFromString(i,yt)}catch{}if(!t||!t.documentElement){t=ae.createDocument(V,`template`,null);try{t.documentElement.innerHTML=ht?ie:i}catch{}}let a=t.body||t.documentElement;return e&&r&&a.insertBefore(n.createTextNode(r),a.childNodes[0]||null),V===B?le.call(t,N?`html`:`body`)[0]:N?t.documentElement:a},kt=function(e){return oe.call(e.ownerDocument||e,e,l.SHOW_ELEMENT|l.SHOW_COMMENT|l.SHOW_TEXT|l.SHOW_PROCESSING_INSTRUCTION|l.SHOW_CDATA_SECTION,null)},At=function(e){return e instanceof d&&(typeof e.nodeName!=`string`||typeof e.textContent!=`string`||typeof e.removeChild!=`function`||!(e.attributes instanceof u)||typeof e.removeAttribute!=`function`||typeof e.setAttribute!=`function`||typeof e.namespaceURI!=`string`||typeof e.insertBefore!=`function`||typeof e.hasChildNodes!=`function`)},jt=function(e){return typeof s==`function`&&e instanceof s};function q(e,n,r){me(e,e=>{e.call(t,n,r,xt)})}let Mt=function(e){let n=null;if(q(_.beforeSanitizeElements,e,null),At(e))return G(e),!0;let r=W(e.nodeName);if(q(_.uponSanitizeElement,e,{tagName:r,allowedTags:T}),nt&&e.hasChildNodes()&&!jt(e.firstElementChild)&&x(/<[/\w!]/g,e.innerHTML)&&x(/<[/\w!]/g,e.textContent)||e.nodeType===Je.progressingInstruction||nt&&e.nodeType===Je.comment&&x(/<[/\w]/g,e.data))return G(e),!0;if(!(O.tagCheck instanceof Function&&O.tagCheck(r))&&(!T[r]||$e[r])){if(!$e[r]&&Pt(r)&&(D.tagNameCheck instanceof RegExp&&x(D.tagNameCheck,r)||D.tagNameCheck instanceof Function&&D.tagNameCheck(r)))return!1;if(ct&&!R[r]){let t=re(e)||e.parentNode,n=ne(e)||e.childNodes;if(n&&t){let r=n.length;for(let i=r-1;i>=0;--i){let r=ee(n[i],!0);r.__removalCount=(e.__removalCount||0)+1,t.insertBefore(r,te(e))}}}return G(e),!0}return e instanceof c&&!Dt(e)||(r===`noscript`||r===`noembed`||r===`noframes`)&&x(/<\/no(script|embed|frames)/i,e.innerHTML)?(G(e),!0):(M&&e.nodeType===Je.text&&(n=e.textContent,me([y,fe,pe],e=>{n=Se(n,e,` `)}),e.textContent!==n&&(_e(t.removed,{element:e.cloneNode()}),e.textContent=n)),q(_.afterSanitizeElements,e,null),!1)},Nt=function(e,t,r){if(et[t]||ot&&(t===`id`||t===`name`)&&(r in n||r in St))return!1;if(!(k&&!et[t]&&x(S,t))&&!(tt&&x(Ee,t))&&!(O.attributeCheck instanceof Function&&O.attributeCheck(t,e))){if(!E[t]||et[t]){if(!(Pt(e)&&(D.tagNameCheck instanceof RegExp&&x(D.tagNameCheck,e)||D.tagNameCheck instanceof Function&&D.tagNameCheck(e))&&(D.attributeNameCheck instanceof RegExp&&x(D.attributeNameCheck,t)||D.attributeNameCheck instanceof Function&&D.attributeNameCheck(t,e))||t===`is`&&D.allowCustomizedBuiltInElements&&(D.tagNameCheck instanceof RegExp&&x(D.tagNameCheck,r)||D.tagNameCheck instanceof Function&&D.tagNameCheck(r))))return!1}else if(!dt[t]&&!x(He,Se(r,Be,``))&&!((t===`src`||t===`xlink:href`||t===`href`)&&e!==`script`&&Ce(r,`data:`)===0&&lt[e])&&!(A&&!x(De,Se(r,Be,``)))&&r)return!1}return!0},Pt=function(e){return e!==`annotation-xml`&&xe(e,Ve)},Ft=function(e){q(_.beforeSanitizeAttributes,e,null);let{attributes:n}=e;if(!n||At(e))return;let r={attrName:``,attrValue:``,keepAttr:!0,allowedAttributes:E,forceKeepAttr:void 0},i=n.length;for(;i--;){let{name:a,namespaceURI:o,value:s}=n[i],c=W(a),l=s,u=a===`value`?l:we(l);if(r.attrName=c,r.attrValue=u,r.keepAttr=!0,r.forceKeepAttr=void 0,q(_.uponSanitizeAttribute,e,r),u=r.attrValue,st&&(c===`id`||c===`name`)&&(K(a,e),u=`user-content-`+u),nt&&x(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,u)){K(a,e);continue}if(c===`attributename`&&xe(u,`href`)){K(a,e);continue}if(r.forceKeepAttr)continue;if(!r.keepAttr){K(a,e);continue}if(!j&&x(/\/>/i,u)){K(a,e);continue}M&&me([y,fe,pe],e=>{u=Se(u,e,` `)});let d=W(e.nodeName);if(!Nt(d,c,u)){K(a,e);continue}if(g&&typeof p==`object`&&typeof p.getAttributeType==`function`&&!o)switch(p.getAttributeType(d,c)){case`TrustedHTML`:u=g.createHTML(u);break;case`TrustedScriptURL`:u=g.createScriptURL(u);break}if(u!==l)try{o?e.setAttributeNS(o,a,u):e.setAttribute(a,u),At(e)?G(e):ge(t.removed)}catch{K(a,e)}}q(_.afterSanitizeAttributes,e,null)},It=function e(t){let n=null,r=kt(t);for(q(_.beforeSanitizeShadowDOM,t,null);n=r.nextNode();)q(_.uponSanitizeShadowNode,n,null),Mt(n),Ft(n),n.content instanceof a&&e(n.content);q(_.afterSanitizeShadowDOM,t,null)};return t.sanitize=function(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=null,o=null,c=null,l=null;if(ht=!e,ht&&(e=`<!-->`),typeof e!=`string`&&!jt(e))if(typeof e.toString==`function`){if(e=e.toString(),typeof e!=`string`)throw Te(`dirty is not a string, aborting`)}else throw Te(`toString is not a function`);if(!t.isSupported)return e;if(P||wt(n),t.removed=[],typeof e==`string`&&(I=!1),I){if(e.nodeName){let t=W(e.nodeName);if(!T[t]||$e[t])throw Te(`root node is forbidden and cannot be sanitized in-place`)}}else if(e instanceof s)i=Ot(`<!---->`),o=i.ownerDocument.importNode(e,!0),o.nodeType===Je.element&&o.nodeName===`BODY`||o.nodeName===`HTML`?i=o:i.appendChild(o);else{if(!F&&!M&&!N&&e.indexOf(`<`)===-1)return g&&at?g.createHTML(e):e;if(i=Ot(e),!i)return F?null:at?ie:``}i&&rt&&G(i.firstChild);let u=kt(I?e:i);for(;c=u.nextNode();)Mt(c),Ft(c),c.content instanceof a&&It(c.content);if(I)return e;if(F){if(it)for(l=ce.call(i.ownerDocument);i.firstChild;)l.appendChild(i.firstChild);else l=i;return(E.shadowroot||E.shadowrootmode)&&(l=ue.call(r,l,!0)),l}let d=N?i.outerHTML:i.innerHTML;return N&&T[`!doctype`]&&i.ownerDocument&&i.ownerDocument.doctype&&i.ownerDocument.doctype.name&&x(Ke,i.ownerDocument.doctype.name)&&(d=`<!DOCTYPE `+i.ownerDocument.doctype.name+`>
1
+ import{Dt as e,Et as t,Nt as n,Tt as r,it as i,jt as a,ot as o,ut as s,wt as c}from"./DK3lEKRX.js";import{S as l,a as u,b as d,h as f,l as p,m,o as ee,p as h,y as te}from"./BaFk5JeE.js";import{c as ne,f as re,l as g,o as ie,s as ae,u as oe}from"./BJVrdkuG.js";var{entries:se,setPrototypeOf:ce,isFrozen:le,getPrototypeOf:ue,getOwnPropertyDescriptor:_}=Object,{freeze:v,seal:y,create:de}=Object,{apply:fe,construct:pe}=typeof Reflect<`u`&&Reflect;v||=function(e){return e},y||=function(e){return e},fe||=function(e,t){var n=[...arguments].slice(2);return e.apply(t,n)},pe||=function(e){return new e(...[...arguments].slice(1))};var me=S(Array.prototype.forEach),he=S(Array.prototype.lastIndexOf),ge=S(Array.prototype.pop),_e=S(Array.prototype.push),ve=S(Array.prototype.splice),ye=S(String.prototype.toLowerCase),be=S(String.prototype.toString),xe=S(String.prototype.match),Se=S(String.prototype.replace),Ce=S(String.prototype.indexOf),we=S(String.prototype.trim),b=S(Object.prototype.hasOwnProperty),x=S(RegExp.prototype.test),Te=Ee(TypeError);function S(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);var n=[...arguments].slice(1);return fe(e,t,n)}}function Ee(e){return function(){return pe(e,[...arguments])}}function C(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:ye;ce&&ce(e,null);let r=t.length;for(;r--;){let i=t[r];if(typeof i==`string`){let e=n(i);e!==i&&(le(t)||(t[r]=e),i=e)}e[i]=!0}return e}function De(e){for(let t=0;t<e.length;t++)b(e,t)||(e[t]=null);return e}function w(e){let t=de(null);for(let[n,r]of se(e))b(e,n)&&(Array.isArray(r)?t[n]=De(r):r&&typeof r==`object`&&r.constructor===Object?t[n]=w(r):t[n]=r);return t}function Oe(e,t){for(;e!==null;){let n=_(e,t);if(n){if(n.get)return S(n.get);if(typeof n.value==`function`)return S(n.value)}e=ue(e)}function n(){return null}return n}var ke=v(`a.abbr.acronym.address.area.article.aside.audio.b.bdi.bdo.big.blink.blockquote.body.br.button.canvas.caption.center.cite.code.col.colgroup.content.data.datalist.dd.decorator.del.details.dfn.dialog.dir.div.dl.dt.element.em.fieldset.figcaption.figure.font.footer.form.h1.h2.h3.h4.h5.h6.head.header.hgroup.hr.html.i.img.input.ins.kbd.label.legend.li.main.map.mark.marquee.menu.menuitem.meter.nav.nobr.ol.optgroup.option.output.p.picture.pre.progress.q.rp.rt.ruby.s.samp.search.section.select.shadow.slot.small.source.spacer.span.strike.strong.style.sub.summary.sup.table.tbody.td.template.textarea.tfoot.th.thead.time.tr.track.tt.u.ul.var.video.wbr`.split(`.`)),Ae=v(`svg.a.altglyph.altglyphdef.altglyphitem.animatecolor.animatemotion.animatetransform.circle.clippath.defs.desc.ellipse.enterkeyhint.exportparts.filter.font.g.glyph.glyphref.hkern.image.inputmode.line.lineargradient.marker.mask.metadata.mpath.part.path.pattern.polygon.polyline.radialgradient.rect.stop.style.switch.symbol.text.textpath.title.tref.tspan.view.vkern`.split(`.`)),je=v([`feBlend`,`feColorMatrix`,`feComponentTransfer`,`feComposite`,`feConvolveMatrix`,`feDiffuseLighting`,`feDisplacementMap`,`feDistantLight`,`feDropShadow`,`feFlood`,`feFuncA`,`feFuncB`,`feFuncG`,`feFuncR`,`feGaussianBlur`,`feImage`,`feMerge`,`feMergeNode`,`feMorphology`,`feOffset`,`fePointLight`,`feSpecularLighting`,`feSpotLight`,`feTile`,`feTurbulence`]),Me=v([`animate`,`color-profile`,`cursor`,`discard`,`font-face`,`font-face-format`,`font-face-name`,`font-face-src`,`font-face-uri`,`foreignobject`,`hatch`,`hatchpath`,`mesh`,`meshgradient`,`meshpatch`,`meshrow`,`missing-glyph`,`script`,`set`,`solidcolor`,`unknown`,`use`]),Ne=v(`math.menclose.merror.mfenced.mfrac.mglyph.mi.mlabeledtr.mmultiscripts.mn.mo.mover.mpadded.mphantom.mroot.mrow.ms.mspace.msqrt.mstyle.msub.msup.msubsup.mtable.mtd.mtext.mtr.munder.munderover.mprescripts`.split(`.`)),Pe=v([`maction`,`maligngroup`,`malignmark`,`mlongdiv`,`mscarries`,`mscarry`,`msgroup`,`mstack`,`msline`,`msrow`,`semantics`,`annotation`,`annotation-xml`,`mprescripts`,`none`]),Fe=v([`#text`]),Ie=v(`accept.action.align.alt.autocapitalize.autocomplete.autopictureinpicture.autoplay.background.bgcolor.border.capture.cellpadding.cellspacing.checked.cite.class.clear.color.cols.colspan.controls.controlslist.coords.crossorigin.datetime.decoding.default.dir.disabled.disablepictureinpicture.disableremoteplayback.download.draggable.enctype.enterkeyhint.exportparts.face.for.headers.height.hidden.high.href.hreflang.id.inert.inputmode.integrity.ismap.kind.label.lang.list.loading.loop.low.max.maxlength.media.method.min.minlength.multiple.muted.name.nonce.noshade.novalidate.nowrap.open.optimum.part.pattern.placeholder.playsinline.popover.popovertarget.popovertargetaction.poster.preload.pubdate.radiogroup.readonly.rel.required.rev.reversed.role.rows.rowspan.spellcheck.scope.selected.shape.size.sizes.slot.span.srclang.start.src.srcset.step.style.summary.tabindex.title.translate.type.usemap.valign.value.width.wrap.xmlns.slot`.split(`.`)),Le=v(`accent-height.accumulate.additive.alignment-baseline.amplitude.ascent.attributename.attributetype.azimuth.basefrequency.baseline-shift.begin.bias.by.class.clip.clippathunits.clip-path.clip-rule.color.color-interpolation.color-interpolation-filters.color-profile.color-rendering.cx.cy.d.dx.dy.diffuseconstant.direction.display.divisor.dur.edgemode.elevation.end.exponent.fill.fill-opacity.fill-rule.filter.filterunits.flood-color.flood-opacity.font-family.font-size.font-size-adjust.font-stretch.font-style.font-variant.font-weight.fx.fy.g1.g2.glyph-name.glyphref.gradientunits.gradienttransform.height.href.id.image-rendering.in.in2.intercept.k.k1.k2.k3.k4.kerning.keypoints.keysplines.keytimes.lang.lengthadjust.letter-spacing.kernelmatrix.kernelunitlength.lighting-color.local.marker-end.marker-mid.marker-start.markerheight.markerunits.markerwidth.maskcontentunits.maskunits.max.mask.mask-type.media.method.mode.min.name.numoctaves.offset.operator.opacity.order.orient.orientation.origin.overflow.paint-order.path.pathlength.patterncontentunits.patterntransform.patternunits.points.preservealpha.preserveaspectratio.primitiveunits.r.rx.ry.radius.refx.refy.repeatcount.repeatdur.restart.result.rotate.scale.seed.shape-rendering.slope.specularconstant.specularexponent.spreadmethod.startoffset.stddeviation.stitchtiles.stop-color.stop-opacity.stroke-dasharray.stroke-dashoffset.stroke-linecap.stroke-linejoin.stroke-miterlimit.stroke-opacity.stroke.stroke-width.style.surfacescale.systemlanguage.tabindex.tablevalues.targetx.targety.transform.transform-origin.text-anchor.text-decoration.text-rendering.textlength.type.u1.u2.unicode.values.viewbox.visibility.version.vert-adv-y.vert-origin-x.vert-origin-y.width.word-spacing.wrap.writing-mode.xchannelselector.ychannelselector.x.x1.x2.xmlns.y.y1.y2.z.zoomandpan`.split(`.`)),Re=v(`accent.accentunder.align.bevelled.close.columnsalign.columnlines.columnspan.denomalign.depth.dir.display.displaystyle.encoding.fence.frame.height.href.id.largeop.length.linethickness.lspace.lquote.mathbackground.mathcolor.mathsize.mathvariant.maxsize.minsize.movablelimits.notation.numalign.open.rowalign.rowlines.rowspacing.rowspan.rspace.rquote.scriptlevel.scriptminsize.scriptsizemultiplier.selection.separator.separators.stretchy.subscriptshift.supscriptshift.symmetric.voffset.width.xmlns`.split(`.`)),ze=v([`xlink:href`,`xml:id`,`xlink:title`,`xml:space`,`xmlns:xlink`]),Be=y(/\{\{[\w\W]*|[\w\W]*\}\}/gm),Ve=y(/<%[\w\W]*|[\w\W]*%>/gm),He=y(/\$\{[\w\W]*/gm),T=y(/^data-[\-\w.\u00B7-\uFFFF]+$/),Ue=y(/^aria-[\-\w]+$/),We=y(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),E=y(/^(?:\w+script|data):/i),Ge=y(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Ke=y(/^html$/i),D=y(/^[a-z][.\w]*(-[.\w]+)+$/i),qe=Object.freeze({__proto__:null,ARIA_ATTR:Ue,ATTR_WHITESPACE:Ge,CUSTOM_ELEMENT:D,DATA_ATTR:T,DOCTYPE_NAME:Ke,ERB_EXPR:Ve,IS_ALLOWED_URI:We,IS_SCRIPT_OR_DATA:E,MUSTACHE_EXPR:Be,TMPLIT_EXPR:He}),Je={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,progressingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},Ye=function(){return typeof window>`u`?null:window},Xe=function(e,t){if(typeof e!=`object`||typeof e.createPolicy!=`function`)return null;let n=null,r=`data-tt-policy-suffix`;t&&t.hasAttribute(r)&&(n=t.getAttribute(r));let i=`dompurify`+(n?`#`+n:``);try{return e.createPolicy(i,{createHTML(e){return e},createScriptURL(e){return e}})}catch{return console.warn(`TrustedTypes policy `+i+` could not be created.`),null}},Ze=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function Qe(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Ye(),t=e=>Qe(e);if(t.version=`3.3.3`,t.removed=[],!e||!e.document||e.document.nodeType!==Je.document||!e.Element)return t.isSupported=!1,t;let{document:n}=e,r=n,i=r.currentScript,{DocumentFragment:a,HTMLTemplateElement:o,Node:s,Element:c,NodeFilter:l,NamedNodeMap:u=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:d,DOMParser:f,trustedTypes:p}=e,m=c.prototype,ee=Oe(m,`cloneNode`),h=Oe(m,`remove`),te=Oe(m,`nextSibling`),ne=Oe(m,`childNodes`),re=Oe(m,`parentNode`);if(typeof o==`function`){let e=n.createElement(`template`);e.content&&e.content.ownerDocument&&(n=e.content.ownerDocument)}let g,ie=``,{implementation:ae,createNodeIterator:oe,createDocumentFragment:ce,getElementsByTagName:le}=n,{importNode:ue}=r,_=Ze();t.isSupported=typeof se==`function`&&typeof re==`function`&&ae&&ae.createHTMLDocument!==void 0;let{MUSTACHE_EXPR:y,ERB_EXPR:fe,TMPLIT_EXPR:pe,DATA_ATTR:S,ARIA_ATTR:Ee,IS_SCRIPT_OR_DATA:De,ATTR_WHITESPACE:Be,CUSTOM_ELEMENT:Ve}=qe,{IS_ALLOWED_URI:He}=qe,T=null,Ue=C({},[...ke,...Ae,...je,...Ne,...Fe]),E=null,Ge=C({},[...Ie,...Le,...Re,...ze]),D=Object.seal(de(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),$e=null,et=null,O=Object.seal(de(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}})),tt=!0,k=!0,A=!1,j=!0,M=!1,nt=!0,N=!1,P=!1,rt=!1,F=!1,it=!1,at=!1,ot=!0,st=!1,ct=!0,I=!1,L={},R=null,z=C({},[`annotation-xml`,`audio`,`colgroup`,`desc`,`foreignobject`,`head`,`iframe`,`math`,`mi`,`mn`,`mo`,`ms`,`mtext`,`noembed`,`noframes`,`noscript`,`plaintext`,`script`,`style`,`svg`,`template`,`thead`,`title`,`video`,`xmp`]),lt=null,ut=C({},[`audio`,`video`,`img`,`source`,`image`,`track`]),dt=null,ft=C({},[`alt`,`class`,`for`,`id`,`label`,`name`,`pattern`,`placeholder`,`role`,`summary`,`title`,`value`,`style`,`xmlns`]),pt=`http://www.w3.org/1998/Math/MathML`,mt=`http://www.w3.org/2000/svg`,B=`http://www.w3.org/1999/xhtml`,V=B,ht=!1,gt=null,_t=C({},[pt,mt,B],be),H=C({},[`mi`,`mo`,`mn`,`ms`,`mtext`]),U=C({},[`annotation-xml`]),vt=C({},[`title`,`style`,`font`,`a`,`script`]),yt=null,bt=[`application/xhtml+xml`,`text/html`],W=null,xt=null,St=n.createElement(`form`),Ct=function(e){return e instanceof RegExp||e instanceof Function},wt=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(xt&&xt===e)){if((!e||typeof e!=`object`)&&(e={}),e=w(e),yt=bt.indexOf(e.PARSER_MEDIA_TYPE)===-1?`text/html`:e.PARSER_MEDIA_TYPE,W=yt===`application/xhtml+xml`?be:ye,T=b(e,`ALLOWED_TAGS`)?C({},e.ALLOWED_TAGS,W):Ue,E=b(e,`ALLOWED_ATTR`)?C({},e.ALLOWED_ATTR,W):Ge,gt=b(e,`ALLOWED_NAMESPACES`)?C({},e.ALLOWED_NAMESPACES,be):_t,dt=b(e,`ADD_URI_SAFE_ATTR`)?C(w(ft),e.ADD_URI_SAFE_ATTR,W):ft,lt=b(e,`ADD_DATA_URI_TAGS`)?C(w(ut),e.ADD_DATA_URI_TAGS,W):ut,R=b(e,`FORBID_CONTENTS`)?C({},e.FORBID_CONTENTS,W):z,$e=b(e,`FORBID_TAGS`)?C({},e.FORBID_TAGS,W):w({}),et=b(e,`FORBID_ATTR`)?C({},e.FORBID_ATTR,W):w({}),L=b(e,`USE_PROFILES`)?e.USE_PROFILES:!1,tt=e.ALLOW_ARIA_ATTR!==!1,k=e.ALLOW_DATA_ATTR!==!1,A=e.ALLOW_UNKNOWN_PROTOCOLS||!1,j=e.ALLOW_SELF_CLOSE_IN_ATTR!==!1,M=e.SAFE_FOR_TEMPLATES||!1,nt=e.SAFE_FOR_XML!==!1,N=e.WHOLE_DOCUMENT||!1,F=e.RETURN_DOM||!1,it=e.RETURN_DOM_FRAGMENT||!1,at=e.RETURN_TRUSTED_TYPE||!1,rt=e.FORCE_BODY||!1,ot=e.SANITIZE_DOM!==!1,st=e.SANITIZE_NAMED_PROPS||!1,ct=e.KEEP_CONTENT!==!1,I=e.IN_PLACE||!1,He=e.ALLOWED_URI_REGEXP||We,V=e.NAMESPACE||B,H=e.MATHML_TEXT_INTEGRATION_POINTS||H,U=e.HTML_INTEGRATION_POINTS||U,D=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&Ct(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(D.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&Ct(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(D.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements==`boolean`&&(D.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),M&&(k=!1),it&&(F=!0),L&&(T=C({},Fe),E=de(null),L.html===!0&&(C(T,ke),C(E,Ie)),L.svg===!0&&(C(T,Ae),C(E,Le),C(E,ze)),L.svgFilters===!0&&(C(T,je),C(E,Le),C(E,ze)),L.mathMl===!0&&(C(T,Ne),C(E,Re),C(E,ze))),b(e,`ADD_TAGS`)||(O.tagCheck=null),b(e,`ADD_ATTR`)||(O.attributeCheck=null),e.ADD_TAGS&&(typeof e.ADD_TAGS==`function`?O.tagCheck=e.ADD_TAGS:(T===Ue&&(T=w(T)),C(T,e.ADD_TAGS,W))),e.ADD_ATTR&&(typeof e.ADD_ATTR==`function`?O.attributeCheck=e.ADD_ATTR:(E===Ge&&(E=w(E)),C(E,e.ADD_ATTR,W))),e.ADD_URI_SAFE_ATTR&&C(dt,e.ADD_URI_SAFE_ATTR,W),e.FORBID_CONTENTS&&(R===z&&(R=w(R)),C(R,e.FORBID_CONTENTS,W)),e.ADD_FORBID_CONTENTS&&(R===z&&(R=w(R)),C(R,e.ADD_FORBID_CONTENTS,W)),ct&&(T[`#text`]=!0),N&&C(T,[`html`,`head`,`body`]),T.table&&(C(T,[`tbody`]),delete $e.tbody),e.TRUSTED_TYPES_POLICY){if(typeof e.TRUSTED_TYPES_POLICY.createHTML!=`function`)throw Te(`TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.`);if(typeof e.TRUSTED_TYPES_POLICY.createScriptURL!=`function`)throw Te(`TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.`);g=e.TRUSTED_TYPES_POLICY,ie=g.createHTML(``)}else g===void 0&&(g=Xe(p,i)),g!==null&&typeof ie==`string`&&(ie=g.createHTML(``));v&&v(e),xt=e}},Tt=C({},[...Ae,...je,...Me]),Et=C({},[...Ne,...Pe]),Dt=function(e){let t=re(e);(!t||!t.tagName)&&(t={namespaceURI:V,tagName:`template`});let n=ye(e.tagName),r=ye(t.tagName);return gt[e.namespaceURI]?e.namespaceURI===mt?t.namespaceURI===B?n===`svg`:t.namespaceURI===pt?n===`svg`&&(r===`annotation-xml`||H[r]):!!Tt[n]:e.namespaceURI===pt?t.namespaceURI===B?n===`math`:t.namespaceURI===mt?n===`math`&&U[r]:!!Et[n]:e.namespaceURI===B?t.namespaceURI===mt&&!U[r]||t.namespaceURI===pt&&!H[r]?!1:!Et[n]&&(vt[n]||!Tt[n]):!!(yt===`application/xhtml+xml`&&gt[e.namespaceURI]):!1},G=function(e){_e(t.removed,{element:e});try{re(e).removeChild(e)}catch{h(e)}},K=function(e,n){try{_e(t.removed,{attribute:n.getAttributeNode(e),from:n})}catch{_e(t.removed,{attribute:null,from:n})}if(n.removeAttribute(e),e===`is`)if(F||it)try{G(n)}catch{}else try{n.setAttribute(e,``)}catch{}},Ot=function(e){let t=null,r=null;if(rt)e=`<remove></remove>`+e;else{let t=xe(e,/^[\r\n\t ]+/);r=t&&t[0]}yt===`application/xhtml+xml`&&V===B&&(e=`<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>`+e+`</body></html>`);let i=g?g.createHTML(e):e;if(V===B)try{t=new f().parseFromString(i,yt)}catch{}if(!t||!t.documentElement){t=ae.createDocument(V,`template`,null);try{t.documentElement.innerHTML=ht?ie:i}catch{}}let a=t.body||t.documentElement;return e&&r&&a.insertBefore(n.createTextNode(r),a.childNodes[0]||null),V===B?le.call(t,N?`html`:`body`)[0]:N?t.documentElement:a},kt=function(e){return oe.call(e.ownerDocument||e,e,l.SHOW_ELEMENT|l.SHOW_COMMENT|l.SHOW_TEXT|l.SHOW_PROCESSING_INSTRUCTION|l.SHOW_CDATA_SECTION,null)},At=function(e){return e instanceof d&&(typeof e.nodeName!=`string`||typeof e.textContent!=`string`||typeof e.removeChild!=`function`||!(e.attributes instanceof u)||typeof e.removeAttribute!=`function`||typeof e.setAttribute!=`function`||typeof e.namespaceURI!=`string`||typeof e.insertBefore!=`function`||typeof e.hasChildNodes!=`function`)},jt=function(e){return typeof s==`function`&&e instanceof s};function q(e,n,r){me(e,e=>{e.call(t,n,r,xt)})}let Mt=function(e){let n=null;if(q(_.beforeSanitizeElements,e,null),At(e))return G(e),!0;let r=W(e.nodeName);if(q(_.uponSanitizeElement,e,{tagName:r,allowedTags:T}),nt&&e.hasChildNodes()&&!jt(e.firstElementChild)&&x(/<[/\w!]/g,e.innerHTML)&&x(/<[/\w!]/g,e.textContent)||e.nodeType===Je.progressingInstruction||nt&&e.nodeType===Je.comment&&x(/<[/\w]/g,e.data))return G(e),!0;if(!(O.tagCheck instanceof Function&&O.tagCheck(r))&&(!T[r]||$e[r])){if(!$e[r]&&Pt(r)&&(D.tagNameCheck instanceof RegExp&&x(D.tagNameCheck,r)||D.tagNameCheck instanceof Function&&D.tagNameCheck(r)))return!1;if(ct&&!R[r]){let t=re(e)||e.parentNode,n=ne(e)||e.childNodes;if(n&&t){let r=n.length;for(let i=r-1;i>=0;--i){let r=ee(n[i],!0);r.__removalCount=(e.__removalCount||0)+1,t.insertBefore(r,te(e))}}}return G(e),!0}return e instanceof c&&!Dt(e)||(r===`noscript`||r===`noembed`||r===`noframes`)&&x(/<\/no(script|embed|frames)/i,e.innerHTML)?(G(e),!0):(M&&e.nodeType===Je.text&&(n=e.textContent,me([y,fe,pe],e=>{n=Se(n,e,` `)}),e.textContent!==n&&(_e(t.removed,{element:e.cloneNode()}),e.textContent=n)),q(_.afterSanitizeElements,e,null),!1)},Nt=function(e,t,r){if(et[t]||ot&&(t===`id`||t===`name`)&&(r in n||r in St))return!1;if(!(k&&!et[t]&&x(S,t))&&!(tt&&x(Ee,t))&&!(O.attributeCheck instanceof Function&&O.attributeCheck(t,e))){if(!E[t]||et[t]){if(!(Pt(e)&&(D.tagNameCheck instanceof RegExp&&x(D.tagNameCheck,e)||D.tagNameCheck instanceof Function&&D.tagNameCheck(e))&&(D.attributeNameCheck instanceof RegExp&&x(D.attributeNameCheck,t)||D.attributeNameCheck instanceof Function&&D.attributeNameCheck(t,e))||t===`is`&&D.allowCustomizedBuiltInElements&&(D.tagNameCheck instanceof RegExp&&x(D.tagNameCheck,r)||D.tagNameCheck instanceof Function&&D.tagNameCheck(r))))return!1}else if(!dt[t]&&!x(He,Se(r,Be,``))&&!((t===`src`||t===`xlink:href`||t===`href`)&&e!==`script`&&Ce(r,`data:`)===0&&lt[e])&&!(A&&!x(De,Se(r,Be,``)))&&r)return!1}return!0},Pt=function(e){return e!==`annotation-xml`&&xe(e,Ve)},Ft=function(e){q(_.beforeSanitizeAttributes,e,null);let{attributes:n}=e;if(!n||At(e))return;let r={attrName:``,attrValue:``,keepAttr:!0,allowedAttributes:E,forceKeepAttr:void 0},i=n.length;for(;i--;){let{name:a,namespaceURI:o,value:s}=n[i],c=W(a),l=s,u=a===`value`?l:we(l);if(r.attrName=c,r.attrValue=u,r.keepAttr=!0,r.forceKeepAttr=void 0,q(_.uponSanitizeAttribute,e,r),u=r.attrValue,st&&(c===`id`||c===`name`)&&(K(a,e),u=`user-content-`+u),nt&&x(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,u)){K(a,e);continue}if(c===`attributename`&&xe(u,`href`)){K(a,e);continue}if(r.forceKeepAttr)continue;if(!r.keepAttr){K(a,e);continue}if(!j&&x(/\/>/i,u)){K(a,e);continue}M&&me([y,fe,pe],e=>{u=Se(u,e,` `)});let d=W(e.nodeName);if(!Nt(d,c,u)){K(a,e);continue}if(g&&typeof p==`object`&&typeof p.getAttributeType==`function`&&!o)switch(p.getAttributeType(d,c)){case`TrustedHTML`:u=g.createHTML(u);break;case`TrustedScriptURL`:u=g.createScriptURL(u);break}if(u!==l)try{o?e.setAttributeNS(o,a,u):e.setAttribute(a,u),At(e)?G(e):ge(t.removed)}catch{K(a,e)}}q(_.afterSanitizeAttributes,e,null)},It=function e(t){let n=null,r=kt(t);for(q(_.beforeSanitizeShadowDOM,t,null);n=r.nextNode();)q(_.uponSanitizeShadowNode,n,null),Mt(n),Ft(n),n.content instanceof a&&e(n.content);q(_.afterSanitizeShadowDOM,t,null)};return t.sanitize=function(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=null,o=null,c=null,l=null;if(ht=!e,ht&&(e=`<!-->`),typeof e!=`string`&&!jt(e))if(typeof e.toString==`function`){if(e=e.toString(),typeof e!=`string`)throw Te(`dirty is not a string, aborting`)}else throw Te(`toString is not a function`);if(!t.isSupported)return e;if(P||wt(n),t.removed=[],typeof e==`string`&&(I=!1),I){if(e.nodeName){let t=W(e.nodeName);if(!T[t]||$e[t])throw Te(`root node is forbidden and cannot be sanitized in-place`)}}else if(e instanceof s)i=Ot(`<!---->`),o=i.ownerDocument.importNode(e,!0),o.nodeType===Je.element&&o.nodeName===`BODY`||o.nodeName===`HTML`?i=o:i.appendChild(o);else{if(!F&&!M&&!N&&e.indexOf(`<`)===-1)return g&&at?g.createHTML(e):e;if(i=Ot(e),!i)return F?null:at?ie:``}i&&rt&&G(i.firstChild);let u=kt(I?e:i);for(;c=u.nextNode();)Mt(c),Ft(c),c.content instanceof a&&It(c.content);if(I)return e;if(F){if(it)for(l=ce.call(i.ownerDocument);i.firstChild;)l.appendChild(i.firstChild);else l=i;return(E.shadowroot||E.shadowrootmode)&&(l=ue.call(r,l,!0)),l}let d=N?i.outerHTML:i.innerHTML;return N&&T[`!doctype`]&&i.ownerDocument&&i.ownerDocument.doctype&&i.ownerDocument.doctype.name&&x(Ke,i.ownerDocument.doctype.name)&&(d=`<!DOCTYPE `+i.ownerDocument.doctype.name+`>
2
2
  `+d),M&&me([y,fe,pe],e=>{d=Se(d,e,` `)}),g&&at?g.createHTML(d):d},t.setConfig=function(){wt(arguments.length>0&&arguments[0]!==void 0?arguments[0]:{}),P=!0},t.clearConfig=function(){xt=null,P=!1},t.isValidAttribute=function(e,t,n){return xt||wt({}),Nt(W(e),W(t),n)},t.addHook=function(e,t){typeof t==`function`&&_e(_[e],t)},t.removeHook=function(e,t){if(t!==void 0){let n=he(_[e],t);return n===-1?void 0:ve(_[e],n,1)[0]}return ge(_[e])},t.removeHooks=function(e){_[e]=[]},t.removeAllHooks=function(){_=Ze()},t}var $e=Qe();function et(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var O=et();function tt(e){O=e}var k={exec:()=>null};function A(e,t=``){let n=typeof e==`string`?e:e.source,r={replace:(e,t)=>{let i=typeof t==`string`?t:t.source;return i=i.replace(j.caret,`$1`),n=n.replace(e,i),r},getRegex:()=>new RegExp(n,t)};return r}var j={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ xX]\] +/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}#`),htmlBeginRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}<(?:[a-z].*>|!--)`,`i`)},M=/^(?:[ \t]*(?:\n|$))+/,nt=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,N=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,P=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,rt=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,F=/(?:[*+-]|\d{1,9}[.)])/,it=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,at=A(it).replace(/bull/g,F).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,``).getRegex(),ot=A(it).replace(/bull/g,F).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),st=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,ct=/^[^\n]+/,I=/(?!\s*\])(?:\\.|[^\[\]\\])+/,L=A(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace(`label`,I).replace(`title`,/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),R=A(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,F).getRegex(),z=`address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul`,lt=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,ut=A(`^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))`,`i`).replace(`comment`,lt).replace(`tag`,z).replace(`attribute`,/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),dt=A(st).replace(`hr`,P).replace(`heading`,` {0,3}#{1,6}(?:\\s|$)`).replace(`|lheading`,``).replace(`|table`,``).replace(`blockquote`,` {0,3}>`).replace(`fences`," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace(`list`,` {0,3}(?:[*+-]|1[.)]) `).replace(`html`,`</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)`).replace(`tag`,z).getRegex(),ft={blockquote:A(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace(`paragraph`,dt).getRegex(),code:nt,def:L,fences:N,heading:rt,hr:P,html:ut,lheading:at,list:R,newline:M,paragraph:dt,table:k,text:ct},pt=A(`^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)`).replace(`hr`,P).replace(`heading`,` {0,3}#{1,6}(?:\\s|$)`).replace(`blockquote`,` {0,3}>`).replace(`code`,`(?: {4}| {0,3} )[^\\n]`).replace(`fences`," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace(`list`,` {0,3}(?:[*+-]|1[.)]) `).replace(`html`,`</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)`).replace(`tag`,z).getRegex(),mt={...ft,lheading:ot,table:pt,paragraph:A(st).replace(`hr`,P).replace(`heading`,` {0,3}#{1,6}(?:\\s|$)`).replace(`|lheading`,``).replace(`table`,pt).replace(`blockquote`,` {0,3}>`).replace(`fences`," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace(`list`,` {0,3}(?:[*+-]|1[.)]) `).replace(`html`,`</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)`).replace(`tag`,z).getRegex()},B={...ft,html:A(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace(`comment`,lt).replace(/tag/g,`(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b`).getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:k,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:A(st).replace(`hr`,P).replace(`heading`,` *#{1,6} *[^
3
3
  ]`).replace(`lheading`,at).replace(`|table`,``).replace(`blockquote`,` {0,3}>`).replace(`|fences`,``).replace(`|list`,``).replace(`|html`,``).replace(`|tag`,``).getRegex()},V=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,ht=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,gt=/^( {2,}|\\)\n(?!\s*$)/,_t=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,H=/[\p{P}\p{S}]/u,U=/[\s\p{P}\p{S}]/u,vt=/[^\s\p{P}\p{S}]/u,yt=A(/^((?![*_])punctSpace)/,`u`).replace(/punctSpace/g,U).getRegex(),bt=/(?!~)[\p{P}\p{S}]/u,W=/(?!~)[\s\p{P}\p{S}]/u,xt=/(?:[^\s\p{P}\p{S}]|~)/u,St=/\[[^[\]]*?\]\((?:\\.|[^\\\(\)]|\((?:\\.|[^\\\(\)])*\))*\)|`[^`]*?`|<[^<>]*?>/g,Ct=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,wt=A(Ct,`u`).replace(/punct/g,H).getRegex(),Tt=A(Ct,`u`).replace(/punct/g,bt).getRegex(),Et=`^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)`,Dt=A(Et,`gu`).replace(/notPunctSpace/g,vt).replace(/punctSpace/g,U).replace(/punct/g,H).getRegex(),G=A(Et,`gu`).replace(/notPunctSpace/g,xt).replace(/punctSpace/g,W).replace(/punct/g,bt).getRegex(),K=A(`^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)`,`gu`).replace(/notPunctSpace/g,vt).replace(/punctSpace/g,U).replace(/punct/g,H).getRegex(),Ot=A(/\\(punct)/,`gu`).replace(/punct/g,H).getRegex(),kt=A(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace(`scheme`,/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace(`email`,/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),At=A(lt).replace(`(?:-->|$)`,`-->`).getRegex(),jt=A(`^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>`).replace(`comment`,At).replace(`attribute`,/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),q=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,Mt=A(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace(`label`,q).replace(`href`,/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace(`title`,/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Nt=A(/^!?\[(label)\]\[(ref)\]/).replace(`label`,q).replace(`ref`,I).getRegex(),Pt=A(/^!?\[(ref)\](?:\[\])?/).replace(`ref`,I).getRegex(),Ft={_backpedal:k,anyPunctuation:Ot,autolink:kt,blockSkip:St,br:gt,code:ht,del:k,emStrongLDelim:wt,emStrongRDelimAst:Dt,emStrongRDelimUnd:K,escape:V,link:Mt,nolink:Pt,punctuation:yt,reflink:Nt,reflinkSearch:A(`reflink|nolink(?!\\()`,`g`).replace(`reflink`,Nt).replace(`nolink`,Pt).getRegex(),tag:jt,text:_t,url:k},It={...Ft,link:A(/^!?\[(label)\]\((.*?)\)/).replace(`label`,q).getRegex(),reflink:A(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace(`label`,q).getRegex()},Lt={...Ft,emStrongRDelimAst:G,emStrongLDelim:Tt,url:A(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,`i`).replace(`email`,/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\.|[^\\])*?(?:\\.|[^\s~\\]))\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/},Rt={...Lt,br:A(gt).replace(`{2,}`,`*`).getRegex(),text:A(Lt.text).replace(`\\b_`,`\\b_| {2,}\\n`).replace(/\{2,\}/g,`*`).getRegex()},zt={normal:ft,gfm:mt,pedantic:B},Bt={normal:Ft,gfm:Lt,breaks:Rt,pedantic:It},Vt={"&":`&amp;`,"<":`&lt;`,">":`&gt;`,'"':`&quot;`,"'":`&#39;`},Ht=e=>Vt[e];function J(e,t){if(t){if(j.escapeTest.test(e))return e.replace(j.escapeReplace,Ht)}else if(j.escapeTestNoEncode.test(e))return e.replace(j.escapeReplaceNoEncode,Ht);return e}function Ut(e){try{e=encodeURI(e).replace(j.percentDecode,`%`)}catch{return null}return e}function Wt(e,t){let n=e.replace(j.findPipe,(e,t,n)=>{let r=!1,i=t;for(;--i>=0&&n[i]===`\\`;)r=!r;return r?`|`:` |`}).split(j.splitPipe),r=0;if(n[0].trim()||n.shift(),n.length>0&&!n.at(-1)?.trim()&&n.pop(),t)if(n.length>t)n.splice(t);else for(;n.length<t;)n.push(``);for(;r<n.length;r++)n[r]=n[r].trim().replace(j.slashPipe,`|`);return n}function Gt(e,t,n){let r=e.length;if(r===0)return``;let i=0;for(;i<r;){let a=e.charAt(r-i-1);if(a===t&&!n)i++;else if(a!==t&&n)i++;else break}return e.slice(0,r-i)}function Kt(e,t){if(e.indexOf(t[1])===-1)return-1;let n=0;for(let r=0;r<e.length;r++)if(e[r]===`\\`)r++;else if(e[r]===t[0])n++;else if(e[r]===t[1]&&(n--,n<0))return r;return n>0?-2:-1}function qt(e,t,n,r,i){let a=t.href,o=t.title||null,s=e[1].replace(i.other.outputLinkReplace,`$1`);r.state.inLink=!0;let c={type:e[0].charAt(0)===`!`?`image`:`link`,raw:n,href:a,title:o,text:s,tokens:r.inlineTokens(s)};return r.state.inLink=!1,c}function Jt(e,t,n){let r=e.match(n.other.indentCodeCompensation);if(r===null)return t;let i=r[1];return t.split(`
4
4
  `).map(e=>{let t=e.match(n.other.beginningSpace);if(t===null)return e;let[r]=t;return r.length>=i.length?e.slice(i.length):e}).join(`
@@ -1 +1 @@
1
- import{C as e,S as t,T as n,_ as r,a as i,b as a,c as o,d as s,f as ee,g as c,h as l,i as u,m as d,n as f,o as p,p as m,r as h,s as g,t as _,u as v,v as y,w as te,x as ne,y as b}from"./BaFk5JeE.js";var re=n(`ZodMiniISODateTime`,(e,t)=>{te.init(e,t),f.init(e,t)});function x(t){return e(re,t)}var S=[`en`,`de`,`fr`,`it`],C=d({blocked:b(),maintenance:b(),"rate-limit":b(),"server-error":b(),"too-short":b(),"too-long":b(),"quota-reached":b(),aborted:b(),"sse-error":b(),"client-error":b(),"unexpected-call":b(),"incomplete-error":b(),"feedback-failed":b(),"answer-form-failed":b(),"speech-not-supported":b(),"speech-transcription-failed":b(),"speech-no-text-detected":b(),"speech-microphone-access-denied":b(),"pii-detected":b()}),w=d({email:b(),creditCard:b(),ahv:b(),phoneSwiss:b(),phoneInternational:b(),swissPassport:b(),longNumber:b()}),T=d({name:b(),namePlural:l(b()),intro:l(b()),placeholder:b(),values:y(b(),b())}),ie=d({action:b(),label:b(),type:l(u([`primary`,`secondary`]))}),ae=d({hash:b(),title:b(),content:b(),actions:l(i(ie))}),E=d({introductionTitle:b(),introductionDisclaimer:l(b()),termsInvitationToConsent:l(b()),chatInputPlaceholder:b(),chatInputPlaceholderListening:l(b()),chatInputSubmit:b(),chatInputAbort:b(),chatInputStartListening:b(),chatInputStopListening:b(),referenceLink:b(),referencesDisplay:b(),referencesHide:b(),referencesTitle:b(),referencesFurtherTitle:b(),newChat:b(),maintenanceModeError:b(),messageBotLoading:b(),messageBotError:b(),messageBotDefaultError:b(),noResultsFound:b(),chatFooterText:l(b()),scrollToBottom:b(),openButtonTitle:l(b()),openButtonDescription:l(b()),openMenu:b(),openInfo:b(),aboutThisChat:l(b()),closeMenu:b(),closeChat:b(),close:b(),send:b(),thankYouForFeedback:b(),answerFormThankYou:b(),giveFeedback:b(),sendFeedback:b(),feedbackFormTitle:b(),feedbackFormMessage:b(),feedbackFormMessagePlaceholder:b(),feedbackFormEmail:b(),feedbackFormEmailPlaceholder:b(),askQuestionAgain:b(),answerGood:b(),answerBad:b(),classificationSubmit:b(),classificationThankYou:b(),classificationTitle:b(),selectLanguage:b(),languageChanged:b(),selectColorTheme:b(),lightMode:b(),darkMode:b(),ariaMainNavigation:b(),ariaMainNavigationInfo:b(),ariaMainNavigationLinks:b(),ariaMainNavigationLanguageSwitch:b(),ariaMainNavigationColorMode:b(),ariaGotoMainNavigation:b(),ariaAskQuestion:b(),ariaAskQuestionRegion:b(),ariaNotifications:b(),ariaPredefinedQuestions:b(),ariaPredefinedQuestionsRegion:b(),ariaChatHistory:b(),ariaOpenChat:b(),ariaQuestionFromYou:b(),ariaAnswerFromBot:b(),ariaLastAnswerNavigation:b(),ariaQuestionSent:b(),ariaAnswerReady:b(),ariaAnswerFinished:b(),ariaAnswerFinishedWithSelectedTopic:b(),ariaAskQuestionAgain:b(),ariaAnswerGood:b(),ariaAnswerBad:b(),ariaReferenceSource:b(),ariaGiveFeedback:b(),ariaAnswerForm:b(),ariaLanguageChanged:b(),ariaLightSelected:b(),ariaDarkSelected:b(),ariaSettings:b(),ariaSettingsRegion:b(),ariaReferencesRegion:b(),ariaOpensInNewTab:b(),ariaPageTitle:b(),ariaCloseWithEsc:b(),ariaInfoTitle:b(),ariaFlyoutRegion:b(),ariaSelected:b(),ariaUnselected:b(),ariaAllSelected:b(),ariaAllUnselected:b(),ariaAllReseted:b(),ariaChangeTopic:b(),popups:l(i(ae)),termsAcceptButton:l(b()),termsReadButton:l(b()),selectors:l(y(b(),T)),hideSettings:b(),showSettings:b(),chooseAtLeastOneOption:b(),selectAll:b(),selectNone:b(),resetToDefaults:b(),messageTooLong:b(),selectedTopic:b(),changeTopic:b(),searchSummaryExpand:b(),searchSummaryCollapse:b(),searchSummaryOptInDefault:b(),searchSummaryOptOut:b(),searchSummaryError:b(),searchSummaryDisclaimer:l(b()),searchSummaryLoading:b(),searchSummaryFollowUpPlaceholder:b(),searchSummaryFollowUpSubmit:b(),ariaSearchSummaryExpand:b(),ariaSearchSummaryCollapse:b(),ariaSearchSummaryOptOut:b(),ariaSearchSummaryFollowUpInput:b(),jsonLdEventDate:b(),jsonLdEventLocation:b(),jsonLdEventDescription:b(),jsonLdEventCtaLabel:b(),jsonLdCtaLabel:b(),jsonLdMapOpenMap:b(),ariaJsonLdMapCanvas:b(),ariaJsonLdEventCard:b(),ariaJsonLdMapCard:b(),ariaJsonLdCtaCard:b()}),D=u(S),O=r(D,o(c(E),{selectors:l(y(b(),T))}));y(D,C),y(D,w);var k=r(D,b()),A=d({componentName:s(`buttons`),data:d({caption:l(b()),buttons:i(d({label:b(),href:l(t()),value:b(),variant:l(u([`primary`,`secondary`,`tertiary`])),icon:l(b()),target:l(b())}))})}),j=d({componentName:s(`combobox`),data:d({caption:l(k),placeholder:k,values:i(d({label:k,value:b(),metadata:l(y(b(),ne()))})),removeComponentAfterValueSelection:l(p()),selectorKey:l(b())})}),M=d({componentName:s(`alva-init`),data:d({})}),N=d({componentName:s(`alva-score-survey`),data:d({})}),P=d({type:s(`component`),id:l(b()),time:l(b()),hideAvatar:l(p()),noSectionPadding:l(p()),hideChatInput:l(p())}),F=v(g(`componentName`,[A,j,M,N]),P),I=a([b(),m(),p(),i(b()),i(m()),i(p())]),L=d({title:b(),description:l(b()),badge:l(b()),breadcrumbs:l(i(b())),previewImage:l(b()),date:l(x())}),R=o(d({url:t(),score:m(),metadata:y(b(),I),language:l(b())}),L.shape);u([`start`,`chat`]),g(`name`,[d({name:s(`start-page`),prefill:l(b())}),d({name:s(`consent-page`)}),d({name:s(`chat-page`),query:l(b()),predefinedQuestionId:l(b()),switchQuestionId:l(b())})]);var z=d({type:s(`user`),time:b(),message:b(),id:l(b())});u([`idle`,`searching`,`answering`]);var B=a([b(),m(),p(),i(b()),i(m()),i(p())]),V=o(d({citationId:l(b()),url:b(),score:m(),metadata:y(b(),B),considered:p(),display:d({card:L,listItem:L})}),{referenceIndex:d({all:m(),used:l(m())})}),H=d({all:i(V),used:i(V),unused:i(V)}),U=a([u([`pii-detected`,`blocked`,`maintenance`,`rate-limit`,`server-error`,`too-short`,`too-long`,`quota-reached`,`aborted`]),s(`sse-error`),s(`client-error`),s(`unexpected-call`)]),W=d({type:s(`bot`),time:b(),id:b(),message:d({markdown:b(),html:b(),text:b()}),references:H,errors:i(U),retrievalQuestion:l(b()),noFeedback:l(p()),feedback:l(u([`up`,`down`]))}),G=o(W,{state:u([`streaming`,`done`])}),K=a([a([o(W,{state:s(`loading`)}),G]),z,F]),q=i(d({question:b(),answer:b()})),J=d({label:b(),options:i(d({label:b(),value:m()}))}),oe=d({label:b(),icon:b(),url:b(),target:l(u([`_blank`,`_self`]))}),se=d({id:l(b()),label:ee(b()),question:b(),switchQuestionId:l(b())}),ce=u([`quality`,`impact`]),Y=d({impact:l(J),quality:l(J),order:l(i(ce))});d({classification:l(Y)});var le=d({predefinedQuestions:i(se)}),ue=a([d({maintenance:s(!0)}),d({id:b(),cID:b()})]);y(D,E),d({label:b(),placeholder:b(),locked:l(p())});var de=d({settingName:b(),iconName:b(),settingIntro:l(b()),type:u([`single-select`,`multi-select`]),allowEmpty:p(),values:i(b()),defaultValues:l(i(b()))}),fe=d({type:u([`text`,`select`,`checkbox`,`radio`]),name:b(),label:k,placeholder:l(k),required:l(p()),options:l(i(d({value:b(),label:k})))}),pe=d({receiverEmail:b(),triggerLabel:k,title:l(k),caption:l(k),submitLabel:k,fields:i(fe)}),X=d({before:l(i(K)),after:l(i(K))}),me=d({init:l(i(K)),bot:l(X),user:l(X)}),he=v(c(d({forcePredefinedQuestions:l(p()),forceChatPage:l(p()),showOverallFeedbackButton:p(),showOverallFeedbackEmail:p(),showCloseChatButton:p(),showContextMenu:p(),showContextInfo:p(),showReferencesByDefault:p(),showExpandedSelectors:p(),showTextFeedback:p(),inlineLayout:p(),allowAudioInput:p(),blockPII:p(),questionPrefix:b(),menu:l(r(D,i(oe))),supportedLanguages:i(D),classification:l(Y),answerForm:l(pe),theme:_,translations:O,buttonHref:l(b()),addQueryToUrlParams:l(p()),addRetrievalQuestionToUrlParams:l(p()),renderKatex:l(p()),reflectLanguageInPath:l(p()),sendReferrer:l(u([`all`,`own`,`none`,`location`])),selectorsConfig:h(i(de),[]),questionLengthLimit:l(m()),forceConsent:l(p()),askQuestionAgain:p(),enableBackdrop:l(p()),parentPageContext:d({extractSelectors:l(i(b()))}),messageAdditions:l(me),contextVersion:l(m()),selectedTopicResetPredefinedQuestionId:l(b())})),d({theme:l(d({name:l(b())}))})),Z=(e,t)=>t.includes(e),Q=(e,t)=>{if(Z(e,t))return e;let n=ge();return Z(n,t)?n:`en`},ge=()=>navigator.language.split(`-`)[0],$=(e,t)=>{localStorage.setItem(`liipgpt:selectedLanguage`,e),t&&(t.lang=e)},_e=e=>Q(localStorage.getItem(`liipgpt:selectedLanguage`),e),ve=(e,t,n)=>{if(!e)return``;if(e[t])return e[t];for(let t of n)if(e[t])return e[t];return e.en?e.en:Object.values(e).find(e=>typeof e==`string`&&e.length>0)??``},ye=(e,t)=>Array.from(new Set([e,...t,`en`,...S])),be=(e,t,n,r)=>{for(let i of ye(n,r)){let n=e[i]?.selectors?.[t];if(n)return n}};export{$ as a,ue as c,O as d,x as f,ve as i,q as l,Q as n,he as o,be as r,le as s,_e as t,R as u};
1
+ import{C as e,S as t,T as n,_ as r,a as i,b as a,c as o,d as s,f as ee,g as c,h as l,i as u,m as d,n as f,o as p,p as m,r as h,s as g,t as _,u as v,v as y,w as te,x as ne,y as b}from"./BaFk5JeE.js";var re=n(`ZodMiniISODateTime`,(e,t)=>{te.init(e,t),f.init(e,t)});function x(t){return e(re,t)}var S=[`en`,`de`,`fr`,`it`],C=d({blocked:b(),maintenance:b(),"rate-limit":b(),"server-error":b(),"too-short":b(),"too-long":b(),"quota-reached":b(),aborted:b(),"sse-error":b(),"client-error":b(),"unexpected-call":b(),"incomplete-error":b(),"feedback-failed":b(),"answer-form-failed":b(),"speech-not-supported":b(),"speech-transcription-failed":b(),"speech-no-text-detected":b(),"speech-microphone-access-denied":b(),"pii-detected":b()}),w=d({email:b(),creditCard:b(),ahv:b(),phoneSwiss:b(),phoneInternational:b(),swissPassport:b(),longNumber:b()}),T=d({name:b(),namePlural:l(b()),intro:l(b()),placeholder:b(),values:y(b(),b())}),ie=d({action:b(),label:b(),type:l(u([`primary`,`secondary`]))}),ae=d({hash:b(),title:b(),content:b(),actions:l(i(ie))}),E=d({introductionTitle:b(),introductionDisclaimer:l(b()),termsInvitationToConsent:l(b()),chatInputPlaceholder:b(),chatInputPlaceholderListening:l(b()),chatInputSubmit:b(),chatInputAbort:b(),chatInputStartListening:b(),chatInputStopListening:b(),referenceLink:b(),referencesDisplay:b(),referencesHide:b(),referencesTitle:b(),referencesFurtherTitle:b(),newChat:b(),maintenanceModeError:b(),messageBotLoading:b(),messageBotError:b(),messageBotDefaultError:b(),noResultsFound:b(),chatFooterText:l(b()),scrollToBottom:b(),openButtonTitle:l(b()),openButtonDescription:l(b()),openMenu:b(),openInfo:b(),aboutThisChat:l(b()),closeMenu:b(),closeChat:b(),close:b(),send:b(),thankYouForFeedback:b(),answerFormThankYou:b(),giveFeedback:b(),sendFeedback:b(),feedbackFormTitle:b(),feedbackFormMessage:b(),feedbackFormMessagePlaceholder:b(),feedbackFormEmail:b(),feedbackFormEmailPlaceholder:b(),askQuestionAgain:b(),answerGood:b(),answerBad:b(),classificationSubmit:b(),classificationThankYou:b(),classificationTitle:b(),selectLanguage:b(),languageChanged:b(),selectColorTheme:b(),lightMode:b(),darkMode:b(),ariaMainNavigation:b(),ariaMainNavigationInfo:b(),ariaMainNavigationLinks:b(),ariaMainNavigationLanguageSwitch:b(),ariaMainNavigationColorMode:b(),ariaGotoMainNavigation:b(),ariaAskQuestion:b(),ariaAskQuestionRegion:b(),ariaNotifications:b(),ariaPredefinedQuestions:b(),ariaPredefinedQuestionsRegion:b(),ariaChatHistory:b(),ariaOpenChat:b(),ariaQuestionFromYou:b(),ariaAnswerFromBot:b(),ariaLastAnswerNavigation:b(),ariaQuestionSent:b(),ariaAnswerReady:b(),ariaAnswerFinished:b(),ariaAnswerFinishedWithSelectedTopic:b(),ariaAskQuestionAgain:b(),ariaAnswerGood:b(),ariaAnswerBad:b(),ariaReferenceSource:b(),ariaGiveFeedback:b(),ariaAnswerForm:b(),ariaLanguageChanged:b(),ariaLightSelected:b(),ariaDarkSelected:b(),ariaSettings:b(),ariaSettingsRegion:b(),ariaReferencesRegion:b(),ariaOpensInNewTab:b(),ariaPageTitle:b(),ariaCloseWithEsc:b(),ariaInfoTitle:b(),ariaFlyoutRegion:b(),ariaSelected:b(),ariaUnselected:b(),ariaAllSelected:b(),ariaAllUnselected:b(),ariaAllReseted:b(),ariaChangeTopic:b(),popups:l(i(ae)),termsAcceptButton:l(b()),termsReadButton:l(b()),selectors:l(y(b(),T)),hideSettings:b(),showSettings:b(),chooseAtLeastOneOption:b(),selectAll:b(),selectNone:b(),resetToDefaults:b(),messageTooLong:b(),selectedTopic:b(),changeTopic:b(),searchSummaryExpand:b(),searchSummaryCollapse:b(),searchSummaryOptInDefault:b(),searchSummaryOptOut:b(),searchSummaryError:b(),searchSummaryDisclaimer:l(b()),searchSummaryLoading:b(),searchSummaryFollowUpPlaceholder:b(),searchSummaryFollowUpSubmit:b(),ariaSearchSummaryExpand:b(),ariaSearchSummaryCollapse:b(),ariaSearchSummaryOptOut:b(),ariaSearchSummaryFollowUpInput:b(),jsonLdEventDate:b(),jsonLdEventLocation:b(),jsonLdEventDescription:b(),jsonLdEventCtaLabel:b(),jsonLdCtaLabel:b(),jsonLdMapOpenMap:b(),ariaJsonLdMapCanvas:b(),ariaJsonLdEventCard:b(),ariaJsonLdMapCard:b(),ariaJsonLdCtaCard:b()}),D=u(S),O=r(D,o(c(E),{selectors:l(y(b(),T))}));y(D,C),y(D,w);var k=r(D,b()),A=d({componentName:s(`buttons`),data:d({caption:l(b()),buttons:i(d({label:b(),href:l(t()),value:b(),variant:l(u([`primary`,`secondary`,`tertiary`])),icon:l(b()),target:l(b())}))})}),j=d({componentName:s(`combobox`),data:d({caption:l(k),placeholder:k,values:i(d({label:k,value:b(),metadata:l(y(b(),ne()))})),removeComponentAfterValueSelection:l(p()),selectorKey:l(b())})}),M=d({componentName:s(`alva-init`),data:d({})}),N=d({componentName:s(`alva-score-survey`),data:d({})}),P=d({type:s(`component`),id:l(b()),time:l(b()),hideAvatar:l(p()),noSectionPadding:l(p()),hideChatInput:l(p())}),F=v(g(`componentName`,[A,j,M,N]),P),I=a([b(),m(),p(),i(b()),i(m()),i(p())]),L=d({title:b(),description:l(b()),badge:l(b()),breadcrumbs:l(i(b())),previewImage:l(b()),date:l(x())}),R=o(d({url:t(),score:m(),metadata:y(b(),I),language:l(b())}),L.shape);u([`start`,`chat`]),g(`name`,[d({name:s(`start-page`),prefill:l(b())}),d({name:s(`consent-page`)}),d({name:s(`chat-page`),query:l(b()),predefinedQuestionId:l(b()),switchQuestionId:l(b())})]);var z=d({type:s(`user`),time:b(),message:b(),id:l(b())});u([`idle`,`searching`,`answering`]);var B=a([b(),m(),p(),i(b()),i(m()),i(p())]),V=o(d({citationId:l(b()),url:b(),score:m(),metadata:y(b(),B),considered:p(),display:d({card:L,listItem:L})}),{referenceIndex:d({all:m(),used:l(m())})}),H=d({all:i(V),used:i(V),unused:i(V)}),U=a([u([`pii-detected`,`blocked`,`maintenance`,`rate-limit`,`server-error`,`too-short`,`too-long`,`quota-reached`,`aborted`]),s(`sse-error`),s(`client-error`),s(`unexpected-call`)]),W=d({type:s(`bot`),time:b(),id:b(),message:d({markdown:b(),html:b(),text:b()}),references:H,errors:i(U),retrievalQuestion:l(b()),noFeedback:l(p()),feedback:l(u([`up`,`down`]))}),G=o(W,{state:u([`streaming`,`done`])}),K=a([a([o(W,{state:s(`loading`)}),G]),z,F]),q=i(d({question:b(),answer:b()})),J=d({label:b(),options:i(d({label:b(),value:m()}))}),oe=d({label:b(),icon:b(),url:b(),target:l(u([`_blank`,`_self`]))}),se=d({id:l(b()),label:ee(b()),question:b(),switchQuestionId:l(b())}),ce=u([`quality`,`impact`]),Y=d({impact:l(J),quality:l(J),order:l(i(ce))});d({classification:l(Y)});var le=d({predefinedQuestions:i(se)}),ue=a([d({maintenance:s(!0)}),d({id:b(),cID:b()})]);y(D,E),d({label:b(),placeholder:b(),locked:l(p())});var de=d({settingName:b(),iconName:b(),settingIntro:l(b()),type:u([`single-select`,`multi-select`]),allowEmpty:p(),values:i(b()),defaultValues:l(i(b()))}),fe=d({type:u([`text`,`select`,`checkbox`,`radio`]),name:b(),label:k,placeholder:l(k),required:l(p()),options:l(i(d({value:b(),label:k})))}),pe=d({receiverEmail:b(),triggerLabel:k,title:l(k),caption:l(k),submitLabel:k,fields:i(fe)}),X=d({before:l(i(K)),after:l(i(K))}),me=d({init:l(i(K)),bot:l(X),user:l(X)}),he=v(c(d({forcePredefinedQuestions:l(p()),forceChatPage:l(p()),showOverallFeedbackButton:p(),showOverallFeedbackEmail:p(),showCloseChatButton:p(),showContextMenu:p(),showContextInfo:p(),showReferencesByDefault:p(),referencesLayout:l(u([`aside`,`inline`])),showExpandedSelectors:p(),showTextFeedback:p(),inlineLayout:p(),allowAudioInput:p(),blockPII:p(),questionPrefix:b(),menu:l(r(D,i(oe))),supportedLanguages:i(D),classification:l(Y),answerForm:l(pe),theme:_,translations:O,buttonHref:l(b()),addQueryToUrlParams:l(p()),addRetrievalQuestionToUrlParams:l(p()),renderKatex:l(p()),reflectLanguageInPath:l(p()),sendReferrer:l(u([`all`,`own`,`none`,`location`])),selectorsConfig:h(i(de),[]),questionLengthLimit:l(m()),forceConsent:l(p()),askQuestionAgain:p(),enableBackdrop:l(p()),parentPageContext:d({extractSelectors:l(i(b()))}),messageAdditions:l(me),contextVersion:l(m()),selectedTopicResetPredefinedQuestionId:l(b())})),d({theme:l(d({name:l(b())}))})),Z=(e,t)=>t.includes(e),Q=(e,t)=>{if(Z(e,t))return e;let n=ge();return Z(n,t)?n:`en`},ge=()=>navigator.language.split(`-`)[0],$=(e,t)=>{localStorage.setItem(`liipgpt:selectedLanguage`,e),t&&(t.lang=e)},_e=e=>Q(localStorage.getItem(`liipgpt:selectedLanguage`),e),ve=(e,t,n)=>{if(!e)return``;if(e[t])return e[t];for(let t of n)if(e[t])return e[t];return e.en?e.en:Object.values(e).find(e=>typeof e==`string`&&e.length>0)??``},ye=(e,t)=>Array.from(new Set([e,...t,`en`,...S])),be=(e,t,n,r)=>{for(let i of ye(n,r)){let n=e[i]?.selectors?.[t];if(n)return n}};export{$ as a,ue as c,O as d,x as f,ve as i,q as l,Q as n,he as o,be as r,le as s,_e as t,R as u};
@@ -0,0 +1 @@
1
+ import{Lt as e,Mt as t,Rt as n,c as r,i,kt as a,o,ot as s,qt as c}from"./DK3lEKRX.js";import"./Bo0U8J3e.js";import"./CFKVnMbq.js";import"./CsGLkWF6.js";import"./hJTLHSgs.js";import"./BaFk5JeE.js";import"./BJVrdkuG.js";import"./DUHuqsF-.js";import"./BAn02Khb.js";import"./IVrT20gg.js";import{t as l}from"./qdgQQPPN.js";import"./DHHLckcz.js";import"./I5DxyXWx.js";import"./DmZKIk3Y.js";import"./MqTIsSeD.js";import{t as u}from"./CNNudH1c.js";function d(i,d){n(d,!0);let f=o(d,`forceTheme`,7),p=o(d,`apiUrl`,7),m=o(d,`apiKey`,7),h=o(d,`speechRecognitionApiKey`,7),g=o(d,`lang`,7),_=o(d,`features`,7),v=o(d,`loaderBackground`,7),y=o(d,`loaderColor`,7),b=o(d,`flyout`,7),x=o(d,`flyoutStyle`,7),S=o(d,`flyoutClass`,7),C=o(d,`chatClass`,7),w=o(d,`inlineLayout`,7),T=o(d,`forceChatPage`,7),E=o(d,`hidePredefinedQuestions`,7),D=o(d,`autofirePredefinedQuestionId`,7),O=o(d,`additionalStartParameters`,7),k=o(d,`question`,7),A=o(d,`mode`,7),j=o(d,`source`,7),M=o(d,`cache`,7),N=a(()=>({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),t()},get apiUrl(){return p()},set apiUrl(e){p(e),t()},get apiKey(){return m()},set apiKey(e){m(e),t()},get speechRecognitionApiKey(){return h()},set speechRecognitionApiKey(e){h(e),t()},get lang(){return g()},set lang(e){g(e),t()},get features(){return _()},set features(e){_(e),t()},get loaderBackground(){return v()},set loaderBackground(e){v(e),t()},get loaderColor(){return y()},set loaderColor(e){y(e),t()},get flyout(){return b()},set flyout(e){b(e),t()},get flyoutStyle(){return x()},set flyoutStyle(e){x(e),t()},get flyoutClass(){return S()},set flyoutClass(e){S(e),t()},get chatClass(){return C()},set chatClass(e){C(e),t()},get inlineLayout(){return w()},set inlineLayout(e){w(e),t()},get forceChatPage(){return T()},set forceChatPage(e){T(e),t()},get hidePredefinedQuestions(){return E()},set hidePredefinedQuestions(e){E(e),t()},get autofirePredefinedQuestionId(){return D()},set autofirePredefinedQuestionId(e){D(e),t()},get additionalStartParameters(){return O()},set additionalStartParameters(e){O(e),t()},get question(){return k()},set question(e){k(e),t()},get mode(){return A()},set mode(e){A(e),t()},get source(){return j()},set source(e){j(e),t()},get cache(){return M()},set cache(e){M(e),t()}};{let e=(e,t=c)=>{l(e,r({host:d.$$host,get onError(){return t()}},()=>s(N)))},t=a(()=>s(N).flyout??!1);u(i,{get silent(){return s(t)},body:e,$$slots:{body:!0}})}return e(P)}customElements.define(`liipgpt-chat`,i(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};
@@ -0,0 +1 @@
1
+ import{Lt as e,Mt as t,Rt as n,c as r,i,kt as a,o,ot as s,qt as c}from"./DK3lEKRX.js";import"./CFKVnMbq.js";import"./CsGLkWF6.js";import"./hJTLHSgs.js";import"./BaFk5JeE.js";import"./BJVrdkuG.js";import"./DHHLckcz.js";import"./I5DxyXWx.js";import{t as l}from"./DmZKIk3Y.js";import"./MqTIsSeD.js";import{t as u}from"./CNNudH1c.js";function d(i,d){n(d,!0);let f=o(d,`onclick`,7),p=o(d,`buttonClass`,7),m=o(d,`buttonStyle`,7),h=o(d,`apiUrl`,7),g=o(d,`forceTheme`,7),_=o(d,`lang`,7),v=a(()=>({onclick:f(),buttonClass:p(),buttonStyle:m(),apiUrl:h(),forceTheme:g(),lang:_()}));return u(i,{silent:!0,body:(e,t=c)=>{l(e,r({host:d.$$host,get onError(){return t()}},()=>s(v)))},$$slots:{body:!0}}),e({get onclick(){return f()},set onclick(e){f(e),t()},get buttonClass(){return p()},set buttonClass(e){p(e),t()},get buttonStyle(){return m()},set buttonStyle(e){m(e),t()},get apiUrl(){return h()},set apiUrl(e){h(e),t()},get forceTheme(){return g()},set forceTheme(e){g(e),t()},get lang(){return _()},set lang(e){_(e),t()}})}customElements.define(`liipgpt-button`,i(d,{forceTheme:{attribute:`force-theme`,type:`String`},buttonClass:{attribute:`button-class`,type:`String`},buttonStyle:{attribute:`button-style`,type:`String`},apiUrl:{attribute:`api-url`,type:`String`},lang:{attribute:`lang`,type:`String`},onclick:{}},[],[],{mode:`open`}));export{d as LiipGPTButton};
@@ -0,0 +1 @@
1
+ import"./CsGLkWF6.js";import{i as e,t}from"./hJTLHSgs.js";import"./BaFk5JeE.js";import{n}from"./BJVrdkuG.js";import{t as r}from"./MqTIsSeD.js";var i=async e=>r(await(await fetch(`${e}/chatconfig`)).json());async function a({apiUrl:r,lang:a,forceTheme:o}){let s=e(await i(r));return{chatConfig:s,language:n(a,s.supportedLanguages),colorScheme:t(Object.keys(s.fullTheme))}}export{a as loadChatConfig};
@@ -0,0 +1,15 @@
1
+ import{A as e,At as t,Dt as n,Gt as r,J as i,K as a,L as o,Lt as s,Mt as c,Rt as l,St as u,Tt as d,U as f,Wt as p,X as m,Y as h,bt as g,i as _,mt as v,nt as y,o as b,ot as x,qt as S,tt as C,xt as w}from"./DK3lEKRX.js";var T=m(`<div class="chat-app__container"><div class="error-message svelte-14mj70v">Server is unreachable, please try later... <button class="error-message__retry-button svelte-14mj70v">Retry</button></div></div>`),E=m(` <!>`,1),D={hash:`svelte-14mj70v`,code:`
2
+ /* These styles are inline, because at this point theme loading has failed. */.error-message.svelte-14mj70v {display:table;z-index:1000;width:auto;margin:2rem auto;padding:2rem;border-radius:2px;background:white;color:oklch(27.8% 0.033 256.848);font-family:-apple-system,
3
+ BlinkMacSystemFont,
4
+ avenir next,
5
+ avenir,
6
+ segoe ui,
7
+ helvetica neue,
8
+ helvetica,
9
+ Cantarell,
10
+ Ubuntu,
11
+ roboto,
12
+ noto,
13
+ arial,
14
+ sans-serif;}.error-message__retry-button.svelte-14mj70v {border:none;outline:none;background:none;font-size:1rem;text-decoration:underline;&:active {outline:none;}}`};function O(m,_){l(_,!0),e(m,D);let C=(e,t=S,n=S)=>{p();var o=E(),s=w(o),c=u(s),l=e=>{},d=e=>{var t=T(),a=g(t),o=u(g(a));r(a),r(t),y(`click`,o,()=>n()()),i(e,t)};f(c,e=>{k()?e(l):e(d,-1)}),v(e=>a(s,`${e??``} `),[()=>console.error(`Panic, uncaught error:
15
+ `,t())??``]),i(e,o)},O=b(_,`body`,7),k=b(_,`silent`,7),A=n(void 0),j=e=>{d(A,{error:e},!0)};var M={get body(){return O()},set body(e){O(e),c()},get silent(){return k()},set silent(e){k(e),c()}},N=h();return t(w(N),{get failed(){return C}},e=>{var t=h(),n=w(t),r=e=>{C(e,()=>x(A).error,()=>()=>{d(A,void 0)})},a=e=>{var t=h();o(w(t),O,()=>j),i(e,t)};f(n,e=>{x(A)?e(r):e(a,-1)}),i(e,t)}),i(m,N),s(M)}C([`click`]),_(O,{body:{},silent:{}},[],[],{mode:`open`});export{O as t};
@@ -1 +1 @@
1
- import{Ct as e,Dt as t,J as n,L as r,Lt as i,M as a,Mt as o,Rt as s,Tt as c,Y as l,g as u,i as d,k as f,kt as p,m,o as h,ot as g,s as _,xt as v}from"./rEsbAd0y.js";import{r as y}from"./CIHHNprL.js";var b={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é.`}},x={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`}},S=new class{#e=t(e({}));get data(){return g(this.#e)}set data(e){c(this.#e,e,!0)}#t=t(e({}));get targets(){return g(this.#t)}set targets(e){c(this.#t,e,!0)}#n=t(!1);get initialized(){return g(this.#n)}set initialized(e){c(this.#n,e,!0)}#r=t(0);get currentAudioVolume(){return g(this.#r)}set currentAudioVolume(e){c(this.#r,e,!0)}ariaLiveMessagesClearingTimeoutDuration=350;#i=t(null);get currentAudioRecorder(){return g(this.#i)}set currentAudioRecorder(e){c(this.#i,e,!0)}#a=t(!1);get isTranscribing(){return g(this.#a)}set isTranscribing(e){c(this.#a,e,!0)}#o=p(()=>{if(!this.initialized)return[];let e=this.data.chatConfig.menu;return e?e[this.data.language]??[]:[]});get menu(){return g(this.#o)}set menu(e){c(this.#o,e)}#s=p(()=>this.initialized?this.data.chatConfig.translations[this.data.language]??{}:{});get t(){return g(this.#s)}set t(e){c(this.#s,e)}#c=p(()=>this.initialized?b[this.data.language]??{}:b.en??{});get errorTranslations(){return g(this.#c)}set errorTranslations(e){c(this.#c,e)}#l=p(()=>this.initialized?x[this.data.language]??{}:x.en??{});get piiTranslations(){return g(this.#l)}set piiTranslations(e){c(this.#l,e)}#u=p(()=>this.initialized?this.data.currentColorScheme:`light`);get colorScheme(){return g(this.#u)}set colorScheme(e){c(this.#u,e)}#d=p(()=>this.initialized?this.data.chatConfig.fullTheme[this.data.currentColorScheme]:{});get themeBase(){return g(this.#d)}set themeBase(e){c(this.#d,e)}#f=p(()=>this.themeBase.tokens);get theme(){return g(this.#f)}set theme(e){c(this.#f,e)}#p=p(()=>{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 g(this.#p)}set selectorsWithErrors(e){c(this.#p,e)}#m=p(()=>{if(!this.initialized)return{};let e=this.data.chatConfig,t={};for(let n of e.selectorsConfig){let r=y(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 g(this.#m)}set selectorTranslations(e){c(this.#m,e)}#h=p(()=>{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 g(this.#h)}set hasMainNavigationContent(e){c(this.#h,e)}#g=p(()=>{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 g(this.#g)}set ariaMainNavigationRegion(e){c(this.#g,e)}};function C(e,t){s(t,!0);let c=h(t,`href`,7),d=h(t,`target`,7),y=h(t,`onclick`,7),b=h(t,`className`,23,()=>[]),x=h(t,`isStandalone`,7,!1),S=h(t,`children`,7),C=h(t,`type`,7,`button`),w=h(t,`use`,7),T=h(t,`class`,7),E=_(t,[`$$slots`,`$$events`,`$$legacy`,`$$host`,`href`,`target`,`onclick`,`className`,`isStandalone`,`children`,`type`,`use`,`class`]),D=p(()=>c()?`a`:`button`),O=p(()=>[...Array.isArray(b())?b():b()?[b()]:[],...T()?[T()]:[]]),k=()=>({}),A=p(()=>w()??k);var j={get href(){return c()},set href(e){c(e),o()},get target(){return d()},set target(e){d(e),o()},get onclick(){return y()},set onclick(e){y(e),o()},get className(){return b()},set className(e=[]){b(e),o()},get isStandalone(){return x()},set isStandalone(e=!1){x(e),o()},get children(){return S()},set children(e){S(e),o()},get type(){return C()},set type(e=`button`){C(e),o()},get use(){return w()},set use(e){w(e),o()},get class(){return T()},set class(e){T(e),o()}},M=l();return a(v(M),()=>g(D),!1,(e,t)=>{f(e,e=>g(A)?.(e)),u(e,()=>({...E,onclick:c()?void 0:y(),type:c()?void 0:C(),href:c(),role:c()?`link`:`button`,target:c()?d():void 0,class:g(O),[m]:{"open-button--standalone":x()}}));var i=l();r(v(i),S),n(t,i)}),n(e,M),i(j)}d(C,{href:{},target:{},onclick:{},className:{},isStandalone:{},children:{},type:{},use:{},class:{}},[],[],{mode:`open`});export{S as n,C as t};
1
+ import{Ct as e,Dt as t,J as n,L as r,Lt as i,M as a,Mt as o,Rt as s,Tt as c,Y as l,g as u,i as d,k as f,kt as p,m,o as h,ot as g,s as _,xt as v}from"./DK3lEKRX.js";import{r as y}from"./BJVrdkuG.js";var b={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é.`}},x={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`}},S=new class{#e=t(e({}));get data(){return g(this.#e)}set data(e){c(this.#e,e,!0)}#t=t(e({}));get targets(){return g(this.#t)}set targets(e){c(this.#t,e,!0)}#n=t(!1);get initialized(){return g(this.#n)}set initialized(e){c(this.#n,e,!0)}#r=t(0);get currentAudioVolume(){return g(this.#r)}set currentAudioVolume(e){c(this.#r,e,!0)}ariaLiveMessagesClearingTimeoutDuration=350;#i=t(null);get currentAudioRecorder(){return g(this.#i)}set currentAudioRecorder(e){c(this.#i,e,!0)}#a=t(!1);get isTranscribing(){return g(this.#a)}set isTranscribing(e){c(this.#a,e,!0)}#o=p(()=>{if(!this.initialized)return[];let e=this.data.chatConfig.menu;return e?e[this.data.language]??[]:[]});get menu(){return g(this.#o)}set menu(e){c(this.#o,e)}#s=p(()=>this.initialized?this.data.chatConfig.translations[this.data.language]??{}:{});get t(){return g(this.#s)}set t(e){c(this.#s,e)}#c=p(()=>this.initialized?b[this.data.language]??{}:b.en??{});get errorTranslations(){return g(this.#c)}set errorTranslations(e){c(this.#c,e)}#l=p(()=>this.initialized?x[this.data.language]??{}:x.en??{});get piiTranslations(){return g(this.#l)}set piiTranslations(e){c(this.#l,e)}#u=p(()=>this.initialized?this.data.currentColorScheme:`light`);get colorScheme(){return g(this.#u)}set colorScheme(e){c(this.#u,e)}#d=p(()=>this.initialized?this.data.chatConfig.fullTheme[this.data.currentColorScheme]:{});get themeBase(){return g(this.#d)}set themeBase(e){c(this.#d,e)}#f=p(()=>this.themeBase.tokens);get theme(){return g(this.#f)}set theme(e){c(this.#f,e)}#p=p(()=>{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 g(this.#p)}set selectorsWithErrors(e){c(this.#p,e)}#m=p(()=>{if(!this.initialized)return{};let e=this.data.chatConfig,t={};for(let n of e.selectorsConfig){let r=y(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 g(this.#m)}set selectorTranslations(e){c(this.#m,e)}#h=p(()=>{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 g(this.#h)}set hasMainNavigationContent(e){c(this.#h,e)}#g=p(()=>{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 g(this.#g)}set ariaMainNavigationRegion(e){c(this.#g,e)}};function C(e,t){s(t,!0);let c=h(t,`href`,7),d=h(t,`target`,7),y=h(t,`onclick`,7),b=h(t,`className`,23,()=>[]),x=h(t,`isStandalone`,7,!1),S=h(t,`children`,7),C=h(t,`type`,7,`button`),w=h(t,`use`,7),T=h(t,`class`,7),E=_(t,[`$$slots`,`$$events`,`$$legacy`,`$$host`,`href`,`target`,`onclick`,`className`,`isStandalone`,`children`,`type`,`use`,`class`]),D=p(()=>c()?`a`:`button`),O=p(()=>[...Array.isArray(b())?b():b()?[b()]:[],...T()?[T()]:[]]),k=()=>({}),A=p(()=>w()??k);var j={get href(){return c()},set href(e){c(e),o()},get target(){return d()},set target(e){d(e),o()},get onclick(){return y()},set onclick(e){y(e),o()},get className(){return b()},set className(e=[]){b(e),o()},get isStandalone(){return x()},set isStandalone(e=!1){x(e),o()},get children(){return S()},set children(e){S(e),o()},get type(){return C()},set type(e=`button`){C(e),o()},get use(){return w()},set use(e){w(e),o()},get class(){return T()},set class(e){T(e),o()}},M=l();return a(v(M),()=>g(D),!1,(e,t)=>{f(e,e=>g(A)?.(e)),u(e,()=>({...E,onclick:c()?void 0:y(),type:c()?void 0:C(),href:c(),role:c()?`link`:`button`,target:c()?d():void 0,class:g(O),[m]:{"open-button--standalone":x()}}));var i=l();r(v(i),S),n(t,i)}),n(e,M),i(j)}d(C,{href:{},target:{},onclick:{},className:{},isStandalone:{},children:{},type:{},use:{},class:{}},[],[],{mode:`open`});export{S as n,C as t};
@@ -0,0 +1,3 @@
1
+ import{n as e}from"./CibALFW0.js";var t=Array.isArray,n=Array.prototype.indexOf,r=Array.prototype.includes,i=Array.from,a=Object.keys,o=Object.defineProperty,s=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyDescriptors,l=Object.prototype,u=Array.prototype,d=Object.getPrototypeOf,f=Object.isExtensible;function p(e){return typeof e==`function`}var m=()=>{};function h(e){return typeof e?.then==`function`}function g(e){return e()}function _(e){for(var t=0;t<e.length;t++)e[t]()}function v(){var e,t;return{promise:new Promise((n,r)=>{e=n,t=r}),resolve:e,reject:t}}function y(e,t){if(Array.isArray(e))return e;if(t===void 0||!(Symbol.iterator in e))return Array.from(e);let n=[];for(let r of e)if(n.push(r),n.length===t)break;return n}var ee=1<<24,b=1024,x=2048,te=4096,ne=8192,re=16384,ie=32768,ae=1<<25,oe=65536,se=1<<18,ce=1<<19,le=1<<20,ue=1<<25,de=65536,fe=1<<21,pe=1<<22,me=1<<23,he=Symbol(`$state`),ge=Symbol(`legacy props`),_e=Symbol(``),ve=Symbol(`proxy path`),ye=new class extends Error{name=`StaleReactionError`;message="The reaction that called `getAbortSignal()` was re-run or destroyed"},be=!!globalThis.document?.contentType&&globalThis.document.contentType.includes(`xml`);function xe(e){throw Error(`https://svelte.dev/e/experimental_async_required`)}function Se(e){throw Error(`https://svelte.dev/e/lifecycle_outside_component`)}function Ce(){throw Error(`https://svelte.dev/e/missing_context`)}function we(){throw Error(`https://svelte.dev/e/async_derived_orphan`)}function Te(e,t,n){throw Error(`https://svelte.dev/e/each_key_duplicate`)}function Ee(e){throw Error(`https://svelte.dev/e/effect_in_teardown`)}function De(){throw Error(`https://svelte.dev/e/effect_in_unowned_derived`)}function Oe(e){throw Error(`https://svelte.dev/e/effect_orphan`)}function ke(){throw Error(`https://svelte.dev/e/effect_update_depth_exceeded`)}function Ae(){throw Error(`https://svelte.dev/e/fork_discarded`)}function je(){throw Error(`https://svelte.dev/e/fork_timing`)}function Me(){throw Error(`https://svelte.dev/e/get_abort_signal_outside_reaction`)}function Ne(){throw Error(`https://svelte.dev/e/hydration_failed`)}function Pe(e){throw Error(`https://svelte.dev/e/lifecycle_legacy_only`)}function Fe(e){throw Error(`https://svelte.dev/e/props_invalid_value`)}function Ie(){throw Error(`https://svelte.dev/e/set_context_after_init`)}function Le(){throw Error(`https://svelte.dev/e/state_descriptors_fixed`)}function Re(){throw Error(`https://svelte.dev/e/state_prototype_fixed`)}function ze(){throw Error(`https://svelte.dev/e/state_unsafe_mutation`)}function Be(){throw Error(`https://svelte.dev/e/svelte_boundary_reset_onerror`)}var Ve={},S=Symbol(),He=`http://www.w3.org/1999/xhtml`,Ue=`http://www.w3.org/2000/svg`,We=`http://www.w3.org/1998/Math/MathML`,Ge=`@attach`;function Ke(e){console.warn(`https://svelte.dev/e/hydratable_missing_but_expected`)}function qe(e){console.warn(`https://svelte.dev/e/hydration_mismatch`)}function Je(){console.warn(`https://svelte.dev/e/select_multiple_invalid_value`)}function Ye(){console.warn(`https://svelte.dev/e/svelte_boundary_reset_noop`)}function Xe(e){console.warn(`https://svelte.dev/e/transition_slide_display`)}var C=!1;function w(e){C=e}var T;function E(e){if(e===null)throw qe(),Ve;return T=e}function D(){return E(L(T))}function Ze(e){if(C){if(L(T)!==null)throw qe(),Ve;T=e}}function Qe(e=1){if(C){for(var t=e,n=T;t--;)n=L(n);T=n}}function $e(e=!0){for(var t=0,n=T;;){if(n.nodeType===8){var r=n.data;if(r===`]`){if(t===0)return n;--t}else (r===`[`||r===`[!`||r[0]===`[`&&!isNaN(Number(r.slice(1))))&&(t+=1)}var i=L(n);e&&n.remove(),n=i}}function et(e){if(!e||e.nodeType!==8)throw qe(),Ve;return e.data}function tt(e){return e===this.v}function nt(e,t){return e==e?e!==t||typeof e==`object`&&!!e||typeof e==`function`:t==t}function rt(e){return!nt(e,this.v)}var O=!1,it=!1;function at(){it=!0}var ot=[];function st(e,t=!1,n=!1){return ct(e,new Map,``,ot,null,n)}function ct(e,n,r,i,a=null,o=!1){if(typeof e==`object`&&e){var s=n.get(e);if(s!==void 0)return s;if(e instanceof Map)return new Map(e);if(e instanceof Set)return new Set(e);if(t(e)){var c=Array(e.length);n.set(e,c),a!==null&&n.set(a,c);for(var u=0;u<e.length;u+=1){var f=e[u];u in e&&(c[u]=ct(f,n,r,i,null,o))}return c}if(d(e)===l){c={},n.set(e,c),a!==null&&n.set(a,c);for(var p of Object.keys(e))c[p]=ct(e[p],n,r,i,null,o);return c}if(e instanceof Date)return structuredClone(e);if(typeof e.toJSON==`function`&&!o)return ct(e.toJSON(),n,r,i,e)}if(e instanceof EventTarget)return e;try{return structuredClone(e)}catch{return e}}function lt(e,t){return e.label=t,ut(e.v,t),e}function ut(e,t){return e?.[ve]?.(t),e}function dt(e){return typeof e==`symbol`?`Symbol(${e.description})`:typeof e==`function`?`<function>`:typeof e==`object`&&e?`<object>`:String(e)}var k=null;function ft(e){k=e}function pt(){let e={};return[()=>(gt(e)||Ce(),mt(e)),t=>ht(e,t)]}function mt(e){return xt(`getContext`).get(e)}function ht(e,t){let n=xt(`setContext`);if(O){var r=W.f;!V&&r&32&&!k.i||Ie()}return n.set(e,t),t}function gt(e){return xt(`hasContext`).has(e)}function _t(){return xt(`getAllContexts`)}function vt(e,t=!1,n){k={p:k,i:!1,c:null,e:null,s:e,x:null,r:W,l:it&&!t?{s:null,u:null,$:[]}:null}}function yt(e){var t=k,n=t.e;if(n!==null){t.e=null;for(var r of n)sr(r)}return e!==void 0&&(t.x=e),t.i=!0,k=t.p,e??{}}function bt(){return!it||k!==null&&k.l===null}function xt(e){return k===null&&Se(e),k.c??=new Map(St(k)||void 0)}function St(e){let t=e.p;for(;t!==null;){let e=t.c;if(e!==null)return e;t=t.p}return null}var Ct=[];function wt(){var e=Ct;Ct=[],_(e)}function A(e){if(Ct.length===0&&!zt){var t=Ct;queueMicrotask(()=>{t===Ct&&wt()})}Ct.push(e)}function Tt(){for(;Ct.length>0;)wt()}function Et(e){var t=W;if(t===null)return V.f|=me,e;if(!(t.f&32768)&&!(t.f&4))throw e;Dt(e,t)}function Dt(e,t){for(;t!==null;){if(t.f&128){if(!(t.f&32768))throw e;try{t.b.error(e);return}catch(t){e=t}}t=t.parent}throw e}var Ot=~(x|te|b);function j(e,t){e.f=e.f&Ot|t}function kt(e){e.f&512||e.deps===null?j(e,b):j(e,te)}function At(e){if(e!==null)for(let t of e)!(t.f&2)||!(t.f&65536)||(t.f^=de,At(t.deps))}function jt(e,t,n){e.f&2048?t.add(e):e.f&4096&&n.add(e),At(e.deps),j(e,b)}var Mt=[];function Nt(e,t=m){let n=null,r=new Set;function i(t){if(nt(e,t)&&(e=t,n)){let t=!Mt.length;for(let t of r)t[1](),Mt.push(t,e);if(t){for(let e=0;e<Mt.length;e+=2)Mt[e][0](Mt[e+1]);Mt.length=0}}}function a(t){i(t(e))}function o(o,s=m){let c=[o,s];return r.add(c),r.size===1&&(n=t(i,a)||m),o(e),()=>{r.delete(c),r.size===0&&n&&(n(),n=null)}}return{set:i,update:a,subscribe:o}}var Pt=!1,Ft=!1;function It(e){var t=Ft;try{return Ft=!1,[e(),Ft]}finally{Ft=t}}var M=new Set,N=null,Lt=null,P=null,Rt=null,zt=!1,Bt=!1,Vt=null,Ht=null,Ut=0,Wt=1,Gt=class e{id=Wt++;current=new Map;previous=new Map;#e=new Set;#t=new Set;#n=0;#r=0;#i=null;#a=[];#o=new Set;#s=new Set;#c=new Map;is_fork=!1;#l=!1;#u(){return this.is_fork||this.#r>0}skip_effect(e){this.#c.has(e)||this.#c.set(e,{d:[],m:[]})}unskip_effect(e){var t=this.#c.get(e);if(t){this.#c.delete(e);for(var n of t.d)j(n,x),this.schedule(n);for(n of t.m)j(n,te),this.schedule(n)}}#d(){if(Ut++>1e3&&(M.delete(this),qt()),!this.#u()){for(let e of this.#o)this.#s.delete(e),j(e,x),this.schedule(e);for(let e of this.#s)j(e,te),this.schedule(e)}let t=this.#a;this.#a=[],this.apply();var n=Vt=[],r=[],i=Ht=[];for(let e of t)try{this.#f(e,n,r)}catch(t){throw tn(e),t}if(N=null,i.length>0){var a=e.ensure();for(let e of i)a.schedule(e)}if(Vt=null,Ht=null,this.#u()){this.#p(r),this.#p(n);for(let[e,t]of this.#c)en(e,t)}else{this.#n===0&&M.delete(this),this.#o.clear(),this.#s.clear();for(let e of this.#e)e(this);this.#e.clear(),Lt=this,Yt(r),Yt(n),Lt=null,this.#i?.resolve()}var o=N;if(this.#a.length>0){let e=o??=this;e.#a.push(...this.#a.filter(t=>!e.#a.includes(t)))}o!==null&&(M.add(o),o.#d()),M.has(this)||this.#m()}#f(e,t,n){e.f^=b;for(var r=e.first;r!==null;){var i=r.f,a=(i&96)!=0;if(!(a&&i&1024||i&8192||this.#c.has(r))&&r.fn!==null){a?r.f^=b:i&4?t.push(r):O&&i&16777224?n.push(r):Rr(r)&&(i&16&&this.#s.add(r),Ur(r));var o=r.first;if(o!==null){r=o;continue}}for(;r!==null;){var s=r.next;if(s!==null){r=s;break}r=r.parent}}}#p(e){for(var t=0;t<e.length;t+=1)jt(e[t],this.#o,this.#s)}capture(e,t){t!==S&&!this.previous.has(e)&&this.previous.set(e,t),e.f&8388608||(this.current.set(e,e.v),P?.set(e,e.v))}activate(){N=this}deactivate(){N=null,P=null}flush(){try{Bt=!0,N=this,this.#d()}finally{Ut=0,Rt=null,Vt=null,Ht=null,Bt=!1,N=null,P=null,Cn.clear()}}discard(){for(let e of this.#t)e(this);this.#t.clear(),M.delete(this)}#m(){for(let s of M){var e=s.id<this.id,t=[];for(let[n,r]of this.current){if(s.current.has(n))if(e&&r!==s.current.get(n))s.current.set(n,r);else continue;t.push(n)}var n=[...s.current.keys()].filter(e=>!this.current.has(e));if(n.length===0)e&&s.discard();else if(t.length>0){s.activate();var r=new Set,i=new Map;for(var a of t)Xt(a,n,r,i);if(s.#a.length>0){s.apply();for(var o of s.#a)s.#f(o,[],[]);s.#a=[]}s.deactivate()}}}increment(e){this.#n+=1,e&&(this.#r+=1)}decrement(e,t){--this.#n,e&&--this.#r,!(this.#l||t)&&(this.#l=!0,A(()=>{this.#l=!1,this.flush()}))}transfer_effects(e,t){for(let t of e)this.#o.add(t);for(let e of t)this.#s.add(e);e.clear(),t.clear()}oncommit(e){this.#e.add(e)}ondiscard(e){this.#t.add(e)}settled(){return(this.#i??=v()).promise}static ensure(){if(N===null){let t=N=new e;Bt||(M.add(N),zt||A(()=>{N===t&&t.flush()}))}return N}apply(){if(!O||!this.is_fork&&M.size===1){P=null;return}P=new Map(this.current);for(let e of M)if(!(e===this||e.is_fork))for(let[t,n]of e.previous)P.has(t)||P.set(t,n)}schedule(e){if(Rt=e,e.b?.is_pending&&e.f&16777228&&!(e.f&32768)){e.b.defer_effect(e);return}for(var t=e;t.parent!==null;){t=t.parent;var n=t.f;if(Vt!==null&&t===W&&(O||(V===null||!(V.f&2))&&!Pt))return;if(n&96){if(!(n&1024))return;t.f^=b}}this.#a.push(t)}};function Kt(e){var t=zt;zt=!0;try{var n;for(e&&(N!==null&&!N.is_fork&&N.flush(),n=e());;){if(Tt(),N===null)return n;N.flush()}}finally{zt=t}}function qt(){try{ke()}catch(e){Dt(e,Rt)}}var Jt=null;function Yt(e){var t=e.length;if(t!==0){for(var n=0;n<t;){var r=e[n++];if(!(r.f&24576)&&Rr(r)&&(Jt=new Set,Ur(r),r.deps===null&&r.first===null&&r.nodes===null&&r.teardown===null&&r.ac===null&&xr(r),Jt?.size>0)){Cn.clear();for(let e of Jt){if(e.f&24576)continue;let t=[e],n=e.parent;for(;n!==null;)Jt.has(n)&&(Jt.delete(n),t.push(n)),n=n.parent;for(let e=t.length-1;e>=0;e--){let n=t[e];n.f&24576||Ur(n)}}Jt.clear()}}Jt=null}}function Xt(e,t,n,r){if(!n.has(e)&&(n.add(e),e.reactions!==null))for(let i of e.reactions){let e=i.f;e&2?Xt(i,t,n,r):e&4194320&&!(e&2048)&&Qt(i,t,r)&&(j(i,x),$t(i))}}function Zt(e,t){if(e.reactions!==null)for(let n of e.reactions){let e=n.f;e&2?Zt(n,t):e&131072&&(j(n,x),t.add(n))}}function Qt(e,t,n){let i=n.get(e);if(i!==void 0)return i;if(e.deps!==null)for(let i of e.deps){if(r.call(t,i))return!0;if(i.f&2&&Qt(i,t,n))return n.set(i,!0),!0}return n.set(e,!1),!1}function $t(e){N.schedule(e)}function en(e,t){if(!(e.f&32&&e.f&1024)){e.f&2048?t.d.push(e):e.f&4096&&t.m.push(e),j(e,b);for(var n=e.first;n!==null;)en(n,t),n=n.next}}function tn(e){j(e,b);for(var t=e.first;t!==null;)tn(t),t=t.next}function nn(e){O||xe(`fork`),N!==null&&je();var t=Gt.ensure();t.is_fork=!0,P=new Map;var n=!1,r=t.settled();Kt(e);for(var[i,a]of t.previous)i.v=a;return{commit:async()=>{if(n){await r;return}M.has(t)||Ae(),n=!0,t.is_fork=!1;for(var[e,i]of t.current)e.v=i,e.wv=Lr();Kt(()=>{var e=new Set;for(var n of t.current.keys())Zt(n,e);wn(e),jn()}),t.flush(),await r},discard:()=>{for(var e of t.current.keys())e.wv=Lr();!n&&M.has(t)&&t.discard()}}}function rn(e){let t=0,n=En(0),r;return()=>{ir()&&(X(n),pr(()=>(t===0&&(r=Z(()=>e(()=>Mn(n)))),t+=1,()=>{A(()=>{--t,t===0&&(r?.(),r=void 0,Mn(n))})})))}}var an=oe|ce;function on(e,t,n,r){new sn(e,t,n,r)}var sn=class{parent;is_pending=!1;transform_error;#e;#t=C?T:null;#n;#r;#i;#a=null;#o=null;#s=null;#c=null;#l=0;#u=0;#d=!1;#f=new Set;#p=new Set;#m=null;#h=rn(()=>(this.#m=En(this.#l),()=>{this.#m=null}));constructor(e,t,n,r){this.#e=e,this.#n=t,this.#r=e=>{var t=W;t.b=this,t.f|=128,n(e)},this.parent=W.b,this.transform_error=r??this.parent?.transform_error??(e=>e),this.#i=hr(()=>{if(C){let e=this.#t;D();let t=e.data===`[!`;if(e.data.startsWith(`[?`)){let t=JSON.parse(e.data.slice(2));this.#_(t)}else t?this.#v():this.#g()}else this.#y()},an),C&&(this.#e=T)}#g(){try{this.#a=z(()=>this.#r(this.#e))}catch(e){this.error(e)}}#_(e){let t=this.#n.failed;t&&(this.#s=z(()=>{t(this.#e,()=>e,()=>()=>{})}))}#v(){let e=this.#n.pending;e&&(this.is_pending=!0,this.#o=z(()=>e(this.#e)),A(()=>{var e=this.#c=document.createDocumentFragment(),t=F();e.append(t),this.#a=this.#x(()=>z(()=>this.#r(t))),this.#u===0&&(this.#e.before(e),this.#c=null,Sr(this.#o,()=>{this.#o=null}),this.#b(N))}))}#y(){try{if(this.is_pending=this.has_pending_snippet(),this.#u=0,this.#l=0,this.#a=z(()=>{this.#r(this.#e)}),this.#u>0){var e=this.#c=document.createDocumentFragment();Er(this.#a,e);let t=this.#n.pending;this.#o=z(()=>t(this.#e))}else this.#b(N)}catch(e){this.error(e)}}#b(e){this.is_pending=!1,e.transfer_effects(this.#f,this.#p)}defer_effect(e){jt(e,this.#f,this.#p)}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!this.#n.pending}#x(e){var t=W,n=V,r=k;G(this.#i),U(this.#i),ft(this.#i.ctx);try{return Gt.ensure(),e()}catch(e){return Et(e),null}finally{G(t),U(n),ft(r)}}#S(e,t){if(!this.has_pending_snippet()){this.parent&&this.parent.#S(e,t);return}this.#u+=e,this.#u===0&&(this.#b(t),this.#o&&Sr(this.#o,()=>{this.#o=null}),this.#c&&=(this.#e.before(this.#c),null))}update_pending_count(e,t){this.#S(e,t),this.#l+=e,!(!this.#m||this.#d)&&(this.#d=!0,A(()=>{this.#d=!1,this.#m&&An(this.#m,this.#l)}))}get_effect_pending(){return this.#h(),X(this.#m)}error(e){var t=this.#n.onerror;let n=this.#n.failed;if(!t&&!n)throw e;this.#a&&=(B(this.#a),null),this.#o&&=(B(this.#o),null),this.#s&&=(B(this.#s),null),C&&(E(this.#t),Qe(),E($e()));var r=!1,i=!1;let a=()=>{if(r){Ye();return}r=!0,i&&Be(),this.#s!==null&&Sr(this.#s,()=>{this.#s=null}),this.#x(()=>{this.#y()})},o=e=>{try{i=!0,t?.(e,a),i=!1}catch(e){Dt(e,this.#i&&this.#i.parent)}n&&(this.#s=this.#x(()=>{try{return z(()=>{var t=W;t.b=this,t.f|=128,n(this.#e,()=>e,()=>a)})}catch(e){return Dt(e,this.#i.parent),null}}))};A(()=>{var t;try{t=this.transform_error(e)}catch(e){Dt(e,this.#i&&this.#i.parent);return}typeof t==`object`&&t&&typeof t.then==`function`?t.then(o,e=>Dt(e,this.#i&&this.#i.parent)):o(t)})}};function cn(e,t,n,r){let i=bt()?fn:hn;var a=e.filter(e=>!e.settled);if(n.length===0&&a.length===0){r(t.map(i));return}var o=W,s=ln(),c=a.length===1?a[0].promise:a.length>1?Promise.all(a.map(e=>e.promise)):null;function l(e){s();try{r(e)}catch(e){o.f&16384||Dt(e,o)}un()}if(n.length===0){c.then(()=>l(t.map(i)));return}var u=dn();function d(){Promise.all(n.map(e=>pn(e))).then(e=>l([...t.map(i),...e])).catch(e=>Dt(e,o)).finally(()=>u())}c?c.then(()=>{s(),d(),un()}):d()}function ln(){var e=W,t=V,n=k,r=N;return function(i=!0){G(e),U(t),ft(n),i&&!(e.f&16384)&&(r?.activate(),r?.apply())}}function un(e=!0){G(null),U(null),ft(null),e&&N?.deactivate()}function dn(){var e=W.b,t=N,n=e.is_rendered();return e.update_pending_count(1,t),t.increment(n),(r=!1)=>{e.update_pending_count(-1,t),t.decrement(n,r)}}function fn(e){var t=2|x,n=V!==null&&V.f&2?V:null;return W!==null&&(W.f|=ce),{ctx:k,deps:null,effects:null,equals:tt,f:t,fn:e,reactions:null,rv:0,v:S,wv:0,parent:n??W,ac:null}}function pn(e,t,n){let r=W;r===null&&we();var i=void 0,a=En(S),o=!V,s=new Map;return fr(()=>{var t=W,n=v();i=n.promise;try{Promise.resolve(e()).then(n.resolve,n.reject).finally(un)}catch(e){n.reject(e),un()}var c=N;if(o){if(t.f&32768)var l=dn();if(r.b.is_rendered())s.get(c)?.reject(ye),s.delete(c);else{for(let e of s.values())e.reject(ye);s.clear()}s.set(c,n)}let u=(e,n=void 0)=>{if(l&&l(n===ye),!(n===ye||t.f&16384)){if(c.activate(),n)a.f|=me,An(a,n);else{a.f&8388608&&(a.f^=me),An(a,e);for(let[e,t]of s){if(s.delete(e),e===c)break;t.reject(ye)}}c.deactivate()}};n.promise.then(u,e=>u(null,e||`unknown`))}),ar(()=>{for(let e of s.values())e.reject(ye)}),new Promise(e=>{function t(n){function r(){n===i?e(a):t(i)}n.then(r,r)}t(i)})}function mn(e){let t=fn(e);return O||jr(t),t}function hn(e){let t=fn(e);return t.equals=rt,t}function gn(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)B(t[n])}}function _n(e){for(var t=e.parent;t!==null;){if(!(t.f&2))return t.f&16384?null:t;t=t.parent}return null}function vn(e){var t,n=W;G(_n(e));try{e.f&=~de,gn(e),t=Br(e)}finally{G(n)}return t}function yn(e){var t=e.v,n=vn(e);if(!e.equals(n)&&(e.wv=Lr(),(!N?.is_fork||e.deps===null)&&(e.v=n,N?.capture(e,t),e.deps===null))){j(e,b);return}kr||(P===null?kt(e):(ir()||N?.is_fork)&&P.set(e,n))}function bn(e){if(e.effects!==null)for(let t of e.effects)(t.teardown||t.ac)&&(t.teardown?.(),t.ac?.abort(ye),t.teardown=m,t.ac=null,Hr(t,0),vr(t))}function xn(e){if(e.effects!==null)for(let t of e.effects)t.teardown&&Ur(t)}var Sn=new Set,Cn=new Map;function wn(e){Sn=e}var Tn=!1;function En(e,t){return{f:0,v:e,reactions:null,equals:tt,rv:0,wv:0}}function Dn(e,t){let n=En(e,t);return jr(n),n}function On(e,t=!1,n=!0){let r=En(e);return t||(r.equals=rt),it&&n&&k!==null&&k.l!==null&&(k.l.s??=[]).push(r),r}function kn(e,t,n=!1){return V!==null&&(!H||V.f&131072)&&bt()&&V.f&4325394&&(K===null||!r.call(K,e))&&ze(),An(e,n?Pn(t):t,Ht)}function An(e,t,n=null){if(!e.equals(t)){var r=e.v;kr?Cn.set(e,t):Cn.set(e,r),e.v=t;var i=Gt.ensure();if(i.capture(e,r),e.f&2){let t=e;e.f&2048&&vn(t),P===null&&kt(t)}e.wv=Lr(),Nn(e,x,n),bt()&&W!==null&&W.f&1024&&!(W.f&96)&&(Y===null?Mr([e]):Y.push(e)),!i.is_fork&&Sn.size>0&&!Tn&&jn()}return t}function jn(){Tn=!1;for(let e of Sn)e.f&1024&&j(e,te),Rr(e)&&Ur(e);Sn.clear()}function Mn(e){kn(e,e.v+1)}function Nn(e,t,n){var r=e.reactions;if(r!==null)for(var i=bt(),a=r.length,o=0;o<a;o++){var s=r[o],c=s.f;if(!(!i&&s===W)){var l=(c&x)===0;if(l&&j(s,t),c&2){var u=s;P?.delete(u),c&65536||(c&512&&(s.f|=de),Nn(u,te,n))}else if(l){var d=s;c&16&&Jt!==null&&Jt.add(d),n===null?$t(d):n.push(d)}}}}function Pn(e){if(typeof e!=`object`||!e||he in e)return e;let n=d(e);if(n!==l&&n!==u)return e;var r=new Map,i=t(e),a=Dn(0),o=null,c=Fr,f=e=>{if(Fr===c)return e();var t=V,n=Fr;U(null),Ir(c);var r=e();return U(t),Ir(n),r};return i&&r.set(`length`,Dn(e.length,o)),new Proxy(e,{defineProperty(e,t,n){(!(`value`in n)||n.configurable===!1||n.enumerable===!1||n.writable===!1)&&Le();var i=r.get(t);return i===void 0?f(()=>{var e=Dn(n.value,o);return r.set(t,e),e}):kn(i,n.value,!0),!0},deleteProperty(e,t){var n=r.get(t);if(n===void 0){if(t in e){let e=f(()=>Dn(S,o));r.set(t,e),Mn(a)}}else kn(n,S),Mn(a);return!0},get(t,n,i){if(n===he)return e;var a=r.get(n),c=n in t;if(a===void 0&&(!c||s(t,n)?.writable)&&(a=f(()=>Dn(Pn(c?t[n]:S),o)),r.set(n,a)),a!==void 0){var l=X(a);return l===S?void 0:l}return Reflect.get(t,n,i)},getOwnPropertyDescriptor(e,t){var n=Reflect.getOwnPropertyDescriptor(e,t);if(n&&`value`in n){var i=r.get(t);i&&(n.value=X(i))}else if(n===void 0){var a=r.get(t),o=a?.v;if(a!==void 0&&o!==S)return{enumerable:!0,configurable:!0,value:o,writable:!0}}return n},has(e,t){if(t===he)return!0;var n=r.get(t),i=n!==void 0&&n.v!==S||Reflect.has(e,t);return(n!==void 0||W!==null&&(!i||s(e,t)?.writable))&&(n===void 0&&(n=f(()=>Dn(i?Pn(e[t]):S,o)),r.set(t,n)),X(n)===S)?!1:i},set(e,t,n,c){var l=r.get(t),u=t in e;if(i&&t===`length`)for(var d=n;d<l.v;d+=1){var p=r.get(d+``);p===void 0?d in e&&(p=f(()=>Dn(S,o)),r.set(d+``,p)):kn(p,S)}if(l===void 0)(!u||s(e,t)?.writable)&&(l=f(()=>Dn(void 0,o)),kn(l,Pn(n)),r.set(t,l));else{u=l.v!==S;var m=f(()=>Pn(n));kn(l,m)}var h=Reflect.getOwnPropertyDescriptor(e,t);if(h?.set&&h.set.call(c,n),!u){if(i&&typeof t==`string`){var g=r.get(`length`),_=Number(t);Number.isInteger(_)&&_>=g.v&&kn(g,_+1)}Mn(a)}return!0},ownKeys(e){X(a);var t=Reflect.ownKeys(e).filter(e=>{var t=r.get(e);return t===void 0||t.v!==S});for(var[n,i]of r)i.v!==S&&!(n in e)&&t.push(n);return t},setPrototypeOf(){Re()}})}function Fn(e){try{if(typeof e==`object`&&e&&he in e)return e[he]}catch{}return e}function In(e,t){return Object.is(Fn(e),Fn(t))}var Ln,Rn,zn,Bn,Vn;function Hn(){if(Ln===void 0){Ln=window,Rn=document,zn=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;Bn=s(t,`firstChild`).get,Vn=s(t,`nextSibling`).get,f(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),f(n)&&(n.__t=void 0)}}function F(e=``){return document.createTextNode(e)}function I(e){return Bn.call(e)}function L(e){return Vn.call(e)}function Un(e,t){if(!C)return I(e);var n=I(T);if(n===null)n=T.appendChild(F());else if(t&&n.nodeType!==3){var r=F();return n?.before(r),E(r),r}return t&&Yn(n),E(n),n}function Wn(e,t=!1){if(!C){var n=I(e);return n instanceof Comment&&n.data===``?L(n):n}if(t){if(T?.nodeType!==3){var r=F();return T?.before(r),E(r),r}Yn(T)}return T}function Gn(e,t=1,n=!1){let r=C?T:e;for(var i;t--;)i=r,r=L(r);if(!C)return r;if(n){if(r?.nodeType!==3){var a=F();return r===null?i?.after(a):r.before(a),E(a),a}Yn(r)}return E(r),r}function Kn(e){e.textContent=``}function qn(){return!O||Jt!==null?!1:(W.f&ie)!==0}function Jn(e,t,n){let r=n?{is:n}:void 0;return document.createElementNS(t??`http://www.w3.org/1999/xhtml`,e,r)}function Yn(e){if(e.nodeValue.length<65536)return;let t=e.nextSibling;for(;t!==null&&t.nodeType===3;)t.remove(),e.nodeValue+=t.nodeValue,t=e.nextSibling}function Xn(e,t){if(t){let t=document.body;e.autofocus=!0,A(()=>{document.activeElement===t&&e.focus()})}}function Zn(e){C&&I(e)!==null&&Kn(e)}var Qn=!1;function $n(){Qn||(Qn=!0,document.addEventListener(`reset`,e=>{Promise.resolve().then(()=>{if(!e.defaultPrevented)for(let t of e.target.elements)t.__on_r?.()})},{capture:!0}))}function er(e){var t=V,n=W;U(null),G(null);try{return e()}finally{U(t),G(n)}}function tr(e,t,n,r=n){e.addEventListener(t,()=>er(n));let i=e.__on_r;i?e.__on_r=()=>{i(),r(!0)}:e.__on_r=()=>r(!0),$n()}function nr(e){W===null&&(V===null&&Oe(e),De()),kr&&Ee(e)}function rr(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function R(e,t){var n=W;n!==null&&n.f&8192&&(e|=ne);var r={ctx:k,deps:null,nodes:null,f:e|x|512,first:null,fn:t,last:null,next:null,parent:n,b:n&&n.b,prev:null,teardown:null,wv:0,ac:null},i=r;if(e&4)Vt===null?Gt.ensure().schedule(r):Vt.push(r);else if(t!==null){try{Ur(r)}catch(e){throw B(r),e}i.deps===null&&i.teardown===null&&i.nodes===null&&i.first===i.last&&!(i.f&524288)&&(i=i.first,e&16&&e&65536&&i!==null&&(i.f|=oe))}if(i!==null&&(i.parent=n,n!==null&&rr(i,n),V!==null&&V.f&2&&!(e&64))){var a=V;(a.effects??=[]).push(i)}return r}function ir(){return V!==null&&!H}function ar(e){let t=R(8,null);return j(t,b),t.teardown=e,t}function or(e){nr(`$effect`);var t=W.f;if(!V&&t&32&&!(t&32768)){var n=k;(n.e??=[]).push(e)}else return sr(e)}function sr(e){return R(4|le,e)}function cr(e){return nr(`$effect.pre`),R(8|le,e)}function lr(e){Gt.ensure();let t=R(64|ce,e);return()=>{B(t)}}function ur(e){Gt.ensure();let t=R(64|ce,e);return(e={})=>new Promise(n=>{e.outro?Sr(t,()=>{B(t),n(void 0)}):(B(t),n(void 0))})}function dr(e){return R(4,e)}function fr(e){return R(pe|ce,e)}function pr(e,t=0){return R(8|t,e)}function mr(e,t=[],n=[],r=[]){cn(r,t,n,t=>{R(8,()=>e(...t.map(X)))})}function hr(e,t=0){return R(16|t,e)}function gr(e,t=0){return R(ee|t,e)}function z(e){return R(32|ce,e)}function _r(e){var t=e.teardown;if(t!==null){let e=kr,n=V;Ar(!0),U(null);try{t.call(null)}finally{Ar(e),U(n)}}}function vr(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){let e=n.ac;e!==null&&er(()=>{e.abort(ye)});var r=n.next;n.f&64?n.parent=null:B(n,t),n=r}}function yr(e){for(var t=e.first;t!==null;){var n=t.next;t.f&32||B(t),t=n}}function B(e,t=!0){var n=!1;(t||e.f&262144)&&e.nodes!==null&&e.nodes.end!==null&&(br(e.nodes.start,e.nodes.end),n=!0),j(e,ae),vr(e,t&&!n),Hr(e,0);var r=e.nodes&&e.nodes.t;if(r!==null)for(let e of r)e.stop();_r(e),e.f^=ae,e.f|=re;var i=e.parent;i!==null&&i.first!==null&&xr(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=null}function br(e,t){for(;e!==null;){var n=e===t?null:L(e);e.remove(),e=n}}function xr(e){var t=e.parent,n=e.prev,r=e.next;n!==null&&(n.next=r),r!==null&&(r.prev=n),t!==null&&(t.first===e&&(t.first=r),t.last===e&&(t.last=n))}function Sr(e,t,n=!0){var r=[];Cr(e,r,!0);var i=()=>{n&&B(e),t&&t()},a=r.length;if(a>0){var o=()=>--a||i();for(var s of r)s.out(o)}else i()}function Cr(e,t,n){if(!(e.f&8192)){e.f^=ne;var r=e.nodes&&e.nodes.t;if(r!==null)for(let e of r)(e.is_global||n)&&t.push(e);for(var i=e.first;i!==null;){var a=i.next,o=(i.f&65536)!=0||(i.f&32)!=0&&(e.f&16)!=0;Cr(i,t,o?n:!1),i=a}}}function wr(e){Tr(e,!0)}function Tr(e,t){if(e.f&8192){e.f^=ne,e.f&1024||(j(e,x),Gt.ensure().schedule(e));for(var n=e.first;n!==null;){var r=n.next,i=(n.f&65536)!=0||(n.f&32)!=0;Tr(n,i?t:!1),n=r}var a=e.nodes&&e.nodes.t;if(a!==null)for(let e of a)(e.is_global||t)&&e.in()}}function Er(e,t){if(e.nodes)for(var n=e.nodes.start,r=e.nodes.end;n!==null;){var i=n===r?null:L(n);t.append(n),n=i}}var Dr=null,Or=!1,kr=!1;function Ar(e){kr=e}var V=null,H=!1;function U(e){V=e}var W=null;function G(e){W=e}var K=null;function jr(e){V!==null&&(!O||V.f&2)&&(K===null?K=[e]:K.push(e))}var q=null,J=0,Y=null;function Mr(e){Y=e}var Nr=1,Pr=0,Fr=Pr;function Ir(e){Fr=e}function Lr(){return++Nr}function Rr(e){var t=e.f;if(t&2048)return!0;if(t&2&&(e.f&=~de),t&4096){for(var n=e.deps,r=n.length,i=0;i<r;i++){var a=n[i];if(Rr(a)&&yn(a),a.wv>e.wv)return!0}t&512&&P===null&&j(e,b)}return!1}function zr(e,t,n=!0){var i=e.reactions;if(i!==null&&!(!O&&K!==null&&r.call(K,e)))for(var a=0;a<i.length;a++){var o=i[a];o.f&2?zr(o,t,!1):t===o&&(n?j(o,x):o.f&1024&&j(o,te),$t(o))}}function Br(e){var t=q,n=J,r=Y,i=V,a=K,o=k,s=H,c=Fr,l=e.f;q=null,J=0,Y=null,V=l&96?null:e,K=null,ft(e.ctx),H=!1,Fr=++Pr,e.ac!==null&&(er(()=>{e.ac.abort(ye)}),e.ac=null);try{e.f|=fe;var u=e.fn,d=u();e.f|=ie;var f=e.deps,p=N?.is_fork;if(q!==null){var m;if(p||Hr(e,J),f!==null&&J>0)for(f.length=J+q.length,m=0;m<q.length;m++)f[J+m]=q[m];else e.deps=f=q;if(ir()&&e.f&512)for(m=J;m<f.length;m++)(f[m].reactions??=[]).push(e)}else !p&&f!==null&&J<f.length&&(Hr(e,J),f.length=J);if(bt()&&Y!==null&&!H&&f!==null&&!(e.f&6146))for(m=0;m<Y.length;m++)zr(Y[m],e);if(i!==null&&i!==e){if(Pr++,i.deps!==null)for(let e=0;e<n;e+=1)i.deps[e].rv=Pr;if(t!==null)for(let e of t)e.rv=Pr;Y!==null&&(r===null?r=Y:r.push(...Y))}return e.f&8388608&&(e.f^=me),d}catch(e){return Et(e)}finally{e.f^=fe,q=t,J=n,Y=r,V=i,K=a,ft(o),H=s,Fr=c}}function Vr(e,t){let i=t.reactions;if(i!==null){var a=n.call(i,e);if(a!==-1){var o=i.length-1;o===0?i=t.reactions=null:(i[a]=i[o],i.pop())}}if(i===null&&t.f&2&&(q===null||!r.call(q,t))){var s=t;s.f&512&&(s.f^=512,s.f&=~de),kt(s),bn(s),Hr(s,0)}}function Hr(e,t){var n=e.deps;if(n!==null)for(var r=t;r<n.length;r++)Vr(e,n[r])}function Ur(e){var t=e.f;if(!(t&16384)){j(e,b);var n=W,r=Or;W=e,Or=!0;try{t&16777232?yr(e):vr(e),_r(e);var i=Br(e);e.teardown=typeof i==`function`?i:null,e.wv=Nr}finally{Or=r,W=n}}}async function Wr(){if(O)return new Promise(e=>{requestAnimationFrame(()=>e()),setTimeout(()=>e())});await Promise.resolve(),Kt()}function Gr(){return Gt.ensure().settled()}function X(e){var t=(e.f&2)!=0;if(Dr?.add(e),V!==null&&!H&&!(W!==null&&W.f&16384)&&(K===null||!r.call(K,e))){var n=V.deps;if(V.f&2097152)e.rv<Pr&&(e.rv=Pr,q===null&&n!==null&&n[J]===e?J++:q===null?q=[e]:q.push(e));else{(V.deps??=[]).push(e);var i=e.reactions;i===null?e.reactions=[V]:r.call(i,V)||i.push(V)}}if(kr&&Cn.has(e))return Cn.get(e);if(t){var a=e;if(kr){var o=a.v;return(!(a.f&1024)&&a.reactions!==null||qr(a))&&(o=vn(a)),Cn.set(a,o),o}var s=(a.f&512)==0&&!H&&V!==null&&(Or||(V.f&512)!=0),c=(a.f&ie)===0;Rr(a)&&(s&&(a.f|=512),yn(a)),s&&!c&&(xn(a),Kr(a))}if(P?.has(e))return P.get(e);if(e.f&8388608)throw e.v;return e.v}function Kr(e){if(e.f|=512,e.deps!==null)for(let t of e.deps)(t.reactions??=[]).push(e),t.f&2&&!(t.f&512)&&(xn(t),Kr(t))}function qr(e){if(e.v===S)return!0;if(e.deps===null)return!1;for(let t of e.deps)if(Cn.has(t)||t.f&2&&qr(t))return!0;return!1}function Z(e){var t=H;try{return H=!0,e()}finally{H=t}}function Jr(e){if(!(typeof e!=`object`||!e||e instanceof EventTarget)){if(he in e)Yr(e);else if(!Array.isArray(e))for(let t in e){let n=e[t];typeof n==`object`&&n&&he in n&&Yr(n)}}}function Yr(e,t=new Set){if(typeof e==`object`&&e&&!(e instanceof EventTarget)&&!t.has(e)){t.add(e),e instanceof Date&&e.getTime();for(let n in e)try{Yr(e[n],t)}catch{}let n=d(e);if(n!==Object.prototype&&n!==Array.prototype&&n!==Map.prototype&&n!==Set.prototype&&n!==Date.prototype){let t=c(n);for(let n in t){let r=t[n].get;if(r)try{r.call(e)}catch{}}}}}function Xr(){return Symbol(Ge)}function Zr(e){return e.endsWith(`capture`)&&e!==`gotpointercapture`&&e!==`lostpointercapture`}var Qr=[`beforeinput`,`click`,`change`,`dblclick`,`contextmenu`,`focusin`,`focusout`,`input`,`keydown`,`keyup`,`mousedown`,`mousemove`,`mouseout`,`mouseover`,`mouseup`,`pointerdown`,`pointermove`,`pointerout`,`pointerover`,`pointerup`,`touchend`,`touchmove`,`touchstart`];function $r(e){return Qr.includes(e)}var ei=`allowfullscreen.async.autofocus.autoplay.checked.controls.default.disabled.formnovalidate.indeterminate.inert.ismap.loop.multiple.muted.nomodule.novalidate.open.playsinline.readonly.required.reversed.seamless.selected.webkitdirectory.defer.disablepictureinpicture.disableremoteplayback`.split(`.`),ti={formnovalidate:`formNoValidate`,ismap:`isMap`,nomodule:`noModule`,playsinline:`playsInline`,readonly:`readOnly`,defaultvalue:`defaultValue`,defaultchecked:`defaultChecked`,srcobject:`srcObject`,novalidate:`noValidate`,allowfullscreen:`allowFullscreen`,disablepictureinpicture:`disablePictureInPicture`,disableremoteplayback:`disableRemotePlayback`};function ni(e){return e=e.toLowerCase(),ti[e]??e}[...ei];var ri=[`touchstart`,`touchmove`];function ii(e){return ri.includes(e)}var ai=[`textarea`,`script`,`style`,`title`];function oi(e){return ai.includes(e)}var si=Symbol(`events`),ci=new Set,li=new Set;function ui(e,t,n,r={}){function i(e){if(r.capture||gi.call(t,e),!e.cancelBubble)return er(()=>n?.call(this,e))}return e.startsWith(`pointer`)||e.startsWith(`touch`)||e===`wheel`?A(()=>{t.addEventListener(e,i,r)}):t.addEventListener(e,i,r),i}function di(e,t,n,r={}){var i=ui(t,e,n,r);return()=>{e.removeEventListener(t,i,r)}}function fi(e,t,n,r,i){var a={capture:r,passive:i},o=ui(e,t,n,a);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&ar(()=>{t.removeEventListener(e,o,a)})}function pi(e,t,n){(t[si]??={})[e]=n}function mi(e){for(var t=0;t<e.length;t++)ci.add(e[t]);for(var n of li)n(e)}var hi=null;function gi(e){var t=this,n=t.ownerDocument,r=e.type,i=e.composedPath?.()||[],a=i[0]||e.target;hi=e;var s=0,c=hi===e&&e[si];if(c){var l=i.indexOf(c);if(l!==-1&&(t===document||t===window)){e[si]=t;return}var u=i.indexOf(t);if(u===-1)return;l<=u&&(s=l)}if(a=i[s]||e.target,a!==t){o(e,`currentTarget`,{configurable:!0,get(){return a||n}});var d=V,f=W;U(null),G(null);try{for(var p,m=[];a!==null;){var h=a.assignedSlot||a.parentNode||a.host||null;try{var g=a[si]?.[r];g!=null&&(!a.disabled||e.target===a)&&g.call(a,e)}catch(e){p?m.push(e):p=e}if(e.cancelBubble||h===t||h===null)break;a=h}if(p){for(let e of m)queueMicrotask(()=>{throw e});throw p}}finally{e[si]=t,delete e.currentTarget,U(d),G(f)}}}var _i=globalThis?.window?.trustedTypes&&globalThis.window.trustedTypes.createPolicy(`svelte-trusted-html`,{createHTML:e=>e});function vi(e){return _i?.createHTML(e)??e}function yi(e){var t=Jn(`template`);return t.innerHTML=vi(e.replaceAll(`<!>`,`<!---->`)),t.content}var bi=be?`script`:`SCRIPT`;function Q(e,t){var n=W;n.nodes===null&&(n.nodes={start:e,end:t,a:null,t:null})}function xi(e,t){var n=(t&1)!=0,r=(t&2)!=0,i,a=!e.startsWith(`<!>`);return()=>{if(C)return Q(T,null),T;i===void 0&&(i=yi(a?e:`<!>`+e),n||(i=I(i)));var t=r||zn?document.importNode(i,!0):i.cloneNode(!0);if(n){var o=I(t),s=t.lastChild;Q(o,s)}else Q(t,t);return t}}function Si(e,t,n=`svg`){var r=!e.startsWith(`<!>`),i=(t&1)!=0,a=`<${n}>${r?e:`<!>`+e}</${n}>`,o;return()=>{if(C)return Q(T,null),T;if(!o){var e=I(yi(a));if(i)for(o=document.createDocumentFragment();I(e);)o.appendChild(I(e));else o=I(e)}var t=o.cloneNode(!0);if(i){var n=I(t),r=t.lastChild;Q(n,r)}else Q(t,t);return t}}function Ci(e,t){return Si(e,t,`svg`)}function wi(e){return()=>Ti(e())}function Ti(e){if(C)return e;let t=e.nodeType===11,n=e.nodeName===bi?[e]:e.querySelectorAll(`script`),r=W;for(let a of n){let n=Jn(`script`);for(var i of a.attributes)n.setAttribute(i.name,i.value);n.textContent=a.textContent,(t?e.firstChild===a:e===a)&&(r.nodes.start=n),(t?e.lastChild===a:e===a)&&(r.nodes.end=n),a.replaceWith(n)}return e}function Ei(e=``){if(!C){var t=F(e+``);return Q(t,t),t}var n=T;return n.nodeType===3?Yn(n):(n.before(n=F()),E(n)),Q(n,n),n}function Di(){if(C)return Q(T,null),T;var e=document.createDocumentFragment(),t=document.createComment(``),n=F();return e.append(t,n),Q(t,n),e}function Oi(e,t){if(C){var n=W;(!(n.f&32768)||n.nodes.end===null)&&(n.nodes.end=T),D();return}e!==null&&e.before(t)}function ki(){if(C&&T&&T.nodeType===8&&T.textContent?.startsWith(`$`)){let e=T.textContent.substring(1);return D(),e}return(window.__svelte??={}).uid??=1,`c${window.__svelte.uid++}`}var Ai=!0;function ji(e){Ai=e}function Mi(e,t){var n=t==null?``:typeof t==`object`?`${t}`:t;n!==(e.__t??=e.nodeValue)&&(e.__t=n,e.nodeValue=`${n}`)}function Ni(e,t){return Ii(e,t)}function Pi(e,t){Hn(),t.intro=t.intro??!1;let n=t.target,r=C,i=T;try{for(var a=I(n);a&&(a.nodeType!==8||a.data!==`[`);)a=L(a);if(!a)throw Ve;w(!0),E(a);let r=Ii(e,{...t,anchor:a});return w(!1),r}catch(r){if(r instanceof Error&&r.message.split(`
2
+ `).some(e=>e.startsWith(`https://svelte.dev/e/`)))throw r;return r!==Ve&&console.warn(`Failed to hydrate: `,r),t.recover===!1&&Ne(),Hn(),Kn(n),w(!1),Ni(e,t)}finally{w(r),E(i)}}var Fi=new Map;function Ii(e,{target:t,anchor:n,props:r={},events:a,context:o,intro:s=!0,transformError:c}){Hn();var l=void 0,u=ur(()=>{var u=n??t.appendChild(F());on(u,{pending:()=>{}},t=>{vt({});var n=k;if(o&&(n.c=o),a&&(r.$$events=a),C&&Q(t,null),Ai=s,l=e(t,r)||{},Ai=!0,C&&(W.nodes.end=T,T===null||T.nodeType!==8||T.data!==`]`))throw qe(),Ve;yt()},c);var d=new Set,f=e=>{for(var n=0;n<e.length;n++){var r=e[n];if(!d.has(r)){d.add(r);var i=ii(r);for(let e of[t,document]){var a=Fi.get(e);a===void 0&&(a=new Map,Fi.set(e,a));var o=a.get(r);o===void 0?(e.addEventListener(r,gi,{passive:i}),a.set(r,1)):a.set(r,o+1)}}}};return f(i(ci)),li.add(f),()=>{for(var e of d)for(let n of[t,document]){var r=Fi.get(n),i=r.get(e);--i==0?(n.removeEventListener(e,gi),r.delete(e),r.size===0&&Fi.delete(n)):r.set(e,i)}li.delete(f),u!==n&&u.parentNode?.removeChild(u)}});return Li.set(l,u),l}var Li=new WeakMap;function Ri(e,t){let n=Li.get(e);return n?(Li.delete(e),n(t)):Promise.resolve()}var zi=class{anchor;#e=new Map;#t=new Map;#n=new Map;#r=new Set;#i=!0;constructor(e,t=!0){this.anchor=e,this.#i=t}#a=e=>{if(this.#e.has(e)){var t=this.#e.get(e),n=this.#t.get(t);if(n)wr(n),this.#r.delete(t);else{var r=this.#n.get(t);r&&(this.#t.set(t,r.effect),this.#n.delete(t),r.fragment.lastChild.remove(),this.anchor.before(r.fragment),n=r.effect)}for(let[t,n]of this.#e){if(this.#e.delete(t),t===e)break;let r=this.#n.get(n);r&&(B(r.effect),this.#n.delete(n))}for(let[e,r]of this.#t){if(e===t||this.#r.has(e))continue;let i=()=>{if(Array.from(this.#e.values()).includes(e)){var t=document.createDocumentFragment();Er(r,t),t.append(F()),this.#n.set(e,{effect:r,fragment:t})}else B(r);this.#r.delete(e),this.#t.delete(e)};this.#i||!n?(this.#r.add(e),Sr(r,i,!1)):i()}}};#o=e=>{this.#e.delete(e);let t=Array.from(this.#e.values());for(let[e,n]of this.#n)t.includes(e)||(B(n.effect),this.#n.delete(e))};ensure(e,t){var n=N,r=qn();if(t&&!this.#t.has(e)&&!this.#n.has(e))if(r){var i=document.createDocumentFragment(),a=F();i.append(a),this.#n.set(e,{effect:z(()=>t(a)),fragment:i})}else this.#t.set(e,z(()=>t(this.anchor)));if(this.#e.set(n,e),r){for(let[t,r]of this.#t)t===e?n.unskip_effect(r):n.skip_effect(r);for(let[t,r]of this.#n)t===e?n.unskip_effect(r.effect):n.skip_effect(r.effect);n.oncommit(this.#a),n.ondiscard(this.#o)}else C&&(this.anchor=T),this.#a(n)}},Bi=0,Vi=1,Hi=2;function Ui(e,t,n,r,i){C&&D();var a=bt(),o=S,s=a?En(o):On(o,!1,!1),c=a?En(o):On(o,!1,!1),l=new zi(e);hr(()=>{var a=N;a.deactivate();var o=t();a.activate();var u=!1;let d=C&&h(o)===(e.data===`[!`);if(d&&(E($e()),w(!1)),h(o)){var f=ln(),p=!1;let e=e=>{if(!u){p=!0,f(!1),Gt.ensure(),C&&w(!1);try{e()}finally{un(!1),zt||Kt()}}};o.then(t=>{e(()=>{An(s,t),l.ensure(Vi,r&&(e=>r(e,s)))})},t=>{e(()=>{if(An(c,t),l.ensure(Hi,i&&(e=>i(e,c))),!i)throw c.v})}),C?l.ensure(Bi,n):A(()=>{p||e(()=>{l.ensure(Bi,n)})})}else An(s,o),l.ensure(Vi,r&&(e=>r(e,s)));return d&&w(!0),()=>{u=!0}})}function Wi(e,t,n=!1){var r;C&&(r=T,D());var i=new zi(e),a=n?oe:0;function o(e,t){if(C){var n=et(r);if(e!==parseInt(n.substring(1))){var a=$e();E(a),i.anchor=a,w(!1),i.ensure(e,t),w(!0);return}}i.ensure(e,t)}hr(()=>{var e=!1;t((t,n=0)=>{e=!0,o(n,t)}),e||o(-1,null)},a)}var Gi=Symbol(`NaN`);function Ki(e,t,n){C&&D();var r=new zi(e),i=!bt();hr(()=>{var e=t();e!==e&&(e=Gi),i&&typeof e==`object`&&e&&(e={}),r.ensure(e,n)})}function qi(e,t){return t}function Ji(e,t,n){for(var r=[],a=t.length,o,s=t.length,c=0;c<a;c++){let n=t[c];Sr(n,()=>{if(o){if(o.pending.delete(n),o.done.add(n),o.pending.size===0){var t=e.outrogroups;Yi(e,i(o.done)),t.delete(o),t.size===0&&(e.outrogroups=null)}}else --s},!1)}if(s===0){var l=r.length===0&&n!==null;if(l){var u=n,d=u.parentNode;Kn(d),d.append(u),e.items.clear()}Yi(e,t,!l)}else o={pending:new Set(t),done:new Set},(e.outrogroups??=new Set).add(o)}function Yi(e,t,n=!0){var r;if(e.pending.size>0){r=new Set;for(let t of e.pending.values())for(let n of t)r.add(e.items.get(n).e)}for(var i=0;i<t.length;i++){var a=t[i];r?.has(a)?(a.f|=ue,Er(a,document.createDocumentFragment())):B(t[i],n)}}var Xi;function Zi(e,n,r,a,o,s=null){var c=e,l=new Map;if(n&4){var u=e;c=C?E(I(u)):u.appendChild(F())}C&&D();var d=null,f=hn(()=>{var e=r();return t(e)?e:e==null?[]:i(e)}),p,m=new Map,h=!0;function g(e){v.effect.f&16384||(v.pending.delete(e),v.fallback=d,$i(v,p,c,n,a),d!==null&&(p.length===0?d.f&33554432?(d.f^=ue,ta(d,null,c)):wr(d):Sr(d,()=>{d=null})))}function _(e){v.pending.delete(e)}var v={effect:hr(()=>{p=X(f);var e=p.length;let t=!1;C&&et(c)===`[!`!=(e===0)&&(c=$e(),E(c),w(!1),t=!0);for(var i=new Set,u=N,v=qn(),y=0;y<e;y+=1){C&&T.nodeType===8&&T.data===`]`&&(c=T,t=!0,w(!1));var ee=p[y],b=a(ee,y),x=h?null:l.get(b);x?(x.v&&An(x.v,ee),x.i&&An(x.i,y),v&&u.unskip_effect(x.e)):(x=ea(l,h?c:Xi??=F(),ee,b,y,o,n,r),h||(x.e.f|=ue),l.set(b,x)),i.add(b)}if(e===0&&s&&!d&&(h?d=z(()=>s(c)):(d=z(()=>s(Xi??=F())),d.f|=ue)),e>i.size&&Te(``,``,``),C&&e>0&&E($e()),!h)if(m.set(u,i),v){for(let[e,t]of l)i.has(e)||u.skip_effect(t.e);u.oncommit(g),u.ondiscard(_)}else g(u);t&&w(!0),X(f)}),flags:n,items:l,pending:m,outrogroups:null,fallback:d};h=!1,C&&(c=T)}function Qi(e){for(;e!==null&&!(e.f&32);)e=e.next;return e}function $i(e,t,n,r,a){var o=(r&8)!=0,s=t.length,c=e.items,l=Qi(e.effect.first),u,d=null,f,p=[],m=[],h,g,_,v;if(o)for(v=0;v<s;v+=1)h=t[v],g=a(h,v),_=c.get(g).e,_.f&33554432||(_.nodes?.a?.measure(),(f??=new Set).add(_));for(v=0;v<s;v+=1){if(h=t[v],g=a(h,v),_=c.get(g).e,e.outrogroups!==null)for(let t of e.outrogroups)t.pending.delete(_),t.done.delete(_);if(_.f&8192&&(wr(_),o&&(_.nodes?.a?.unfix(),(f??=new Set).delete(_))),_.f&33554432)if(_.f^=ue,_===l)ta(_,null,n);else{var y=d?d.next:l;_===e.effect.last&&(e.effect.last=_.prev),_.prev&&(_.prev.next=_.next),_.next&&(_.next.prev=_.prev),na(e,d,_),na(e,_,y),ta(_,y,n),d=_,p=[],m=[],l=Qi(d.next);continue}if(_!==l){if(u!==void 0&&u.has(_)){if(p.length<m.length){var ee=m[0],b;d=ee.prev;var x=p[0],te=p[p.length-1];for(b=0;b<p.length;b+=1)ta(p[b],ee,n);for(b=0;b<m.length;b+=1)u.delete(m[b]);na(e,x.prev,te.next),na(e,d,x),na(e,te,ee),l=ee,d=te,--v,p=[],m=[]}else u.delete(_),ta(_,l,n),na(e,_.prev,_.next),na(e,_,d===null?e.effect.first:d.next),na(e,d,_),d=_;continue}for(p=[],m=[];l!==null&&l!==_;)(u??=new Set).add(l),m.push(l),l=Qi(l.next);if(l===null)continue}_.f&33554432||p.push(_),d=_,l=Qi(_.next)}if(e.outrogroups!==null){for(let t of e.outrogroups)t.pending.size===0&&(Yi(e,i(t.done)),e.outrogroups?.delete(t));e.outrogroups.size===0&&(e.outrogroups=null)}if(l!==null||u!==void 0){var ne=[];if(u!==void 0)for(_ of u)_.f&8192||ne.push(_);for(;l!==null;)!(l.f&8192)&&l!==e.fallback&&ne.push(l),l=Qi(l.next);var re=ne.length;if(re>0){var ie=r&4&&s===0?n:null;if(o){for(v=0;v<re;v+=1)ne[v].nodes?.a?.measure();for(v=0;v<re;v+=1)ne[v].nodes?.a?.fix()}Ji(e,ne,ie)}}o&&A(()=>{if(f!==void 0)for(_ of f)_.nodes?.a?.apply()})}function ea(e,t,n,r,i,a,o,s){var c=o&1?o&16?En(n):On(n,!1,!1):null,l=o&2?En(i):null;return{v:c,i:l,e:z(()=>(a(t,c??n,l??i,s),()=>{e.delete(r)}))}}function ta(e,t,n){if(e.nodes)for(var r=e.nodes.start,i=e.nodes.end,a=t&&!(t.f&33554432)?t.nodes.start:n;r!==null;){var o=L(r);if(a.before(r),r===i)return;r=o}}function na(e,t,n){t===null?e.effect.first=n:t.next=n,n===null?e.effect.last=t:n.prev=t}function ra(e,t,n=!1,r=!1,i=!1,a=!1){var o=e,s=``;if(n){var c=e;C&&(o=E(I(c)))}mr(()=>{var e=W;if(s===(s=t()??``)){C&&D();return}if(n&&!C){e.nodes=null,c.innerHTML=s,s!==``&&Q(I(c),c.lastChild);return}if(e.nodes!==null&&(br(e.nodes.start,e.nodes.end),e.nodes=null),s!==``){if(C){for(var a=T.data,l=D(),u=l;l!==null&&(l.nodeType!==8||l.data!==``);)u=l,l=L(l);if(l===null)throw qe(),Ve;Q(T,u),o=E(l);return}var d=Jn(r?`svg`:i?`math`:`template`,r?Ue:i?We:void 0);d.innerHTML=s;var f=r||i?d:d.content;if(Q(I(f),f.lastChild),r||i)for(;I(f);)o.before(I(f));else o.before(f)}})}function ia(e,t,n,r,i){C&&D();var a=t.$$slots?.[n],o=!1;a===!0&&(a=t[n===`default`?`children`:n],o=!0),a===void 0?i!==null&&i(e):a(e,o?()=>r:r)}function aa(e,t,...n){var r=new zi(e);hr(()=>{let e=t()??null;r.ensure(e,e&&(t=>e(t,...n)))},oe)}function oa(e){return(t,...n)=>{var r=e(...n),i;C?(i=T,D()):(i=I(yi(r.render().trim())),t.before(i));let a=r.setup?.(i);Q(i,i),typeof a==`function`&&ar(a)}}function sa(e,t,n){var r;C&&(r=T,D());var i=new zi(e);hr(()=>{var e=t()??null;if(C&&et(r)===`[`!=(e!==null)){var a=$e();E(a),i.anchor=a,w(!1),i.ensure(e,e&&(t=>n(t,e))),w(!0);return}i.ensure(e,e&&(t=>n(t,e)))},oe)}var ca=()=>performance.now(),$={tick:e=>requestAnimationFrame(e),now:()=>ca(),tasks:new Set};function la(){let e=$.now();$.tasks.forEach(t=>{t.c(e)||($.tasks.delete(t),t.f())}),$.tasks.size!==0&&$.tick(la)}function ua(e){let t;return $.tasks.size===0&&$.tick(la),{promise:new Promise(n=>{$.tasks.add(t={c:e,f:n})}),abort(){$.tasks.delete(t)}}}function da(e,t){er(()=>{e.dispatchEvent(new CustomEvent(t))})}function fa(e){if(e===`float`)return`cssFloat`;if(e===`offset`)return`cssOffset`;if(e.startsWith(`--`))return e;let t=e.split(`-`);return t.length===1?t[0]:t[0]+t.slice(1).map(e=>e[0].toUpperCase()+e.slice(1)).join(``)}function pa(e){let t={},n=e.split(`;`);for(let e of n){let[n,r]=e.split(`:`);if(!n||r===void 0)break;let i=fa(n.trim());t[i]=r.trim()}return t}var ma=e=>e;function ha(e,t,n,r){var i=(e&1)!=0,a=(e&2)!=0,o=i&&a,s=(e&4)!=0,c=o?`both`:i?`in`:`out`,l,u=t.inert,d=t.style.overflow,f,p;function m(){return er(()=>l??=n()(t,r?.()??{},{direction:c}))}var h={is_global:s,in(){if(t.inert=u,!i){p?.abort(),p?.reset?.();return}a||f?.abort(),f=ga(t,m(),p,1,()=>{da(t,`introend`),f?.abort(),f=l=void 0,t.style.overflow=d})},out(e){if(!a){e?.(),l=void 0;return}t.inert=!0,p=ga(t,m(),f,0,()=>{da(t,`outroend`),e?.()})},stop:()=>{f?.abort(),p?.abort()}},g=W;if((g.nodes.t??=[]).push(h),i&&Ai){var _=s;if(!_){for(var v=g.parent;v&&v.f&65536;)for(;(v=v.parent)&&!(v.f&16););_=!v||(v.f&32768)!=0}_&&dr(()=>{Z(()=>h.in())})}}function ga(e,t,n,r,i){var a=r===1;if(p(t)){var o,s=!1;return A(()=>{s||(o=ga(e,t({direction:a?`in`:`out`}),n,r,i))}),{abort:()=>{s=!0,o?.abort()},deactivate:()=>o.deactivate(),reset:()=>o.reset(),t:()=>o.t()}}if(n?.deactivate(),!t?.duration&&!t?.delay)return da(e,a?`introstart`:`outrostart`),i(),{abort:m,deactivate:m,reset:m,t:()=>r};let{delay:c=0,css:l,tick:u,easing:d=ma}=t;var f=[];if(a&&n===void 0&&(u&&u(0,1),l)){var h=pa(l(0,1));f.push(h,h)}var g=()=>1-r,_=e.animate(f,{duration:c,fill:`forwards`});return _.onfinish=()=>{_.cancel(),da(e,a?`introstart`:`outrostart`);var o=n?.t()??1-r;n?.abort();var s=r-o,c=t.duration*Math.abs(s),f=[];if(c>0){var p=!1;if(l)for(var m=Math.ceil(c/(1e3/60)),h=0;h<=m;h+=1){var v=o+s*d(h/m),y=pa(l(v,1-v));f.push(y),p||=y.overflow===`hidden`}p&&(e.style.overflow=`hidden`),g=()=>{var e=_.currentTime;return o+s*d(e/c)},u&&ua(()=>{if(_.playState!==`running`)return!1;var e=g();return u(e,1-e),!0})}_=e.animate(f,{duration:c,fill:`forwards`}),_.onfinish=()=>{g=()=>r,u?.(r,1-r),i()}},{abort:()=>{_&&(_.cancel(),_.effect=null,_.onfinish=m)},deactivate:()=>{i=m},reset:()=>{r===0&&u?.(1,0)},t:()=>g()}}function _a(e,t,n,r,i,a){let o=C;C&&D();var s=null;C&&T.nodeType===1&&(s=T,D());var c=C?T:e,l=new zi(c,!1);hr(()=>{let e=t()||null;var a=i?i():n||e===`svg`?Ue:void 0;if(e===null){l.ensure(null,null),ji(!0);return}return l.ensure(e,t=>{if(e){if(s=C?s:Jn(e,a),Q(s,s),r){C&&oi(e)&&s.append(document.createComment(``));var n=C?I(s):s.appendChild(F());C&&(n===null?w(!1):E(n)),r(s,n)}W.nodes.end=s,t.before(s)}C&&E(t)}),ji(!0),()=>{e&&ji(!1)}},oe),ar(()=>{ji(!0)}),o&&(w(!0),E(c))}function va(e,t){let n=null,r=C;var i;if(C){n=T;for(var a=I(document.head);a!==null&&(a.nodeType!==8||a.data!==e);)a=L(a);if(a===null)w(!1);else{var o=L(a);a.remove(),E(o)}}C||(i=document.head.appendChild(F()));try{hr(()=>t(i),se|ce)}finally{r&&(w(!0),E(n))}}function ya(e,t){dr(()=>{var n=e.getRootNode(),r=n.host?n:n.head??n.ownerDocument.head;if(!r.querySelector(`#`+t.hash)){let e=Jn(`style`);e.id=t.hash,e.textContent=t.code,r.appendChild(e)}})}function ba(e,t,n){dr(()=>{var r=Z(()=>t(e,n?.())||{});if(n&&r?.update){var i=!1,a={};pr(()=>{var e=n();Jr(e),i&&nt(a,e)&&(a=e,r.update(e))}),i=!0}if(r?.destroy)return()=>r.destroy()})}function xa(e,t){var n=void 0,r;gr(()=>{n!==(n=t())&&(r&&=(B(r),null),n&&(r=z(()=>{dr(()=>n(e))})))})}function Sa(e){var t,n,r=``;if(typeof e==`string`||typeof e==`number`)r+=e;else if(typeof e==`object`)if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=Sa(e[t]))&&(r&&(r+=` `),r+=n)}else for(n in e)e[n]&&(r&&(r+=` `),r+=n);return r}function Ca(){for(var e,t,n=0,r=``,i=arguments.length;n<i;n++)(e=arguments[n])&&(t=Sa(e))&&(r&&(r+=` `),r+=t);return r}function wa(e){return typeof e==`object`?Ca(e):e??``}var Ta=[...`
3
+ \r\f\xA0\v`];function Ea(e,t,n){var r=e==null?``:``+e;if(t&&(r=r?r+` `+t:t),n){for(var i of Object.keys(n))if(n[i])r=r?r+` `+i:i;else if(r.length)for(var a=i.length,o=0;(o=r.indexOf(i,o))>=0;){var s=o+a;(o===0||Ta.includes(r[o-1]))&&(s===r.length||Ta.includes(r[s]))?r=(o===0?``:r.substring(0,o))+r.substring(s+1):o=s}}return r===``?null:r}function Da(e,t=!1){var n=t?` !important;`:`;`,r=``;for(var i of Object.keys(e)){var a=e[i];a!=null&&a!==``&&(r+=` `+i+`: `+a+n)}return r}function Oa(e){return e[0]!==`-`||e[1]!==`-`?e.toLowerCase():e}function ka(e,t){if(t){var n=``,r,i;if(Array.isArray(t)?(r=t[0],i=t[1]):r=t,e){e=String(e).replaceAll(/\s*\/\*.*?\*\/\s*/g,``).trim();var a=!1,o=0,s=!1,c=[];r&&c.push(...Object.keys(r).map(Oa)),i&&c.push(...Object.keys(i).map(Oa));var l=0,u=-1;let t=e.length;for(var d=0;d<t;d++){var f=e[d];if(s?f===`/`&&e[d-1]===`*`&&(s=!1):a?a===f&&(a=!1):f===`/`&&e[d+1]===`*`?s=!0:f===`"`||f===`'`?a=f:f===`(`?o++:f===`)`&&o--,!s&&a===!1&&o===0){if(f===`:`&&u===-1)u=d;else if(f===`;`||d===t-1){if(u!==-1){var p=Oa(e.substring(l,u).trim());if(!c.includes(p)){f!==`;`&&d++;var m=e.substring(l,d).trim();n+=` `+m+`;`}}l=d+1,u=-1}}}}return r&&(n+=Da(r)),i&&(n+=Da(i,!0)),n=n.trim(),n===``?null:n}return e==null?null:String(e)}function Aa(e,t,n,r,i,a){var o=e.__className;if(C||o!==n||o===void 0){var s=Ea(n,r,a);(!C||s!==e.getAttribute(`class`))&&(s==null?e.removeAttribute(`class`):t?e.className=s:e.setAttribute(`class`,s)),e.__className=n}else if(a&&i!==a)for(var c in a){var l=!!a[c];(i==null||l!==!!i[c])&&e.classList.toggle(c,l)}return a}function ja(e,t={},n,r){for(var i in n){var a=n[i];t[i]!==a&&(n[i]==null?e.style.removeProperty(i):e.style.setProperty(i,a,r))}}function Ma(e,t,n,r){var i=e.__style;if(C||i!==t){var a=ka(t,r);(!C||a!==e.getAttribute(`style`))&&(a==null?e.removeAttribute(`style`):e.style.cssText=a),e.__style=t}else r&&(Array.isArray(r)?(ja(e,n?.[0],r[0]),ja(e,n?.[1],r[1],`important`)):ja(e,n,r));return r}function Na(e,n,r=!1){if(e.multiple){if(n==null)return;if(!t(n))return Je();for(var i of e.options)i.selected=n.includes(Ia(i));return}for(i of e.options)if(In(Ia(i),n)){i.selected=!0;return}(!r||n!==void 0)&&(e.selectedIndex=-1)}function Pa(e){var t=new MutationObserver(()=>{Na(e,e.__value)});t.observe(e,{childList:!0,subtree:!0,attributes:!0,attributeFilter:[`value`]}),ar(()=>{t.disconnect()})}function Fa(e,t,n=t){var r=new WeakSet,i=!0;tr(e,`change`,t=>{var i=t?`[selected]`:`:checked`,a;if(e.multiple)a=[].map.call(e.querySelectorAll(i),Ia);else{var o=e.querySelector(i)??e.querySelector(`option:not([disabled])`);a=o&&Ia(o)}n(a),e.__value=a,N!==null&&r.add(N)}),dr(()=>{var a=t();if(e===document.activeElement){var o=O?Lt:N;if(r.has(o))return}if(Na(e,a,i),i&&a===void 0){var s=e.querySelector(`:checked`);s!==null&&(a=Ia(s),n(a))}e.__value=a,i=!1}),Pa(e)}function Ia(e){return`__value`in e?e.__value:e.value}var La=Symbol(`class`),Ra=Symbol(`style`),za=Symbol(`is custom element`),Ba=Symbol(`is html`),Va=be?`link`:`LINK`,Ha=be?`input`:`INPUT`,Ua=be?`option`:`OPTION`,Wa=be?`select`:`SELECT`,Ga=be?`progress`:`PROGRESS`;function Ka(e){if(C){var t=!1,n=()=>{if(!t){if(t=!0,e.hasAttribute(`value`)){var n=e.value;Xa(e,`value`,null),e.value=n}if(e.hasAttribute(`checked`)){var r=e.checked;Xa(e,`checked`,null),e.checked=r}}};e.__on_r=n,A(n),$n()}}function qa(e,t){var n=eo(e);n.value===(n.value=t??void 0)||e.value===t&&(t!==0||e.nodeName!==Ga)||(e.value=t??``)}function Ja(e,t){var n=eo(e);n.checked!==(n.checked=t??void 0)&&(e.checked=t)}function Ya(e,t){t?e.hasAttribute(`selected`)||e.setAttribute(`selected`,``):e.removeAttribute(`selected`)}function Xa(e,t,n,r){var i=eo(e);C&&(i[t]=e.getAttribute(t),t===`src`||t===`srcset`||t===`href`&&e.nodeName===Va)||i[t]!==(i[t]=n)&&(t===`loading`&&(e[_e]=n),n==null?e.removeAttribute(t):typeof n!=`string`&&no(e).includes(t)?e[t]=n:e.setAttribute(t,n))}function Za(e,t,n){var r=V,i=W;let a=C;C&&w(!1),U(null),G(null);try{t!==`style`&&(to.has(e.getAttribute(`is`)||e.nodeName)||!customElements||customElements.get(e.getAttribute(`is`)||e.nodeName.toLowerCase())?no(e).includes(t):n&&typeof n==`object`)?e[t]=n:Xa(e,t,n==null?n:String(n))}finally{U(r),G(i),a&&w(!0)}}function Qa(e,t,n,r,i=!1,a=!1){if(C&&i&&e.nodeName===Ha){var o=e;(o.type===`checkbox`?`defaultChecked`:`defaultValue`)in n||Ka(o)}var s=eo(e),c=s[za],l=!s[Ba];let u=C&&c;u&&w(!1);var d=t||{},f=e.nodeName===Ua;for(var p in t)p in n||(n[p]=null);n.class?n.class=wa(n.class):(r||n[La])&&(n.class=null),n[Ra]&&(n.style??=null);var m=no(e);for(let i in n){let o=n[i];if(f&&i===`value`&&o==null){e.value=e.__value=``,d[i]=o;continue}if(i===`class`){Aa(e,e.namespaceURI===`http://www.w3.org/1999/xhtml`,o,r,t?.[La],n[La]),d[i]=o,d[La]=n[La];continue}if(i===`style`){Ma(e,o,t?.[Ra],n[Ra]),d[i]=o,d[Ra]=n[Ra];continue}var h=d[i];if(!(o===h&&!(o===void 0&&e.hasAttribute(i)))){d[i]=o;var g=i[0]+i[1];if(g!==`$$`)if(g===`on`){let t={},n=`$$`+i,r=i.slice(2);var _=$r(r);if(Zr(r)&&(r=r.slice(0,-7),t.capture=!0),!_&&h){if(o!=null)continue;e.removeEventListener(r,d[n],t),d[n]=null}if(_)pi(r,e,o),mi([r]);else if(o!=null){function a(e){d[i].call(this,e)}d[n]=ui(r,e,a,t)}}else if(i===`style`)Xa(e,i,o);else if(i===`autofocus`)Xn(e,!!o);else if(!c&&(i===`__value`||i===`value`&&o!=null))e.value=e.__value=o;else if(i===`selected`&&f)Ya(e,o);else{var v=i;l||(v=ni(v));var y=v===`defaultValue`||v===`defaultChecked`;if(o==null&&!c&&!y)if(s[i]=null,v===`value`||v===`checked`){let n=e,r=t===void 0;if(v===`value`){let e=n.defaultValue;n.removeAttribute(v),n.defaultValue=e,n.value=n.__value=r?e:null}else{let e=n.defaultChecked;n.removeAttribute(v),n.defaultChecked=e,n.checked=r?e:!1}}else e.removeAttribute(i);else y||m.includes(v)&&(c||typeof o!=`string`)?(e[v]=o,v in s&&(s[v]=S)):typeof o!=`function`&&Xa(e,v,o,a)}}}return u&&w(!0),d}function $a(e,t,n=[],r=[],i=[],a,o=!1,s=!1){cn(i,n,r,n=>{var r=void 0,i={},c=e.nodeName===Wa,l=!1;if(gr(()=>{var u=t(...n.map(X)),d=Qa(e,r,u,a,o,s);l&&c&&`value`in u&&Na(e,u.value);for(let e of Object.getOwnPropertySymbols(i))u[e]||B(i[e]);for(let t of Object.getOwnPropertySymbols(u)){var f=u[t];t.description===`@attach`&&(!r||f!==r[t])&&(i[t]&&B(i[t]),i[t]=z(()=>xa(e,()=>f))),d[t]=f}r=d}),c){var u=e;dr(()=>{Na(u,r.value,!0),Pa(u)})}l=!0})}function eo(e){return e.__attributes??={[za]:e.nodeName.includes(`-`),[Ba]:e.namespaceURI===He}}var to=new Map;function no(e){var t=e.getAttribute(`is`)||e.nodeName,n=to.get(t);if(n)return n;to.set(t,n=[]);for(var r,i=e,a=Element.prototype;a!==i;){for(var o in r=c(i),r)r[o].set&&n.push(o);i=d(i)}return n}function ro(e,t,n=t){var r=new WeakSet;tr(e,`input`,async i=>{var a=i?e.defaultValue:e.value;if(a=so(e)?co(a):a,n(a),N!==null&&r.add(N),await Wr(),a!==(a=t())){var o=e.selectionStart,s=e.selectionEnd,c=e.value.length;if(e.value=a??``,s!==null){var l=e.value.length;o===s&&s===c&&l>c?(e.selectionStart=l,e.selectionEnd=l):(e.selectionStart=o,e.selectionEnd=Math.min(s,l))}}}),(C&&e.defaultValue!==e.value||Z(t)==null&&e.value)&&(n(so(e)?co(e.value):e.value),N!==null&&r.add(N)),pr(()=>{var n=t();if(e===document.activeElement){var i=O?Lt:N;if(r.has(i))return}so(e)&&n===co(e.value)||e.type===`date`&&!n&&!e.value||n!==e.value&&(e.value=n??``)})}var io=new Set;function ao(e,t,n,r,i=r){var a=n.getAttribute(`type`)===`checkbox`,o=e;let s=!1;if(t!==null)for(var c of t)o=o[c]??=[];o.push(n),tr(n,`change`,()=>{var e=n.__value;a&&(e=oo(o,e,n.checked)),i(e)},()=>i(a?[]:null)),pr(()=>{var e=r();if(C&&n.defaultChecked!==n.checked){s=!0;return}a?(e||=[],n.checked=e.includes(n.__value)):n.checked=In(n.__value,e)}),ar(()=>{var e=o.indexOf(n);e!==-1&&o.splice(e,1)}),io.has(o)||(io.add(o),A(()=>{o.sort((e,t)=>e.compareDocumentPosition(t)===4?-1:1),io.delete(o)})),A(()=>{if(s){var e=a?oo(o,e,n.checked):o.find(e=>e.checked)?.__value;i(e)}})}function oo(e,t,n){for(var r=new Set,i=0;i<e.length;i+=1)e[i].checked&&r.add(e[i].__value);return n||r.delete(t),Array.from(r)}function so(e){var t=e.type;return t===`number`||t===`range`}function co(e){return e===``?null:+e}var lo=new class e{#e=new WeakMap;#t;#n;static entries=new WeakMap;constructor(e){this.#n=e}observe(e,t){var n=this.#e.get(e)||new Set;return n.add(t),this.#e.set(e,n),this.#r().observe(e,this.#n),()=>{var n=this.#e.get(e);n.delete(t),n.size===0&&(this.#e.delete(e),this.#t.unobserve(e))}}#r(){return this.#t??=new ResizeObserver(t=>{for(var n of t){e.entries.set(n.target,n);for(var r of this.#e.get(n.target)||[])r(n)}})}}({box:`border-box`});function uo(e,t,n){var r=lo.observe(e,()=>n(e[t]));dr(()=>(Z(()=>n(e[t])),r))}function fo(e,t){return e===t||e?.[he]===t}function po(e={},t,n,r){var i=k.r,a=W;return dr(()=>{var o,s;return pr(()=>{o=s,s=r?.()||[],Z(()=>{e!==n(...s)&&(t(e,...s),o&&fo(n(...o),e)&&t(null,...o))})}),()=>{let r=a;for(;r!==i&&r.parent!==null&&r.parent.f&33554432;)r=r.parent;let o=()=>{s&&fo(n(...s),e)&&t(null,...s)},c=r.teardown;r.teardown=()=>{o(),c?.()}}}),e}function mo(e=!1){let t=k,n=t.l.u;if(!n)return;let r=()=>Jr(t.s);if(e){let e=0,n={},i=fn(()=>{let r=!1,i=t.s;for(let e in i)i[e]!==n[e]&&(n[e]=i[e],r=!0);return r&&e++,e});r=()=>X(i)}n.b.length&&cr(()=>{ho(t,r),_(n.b)}),or(()=>{let e=Z(()=>n.m.map(g));return()=>{for(let t of e)typeof t==`function`&&t()}}),n.a.length&&or(()=>{ho(t,r),_(n.a)})}function ho(e,t){if(e.l.s)for(let t of e.l.s)X(t);t()}var go={get(e,t){if(!e.exclude.includes(t))return e.props[t]},set(e,t){return!1},getOwnPropertyDescriptor(e,t){if(!e.exclude.includes(t)&&t in e.props)return{enumerable:!0,configurable:!0,value:e.props[t]}},has(e,t){return e.exclude.includes(t)?!1:t in e.props},ownKeys(e){return Reflect.ownKeys(e.props).filter(t=>!e.exclude.includes(t))}};function _o(e,t,n){return new Proxy({props:e,exclude:t},go)}var vo={get(e,t){let n=e.props.length;for(;n--;){let r=e.props[n];if(p(r)&&(r=r()),typeof r==`object`&&r&&t in r)return r[t]}},set(e,t,n){let r=e.props.length;for(;r--;){let i=e.props[r];p(i)&&(i=i());let a=s(i,t);if(a&&a.set)return a.set(n),!0}return!1},getOwnPropertyDescriptor(e,t){let n=e.props.length;for(;n--;){let r=e.props[n];if(p(r)&&(r=r()),typeof r==`object`&&r&&t in r){let e=s(r,t);return e&&!e.configurable&&(e.configurable=!0),e}}},has(e,t){if(t===he||t===ge)return!1;for(let n of e.props)if(p(n)&&(n=n()),n!=null&&t in n)return!0;return!1},ownKeys(e){let t=[];for(let n of e.props)if(p(n)&&(n=n()),n){for(let e in n)t.includes(e)||t.push(e);for(let e of Object.getOwnPropertySymbols(n))t.includes(e)||t.push(e)}return t}};function yo(...e){return new Proxy({props:e},vo)}function bo(e,t,n,r){var i=!it||(n&2)!=0,a=(n&8)!=0,o=(n&16)!=0,c=r,l=!0,u=()=>(l&&(l=!1,c=o?Z(r):r),c);let d;if(a){var f=he in e||ge in e;d=s(e,t)?.set??(f&&t in e?n=>e[t]=n:void 0)}var p,m=!1;a?[p,m]=It(()=>e[t]):p=e[t],p===void 0&&r!==void 0&&(p=u(),d&&(i&&Fe(t),d(p)));var h=i?()=>{var n=e[t];return n===void 0?u():(l=!0,n)}:()=>{var n=e[t];return n!==void 0&&(c=void 0),n===void 0?c:n};if(i&&!(n&4))return h;if(d){var g=e.$$legacy;return(function(e,t){return arguments.length>0?((!i||!t||g||m)&&d(t?h():e),e):h()})}var _=!1,v=(n&1?fn:hn)(()=>(_=!1,h()));a&&X(v);var y=W;return(function(e,t){if(arguments.length>0){let n=t?X(v):i&&a?Pn(e):e;return kn(v,n),_=!0,c!==void 0&&(c=n),e}return kr&&_||y.f&16384?v.v:X(v)})}function xo(e){return new Co(e)}function So(e){return class extends Co{constructor(t){super({component:e,...t})}}}var Co=class{#e;#t;constructor(e){var t=new Map,n=(e,n)=>{var r=On(n,!1,!1);return t.set(e,r),r};let r=new Proxy({...e.props||{},$$events:{}},{get(e,r){return X(t.get(r)??n(r,Reflect.get(e,r)))},has(e,r){return r===ge?!0:(X(t.get(r)??n(r,Reflect.get(e,r))),Reflect.has(e,r))},set(e,r,i){return kn(t.get(r)??n(r,i),i),Reflect.set(e,r,i)}});this.#t=(e.hydrate?Pi:Ni)(e.component,{target:e.target,anchor:e.anchor,props:r,context:e.context,intro:e.intro??!1,recover:e.recover,transformError:e.transformError}),!O&&(!e?.props?.$$host||e.sync===!1)&&Kt(),this.#e=r.$$events;for(let e of Object.keys(this.#t))e===`$set`||e===`$destroy`||e===`$on`||o(this,e,{get(){return this.#t[e]},set(t){this.#t[e]=t},enumerable:!0});this.#t.$set=e=>{Object.assign(r,e)},this.#t.$destroy=()=>{Ri(this.#t)}}$set(e){this.#t.$set(e)}$on(e,t){this.#e[e]=this.#e[e]||[];let n=(...e)=>t.call(this,...e);return this.#e[e].push(n),()=>{this.#e[e]=this.#e[e].filter(e=>e!==n)}}$destroy(){this.#t.$destroy()}},wo;typeof HTMLElement==`function`&&(wo=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;$$shadowRoot=null;constructor(e,t,n){super(),this.$$ctor=e,this.$$s=t,n&&(this.$$shadowRoot=this.attachShadow(n))}addEventListener(e,t,n){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){let n=this.$$c.$on(e,t);this.$$l_u.set(t,n)}super.addEventListener(e,t,n)}removeEventListener(e,t,n){if(super.removeEventListener(e,t,n),this.$$c){let e=this.$$l_u.get(t);e&&(e(),this.$$l_u.delete(t))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){if(await Promise.resolve(),!this.$$cn||this.$$c)return;function e(e){return t=>{let n=Jn(`slot`);e!==`default`&&(n.name=e),Oi(t,n)}}let t={},n=Eo(this);for(let r of this.$$s)r in n&&(r===`default`&&!this.$$d.children?(this.$$d.children=e(r),t.default=!0):t[r]=e(r));for(let e of this.attributes){let t=this.$$g_p(e.name);t in this.$$d||(this.$$d[t]=To(t,e.value,this.$$p_d,`toProp`))}for(let e in this.$$p_d)!(e in this.$$d)&&this[e]!==void 0&&(this.$$d[e]=this[e],delete this[e]);this.$$c=xo({component:this.$$ctor,target:this.$$shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=lr(()=>{pr(()=>{this.$$r=!0;for(let e of a(this.$$c)){if(!this.$$p_d[e]?.reflect)continue;this.$$d[e]=this.$$c[e];let t=To(e,this.$$d[e],this.$$p_d,`toAttribute`);t==null?this.removeAttribute(this.$$p_d[e].attribute||e):this.setAttribute(this.$$p_d[e].attribute||e,t)}this.$$r=!1})});for(let e in this.$$l)for(let t of this.$$l[e]){let n=this.$$c.$on(e,t);this.$$l_u.set(t,n)}this.$$l={}}}attributeChangedCallback(e,t,n){this.$$r||(e=this.$$g_p(e),this.$$d[e]=To(e,n,this.$$p_d,`toProp`),this.$$c?.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(e){return a(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function To(e,t,n,r){let i=n[e]?.type;if(t=i===`Boolean`&&typeof t!=`boolean`?t!=null:t,!r||!n[e])return t;if(r===`toAttribute`)switch(i){case`Object`:case`Array`:return t==null?null:JSON.stringify(t);case`Boolean`:return t?``:null;case`Number`:return t??null;default:return t}else switch(i){case`Object`:case`Array`:return t&&JSON.parse(t);case`Boolean`:return t;case`Number`:return t==null?t:+t;default:return t}}function Eo(e){let t={};return e.childNodes.forEach(e=>{t[e.slot||`default`]=!0}),t}function Do(e,t,n,r,i,c){let l=class extends wo{constructor(){super(e,n,i),this.$$p_d=t}static get observedAttributes(){return a(t).map(e=>(t[e].attribute||e).toLowerCase())}};return a(t).forEach(e=>{o(l.prototype,e,{get(){return this.$$c&&e in this.$$c?this.$$c[e]:this.$$d[e]},set(n){n=To(e,n,t),this.$$d[e]=n;var r=this.$$c;r&&(s(r,e)?.get?r[e]=n:r.$set({[e]:n}))}})}),r.forEach(e=>{o(l.prototype,e,{get(){return this.$$c?.[e]}})}),c&&(l=c(l)),e.element=l,l}function Oo(e,t){if(O||xe(`hydratable`),C){let t=window.__svelte?.h;if(t?.has(e))return t.get(e);Ke(e)}return t()}var ko=e({afterUpdate:()=>Io,beforeUpdate:()=>Fo,createContext:()=>pt,createEventDispatcher:()=>Po,createRawSnippet:()=>oa,flushSync:()=>Kt,fork:()=>nn,getAbortSignal:()=>Ao,getAllContexts:()=>_t,getContext:()=>mt,hasContext:()=>gt,hydratable:()=>Oo,hydrate:()=>Pi,mount:()=>Ni,onDestroy:()=>Mo,onMount:()=>jo,setContext:()=>ht,settled:()=>Gr,tick:()=>Wr,unmount:()=>Ri,untrack:()=>Z});function Ao(){return V===null&&Me(),(V.ac??=new AbortController).signal}function jo(e){k===null&&Se(`onMount`),it&&k.l!==null?Lo(k).m.push(e):or(()=>{let t=Z(e);if(typeof t==`function`)return t})}function Mo(e){k===null&&Se(`onDestroy`),jo(()=>()=>Z(e))}function No(e,t,{bubbles:n=!1,cancelable:r=!1}={}){return new CustomEvent(e,{detail:t,bubbles:n,cancelable:r})}function Po(){let e=k;return e===null&&Se(`createEventDispatcher`),(n,r,i)=>{let a=e.s.$$events?.[n];if(a){let o=t(a)?a.slice():[a],s=No(n,r,i);for(let t of o)t.call(e.x,s);return!s.defaultPrevented}return!0}}function Fo(e){k===null&&Se(`beforeUpdate`),k.l===null&&Pe(`beforeUpdate`),Lo(k).b.push(e)}function Io(e){k===null&&Se(`afterUpdate`),k.l===null&&Pe(`afterUpdate`),Lo(k).a.push(e)}function Lo(e){var t=e.l;return t.u??={a:[],b:[],m:[]}}export{Ei as $,ya as A,on as At,Zi as B,dt as Bt,Pa as C,Pn as Ct,wa as D,Dn as Dt,Aa as E,En as Et,$ as F,mt as Ft,Ni as G,Ze as Gt,Ki as H,st as Ht,sa as I,gt as It,Oi as J,y as Jt,Mi as K,Xe as Kt,aa as L,yt as Lt,_a as M,Kt as Mt,ha as N,Nt,Ca as O,hn as Ot,ua as P,_t as Pt,ki as Q,ia as R,vt as Rt,Fa as S,Gn as St,Ma as T,kn as Tt,Wi as U,at as Ut,qi as V,lt as Vt,Ui as W,Qe as Wt,xi as X,Di as Y,Ci as Z,Ka as _,Zn as _t,So as a,Xr as at,Za as b,Un as bt,yo as c,Wr as ct,uo as d,dr as dt,wi as et,ao as f,lr as ft,$a as g,cr as gt,Ra as h,or as ht,Do as i,di as it,va as j,rn as jt,ba as k,mn as kt,mo as l,Z as lt,La as m,mr as mt,Mo as n,pi as nt,bo as o,X as ot,ro as p,pr as pt,Ri as q,m as qt,jo as r,fi as rt,_o as s,Gr as st,ko as t,mi as tt,po as u,Fr as ut,Xa as v,Rn as vt,Na as w,Mn as wt,qa as x,Wn as xt,Ja as y,Ln as yt,ra as z,ht as zt};
@@ -1,4 +1,4 @@
1
- import{A as e,J as t,Lt as n,Mt as r,Rt as i,U as a,X as o,Y as s,i as c,nt as l,o as u,tt as d,xt as f}from"./rEsbAd0y.js";import{t as p}from"./59Qy4pzN.js";import{t as m}from"./BZRp1cWz.js";var h=(e,t)=>{let n=new URLSearchParams(m.url.searchParams);t===void 0?n.delete(e):n.set(e,String(t));let r=`?${n.toString()}`;window.top&&window.top.postMessage(`liipgpt-url:`+r,`*`),p(r,{replaceState:!0})},g=e=>{let t=new URLSearchParams(m.url.searchParams);for(let[n,r]of Object.entries(e))r===void 0?t.delete(n):t.set(n,String(r));let n=`?${t.toString()}`;window.top&&window.top.postMessage(`liipgpt-url:`+n,`*`),p(n,{replaceState:!0})},_=o(`<button type="button" class="sidebar-hide svelte-q6hwt7" aria-label="Hide sidebar">Hide sidebar</button>`),v=o(`<button type="button" class="sidebar-reopen svelte-q6hwt7" aria-label="Show sidebar"><span class="sidebar-reopen__label svelte-q6hwt7" aria-hidden="true">Show sidebar</span></button>`),y={hash:`svelte-q6hwt7`,code:`.sidebar-hide.svelte-q6hwt7 {display:block;padding:0.375rem 0.75rem;border:1px solid #e5e7eb;border-radius:0.375rem;background:#fff;color:#4b5563;font-weight:500;font-size:0.75rem;line-height:1.25;font-family:system-ui, sans-serif;cursor:pointer;}.sidebar-hide.svelte-q6hwt7:hover {background:#f3f4f6;color:#111827;}.sidebar-reopen.svelte-q6hwt7 {display:flex;z-index:50;position:fixed;bottom:5rem;left:0;align-items:center;justify-content:center;padding:0.5rem 0.25rem;border:1px solid #e5e7eb;border-left:none;border-radius:0 0.375rem 0.375rem 0;background:#fff;box-shadow:0 1px 3px 0 rgb(0 0 0 / 0.1),
1
+ import{A as e,J as t,Lt as n,Mt as r,Rt as i,U as a,X as o,Y as s,i as c,nt as l,o as u,tt as d,xt as f}from"./DK3lEKRX.js";import{t as p}from"./z-U4HNd3.js";import{t as m}from"./B4lUgYsH.js";var h=(e,t)=>{let n=new URLSearchParams(m.url.searchParams);t===void 0?n.delete(e):n.set(e,String(t));let r=`?${n.toString()}`;window.top&&window.top.postMessage(`liipgpt-url:`+r,`*`),p(r,{replaceState:!0})},g=e=>{let t=new URLSearchParams(m.url.searchParams);for(let[n,r]of Object.entries(e))r===void 0?t.delete(n):t.set(n,String(r));let n=`?${t.toString()}`;window.top&&window.top.postMessage(`liipgpt-url:`+n,`*`),p(n,{replaceState:!0})},_=o(`<button type="button" class="sidebar-hide svelte-q6hwt7" aria-label="Hide sidebar">Hide sidebar</button>`),v=o(`<button type="button" class="sidebar-reopen svelte-q6hwt7" aria-label="Show sidebar"><span class="sidebar-reopen__label svelte-q6hwt7" aria-hidden="true">Show sidebar</span></button>`),y={hash:`svelte-q6hwt7`,code:`.sidebar-hide.svelte-q6hwt7 {display:block;padding:0.375rem 0.75rem;border:1px solid #e5e7eb;border-radius:0.375rem;background:#fff;color:#4b5563;font-weight:500;font-size:0.75rem;line-height:1.25;font-family:system-ui, sans-serif;cursor:pointer;}.sidebar-hide.svelte-q6hwt7:hover {background:#f3f4f6;color:#111827;}.sidebar-reopen.svelte-q6hwt7 {display:flex;z-index:50;position:fixed;bottom:5rem;left:0;align-items:center;justify-content:center;padding:0.5rem 0.25rem;border:1px solid #e5e7eb;border-left:none;border-radius:0 0.375rem 0.375rem 0;background:#fff;box-shadow:0 1px 3px 0 rgb(0 0 0 / 0.1),
2
2
  0 1px 2px -1px rgb(0 0 0 / 0.1);color:#4b5563;font-weight:500;font-size:0.6rem;font-family:system-ui, sans-serif;cursor:pointer;}.sidebar-reopen.svelte-q6hwt7:hover {background:#f3f4f6;color:#111827;}.sidebar-reopen__label.svelte-q6hwt7 {letter-spacing:0.04em;text-orientation:mixed;writing-mode:vertical-rl;}
3
3
 
4
4
  @media (prefers-color-scheme: dark) {.sidebar-hide.svelte-q6hwt7 {border-color:#4b5563;background:#1f2937;color:#d1d5db;}.sidebar-hide.svelte-q6hwt7:hover {background:#374151;color:#f3f4f6;}.sidebar-reopen.svelte-q6hwt7 {border-color:#4b5563;background:#1f2937;color:#d1d5db;}.sidebar-reopen.svelte-q6hwt7:hover {background:#374151;color:#f3f4f6;}
@@ -0,0 +1 @@
1
+ import{Ut as e}from"./DK3lEKRX.js";e();