PageSourceSearch

https://assistant.eiti.gov.ua/chat-widget.js

js eiti.gov.ua collected 2026-10-08 06:55:31 UTC 48,623 bytes, 1 lines download raw bytes

1var e,t,n,i,r,o=!1,s=!1,a=[],l=-1;function c(e){!function(e){a.includes(e)||a.push(e);s||o||(o=!0,queueMicrotask(d))}(e)}function u(e){let t=a.indexOf(e);-1!==t&&t>l&&a.splice(t,1)}function d(){o=!1,s=!0;for(let e=0;e<a.length;e++)a[e](),l=e;a.length=0,l=-1,s=!1}var f=!0;function p(e){n=e}function h(e,t){let r,o=!0,s=n(()=>{let n=e();JSON.stringify(n),o?r=n:queueMicrotask(()=>{t(n,r),r=n}),o=!1});return()=>i(s)}var g=[],m=[],x=[];function v(e,t){"function"==typeof t?(e._x_cleanups||(e._x_cleanups=[]),e._x_cleanups.push(t)):(t=e,m.push(t))}function y(e){g.push(e)}function b(e,t,n){e._x_attributeCleanups||(e._x_attributeCleanups={}),e._x_attributeCleanups[t]||(e._x_attributeCleanups[t]=[]),e._x_attributeCleanups[t].push(n)}function w(e,t){e._x_attributeCleanups&&Object.entries(e._x_attributeCleanups).forEach(([n,i])=>{(void 0===t||t.includes(n))&&(i.forEach(e=>e()),delete e._x_attributeCleanups[n])})}var S=new MutationObserver(N),E=!1;function k(){S.observe(document,{subtree:!0,childList:!0,attributes:!0,attributeOldValue:!0}),E=!0}function A(){!function(){let e=S.takeRecords();O.push(()=>e.length>0&&N(e));let t=O.length;queueMicrotask(()=>{if(O.length===t)for(;O.length>0;)O.shift()()})}(),S.disconnect(),E=!1}var O=[];function C(e){if(!E)return e();A();let t=e();return k(),t}var M=!1,j=[];function N(e){if(M)return void(j=j.concat(e));let t=[],n=new Set,i=new Map,r=new Map;for(let o=0;o<e.length;o++)if(!e[o].target._x_ignoreMutationObserver&&("childList"===e[o].type&&(e[o].removedNodes.forEach(e=>{1===e.nodeType&&e._x_marker&&n.add(e)}),e[o].addedNodes.forEach(e=>{1===e.nodeType&&(n.has(e)?n.delete(e):e._x_marker||t.push(e))})),"attributes"===e[o].type)){let t=e[o].target,n=e[o].attributeName,s=e[o].oldValue,a=()=>{i.has(t)||i.set(t,[]),i.get(t).push({name:n,value:t.getAttribute(n)})},l=()=>{r.has(t)||r.set(t,[]),r.get(t).push(n)};t.hasAttribute(n)&&null===s?a():t.hasAttribute(n)?(l(),a()):l()}r.forEach((e,t)=>{w(t,e)}),i.forEach((e,t)=>{g.forEach(n=>n(t,e))});for(let o of n)t.some(e=>e.contains(o))||m.forEach(e=>e(o));for(let o of t)o.isConnected&&x.forEach(e=>e(o));t=null,n=null,i=null,r=null}function T(e){return P(L(e))}function I(e,t,n){return e._x_dataStack=[t,...L(n||e)],()=>{e._x_dataStack=e._x_dataStack.filter(e=>e!==t)}}function L(e){return e._x_dataStack?e._x_dataStack:"function"==typeof ShadowRoot&&e instanceof ShadowRoot?L(e.host):e.parentNode?L(e.parentNode):[]}function P(e){return new Proxy({objects:e},R)}var R={ownKeys:({objects:e})=>Array.from(new Set(e.flatMap(e=>Object.keys(e)))),has:({objects:e},t)=>t!=Symbol.unscopables&&e.some(e=>Object.prototype.hasOwnProperty.call(e,t)||Reflect.has(e,t)),get:({objects:e},t,n)=>"toJSON"==t?B:Reflect.get(e.find(e=>Reflect.has(e,t))||{},t,n),set({objects:e},t,n,i){const r=e.find(e=>Object.prototype.hasOwnProperty.call(e,t))||e[e.length-1],o=Object.getOwnPropertyDescriptor(r,t);return(null==o?void 0:o.set)&&(null==o?void 0:o.get)?o.set.call(i,n)||!0:Reflect.set(r,t,n)}};function B(){return Reflect.ownKeys(this).reduce((e,t)=>(e[t]=Reflect.get(this,t),e),{})}function z(e){let t=(n,i="")=>{Object.entries(Object.getOwnPropertyDescriptors(n)).forEach(([r,{value:o,enumerable:s}])=>{if(!1===s||void 0===o)return;if("object"==typeof o&&null!==o&&o.__v_skip)return;let a=""===i?r:`${i}.${r}`;var l;"object"==typeof o&&null!==o&&o._x_interceptor?n[r]=o.initialize(e,a,r):"object"!=typeof(l=o)||Array.isArray(l)||null===l||o===n||o instanceof Element||t(o,a)})};return t(e)}function D(e,t=()=>{}){let n={initialValue:void 0,_x_interceptor:!0,initialize(t,n,i){return e(this.initialValue,()=>function(e,t){return t.split(".").reduce((e,t)=>e[t],e)}(t,n),e=>W(t,n,e),n,i)}};return t(n),e=>{if("object"==typeof e&&null!==e&&e._x_interceptor){let t=n.initialize.bind(n);n.initialize=(i,r,o)=>{let s=e.initialize(i,r,o);return n.initialValue=s,t(i,r,o)}}else n.initialValue=e;return n}}function W(e,t,n){if("string"==typeof t&&(t=t.split(".")),1!==t.length){if(0===t.length)throw error;return e[t[0]]||(e[t[0]]={}),W(e[t[0]],t.slice(1),n)}e[t[0]]=n}var q={};function F(e,t){q[e]=t}function H(e,t){let n=function(e){let[t,n]=ue(e),i={interceptor:D,...t};return v(e,n),i}(t);return Object.entries(q).forEach(([i,r])=>{Object.defineProperty(e,`$${i}`,{get:()=>r(t,n),enumerable:!1})}),e}function J(e,t,n,...i){try{return n(...i)}catch(r){K(r,e,t)}}function K(e,t,n=void 0){e=Object.assign(e??{message:"No error message given."},{el:t,expression:n}),console.warn(`Alpine Expression Error: ${e.message}\n\n${n?'Expression: "'+n+'"\n\n':""}`,t),setTimeout(()=>{throw e},0)}var U=!0;function V(e){let t=U;U=!1;let n=e();return U=t,n}function Z(e,t,n={}){let i;return X(e,t)(e=>i=e,n),i}function X(...e){return Y(...e)}var Y=G;function G(e,t){let n={};H(n,e);let i=[n,...L(e)],r="function"==typeof t?function(e,t){return(n=()=>{},{scope:i={},params:r=[],context:o}={})=>{ee(n,t.apply(P([i,...e]),r))}}(i,t):function(e,t,n){let i=function(e,t){if(Q[e])return Q[e];let n=Object.getPrototypeOf(async function(){}).constructor,i=/^[\n\s]*if.*\(.*\)/.test(e.trim())||/^(let|const)\s/.test(e.trim())?`(async()=>{ ${e} })()`:e;const r=()=>{try{let t=new n(["__self","scope"],`with (scope) { __self.result = ${i} }; __self.finished = true; return __self.result;`);return Object.defineProperty(t,"name",{value:`[Alpine] ${e}`}),t}catch(r){return K(r,t,e),Promise.resolve()}};
1let o=r();return Q[e]=o,o}(t,n);return(r=()=>{},{scope:o={},params:s=[],context:a}={})=>{i.result=void 0,i.finished=!1;let l=P([o,...e]);if("function"==typeof i){let e=i.call(a,i,l).catch(e=>K(e,n,t));i.finished?(ee(r,i.result,l,s,n),i.result=void 0):e.then(e=>{ee(r,e,l,s,n)}).catch(e=>K(e,n,t)).finally(()=>i.result=void 0)}}}(i,t,e);return J.bind(null,e,t,r)}var Q={};function ee(e,t,n,i,r){if(U&&"function"==typeof t){let o=t.apply(n,i);o instanceof Promise?o.then(t=>ee(e,t,n,i)).catch(e=>K(e,r,t)):e(o)}else"object"==typeof t&&t instanceof Promise?t.then(t=>e(t)):e(t)}var te="x-";function ne(e=""){return te+e}var ie={};function re(e,t){return ie[e]=t,{before(t){if(!ie[t])return void console.warn(String.raw`Cannot find directive \`${t}\`. \`${e}\` will use the default order of execution`);const n=xe.indexOf(t);xe.splice(n>=0?n:xe.indexOf("DEFAULT"),0,e)}}}function oe(e,t,n){if(t=Array.from(t),e._x_virtualDirectives){let n=Object.entries(e._x_virtualDirectives).map(([e,t])=>({name:e,value:t})),i=se(n);n=n.map(e=>i.find(t=>t.name===e.name)?{name:`x-bind:${e.name}`,value:`"${e.value}"`}:e),t=t.concat(n)}let i={},r=t.map(fe((e,t)=>i[e]=t)).filter(he).map(function(e,t){return({name:n,value:i})=>{let r=n.match(ge()),o=n.match(/:([a-zA-Z0-9\-_:]+)/),s=n.match(/\.[^.\]]+(?=[^\]]*$)/g)||[],a=t||e[n]||n;return{type:r?r[1]:null,value:o?o[1]:null,modifiers:s.map(e=>e.replace(".","")),expression:i,original:a}}}(i,n)).sort(ve);return r.map(t=>function(e,t){let n=()=>{},i=ie[t.type]||n,[r,o]=ue(e);b(e,t.original,o);let s=()=>{e._x_ignore||e._x_ignoreSelf||(i.inline&&i.inline(e,t,r),i=i.bind(i,e,t,r),ae?le.get(ce).push(i):i())};return s.runCleanups=o,s}(e,t))}function se(e){return Array.from(e).map(fe()).filter(e=>!he(e))}var ae=!1,le=new Map,ce=Symbol();function ue(e){let t=[],[r,o]=function(e){let t=()=>{};return[r=>{let o=n(r);return e._x_effects||(e._x_effects=new Set,e._x_runEffects=()=>{e._x_effects.forEach(e=>e())}),e._x_effects.add(o),t=()=>{void 0!==o&&(e._x_effects.delete(o),i(o))},o},()=>{t()}]}(e);t.push(o);return[{Alpine:xt,effect:r,cleanup:e=>t.push(e),evaluateLater:X.bind(X,e),evaluate:Z.bind(Z,e)},()=>t.forEach(e=>e())]}var de=(e,t)=>({name:n,value:i})=>(n.startsWith(e)&&(n=n.replace(e,t)),{name:n,value:i});function fe(e=()=>{}){return({name:t,value:n})=>{let{name:i,value:r}=pe.reduce((e,t)=>t(e),{name:t,value:n});return i!==t&&e(i,t),{name:i,value:r}}}var pe=[];function _e(e){pe.push(e)}function he({name:e}){return ge().test(e)}var ge=()=>new RegExp(`^${te}([^:^.]+)\\b`);var me="DEFAULT",xe=["ignore","ref","data","id","anchor","bind","init","for","model","modelable","transition","show","if",me,"teleport"];function ve(e,t){let n=-1===xe.indexOf(e.type)?me:e.type,i=-1===xe.indexOf(t.type)?me:t.type;return xe.indexOf(n)-xe.indexOf(i)}function ye(e,t,n={}){e.dispatchEvent(new CustomEvent(t,{detail:n,bubbles:!0,composed:!0,cancelable:!0}))}function be(e,t){if("function"==typeof ShadowRoot&&e instanceof ShadowRoot)return void Array.from(e.children).forEach(e=>be(e,t));let n=!1;if(t(e,()=>n=!0),n)return;let i=e.firstElementChild;for(;i;)be(i,t),i=i.nextElementSibling}function we(e,...t){console.warn(`Alpine Warning: ${e}`,...t)}var Se=!1;var Ee=[],ke=[];function Ae(){return Ee.map(e=>e())}function Oe(){return Ee.concat(ke).map(e=>e())}function Ce(e){Ee.push(e)}function $e(e){ke.push(e)}function Me(e,t=!1){return je(e,e=>{if((t?Oe():Ae()).some(t=>e.matches(t)))return!0})}function je(e,t){if(e){if(t(e))return e;if(e._x_teleportBack&&(e=e._x_teleportBack),e.parentElement)return je(e.parentElement,t)}}var Ne=[];var Te=1;function Ie(e,t=be,n=()=>{}){je(e,e=>e._x_ignore)||function(e){ae=!0;let t=Symbol();ce=t,le.set(t,[]);let n=()=>{for(;le.get(t).length;)le.get(t).shift()();le.delete(t)};e(n),ae=!1,n()}(()=>{t(e,(e,t)=>{e._x_marker||(n(e,t),Ne.forEach(n=>n(e,t)),oe(e,e.attributes).forEach(e=>e()),e._x_ignore||(e._x_marker=Te++),e._x_ignore&&t())})})}function Le(e,t=be){t(e,e=>{!function(e){var t,n;for(null==(t=e._x_effects)||t.forEach(u);null==(n=e._x_cleanups)?void 0:n.length;)e._x_cleanups.pop()()}(e),w(e),delete e._x_marker})}var Pe=[],Re=!1;function Be(e=()=>{}){return queueMicrotask(()=>{Re||setTimeout(()=>{ze()})}),new Promise(t=>{Pe.push(()=>{e(),t()})})}function ze(){for(Re=!1;Pe.length;)Pe.shift()()}function De(e,t){return Array.isArray(t)?We(e,t.join(" ")):"object"==typeof t&&null!==t?function(e,t){let n=e=>
1e.split(" ").filter(Boolean),i=Object.entries(t).flatMap(([e,t])=>!!t&&n(e)).filter(Boolean),r=Object.entries(t).flatMap(([e,t])=>!t&&n(e)).filter(Boolean),o=[],s=[];return r.forEach(t=>{e.classList.contains(t)&&(e.classList.remove(t),s.push(t))}),i.forEach(t=>{e.classList.contains(t)||(e.classList.add(t),o.push(t))}),()=>{s.forEach(t=>e.classList.add(t)),o.forEach(t=>e.classList.remove(t))}}(e,t):"function"==typeof t?De(e,t()):We(e,t)}function We(e,t){return t=!0===t?t="":t||"",n=t.split(" ").filter(t=>!e.classList.contains(t)).filter(Boolean),e.classList.add(...n),()=>{e.classList.remove(...n)};var n}function qe(e,t){return"object"==typeof t&&null!==t?function(e,t){let n={};return Object.entries(t).forEach(([t,i])=>{n[t]=e.style[t],t.startsWith("--")||(t=t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()),e.style.setProperty(t,i)}),setTimeout(()=>{0===e.style.length&&e.removeAttribute("style")}),()=>{qe(e,n)}}(e,t):function(e,t){let n=e.getAttribute("style",t);return e.setAttribute("style",t),()=>{e.setAttribute("style",n||"")}}(e,t)}function Fe(e,t=()=>{}){let n=!1;return function(){n?t.apply(this,arguments):(n=!0,e.apply(this,arguments))}}function He(e,t,n={}){e._x_transition||(e._x_transition={enter:{during:n,start:n,end:n},leave:{during:n,start:n,end:n},in(n=()=>{},i=()=>{}){Ke(e,t,{during:this.enter.during,start:this.enter.start,end:this.enter.end},n,i)},out(n=()=>{},i=()=>{}){Ke(e,t,{during:this.leave.during,start:this.leave.start,end:this.leave.end},n,i)}})}function Je(e){let t=e.parentNode;if(t)return t._x_hidePromise?t:Je(t)}function Ke(e,t,{during:n,start:i,end:r}={},o=()=>{},s=()=>{}){if(e._x_transitioning&&e._x_transitioning.cancel(),0===Object.keys(n).length&&0===Object.keys(i).length&&0===Object.keys(r).length)return o(),void s();let a,l,c;!function(e,t){let n,i,r,o=Fe(()=>{C(()=>{n=!0,i||t.before(),r||(t.end(),ze()),t.after(),e.isConnected&&t.cleanup(),delete e._x_transitioning})});e._x_transitioning={beforeCancels:[],beforeCancel(e){this.beforeCancels.push(e)},cancel:Fe(function(){for(;this.beforeCancels.length;)this.beforeCancels.shift()();o()}),finish:o},C(()=>{t.start(),t.during()}),Re=!0,requestAnimationFrame(()=>{if(n)return;let o=1e3*Number(getComputedStyle(e).transitionDuration.replace(/,.*/,"").replace("s","")),s=1e3*Number(getComputedStyle(e).transitionDelay.replace(/,.*/,"").replace("s",""));0===o&&(o=1e3*Number(getComputedStyle(e).animationDuration.replace("s",""))),C(()=>{t.before()}),i=!0,requestAnimationFrame(()=>{n||(C(()=>{t.end()}),ze(),setTimeout(e._x_transitioning.finish,o+s),r=!0)})})}(e,{start(){a=t(e,i)},during(){l=t(e,n)},before:o,end(){a(),c=t(e,r)},after:s,cleanup(){l(),c()}})}function Ue(e,t,n){if(-1===e.indexOf(t))return n;const i=e[e.indexOf(t)+1];if(!i)return n;if("scale"===t&&isNaN(i))return n;if("duration"===t||"delay"===t){let e=i.match(/([0-9]+)ms/);if(e)return e[1]}return"origin"===t&&["top","right","left","center","bottom"].includes(e[e.indexOf(t)+2])?[i,e[e.indexOf(t)+2]].join(" "):i}re("transition",(e,{value:t,modifiers:n,expression:i},{evaluate:r})=>{"function"==typeof i&&(i=r(i)),!1!==i&&(i&&"boolean"!=typeof i?function(e,t,n){He(e,De,"");let i={enter:t=>{e._x_transition.enter.during=t},"enter-start":t=>{e._x_transition.enter.start=t},"enter-end":t=>{e._x_transition.enter.end=t},leave:t=>{e._x_transition.leave.during=t},"leave-start":t=>{e._x_transition.leave.start=t},"leave-end":t=>{e._x_transition.leave.end=t}};i[n](t)}(e,i,t):function(e,t,n){He(e,qe);let i=!t.includes("in")&&!t.includes("out")&&!n,r=i||t.includes("in")||["enter"].includes(n),o=i||t.includes("out")||["leave"].includes(n);t.includes("in")&&!i&&(t=t.filter((e,n)=>n<t.indexOf("out")));t.includes("out")&&!i&&(t=t.filter((e,n)=>n>t.indexOf("out")));let s=!t.includes("opacity")&&!t.includes("scale"),a=s||t.includes("opacity"),l=s||t.includes("scale"),c=a?0:1,u=l?Ue(t,"scale",95)/100:1,d=Ue(t,"delay",0)/1e3,f=Ue(t,"origin","center"),p="opacity, transform",h=Ue(t,"duration",150)/1e3,g=Ue(t,"duration",75)/1e3,m="cubic-bezier(0.4, 0.0, 0.2, 1)";r&&(e._x_transition.enter.during={transformOrigin:f,transitionDelay:`${d}s`,transitionProperty:p,transitionDuration:`${h}s`,transitionTimingFunction:m},e._x_transition.enter.start={opacity:c,transform:`scale(${u})`},e._x_transition.enter.end={opacity:1,transform:"scale(1)"});o&&(e._x_transition.leave.during={transformOrigin:f,transitionDelay:`${d}s`,transitionProperty:p,transitionDuration:`${g}s`,transitionTimingFunction:m},e._x_transition.leave.start={opacity:1,transform:"scale(1)"},e._x_transition.leave.end={opacity:c,transform:`scale(${u})`})}(e,n,t))}),window.Element.prototype._x_toggleAndCascadeWithTransitions=function(e,t,n,i){const r="visible"===document.visibilityState?requestAnimationFrame:setTimeout;let o=()=>r(n);t?e._x_transition&&(e._x_transition.enter||e._x_transition.leave)?e._x_transition.enter&&(Object.entries(e._x_transition.enter.during).length||Object.entries(e._x_transition.enter.start).length||Object.entries(e._x_transition.enter.end).length)?e._x_transition.in(n):o():e._x_transition?e._x_transition.in(n):o():(e._x_hidePromise=e._x_transition?new Promise((t,n)=>{e._x_transition.out(()=>{},()=>t(i)),e._x_transitioning&&e._x_transitioning.beforeCancel(()=>n({isFromCancelledTransition:!0}))}):Promise.resolve(i),queueMicrotask(()=>{let t=Je(e);t?(t._x_hideChildren||(t._x_hideChildren=[]),t._x_hideChildren.push(e)):r(()=>{let t=e=>{let n=Promise.all([e._x_hidePromise,...(e._x_hideChildren||[]).map(t)]).then(([e])=>null==e?void 0:e());return delete e._x_hidePromise,delete e._x_hideChildren,n};t(e).catch(e=>{if(!e.isFromCancelledTransition)throw e})})}))};var Ve=!1;function Ze(e,t=()=>{}){return(...n)=>Ve?t(...n):e(...n)}var Xe=[];
1function Ye(e){Xe.push(e)}var Ge=!1;function Qe(e){let t=n;p((e,n)=>{let r=t(e);return i(r),()=>{}}),e(),p(t)}function et(e,n,i,r=[]){switch(e._x_bindings||(e._x_bindings=t({})),e._x_bindings[n]=i,n=r.includes("camel")?n.toLowerCase().replace(/-(\w)/g,(e,t)=>t.toUpperCase()):n){case"value":!function(e,t){if(lt(e))void 0===e.attributes.value&&(e.value=t),window.fromModel&&(e.checked="boolean"==typeof t?it(e.value)===t:nt(e.value,t));else if(at(e))Number.isInteger(t)?e.value=t:Array.isArray(t)||"boolean"==typeof t||[null,void 0].includes(t)?Array.isArray(t)?e.checked=t.some(t=>nt(t,e.value)):e.checked=!!t:e.value=String(t);else if("SELECT"===e.tagName)!function(e,t){const n=[].concat(t).map(e=>e+"");Array.from(e.options).forEach(e=>{e.selected=n.includes(e.value)})}(e,t);else{if(e.value===t)return;e.value=void 0===t?"":t}}(e,i);break;case"style":!function(e,t){e._x_undoAddedStyles&&e._x_undoAddedStyles();e._x_undoAddedStyles=qe(e,t)}(e,i);break;case"class":!function(e,t){e._x_undoAddedClasses&&e._x_undoAddedClasses();e._x_undoAddedClasses=De(e,t)}(e,i);break;case"selected":case"checked":!function(e,t,n){tt(e,t,n),function(e,t,n){e[t]!==n&&(e[t]=n)}(e,t,n)}(e,n,i);break;default:tt(e,n,i)}}function tt(e,t,n){[null,void 0,!1].includes(n)&&function(e){return!["aria-pressed","aria-checked","aria-expanded","aria-selected"].includes(e)}(t)?e.removeAttribute(t):(ot(t)&&(n=t),function(e,t,n){e.getAttribute(t)!=n&&e.setAttribute(t,n)}(e,t,n))}function nt(e,t){return e==t}function it(e){return!![1,"1","true","on","yes",!0].includes(e)||![0,"0","false","off","no",!1].includes(e)&&(e?Boolean(e):null)}var rt=new Set(["allowfullscreen","async","autofocus","autoplay","checked","controls","default","defer","disabled","formnovalidate","inert","ismap","itemscope","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","selected","shadowrootclonable","shadowrootdelegatesfocus","shadowrootserializable"]);function ot(e){return rt.has(e)}function st(e,t,n){let i=e.getAttribute(t);return null===i?"function"==typeof n?n():n:""===i||(ot(t)?!![t,"true"].includes(i):i)}function at(e){return"checkbox"===e.type||"ui-checkbox"===e.localName||"ui-switch"===e.localName}function lt(e){return"radio"===e.type||"ui-radio"===e.localName}function ct(e,t){let n;return function(){const i=this,r=arguments;clearTimeout(n),n=setTimeout(function(){n=null,e.apply(i,r)},t)}}function ut(e,t){let n;return function(){let i=this,r=arguments;n||(e.apply(i,r),n=!0,setTimeout(()=>n=!1,t))}}function dt({get:e,set:t},{get:r,set:o}){let s,a=!0,l=n(()=>{let n=e(),i=r();if(a)o(ft(n)),a=!1;else{let e=JSON.stringify(n),r=JSON.stringify(i);e!==s?o(ft(n)):e!==r&&t(ft(i))}s=JSON.stringify(e()),JSON.stringify(r())});return()=>{i(l)}}function ft(e){return"object"==typeof e?JSON.parse(JSON.stringify(e)):e}var pt={},_t=!1;var ht={};function gt(e,t,n){let i=[];for(;i.length;)i.pop()();let r=Object.entries(t).map(([e,t])=>({name:e,value:t})),o=se(r);return r=r.map(e=>o.find(t=>t.name===e.name)?{name:`x-bind:${e.name}`,value:`"${e.value}"`}:e),oe(e,r,n).map(e=>{i.push(e.runCleanups),e()}),()=>{for(;i.length;)i.pop()()}}var mt={};var xt={get reactive(){return t},get release(){return i},get effect(){return n},get raw(){return r},version:"3.15.0",flushAndStopDeferringMutations:function(){M=!1,N(j),j=[]},dontAutoEvaluateFunctions:V,disableEffectScheduling:function(e){f=!1,e(),f=!0},startObservingMutations:k,stopObservingMutations:A,setReactivityEngine:function(e){t=e.reactive,i=e.release,n=t=>e.effect(t,{scheduler:e=>{f?c(e):e()}}),r=e.raw},onAttributeRemoved:b,onAttributesAdded:y,closestDataStack:L,skipDuringClone:Ze,onlyDuringClone:function(e){return(...t)=>Ve&&e(...t)},addRootSelector:Ce,addInitSelector:$e,interceptClone:Ye,addScopeToNode:I,deferMutations:function(){M=!0},mapAttributes:_e,evaluateLater:X,interceptInit:function(e){Ne.push(e)},setEvaluator:function(e){Y=e},mergeProxies:P,extractProp:function(e,t,n,i=!0){if(e._x_bindings&&void 0!==e._x_bindings[t])return e._x_bindings[t];if(e._x_inlineBindings&&void 0!==e._x_inlineBindings[t]){let n=e._x_inlineBindings[t];return n.extract=i,V(()=>Z(e,n.expression))}return st(e,t,n)},findClosest:je,onElRemoved:v,closestRoot:Me,destroyTree:Le,interceptor:D,transition:Ke,setStyles:qe,mutateDom:C,directive:re,entangle:dt,throttle:ut,debounce:ct,evaluate:Z,initTree:Ie,nextTick:Be,prefixed:ne,prefix:function(e){te=e}
1,plugin:function(e){(Array.isArray(e)?e:[e]).forEach(e=>e(xt))},magic:F,store:function(e,n){if(_t||(pt=t(pt),_t=!0),void 0===n)return pt[e];pt[e]=n,z(pt[e]),"object"==typeof n&&null!==n&&n.hasOwnProperty("init")&&"function"==typeof n.init&&pt[e].init()},start:function(){var e;Se&&we("Alpine has already been initialized on this page. Calling Alpine.start() more than once can cause problems."),Se=!0,document.body||we("Unable to initialize. Trying to load Alpine before `<body>` is available. Did you forget to add `defer` in Alpine's `<script>` tag?"),ye(document,"alpine:init"),ye(document,"alpine:initializing"),k(),e=e=>Ie(e,be),x.push(e),v(e=>Le(e)),y((e,t)=>{oe(e,t).forEach(e=>e())}),Array.from(document.querySelectorAll(Oe().join(","))).filter(e=>!Me(e.parentElement,!0)).forEach(e=>{Ie(e)}),ye(document,"alpine:initialized"),setTimeout(()=>{[["ui","dialog",["[x-dialog], [x-popover]"]],["anchor","anchor",["[x-anchor]"]],["sort","sort",["[x-sort]"]]].forEach(([e,t,n])=>{var i;i=t,Object.keys(ie).includes(i)||n.some(t=>{if(document.querySelector(t))return we(`found "${t}", but missing ${e} plugin`),!0})})})},clone:function(e,t){t._x_dataStack||(t._x_dataStack=e._x_dataStack),Ve=!0,Ge=!0,Qe(()=>{!function(e){let t=!1;Ie(e,(e,n)=>{be(e,(e,i)=>{if(t&&function(e){return Ae().some(t=>e.matches(t))}(e))return i();t=!0,n(e,i)})})}(t)}),Ve=!1,Ge=!1},cloneNode:function(e,t){Xe.forEach(n=>n(e,t)),Ve=!0,Qe(()=>{Ie(t,(e,t)=>{t(e,()=>{})})}),Ve=!1},bound:function(e,t,n){return e._x_bindings&&void 0!==e._x_bindings[t]?e._x_bindings[t]:st(e,t,n)},$data:T,watch:h,walk:be,data:function(e,t){mt[e]=t},bind:function(e,t){let n="function"!=typeof t?()=>t:t;return e instanceof Element?gt(e,n()):(ht[e]=n,()=>{})}};function vt(e,t){const n=Object.create(null),i=e.split(",");for(let r=0;r<i.length;r++)n[i[r]]=!0;return e=>!!n[e]}var yt,bt=Object.freeze({}),wt=Object.prototype.hasOwnProperty,St=(e,t)=>wt.call(e,t),Et=Array.isArray,kt=e=>"[object Map]"===$t(e),At=e=>"symbol"==typeof e,Ot=e=>null!==e&&"object"==typeof e,Ct=Object.prototype.toString,$t=e=>Ct.call(e),Mt=e=>$t(e).slice(8,-1),jt=e=>"string"==typeof e&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,Nt=(e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))})(e=>e.charAt(0).toUpperCase()+e.slice(1)),Tt=(e,t)=>e!==t&&(e==e||t==t),It=new WeakMap,Lt=[],Pt=Symbol("iterate"),Rt=Symbol("Map key iterate");var Bt=0;function zt(e){const{deps:t}=e;if(t.length){for(let n=0;n<t.length;n++)t[n].delete(e);t.length=0}}var Dt=!0,Wt=[];function qt(){const e=Wt.pop();Dt=void 0===e||e}function Ft(e,t,n){if(!Dt||void 0===yt)return;let i=It.get(e);i||It.set(e,i=new Map);let r=i.get(n);r||i.set(n,r=new Set),r.has(yt)||(r.add(yt),yt.deps.push(r),yt.options.onTrack&&yt.options.onTrack({effect:yt,target:e,type:t,key:n}))}function Ht(e,t,n,i,r,o){const s=It.get(e);if(!s)return;const a=new Set,l=e=>{e&&e.forEach(e=>{(e!==yt||e.allowRecurse)&&a.add(e)})};if("clear"===t)s.forEach(l);else if("length"===n&&Et(e))s.forEach((e,t)=>{("length"===t||t>=i)&&l(e)});else switch(void 0!==n&&l(s.get(n)),t){case"add":Et(e)?jt(n)&&l(s.get("length")):(l(s.get(Pt)),kt(e)&&l(s.get(Rt)));break;case"delete":Et(e)||(l(s.get(Pt)),kt(e)&&l(s.get(Rt)));break;case"set":kt(e)&&l(s.get(Pt))}a.forEach(s=>{s.options.onTrigger&&s.options.onTrigger({effect:s,target:e,key:n,type:t,newValue:i,oldValue:r,oldTarget:o}),s.options.scheduler?s.options.scheduler(s):s()})}var Jt=vt("__proto__,__v_isRef,__isVue"),Kt=new Set(Object.getOwnPropertyNames(Symbol).map(e=>Symbol[e]).filter(At)),Ut=Yt(),Vt=Yt(!0),Zt=Xt();function Xt(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...e){const n=Nn(this);for(let t=0,r=this.length;t<r;t++)Ft(n,"get",t+"");const i=n[t](...e);return-1===i||!1===i?n[t](...e.map(Nn)):i}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...e){Wt.push(Dt),Dt=!1;const n=Nn(this)[t].apply(this,e);return qt(),n}}),e}function Yt(e=!1,t=!1){return function(n,i,r){if("__v_isReactive"===i)return!e;if("__v_isReadonly"===i)return e;if("__v_raw"===i&&r===(e?t?Cn:On:t?An:kn).get(n))return n;const o=Et(n);
1if(!e&&o&&St(Zt,i))return Reflect.get(Zt,i,r);const s=Reflect.get(n,i,r);if(At(i)?Kt.has(i):Jt(i))return s;if(e||Ft(n,"get",i),t)return s;if(Tn(s)){return!o||!jt(i)?s.value:s}return Ot(s)?e?Mn(s):$n(s):s}}function Gt(e=!1){return function(t,n,i,r){let o=t[n];if(!e&&(i=Nn(i),o=Nn(o),!Et(t)&&Tn(o)&&!Tn(i)))return o.value=i,!0;const s=Et(t)&&jt(n)?Number(n)<t.length:St(t,n),a=Reflect.set(t,n,i,r);return t===Nn(r)&&(s?Tt(i,o)&&Ht(t,"set",n,i,o):Ht(t,"add",n,i)),a}}var Qt={get:Ut,set:Gt(),deleteProperty:function(e,t){const n=St(e,t),i=e[t],r=Reflect.deleteProperty(e,t);return r&&n&&Ht(e,"delete",t,void 0,i),r},has:function(e,t){const n=Reflect.has(e,t);return At(t)&&Kt.has(t)||Ft(e,"has",t),n},ownKeys:function(e){return Ft(e,"iterate",Et(e)?"length":Pt),Reflect.ownKeys(e)}},en={get:Vt,set:(e,t)=>(console.warn(`Set operation on key "${String(t)}" failed: target is readonly.`,e),!0),deleteProperty:(e,t)=>(console.warn(`Delete operation on key "${String(t)}" failed: target is readonly.`,e),!0)},tn=e=>Ot(e)?$n(e):e,nn=e=>Ot(e)?Mn(e):e,rn=e=>e,on=e=>Reflect.getPrototypeOf(e);function sn(e,t,n=!1,i=!1){const r=Nn(e=e.__v_raw),o=Nn(t);t!==o&&!n&&Ft(r,"get",t),!n&&Ft(r,"get",o);const{has:s}=on(r),a=i?rn:n?nn:tn;return s.call(r,t)?a(e.get(t)):s.call(r,o)?a(e.get(o)):void(e!==r&&e.get(t))}function an(e,t=!1){const n=this.__v_raw,i=Nn(n),r=Nn(e);return e!==r&&!t&&Ft(i,"has",e),!t&&Ft(i,"has",r),e===r?n.has(e):n.has(e)||n.has(r)}function ln(e,t=!1){return e=e.__v_raw,!t&&Ft(Nn(e),"iterate",Pt),Reflect.get(e,"size",e)}function cn(e){e=Nn(e);const t=Nn(this);return on(t).has.call(t,e)||(t.add(e),Ht(t,"add",e,e)),this}function un(e,t){t=Nn(t);const n=Nn(this),{has:i,get:r}=on(n);let o=i.call(n,e);o?En(n,i,e):(e=Nn(e),o=i.call(n,e));const s=r.call(n,e);return n.set(e,t),o?Tt(t,s)&&Ht(n,"set",e,t,s):Ht(n,"add",e,t),this}function dn(e){const t=Nn(this),{has:n,get:i}=on(t);let r=n.call(t,e);r?En(t,n,e):(e=Nn(e),r=n.call(t,e));const o=i?i.call(t,e):void 0,s=t.delete(e);return r&&Ht(t,"delete",e,void 0,o),s}function fn(){const e=Nn(this),t=0!==e.size,n=kt(e)?new Map(e):new Set(e),i=e.clear();return t&&Ht(e,"clear",void 0,void 0,n),i}function pn(e,t){return function(n,i){const r=this,o=r.__v_raw,s=Nn(o),a=t?rn:e?nn:tn;return!e&&Ft(s,"iterate",Pt),o.forEach((e,t)=>n.call(i,a(e),a(t),r))}}function _n(e,t,n){return function(...i){const r=this.__v_raw,o=Nn(r),s=kt(o),a="entries"===e||e===Symbol.iterator&&s,l="keys"===e&&s,c=r[e](...i),u=n?rn:t?nn:tn;return!t&&Ft(o,"iterate",l?Rt:Pt),{next(){const{value:e,done:t}=c.next();return t?{value:e,done:t}:{value:a?[u(e[0]),u(e[1])]:u(e),done:t}},[Symbol.iterator](){return this}}}}function hn(e){return function(...t){{const n=t[0]?`on key "${t[0]}" `:"";console.warn(`${Nt(e)} operation ${n}failed: target is readonly.`,Nn(this))}return"delete"!==e&&this}}function gn(){const e={get(e){return sn(this,e)},get size(){return ln(this)},has:an,add:cn,set:un,delete:dn,clear:fn,forEach:pn(!1,!1)},t={get(e){return sn(this,e,!1,!0)},get size(){return ln(this)},has:an,add:cn,set:un,delete:dn,clear:fn,forEach:pn(!1,!0)},n={get(e){return sn(this,e,!0)},get size(){return ln(this,!0)},has(e){return an.call(this,e,!0)},add:hn("add"),set:hn("set"),delete:hn("delete"),clear:hn("clear"),forEach:pn(!0,!1)},i={get(e){return sn(this,e,!0,!0)},get size(){return ln(this,!0)},has(e){return an.call(this,e,!0)},add:hn("add"),set:hn("set"),delete:hn("delete"),clear:hn("clear"),forEach:pn(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(r=>{e[r]=_n(r,!1,!1),n[r]=_n(r,!0,!1),t[r]=_n(r,!1,!0),i[r]=_n(r,!0,!0)}),[e,n,t,i]}var[mn,xn,vn,yn]=gn();function bn(e,t){const n=e?xn:mn;return(t,i,r)=>"__v_isReactive"===i?!e:"__v_isReadonly"===i?e:"__v_raw"===i?t:Reflect.get(St(n,i)&&i in t?n:t,i,r)}var wn={get:bn(!1)},Sn={get:bn(!0)};function En(e,t,n){const i=Nn(n);if(i!==n&&t.call(e,i)){const t=Mt(e);console.warn(`Reactive ${t} contains both the raw and reactive versions of the same object${"Map"===t?" as keys":""}, which can lead to inconsistencies. Avoid differentiating between the raw and reactive versions of an object and only use the reactive version if possible.`)}}var kn=new WeakMap,An=new WeakMap,On=new WeakMap,Cn=new WeakMap;function $n(e){return e&&e.__v_isReadonly?e:jn(e,!1,Qt,wn,kn)}function Mn(e){return jn(e,!0,en,Sn,On)}function jn(e,t,n,i,r){if(!Ot(e))return console.warn(`value cannot be made reactive: ${String(e)}`),e;if(e.__v_raw&&(!t||!e.__v_isReactive))return e;const o=r.get(e);if(o)return o;const s=(a=e).__v_skip||!Object.isExtensible(a)?0:function(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}(Mt(a));var a;if(0===s)return e;const l=new Proxy(e,2===s?i:n);return r.set(e,l),l}function Nn(e){return e&&Nn(e.__v_raw)||e}function Tn(e){return Boolean(e&&!0===e.__v_isRef)}F("nextTick",()=>Be),F("dispatch",e=>ye.bind(ye,e)),F("watch",(e,{evaluateLater:t,cleanup:n})=>(e,i)=>{let r=t(e),o=h(()=>{let e;return r(t=>e=t),e},i);n(o)}),F("store",function(){return pt}),F("data",e=>T(e)),F("root",e=>Me(e)),F("refs",e=>(e._x_refs_proxy||(e._x_refs_proxy=P(function(e){let t=[];return je(e,e=>
1{e._x_refs&&t.push(e._x_refs)}),t}(e))),e._x_refs_proxy));var In={};function Ln(e){return In[e]||(In[e]=0),++In[e]}function Pn(e,t,n){F(t,i=>we(`You can't use [$${t}] without first installing the "${e}" plugin here: https://alpinejs.dev/plugins/${n}`,i))}F("id",(e,{cleanup:t})=>(n,i=null)=>function(e,t,n,i){e._x_id||(e._x_id={});if(e._x_id[t])return e._x_id[t];let r=i();return e._x_id[t]=r,n(()=>{delete e._x_id[t]}),r}(e,`${n}${i?`-${i}`:""}`,t,()=>{let t=function(e,t){return je(e,e=>{if(e._x_ids&&e._x_ids[t])return!0})}(e,n),r=t?t._x_ids[n]:Ln(n);return i?`${n}-${r}-${i}`:`${n}-${r}`})),Ye((e,t)=>{e._x_id&&(t._x_id=e._x_id)}),F("el",e=>e),Pn("Focus","focus","focus"),Pn("Persist","persist","persist"),re("modelable",(e,{expression:t},{effect:n,evaluateLater:i,cleanup:r})=>{let o=i(t),s=()=>{let e;return o(t=>e=t),e},a=i(`${t} = __placeholder`),l=e=>a(()=>{},{scope:{__placeholder:e}}),c=s();l(c),queueMicrotask(()=>{if(!e._x_model)return;e._x_removeModelListeners.default();let t=e._x_model.get,n=e._x_model.set,i=dt({get:()=>t(),set(e){n(e)}},{get:()=>s(),set(e){l(e)}});r(i)})}),re("teleport",(e,{modifiers:t,expression:n},{cleanup:i})=>{"template"!==e.tagName.toLowerCase()&&we("x-teleport can only be used on a <template> tag",e);let r=Bn(n),o=e.content.cloneNode(!0).firstElementChild;e._x_teleport=o,o._x_teleportBack=e,e.setAttribute("data-teleport-template",!0),o.setAttribute("data-teleport-target",!0),e._x_forwardEvents&&e._x_forwardEvents.forEach(t=>{o.addEventListener(t,t=>{t.stopPropagation(),e.dispatchEvent(new t.constructor(t.type,t))})}),I(o,{},e);let s=(e,t,n)=>{n.includes("prepend")?t.parentNode.insertBefore(e,t):n.includes("append")?t.parentNode.insertBefore(e,t.nextSibling):t.appendChild(e)};C(()=>{s(o,r,t),Ze(()=>{Ie(o)})()}),e._x_teleportPutBack=()=>{let i=Bn(n);C(()=>{s(e._x_teleport,i,t)})},i(()=>C(()=>{o.remove(),Le(o)}))});var Rn=document.createElement("div");function Bn(e){let t=Ze(()=>document.querySelector(e),()=>Rn)();return t||we(`Cannot find x-teleport element for selector: "${e}"`),t}var zn=()=>{};function Dn(e,t,n,i){let r=e,o=e=>i(e),s={},a=(e,t)=>n=>t(e,n);if(n.includes("dot")&&(t=t.replace(/-/g,".")),n.includes("camel")&&(t=function(e){return e.toLowerCase().replace(/-(\w)/g,(e,t)=>t.toUpperCase())}(t)),n.includes("passive")&&(s.passive=!0),n.includes("capture")&&(s.capture=!0),n.includes("window")&&(r=window),n.includes("document")&&(r=document),n.includes("debounce")){let e=n[n.indexOf("debounce")+1]||"invalid-wait",t=Wn(e.split("ms")[0])?Number(e.split("ms")[0]):250;o=ct(o,t)}if(n.includes("throttle")){let e=n[n.indexOf("throttle")+1]||"invalid-wait",t=Wn(e.split("ms")[0])?Number(e.split("ms")[0]):250;o=ut(o,t)}return n.includes("prevent")&&(o=a(o,(e,t)=>{t.preventDefault(),e(t)})),n.includes("stop")&&(o=a(o,(e,t)=>{t.stopPropagation(),e(t)})),n.includes("once")&&(o=a(o,(e,n)=>{e(n),r.removeEventListener(t,o,s)})),(n.includes("away")||n.includes("outside"))&&(r=document,o=a(o,(t,n)=>{e.contains(n.target)||!1!==n.target.isConnected&&(e.offsetWidth<1&&e.offsetHeight<1||!1!==e._x_isShown&&t(n))})),n.includes("self")&&(o=a(o,(t,n)=>{n.target===e&&t(n)})),(function(e){return["keydown","keyup"].includes(e)}(t)||qn(t))&&(o=a(o,(e,t)=>{(function(e,t){let n=t.filter(e=>!["window","document","prevent","stop","once","capture","self","away","outside","passive","preserve-scroll"].includes(e));if(n.includes("debounce")){let e=n.indexOf("debounce");n.splice(e,Wn((n[e+1]||"invalid-wait").split("ms")[0])?2:1)}if(n.includes("throttle")){let e=n.indexOf("throttle");n.splice(e,Wn((n[e+1]||"invalid-wait").split("ms")[0])?2:1)}if(0===n.length)return!1;if(1===n.length&&Fn(e.key).includes(n[0]))return!1;const i=["ctrl","shift","alt","meta","cmd","super"].filter(e=>n.includes(e));if(n=n.filter(e=>!i.includes(e)),i.length>0){if(i.filter(t=>("cmd"!==t&&"super"!==t||(t="meta"),e[`${t}Key`])).length===i.length){if(qn(e.type))return!1;if(Fn(e.key).includes(n[0]))return!1}}return!0})(t,n)||e(t)})),r.addEventListener(t,o,s),()=>{r.removeEventListener(t,o,s)}}function Wn(e){return!Array.isArray(e)&&!isNaN(e)}function qn(e){return["contextmenu","click","mouse"].some(t=>e.includes(t))}function Fn(e){if(!e)return[];var t;e=[" ","_"].includes(t=e)?t:t.replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[_\s]/,"-").toLowerCase();
1let n={ctrl:"control",slash:"/",space:" ",spacebar:" ",cmd:"meta",esc:"escape",up:"arrow-up",down:"arrow-down",left:"arrow-left",right:"arrow-right",period:".",comma:",",equal:"=",minus:"-",underscore:"_"};return n[e]=e,Object.keys(n).map(t=>{if(n[t]===e)return t}).filter(e=>e)}function Hn(e,t,n,i){return C(()=>{if(n instanceof CustomEvent&&void 0!==n.detail)return null!==n.detail&&void 0!==n.detail?n.detail:n.target.value;if(at(e)){if(Array.isArray(i)){let e=null;return e=t.includes("number")?Jn(n.target.value):t.includes("boolean")?it(n.target.value):n.target.value,n.target.checked?i.includes(e)?i:i.concat([e]):i.filter(t=>!(t==e))}return n.target.checked}if("select"===e.tagName.toLowerCase()&&e.multiple)return t.includes("number")?Array.from(n.target.selectedOptions).map(e=>Jn(e.value||e.text)):t.includes("boolean")?Array.from(n.target.selectedOptions).map(e=>it(e.value||e.text)):Array.from(n.target.selectedOptions).map(e=>e.value||e.text);{let r;return r=lt(e)?n.target.checked?n.target.value:i:n.target.value,t.includes("number")?Jn(r):t.includes("boolean")?it(r):t.includes("trim")?r.trim():r}})}function Jn(e){let t=e?parseFloat(e):null;return n=t,Array.isArray(n)||isNaN(n)?e:t;var n}function Kn(e){return null!==e&&"object"==typeof e&&"function"==typeof e.get&&"function"==typeof e.set}zn.inline=(e,{modifiers:t},{cleanup:n})=>{t.includes("self")?e._x_ignoreSelf=!0:e._x_ignore=!0,n(()=>{t.includes("self")?delete e._x_ignoreSelf:delete e._x_ignore})},re("ignore",zn),re("effect",Ze((e,{expression:t},{effect:n})=>{n(X(e,t))})),re("model",(e,{modifiers:t,expression:n},{effect:i,cleanup:r})=>{let o=e;t.includes("parent")&&(o=e.parentNode);let s,a=X(o,n);s="string"==typeof n?X(o,`${n} = __placeholder`):"function"==typeof n&&"string"==typeof n()?X(o,`${n()} = __placeholder`):()=>{};let l=()=>{let e;return a(t=>e=t),Kn(e)?e.get():e},c=e=>{let t;a(e=>t=e),Kn(t)?t.set(e):s(()=>{},{scope:{__placeholder:e}})};"string"==typeof n&&"radio"===e.type&&C(()=>{e.hasAttribute("name")||e.setAttribute("name",n)});let u="select"===e.tagName.toLowerCase()||["checkbox","radio"].includes(e.type)||t.includes("lazy")?"change":"input",d=Ve?()=>{}:Dn(e,u,t,n=>{c(Hn(e,t,n,l()))});if(t.includes("fill")&&([void 0,null,""].includes(l())||at(e)&&Array.isArray(l())||"select"===e.tagName.toLowerCase()&&e.multiple)&&c(Hn(e,t,{target:e},l())),e._x_removeModelListeners||(e._x_removeModelListeners={}),e._x_removeModelListeners.default=d,r(()=>e._x_removeModelListeners.default()),e.form){let n=Dn(e.form,"reset",[],n=>{Be(()=>e._x_model&&e._x_model.set(Hn(e,t,{target:e},l())))});r(()=>n())}e._x_model={get:()=>l(),set(e){c(e)}},e._x_forceModelUpdate=t=>{void 0===t&&"string"==typeof n&&n.match(/\./)&&(t=""),window.fromModel=!0,C(()=>et(e,"value",t)),delete window.fromModel},i(()=>{let n=l();t.includes("unintrusive")&&document.activeElement.isSameNode(e)||e._x_forceModelUpdate(n)})}),re("cloak",e=>queueMicrotask(()=>C(()=>e.removeAttribute(ne("cloak"))))),$e(()=>`[${ne("init")}]`),re("init",Ze((e,{expression:t},{evaluate:n})=>"string"==typeof t?!!t.trim()&&n(t,{},!1):n(t,{},!1))),re("text",(e,{expression:t},{effect:n,evaluateLater:i})=>{let r=i(t);n(()=>{r(t=>{C(()=>{e.textContent=t})})})}),re("html",(e,{expression:t},{effect:n,evaluateLater:i})=>{let r=i(t);n(()=>{r(t=>{C(()=>{e.innerHTML=t,e._x_ignoreSelf=!0,Ie(e),delete e._x_ignoreSelf})})})}),_e(de(":",ne("bind:")));var Un=(e,{value:t,modifiers:n,expression:i,original:r},{effect:o,cleanup:s})=>{if(!t){let t={};return a=t,Object.entries(ht).forEach(([e,t])=>{Object.defineProperty(a,e,{get:()=>(...e)=>t(...e)})}),void X(e,i)(t=>{gt(e,t,r)},{scope:t})}var a;if("key"===t)return function(e,t){e._x_keyExpression=t}(e,i);if(e._x_inlineBindings&&e._x_inlineBindings[t]&&e._x_inlineBindings[t].extract)return;let l=X(e,i);o(()=>l(r=>{void 0===r&&"string"==typeof i&&i.match(/\./)&&(r=""),C(()=>et(e,t,r,n))})),s(()=>{e._x_undoAddedClasses&&e._x_undoAddedClasses(),e._x_undoAddedStyles&&e._x_undoAddedStyles()})};function Vn(e,t,n,i){let r={};if(/^\[.*\]$/.test(e.item)&&Array.isArray(t)){e.item.replace("[","").replace("]","").split(",").map(e=>
1e.trim()).forEach((e,n)=>{r[e]=t[n]})}else if(/^\{.*\}$/.test(e.item)&&!Array.isArray(t)&&"object"==typeof t){e.item.replace("{","").replace("}","").split(",").map(e=>e.trim()).forEach(e=>{r[e]=t[e]})}else r[e.item]=t;return e.index&&(r[e.index]=n),e.collection&&(r[e.collection]=i),r}function Zn(){}function Xn(e,t,n){re(t,i=>we(`You can't use [x-${t}] without first installing the "${e}" plugin here: https://alpinejs.dev/plugins/${n}`,i))}Un.inline=(e,{value:t,modifiers:n,expression:i})=>{t&&(e._x_inlineBindings||(e._x_inlineBindings={}),e._x_inlineBindings[t]={expression:i,extract:!1})},re("bind",Un),Ce(()=>`[${ne("data")}]`),re("data",(e,{expression:n},{cleanup:i})=>{if(function(e){return!!Ve&&(!!Ge||e.hasAttribute("data-has-alpine-state"))}(e))return;n=""===n?"{}":n;let r={};H(r,e);let o={};var s,a;s=o,a=r,Object.entries(mt).forEach(([e,t])=>{Object.defineProperty(s,e,{get:()=>(...e)=>t.bind(a)(...e),enumerable:!1})});let l=Z(e,n,{scope:o});void 0!==l&&!0!==l||(l={}),H(l,e);let c=t(l);z(c);let u=I(e,c);c.init&&Z(e,c.init),i(()=>{c.destroy&&Z(e,c.destroy),u()})}),Ye((e,t)=>{e._x_dataStack&&(t._x_dataStack=e._x_dataStack,t.setAttribute("data-has-alpine-state",!0))}),re("show",(e,{modifiers:t,expression:n},{effect:i})=>{let r=X(e,n);e._x_doHide||(e._x_doHide=()=>{C(()=>{e.style.setProperty("display","none",t.includes("important")?"important":void 0)})}),e._x_doShow||(e._x_doShow=()=>{C(()=>{1===e.style.length&&"none"===e.style.display?e.removeAttribute("style"):e.style.removeProperty("display")})});let o,s=()=>{e._x_doHide(),e._x_isShown=!1},a=()=>{e._x_doShow(),e._x_isShown=!0},l=()=>setTimeout(a),c=Fe(e=>e?a():s(),t=>{"function"==typeof e._x_toggleAndCascadeWithTransitions?e._x_toggleAndCascadeWithTransitions(e,t,a,s):t?l():s()}),u=!0;i(()=>r(e=>{(u||e!==o)&&(t.includes("immediate")&&(e?l():s()),c(e),o=e,u=!1)}))}),re("for",(e,{expression:n},{effect:i,cleanup:r})=>{let o=function(e){let t=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,n=/^\s*\(|\)\s*$/g,i=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,r=e.match(i);if(!r)return;let o={};o.items=r[2].trim();let s=r[1].replace(n,"").trim(),a=s.match(t);a?(o.item=s.replace(t,"").trim(),o.index=a[1].trim(),a[2]&&(o.collection=a[2].trim())):o.item=s;return o}(n),s=X(e,o.items),a=X(e,e._x_keyExpression||"index");e._x_prevKeys=[],e._x_lookup={},i(()=>function(e,n,i,r){let o=e=>"object"==typeof e&&!Array.isArray(e),s=e;i(i=>{var a;a=i,!Array.isArray(a)&&!isNaN(a)&&i>=0&&(i=Array.from(Array(i).keys(),e=>e+1)),void 0===i&&(i=[]);let l=e._x_lookup,c=e._x_prevKeys,u=[],d=[];if(o(i))i=Object.entries(i).map(([t,o])=>{let s=Vn(n,o,t,i);r(t=>{d.includes(t)&&we("Duplicate key on x-for",e),d.push(t)},{scope:{index:t,...s}}),u.push(s)});else for(let t=0;t<i.length;t++){let o=Vn(n,i[t],t,i);r(t=>{d.includes(t)&&we("Duplicate key on x-for",e),d.push(t)},{scope:{index:t,...o}}),u.push(o)}let f=[],p=[],h=[],g=[];for(let e=0;e<c.length;e++){let t=c[e];-1===d.indexOf(t)&&h.push(t)}c=c.filter(e=>!h.includes(e));let m="template";for(let e=0;e<d.length;e++){let t=d[e],n=c.indexOf(t);if(-1===n)c.splice(e,0,t),f.push([m,e]);else if(n!==e){let t=c.splice(e,1)[0],i=c.splice(n-1,1)[0];c.splice(e,0,i),c.splice(n,0,t),p.push([t,i])}else g.push(t);m=t}for(let e=0;e<h.length;e++){let t=h[e];t in l&&(C(()=>{Le(l[t]),l[t].remove()}),delete l[t])}for(let e=0;e<p.length;e++){let[t,n]=p[e],i=l[t],r=l[n],o=document.createElement("div");C(()=>{r||we('x-for ":key" is undefined or invalid',s,n,l),r.after(o),i.after(r),r._x_currentIfEl&&r.after(r._x_currentIfEl),o.before(i),i._x_currentIfEl&&i.after(i._x_currentIfEl),o.remove()}),r._x_refreshXForScope(u[d.indexOf(n)])}for(let e=0;e<f.length;e++){let[n,i]=f[e],r="template"===n?s:l[n];r._x_currentIfEl&&(r=r._x_currentIfEl);let o=u[i],a=d[i],c=document.importNode(s.content,!0).firstElementChild,p=t(o);I(c,p,s),c._x_refreshXForScope=e=>{Object.entries(e).forEach(([e,t])=>{p[e]=t})},C(()=>{r.after(c),Ze(()=>Ie(c))()}),"object"==typeof a&&we("x-for key cannot be an object, it must be a string or an integer",s),l[a]=c}for(let e=0;e<g.length;e++)l[g[e]]._x_refreshXForScope(u[d.indexOf(g[e])]);s._x_prevKeys=d})}(e,o,s,a)),r(()=>
1{Object.values(e._x_lookup).forEach(e=>C(()=>{Le(e),e.remove()})),delete e._x_prevKeys,delete e._x_lookup})}),Zn.inline=(e,{expression:t},{cleanup:n})=>{let i=Me(e);i._x_refs||(i._x_refs={}),i._x_refs[t]=e,n(()=>delete i._x_refs[t])},re("ref",Zn),re("if",(e,{expression:t},{effect:n,cleanup:i})=>{"template"!==e.tagName.toLowerCase()&&we("x-if can only be used on a <template> tag",e);let r=X(e,t);n(()=>r(t=>{t?(()=>{if(e._x_currentIfEl)return e._x_currentIfEl;let t=e.content.cloneNode(!0).firstElementChild;I(t,{},e),C(()=>{e.after(t),Ze(()=>Ie(t))()}),e._x_currentIfEl=t,e._x_undoIf=()=>{C(()=>{Le(t),t.remove()}),delete e._x_currentIfEl}})():e._x_undoIf&&(e._x_undoIf(),delete e._x_undoIf)})),i(()=>e._x_undoIf&&e._x_undoIf())}),re("id",(e,{expression:t},{evaluate:n})=>{n(t).forEach(t=>function(e,t){e._x_ids||(e._x_ids={}),e._x_ids[t]||(e._x_ids[t]=Ln(t))}(e,t))}),Ye((e,t)=>{e._x_ids&&(t._x_ids=e._x_ids)}),_e(de("@",ne("on:"))),re("on",Ze((e,{value:t,modifiers:n,expression:i},{cleanup:r})=>{let o=i?X(e,i):()=>{};"template"===e.tagName.toLowerCase()&&(e._x_forwardEvents||(e._x_forwardEvents=[]),e._x_forwardEvents.includes(t)||e._x_forwardEvents.push(t));let s=Dn(e,t,n,e=>{o(()=>{},{scope:{$event:e},params:[e]})});r(()=>s())})),Xn("Collapse","collapse","collapse"),Xn("Intersect","intersect","intersect"),Xn("Focus","trap","focus"),Xn("Mask","mask","mask"),xt.setEvaluator(G),xt.setReactivityEngine({reactive:$n,effect:function(e,t=bt){(function(e){return e&&!0===e._isEffect})(e)&&(e=e.raw);const n=function(e,t){const n=function(){if(!n.active)return e();if(!Lt.includes(n)){zt(n);try{return Wt.push(Dt),Dt=!0,Lt.push(n),yt=n,e()}finally{Lt.pop(),qt(),yt=Lt[Lt.length-1]}}};return n.id=Bt++,n.allowRecurse=!!t.allowRecurse,n._isEffect=!0,n.active=!0,n.raw=e,n.deps=[],n.options=t,n}(e,t);return t.lazy||n(),n},release:function(e){e.active&&(zt(e),e.options.onStop&&e.options.onStop(),e.active=!1)},raw:Nn});var Yn=xt;function Gn(e){var t;null==(t=document.currentScript)||t.src;const n=e;return{open:!1,loading:!1,messages:[],input:"",error:null,sessionId:null,disableInput:!1,repeatMessage:null,chatApiService:new ti(n),sessionManager:ei,init(){console.log(n);this.sessionManager.getSessionId()&&this.initSession()},toggleChatWindow(){this.open=!this.open,console.log(this.open),this.open&&this.$nextTick(()=>{this.scrollToBottom()})},startNetworking(){console.log("startNetworking"),this.loading=!0,this.error=null,this.disableInput=!0},stopNetworking(){console.log("stopNetworking"),this.loading=!1,this.disableInput=!1},async initSession(e=null){console.log("initSession"),this.startNetworking(),e&&(this.messages=[{sender:"user",message:e}],this.sessionId="loading",this.repeatMessage=e);try{const t=await this.chatApiService.loadMessages({session_id:this.sessionManager.getSessionId(),metadata:this.collectChatMetadata(),query:e});let n=this;await this.processResponse(t,function(e){n.sessionId=e.session_id,n.messages=e.messages||[],n.sessionManager.saveSessionId(e.session_id),n.repeatMessage=null})}catch(t){this.error="Cannot load chat. Try again later.",console.error(t)}finally{this.stopNetworking()}},async send(){if(console.log("send"),!this.input.trim())return;this.messages.push({sender:"user",message:this.input}),this.repeatMessage=this.input;const e=this.input;this.input="",this.startNetworking(),this.$nextTick(()=>{this.scrollToBottom()});try{const t=await this.chatApiService.sendMessage({message:e,session_id:this.sessionId});let n=this;await this.processResponse(t,function(e){n.messages.push({sender:"bot",message:e.reply}),n.repeatMessage=null})}catch(t){this.error="Network error. Please try again.",console.error(t)}finally{this.stopNetworking()}},async closeChat(){console.log("closeChat"),this.sessionManager.removeSessionId(),this.sessionId=null},async startChat(){console.log("startChat");let e=arguments[0]||!1;this.sessionId=null,this.sessionManager.removeSessionId(),this.initSession(!!e&&e.textContent.trim())},async repeatLastMessage(){console.log("repeatLastMessage"),this.repeatMessage&&(this.input=this.repeatMessage,this.send())},scrollToBottom(){console.log("scrollToBottom"),this.$refs.chatMessages&&(this.$refs.chatMessages.scrollTop=this.$refs.chatMessages.scrollHeight)},decodeHtmlEntities(e){if(!e)return e;if(!e.includes("&lt;"))return e;const t=e.replace(/<[^>]*>/g,""),n=document.createElement("textarea");return n.innerHTML=t,n.value},collectChatMetadata(){var e,t;return{browserInfo:{name:null==(e=navigator.userAgent.match(/chrome|firefox|safari|edge|opera/i))?void 0:e[0],version:navigator.userAgent,language:navigator.language,userAgent:navigator.userAgent,screenResolution:`${window.screen.width}x${window.screen.height}`,windowSize:`${window.innerWidth}x${window.innerHeight}`},osInfo:{platform:navigator.platform,osName:(t=navigator.userAgent,t.includes("Windows")?"Windows":t.includes("Mac")?"MacOS":t.includes("Linux")?"Linux":t.includes("Android")?"Android":t.includes("iOS")?"iOS":"Unknown")},deviceInfo:{isMobile:/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),hasTouch:"ontouchstart"in window,connectionType:navigator.connection?navigator.connection.effectiveType:null},timeInfo:{timezone:Intl.DateTimeFormat().resolvedOptions().timeZone}}},async processResponse(e,t){if(console.log("processResponse"),429===e.status)return void(this.error="Too many requests. Please wait a moment before trying again.");
1if(200!==e.status)return void(this.error="Error "+e.status+". Please try again.");let n=await e.json();n.messages&&Array.isArray(n.messages)&&(n.messages=n.messages.map(e=>({...e,message:this.decodeHtmlEntities(e.message)}))),n.reply&&(n.reply=this.decodeHtmlEntities(n.reply)),t(n),this.$nextTick(()=>{this.scrollToBottom()})}}}const Qn="chat_session_id";class ei{static getSessionId(){return localStorage.getItem(Qn)||null}static saveSessionId(e){localStorage.setItem(Qn,e)}static removeSessionId(){localStorage.removeItem(Qn)}}class ti{constructor(e){this.endpoints={start:`${e}/api/chat/start`,load:`${e}/api/chat/load`,chat:`${e}/api/chat`}}async loadMessages(e){const t=e.session_id?this.endpoints.load:this.endpoints.start;return await fetch(t,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)})}async sendMessage(e){return await fetch(this.endpoints.chat,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)})}}const ni=Boolean(document.querySelector('script[type="module"]')),ii=((null==(e=document.currentScript)?void 0:e.src)||"").split("/").slice(0,-1).join("/");if(!ni){const e=document.createElement("link");e.rel="stylesheet",e.href=`${ii}/chat-widget.css`,document.head.appendChild(e)}window.addEventListener("DOMContentLoaded",()=>{const e=document.createElement("div");e.setAttribute("id","chat-widget-container"),fetch(`${ii}/chat-widget.html`).then(e=>e.text()).then(t=>{e.innerHTML=t,document.body.appendChild(e),window.Alpine=Yn,Yn.data("chatWidget",Gn),Yn.start()})});

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.