@squadico/chatbot 1.5.1 → 1.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +9 -7
- package/dist/answer-BDuY6oLY.js.map +1 -1
- package/dist/answer-Bi8GWLyA.cjs.map +1 -1
- package/dist/chatbot.global.js +7 -7
- package/dist/chatbot.global.js.map +1 -1
- package/dist/widgets/extras-loader.d.ts +3 -2
- package/dist/widgets/extras-loader.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"answer-Bi8GWLyA.cjs","names":["l","u","t","i","r","o","e","f","c","a","s","h","p","v","y","d","w","_","m","k","C","q","D","A","T","j","z","B","u","i","f","n","r"],"sources":["../node_modules/preact/dist/preact.module.js","../node_modules/preact/hooks/dist/hooks.module.js","../src/lib/i18n.ts","../node_modules/preact/jsx-runtime/dist/jsxRuntime.module.js","../src/widgets/element.ts","../src/widgets/names.ts","../src/widgets/i18n.ts","../src/widgets/inline.tsx","../src/widgets/choices/SqcChoices.tsx","../src/widgets/confirm/SqcConfirm.tsx","../src/widgets/table/SqcTable.tsx","../src/widgets/choices/choices.css?inline","../src/widgets/confirm/confirm.css?inline","../src/widgets/table/table.css?inline","../src/widgets/theme.css?inline","../src/widgets/styles.ts","../src/widgets/define.ts","../src/widgets/approval/name.ts","../src/widgets/extras-loader.ts","../src/widgets/live.ts","../src/widgets/parse/confirm.ts","../src/widgets/parse/form.ts","../src/widgets/parse/answer.ts"],"sourcesContent":["var n,l,u,t,i,r,o,e,f,c,a,s,h,p,v,y,d={},w=[],_=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,g=Array.isArray;function m(n,l){for(var u in l)n[u]=l[u];return n}function b(n){n&&n.parentNode&&n.parentNode.removeChild(n)}function k(l,u,t){var i,r,o,e={};for(o in u)\"key\"==o?i=u[o]:\"ref\"==o?r=u[o]:e[o]=u[o];if(arguments.length>2&&(e.children=arguments.length>3?n.call(arguments,2):t),\"function\"==typeof l&&null!=l.defaultProps)for(o in l.defaultProps)void 0===e[o]&&(e[o]=l.defaultProps[o]);return x(l,e,i,r,null)}function x(n,t,i,r,o){var e={type:n,props:t,key:i,ref:r,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:null==o?++u:o,__i:-1,__u:0};return null==o&&null!=l.vnode&&l.vnode(e),e}function M(){return{current:null}}function S(n){return n.children}function C(n,l){this.props=n,this.context=l}function $(n,l){if(null==l)return n.__?$(n.__,n.__i+1):null;for(var u;l<n.__k.length;l++)if(null!=(u=n.__k[l])&&null!=u.__e)return u.__e;return\"function\"==typeof n.type?$(n):null}function I(n){if(n.__P&&n.__d){var u=n.__v,t=u.__e,i=[],r=[],o=m({},u);o.__v=u.__v+1,l.vnode&&l.vnode(o),q(n.__P,o,u,n.__n,n.__P.namespaceURI,32&u.__u?[t]:null,i,null==t?$(u):t,!!(32&u.__u),r),o.__v=u.__v,o.__.__k[o.__i]=o,D(i,o,r),u.__e=u.__=null,o.__e!=t&&P(o)}}function P(n){if(null!=(n=n.__)&&null!=n.__c)return n.__e=n.__c.base=null,n.__k.some(function(l){if(null!=l&&null!=l.__e)return n.__e=n.__c.base=l.__e}),P(n)}function A(n){(!n.__d&&(n.__d=!0)&&i.push(n)&&!H.__r++||r!=l.debounceRendering)&&((r=l.debounceRendering)||o)(H)}function H(){try{for(var n,l=1;i.length;)i.length>l&&i.sort(e),n=i.shift(),l=i.length,I(n)}finally{i.length=H.__r=0}}function L(n,l,u,t,i,r,o,e,f,c,a){var s,h,p,v,y,_,g=t&&t.__k||w,m=l.length;for(f=T(u,l,g,f,m),s=0;s<m;s++)null!=(p=u.__k[s])&&(h=-1!=p.__i&&g[p.__i]||d,p.__i=s,_=q(n,p,h,i,r,o,e,f,c,a),v=p.__e,p.ref&&h.ref!=p.ref&&(h.ref&&J(h.ref,null,p),a.push(p.ref,p.__c||v,p)),null==y&&null!=v&&(y=v),4&p.__u?(f=j(p,f,n),h.__e&&(h.__e=null)):\"function\"==typeof p.type&&void 0!==_?f=_:v&&(f=v.nextSibling),p.__u&=-7);return u.__e=y,f}function T(n,l,u,t,i){var r,o,e,f,c,a=u.length,s=a,h=0;for(n.__k=new Array(i),r=0;r<i;r++)null!=(o=l[r])&&\"boolean\"!=typeof o&&\"function\"!=typeof o?(\"string\"==typeof o||\"number\"==typeof o||\"bigint\"==typeof o||o.constructor==String?o=n.__k[r]=x(null,o,null,null,null):g(o)?o=n.__k[r]=x(S,{children:o},null,null,null):void 0===o.constructor&&o.__b>0?o=n.__k[r]=x(o.type,o.props,o.key,o.ref?o.ref:null,o.__v):n.__k[r]=o,f=r+h,o.__=n,o.__b=n.__b+1,e=null,-1!=(c=o.__i=O(o,u,f,s))&&(s--,(e=u[c])&&(e.__u|=2)),null==e||null==e.__v?(-1==c&&(i>a?h--:i<a&&h++),\"function\"!=typeof o.type&&(o.__u|=4)):c!=f&&(c==f-1?h--:c==f+1?h++:(c>f?h--:h++,o.__u|=4))):n.__k[r]=null;if(s)for(r=0;r<a;r++)null!=(e=u[r])&&0==(2&e.__u)&&(e.__e==t&&(t=$(e)),K(e,e));return t}function j(n,l,u){var t,i;if(\"function\"==typeof n.type){for(t=n.__k,i=0;t&&i<t.length;i++)t[i]&&(t[i].__=n,l=j(t[i],l,u));return l}n.__e!=l&&(l&&n.type&&!l.parentNode&&(l=$(n)),l=u.insertBefore(n.__e,l||null));do{l=l&&l.nextSibling}while(null!=l&&8==l.nodeType);return l}function F(n,l){return l=l||[],null==n||\"boolean\"==typeof n||(g(n)?n.some(function(n){F(n,l)}):l.push(n)),l}function O(n,l,u,t){var i,r,o,e=n.key,f=n.type,c=l[u],a=null!=c&&0==(2&c.__u);if(null===c&&null==e||a&&e==c.key&&f==c.type)return u;if(t>(a?1:0))for(i=u-1,r=u+1;i>=0||r<l.length;)if(null!=(c=l[o=i>=0?i--:r++])&&0==(2&c.__u)&&e==c.key&&f==c.type)return o;return-1}function z(n,l,u){\"-\"==l[0]?n.setProperty(l,null==u?\"\":u):n[l]=null==u?\"\":\"number\"!=typeof u||_.test(l)?u:u+\"px\"}function N(n,l,u,t,i){var r,o;n:if(\"style\"==l)if(\"string\"==typeof u)n.style.cssText=u;else{if(\"string\"==typeof t&&(n.style.cssText=t=\"\"),t)for(l in t)u&&l in u||z(n.style,l,\"\");if(u)for(l in u)t&&u[l]==t[l]||z(n.style,l,u[l])}else if(\"o\"==l[0]&&\"n\"==l[1])r=l!=(l=l.replace(s,\"$1\")),o=l.toLowerCase(),l=o in n||\"onFocusOut\"==l||\"onFocusIn\"==l?o.slice(2):l.slice(2),n.l||(n.l={}),n.l[l+r]=u,u?t?u[a]=t[a]:(u[a]=h,n.addEventListener(l,r?v:p,r)):n.removeEventListener(l,r?v:p,r);else{if(\"http://www.w3.org/2000/svg\"==i)l=l.replace(/xlink(H|:h)/,\"h\").replace(/sName$/,\"s\");else if(\"width\"!=l&&\"height\"!=l&&\"href\"!=l&&\"list\"!=l&&\"form\"!=l&&\"tabIndex\"!=l&&\"download\"!=l&&\"rowSpan\"!=l&&\"colSpan\"!=l&&\"role\"!=l&&\"popover\"!=l&&l in n)try{n[l]=null==u?\"\":u;break n}catch(n){}\"function\"==typeof u||(null==u||!1===u&&\"-\"!=l[4]?n.removeAttribute(l):n.setAttribute(l,\"popover\"==l&&1==u?\"\":u))}}function V(n){return function(u){if(this.l){var t=this.l[u.type+n];if(null==u[c])u[c]=h++;else if(u[c]<t[a])return;return t(l.event?l.event(u):u)}}}function q(n,u,t,i,r,o,e,f,c,a){var s,h,p,v,y,d,_,k,x,M,I,P,A,H,T,j,F=u.type;if(void 0!==u.constructor)return null;128&t.__u&&(c=!!(32&t.__u),o=[f=u.__e=t.__e]),(s=l.__b)&&s(u);n:if(\"function\"==typeof F){h=e.length;try{if(x=u.props,M=F.prototype&&F.prototype.render,I=(s=F.contextType)&&i[s.__c],P=s?I?I.props.value:s.__:i,t.__c?k=(p=u.__c=t.__c).__=p.__E:(M?u.__c=p=new F(x,P):(u.__c=p=new C(x,P),p.constructor=F,p.render=Q),I&&I.sub(p),p.state||(p.state={}),p.__n=i,v=p.__d=!0,p.__h=[],p._sb=[]),M&&null==p.__s&&(p.__s=p.state),M&&null!=F.getDerivedStateFromProps&&(p.__s==p.state&&(p.__s=m({},p.__s)),m(p.__s,F.getDerivedStateFromProps(x,p.__s))),y=p.props,d=p.state,p.__v=u,v)M&&null==F.getDerivedStateFromProps&&null!=p.componentWillMount&&p.componentWillMount(),M&&null!=p.componentDidMount&&p.__h.push(p.componentDidMount);else{if(M&&null==F.getDerivedStateFromProps&&x!==y&&null!=p.componentWillReceiveProps&&p.componentWillReceiveProps(x,P),u.__v==t.__v||!p.__e&&null!=p.shouldComponentUpdate&&!1===p.shouldComponentUpdate(x,p.__s,P)){u.__v!=t.__v&&(p.props=x,p.state=p.__s,p.__d=!1),u.__e=t.__e,u.__k=t.__k,u.__k.some(function(n){n&&(n.__=u)}),w.push.apply(p.__h,p._sb),p._sb=[],p.__h.length&&e.push(p),f=$(t);break n}null!=p.componentWillUpdate&&p.componentWillUpdate(x,p.__s,P),M&&null!=p.componentDidUpdate&&p.__h.push(function(){p.componentDidUpdate(y,d,_)})}if(p.context=P,p.props=x,p.__P=n,p.__e=!1,A=l.__r,H=0,M)p.state=p.__s,p.__d=!1,A&&A(u),s=p.render(p.props,p.state,p.context),w.push.apply(p.__h,p._sb),p._sb=[];else do{p.__d=!1,A&&A(u),s=p.render(p.props,p.state,p.context),p.state=p.__s}while(p.__d&&++H<25);p.state=p.__s,null!=p.getChildContext&&(i=m(m({},i),p.getChildContext())),M&&!v&&null!=p.getSnapshotBeforeUpdate&&(_=p.getSnapshotBeforeUpdate(y,d)),T=null!=s&&s.type===S&&null==s.key?E(s.props.children):s,f=L(n,g(T)?T:[T],u,t,i,r,o,e,f,c,a),p.base=u.__e,u.__u&=-161,p.__h.length&&e.push(p),k&&(p.__E=p.__=null)}catch(n){if(e.length=h,u.__v=null,c||null!=o){if(n.then){for(u.__u|=c?160:128;f&&8==f.nodeType&&f.nextSibling;)f=f.nextSibling;null!=o&&(o[o.indexOf(f)]=null),u.__e=f}else if(null!=o)for(j=o.length;j--;)b(o[j])}else u.__e=t.__e;null==u.__k&&(u.__k=t.__k||[]),n.then||B(u),l.__e(n,u,t)}}else null==o&&u.__v==t.__v?(u.__k=t.__k,u.__e=t.__e):f=u.__e=G(t.__e,u,t,i,r,o,e,c,a);return(s=l.diffed)&&s(u),128&u.__u?void 0:f}function B(n){n&&(n.__c&&(n.__c.__e=!0),n.__k&&n.__k.some(B))}function D(n,u,t){for(var i=0;i<t.length;i++)J(t[i],t[++i],t[++i]);l.__c&&l.__c(u,n),n.some(function(u){try{n=u.__h,u.__h=[],n.some(function(n){n.call(u)})}catch(n){l.__e(n,u.__v)}})}function E(n){return\"object\"!=typeof n||null==n||n.__b>0?n:g(n)?n.map(E):void 0!==n.constructor?null:m({},n)}function G(u,t,i,r,o,e,f,c,a){var s,h,p,v,y,w,_,m=i.props||d,k=t.props,x=t.type;if(\"svg\"==x?o=\"http://www.w3.org/2000/svg\":\"math\"==x?o=\"http://www.w3.org/1998/Math/MathML\":o||(o=\"http://www.w3.org/1999/xhtml\"),null!=e)for(s=0;s<e.length;s++)if((y=e[s])&&\"setAttribute\"in y==!!x&&(x?y.localName==x:3==y.nodeType)){u=y,e[s]=null;break}if(null==u){if(null==x)return document.createTextNode(k);u=document.createElementNS(o,x,k.is&&k),c&&(l.__m&&l.__m(t,e),c=!1),e=null}if(null==x)m===k||c&&u.data==k||(u.data=k);else{if(e=\"textarea\"==x&&null!=k.defaultValue?null:e&&n.call(u.childNodes),!c&&null!=e)for(m={},s=0;s<u.attributes.length;s++)m[(y=u.attributes[s]).name]=y.value;for(s in m)y=m[s],\"dangerouslySetInnerHTML\"==s?p=y:\"children\"==s||s in k||\"value\"==s&&\"defaultValue\"in k||\"checked\"==s&&\"defaultChecked\"in k||N(u,s,null,y,o);for(s in k)y=k[s],\"children\"==s?v=y:\"dangerouslySetInnerHTML\"==s?h=y:\"value\"==s?w=y:\"checked\"==s?_=y:c&&\"function\"!=typeof y||m[s]===y||N(u,s,y,m[s],o);if(h)c||p&&(h.__html==p.__html||h.__html==u.innerHTML)||(u.innerHTML=h.__html),t.__k=[];else if(p&&(u.innerHTML=\"\"),L(\"template\"==t.type?u.content:u,g(v)?v:[v],t,i,r,\"foreignObject\"==x?\"http://www.w3.org/1999/xhtml\":o,e,f,e?e[0]:i.__k&&$(i,0),c,a),null!=e)for(s=e.length;s--;)b(e[s]);c&&\"textarea\"!=x||(s=\"value\",\"progress\"==x&&null==w?u.removeAttribute(\"value\"):null!=w&&(w!==u[s]||\"progress\"==x&&!w||\"option\"==x&&w!=m[s])&&N(u,s,w,m[s],o),s=\"checked\",null!=_&&_!=u[s]&&N(u,s,_,m[s],o))}return u}function J(n,u,t){try{if(\"function\"==typeof n){var i=\"function\"==typeof n.__u;i&&n.__u(),i&&null==u||(n.__u=n(u))}else n.current=u}catch(n){l.__e(n,t)}}function K(n,u,t){var i,r;if(l.unmount&&l.unmount(n),(i=n.ref)&&(i.current&&i.current!=n.__e||J(i,null,u)),null!=(i=n.__c)){if(i.componentWillUnmount)try{i.componentWillUnmount()}catch(n){l.__e(n,u)}i.base=i.__P=i.__n=null}if(i=n.__k)for(r=0;r<i.length;r++)i[r]&&K(i[r],u,t||\"function\"!=typeof n.type);t||b(n.__e),n.__c=n.__=n.__e=void 0}function Q(n,l,u){return this.constructor(n,u)}function R(u,t,i){var r,o,e,f;t==document&&(t=document.documentElement),l.__&&l.__(u,t),o=(r=\"function\"==typeof i)?null:i&&i.__k||t.__k,e=[],f=[],q(t,u=(!r&&i||t).__k=k(S,null,[u]),o||d,d,t.namespaceURI,!r&&i?[i]:o?null:t.firstChild?n.call(t.childNodes):null,e,!r&&i?i:o?o.__e:t.firstChild,r,f),D(e,u,f),u.props.children=null}function U(n,l){R(n,l,U)}function W(l,u,t){var i,r,o,e,f=m({},l.props);for(o in l.type&&l.type.defaultProps&&(e=l.type.defaultProps),u)\"key\"==o?i=u[o]:\"ref\"==o?r=u[o]:f[o]=void 0===u[o]&&null!=e?e[o]:u[o];return arguments.length>2&&(f.children=arguments.length>3?n.call(arguments,2):t),x(l.type,f,i||l.key,r||l.ref,null)}function X(n){function l(n){var u,t;return this.getChildContext||(u=new Set,(t={})[l.__c]=this,this.getChildContext=function(){return t},this.componentWillUnmount=function(){u=null},this.shouldComponentUpdate=function(n){this.props.value!=n.value&&u.forEach(function(n){n.__e=!0,A(n)})},this.sub=function(n){u.add(n);var l=n.componentWillUnmount;n.componentWillUnmount=function(){u&&u.delete(n),l&&l.call(n)}}),n.children}return l.__c=\"__cC\"+y++,l.__=n,l.Provider=l.__l=(l.Consumer=function(n,l){return n.children(l)}).contextType=l,l}n=w.slice,l={__e:function(n,l,u,t){for(var i,r,o;l=l.__;)if((i=l.__c)&&!i.__)try{if((r=i.constructor)&&null!=r.getDerivedStateFromError&&(i.setState(r.getDerivedStateFromError(n)),o=i.__d),null!=i.componentDidCatch&&(i.componentDidCatch(n,t||{}),o=i.__d),o)return i.__E=i}catch(l){n=l}throw n}},u=0,t=function(n){return null!=n&&void 0===n.constructor},C.prototype.setState=function(n,l){var u;u=null!=this.__s&&this.__s!=this.state?this.__s:this.__s=m({},this.state),\"function\"==typeof n&&(n=n(m({},u),this.props)),n&&m(u,n),null!=n&&this.__v&&(l&&this._sb.push(l),A(this))},C.prototype.forceUpdate=function(n){this.__v&&(this.__e=!0,n&&this.__h.push(n),A(this))},C.prototype.render=S,i=[],o=\"function\"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,e=function(n,l){return n.__v.__b-l.__v.__b},H.__r=0,f=Math.random().toString(8),c=\"__d\"+f,a=\"__a\"+f,s=/(PointerCapture)$|Capture$/i,h=0,p=V(!1),v=V(!0),y=0;export{C as Component,S as Fragment,W as cloneElement,X as createContext,k as createElement,M as createRef,k as h,U as hydrate,t as isValidElement,l as options,R as render,F as toChildArray};\n//# sourceMappingURL=preact.module.js.map\n","import{options as n}from\"preact\";var t,r,u,i,o=0,f=[],c=n,e=c.__b,a=c.__r,v=c.diffed,l=c.__c,m=c.unmount,p=c.__;function s(n,t){c.__h&&c.__h(r,n,o||t),o=0;var u=r.__H||(r.__H={__:[],__h:[]});return n>=u.__.length&&u.__.push({}),u.__[n]}function d(n){return o=1,y(D,n)}function y(n,u,i){var o=s(t++,2);if(o.t=n,!o.__c&&(o.__=[i?i(u):D(void 0,u),function(n){var t=o.__N?o.__N[0]:o.__[0],r=o.t(t,n);t!==r&&(o.__N=[r,o.__[1]],o.__c.setState({}))}],o.__c=r,!r.__f)){var f=function(n,t,r){if(!o.__c.__H)return!0;var u=!1,i=o.__c.props!==n;if(o.__c.__H.__.some(function(n){if(n.__N){u=!0;var t=n.__[0];n.__=n.__N,n.__N=void 0,t!==n.__[0]&&(i=!0)}}),c){var f=c.call(this,n,t,r);return u?f||i:f}return!u||i};r.__f=!0;var c=r.shouldComponentUpdate,e=r.componentWillUpdate;r.componentWillUpdate=function(n,t,r){if(this.__e){var u=c;c=void 0,f(n,t,r),c=u}e&&e.call(this,n,t,r)},r.shouldComponentUpdate=f}return o.__N||o.__}function h(n,u){var i=s(t++,3);!c.__s&&C(i.__H,u)&&(i.__=n,i.u=u,r.__H.__h.push(i))}function _(n,u){var i=s(t++,4);!c.__s&&C(i.__H,u)&&(i.__=n,i.u=u,r.__h.push(i))}function A(n){return o=5,T(function(){return{current:n}},[])}function F(n,t,r){o=6,_(function(){if(\"function\"==typeof n){var r=n(t());return function(){n(null),r&&\"function\"==typeof r&&r()}}if(n)return n.current=t(),function(){return n.current=null}},null==r?r:r.concat(n))}function T(n,r){var u=s(t++,7);return C(u.__H,r)&&(u.__=n(),u.__H=r,u.__h=n),u.__}function q(n,t){return o=8,T(function(){return n},t)}function x(n){var u=r.context[n.__c],i=s(t++,9);return i.c=n,u?(null==i.__&&(i.__=!0,u.sub(r)),u.props.value):n.__}function P(n,t){c.useDebugValue&&c.useDebugValue(t?t(n):n)}function b(n){var u=s(t++,10),i=d();return u.__=n,r.componentDidCatch||(r.componentDidCatch=function(n,t){u.__&&u.__(n,t),i[1](n)}),[i[0],function(){i[1](void 0)}]}function g(){var n=s(t++,11);if(!n.__){for(var u=r.__v;null!==u&&!u.__m&&null!==u.__;)u=u.__;var i=u.__m||(u.__m=[0,0]);n.__=\"P\"+i[0]+\"-\"+i[1]++}return n.__}function j(){for(var n;n=f.shift();){var t=n.__H;if(n.__P&&t)try{t.__h.some(z),t.__h.some(B),t.__h=[]}catch(r){t.__h=[],c.__e(r,n.__v)}}}c.__b=function(n){r=null,e&&e(n)},c.__=function(n,t){n&&t.__k&&t.__k.__m&&(n.__m=t.__k.__m),p&&p(n,t)},c.__r=function(n){a&&a(n),t=0;var i=(r=n.__c).__H;i&&(u===r?(i.__h=[],r.__h=[],i.__.some(function(n){n.__N&&(n.__=n.__N),n.u=n.__N=void 0})):(i.__h.some(z),i.__h.some(B),i.__h=[],t=0)),u=r},c.diffed=function(n){v&&v(n);var t=n.__c;t&&t.__H&&(t.__H.__h.length&&(1!==f.push(t)&&i===c.requestAnimationFrame||((i=c.requestAnimationFrame)||w)(j)),t.__H.__.some(function(n){n.u&&(n.__H=n.u,n.u=void 0)})),u=r=null},c.__c=function(n,t){t.some(function(n){try{n.__h.some(z),n.__h=n.__h.filter(function(n){return!n.__||B(n)})}catch(r){t.some(function(n){n.__h&&(n.__h=[])}),t=[],c.__e(r,n.__v)}}),l&&l(n,t)},c.unmount=function(n){m&&m(n);var t,r=n.__c;r&&r.__H&&(r.__H.__.some(function(n){try{z(n)}catch(n){t=n}}),r.__H=void 0,t&&c.__e(t,r.__v))};var k=\"function\"==typeof requestAnimationFrame;function w(n){var t,r=function(){clearTimeout(u),k&&cancelAnimationFrame(t),setTimeout(n)},u=setTimeout(r,35);k&&(t=requestAnimationFrame(r))}function z(n){var t=r,u=n.__c;\"function\"==typeof u&&(n.__c=void 0,u()),r=t}function B(n){var t=r;n.__c=n.__(),r=t}function C(n,t){return!n||n.length!==t.length||t.some(function(t,r){return t!==n[r]})}function D(n,t){return\"function\"==typeof t?t(n):t}export{q as useCallback,x as useContext,P as useDebugValue,h as useEffect,b as useErrorBoundary,g as useId,F as useImperativeHandle,_ as useLayoutEffect,T as useMemo,y as useReducer,A as useRef,d as useState};\n//# sourceMappingURL=hooks.module.js.map\n","/**\n * Every user-facing string of the widget, one bundle per supported language.\n *\n * The host picks the language with a single `locale` prop (`en`, `en-GB`,\n * `fr`, `es-ES`…): its primary subtag selects the bundle, and the tag itself is\n * kept as-is for `Intl` — a `fr-CA` host gets the French copy with Canadian date\n * formatting, which is what a BCP-47 tag means. Declaring nothing reads the\n * browser's own languages instead (`resolveLocale`). An unsupported language\n * falls back to `DEFAULT_LANGUAGE` rather than showing keys.\n *\n * Adding a string means adding it to **every** bundle — the `Strings` type makes\n * that a compile error, not a runtime blank.\n */\nimport type { ChatActivity } from '../types'\n\n\nexport type LanguageCode = 'en' | 'fr' | 'es'\n\nexport const DEFAULT_LANGUAGE: LanguageCode = 'en'\n\n/** Shipped languages, in the order they are documented. Published so a host can\n * offer its users only the locales the widget really speaks. */\nexport const SUPPORTED_LANGUAGES: readonly LanguageCode[] = ['en', 'fr', 'es']\n\n/** Labels of the context chips shown under the header. The chip titles\n * themselves come from the host's own context keys — the widget knows no\n * domain entity. */\nexport interface ContextStrings {\n /** Accessible name of the chip row. */\n region: string\n}\n\nexport interface Strings {\n heading: string\n subheading: string\n placeholder: string\n greeting: string\n /** Permanent reminder under the composer: a write is proposed, never applied\n * on its own. */\n hint: string\n /** Byline of an assistant message. */\n assistant: string\n /** Accessible name of the three-dot indicator while the answer is streaming. */\n typing: string\n /** What the agent is busy with before the first word, beside the dots: a\n * kind of work, never the tool — that is all the server says. */\n activity: Record<ChatActivity, string>\n newConversation: string\n close: string\n /** Shorter form, for the `title` tooltip. */\n closeTitle: string\n history: {\n /** The header icon opening the menu. */\n open: string\n /** Accessible name of the menu itself. */\n menu: string\n loading: string\n empty: string\n /** Stands in until the agent has generated a title for the session. */\n untitled: string\n }\n context: ContextStrings\n approval: {\n group: string\n approve: string\n reject: string\n /** Said in the agent's place when it asked for a tool without a word about\n * it: `{tool}` is the name of what it would use. */\n request: string\n /** Heading of the values the tool would be called with. */\n arguments: string\n edit: string\n /** Placeholder of the correction field. */\n correction: string\n correctionLabel: string\n send: string\n }\n confirm: {\n group: string\n yes: string\n no: string\n /** What clicking sends to the agent — a bare \"yes\" is recognised without a\n * model call, so it has to be the word of the user's own language. */\n yesValue: string\n noValue: string\n /** Sends nothing: hands the visitor the composer to write their own answer. */\n other: string\n }\n /** Accessible name of a Markdown checkbox group turned into buttons. */\n choices: string\n /** What a table element says about itself. */\n table: {\n copy: string\n copied: string\n /** Rows beyond the cap: `{count}` is how many were left out. */\n more: string\n }\n /** What a form element says when the agent's spec names nothing itself. */\n form: {\n submit: string\n required: string\n email: string\n number: string\n }\n /** The footer link a plan that carries our name shows. */\n poweredBy: string\n /** The agents a visitor may address by name, where an application holds several. */\n handles: {\n /** Accessible name of the list `@` opens in the composer. */\n picker: string\n /** Said above the name a message addressed and nobody answers to. The handle\n * itself is rendered beside it, so no sentence needs a placeholder. */\n unknown: string\n /** Introduces the handles that do answer, when the organization offers any. */\n instead: string\n /** Accessible name of the column of agents a panel shows when it offers several. */\n rail: string\n }\n /** A question the agent stopped its turn on, answered by ticking options. */\n selection: {\n /** Accessible name of the option group. */\n group: string\n /** Shown under a single-answer question: one click answers it. */\n single: string\n /** Shown under a multi-answer one: several ticks, one validate. */\n multiple: string\n /** The button that sends what has been ticked. */\n validate: string\n }\n composer: {\n label: string\n send: string\n sendTitle: string\n stop: string\n stopTitle: string\n /** Accessible name of the paperclip, and of the cross on each chip. */\n attach: string\n attachTitle: string\n /** Takes the file's name: \"Remove {name}\". */\n remove: string\n }\n /** What a refused upload means, in the terms of whoever chose the file. */\n attachments: {\n unsupported: string\n tooLarge: string\n tooMany: string\n unreadable: string\n failed: string\n }\n /** Shown in the bubble when a turn failed — the real cause goes to\n * `chatbot-error` and the console, not to the user. */\n error: string\n /** Under the transcript once an agent handed the conversation to a human. */\n withHuman: string\n}\n\nconst EN: Strings = {\n heading: 'Assistant',\n subheading: 'Squadico',\n placeholder: 'Ask your question…',\n greeting: 'Hello! I am your assistant. What would you like to do?',\n hint: 'The assistant proposes an action; nothing is applied without your confirmation.',\n assistant: 'Assistant',\n typing: 'The assistant is writing its answer',\n activity: {\n knowledge: 'Searching the knowledge base…',\n skill: 'Following a procedure…',\n delegation: 'Asking a colleague…',\n tool: 'Looking it up…',\n },\n newConversation: 'New conversation',\n close: 'Close the assistant',\n closeTitle: 'Close',\n history: {\n open: 'Conversation history',\n menu: 'Previous conversations',\n loading: 'Loading…',\n empty: 'No previous conversation.',\n untitled: 'Conversation',\n },\n context: {\n region: 'Context sent to the assistant',\n },\n approval: {\n group: 'Write confirmation',\n approve: 'Yes, apply',\n reject: 'No, cancel',\n request: 'The agent wants to use {tool}.',\n arguments: 'With',\n edit: 'Change…',\n correction: 'What to change — e.g. “the due date is next Monday”',\n correctionLabel: 'Correction to make before approving',\n send: 'Send',\n },\n confirm: {\n group: 'Confirmation',\n yes: 'Yes',\n no: 'No',\n yesValue: 'yes',\n noValue: 'no',\n other: 'Propose something else',\n },\n choices: 'Suggested options',\n table: { copy: 'Copy', copied: 'Copied', more: '{count} more rows' },\n form: {\n submit: 'Send',\n required: 'Required',\n email: 'Enter a valid email address',\n number: 'Enter a number',\n },\n poweredBy: 'Powered by Squadico',\n handles: {\n picker: 'Agents you can address',\n unknown: 'Nobody answers to that name here:',\n instead: 'You can address:',\n rail: 'Agents',\n },\n selection: {\n group: 'Suggested choice',\n single: 'Pick one option.',\n multiple: 'Pick one or more options, then validate.',\n validate: 'Validate',\n },\n composer: {\n label: 'Your message',\n send: 'Send the message',\n sendTitle: 'Send',\n stop: 'Stop the answer',\n stopTitle: 'Stop',\n attach: 'Attach a file',\n attachTitle: 'Attach',\n remove: 'Remove {name}',\n },\n attachments: {\n unsupported: 'This kind of file cannot be attached to a message.',\n tooLarge: 'This file is too large.',\n tooMany: 'This message already carries as many files as it may.',\n unreadable: 'This file could not be read.',\n failed: 'This file could not be attached.',\n },\n error: 'Something went wrong, the assistant could not answer. Try again in a moment.',\n withHuman: 'A member of the team will reply to you here.',\n}\n\nconst FR: Strings = {\n heading: 'Assistant',\n subheading: 'Squadico',\n placeholder: 'Posez votre question…',\n greeting: 'Bonjour ! Je suis votre assistant. Que souhaitez-vous faire ?',\n hint: \"L'assistant propose une action ; rien n'est appliqué sans votre confirmation.\",\n assistant: 'Assistant',\n typing: \"L'assistant rédige sa réponse\",\n activity: {\n knowledge: 'Recherche dans la base de connaissances…',\n skill: \"Application d'une procédure…\",\n delegation: \"Consultation d'un collègue…\",\n tool: 'Recherche en cours…',\n },\n newConversation: 'Nouvelle conversation',\n close: \"Fermer l'assistant\",\n closeTitle: 'Fermer',\n history: {\n open: 'Historique des conversations',\n menu: 'Conversations précédentes',\n loading: 'Chargement…',\n empty: 'Aucune conversation précédente.',\n untitled: 'Conversation',\n },\n context: {\n region: \"Contexte transmis à l'assistant\",\n },\n approval: {\n group: \"Validation de l'écriture\",\n approve: 'Oui, appliquer',\n reject: 'Non, annuler',\n request: \"L'agent souhaite utiliser {tool}.\",\n arguments: 'Avec',\n edit: 'Modifier…',\n correction: \"Ce qu'il faut changer — ex. « l'échéance est lundi prochain »\",\n correctionLabel: 'Correction à apporter avant validation',\n send: 'Envoyer',\n },\n confirm: {\n group: 'Confirmation',\n yes: 'Oui',\n no: 'Non',\n yesValue: 'oui',\n noValue: 'non',\n other: 'Proposer autre chose',\n },\n choices: 'Options proposées',\n table: { copy: 'Copier', copied: 'Copié', more: '{count} lignes de plus' },\n form: {\n submit: 'Envoyer',\n required: 'Obligatoire',\n email: 'Saisissez une adresse e-mail valide',\n number: 'Saisissez un nombre',\n },\n poweredBy: 'Propulsé par Squadico',\n handles: {\n picker: 'Agents que vous pouvez adresser',\n unknown: 'Personne ne répond à ce nom ici :',\n instead: 'Vous pouvez adresser :',\n rail: 'Agents',\n },\n selection: {\n group: 'Choix proposé',\n single: 'Sélectionnez une option.',\n multiple: 'Sélectionnez une ou plusieurs options, puis validez.',\n validate: 'Valider',\n },\n composer: {\n label: 'Votre message',\n send: 'Envoyer le message',\n sendTitle: 'Envoyer',\n stop: 'Interrompre la réponse',\n stopTitle: 'Interrompre',\n attach: 'Joindre un fichier',\n attachTitle: 'Joindre',\n remove: 'Retirer {name}',\n },\n attachments: {\n unsupported: 'Ce format de fichier ne peut pas être joint à un message.',\n tooLarge: 'Ce fichier est trop volumineux.',\n tooMany: \"Ce message porte déjà autant de fichiers qu'il le peut.\",\n unreadable: \"Ce fichier n'a pas pu être lu.\",\n failed: 'Impossible de joindre ce fichier.',\n },\n error: \"Une erreur est survenue, l'assistant n'a pas pu répondre. Réessayez dans un instant.\",\n withHuman: \"Un membre de l'équipe va vous répondre ici.\",\n}\n\nconst ES: Strings = {\n heading: 'Asistente',\n subheading: 'Squadico',\n placeholder: 'Haga su pregunta…',\n greeting: '¡Hola! Soy su asistente. ¿Qué desea hacer?',\n hint: 'El asistente propone una acción; no se aplica nada sin su confirmación.',\n assistant: 'Asistente',\n typing: 'El asistente está redactando su respuesta',\n activity: {\n knowledge: 'Buscando en la base de conocimientos…',\n skill: 'Siguiendo un procedimiento…',\n delegation: 'Consultando a un compañero…',\n tool: 'Consultando…',\n },\n newConversation: 'Nueva conversación',\n close: 'Cerrar el asistente',\n closeTitle: 'Cerrar',\n history: {\n open: 'Historial de conversaciones',\n menu: 'Conversaciones anteriores',\n loading: 'Cargando…',\n empty: 'Ninguna conversación anterior.',\n untitled: 'Conversación',\n },\n context: {\n region: 'Contexto enviado al asistente',\n },\n approval: {\n group: 'Validación de la escritura',\n approve: 'Sí, aplicar',\n reject: 'No, cancelar',\n request: 'El agente quiere usar {tool}.',\n arguments: 'Con',\n edit: 'Modificar…',\n correction: 'Lo que hay que cambiar — p. ej. «el vencimiento es el lunes»',\n correctionLabel: 'Corrección antes de validar',\n send: 'Enviar',\n },\n confirm: {\n group: 'Confirmación',\n yes: 'Sí',\n no: 'No',\n yesValue: 'sí',\n noValue: 'no',\n other: 'Proponer otra cosa',\n },\n choices: 'Opciones propuestas',\n table: { copy: 'Copiar', copied: 'Copiado', more: '{count} filas más' },\n form: {\n submit: 'Enviar',\n required: 'Obligatorio',\n email: 'Introduzca un correo electrónico válido',\n number: 'Introduzca un número',\n },\n poweredBy: 'Con la tecnología de Squadico',\n handles: {\n picker: 'Agentes a los que puedes dirigirte',\n unknown: 'Nadie responde a ese nombre aquí:',\n instead: 'Puedes dirigirte a:',\n rail: 'Agentes',\n },\n selection: {\n group: 'Opción propuesta',\n single: 'Seleccione una opción.',\n multiple: 'Seleccione una o varias opciones y valide.',\n validate: 'Validar',\n },\n composer: {\n label: 'Su mensaje',\n send: 'Enviar el mensaje',\n sendTitle: 'Enviar',\n stop: 'Interrumpir la respuesta',\n stopTitle: 'Interrumpir',\n attach: 'Adjuntar un archivo',\n attachTitle: 'Adjuntar',\n remove: 'Quitar {name}',\n },\n attachments: {\n unsupported: 'Este tipo de archivo no se puede adjuntar a un mensaje.',\n tooLarge: 'Este archivo es demasiado grande.',\n tooMany: 'Este mensaje ya lleva todos los archivos que puede llevar.',\n unreadable: 'No se ha podido leer este archivo.',\n failed: 'No se ha podido adjuntar este archivo.',\n },\n error: 'Se ha producido un error, el asistente no ha podido responder. Inténtelo de nuevo.',\n withHuman: 'Un miembro del equipo le responderá aquí.',\n}\n\nconst BUNDLES: Record<LanguageCode, Strings> = { en: EN, fr: FR, es: ES }\n\n/** Default `Intl` tag per language, used when the host named a language only. */\nconst TAGS: Record<LanguageCode, string> = { en: 'en-GB', fr: 'fr-FR', es: 'es-ES' }\n\n/** A resolved locale: the copy to render, and the tag to format dates with. */\nexport interface Locale {\n code: LanguageCode\n /** BCP-47 tag handed to `Intl` — the host's own when it gave one. */\n tag: string\n t: Strings\n}\n\n/** The bundle a tag names, or `undefined` when the language is not shipped. */\nfunction supported(locale: string | undefined): LanguageCode | undefined {\n const primary = locale?.trim().toLowerCase().split(/[-_]/)[0]\n return primary && primary in BUNDLES ? (primary as LanguageCode) : undefined\n}\n\nexport function resolveLanguage(locale: string | undefined): LanguageCode {\n return supported(locale) ?? DEFAULT_LANGUAGE\n}\n\n/**\n * Languages the browser announces, most preferred first.\n *\n * `navigator.languages` is the ordered list of the user's own preferences —\n * `navigator.language` alone is only its first entry, so a user whose Chrome is\n * in English but who also reads Spanish would never reach the Spanish bundle\n * through it. Absent server-side (SSR of a host importing the package), where\n * there is no user to have preferences.\n */\nfunction browserLocales(): readonly string[] {\n if (typeof navigator === 'undefined') return []\n return navigator.languages?.length ? navigator.languages : [navigator.language]\n}\n\n/**\n * Locale to render with.\n *\n * `locale` is what the host declared (attribute or prop) and it is a decision:\n * a regioned tag of a supported language keeps its region for `Intl` (`fr-CA`),\n * a bare language takes the bundle's own tag, and an unsupported one falls back\n * to `DEFAULT_LANGUAGE` — copy *and* tag, since English copy dated in Portuguese\n * would read as a bug rather than as a fallback. The browser is not consulted\n * then: a host naming a language has its reasons (the user's own account\n * setting, most likely), and the browser would silently overrule them.\n *\n * Declaring nothing is the case this exists for: the user's browser languages\n * are read in their own order, and the first one the widget speaks wins — a\n * Spanish-speaking user gets a Spanish panel without their front having to know\n * the widget ships Spanish at all. None supported, or no browser to ask:\n * `DEFAULT_LANGUAGE`.\n */\nexport function resolveLocale(locale: string | undefined): Locale {\n const declared = locale?.trim()\n const candidates = declared ? [declared] : browserLocales()\n const tag = candidates.find(supported)\n const code = supported(tag) ?? DEFAULT_LANGUAGE\n return { code, tag: tag?.includes('-') ? tag : TAGS[code], t: BUNDLES[code] }\n}\n","import{options as r,Fragment as e}from\"preact\";export{Fragment}from\"preact\";var t=/[\"&<]/;function n(r){if(0===r.length||!1===t.test(r))return r;for(var e=0,n=0,o=\"\",f=\"\";n<r.length;n++){switch(r.charCodeAt(n)){case 34:f=\""\";break;case 38:f=\"&\";break;case 60:f=\"<\";break;default:continue}n!==e&&(o+=r.slice(e,n)),o+=f,e=n+1}return n!==e&&(o+=r.slice(e,n)),o}var o=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,f=0,i=Array.isArray;function u(e,t,n,o,i,u){t||(t={});var a,c,p=t;if(\"ref\"in p)for(c in p={},t)\"ref\"==c?a=t[c]:p[c]=t[c];var l={type:e,props:p,key:n,ref:a,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--f,__i:-1,__u:0,__source:i,__self:u};if(\"function\"==typeof e&&(a=e.defaultProps))for(c in a)void 0===p[c]&&(p[c]=a[c]);return r.vnode&&r.vnode(l),l}function a(r){var t=u(e,{tpl:r,exprs:[].slice.call(arguments,1)});return t.key=t.__v,t}var c={},p=/[A-Z]/g;function l(e,t){if(r.attr){var f=r.attr(e,t);if(\"string\"==typeof f)return f}if(t=function(r){return null!==r&&\"object\"==typeof r&&\"function\"==typeof r.valueOf?r.valueOf():r}(t),\"ref\"===e||\"key\"===e)return\"\";if(\"style\"===e&&\"object\"==typeof t){var i=\"\";for(var u in t){var a=t[u];if(null!=a&&\"\"!==a){var l=\"-\"==u[0]?u:c[u]||(c[u]=u.replace(p,\"-$&\").toLowerCase()),s=\";\";\"number\"!=typeof a||l.startsWith(\"--\")||o.test(l)||(s=\"px;\"),i=i+l+\":\"+a+s}}return e+'=\"'+n(i)+'\"'}return null==t||!1===t||\"function\"==typeof t||\"object\"==typeof t?\"\":!0===t?e:e+'=\"'+n(\"\"+t)+'\"'}function s(r){if(null==r||\"boolean\"==typeof r||\"function\"==typeof r)return null;if(\"object\"==typeof r){if(void 0===r.constructor)return r;if(i(r)){for(var e=0;e<r.length;e++)r[e]=s(r[e]);return r}}return n(\"\"+r)}export{u as jsx,l as jsxAttr,u as jsxDEV,s as jsxEscape,a as jsxTemplate,u as jsxs};\n//# sourceMappingURL=jsxRuntime.module.js.map\n","/**\n * Runtime shared by every widget element (`<sqc-table>`, `<sqc-choices>`…).\n *\n * An element is a Preact component in a shadow root, driven by properties and\n * answering through one DOM event, so the chat widget and any other host (the\n * console) use it the same way and know nothing of what is inside.\n *\n * The class is built when `createWidgetElement` is called — from\n * `defineChatWidgets()`, never at module level — because `class X extends\n * HTMLElement` throws on a server-side import.\n */\nimport { h, render, type FunctionComponent } from 'preact'\nimport type { LanguageCode } from '../lib/i18n'\n\nexport interface WidgetBase {\n /** An answered or superseded widget: shown, no longer interactive. */\n locked: boolean\n language: LanguageCode\n /** Sends text back as the visitor's answer, and locks the widget. */\n reply: (text: string) => void\n}\n\n/** One `CSSStyleSheet` per stylesheet text, shared by every instance; `null` where unsupported. */\nconst sheets = new Map<string, CSSStyleSheet | null>()\n\nfunction sharedSheet(css: string): CSSStyleSheet | null {\n if (sheets.has(css)) return sheets.get(css) ?? null\n let sheet: CSSStyleSheet | null\n try {\n sheet = new CSSStyleSheet()\n sheet.replaceSync(css)\n } catch {\n sheet = null\n }\n sheets.set(css, sheet)\n return sheet\n}\n\n/**\n * `css` is passed in rather than imported, so a bundle holding only some of\n * the elements (the extras, loaded on first use) carries only their styles.\n */\nexport function createWidgetElement<P>(\n Component: FunctionComponent<P & WidgetBase>,\n props: (keyof P)[],\n css: string,\n): CustomElementConstructor {\n const names = [...props, 'locked', 'language'] as string[]\n\n class WidgetElement extends HTMLElement {\n #values: Record<string, unknown> = { locked: false, language: 'en' }\n #mount: HTMLElement\n #connected = false\n\n constructor() {\n super()\n const shadow = this.attachShadow({ mode: 'open' })\n const adoptable = sharedSheet(css)\n if (adoptable) {\n shadow.adoptedStyleSheets = [adoptable]\n } else {\n const style = document.createElement('style')\n style.textContent = css\n shadow.append(style)\n }\n this.#mount = document.createElement('div')\n shadow.append(this.#mount)\n\n // A value written before the upgrade shadows the accessor: hand it back.\n for (const name of names) {\n if (!Object.hasOwn(this, name)) continue\n const value = (this as Record<string, unknown>)[name]\n delete (this as Record<string, unknown>)[name]\n ;(this as Record<string, unknown>)[name] = value\n }\n }\n\n connectedCallback(): void {\n this.#connected = true\n this.#render()\n }\n\n disconnectedCallback(): void {\n this.#connected = false\n render(null, this.#mount)\n }\n\n set(name: string, value: unknown): void {\n this.#values[name] = value\n this.#render()\n }\n\n get(name: string): unknown {\n return this.#values[name]\n }\n\n #reply = (text: string): void => {\n if (this.#values.locked) return\n this.set('locked', true)\n this.dispatchEvent(\n new CustomEvent('sqc-reply', { detail: { text }, bubbles: true, composed: true }),\n )\n }\n\n #render(): void {\n if (!this.#connected) return\n render(h(Component, { ...this.#values, reply: this.#reply } as P & WidgetBase), this.#mount)\n }\n }\n\n for (const name of names) {\n Object.defineProperty(WidgetElement.prototype, name, {\n get(this: WidgetElement) {\n return this.get(name)\n },\n set(this: WidgetElement, value: unknown) {\n this.set(name, value)\n },\n configurable: true,\n })\n }\n\n return WidgetElement\n}\n","/** Tag names of the widget elements, in a module of their own so either bundle can name them. */\nexport const WIDGET_TAGS = {\n table: 'sqc-table',\n choices: 'sqc-choices',\n confirm: 'sqc-confirm',\n form: 'sqc-form',\n chart: 'sqc-chart',\n approval: 'sqc-approval',\n} as const\n","import { resolveLocale, type LanguageCode, type Strings } from '../lib/i18n'\n\n/** The copy of a language, for an element that is only told its code. */\nexport function strings(language: LanguageCode): Strings {\n return resolveLocale(language).t\n}\n","/**\n * Inline Markdown shared by the answer text and the widget elements: emphasis,\n * code, links. Everything is produced as Preact nodes, hence escaped by\n * construction; a link is only rendered when its href is navigable.\n */\nimport type { JSX } from 'preact'\n\nexport type Inline = JSX.Element | string\n\n/**\n * Emphasis, code, Markdown links and bare URLs. Deliberately without `_`/`__`:\n * domain identifiers (`order_id`, `record_ref`, `item_1`) would be turned into\n * italics at the first pair.\n */\nconst INLINE =\n /(\\*\\*[^*\\n]+\\*\\*|`[^`\\n]+`|~~[^~\\n]+~~|\\[[^\\]\\n]+\\]\\([^)\\s]+\\)|\\*[^*\\n]+\\*|https?:\\/\\/[^\\s<>()]+)/g\n\nconst MD_LINK = /^\\[([^\\]\\n]+)\\]\\(([^)\\s]+)\\)$/\n/**\n * An href is only rendered when it is navigable: no `javascript:`, no `data:`.\n * A path (`/agents`) is the site the chat sits on; `//host` is not a path.\n */\nconst SAFE_HREF = /^(https?:|mailto:|\\/(?!\\/))/i\n\n/** Whether `href` stays on the site the chat sits on. */\nfunction onThisSite(href: string): boolean {\n if (typeof location === 'undefined') return false\n try {\n return new URL(href, location.href).origin === location.origin\n } catch {\n return false\n }\n}\n\nfunction link(href: string, label: string, key: string): Inline {\n if (!SAFE_HREF.test(href)) return label\n // A link of the site itself opens in place, like any of its own links; only a\n // link leaving it opens a new tab, without handing it the page.\n if (onThisSite(href)) {\n return (\n <a key={key} href={href}>\n {label}\n </a>\n )\n }\n return (\n <a key={key} href={href} target=\"_blank\" rel=\"noopener noreferrer\">\n {label}\n </a>\n )\n}\n\nexport function inline(text: string, keyPrefix: string): Inline[] {\n const parts = text.split(INLINE)\n const nodes: Inline[] = []\n\n parts.forEach((part, index) => {\n if (!part) return\n const key = `${keyPrefix}-${index}`\n const mdLink = MD_LINK.exec(part)\n\n if (part.startsWith('**') && part.endsWith('**') && part.length > 4) {\n nodes.push(<strong key={key}>{part.slice(2, -2)}</strong>)\n } else if (part.startsWith('`') && part.endsWith('`') && part.length > 2) {\n nodes.push(<code key={key}>{part.slice(1, -1)}</code>)\n } else if (part.startsWith('~~') && part.endsWith('~~') && part.length > 4) {\n nodes.push(<del key={key}>{part.slice(2, -2)}</del>)\n } else if (mdLink) {\n nodes.push(link(mdLink[2], mdLink[1], key))\n } else if (part.startsWith('*') && part.endsWith('*') && part.length > 2) {\n nodes.push(<em key={key}>{part.slice(1, -1)}</em>)\n } else if (/^https?:\\/\\//.test(part)) {\n nodes.push(link(part, part, key))\n } else {\n nodes.push(part)\n }\n })\n\n return nodes\n}\n\n/** Text without markup: what the agent must receive when an option is clicked. */\nexport function plain(text: string): string {\n return text\n .replace(/\\[([^\\]\\n]+)\\]\\([^)\\s]+\\)/g, '$1')\n .replace(/\\*\\*|~~|`|\\*/g, '')\n .trim()\n}\n","import type { JSX } from 'preact'\nimport { useState } from 'preact/hooks'\nimport type { WidgetBase } from '../element'\nimport { strings } from '../i18n'\nimport { inline, plain } from '../inline'\n\ninterface ChoicesProps {\n options: string[]\n multiple?: boolean\n /** Options pre-ticked by the Markdown (`- (x) …`, `- [x] …`). */\n checked?: string[]\n}\n\nfunction CheckIcon(): JSX.Element {\n return (\n <svg viewBox=\"0 0 16 16\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2.2\" aria-hidden=\"true\">\n <path d=\"M3.5 8.5l3 3 6-7\" stroke-linecap=\"round\" stroke-linejoin=\"round\" />\n </svg>\n )\n}\n\n/**\n * Options offered by the assistant. Single, drawn with round marks: one click\n * answers with the label.\n * Multiple: tick any, then one button sends the labels comma-joined. The label\n * sent is stripped of its markup — the agent matches candidates by name.\n */\nexport function SqcChoices({\n options = [],\n multiple,\n checked,\n locked,\n language,\n reply,\n}: ChoicesProps & WidgetBase): JSX.Element {\n const t = strings(language)\n const labels = options.map(plain)\n const [ticked, setTicked] = useState<number[] | null>(null)\n // The Markdown ticks only hold until the visitor has decided, and only on options offered;\n // a single choice keeps the first.\n const preset = options.flatMap((option, index) => (checked?.includes(option) ? [index] : []))\n const on = ticked ?? (multiple ? preset : preset.slice(0, 1))\n\n const pick = (index: number): void => {\n if (locked) return\n if (!multiple) {\n setTicked([index])\n reply(labels[index])\n return\n }\n setTicked(on.includes(index) ? on.filter((i) => i !== index) : [...on, index])\n }\n\n return (\n <div class=\"choices\" role=\"group\" aria-label={t.choices}>\n {options.map((option, index) => (\n <button\n key={`${index}-${labels[index]}`}\n type=\"button\"\n class=\"choice\"\n aria-pressed={on.includes(index)}\n disabled={locked}\n onClick={() => pick(index)}\n >\n <span class={`box${on.includes(index) ? ' on' : ''}`} aria-hidden=\"true\">\n {on.includes(index) && <CheckIcon />}\n </span>\n <span class=\"label\">{inline(option, `o${index}`)}</span>\n </button>\n ))}\n {multiple && (\n <button\n type=\"button\"\n class=\"send\"\n disabled={locked || on.length === 0}\n onClick={() => {\n setTicked(on)\n reply(\n [...on]\n .sort((a, b) => a - b)\n .map((i) => labels[i])\n .join(', '),\n )\n }}\n >\n {t.selection.validate}\n </button>\n )}\n </div>\n )\n}\n","import type { JSX } from 'preact'\nimport { useState } from 'preact/hooks'\nimport { strings } from '../i18n'\nimport type { WidgetBase } from '../element'\n\n/**\n * Yes / No under a closed question. A bare \"yes\" is recognised agent-side\n * without a model call, so the word sent is the one of the visitor's language.\n *\n * The third button sends nothing: it asks the host, through `sqc-compose`, to\n * hand the visitor the composer. The widget stays live until their message\n * arrives — they may still change their mind and click Yes.\n */\nexport function SqcConfirm({ locked, language, reply }: WidgetBase): JSX.Element {\n const [picked, setPicked] = useState<string | null>(null)\n const { confirm } = strings(language)\n const answers = [\n { value: confirm.yesValue, label: confirm.yes, kind: 'yes' },\n { value: confirm.noValue, label: confirm.no, kind: 'no' },\n ]\n\n return (\n <div class=\"confirm\" role=\"group\" aria-label={confirm.group}>\n {answers.map((answer) => (\n <button\n key={answer.kind}\n type=\"button\"\n class={answer.kind}\n aria-pressed={picked === answer.value}\n disabled={locked}\n onClick={() => {\n setPicked(answer.value)\n reply(answer.value)\n }}\n >\n {answer.label}\n </button>\n ))}\n <button\n type=\"button\"\n class=\"other\"\n disabled={locked}\n onClick={(event) =>\n event.currentTarget.dispatchEvent(\n new CustomEvent('sqc-compose', { bubbles: true, composed: true }),\n )\n }\n >\n {confirm.other}\n </button>\n </div>\n )\n}\n","import type { JSX } from 'preact'\nimport { useMemo, useState } from 'preact/hooks'\nimport type { WidgetBase } from '../element'\nimport { strings } from '../i18n'\nimport { inline, plain } from '../inline'\n\nconst MAX_ROWS = 200\n\ninterface TableProps {\n table: { header: string[]; rows: string[][] }\n}\n\nconst collator = new Intl.Collator(undefined, { numeric: true, sensitivity: 'base' })\n\n/** A cell as copied: markup and line breaks gone, so a row stays one line. */\nconst flat = (cell: string | undefined): string => plain(cell ?? '').replace(/[\\t\\r\\n]+/g, ' ')\n\n/**\n * A record listing: click a header to sort (numbers by value), at most 200\n * rows drawn, the whole table copied as TSV. Cells are inline Markdown turned\n * into nodes, never HTML.\n */\nexport function SqcTable({ table, language }: TableProps & WidgetBase): JSX.Element {\n const t = strings(language)\n const { header = [], rows = [] } = table ?? {}\n const [sort, setSort] = useState<{ column: number; descending: boolean } | null>(null)\n const [copied, setCopied] = useState(false)\n\n const ordered = useMemo(() => {\n if (!sort) return rows\n const sign = sort.descending ? -1 : 1\n return [...rows].sort(\n (a, b) => sign * collator.compare(flat(a[sort.column]), flat(b[sort.column])),\n )\n }, [rows, sort])\n\n const copy = (): void => {\n const lines = [header, ...ordered].map((row) =>\n header.map((_, column) => flat(row[column])).join('\\t'),\n )\n // Said only once the clipboard took it, and for a moment: a refusal says nothing.\n navigator.clipboard?.writeText(lines.join('\\n')).then(\n () => {\n setCopied(true)\n setTimeout(() => setCopied(false), 2000)\n },\n () => undefined,\n )\n }\n\n const hidden = ordered.length - MAX_ROWS\n\n return (\n <div>\n <div class=\"table\">\n <table>\n <thead>\n <tr>\n {header.map((cell, column) => (\n <th\n key={column}\n aria-sort={\n sort?.column === column ? (sort.descending ? 'descending' : 'ascending') : 'none'\n }\n >\n <button\n type=\"button\"\n onClick={() =>\n setSort({\n column,\n descending: sort?.column === column && !sort.descending,\n })\n }\n >\n {inline(cell, `h${column}`)}\n </button>\n </th>\n ))}\n </tr>\n </thead>\n <tbody>\n {ordered.slice(0, MAX_ROWS).map((row, index) => (\n <tr key={index}>\n {header.map((_, column) => (\n <td key={column}>{inline(row[column] ?? '', `r${index}c${column}`)}</td>\n ))}\n </tr>\n ))}\n </tbody>\n </table>\n </div>\n <div class=\"foot\">\n {hidden > 0 && <span>{t.table.more.replace('{count}', String(hidden))}</span>}\n <button type=\"button\" class=\"copy\" onClick={copy}>\n {copied ? t.table.copied : t.table.copy}\n </button>\n </div>\n </div>\n )\n}\n",".choices {\n display: flex;\n flex-direction: column;\n gap: 7px;\n margin: 10px 0 2px;\n}\n\n.choice {\n display: flex;\n align-items: center;\n gap: 8px;\n width: 100%;\n padding: 8px 11px;\n font-size: 12.5px;\n text-align: left;\n color: var(--w-text);\n background: var(--w-bg);\n border: 1px solid var(--w-border);\n border-radius: 12px;\n cursor: pointer;\n}\n\n.choice:hover:not(:disabled) {\n border-color: var(--w-border-strong);\n background: var(--w-surface);\n}\n\n.choice:disabled {\n cursor: default;\n}\n\n.choice:disabled[aria-pressed='false'] {\n opacity: 0.55;\n}\n\n.choice[aria-pressed='true'] {\n border-color: var(--w-border-strong);\n background: var(--w-selected);\n}\n\n.box {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n flex: 0 0 auto;\n width: 15px;\n height: 15px;\n border: 1.5px solid var(--w-border-strong);\n border-radius: 4px;\n}\n\n/* A single choice has no Send button: its marks are round, like radios. */\n.choices:not(:has(.send)) .box {\n border-radius: 50%;\n}\n\n.box.on {\n color: var(--w-on-accent);\n background: var(--w-accent);\n border-color: var(--w-accent);\n}\n\n.box svg {\n width: 11px;\n height: 11px;\n}\n\n.label {\n overflow-wrap: anywhere;\n}\n\n.send {\n align-self: flex-end;\n height: 32px;\n padding: 0 14px;\n font-size: 13px;\n font-weight: 600;\n border: 0;\n border-radius: 12px;\n background: var(--w-accent);\n color: var(--w-on-accent);\n cursor: pointer;\n}\n\n.send:disabled {\n opacity: 0.4;\n cursor: default;\n}\n",".confirm {\n display: flex;\n flex-wrap: wrap;\n gap: 8px;\n margin: 11px 0 2px;\n}\n\n.confirm button {\n flex: 1 1 0;\n height: 32px;\n padding: 0 12px;\n font-size: 13px;\n font-weight: 500;\n border-radius: 12px;\n border: 1px solid var(--w-border);\n background: var(--w-bg);\n color: var(--w-text);\n cursor: pointer;\n}\n\n.confirm .other {\n flex-basis: 100%;\n}\n\n.confirm .yes:not(:disabled) {\n border-color: transparent;\n background: var(--w-accent);\n color: var(--w-on-accent);\n font-weight: 600;\n}\n\n.confirm button:hover:not(:disabled) {\n border-color: var(--w-border-strong);\n background: var(--w-surface);\n}\n\n.confirm .yes:hover:not(:disabled) {\n border-color: transparent;\n background: var(--w-accent-hover);\n}\n\n.confirm button:disabled {\n cursor: default;\n}\n\n.confirm button:disabled:not([aria-pressed='true']) {\n opacity: 0.45;\n}\n\n.confirm button[aria-pressed='true'] {\n border-color: var(--w-border-strong);\n background: var(--w-selected);\n color: var(--w-text);\n font-weight: 600;\n}\n",".table {\n margin: 0 0 8px;\n overflow-x: auto;\n scrollbar-width: thin;\n}\n\ntable {\n min-width: 100%;\n border-collapse: collapse;\n font-size: 12.5px;\n white-space: nowrap;\n}\n\nth,\ntd {\n padding: 6px 10px 6px 0;\n text-align: left;\n vertical-align: top;\n border-bottom: 1px solid color-mix(in srgb, currentColor 18%, transparent);\n}\n\nthead th {\n font-size: 10.5px;\n font-weight: 600;\n text-transform: uppercase;\n letter-spacing: 0.05em;\n}\n\nthead button {\n padding: 0;\n font: inherit;\n text-transform: inherit;\n letter-spacing: inherit;\n background: none;\n border: 0;\n opacity: 0.7;\n cursor: pointer;\n}\n\nthead button:hover {\n opacity: 1;\n}\n\ntbody tr:last-child td {\n border-bottom: 0;\n}\n\n.foot {\n display: flex;\n align-items: center;\n gap: 10px;\n font-size: 11.5px;\n opacity: 0.8;\n}\n\n.copy {\n padding: 2px 8px;\n font-size: 11.5px;\n background: none;\n border: 1px solid var(--w-border);\n border-radius: 8px;\n cursor: pointer;\n}\n","/*\n * Defaults every widget element draws with.\n *\n * Under the chat widget the `--sqc-*` roles are inherited through the shadow\n * boundary from the panel, so they win; anywhere else (the console) the\n * fallbacks apply. Internal `--w-*` aliases carry the resolved value: declaring\n * `--sqc-*` on :host itself would hide the inherited ones.\n */\n:host {\n display: block;\n --w-bg: var(--sqc-bg, #fff);\n --w-surface: var(--sqc-surface, #f8fafc);\n --w-selected: var(--sqc-selected, #f1f5f9);\n --w-border: var(--sqc-border, #e2e8f0);\n --w-border-strong: var(--sqc-border-strong, #cbd5e1);\n --w-text: var(--sqc-text, #0f172a);\n --w-muted: var(--sqc-text-muted, #64748b);\n --w-accent: var(--sqc-accent-color, var(--sqc-accent, #000));\n --w-on-accent: var(--sqc-on-accent, #fff);\n --w-accent-hover: var(\n --sqc-accent-hover,\n color-mix(in oklab, var(--w-accent) 84%, var(--w-on-accent))\n );\n --w-focus: var(--sqc-focus, 0 0 0 2px #fff, 0 0 0 4px rgb(15 23 42 / 30%));\n --w-font: var(--sqc-font-family, system-ui, sans-serif);\n font-family: var(--w-font);\n}\n\n:host([hidden]) {\n display: none;\n}\n\nbutton {\n font-family: inherit;\n color: inherit;\n}\n\nbutton:focus-visible {\n outline: none;\n box-shadow: var(--w-focus);\n}\n","import choices from './choices/choices.css?inline'\nimport confirm from './confirm/confirm.css?inline'\nimport table from './table/table.css?inline'\nimport theme from './theme.css?inline'\n\n/** One stylesheet for every widget element: theme first, then each component's. */\nexport const WIDGET_CSS = [theme, table, choices, confirm].join('\\n')\n","import { createWidgetElement } from './element'\nimport { WIDGET_TAGS } from './names'\nimport { SqcChoices } from './choices/SqcChoices'\nimport { SqcConfirm } from './confirm/SqcConfirm'\nimport { SqcTable } from './table/SqcTable'\nimport { WIDGET_CSS } from './styles'\n\nexport { WIDGET_TAGS } from './names'\n\n/**\n * Registers the widget elements every answer may hold. Idempotent; does nothing\n * where there is no DOM. The heavier, rarer ones (form, chart, approval) live\n * in `./extras`.\n */\nexport function defineChatWidgets(): void {\n if (typeof customElements === 'undefined') return\n\n const elements: [string, () => CustomElementConstructor][] = [\n [WIDGET_TAGS.table, () => createWidgetElement(SqcTable, ['table'], WIDGET_CSS)],\n [\n WIDGET_TAGS.choices,\n () => createWidgetElement(SqcChoices, ['options', 'multiple', 'checked'], WIDGET_CSS),\n ],\n [WIDGET_TAGS.confirm, () => createWidgetElement(SqcConfirm, [], WIDGET_CSS)],\n ]\n for (const [tag, build] of elements) {\n if (!customElements.get(tag)) customElements.define(tag, build())\n }\n}\n","/** The qualification the toolbox adds so two servers may both offer `search`:\n * `mcp_`, `custom_` or `a2a_`, then eight hex characters of an id. Ours, and\n * meaningless to a visitor. */\nconst QUALIFIED_TOOL_NAME = /^(?:mcp|custom|a2a)_[0-9a-f]{8}_/\n\n/** A name a person can read: `pull_request_read` becomes \"Pull request read\". */\nexport function readable(name: string): string {\n const words = name\n .replace(QUALIFIED_TOOL_NAME, '')\n .replace(/([a-z0-9])([A-Z])/g, '$1 $2')\n .replace(/[_-]+/g, ' ')\n .trim()\n .toLowerCase()\n if (!words) return name\n return words.charAt(0).toUpperCase() + words.slice(1)\n}\n","/**\n * Loads the extra widget elements (`./extras`) the first time an answer needs\n * one. A failure never reaches rendering — the element shows its light-DOM\n * fallback — and is tried again by the next block that needs the extras.\n *\n * The standalone bundle is an IIFE, where Vite inlines `import()`: there the\n * extras are a second file, fetched from beside the main script.\n */\nconst EXTRAS_FILE = 'chatbot-widgets.global.js'\n\n/**\n * URL and CSP nonce of the running script. `currentScript` only holds while a\n * classic script evaluates: null in a module script, where nothing is captured.\n */\nexport function captureScript(): { src: string; nonce: string } {\n const script = document.currentScript as HTMLScriptElement | null\n return { src: script?.src ?? '', nonce: script?.nonce ?? '' }\n}\n\nconst running =\n __SQC_STANDALONE__ && typeof document !== 'undefined' ? captureScript() : { src: '', nonce: '' }\n\n/**\n * Where the extras file sits for a main script at `src`: beside it, or in\n * `dist/` under a short CDN URL (`…/@squadico/chatbot@1.5.1`), where jsDelivr\n * and unpkg serve the main file named by the package's `jsdelivr` / `unpkg`\n * fields.\n */\nexport function extrasUrl(src: string): string {\n const url = new URL(src)\n return url.pathname.endsWith('.js')\n ? new URL(EXTRAS_FILE, url).href\n : new URL(`dist/${EXTRAS_FILE}`, url.href.replace(/\\/?$/, '/')).href\n}\n\n/** Appends a `<script>` for the extras file of the main script at `src`. */\nexport function injectScript(src: string, nonce = ''): Promise<void> {\n return new Promise((resolve, reject) => {\n if (!src) {\n reject(new Error('Squadico chatbot: cannot locate its own script to load the widget extras.'))\n return\n }\n const script = document.createElement('script')\n script.src = extrasUrl(src)\n if (nonce) script.nonce = nonce\n script.async = true\n script.onload = () => resolve()\n script.onerror = () => {\n script.remove()\n reject(new Error(`Squadico chatbot: failed to load ${script.src}.`))\n }\n document.head.append(script)\n })\n}\n\n/** Runs `load` once it has succeeded; a failure is logged and forgotten, so the next call tries again. */\nexport function retrying(load: () => Promise<void>): () => Promise<void> {\n let loading: Promise<void> | undefined\n return () =>\n (loading ??= load().catch((error: unknown) => {\n loading = undefined\n console.warn(error instanceof Error ? error.message : error)\n }))\n}\n\nexport const loadWidgetExtras = retrying(() =>\n __SQC_STANDALONE__\n ? injectScript(running.src, running.nonce)\n : import('./extras').then(({ defineWidgetExtras }) => defineWidgetExtras()),\n)\n","/**\n * Whether a message's widgets still await an answer.\n *\n * Only the last message, written by the assistant and finished, is waited on:\n * anything followed by another message has been answered (or abandoned), which\n * is what a reloaded transcript must show — locked, not live again.\n */\nexport function isLive(\n index: number,\n messages: readonly { role: string; streaming?: boolean }[],\n): boolean {\n const message = messages[index]\n return (\n index === messages.length - 1 && message?.role === 'assistant' && !message.streaming\n )\n}\n","/**\n * Detection of the assistant's closed questions, so \"Yes\" / \"No\" can be offered\n * instead of making the user retype the answer.\n *\n * The `Chat display` skill (apps/backend/app/agents/display_skill.py) has the\n * agent mark such a question explicitly: its last line ends with `(yes/no)`,\n * `(oui/non)` or `(sí/no)`, a marker hidden once the buttons are drawn.\n *\n * An agent without the skill writes no marker, so the phrasings agents actually\n * produce are recognised too, as a fallback. That list is deliberately narrow:\n * an open question (\"Which records would you like to see?\") must not bring up\n * buttons. It is keyed by language, the widget's locale picking the set — a\n * single English set would leave a French-speaking host without buttons.\n */\nimport { DEFAULT_LANGUAGE, type LanguageCode } from '../../lib/i18n'\n\n/** \"Reply YES to confirm\": an answer instruction, not a question. */\nconst ANSWER_HINT: Record<LanguageCode, RegExp> = {\n fr: /\\br[ée]ponde?z? +«?\\s*oui\\b/i,\n en: /\\b(?:reply|answer|respond) +[“\"']?\\s*yes\\b/i,\n // `\\b` is ASCII-only: after « í » it never holds, hence the Unicode lookahead.\n es: /\\bresponda?e?d? +«?\\s*s[íi](?!\\p{L})/iu,\n}\n\nconst PATTERNS: Record<LanguageCode, RegExp[]> = {\n fr: [\n /\\b(?:confirmes?[- ]tu|confirmez[- ]vous)\\b/i,\n /\\b(?:valides?[- ]tu|validez[- ]vous)\\b/i,\n /(?<!\\p{L})(?:es[- ]tu s[ûu]re?|[êe]tes[- ]vous s[ûu]re?s?)(?!\\p{L})/iu,\n /\\b(?:dois[- ]je|puis[- ]je)\\b/i,\n /\\b(?:je continue|on continue|on y va|je lance)\\b/i,\n ANSWER_HINT.fr,\n ],\n en: [\n /\\bdo you confirm\\b/i,\n /\\bdo you (?:want|wish) me to\\b/i,\n /\\b(?:shall|should) I\\b/i,\n /\\bare you sure\\b/i,\n /\\b(?:shall we|should I) (?:proceed|continue|go ahead)\\b/i,\n ANSWER_HINT.en,\n ],\n es: [\n /\\b(?:confirmas|confirma|confirm[áa]is)\\b/i,\n /\\b(?:validas|valida|valid[áa]is)\\b/i,\n /\\best[áa]s? seguro\\b/i,\n /\\b(?:contin[úu]o|procedo|lo lanzo|lo hago)\\b/i,\n /\\bquieres? que\\b/i,\n ANSWER_HINT.es,\n ],\n}\n\n/** Tickable options already carry their own buttons. */\nconst CHECKBOX = /^\\s*(?:[-*•]\\s+)?(?:\\[[ xX]\\]|\\([ xX]\\))\\s+/m\n\n/** The explicit marker closing the answer, in any of the supported languages. */\nconst MARKER = /[ \\t]*\\(\\s*(?:yes|oui|s[íi])\\s*\\/\\s*non?\\s*\\)\\s*$/i\n\n/** The answer without its closing yes/no marker. */\nexport function unmark(text: string): string {\n return text.replace(MARKER, '')\n}\n\nexport function isConfirmationPrompt(\n text: string,\n language: LanguageCode = DEFAULT_LANGUAGE,\n): boolean {\n if (CHECKBOX.test(text)) return false\n\n const lines = text\n .split('\\n')\n .map((line) => line.trim())\n .filter(Boolean)\n const last = lines[lines.length - 1]\n if (!last) return false\n if (MARKER.test(last)) return true\n // A closed question ends with \"?\" — except when the answer instruction takes\n // up the last line (\"Reply YES to confirm.\").\n if (!last.includes('?') && !ANSWER_HINT[language].test(last)) return false\n\n return PATTERNS[language].some((pattern) => pattern.test(last))\n}\n","import type { FieldType, FormField, FormSpec } from '../types'\n\nexport const MAX_OPTIONS = 20\nexport const MAX_FIELDS = 12\n\nconst FIELD_TYPES: readonly FieldType[] = ['text', 'number', 'date', 'email', 'select']\n\nfunction parse(json: string): unknown {\n try {\n return JSON.parse(json)\n } catch {\n return null\n }\n}\n\nfunction isRecord(value: unknown): value is Record<string, unknown> {\n return typeof value === 'object' && value !== null && !Array.isArray(value)\n}\n\nfunction readOptions(value: unknown): string[] | null {\n if (!Array.isArray(value) || value.length === 0 || value.length > MAX_OPTIONS) return null\n if (!value.every((option) => typeof option === 'string' && option.trim())) return null\n return value as string[]\n}\n\nfunction readField(value: unknown): FormField | null {\n if (!isRecord(value)) return null\n const { name, label, type } = value\n if (typeof name !== 'string' || !name.trim()) return null\n if (typeof label !== 'string' || !label.trim()) return null\n if (typeof type !== 'string' || !FIELD_TYPES.includes(type as FieldType)) return null\n\n const field: FormField = {\n name,\n label,\n type: type as FieldType,\n required: value.required === true,\n }\n if (type === 'select') {\n const options = readOptions(value.options)\n if (!options) return null\n field.options = options\n }\n return field\n}\n\n/** A `form` fence body, or `null` when it is not valid or exceeds the limits. */\nexport function readForm(json: string): FormSpec | null {\n const data = parse(json)\n if (!isRecord(data) || !Array.isArray(data.fields)) return null\n if (data.fields.length === 0 || data.fields.length > MAX_FIELDS) return null\n\n const fields: FormField[] = []\n for (const raw of data.fields) {\n const field = readField(raw)\n if (!field || fields.some((other) => other.name === field.name)) return null\n fields.push(field)\n }\n\n const form: FormSpec = { fields }\n if (typeof data.title === 'string') form.title = data.title\n if (typeof data.submit === 'string') form.submit = data.submit\n return form\n}\n","import type { LanguageCode } from '../../lib/i18n'\nimport type { ParsedAnswer, WidgetBlock } from '../types'\nimport { isConfirmationPrompt, unmark } from './confirm'\nimport { MAX_OPTIONS, readForm } from './form'\n\n/**\n * One option, with or without a bullet: `- ( ) Name` offers a single choice,\n * `- [ ] Name` one of several; `x` inside pre-ticks it. `( ) Name` without the\n * bullet is accepted too, so this does not depend on the exact template.\n */\nconst CHOICE = /^\\s*(?:[-*•]\\s+)?(?:\\[([ xX])\\]|\\(([ xX])\\))\\s+(.+)$/\nconst TABLE_ROW = /^\\s*\\|.*\\|\\s*$/\nconst TABLE_SEP = /^\\s*\\|(?:\\s*:?-{1,}:?\\s*\\|)+\\s*$/\nconst FENCE = /^\\s*```/\n\n/** Splits a table row into cells (escaped pipes are not handled). */\nfunction cells(row: string): string[] {\n return row\n .replace(/^\\s*\\|/, '')\n .replace(/\\|\\s*$/, '')\n .split('|')\n .map((cell) => cell.trim())\n}\n\n/**\n * Splits an answer into markdown, table, choices and form blocks. A fence that\n * is invalid, unknown or still open (answer streaming) stays markdown, verbatim.\n *\n * `confirmable`: whether Yes / No buttons may go under this answer. Where they\n * do, the `(yes/no)` marker that asked for them is not shown.\n */\nexport function parseAnswer(\n text: string,\n language: LanguageCode,\n confirmable = true,\n): ParsedAnswer {\n const confirm = confirmable && isConfirmationPrompt(text, language)\n const lines = (confirm ? unmark(text) : text).split('\\n')\n const blocks: WidgetBlock[] = []\n let markdown: string[] = []\n\n const flush = (): void => {\n const joined = markdown.join('\\n').replace(/^\\n+|\\n+$/g, '')\n if (joined.trim()) blocks.push({ kind: 'markdown', text: joined })\n markdown = []\n }\n\n for (let cursor = 0; cursor < lines.length; cursor += 1) {\n const line = lines[cursor]\n\n if (FENCE.test(line)) {\n let end = cursor + 1\n while (end < lines.length && !FENCE.test(lines[end])) end += 1\n const closed = end < lines.length\n const info = line.replace(/^\\s*```/, '').trim().toLowerCase()\n const body = lines.slice(cursor + 1, end).join('\\n')\n\n let block: WidgetBlock | null = null\n if (closed && info === 'form') {\n const form = readForm(body)\n if (form) block = { kind: 'form', form }\n }\n\n if (block) {\n flush()\n blocks.push(block)\n } else {\n // Taken literally up to the closing fence (or the end when still open).\n markdown.push(...lines.slice(cursor, closed ? end + 1 : end))\n }\n cursor = closed ? end : end - 1\n continue\n }\n\n if (TABLE_ROW.test(line) && cursor + 1 < lines.length && TABLE_SEP.test(lines[cursor + 1])) {\n flush()\n const header = cells(line)\n const rows: string[][] = []\n cursor += 2\n while (cursor < lines.length && TABLE_ROW.test(lines[cursor])) {\n rows.push(cells(lines[cursor]))\n cursor += 1\n }\n cursor -= 1\n blocks.push({ kind: 'table', header, rows })\n continue\n }\n\n const first = CHOICE.exec(line)\n if (first) {\n // A run of options of one kind: radios or checkboxes.\n const multiple = first[1] !== undefined\n const options: string[] = []\n const checked: string[] = []\n let end = cursor\n let choice: RegExpExecArray | null = first\n while (choice && (choice[1] !== undefined) === multiple) {\n const label = choice[3].trim()\n options.push(label)\n // A single choice keeps only its first preselected option.\n const ticked = (choice[1] ?? choice[2]) !== ' '\n if (ticked && (multiple || !checked.length)) checked.push(label)\n end += 1\n choice = end < lines.length ? CHOICE.exec(lines[end]) : null\n }\n if (options.length > MAX_OPTIONS) {\n markdown.push(...lines.slice(cursor, end))\n } else {\n flush()\n const block: WidgetBlock = { kind: 'choices', options, multiple }\n if (checked.length) block.checked = checked\n blocks.push(block)\n }\n cursor = end - 1\n continue\n }\n\n markdown.push(line)\n }\n\n flush()\n return { blocks, confirm }\n}\n"],"x_google_ignoreList":[0,1,3],"mappings":"AAAA,IAAI,EAAEA,EAAEC,EAAIE,EAAEC,EAAEC,EAAEC,EAAEC,EAAEC,EAAEC,EAAEC,EAAEC,EAAEC,EAAEC,EAAIE,EAAE,CAAC,EAAEC,EAAE,CAAC,EAAEC,EAAE,oEAAoE,EAAE,MAAM,QAAQ,SAASC,EAAE,EAAE,EAAE,CAAC,IAAI,IAAI,KAAK,EAAE,EAAE,GAAG,EAAE,GAAG,OAAO,CAAC,CAAC,SAAS,EAAE,EAAE,CAAC,GAAG,EAAE,YAAY,EAAE,WAA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S,KAAK,CAAI,CACpB,CAGA,OADA,EAAM,EACC,CAAE,SAAQ,SAAQ,CAC3B"}
|
|
1
|
+
{"version":3,"file":"answer-Bi8GWLyA.cjs","names":["l","u","t","i","r","o","e","f","c","a","s","h","p","v","y","d","w","_","m","k","C","q","D","A","T","j","z","B","u","i","f","n","r"],"sources":["../node_modules/preact/dist/preact.module.js","../node_modules/preact/hooks/dist/hooks.module.js","../src/lib/i18n.ts","../node_modules/preact/jsx-runtime/dist/jsxRuntime.module.js","../src/widgets/element.ts","../src/widgets/names.ts","../src/widgets/i18n.ts","../src/widgets/inline.tsx","../src/widgets/choices/SqcChoices.tsx","../src/widgets/confirm/SqcConfirm.tsx","../src/widgets/table/SqcTable.tsx","../src/widgets/choices/choices.css?inline","../src/widgets/confirm/confirm.css?inline","../src/widgets/table/table.css?inline","../src/widgets/theme.css?inline","../src/widgets/styles.ts","../src/widgets/define.ts","../src/widgets/approval/name.ts","../src/widgets/extras-loader.ts","../src/widgets/live.ts","../src/widgets/parse/confirm.ts","../src/widgets/parse/form.ts","../src/widgets/parse/answer.ts"],"sourcesContent":["var n,l,u,t,i,r,o,e,f,c,a,s,h,p,v,y,d={},w=[],_=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,g=Array.isArray;function m(n,l){for(var u in l)n[u]=l[u];return n}function b(n){n&&n.parentNode&&n.parentNode.removeChild(n)}function k(l,u,t){var i,r,o,e={};for(o in u)\"key\"==o?i=u[o]:\"ref\"==o?r=u[o]:e[o]=u[o];if(arguments.length>2&&(e.children=arguments.length>3?n.call(arguments,2):t),\"function\"==typeof l&&null!=l.defaultProps)for(o in l.defaultProps)void 0===e[o]&&(e[o]=l.defaultProps[o]);return x(l,e,i,r,null)}function x(n,t,i,r,o){var e={type:n,props:t,key:i,ref:r,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:null==o?++u:o,__i:-1,__u:0};return null==o&&null!=l.vnode&&l.vnode(e),e}function M(){return{current:null}}function S(n){return n.children}function C(n,l){this.props=n,this.context=l}function $(n,l){if(null==l)return n.__?$(n.__,n.__i+1):null;for(var u;l<n.__k.length;l++)if(null!=(u=n.__k[l])&&null!=u.__e)return u.__e;return\"function\"==typeof n.type?$(n):null}function I(n){if(n.__P&&n.__d){var u=n.__v,t=u.__e,i=[],r=[],o=m({},u);o.__v=u.__v+1,l.vnode&&l.vnode(o),q(n.__P,o,u,n.__n,n.__P.namespaceURI,32&u.__u?[t]:null,i,null==t?$(u):t,!!(32&u.__u),r),o.__v=u.__v,o.__.__k[o.__i]=o,D(i,o,r),u.__e=u.__=null,o.__e!=t&&P(o)}}function P(n){if(null!=(n=n.__)&&null!=n.__c)return n.__e=n.__c.base=null,n.__k.some(function(l){if(null!=l&&null!=l.__e)return n.__e=n.__c.base=l.__e}),P(n)}function A(n){(!n.__d&&(n.__d=!0)&&i.push(n)&&!H.__r++||r!=l.debounceRendering)&&((r=l.debounceRendering)||o)(H)}function H(){try{for(var n,l=1;i.length;)i.length>l&&i.sort(e),n=i.shift(),l=i.length,I(n)}finally{i.length=H.__r=0}}function L(n,l,u,t,i,r,o,e,f,c,a){var s,h,p,v,y,_,g=t&&t.__k||w,m=l.length;for(f=T(u,l,g,f,m),s=0;s<m;s++)null!=(p=u.__k[s])&&(h=-1!=p.__i&&g[p.__i]||d,p.__i=s,_=q(n,p,h,i,r,o,e,f,c,a),v=p.__e,p.ref&&h.ref!=p.ref&&(h.ref&&J(h.ref,null,p),a.push(p.ref,p.__c||v,p)),null==y&&null!=v&&(y=v),4&p.__u?(f=j(p,f,n),h.__e&&(h.__e=null)):\"function\"==typeof p.type&&void 0!==_?f=_:v&&(f=v.nextSibling),p.__u&=-7);return u.__e=y,f}function T(n,l,u,t,i){var r,o,e,f,c,a=u.length,s=a,h=0;for(n.__k=new Array(i),r=0;r<i;r++)null!=(o=l[r])&&\"boolean\"!=typeof o&&\"function\"!=typeof o?(\"string\"==typeof o||\"number\"==typeof o||\"bigint\"==typeof o||o.constructor==String?o=n.__k[r]=x(null,o,null,null,null):g(o)?o=n.__k[r]=x(S,{children:o},null,null,null):void 0===o.constructor&&o.__b>0?o=n.__k[r]=x(o.type,o.props,o.key,o.ref?o.ref:null,o.__v):n.__k[r]=o,f=r+h,o.__=n,o.__b=n.__b+1,e=null,-1!=(c=o.__i=O(o,u,f,s))&&(s--,(e=u[c])&&(e.__u|=2)),null==e||null==e.__v?(-1==c&&(i>a?h--:i<a&&h++),\"function\"!=typeof o.type&&(o.__u|=4)):c!=f&&(c==f-1?h--:c==f+1?h++:(c>f?h--:h++,o.__u|=4))):n.__k[r]=null;if(s)for(r=0;r<a;r++)null!=(e=u[r])&&0==(2&e.__u)&&(e.__e==t&&(t=$(e)),K(e,e));return t}function j(n,l,u){var t,i;if(\"function\"==typeof n.type){for(t=n.__k,i=0;t&&i<t.length;i++)t[i]&&(t[i].__=n,l=j(t[i],l,u));return l}n.__e!=l&&(l&&n.type&&!l.parentNode&&(l=$(n)),l=u.insertBefore(n.__e,l||null));do{l=l&&l.nextSibling}while(null!=l&&8==l.nodeType);return l}function F(n,l){return l=l||[],null==n||\"boolean\"==typeof n||(g(n)?n.some(function(n){F(n,l)}):l.push(n)),l}function O(n,l,u,t){var i,r,o,e=n.key,f=n.type,c=l[u],a=null!=c&&0==(2&c.__u);if(null===c&&null==e||a&&e==c.key&&f==c.type)return u;if(t>(a?1:0))for(i=u-1,r=u+1;i>=0||r<l.length;)if(null!=(c=l[o=i>=0?i--:r++])&&0==(2&c.__u)&&e==c.key&&f==c.type)return o;return-1}function z(n,l,u){\"-\"==l[0]?n.setProperty(l,null==u?\"\":u):n[l]=null==u?\"\":\"number\"!=typeof u||_.test(l)?u:u+\"px\"}function N(n,l,u,t,i){var r,o;n:if(\"style\"==l)if(\"string\"==typeof u)n.style.cssText=u;else{if(\"string\"==typeof t&&(n.style.cssText=t=\"\"),t)for(l in t)u&&l in u||z(n.style,l,\"\");if(u)for(l in u)t&&u[l]==t[l]||z(n.style,l,u[l])}else if(\"o\"==l[0]&&\"n\"==l[1])r=l!=(l=l.replace(s,\"$1\")),o=l.toLowerCase(),l=o in n||\"onFocusOut\"==l||\"onFocusIn\"==l?o.slice(2):l.slice(2),n.l||(n.l={}),n.l[l+r]=u,u?t?u[a]=t[a]:(u[a]=h,n.addEventListener(l,r?v:p,r)):n.removeEventListener(l,r?v:p,r);else{if(\"http://www.w3.org/2000/svg\"==i)l=l.replace(/xlink(H|:h)/,\"h\").replace(/sName$/,\"s\");else if(\"width\"!=l&&\"height\"!=l&&\"href\"!=l&&\"list\"!=l&&\"form\"!=l&&\"tabIndex\"!=l&&\"download\"!=l&&\"rowSpan\"!=l&&\"colSpan\"!=l&&\"role\"!=l&&\"popover\"!=l&&l in n)try{n[l]=null==u?\"\":u;break n}catch(n){}\"function\"==typeof u||(null==u||!1===u&&\"-\"!=l[4]?n.removeAttribute(l):n.setAttribute(l,\"popover\"==l&&1==u?\"\":u))}}function V(n){return function(u){if(this.l){var t=this.l[u.type+n];if(null==u[c])u[c]=h++;else if(u[c]<t[a])return;return t(l.event?l.event(u):u)}}}function q(n,u,t,i,r,o,e,f,c,a){var s,h,p,v,y,d,_,k,x,M,I,P,A,H,T,j,F=u.type;if(void 0!==u.constructor)return null;128&t.__u&&(c=!!(32&t.__u),o=[f=u.__e=t.__e]),(s=l.__b)&&s(u);n:if(\"function\"==typeof F){h=e.length;try{if(x=u.props,M=F.prototype&&F.prototype.render,I=(s=F.contextType)&&i[s.__c],P=s?I?I.props.value:s.__:i,t.__c?k=(p=u.__c=t.__c).__=p.__E:(M?u.__c=p=new F(x,P):(u.__c=p=new C(x,P),p.constructor=F,p.render=Q),I&&I.sub(p),p.state||(p.state={}),p.__n=i,v=p.__d=!0,p.__h=[],p._sb=[]),M&&null==p.__s&&(p.__s=p.state),M&&null!=F.getDerivedStateFromProps&&(p.__s==p.state&&(p.__s=m({},p.__s)),m(p.__s,F.getDerivedStateFromProps(x,p.__s))),y=p.props,d=p.state,p.__v=u,v)M&&null==F.getDerivedStateFromProps&&null!=p.componentWillMount&&p.componentWillMount(),M&&null!=p.componentDidMount&&p.__h.push(p.componentDidMount);else{if(M&&null==F.getDerivedStateFromProps&&x!==y&&null!=p.componentWillReceiveProps&&p.componentWillReceiveProps(x,P),u.__v==t.__v||!p.__e&&null!=p.shouldComponentUpdate&&!1===p.shouldComponentUpdate(x,p.__s,P)){u.__v!=t.__v&&(p.props=x,p.state=p.__s,p.__d=!1),u.__e=t.__e,u.__k=t.__k,u.__k.some(function(n){n&&(n.__=u)}),w.push.apply(p.__h,p._sb),p._sb=[],p.__h.length&&e.push(p),f=$(t);break n}null!=p.componentWillUpdate&&p.componentWillUpdate(x,p.__s,P),M&&null!=p.componentDidUpdate&&p.__h.push(function(){p.componentDidUpdate(y,d,_)})}if(p.context=P,p.props=x,p.__P=n,p.__e=!1,A=l.__r,H=0,M)p.state=p.__s,p.__d=!1,A&&A(u),s=p.render(p.props,p.state,p.context),w.push.apply(p.__h,p._sb),p._sb=[];else do{p.__d=!1,A&&A(u),s=p.render(p.props,p.state,p.context),p.state=p.__s}while(p.__d&&++H<25);p.state=p.__s,null!=p.getChildContext&&(i=m(m({},i),p.getChildContext())),M&&!v&&null!=p.getSnapshotBeforeUpdate&&(_=p.getSnapshotBeforeUpdate(y,d)),T=null!=s&&s.type===S&&null==s.key?E(s.props.children):s,f=L(n,g(T)?T:[T],u,t,i,r,o,e,f,c,a),p.base=u.__e,u.__u&=-161,p.__h.length&&e.push(p),k&&(p.__E=p.__=null)}catch(n){if(e.length=h,u.__v=null,c||null!=o){if(n.then){for(u.__u|=c?160:128;f&&8==f.nodeType&&f.nextSibling;)f=f.nextSibling;null!=o&&(o[o.indexOf(f)]=null),u.__e=f}else if(null!=o)for(j=o.length;j--;)b(o[j])}else u.__e=t.__e;null==u.__k&&(u.__k=t.__k||[]),n.then||B(u),l.__e(n,u,t)}}else null==o&&u.__v==t.__v?(u.__k=t.__k,u.__e=t.__e):f=u.__e=G(t.__e,u,t,i,r,o,e,c,a);return(s=l.diffed)&&s(u),128&u.__u?void 0:f}function B(n){n&&(n.__c&&(n.__c.__e=!0),n.__k&&n.__k.some(B))}function D(n,u,t){for(var i=0;i<t.length;i++)J(t[i],t[++i],t[++i]);l.__c&&l.__c(u,n),n.some(function(u){try{n=u.__h,u.__h=[],n.some(function(n){n.call(u)})}catch(n){l.__e(n,u.__v)}})}function E(n){return\"object\"!=typeof n||null==n||n.__b>0?n:g(n)?n.map(E):void 0!==n.constructor?null:m({},n)}function G(u,t,i,r,o,e,f,c,a){var s,h,p,v,y,w,_,m=i.props||d,k=t.props,x=t.type;if(\"svg\"==x?o=\"http://www.w3.org/2000/svg\":\"math\"==x?o=\"http://www.w3.org/1998/Math/MathML\":o||(o=\"http://www.w3.org/1999/xhtml\"),null!=e)for(s=0;s<e.length;s++)if((y=e[s])&&\"setAttribute\"in y==!!x&&(x?y.localName==x:3==y.nodeType)){u=y,e[s]=null;break}if(null==u){if(null==x)return document.createTextNode(k);u=document.createElementNS(o,x,k.is&&k),c&&(l.__m&&l.__m(t,e),c=!1),e=null}if(null==x)m===k||c&&u.data==k||(u.data=k);else{if(e=\"textarea\"==x&&null!=k.defaultValue?null:e&&n.call(u.childNodes),!c&&null!=e)for(m={},s=0;s<u.attributes.length;s++)m[(y=u.attributes[s]).name]=y.value;for(s in m)y=m[s],\"dangerouslySetInnerHTML\"==s?p=y:\"children\"==s||s in k||\"value\"==s&&\"defaultValue\"in k||\"checked\"==s&&\"defaultChecked\"in k||N(u,s,null,y,o);for(s in k)y=k[s],\"children\"==s?v=y:\"dangerouslySetInnerHTML\"==s?h=y:\"value\"==s?w=y:\"checked\"==s?_=y:c&&\"function\"!=typeof y||m[s]===y||N(u,s,y,m[s],o);if(h)c||p&&(h.__html==p.__html||h.__html==u.innerHTML)||(u.innerHTML=h.__html),t.__k=[];else if(p&&(u.innerHTML=\"\"),L(\"template\"==t.type?u.content:u,g(v)?v:[v],t,i,r,\"foreignObject\"==x?\"http://www.w3.org/1999/xhtml\":o,e,f,e?e[0]:i.__k&&$(i,0),c,a),null!=e)for(s=e.length;s--;)b(e[s]);c&&\"textarea\"!=x||(s=\"value\",\"progress\"==x&&null==w?u.removeAttribute(\"value\"):null!=w&&(w!==u[s]||\"progress\"==x&&!w||\"option\"==x&&w!=m[s])&&N(u,s,w,m[s],o),s=\"checked\",null!=_&&_!=u[s]&&N(u,s,_,m[s],o))}return u}function J(n,u,t){try{if(\"function\"==typeof n){var i=\"function\"==typeof n.__u;i&&n.__u(),i&&null==u||(n.__u=n(u))}else n.current=u}catch(n){l.__e(n,t)}}function K(n,u,t){var i,r;if(l.unmount&&l.unmount(n),(i=n.ref)&&(i.current&&i.current!=n.__e||J(i,null,u)),null!=(i=n.__c)){if(i.componentWillUnmount)try{i.componentWillUnmount()}catch(n){l.__e(n,u)}i.base=i.__P=i.__n=null}if(i=n.__k)for(r=0;r<i.length;r++)i[r]&&K(i[r],u,t||\"function\"!=typeof n.type);t||b(n.__e),n.__c=n.__=n.__e=void 0}function Q(n,l,u){return this.constructor(n,u)}function R(u,t,i){var r,o,e,f;t==document&&(t=document.documentElement),l.__&&l.__(u,t),o=(r=\"function\"==typeof i)?null:i&&i.__k||t.__k,e=[],f=[],q(t,u=(!r&&i||t).__k=k(S,null,[u]),o||d,d,t.namespaceURI,!r&&i?[i]:o?null:t.firstChild?n.call(t.childNodes):null,e,!r&&i?i:o?o.__e:t.firstChild,r,f),D(e,u,f),u.props.children=null}function U(n,l){R(n,l,U)}function W(l,u,t){var i,r,o,e,f=m({},l.props);for(o in l.type&&l.type.defaultProps&&(e=l.type.defaultProps),u)\"key\"==o?i=u[o]:\"ref\"==o?r=u[o]:f[o]=void 0===u[o]&&null!=e?e[o]:u[o];return arguments.length>2&&(f.children=arguments.length>3?n.call(arguments,2):t),x(l.type,f,i||l.key,r||l.ref,null)}function X(n){function l(n){var u,t;return this.getChildContext||(u=new Set,(t={})[l.__c]=this,this.getChildContext=function(){return t},this.componentWillUnmount=function(){u=null},this.shouldComponentUpdate=function(n){this.props.value!=n.value&&u.forEach(function(n){n.__e=!0,A(n)})},this.sub=function(n){u.add(n);var l=n.componentWillUnmount;n.componentWillUnmount=function(){u&&u.delete(n),l&&l.call(n)}}),n.children}return l.__c=\"__cC\"+y++,l.__=n,l.Provider=l.__l=(l.Consumer=function(n,l){return n.children(l)}).contextType=l,l}n=w.slice,l={__e:function(n,l,u,t){for(var i,r,o;l=l.__;)if((i=l.__c)&&!i.__)try{if((r=i.constructor)&&null!=r.getDerivedStateFromError&&(i.setState(r.getDerivedStateFromError(n)),o=i.__d),null!=i.componentDidCatch&&(i.componentDidCatch(n,t||{}),o=i.__d),o)return i.__E=i}catch(l){n=l}throw n}},u=0,t=function(n){return null!=n&&void 0===n.constructor},C.prototype.setState=function(n,l){var u;u=null!=this.__s&&this.__s!=this.state?this.__s:this.__s=m({},this.state),\"function\"==typeof n&&(n=n(m({},u),this.props)),n&&m(u,n),null!=n&&this.__v&&(l&&this._sb.push(l),A(this))},C.prototype.forceUpdate=function(n){this.__v&&(this.__e=!0,n&&this.__h.push(n),A(this))},C.prototype.render=S,i=[],o=\"function\"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,e=function(n,l){return n.__v.__b-l.__v.__b},H.__r=0,f=Math.random().toString(8),c=\"__d\"+f,a=\"__a\"+f,s=/(PointerCapture)$|Capture$/i,h=0,p=V(!1),v=V(!0),y=0;export{C as Component,S as Fragment,W as cloneElement,X as createContext,k as createElement,M as createRef,k as h,U as hydrate,t as isValidElement,l as options,R as render,F as toChildArray};\n//# sourceMappingURL=preact.module.js.map\n","import{options as n}from\"preact\";var t,r,u,i,o=0,f=[],c=n,e=c.__b,a=c.__r,v=c.diffed,l=c.__c,m=c.unmount,p=c.__;function s(n,t){c.__h&&c.__h(r,n,o||t),o=0;var u=r.__H||(r.__H={__:[],__h:[]});return n>=u.__.length&&u.__.push({}),u.__[n]}function d(n){return o=1,y(D,n)}function y(n,u,i){var o=s(t++,2);if(o.t=n,!o.__c&&(o.__=[i?i(u):D(void 0,u),function(n){var t=o.__N?o.__N[0]:o.__[0],r=o.t(t,n);t!==r&&(o.__N=[r,o.__[1]],o.__c.setState({}))}],o.__c=r,!r.__f)){var f=function(n,t,r){if(!o.__c.__H)return!0;var u=!1,i=o.__c.props!==n;if(o.__c.__H.__.some(function(n){if(n.__N){u=!0;var t=n.__[0];n.__=n.__N,n.__N=void 0,t!==n.__[0]&&(i=!0)}}),c){var f=c.call(this,n,t,r);return u?f||i:f}return!u||i};r.__f=!0;var c=r.shouldComponentUpdate,e=r.componentWillUpdate;r.componentWillUpdate=function(n,t,r){if(this.__e){var u=c;c=void 0,f(n,t,r),c=u}e&&e.call(this,n,t,r)},r.shouldComponentUpdate=f}return o.__N||o.__}function h(n,u){var i=s(t++,3);!c.__s&&C(i.__H,u)&&(i.__=n,i.u=u,r.__H.__h.push(i))}function _(n,u){var i=s(t++,4);!c.__s&&C(i.__H,u)&&(i.__=n,i.u=u,r.__h.push(i))}function A(n){return o=5,T(function(){return{current:n}},[])}function F(n,t,r){o=6,_(function(){if(\"function\"==typeof n){var r=n(t());return function(){n(null),r&&\"function\"==typeof r&&r()}}if(n)return n.current=t(),function(){return n.current=null}},null==r?r:r.concat(n))}function T(n,r){var u=s(t++,7);return C(u.__H,r)&&(u.__=n(),u.__H=r,u.__h=n),u.__}function q(n,t){return o=8,T(function(){return n},t)}function x(n){var u=r.context[n.__c],i=s(t++,9);return i.c=n,u?(null==i.__&&(i.__=!0,u.sub(r)),u.props.value):n.__}function P(n,t){c.useDebugValue&&c.useDebugValue(t?t(n):n)}function b(n){var u=s(t++,10),i=d();return u.__=n,r.componentDidCatch||(r.componentDidCatch=function(n,t){u.__&&u.__(n,t),i[1](n)}),[i[0],function(){i[1](void 0)}]}function g(){var n=s(t++,11);if(!n.__){for(var u=r.__v;null!==u&&!u.__m&&null!==u.__;)u=u.__;var i=u.__m||(u.__m=[0,0]);n.__=\"P\"+i[0]+\"-\"+i[1]++}return n.__}function j(){for(var n;n=f.shift();){var t=n.__H;if(n.__P&&t)try{t.__h.some(z),t.__h.some(B),t.__h=[]}catch(r){t.__h=[],c.__e(r,n.__v)}}}c.__b=function(n){r=null,e&&e(n)},c.__=function(n,t){n&&t.__k&&t.__k.__m&&(n.__m=t.__k.__m),p&&p(n,t)},c.__r=function(n){a&&a(n),t=0;var i=(r=n.__c).__H;i&&(u===r?(i.__h=[],r.__h=[],i.__.some(function(n){n.__N&&(n.__=n.__N),n.u=n.__N=void 0})):(i.__h.some(z),i.__h.some(B),i.__h=[],t=0)),u=r},c.diffed=function(n){v&&v(n);var t=n.__c;t&&t.__H&&(t.__H.__h.length&&(1!==f.push(t)&&i===c.requestAnimationFrame||((i=c.requestAnimationFrame)||w)(j)),t.__H.__.some(function(n){n.u&&(n.__H=n.u,n.u=void 0)})),u=r=null},c.__c=function(n,t){t.some(function(n){try{n.__h.some(z),n.__h=n.__h.filter(function(n){return!n.__||B(n)})}catch(r){t.some(function(n){n.__h&&(n.__h=[])}),t=[],c.__e(r,n.__v)}}),l&&l(n,t)},c.unmount=function(n){m&&m(n);var t,r=n.__c;r&&r.__H&&(r.__H.__.some(function(n){try{z(n)}catch(n){t=n}}),r.__H=void 0,t&&c.__e(t,r.__v))};var k=\"function\"==typeof requestAnimationFrame;function w(n){var t,r=function(){clearTimeout(u),k&&cancelAnimationFrame(t),setTimeout(n)},u=setTimeout(r,35);k&&(t=requestAnimationFrame(r))}function z(n){var t=r,u=n.__c;\"function\"==typeof u&&(n.__c=void 0,u()),r=t}function B(n){var t=r;n.__c=n.__(),r=t}function C(n,t){return!n||n.length!==t.length||t.some(function(t,r){return t!==n[r]})}function D(n,t){return\"function\"==typeof t?t(n):t}export{q as useCallback,x as useContext,P as useDebugValue,h as useEffect,b as useErrorBoundary,g as useId,F as useImperativeHandle,_ as useLayoutEffect,T as useMemo,y as useReducer,A as useRef,d as useState};\n//# sourceMappingURL=hooks.module.js.map\n","/**\n * Every user-facing string of the widget, one bundle per supported language.\n *\n * The host picks the language with a single `locale` prop (`en`, `en-GB`,\n * `fr`, `es-ES`…): its primary subtag selects the bundle, and the tag itself is\n * kept as-is for `Intl` — a `fr-CA` host gets the French copy with Canadian date\n * formatting, which is what a BCP-47 tag means. Declaring nothing reads the\n * browser's own languages instead (`resolveLocale`). An unsupported language\n * falls back to `DEFAULT_LANGUAGE` rather than showing keys.\n *\n * Adding a string means adding it to **every** bundle — the `Strings` type makes\n * that a compile error, not a runtime blank.\n */\nimport type { ChatActivity } from '../types'\n\n\nexport type LanguageCode = 'en' | 'fr' | 'es'\n\nexport const DEFAULT_LANGUAGE: LanguageCode = 'en'\n\n/** Shipped languages, in the order they are documented. Published so a host can\n * offer its users only the locales the widget really speaks. */\nexport const SUPPORTED_LANGUAGES: readonly LanguageCode[] = ['en', 'fr', 'es']\n\n/** Labels of the context chips shown under the header. The chip titles\n * themselves come from the host's own context keys — the widget knows no\n * domain entity. */\nexport interface ContextStrings {\n /** Accessible name of the chip row. */\n region: string\n}\n\nexport interface Strings {\n heading: string\n subheading: string\n placeholder: string\n greeting: string\n /** Permanent reminder under the composer: a write is proposed, never applied\n * on its own. */\n hint: string\n /** Byline of an assistant message. */\n assistant: string\n /** Accessible name of the three-dot indicator while the answer is streaming. */\n typing: string\n /** What the agent is busy with before the first word, beside the dots: a\n * kind of work, never the tool — that is all the server says. */\n activity: Record<ChatActivity, string>\n newConversation: string\n close: string\n /** Shorter form, for the `title` tooltip. */\n closeTitle: string\n history: {\n /** The header icon opening the menu. */\n open: string\n /** Accessible name of the menu itself. */\n menu: string\n loading: string\n empty: string\n /** Stands in until the agent has generated a title for the session. */\n untitled: string\n }\n context: ContextStrings\n approval: {\n group: string\n approve: string\n reject: string\n /** Said in the agent's place when it asked for a tool without a word about\n * it: `{tool}` is the name of what it would use. */\n request: string\n /** Heading of the values the tool would be called with. */\n arguments: string\n edit: string\n /** Placeholder of the correction field. */\n correction: string\n correctionLabel: string\n send: string\n }\n confirm: {\n group: string\n yes: string\n no: string\n /** What clicking sends to the agent — a bare \"yes\" is recognised without a\n * model call, so it has to be the word of the user's own language. */\n yesValue: string\n noValue: string\n /** Sends nothing: hands the visitor the composer to write their own answer. */\n other: string\n }\n /** Accessible name of a Markdown checkbox group turned into buttons. */\n choices: string\n /** What a table element says about itself. */\n table: {\n copy: string\n copied: string\n /** Rows beyond the cap: `{count}` is how many were left out. */\n more: string\n }\n /** What a form element says when the agent's spec names nothing itself. */\n form: {\n submit: string\n required: string\n email: string\n number: string\n }\n /** The footer link a plan that carries our name shows. */\n poweredBy: string\n /** The agents a visitor may address by name, where an application holds several. */\n handles: {\n /** Accessible name of the list `@` opens in the composer. */\n picker: string\n /** Said above the name a message addressed and nobody answers to. The handle\n * itself is rendered beside it, so no sentence needs a placeholder. */\n unknown: string\n /** Introduces the handles that do answer, when the organization offers any. */\n instead: string\n /** Accessible name of the column of agents a panel shows when it offers several. */\n rail: string\n }\n /** A question the agent stopped its turn on, answered by ticking options. */\n selection: {\n /** Accessible name of the option group. */\n group: string\n /** Shown under a single-answer question: one click answers it. */\n single: string\n /** Shown under a multi-answer one: several ticks, one validate. */\n multiple: string\n /** The button that sends what has been ticked. */\n validate: string\n }\n composer: {\n label: string\n send: string\n sendTitle: string\n stop: string\n stopTitle: string\n /** Accessible name of the paperclip, and of the cross on each chip. */\n attach: string\n attachTitle: string\n /** Takes the file's name: \"Remove {name}\". */\n remove: string\n }\n /** What a refused upload means, in the terms of whoever chose the file. */\n attachments: {\n unsupported: string\n tooLarge: string\n tooMany: string\n unreadable: string\n failed: string\n }\n /** Shown in the bubble when a turn failed — the real cause goes to\n * `chatbot-error` and the console, not to the user. */\n error: string\n /** Under the transcript once an agent handed the conversation to a human. */\n withHuman: string\n}\n\nconst EN: Strings = {\n heading: 'Assistant',\n subheading: 'Squadico',\n placeholder: 'Ask your question…',\n greeting: 'Hello! I am your assistant. What would you like to do?',\n hint: 'The assistant proposes an action; nothing is applied without your confirmation.',\n assistant: 'Assistant',\n typing: 'The assistant is writing its answer',\n activity: {\n knowledge: 'Searching the knowledge base…',\n skill: 'Following a procedure…',\n delegation: 'Asking a colleague…',\n tool: 'Looking it up…',\n },\n newConversation: 'New conversation',\n close: 'Close the assistant',\n closeTitle: 'Close',\n history: {\n open: 'Conversation history',\n menu: 'Previous conversations',\n loading: 'Loading…',\n empty: 'No previous conversation.',\n untitled: 'Conversation',\n },\n context: {\n region: 'Context sent to the assistant',\n },\n approval: {\n group: 'Write confirmation',\n approve: 'Yes, apply',\n reject: 'No, cancel',\n request: 'The agent wants to use {tool}.',\n arguments: 'With',\n edit: 'Change…',\n correction: 'What to change — e.g. “the due date is next Monday”',\n correctionLabel: 'Correction to make before approving',\n send: 'Send',\n },\n confirm: {\n group: 'Confirmation',\n yes: 'Yes',\n no: 'No',\n yesValue: 'yes',\n noValue: 'no',\n other: 'Propose something else',\n },\n choices: 'Suggested options',\n table: { copy: 'Copy', copied: 'Copied', more: '{count} more rows' },\n form: {\n submit: 'Send',\n required: 'Required',\n email: 'Enter a valid email address',\n number: 'Enter a number',\n },\n poweredBy: 'Powered by Squadico',\n handles: {\n picker: 'Agents you can address',\n unknown: 'Nobody answers to that name here:',\n instead: 'You can address:',\n rail: 'Agents',\n },\n selection: {\n group: 'Suggested choice',\n single: 'Pick one option.',\n multiple: 'Pick one or more options, then validate.',\n validate: 'Validate',\n },\n composer: {\n label: 'Your message',\n send: 'Send the message',\n sendTitle: 'Send',\n stop: 'Stop the answer',\n stopTitle: 'Stop',\n attach: 'Attach a file',\n attachTitle: 'Attach',\n remove: 'Remove {name}',\n },\n attachments: {\n unsupported: 'This kind of file cannot be attached to a message.',\n tooLarge: 'This file is too large.',\n tooMany: 'This message already carries as many files as it may.',\n unreadable: 'This file could not be read.',\n failed: 'This file could not be attached.',\n },\n error: 'Something went wrong, the assistant could not answer. Try again in a moment.',\n withHuman: 'A member of the team will reply to you here.',\n}\n\nconst FR: Strings = {\n heading: 'Assistant',\n subheading: 'Squadico',\n placeholder: 'Posez votre question…',\n greeting: 'Bonjour ! Je suis votre assistant. Que souhaitez-vous faire ?',\n hint: \"L'assistant propose une action ; rien n'est appliqué sans votre confirmation.\",\n assistant: 'Assistant',\n typing: \"L'assistant rédige sa réponse\",\n activity: {\n knowledge: 'Recherche dans la base de connaissances…',\n skill: \"Application d'une procédure…\",\n delegation: \"Consultation d'un collègue…\",\n tool: 'Recherche en cours…',\n },\n newConversation: 'Nouvelle conversation',\n close: \"Fermer l'assistant\",\n closeTitle: 'Fermer',\n history: {\n open: 'Historique des conversations',\n menu: 'Conversations précédentes',\n loading: 'Chargement…',\n empty: 'Aucune conversation précédente.',\n untitled: 'Conversation',\n },\n context: {\n region: \"Contexte transmis à l'assistant\",\n },\n approval: {\n group: \"Validation de l'écriture\",\n approve: 'Oui, appliquer',\n reject: 'Non, annuler',\n request: \"L'agent souhaite utiliser {tool}.\",\n arguments: 'Avec',\n edit: 'Modifier…',\n correction: \"Ce qu'il faut changer — ex. « l'échéance est lundi prochain »\",\n correctionLabel: 'Correction à apporter avant validation',\n send: 'Envoyer',\n },\n confirm: {\n group: 'Confirmation',\n yes: 'Oui',\n no: 'Non',\n yesValue: 'oui',\n noValue: 'non',\n other: 'Proposer autre chose',\n },\n choices: 'Options proposées',\n table: { copy: 'Copier', copied: 'Copié', more: '{count} lignes de plus' },\n form: {\n submit: 'Envoyer',\n required: 'Obligatoire',\n email: 'Saisissez une adresse e-mail valide',\n number: 'Saisissez un nombre',\n },\n poweredBy: 'Propulsé par Squadico',\n handles: {\n picker: 'Agents que vous pouvez adresser',\n unknown: 'Personne ne répond à ce nom ici :',\n instead: 'Vous pouvez adresser :',\n rail: 'Agents',\n },\n selection: {\n group: 'Choix proposé',\n single: 'Sélectionnez une option.',\n multiple: 'Sélectionnez une ou plusieurs options, puis validez.',\n validate: 'Valider',\n },\n composer: {\n label: 'Votre message',\n send: 'Envoyer le message',\n sendTitle: 'Envoyer',\n stop: 'Interrompre la réponse',\n stopTitle: 'Interrompre',\n attach: 'Joindre un fichier',\n attachTitle: 'Joindre',\n remove: 'Retirer {name}',\n },\n attachments: {\n unsupported: 'Ce format de fichier ne peut pas être joint à un message.',\n tooLarge: 'Ce fichier est trop volumineux.',\n tooMany: \"Ce message porte déjà autant de fichiers qu'il le peut.\",\n unreadable: \"Ce fichier n'a pas pu être lu.\",\n failed: 'Impossible de joindre ce fichier.',\n },\n error: \"Une erreur est survenue, l'assistant n'a pas pu répondre. Réessayez dans un instant.\",\n withHuman: \"Un membre de l'équipe va vous répondre ici.\",\n}\n\nconst ES: Strings = {\n heading: 'Asistente',\n subheading: 'Squadico',\n placeholder: 'Haga su pregunta…',\n greeting: '¡Hola! Soy su asistente. ¿Qué desea hacer?',\n hint: 'El asistente propone una acción; no se aplica nada sin su confirmación.',\n assistant: 'Asistente',\n typing: 'El asistente está redactando su respuesta',\n activity: {\n knowledge: 'Buscando en la base de conocimientos…',\n skill: 'Siguiendo un procedimiento…',\n delegation: 'Consultando a un compañero…',\n tool: 'Consultando…',\n },\n newConversation: 'Nueva conversación',\n close: 'Cerrar el asistente',\n closeTitle: 'Cerrar',\n history: {\n open: 'Historial de conversaciones',\n menu: 'Conversaciones anteriores',\n loading: 'Cargando…',\n empty: 'Ninguna conversación anterior.',\n untitled: 'Conversación',\n },\n context: {\n region: 'Contexto enviado al asistente',\n },\n approval: {\n group: 'Validación de la escritura',\n approve: 'Sí, aplicar',\n reject: 'No, cancelar',\n request: 'El agente quiere usar {tool}.',\n arguments: 'Con',\n edit: 'Modificar…',\n correction: 'Lo que hay que cambiar — p. ej. «el vencimiento es el lunes»',\n correctionLabel: 'Corrección antes de validar',\n send: 'Enviar',\n },\n confirm: {\n group: 'Confirmación',\n yes: 'Sí',\n no: 'No',\n yesValue: 'sí',\n noValue: 'no',\n other: 'Proponer otra cosa',\n },\n choices: 'Opciones propuestas',\n table: { copy: 'Copiar', copied: 'Copiado', more: '{count} filas más' },\n form: {\n submit: 'Enviar',\n required: 'Obligatorio',\n email: 'Introduzca un correo electrónico válido',\n number: 'Introduzca un número',\n },\n poweredBy: 'Con la tecnología de Squadico',\n handles: {\n picker: 'Agentes a los que puedes dirigirte',\n unknown: 'Nadie responde a ese nombre aquí:',\n instead: 'Puedes dirigirte a:',\n rail: 'Agentes',\n },\n selection: {\n group: 'Opción propuesta',\n single: 'Seleccione una opción.',\n multiple: 'Seleccione una o varias opciones y valide.',\n validate: 'Validar',\n },\n composer: {\n label: 'Su mensaje',\n send: 'Enviar el mensaje',\n sendTitle: 'Enviar',\n stop: 'Interrumpir la respuesta',\n stopTitle: 'Interrumpir',\n attach: 'Adjuntar un archivo',\n attachTitle: 'Adjuntar',\n remove: 'Quitar {name}',\n },\n attachments: {\n unsupported: 'Este tipo de archivo no se puede adjuntar a un mensaje.',\n tooLarge: 'Este archivo es demasiado grande.',\n tooMany: 'Este mensaje ya lleva todos los archivos que puede llevar.',\n unreadable: 'No se ha podido leer este archivo.',\n failed: 'No se ha podido adjuntar este archivo.',\n },\n error: 'Se ha producido un error, el asistente no ha podido responder. Inténtelo de nuevo.',\n withHuman: 'Un miembro del equipo le responderá aquí.',\n}\n\nconst BUNDLES: Record<LanguageCode, Strings> = { en: EN, fr: FR, es: ES }\n\n/** Default `Intl` tag per language, used when the host named a language only. */\nconst TAGS: Record<LanguageCode, string> = { en: 'en-GB', fr: 'fr-FR', es: 'es-ES' }\n\n/** A resolved locale: the copy to render, and the tag to format dates with. */\nexport interface Locale {\n code: LanguageCode\n /** BCP-47 tag handed to `Intl` — the host's own when it gave one. */\n tag: string\n t: Strings\n}\n\n/** The bundle a tag names, or `undefined` when the language is not shipped. */\nfunction supported(locale: string | undefined): LanguageCode | undefined {\n const primary = locale?.trim().toLowerCase().split(/[-_]/)[0]\n return primary && primary in BUNDLES ? (primary as LanguageCode) : undefined\n}\n\nexport function resolveLanguage(locale: string | undefined): LanguageCode {\n return supported(locale) ?? DEFAULT_LANGUAGE\n}\n\n/**\n * Languages the browser announces, most preferred first.\n *\n * `navigator.languages` is the ordered list of the user's own preferences —\n * `navigator.language` alone is only its first entry, so a user whose Chrome is\n * in English but who also reads Spanish would never reach the Spanish bundle\n * through it. Absent server-side (SSR of a host importing the package), where\n * there is no user to have preferences.\n */\nfunction browserLocales(): readonly string[] {\n if (typeof navigator === 'undefined') return []\n return navigator.languages?.length ? navigator.languages : [navigator.language]\n}\n\n/**\n * Locale to render with.\n *\n * `locale` is what the host declared (attribute or prop) and it is a decision:\n * a regioned tag of a supported language keeps its region for `Intl` (`fr-CA`),\n * a bare language takes the bundle's own tag, and an unsupported one falls back\n * to `DEFAULT_LANGUAGE` — copy *and* tag, since English copy dated in Portuguese\n * would read as a bug rather than as a fallback. The browser is not consulted\n * then: a host naming a language has its reasons (the user's own account\n * setting, most likely), and the browser would silently overrule them.\n *\n * Declaring nothing is the case this exists for: the user's browser languages\n * are read in their own order, and the first one the widget speaks wins — a\n * Spanish-speaking user gets a Spanish panel without their front having to know\n * the widget ships Spanish at all. None supported, or no browser to ask:\n * `DEFAULT_LANGUAGE`.\n */\nexport function resolveLocale(locale: string | undefined): Locale {\n const declared = locale?.trim()\n const candidates = declared ? [declared] : browserLocales()\n const tag = candidates.find(supported)\n const code = supported(tag) ?? DEFAULT_LANGUAGE\n return { code, tag: tag?.includes('-') ? tag : TAGS[code], t: BUNDLES[code] }\n}\n","import{options as r,Fragment as e}from\"preact\";export{Fragment}from\"preact\";var t=/[\"&<]/;function n(r){if(0===r.length||!1===t.test(r))return r;for(var e=0,n=0,o=\"\",f=\"\";n<r.length;n++){switch(r.charCodeAt(n)){case 34:f=\""\";break;case 38:f=\"&\";break;case 60:f=\"<\";break;default:continue}n!==e&&(o+=r.slice(e,n)),o+=f,e=n+1}return n!==e&&(o+=r.slice(e,n)),o}var o=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,f=0,i=Array.isArray;function u(e,t,n,o,i,u){t||(t={});var a,c,p=t;if(\"ref\"in p)for(c in p={},t)\"ref\"==c?a=t[c]:p[c]=t[c];var l={type:e,props:p,key:n,ref:a,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--f,__i:-1,__u:0,__source:i,__self:u};if(\"function\"==typeof e&&(a=e.defaultProps))for(c in a)void 0===p[c]&&(p[c]=a[c]);return r.vnode&&r.vnode(l),l}function a(r){var t=u(e,{tpl:r,exprs:[].slice.call(arguments,1)});return t.key=t.__v,t}var c={},p=/[A-Z]/g;function l(e,t){if(r.attr){var f=r.attr(e,t);if(\"string\"==typeof f)return f}if(t=function(r){return null!==r&&\"object\"==typeof r&&\"function\"==typeof r.valueOf?r.valueOf():r}(t),\"ref\"===e||\"key\"===e)return\"\";if(\"style\"===e&&\"object\"==typeof t){var i=\"\";for(var u in t){var a=t[u];if(null!=a&&\"\"!==a){var l=\"-\"==u[0]?u:c[u]||(c[u]=u.replace(p,\"-$&\").toLowerCase()),s=\";\";\"number\"!=typeof a||l.startsWith(\"--\")||o.test(l)||(s=\"px;\"),i=i+l+\":\"+a+s}}return e+'=\"'+n(i)+'\"'}return null==t||!1===t||\"function\"==typeof t||\"object\"==typeof t?\"\":!0===t?e:e+'=\"'+n(\"\"+t)+'\"'}function s(r){if(null==r||\"boolean\"==typeof r||\"function\"==typeof r)return null;if(\"object\"==typeof r){if(void 0===r.constructor)return r;if(i(r)){for(var e=0;e<r.length;e++)r[e]=s(r[e]);return r}}return n(\"\"+r)}export{u as jsx,l as jsxAttr,u as jsxDEV,s as jsxEscape,a as jsxTemplate,u as jsxs};\n//# sourceMappingURL=jsxRuntime.module.js.map\n","/**\n * Runtime shared by every widget element (`<sqc-table>`, `<sqc-choices>`…).\n *\n * An element is a Preact component in a shadow root, driven by properties and\n * answering through one DOM event, so the chat widget and any other host (the\n * console) use it the same way and know nothing of what is inside.\n *\n * The class is built when `createWidgetElement` is called — from\n * `defineChatWidgets()`, never at module level — because `class X extends\n * HTMLElement` throws on a server-side import.\n */\nimport { h, render, type FunctionComponent } from 'preact'\nimport type { LanguageCode } from '../lib/i18n'\n\nexport interface WidgetBase {\n /** An answered or superseded widget: shown, no longer interactive. */\n locked: boolean\n language: LanguageCode\n /** Sends text back as the visitor's answer, and locks the widget. */\n reply: (text: string) => void\n}\n\n/** One `CSSStyleSheet` per stylesheet text, shared by every instance; `null` where unsupported. */\nconst sheets = new Map<string, CSSStyleSheet | null>()\n\nfunction sharedSheet(css: string): CSSStyleSheet | null {\n if (sheets.has(css)) return sheets.get(css) ?? null\n let sheet: CSSStyleSheet | null\n try {\n sheet = new CSSStyleSheet()\n sheet.replaceSync(css)\n } catch {\n sheet = null\n }\n sheets.set(css, sheet)\n return sheet\n}\n\n/**\n * `css` is passed in rather than imported, so a bundle holding only some of\n * the elements (the extras, loaded on first use) carries only their styles.\n */\nexport function createWidgetElement<P>(\n Component: FunctionComponent<P & WidgetBase>,\n props: (keyof P)[],\n css: string,\n): CustomElementConstructor {\n const names = [...props, 'locked', 'language'] as string[]\n\n class WidgetElement extends HTMLElement {\n #values: Record<string, unknown> = { locked: false, language: 'en' }\n #mount: HTMLElement\n #connected = false\n\n constructor() {\n super()\n const shadow = this.attachShadow({ mode: 'open' })\n const adoptable = sharedSheet(css)\n if (adoptable) {\n shadow.adoptedStyleSheets = [adoptable]\n } else {\n const style = document.createElement('style')\n style.textContent = css\n shadow.append(style)\n }\n this.#mount = document.createElement('div')\n shadow.append(this.#mount)\n\n // A value written before the upgrade shadows the accessor: hand it back.\n for (const name of names) {\n if (!Object.hasOwn(this, name)) continue\n const value = (this as Record<string, unknown>)[name]\n delete (this as Record<string, unknown>)[name]\n ;(this as Record<string, unknown>)[name] = value\n }\n }\n\n connectedCallback(): void {\n this.#connected = true\n this.#render()\n }\n\n disconnectedCallback(): void {\n this.#connected = false\n render(null, this.#mount)\n }\n\n set(name: string, value: unknown): void {\n this.#values[name] = value\n this.#render()\n }\n\n get(name: string): unknown {\n return this.#values[name]\n }\n\n #reply = (text: string): void => {\n if (this.#values.locked) return\n this.set('locked', true)\n this.dispatchEvent(\n new CustomEvent('sqc-reply', { detail: { text }, bubbles: true, composed: true }),\n )\n }\n\n #render(): void {\n if (!this.#connected) return\n render(h(Component, { ...this.#values, reply: this.#reply } as P & WidgetBase), this.#mount)\n }\n }\n\n for (const name of names) {\n Object.defineProperty(WidgetElement.prototype, name, {\n get(this: WidgetElement) {\n return this.get(name)\n },\n set(this: WidgetElement, value: unknown) {\n this.set(name, value)\n },\n configurable: true,\n })\n }\n\n return WidgetElement\n}\n","/** Tag names of the widget elements, in a module of their own so either bundle can name them. */\nexport const WIDGET_TAGS = {\n table: 'sqc-table',\n choices: 'sqc-choices',\n confirm: 'sqc-confirm',\n form: 'sqc-form',\n chart: 'sqc-chart',\n approval: 'sqc-approval',\n} as const\n","import { resolveLocale, type LanguageCode, type Strings } from '../lib/i18n'\n\n/** The copy of a language, for an element that is only told its code. */\nexport function strings(language: LanguageCode): Strings {\n return resolveLocale(language).t\n}\n","/**\n * Inline Markdown shared by the answer text and the widget elements: emphasis,\n * code, links. Everything is produced as Preact nodes, hence escaped by\n * construction; a link is only rendered when its href is navigable.\n */\nimport type { JSX } from 'preact'\n\nexport type Inline = JSX.Element | string\n\n/**\n * Emphasis, code, Markdown links and bare URLs. Deliberately without `_`/`__`:\n * domain identifiers (`order_id`, `record_ref`, `item_1`) would be turned into\n * italics at the first pair.\n */\nconst INLINE =\n /(\\*\\*[^*\\n]+\\*\\*|`[^`\\n]+`|~~[^~\\n]+~~|\\[[^\\]\\n]+\\]\\([^)\\s]+\\)|\\*[^*\\n]+\\*|https?:\\/\\/[^\\s<>()]+)/g\n\nconst MD_LINK = /^\\[([^\\]\\n]+)\\]\\(([^)\\s]+)\\)$/\n/**\n * An href is only rendered when it is navigable: no `javascript:`, no `data:`.\n * A path (`/agents`) is the site the chat sits on; `//host` is not a path.\n */\nconst SAFE_HREF = /^(https?:|mailto:|\\/(?!\\/))/i\n\n/** Whether `href` stays on the site the chat sits on. */\nfunction onThisSite(href: string): boolean {\n if (typeof location === 'undefined') return false\n try {\n return new URL(href, location.href).origin === location.origin\n } catch {\n return false\n }\n}\n\nfunction link(href: string, label: string, key: string): Inline {\n if (!SAFE_HREF.test(href)) return label\n // A link of the site itself opens in place, like any of its own links; only a\n // link leaving it opens a new tab, without handing it the page.\n if (onThisSite(href)) {\n return (\n <a key={key} href={href}>\n {label}\n </a>\n )\n }\n return (\n <a key={key} href={href} target=\"_blank\" rel=\"noopener noreferrer\">\n {label}\n </a>\n )\n}\n\nexport function inline(text: string, keyPrefix: string): Inline[] {\n const parts = text.split(INLINE)\n const nodes: Inline[] = []\n\n parts.forEach((part, index) => {\n if (!part) return\n const key = `${keyPrefix}-${index}`\n const mdLink = MD_LINK.exec(part)\n\n if (part.startsWith('**') && part.endsWith('**') && part.length > 4) {\n nodes.push(<strong key={key}>{part.slice(2, -2)}</strong>)\n } else if (part.startsWith('`') && part.endsWith('`') && part.length > 2) {\n nodes.push(<code key={key}>{part.slice(1, -1)}</code>)\n } else if (part.startsWith('~~') && part.endsWith('~~') && part.length > 4) {\n nodes.push(<del key={key}>{part.slice(2, -2)}</del>)\n } else if (mdLink) {\n nodes.push(link(mdLink[2], mdLink[1], key))\n } else if (part.startsWith('*') && part.endsWith('*') && part.length > 2) {\n nodes.push(<em key={key}>{part.slice(1, -1)}</em>)\n } else if (/^https?:\\/\\//.test(part)) {\n nodes.push(link(part, part, key))\n } else {\n nodes.push(part)\n }\n })\n\n return nodes\n}\n\n/** Text without markup: what the agent must receive when an option is clicked. */\nexport function plain(text: string): string {\n return text\n .replace(/\\[([^\\]\\n]+)\\]\\([^)\\s]+\\)/g, '$1')\n .replace(/\\*\\*|~~|`|\\*/g, '')\n .trim()\n}\n","import type { JSX } from 'preact'\nimport { useState } from 'preact/hooks'\nimport type { WidgetBase } from '../element'\nimport { strings } from '../i18n'\nimport { inline, plain } from '../inline'\n\ninterface ChoicesProps {\n options: string[]\n multiple?: boolean\n /** Options pre-ticked by the Markdown (`- (x) …`, `- [x] …`). */\n checked?: string[]\n}\n\nfunction CheckIcon(): JSX.Element {\n return (\n <svg viewBox=\"0 0 16 16\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2.2\" aria-hidden=\"true\">\n <path d=\"M3.5 8.5l3 3 6-7\" stroke-linecap=\"round\" stroke-linejoin=\"round\" />\n </svg>\n )\n}\n\n/**\n * Options offered by the assistant. Single, drawn with round marks: one click\n * answers with the label.\n * Multiple: tick any, then one button sends the labels comma-joined. The label\n * sent is stripped of its markup — the agent matches candidates by name.\n */\nexport function SqcChoices({\n options = [],\n multiple,\n checked,\n locked,\n language,\n reply,\n}: ChoicesProps & WidgetBase): JSX.Element {\n const t = strings(language)\n const labels = options.map(plain)\n const [ticked, setTicked] = useState<number[] | null>(null)\n // The Markdown ticks only hold until the visitor has decided, and only on options offered;\n // a single choice keeps the first.\n const preset = options.flatMap((option, index) => (checked?.includes(option) ? [index] : []))\n const on = ticked ?? (multiple ? preset : preset.slice(0, 1))\n\n const pick = (index: number): void => {\n if (locked) return\n if (!multiple) {\n setTicked([index])\n reply(labels[index])\n return\n }\n setTicked(on.includes(index) ? on.filter((i) => i !== index) : [...on, index])\n }\n\n return (\n <div class=\"choices\" role=\"group\" aria-label={t.choices}>\n {options.map((option, index) => (\n <button\n key={`${index}-${labels[index]}`}\n type=\"button\"\n class=\"choice\"\n aria-pressed={on.includes(index)}\n disabled={locked}\n onClick={() => pick(index)}\n >\n <span class={`box${on.includes(index) ? ' on' : ''}`} aria-hidden=\"true\">\n {on.includes(index) && <CheckIcon />}\n </span>\n <span class=\"label\">{inline(option, `o${index}`)}</span>\n </button>\n ))}\n {multiple && (\n <button\n type=\"button\"\n class=\"send\"\n disabled={locked || on.length === 0}\n onClick={() => {\n setTicked(on)\n reply(\n [...on]\n .sort((a, b) => a - b)\n .map((i) => labels[i])\n .join(', '),\n )\n }}\n >\n {t.selection.validate}\n </button>\n )}\n </div>\n )\n}\n","import type { JSX } from 'preact'\nimport { useState } from 'preact/hooks'\nimport { strings } from '../i18n'\nimport type { WidgetBase } from '../element'\n\n/**\n * Yes / No under a closed question. A bare \"yes\" is recognised agent-side\n * without a model call, so the word sent is the one of the visitor's language.\n *\n * The third button sends nothing: it asks the host, through `sqc-compose`, to\n * hand the visitor the composer. The widget stays live until their message\n * arrives — they may still change their mind and click Yes.\n */\nexport function SqcConfirm({ locked, language, reply }: WidgetBase): JSX.Element {\n const [picked, setPicked] = useState<string | null>(null)\n const { confirm } = strings(language)\n const answers = [\n { value: confirm.yesValue, label: confirm.yes, kind: 'yes' },\n { value: confirm.noValue, label: confirm.no, kind: 'no' },\n ]\n\n return (\n <div class=\"confirm\" role=\"group\" aria-label={confirm.group}>\n {answers.map((answer) => (\n <button\n key={answer.kind}\n type=\"button\"\n class={answer.kind}\n aria-pressed={picked === answer.value}\n disabled={locked}\n onClick={() => {\n setPicked(answer.value)\n reply(answer.value)\n }}\n >\n {answer.label}\n </button>\n ))}\n <button\n type=\"button\"\n class=\"other\"\n disabled={locked}\n onClick={(event) =>\n event.currentTarget.dispatchEvent(\n new CustomEvent('sqc-compose', { bubbles: true, composed: true }),\n )\n }\n >\n {confirm.other}\n </button>\n </div>\n )\n}\n","import type { JSX } from 'preact'\nimport { useMemo, useState } from 'preact/hooks'\nimport type { WidgetBase } from '../element'\nimport { strings } from '../i18n'\nimport { inline, plain } from '../inline'\n\nconst MAX_ROWS = 200\n\ninterface TableProps {\n table: { header: string[]; rows: string[][] }\n}\n\nconst collator = new Intl.Collator(undefined, { numeric: true, sensitivity: 'base' })\n\n/** A cell as copied: markup and line breaks gone, so a row stays one line. */\nconst flat = (cell: string | undefined): string => plain(cell ?? '').replace(/[\\t\\r\\n]+/g, ' ')\n\n/**\n * A record listing: click a header to sort (numbers by value), at most 200\n * rows drawn, the whole table copied as TSV. Cells are inline Markdown turned\n * into nodes, never HTML.\n */\nexport function SqcTable({ table, language }: TableProps & WidgetBase): JSX.Element {\n const t = strings(language)\n const { header = [], rows = [] } = table ?? {}\n const [sort, setSort] = useState<{ column: number; descending: boolean } | null>(null)\n const [copied, setCopied] = useState(false)\n\n const ordered = useMemo(() => {\n if (!sort) return rows\n const sign = sort.descending ? -1 : 1\n return [...rows].sort(\n (a, b) => sign * collator.compare(flat(a[sort.column]), flat(b[sort.column])),\n )\n }, [rows, sort])\n\n const copy = (): void => {\n const lines = [header, ...ordered].map((row) =>\n header.map((_, column) => flat(row[column])).join('\\t'),\n )\n // Said only once the clipboard took it, and for a moment: a refusal says nothing.\n navigator.clipboard?.writeText(lines.join('\\n')).then(\n () => {\n setCopied(true)\n setTimeout(() => setCopied(false), 2000)\n },\n () => undefined,\n )\n }\n\n const hidden = ordered.length - MAX_ROWS\n\n return (\n <div>\n <div class=\"table\">\n <table>\n <thead>\n <tr>\n {header.map((cell, column) => (\n <th\n key={column}\n aria-sort={\n sort?.column === column ? (sort.descending ? 'descending' : 'ascending') : 'none'\n }\n >\n <button\n type=\"button\"\n onClick={() =>\n setSort({\n column,\n descending: sort?.column === column && !sort.descending,\n })\n }\n >\n {inline(cell, `h${column}`)}\n </button>\n </th>\n ))}\n </tr>\n </thead>\n <tbody>\n {ordered.slice(0, MAX_ROWS).map((row, index) => (\n <tr key={index}>\n {header.map((_, column) => (\n <td key={column}>{inline(row[column] ?? '', `r${index}c${column}`)}</td>\n ))}\n </tr>\n ))}\n </tbody>\n </table>\n </div>\n <div class=\"foot\">\n {hidden > 0 && <span>{t.table.more.replace('{count}', String(hidden))}</span>}\n <button type=\"button\" class=\"copy\" onClick={copy}>\n {copied ? t.table.copied : t.table.copy}\n </button>\n </div>\n </div>\n )\n}\n",".choices {\n display: flex;\n flex-direction: column;\n gap: 7px;\n margin: 10px 0 2px;\n}\n\n.choice {\n display: flex;\n align-items: center;\n gap: 8px;\n width: 100%;\n padding: 8px 11px;\n font-size: 12.5px;\n text-align: left;\n color: var(--w-text);\n background: var(--w-bg);\n border: 1px solid var(--w-border);\n border-radius: 12px;\n cursor: pointer;\n}\n\n.choice:hover:not(:disabled) {\n border-color: var(--w-border-strong);\n background: var(--w-surface);\n}\n\n.choice:disabled {\n cursor: default;\n}\n\n.choice:disabled[aria-pressed='false'] {\n opacity: 0.55;\n}\n\n.choice[aria-pressed='true'] {\n border-color: var(--w-border-strong);\n background: var(--w-selected);\n}\n\n.box {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n flex: 0 0 auto;\n width: 15px;\n height: 15px;\n border: 1.5px solid var(--w-border-strong);\n border-radius: 4px;\n}\n\n/* A single choice has no Send button: its marks are round, like radios. */\n.choices:not(:has(.send)) .box {\n border-radius: 50%;\n}\n\n.box.on {\n color: var(--w-on-accent);\n background: var(--w-accent);\n border-color: var(--w-accent);\n}\n\n.box svg {\n width: 11px;\n height: 11px;\n}\n\n.label {\n overflow-wrap: anywhere;\n}\n\n.send {\n align-self: flex-end;\n height: 32px;\n padding: 0 14px;\n font-size: 13px;\n font-weight: 600;\n border: 0;\n border-radius: 12px;\n background: var(--w-accent);\n color: var(--w-on-accent);\n cursor: pointer;\n}\n\n.send:disabled {\n opacity: 0.4;\n cursor: default;\n}\n",".confirm {\n display: flex;\n flex-wrap: wrap;\n gap: 8px;\n margin: 11px 0 2px;\n}\n\n.confirm button {\n flex: 1 1 0;\n height: 32px;\n padding: 0 12px;\n font-size: 13px;\n font-weight: 500;\n border-radius: 12px;\n border: 1px solid var(--w-border);\n background: var(--w-bg);\n color: var(--w-text);\n cursor: pointer;\n}\n\n.confirm .other {\n flex-basis: 100%;\n}\n\n.confirm .yes:not(:disabled) {\n border-color: transparent;\n background: var(--w-accent);\n color: var(--w-on-accent);\n font-weight: 600;\n}\n\n.confirm button:hover:not(:disabled) {\n border-color: var(--w-border-strong);\n background: var(--w-surface);\n}\n\n.confirm .yes:hover:not(:disabled) {\n border-color: transparent;\n background: var(--w-accent-hover);\n}\n\n.confirm button:disabled {\n cursor: default;\n}\n\n.confirm button:disabled:not([aria-pressed='true']) {\n opacity: 0.45;\n}\n\n.confirm button[aria-pressed='true'] {\n border-color: var(--w-border-strong);\n background: var(--w-selected);\n color: var(--w-text);\n font-weight: 600;\n}\n",".table {\n margin: 0 0 8px;\n overflow-x: auto;\n scrollbar-width: thin;\n}\n\ntable {\n min-width: 100%;\n border-collapse: collapse;\n font-size: 12.5px;\n white-space: nowrap;\n}\n\nth,\ntd {\n padding: 6px 10px 6px 0;\n text-align: left;\n vertical-align: top;\n border-bottom: 1px solid color-mix(in srgb, currentColor 18%, transparent);\n}\n\nthead th {\n font-size: 10.5px;\n font-weight: 600;\n text-transform: uppercase;\n letter-spacing: 0.05em;\n}\n\nthead button {\n padding: 0;\n font: inherit;\n text-transform: inherit;\n letter-spacing: inherit;\n background: none;\n border: 0;\n opacity: 0.7;\n cursor: pointer;\n}\n\nthead button:hover {\n opacity: 1;\n}\n\ntbody tr:last-child td {\n border-bottom: 0;\n}\n\n.foot {\n display: flex;\n align-items: center;\n gap: 10px;\n font-size: 11.5px;\n opacity: 0.8;\n}\n\n.copy {\n padding: 2px 8px;\n font-size: 11.5px;\n background: none;\n border: 1px solid var(--w-border);\n border-radius: 8px;\n cursor: pointer;\n}\n","/*\n * Defaults every widget element draws with.\n *\n * Under the chat widget the `--sqc-*` roles are inherited through the shadow\n * boundary from the panel, so they win; anywhere else (the console) the\n * fallbacks apply. Internal `--w-*` aliases carry the resolved value: declaring\n * `--sqc-*` on :host itself would hide the inherited ones.\n */\n:host {\n display: block;\n --w-bg: var(--sqc-bg, #fff);\n --w-surface: var(--sqc-surface, #f8fafc);\n --w-selected: var(--sqc-selected, #f1f5f9);\n --w-border: var(--sqc-border, #e2e8f0);\n --w-border-strong: var(--sqc-border-strong, #cbd5e1);\n --w-text: var(--sqc-text, #0f172a);\n --w-muted: var(--sqc-text-muted, #64748b);\n --w-accent: var(--sqc-accent-color, var(--sqc-accent, #000));\n --w-on-accent: var(--sqc-on-accent, #fff);\n --w-accent-hover: var(\n --sqc-accent-hover,\n color-mix(in oklab, var(--w-accent) 84%, var(--w-on-accent))\n );\n --w-focus: var(--sqc-focus, 0 0 0 2px #fff, 0 0 0 4px rgb(15 23 42 / 30%));\n --w-font: var(--sqc-font-family, system-ui, sans-serif);\n font-family: var(--w-font);\n}\n\n:host([hidden]) {\n display: none;\n}\n\nbutton {\n font-family: inherit;\n color: inherit;\n}\n\nbutton:focus-visible {\n outline: none;\n box-shadow: var(--w-focus);\n}\n","import choices from './choices/choices.css?inline'\nimport confirm from './confirm/confirm.css?inline'\nimport table from './table/table.css?inline'\nimport theme from './theme.css?inline'\n\n/** One stylesheet for every widget element: theme first, then each component's. */\nexport const WIDGET_CSS = [theme, table, choices, confirm].join('\\n')\n","import { createWidgetElement } from './element'\nimport { WIDGET_TAGS } from './names'\nimport { SqcChoices } from './choices/SqcChoices'\nimport { SqcConfirm } from './confirm/SqcConfirm'\nimport { SqcTable } from './table/SqcTable'\nimport { WIDGET_CSS } from './styles'\n\nexport { WIDGET_TAGS } from './names'\n\n/**\n * Registers the widget elements every answer may hold. Idempotent; does nothing\n * where there is no DOM. The heavier, rarer ones (form, chart, approval) live\n * in `./extras`.\n */\nexport function defineChatWidgets(): void {\n if (typeof customElements === 'undefined') return\n\n const elements: [string, () => CustomElementConstructor][] = [\n [WIDGET_TAGS.table, () => createWidgetElement(SqcTable, ['table'], WIDGET_CSS)],\n [\n WIDGET_TAGS.choices,\n () => createWidgetElement(SqcChoices, ['options', 'multiple', 'checked'], WIDGET_CSS),\n ],\n [WIDGET_TAGS.confirm, () => createWidgetElement(SqcConfirm, [], WIDGET_CSS)],\n ]\n for (const [tag, build] of elements) {\n if (!customElements.get(tag)) customElements.define(tag, build())\n }\n}\n","/** The qualification the toolbox adds so two servers may both offer `search`:\n * `mcp_`, `custom_` or `a2a_`, then eight hex characters of an id. Ours, and\n * meaningless to a visitor. */\nconst QUALIFIED_TOOL_NAME = /^(?:mcp|custom|a2a)_[0-9a-f]{8}_/\n\n/** A name a person can read: `pull_request_read` becomes \"Pull request read\". */\nexport function readable(name: string): string {\n const words = name\n .replace(QUALIFIED_TOOL_NAME, '')\n .replace(/([a-z0-9])([A-Z])/g, '$1 $2')\n .replace(/[_-]+/g, ' ')\n .trim()\n .toLowerCase()\n if (!words) return name\n return words.charAt(0).toUpperCase() + words.slice(1)\n}\n","/**\n * Loads the extra widget elements (`./extras`) the first time an answer needs\n * one. A failure never reaches rendering — the element shows its light-DOM\n * fallback — and is tried again by the next block that needs the extras.\n *\n * The standalone bundle is an IIFE, where Vite inlines `import()`: there the\n * extras are a second file, fetched from beside the main script.\n */\nconst EXTRAS_FILE = 'chatbot-widgets.global.js'\n\n/**\n * The main bundle's URL: `…/chatbot.global.js`, or the bare package URL a CDN\n * serves it under (`…/@squadico/chatbot@1.5.2`).\n */\nconst BUNDLE_URL = /(?:\\/chatbot\\.global\\.js|\\/@squadico\\/chatbot(?:@[^/?#]*)?\\/?)(?:[?#]|$)/\n\n/**\n * URL and CSP nonce of the running script. `currentScript` only holds while a\n * classic script evaluates; in a module script it is null, and the bundle is\n * looked for in the page by its URL instead.\n */\nexport function captureScript(): { src: string; nonce: string } {\n const script =\n (document.currentScript as HTMLScriptElement | null) ??\n Array.from(document.querySelectorAll<HTMLScriptElement>('script[src]'))\n .reverse()\n .find((candidate) => BUNDLE_URL.test(candidate.src))\n return { src: script?.src ?? '', nonce: script?.nonce ?? '' }\n}\n\nconst running =\n __SQC_STANDALONE__ && typeof document !== 'undefined' ? captureScript() : { src: '', nonce: '' }\n\n/**\n * Where the extras file sits for a main script at `src`: beside it, or in\n * `dist/` under a short CDN URL (`…/@squadico/chatbot@1.5.2`), where jsDelivr\n * and unpkg serve the main file named by the package's `jsdelivr` / `unpkg`\n * fields.\n */\nexport function extrasUrl(src: string): string {\n const url = new URL(src)\n return url.pathname.endsWith('.js')\n ? new URL(EXTRAS_FILE, url).href\n : new URL(`dist/${EXTRAS_FILE}`, url.href.replace(/\\/?$/, '/')).href\n}\n\n/** Appends a `<script>` for the extras file of the main script at `src`. */\nexport function injectScript(src: string, nonce = ''): Promise<void> {\n return new Promise((resolve, reject) => {\n if (!src) {\n reject(new Error('Squadico chatbot: cannot locate its own script to load the widget extras.'))\n return\n }\n const script = document.createElement('script')\n script.src = extrasUrl(src)\n if (nonce) script.nonce = nonce\n script.async = true\n script.onload = () => resolve()\n script.onerror = () => {\n script.remove()\n reject(new Error(`Squadico chatbot: failed to load ${script.src}.`))\n }\n document.head.append(script)\n })\n}\n\n/** Runs `load` once it has succeeded; a failure is logged and forgotten, so the next call tries again. */\nexport function retrying(load: () => Promise<void>): () => Promise<void> {\n let loading: Promise<void> | undefined\n return () =>\n (loading ??= load().catch((error: unknown) => {\n loading = undefined\n console.warn(error instanceof Error ? error.message : error)\n }))\n}\n\nexport const loadWidgetExtras = retrying(() =>\n __SQC_STANDALONE__\n ? injectScript(running.src, running.nonce)\n : import('./extras').then(({ defineWidgetExtras }) => defineWidgetExtras()),\n)\n","/**\n * Whether a message's widgets still await an answer.\n *\n * Only the last message, written by the assistant and finished, is waited on:\n * anything followed by another message has been answered (or abandoned), which\n * is what a reloaded transcript must show — locked, not live again.\n */\nexport function isLive(\n index: number,\n messages: readonly { role: string; streaming?: boolean }[],\n): boolean {\n const message = messages[index]\n return (\n index === messages.length - 1 && message?.role === 'assistant' && !message.streaming\n )\n}\n","/**\n * Detection of the assistant's closed questions, so \"Yes\" / \"No\" can be offered\n * instead of making the user retype the answer.\n *\n * The `Chat display` skill (apps/backend/app/agents/display_skill.py) has the\n * agent mark such a question explicitly: its last line ends with `(yes/no)`,\n * `(oui/non)` or `(sí/no)`, a marker hidden once the buttons are drawn.\n *\n * An agent without the skill writes no marker, so the phrasings agents actually\n * produce are recognised too, as a fallback. That list is deliberately narrow:\n * an open question (\"Which records would you like to see?\") must not bring up\n * buttons. It is keyed by language, the widget's locale picking the set — a\n * single English set would leave a French-speaking host without buttons.\n */\nimport { DEFAULT_LANGUAGE, type LanguageCode } from '../../lib/i18n'\n\n/** \"Reply YES to confirm\": an answer instruction, not a question. */\nconst ANSWER_HINT: Record<LanguageCode, RegExp> = {\n fr: /\\br[ée]ponde?z? +«?\\s*oui\\b/i,\n en: /\\b(?:reply|answer|respond) +[“\"']?\\s*yes\\b/i,\n // `\\b` is ASCII-only: after « í » it never holds, hence the Unicode lookahead.\n es: /\\bresponda?e?d? +«?\\s*s[íi](?!\\p{L})/iu,\n}\n\nconst PATTERNS: Record<LanguageCode, RegExp[]> = {\n fr: [\n /\\b(?:confirmes?[- ]tu|confirmez[- ]vous)\\b/i,\n /\\b(?:valides?[- ]tu|validez[- ]vous)\\b/i,\n /(?<!\\p{L})(?:es[- ]tu s[ûu]re?|[êe]tes[- ]vous s[ûu]re?s?)(?!\\p{L})/iu,\n /\\b(?:dois[- ]je|puis[- ]je)\\b/i,\n /\\b(?:je continue|on continue|on y va|je lance)\\b/i,\n ANSWER_HINT.fr,\n ],\n en: [\n /\\bdo you confirm\\b/i,\n /\\bdo you (?:want|wish) me to\\b/i,\n /\\b(?:shall|should) I\\b/i,\n /\\bare you sure\\b/i,\n /\\b(?:shall we|should I) (?:proceed|continue|go ahead)\\b/i,\n ANSWER_HINT.en,\n ],\n es: [\n /\\b(?:confirmas|confirma|confirm[áa]is)\\b/i,\n /\\b(?:validas|valida|valid[áa]is)\\b/i,\n /\\best[áa]s? seguro\\b/i,\n /\\b(?:contin[úu]o|procedo|lo lanzo|lo hago)\\b/i,\n /\\bquieres? que\\b/i,\n ANSWER_HINT.es,\n ],\n}\n\n/** Tickable options already carry their own buttons. */\nconst CHECKBOX = /^\\s*(?:[-*•]\\s+)?(?:\\[[ xX]\\]|\\([ xX]\\))\\s+/m\n\n/** The explicit marker closing the answer, in any of the supported languages. */\nconst MARKER = /[ \\t]*\\(\\s*(?:yes|oui|s[íi])\\s*\\/\\s*non?\\s*\\)\\s*$/i\n\n/** The answer without its closing yes/no marker. */\nexport function unmark(text: string): string {\n return text.replace(MARKER, '')\n}\n\nexport function isConfirmationPrompt(\n text: string,\n language: LanguageCode = DEFAULT_LANGUAGE,\n): boolean {\n if (CHECKBOX.test(text)) return false\n\n const lines = text\n .split('\\n')\n .map((line) => line.trim())\n .filter(Boolean)\n const last = lines[lines.length - 1]\n if (!last) return false\n if (MARKER.test(last)) return true\n // A closed question ends with \"?\" — except when the answer instruction takes\n // up the last line (\"Reply YES to confirm.\").\n if (!last.includes('?') && !ANSWER_HINT[language].test(last)) return false\n\n return PATTERNS[language].some((pattern) => pattern.test(last))\n}\n","import type { FieldType, FormField, FormSpec } from '../types'\n\nexport const MAX_OPTIONS = 20\nexport const MAX_FIELDS = 12\n\nconst FIELD_TYPES: readonly FieldType[] = ['text', 'number', 'date', 'email', 'select']\n\nfunction parse(json: string): unknown {\n try {\n return JSON.parse(json)\n } catch {\n return null\n }\n}\n\nfunction isRecord(value: unknown): value is Record<string, unknown> {\n return typeof value === 'object' && value !== null && !Array.isArray(value)\n}\n\nfunction readOptions(value: unknown): string[] | null {\n if (!Array.isArray(value) || value.length === 0 || value.length > MAX_OPTIONS) return null\n if (!value.every((option) => typeof option === 'string' && option.trim())) return null\n return value as string[]\n}\n\nfunction readField(value: unknown): FormField | null {\n if (!isRecord(value)) return null\n const { name, label, type } = value\n if (typeof name !== 'string' || !name.trim()) return null\n if (typeof label !== 'string' || !label.trim()) return null\n if (typeof type !== 'string' || !FIELD_TYPES.includes(type as FieldType)) return null\n\n const field: FormField = {\n name,\n label,\n type: type as FieldType,\n required: value.required === true,\n }\n if (type === 'select') {\n const options = readOptions(value.options)\n if (!options) return null\n field.options = options\n }\n return field\n}\n\n/** A `form` fence body, or `null` when it is not valid or exceeds the limits. */\nexport function readForm(json: string): FormSpec | null {\n const data = parse(json)\n if (!isRecord(data) || !Array.isArray(data.fields)) return null\n if (data.fields.length === 0 || data.fields.length > MAX_FIELDS) return null\n\n const fields: FormField[] = []\n for (const raw of data.fields) {\n const field = readField(raw)\n if (!field || fields.some((other) => other.name === field.name)) return null\n fields.push(field)\n }\n\n const form: FormSpec = { fields }\n if (typeof data.title === 'string') form.title = data.title\n if (typeof data.submit === 'string') form.submit = data.submit\n return form\n}\n","import type { LanguageCode } from '../../lib/i18n'\nimport type { ParsedAnswer, WidgetBlock } from '../types'\nimport { isConfirmationPrompt, unmark } from './confirm'\nimport { MAX_OPTIONS, readForm } from './form'\n\n/**\n * One option, with or without a bullet: `- ( ) Name` offers a single choice,\n * `- [ ] Name` one of several; `x` inside pre-ticks it. `( ) Name` without the\n * bullet is accepted too, so this does not depend on the exact template.\n */\nconst CHOICE = /^\\s*(?:[-*•]\\s+)?(?:\\[([ xX])\\]|\\(([ xX])\\))\\s+(.+)$/\nconst TABLE_ROW = /^\\s*\\|.*\\|\\s*$/\nconst TABLE_SEP = /^\\s*\\|(?:\\s*:?-{1,}:?\\s*\\|)+\\s*$/\nconst FENCE = /^\\s*```/\n\n/** Splits a table row into cells (escaped pipes are not handled). */\nfunction cells(row: string): string[] {\n return row\n .replace(/^\\s*\\|/, '')\n .replace(/\\|\\s*$/, '')\n .split('|')\n .map((cell) => cell.trim())\n}\n\n/**\n * Splits an answer into markdown, table, choices and form blocks. A fence that\n * is invalid, unknown or still open (answer streaming) stays markdown, verbatim.\n *\n * `confirmable`: whether Yes / No buttons may go under this answer. Where they\n * do, the `(yes/no)` marker that asked for them is not shown.\n */\nexport function parseAnswer(\n text: string,\n language: LanguageCode,\n confirmable = true,\n): ParsedAnswer {\n const confirm = confirmable && isConfirmationPrompt(text, language)\n const lines = (confirm ? unmark(text) : text).split('\\n')\n const blocks: WidgetBlock[] = []\n let markdown: string[] = []\n\n const flush = (): void => {\n const joined = markdown.join('\\n').replace(/^\\n+|\\n+$/g, '')\n if (joined.trim()) blocks.push({ kind: 'markdown', text: joined })\n markdown = []\n }\n\n for (let cursor = 0; cursor < lines.length; cursor += 1) {\n const line = lines[cursor]\n\n if (FENCE.test(line)) {\n let end = cursor + 1\n while (end < lines.length && !FENCE.test(lines[end])) end += 1\n const closed = end < lines.length\n const info = line.replace(/^\\s*```/, '').trim().toLowerCase()\n const body = lines.slice(cursor + 1, end).join('\\n')\n\n let block: WidgetBlock | null = null\n if (closed && info === 'form') {\n const form = readForm(body)\n if (form) block = { kind: 'form', form }\n }\n\n if (block) {\n flush()\n blocks.push(block)\n } else {\n // Taken literally up to the closing fence (or the end when still open).\n markdown.push(...lines.slice(cursor, closed ? end + 1 : end))\n }\n cursor = closed ? end : end - 1\n continue\n }\n\n if (TABLE_ROW.test(line) && cursor + 1 < lines.length && TABLE_SEP.test(lines[cursor + 1])) {\n flush()\n const header = cells(line)\n const rows: string[][] = []\n cursor += 2\n while (cursor < lines.length && TABLE_ROW.test(lines[cursor])) {\n rows.push(cells(lines[cursor]))\n cursor += 1\n }\n cursor -= 1\n blocks.push({ kind: 'table', header, rows })\n continue\n }\n\n const first = CHOICE.exec(line)\n if (first) {\n // A run of options of one kind: radios or checkboxes.\n const multiple = first[1] !== undefined\n const options: string[] = []\n const checked: string[] = []\n let end = cursor\n let choice: RegExpExecArray | null = first\n while (choice && (choice[1] !== undefined) === multiple) {\n const label = choice[3].trim()\n options.push(label)\n // A single choice keeps only its first preselected option.\n const ticked = (choice[1] ?? choice[2]) !== ' '\n if (ticked && (multiple || !checked.length)) checked.push(label)\n end += 1\n choice = end < lines.length ? CHOICE.exec(lines[end]) : null\n }\n if (options.length > MAX_OPTIONS) {\n markdown.push(...lines.slice(cursor, end))\n } else {\n flush()\n const block: WidgetBlock = { kind: 'choices', options, multiple }\n if (checked.length) block.checked = checked\n blocks.push(block)\n }\n cursor = end - 1\n continue\n }\n\n markdown.push(line)\n }\n\n flush()\n return { blocks, confirm }\n}\n"],"x_google_ignoreList":[0,1,3],"mappings":"AAAA,IAAI,EAAEA,EAAEC,EAAIE,EAAEC,EAAEC,EAAEC,EAAEC,EAAEC,EAAEC,EAAEC,EAAEC,EAAEC,EAAEC,EAAIE,EAAE,CAAC,EAAEC,EAAE,CAAC,EAAEC,EAAE,oEAAoE,EAAE,MAAM,QAAQ,SAASC,EAAE,EAAE,EAAE,CAAC,IAAI,IAAI,KAAK,EAAE,EAAE,GAAG,EAAE,GAAG,OAAO,CAAC,CAAC,SAAS,EAAE,EAAE,CAAC,GAAG,EAA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