PageSourceSearch

https://ecentic.ai/_next/static/immutable/chunks/0n55juvvv1r8b.js

js ecentic.ai collected 2026-10-02 06:27:59 UTC 20,559 bytes, 4 lines download raw bytes

1;!function(){try { var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&((e._debugIds|| (e._debugIds={}))[n]="a578ee3a-4c36-4c88-a253-5db88b974ea8")}catch(e){}}();
2(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,466863,e=>{"use strict";var t=e.i(299599),r=e.i(572411),i=e.i(998659);e.s(["CookieSettings",0,()=>{let e,l=(0,r.c)(2),{revisit:n}=(0,i.useConsent)();return l[0]!==n?(e=(0,t.jsx)("button",{type:"button",onClick:n,className:"cursor-pointer font-light text-foreground-dimmed text-sm transition-colors hover:text-primary",children:"Cookie settings"}),l[0]=n,l[1]=e):e=l[1],e}])},205139,e=>{"use strict";let t;var r=e.i(789572);function i(e){if("object"!=typeof e)return e;if(null===e)return null;if(Array.isArray(e))return e.map(i);if(e instanceof Date)return new Date(e.getTime());if(e instanceof RegExp){var t;let r=/^\/(.*)\/([gimyu]*)$/.exec(e.toString());if(!r)throw Error("Invalid RegExp");return new RegExp(null!=(t=r[1])?t:"",r[2])}let r={};for(let t in e)Object.prototype.hasOwnProperty.call(e,t)&&(r[t]=i(e[t]));return r}class l{setResult(e){return this.result=e,this.hasResult=!0,this}exit(){return this.exiting=!0,this}push(e,t){if(e.parent=this,void 0!==t&&(e.childName=t),e.root=this.root||this,e.options=e.options||this.options,this.children){let t;if(0===this.children.length)throw Error("Expected a non-empty array");(t=this.children)[t.length-1].next=e,this.children.push(e)}else this.children=[e],this.nextAfterChildren=this.next||null,this.next=e;return e.next=this,this}}let n=class extends l{constructor(e,t){super(),this.left=e,this.right=t,this.pipe="diff"}prepareDeltaResult(e){var t,r,l,n;if("object"==typeof e&&((null==(t=this.options)?void 0:t.omitRemovedValues)&&Array.isArray(e)&&e.length>1&&(2===e.length||0===e[2]||3===e[2])&&(e[0]=0),null==(r=this.options)?void 0:r.cloneDiffValues)){let t="function"==typeof(null==(l=this.options)?void 0:l.cloneDiffValues)?null==(n=this.options)?void 0:n.cloneDiffValues:i;"object"==typeof e[0]&&(e[0]=t(e[0])),"object"==typeof e[1]&&(e[1]=t(e[1]))}return e}setResult(e){return this.prepareDeltaResult(e),super.setResult(e)}},s=class extends l{constructor(e,t){super(),this.left=e,this.delta=t,this.pipe="patch"}},o=class extends l{constructor(e){super(),this.delta=e,this.pipe="reverse"}},a=class{constructor(e){this.name=e,this.filters=[]}process(e){if(!this.processor)throw Error("add this pipe to a processor before using it");let t=this.debug,r=this.filters.length;for(let i=0;i<r;i++){let r=this.filters[i];if(r&&(t&&this.log(`filter: ${r.filterName}`),r(e),"object"==typeof e&&e.exiting)){e.exiting=!1;break}}!e.next&&this.resultCheck&&this.resultCheck(e)}log(e){console.log(`[jsondiffpatch] ${this.name} pipe, ${e}`)}append(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.filters.push(...t),this}prepend(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.filters.unshift(...t),this}indexOf(e){if(!e)throw Error("a filter name is required");for(let t=0;t<this.filters.length;t++){let r=this.filters[t];if((null==r?void 0:r.filterName)===e)return t}throw Error(`filter not found: ${e}`)}list(){return this.filters.map(e=>e.filterName)}after(e){for(var t=arguments.length,r=Array(t>1?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];let l=this.indexOf(e);return this.filters.splice(l+1,0,...r),this}before(e){for(var t=arguments.length,r=Array(t>1?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];let l=this.indexOf(e);return this.filters.splice(l,0,...r),this}replace(e){for(var t=arguments.length,r=Array(t>1?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];let l=this.indexOf(e);return this.filters.splice(l,1,...r),this}remove(e){let t=this.indexOf(e);return this.filters.splice(t,1),this}clear(){return this.filters.length=0,this}shouldHaveResult(e){return!1===e?this.resultCheck=null:this.resultCheck||(this.resultCheck=e=>{if(!e.hasResult){console.log(e);let t=Error(`${this.name} failed`);throw t.noResult=!0,t}}),this}},u=class{constructor(e){this.selfOptions=e||{},this.pipes={}}options(e){return e&&(this.selfOptions=e),this.selfOptions}pipe(e,t){let r=t;if("string"==typeof e){if(void 0===r)return this.pipes[e];this.pipes[e]=r}if(e&&e.name){if((r=e).processor===this)return r;this.pipes[r.name]=r}if(!r)throw Error(`pipe is not defined: ${e}`);return r.processor=this,r}process(e,t){let r,i=e;i.options=this.options();let l=t||e.pipe||"default";for(;l;)void 0!==i.nextAfterChildren&&(i.next=i.nextAfterChildren,i.nextAfterChildren=null),"string"==typeof l&&(l=this.pipe(l)),l.process(i),r=l,l=null,i&&i.next&&(l=(i=i.next).pipe||r);return i.hasResult?i.result:void 0}},f=(e,t,r,i)=>e[r]===t[i];function h(e,t,r,i,l){let n=e[r],s=t[i];if(n===s)return!0;
2if("object"!=typeof n||"object"!=typeof s)return!1;let o=l.objectHash;if(!o)return l.matchByPosition&&r===i;l.hashCache1=l.hashCache1||[];let a=l.hashCache1[r];if(void 0===a&&(l.hashCache1[r]=a=o(n,r)),void 0===a)return!1;l.hashCache2=l.hashCache2||[];let u=l.hashCache2[i];return void 0===u&&(l.hashCache2[i]=u=o(s,i)),void 0!==u&&a===u}let c=function(e){var t,r,i,l,s,o,a;let u,c,d,p,v,y;if(!e.leftIsArray)return;let x={objectHash:null==(t=e.options)?void 0:t.objectHash,matchByPosition:null==(r=e.options)?void 0:r.matchByPosition},g=0,m=0,w=e.left,b=e.right,R=w.length,A=b.length;for(R>0&&A>0&&!x.objectHash&&"boolean"!=typeof x.matchByPosition&&(x.matchByPosition=!function(e,t,r,i){for(let l=0;l<r;l++){let r=e[l];for(let e=0;e<i;e++){let i=t[e];if(l!==e&&r===i)return!0}}return!1}(w,b,R,A));g<R&&g<A&&h(w,b,g,g,x);)p=new n(w[u=g],b[u]),e.push(p,u),g++;for(;m+g<R&&m+g<A&&h(w,b,R-1-m,A-1-m,x);)c=R-1-m,d=A-1-m,p=new n(w[c],b[d]),e.push(p,d),m++;if(g+m===R){if(R===A)return void e.setResult(void 0).exit();for(v=v||{_t:"a"},u=g;u<A-m;u++)v[u]=[b[u]],e.prepareDeltaResult(v[u]);return void e.setResult(v).exit()}if(g+m===A){for(v=v||{_t:"a"},u=g;u<R-m;u++){let t=`_${u}`;v[t]=[w[u],0,0],e.prepareDeltaResult(v[t])}e.setResult(v).exit();return}x.hashCache1=void 0,x.hashCache2=void 0;let C=w.slice(g,R-m),E=b.slice(g,A-m),I=((e,t,r,i)=>{let l=t.length,n=r.length,s={sequence:[],indices1:[],indices2:[]};for(;0!==l&&0!==n;){if(void 0===e.match)throw Error("LCS matrix match function is undefined");if(e.match(t,r,l-1,n-1,i))s.sequence.unshift(t[l-1]),s.indices1.unshift(l-1),s.indices2.unshift(n-1),--l,--n;else{let t=e[l];if(void 0===t)throw Error("LCS matrix row is undefined");let r=t[n-1];if(void 0===r)throw Error("LCS matrix value is undefined");let i=e[l-1];if(void 0===i)throw Error("LCS matrix row is undefined");let s=i[n];if(void 0===s)throw Error("LCS matrix value is undefined");r>s?--n:--l}}return s})(((e,t,r,i)=>{var l,n,s;let o,a,u=e.length,f=t.length,h=Array(u+1);for(o=0;o<u+1;o++){let e=Array(f+1);for(a=0;a<f+1;a++)e[a]=0;h[o]=e}for(h.match=r,o=1;o<u+1;o++){let u=h[o];if(void 0===u)throw Error("LCS matrix row is undefined");let c=h[o-1];if(void 0===c)throw Error("LCS matrix row is undefined");for(a=1;a<f+1;a++)r(e,t,o-1,a-1,i)?u[a]=(null!=(l=c[a-1])?l:0)+1:u[a]=Math.max(null!=(n=c[a])?n:0,null!=(s=u[a-1])?s:0)}return h})(o=C,a=E,h||f,y=x||{}),o,a,y),N=[];for(v=v||{_t:"a"},u=g;u<R-m;u++)if(0>I.indices1.indexOf(u-g)){let t=`_${u}`;v[t]=[w[u],0,0],e.prepareDeltaResult(v[t]),N.push(u)}let j=!0;(null==(i=e.options)?void 0:i.arrays)&&!1===e.options.arrays.detectMove&&(j=!1);let S=!1;(null==(s=null==(l=e.options)?void 0:l.arrays)?void 0:s.includeValueOnMove)&&(S=!0);let _=N.length;for(u=g;u<A-m;u++){let t=I.indices2.indexOf(u-g);if(t<0){let t=!1;if(j&&_>0)for(let r=0;r<_;r++){let i=void 0===(c=N[r])?void 0:v[`_${c}`];if(void 0!==c&&i&&h(C,E,c-g,u-g,x)){i.splice(1,2,u,3),i.splice(1,2,u,3),S||(i[0]=""),d=u,p=new n(w[c],b[d]),e.push(p,d),N.splice(r,1),t=!0;break}}t||(v[u]=[b[u]],e.prepareDeltaResult(v[u]))}else{if(void 0===I.indices1[t])throw Error(`Invalid indexOnArray2: ${t}, seq.indices1: ${I.indices1}`);if(c=I.indices1[t]+g,void 0===I.indices2[t])throw Error(`Invalid indexOnArray2: ${t}, seq.indices2: ${I.indices2}`);d=I.indices2[t]+g,p=new n(w[c],b[d]),e.push(p,d)}}e.setResult(v).exit()};c.filterName="arrays";let d=(e,t)=>e-t,p=function(e){var t;let r,i,l;if(!e.nested)return;let n=e.delta;if("a"!==n._t)return;let o=e.left,a=[],u=[],f=[];for(r in n)if("_t"!==r)if("_"===r[0]){let e=r;if(void 0!==n[e]&&(0===n[e][2]||3===n[e][2]))a.push(Number.parseInt(r.slice(1),10));else throw Error(`only removal or move can be applied at original array indices, invalid diff type: ${null==(t=n[e])?void 0:t[2]}`)}else{let e=r;1===n[e].length?u.push({index:Number.parseInt(e,10),value:n[e][0]}):f.push({index:Number.parseInt(e,10),delta:n[e]})}for(r=(a=a.sort(d)).length-1;r>=0;r--){if(void 0===(i=a[r]))continue;let e=n[`_${i}`],t=o.splice(i,1)[0];(null==e?void 0:e[2])===3&&u.push({index:e[1],value:t})}let h=(u=u.sort((l="index",(e,t)=>e[l]-t[l]))).length;for(r=0;r<h;r++){let e=u[r];void 0!==e&&o.splice(e.index,0,e.value)}let c=f.length;if(c>0)for(r=0;r<c;r++){let t=f[r];if(void 0===t)continue;let i=new s(o[t.index],t.delta);e.push(i,t.index)}
2e.children?e.exit():e.setResult(o).exit()};p.filterName="arrays";let v=function(e){if(!e||!e.children||"a"!==e.delta._t)return;let t=e.left,r=e.children.length;for(let i=0;i<r;i++){let r=e.children[i];void 0!==r&&(t[r.childName]=r.result)}e.setResult(t).exit()};v.filterName="arraysCollectChildren";let y=function(e){if(!e.nested){let t=e.delta;3===t[2]&&(e.newName=`_${t[1]}`,e.setResult([t[0],Number.parseInt(e.childName.substring(1),10),3]).exit());return}let t=e.delta;if("a"===t._t){for(let r in t){if("_t"===r)continue;let i=new o(t[r]);e.push(i,r)}e.exit()}};y.filterName="arrays";let x=(e,t,r)=>{if("string"==typeof t&&"_"===t[0])return Number.parseInt(t.substring(1),10);if(Array.isArray(r)&&0===r[2])return`_${t}`;let i=+t;for(let r in e){let l=e[r];if(Array.isArray(l))if(3===l[2]){let e=Number.parseInt(r.substring(1),10),n=l[1];if(n===+t)return e;e<=i&&n>i?i++:e>=i&&n<i&&i--}else 0===l[2]?Number.parseInt(r.substring(1),10)<=i&&i++:1===l.length&&Number.parseInt(r,10)<=i&&i--}return i},g=e=>{if(!e||!e.children)return;let t=e.delta;if("a"!==t._t)return;let r=e.children.length,i={_t:"a"};for(let l=0;l<r;l++){let r=e.children[l];if(void 0===r)continue;let n=r.newName;if(void 0===n){if(void 0===r.childName)throw Error("child.childName is undefined");n=x(t,r.childName,r.result)}i[n]!==r.result&&(i[n]=r.result)}e.setResult(i).exit()};g.filterName="arraysCollectChildren";let m=function(e){e.left instanceof Date?(e.right instanceof Date?e.left.getTime()!==e.right.getTime()?e.setResult([e.left,e.right]):e.setResult(void 0):e.setResult([e.left,e.right]),e.exit()):e.right instanceof Date&&e.setResult([e.left,e.right]).exit()};m.filterName="dates";let w=new Set(["__proto__"]),b=e=>{if(!e||!e.children)return;let t=e.children.length,r=e.result;for(let i=0;i<t;i++){let t=e.children[i];if(void 0!==t&&void 0!==t.result){if(r=r||{},void 0===t.childName)throw Error("diff child.childName is undefined");r[t.childName]=t.result}}r&&e.leftIsArray&&(r._t="a"),e.setResult(r).exit()};b.filterName="collectChildren";let R=e=>{var t;if(e.leftIsArray||"object"!==e.leftType)return;let r=e.left,i=e.right,l=null==(t=e.options)?void 0:t.propertyFilter;for(let t in r){if(!Object.prototype.hasOwnProperty.call(r,t)||l&&!l(t,e))continue;let s=new n(r[t],i[t]);e.push(s,t)}for(let t in i)if(Object.prototype.hasOwnProperty.call(i,t)&&(!l||l(t,e))&&void 0===r[t]){let r=new n(void 0,i[t]);e.push(r,t)}e.children&&0!==e.children.length?e.exit():e.setResult(void 0).exit()};R.filterName="objects";let A=function(e){if(!e.nested)return;let t=e.delta;if(t._t)return;let r=!1;for(let i in t){if(w.has(i)||!Object.prototype.hasOwnProperty.call(t,i))continue;let l=e.left,n=new s(null!==l&&"object"==typeof l&&Object.prototype.hasOwnProperty.call(l,i)?l[i]:void 0,t[i]);e.push(n,i),r=!0}r?e.exit():e.setResult(e.left).exit()};A.filterName="objects";let C=function(e){if(!e||!e.children||e.delta._t)return;if(null===e.left||"object"!=typeof e.left)return void e.setResult(e.left).exit();let t=e.left,r=e.children.length;for(let i=0;i<r;i++){let r=e.children[i];if(void 0===r)continue;let l=r.childName;w.has(l)||(Object.prototype.hasOwnProperty.call(e.left,l)&&void 0===r.result?delete t[l]:t[l]!==r.result&&(t[l]=r.result))}e.setResult(t).exit()};C.filterName="collectChildren";let E=function(e){if(!e.nested||e.delta._t)return;let t=e.delta,r=!1;for(let i in t){if(w.has(i)||!Object.prototype.hasOwnProperty.call(t,i))continue;let l=new o(t[i]);e.push(l,i),r=!0}r?e.exit():e.setResult({}).exit()};E.filterName="objects";let I=e=>{if(!e||!e.children||e.delta._t)return;let t=e.children.length,r={};for(let i=0;i<t;i++){let t=e.children[i];if(void 0===t)continue;let l=t.childName;w.has(l)||r[l]!==t.result&&(r[l]=t.result)}e.setResult(r).exit()};I.filterName="collectChildren";let N=null;function j(e,t){var r;if(!N){let i;if(null==(r=null==e?void 0:e.textDiff)?void 0:r.diffMatchPatch)i=new e.textDiff.diffMatchPatch;else{if(!t)return null;let e=Error("The diff-match-patch library was not provided. Pass the library in through the options or use the `jsondiffpatch/with-text-diffs` entry-point.");throw e.diff_match_patch_not_found=!0,e}N={diff:(e,t)=>i.patch_toText(i.patch_make(e,t)),patch:(e,t)=>{let r=i.patch_apply(i.patch_fromText(t),e);for(let e of r[1])if(!e){let e=Error("text patch failed");throw e.textPatchFailed=!0,e}return r[0]}}}return N}let S=function(e){var t,r;if("string"!==e.leftType)return;let i=e.left,l=e.right,n=(null==(r=null==(t=e.options)?void 0:t.textDiff)?void 0:r.minLength)||60;
2if(i.length<n||l.length<n)return void e.setResult([i,l]).exit();let s=j(e.options);if(!s)return void e.setResult([i,l]).exit();let o=s.diff;e.setResult([o(i,l),0,2]).exit()};S.filterName="texts";let _=function(e){if(e.nested)return;let t=e.delta;if(2!==t[2])return;let r=j(e.options,!0).patch;e.setResult(r(e.left,t[0])).exit()};_.filterName="texts";let O=function(e){if(e.nested)return;let t=e.delta;2!==t[2]||e.setResult([(e=>{var t,r,i;let l=/^@@ +-(\d+),(\d+) +\+(\d+),(\d+) +@@$/,n=e.split("\n");for(let e=0;e<n.length;e++){let s=n[e];if(void 0===s)continue;let o=s.slice(0,1);if("@"===o){let t=l.exec(s);null!==t&&(n[e]=`@@ -${t[3]},${t[4]} +${t[1]},${t[2]} @@`)}else if("+"===o){if(n[e]=`-${null==(t=n[e])?void 0:t.slice(1)}`,(null==(r=n[e-1])?void 0:r.slice(0,1))==="+"){let t=n[e];n[e]=n[e-1],n[e-1]=t}}else"-"===o&&(n[e]=`+${null==(i=n[e])?void 0:i.slice(1)}`)}return n.join("\n")})(t[0]),0,2]).exit()};O.filterName="texts";let $=function(e){if(e.left===e.right)return void e.setResult(void 0).exit();if(void 0===e.left){if("function"==typeof e.right)throw Error("functions are not supported");e.setResult([e.right]).exit();return}
2if(void 0===e.right)return void e.setResult([e.left,0,0]).exit();if("function"==typeof e.left||"function"==typeof e.right)throw Error("functions are not supported");(e.leftType=null===e.left?"null":typeof e.left,e.rightType=null===e.right?"null":typeof e.right,e.leftType!==e.rightType||"boolean"===e.leftType||"number"===e.leftType||("object"===e.leftType&&(e.leftIsArray=Array.isArray(e.left)),"object"===e.rightType&&(e.rightIsArray=Array.isArray(e.right)),e.leftIsArray!==e.rightIsArray))?e.setResult([e.left,e.right]).exit():e.left instanceof RegExp&&(e.right instanceof RegExp?e.setResult([e.left.toString(),e.right.toString()]).exit():e.setResult([e.left,e.right]).exit())};$.filterName="trivial";let T=function(e){if(void 0===e.delta)return void e.setResult(e.left).exit();if(e.nested=!Array.isArray(e.delta),e.nested)return;let t=e.delta;if(1===t.length)return void e.setResult(t[0]).exit();if(2===t.length){if(e.left instanceof RegExp){let r=/^\/(.*)\/([gimyu]+)$/.exec(t[1]);if(null==r?void 0:r[1])return void e.setResult(new RegExp(r[1],r[2])).exit()}e.setResult(t[1]).exit();return}3===t.length&&0===t[2]&&e.setResult(void 0).exit()};T.filterName="trivial";let P=function(e){if(void 0===e.delta)return void e.setResult(e.delta).exit();if(e.nested=!Array.isArray(e.delta),e.nested)return;let t=e.delta;
21===t.length?e.setResult([t[0],0,0]).exit():2===t.length?e.setResult([t[1],t[0]]).exit():3===t.length&&0===t[2]&&e.setResult([t[0]]).exit()};P.filterName="trivial";let D=class{constructor(e){this.processor=new u(e),this.processor.pipe(new a("diff").append(b,$,m,S,R,c).shouldHaveResult()),this.processor.pipe(new a("patch").append(C,v,T,_,A,p).shouldHaveResult()),this.processor.pipe(new a("reverse").append(I,g,P,O,E,y).shouldHaveResult())}options(e){return this.processor.options(e)}diff(e,t){return this.processor.process(new n(e,t))}patch(e,t){return this.processor.process(new s(e,t))}reverse(e){return this.processor.process(new o(e))}unpatch(e,t){return this.patch(e,this.reverse(t))}clone(e){return i(e)}};function k(e,r){return t||(t=new D),t.patch(e,r)}function L(e){return t||(t=new D),t.clone(e)}var V=e.i(299599),H=Symbol.for("ui.streamable.value");function M(e){return null!=e&&"object"==typeof e&&"type"in e&&e.type===H}function U(e){if(!M(e))throw Error("Invalid value: this hook only accepts values created via `createStreamableValue`.");return{[Symbol.asyncIterator](){let t=e,r=t.curr,i=!1,l=!0;return{async next(){if(i)return{value:r,done:!0};if(void 0!==(t=await t).error)throw t.error;if("curr"in t||t.diff){if(t.diff){if(0===t.diff[0]){if("string"!=typeof r)throw Error("Invalid patch: can only append to string types. This is a bug in the AI SDK.");r+=t.diff[1]}}else r=t.curr;if(!t.next)return i=!0,{value:r,done:!1}}return void 0===t.next?{value:r,done:!0}:(t=t.next,l&&(l=!1,void 0===r))?this.next():{value:r,done:!1}}}}}}function B(e){let t=M(e);if(!t&&void 0!==e)throw Error("Invalid value: this hook only accepts values created via `createStreamableValue`.");return t}var q=r.createContext(null),K=r.createContext(void 0),F=r.createContext(null),W=r.createContext(null);e.s(["InternalAIProvider",0,function(e){let{children:t,initialUIState:i,initialAIState:l,initialAIStatePatch:n,wrappedActions:s,wrappedSyncUIState:o}=e;if(!("use"in r))throw Error("Unsupported React version.");let a=r.useState(i),u=a[1],f=n?r.use(n):void 0;l=r.useMemo(()=>f?k(L(l),f):l,[l,f]);let h=r.useState(l),c=h[1],d=r.useRef(h[0]);r.useEffect(()=>{d.current=h[0]},[h[0]]);let p=r.useMemo(()=>Object.fromEntries(Object.entries(s).map(e=>{let[t,r]=e;return[t,async function(){for(var e=arguments.length,t=Array(e),i=0;i<e;i++)t[i]=arguments[i];let l=d.current,[n,s]=await r(l,...t);return(async()=>{let e=await n;void 0!==e&&c(t=>k(L(t),e))})(),s}]})),[s]),v=r.useMemo(()=>o?async()=>{let e=d.current,[t,r]=await o(e);void 0!==r&&u(r);let i=await t;void 0!==i&&c(k(L(e),i))}:()=>{},[o]);return(0,V.jsx)(K.Provider,{value:h,children:(0,V.jsx)(q.Provider,{value:a,children:(0,V.jsx)(F.Provider,{value:p,children:(0,V.jsx)(W.Provider,{value:v,children:t})})})})},"readStreamableValue",0,U,"useAIState",0,function(){for(var e=arguments.length,t=Array(e),i=0;i<e;i++)t[i]=arguments[i];let l=r.useContext(K);if(null===l)throw Error("`useAIState` must be used inside an <AI> provider.");if(!Array.isArray(l))throw Error("Invalid state");if(void 0===l[0])throw Error("`initialAIState` must be provided to `createAI` or `<AI>`");if(t.length>=1&&"object"!=typeof l[0])throw Error("When using `useAIState` with a key, the AI state must be an object.");let n=t[0],s=r.useCallback(void 0===n?l[1]:e=>"function"==typeof e?l[1](t=>({...t,[n]:e(t[n])})):l[1](t=>({...t,[n]:e})),[n]);return 0===t.length?l:[l[0][t[0]],s]},"useActions",0,function(){return r.useContext(F)},"useStreamableValue",0,function(e){let[t,i]=(0,r.useState)(B(e)?e.curr:void 0),[l,n]=(0,r.useState)(B(e)?e.error:void 0),[s,o]=(0,r.useState)(!!B(e)&&!!e.next);return(0,r.useLayoutEffect)(()=>{if(!B(e))return;let t=!1,l=U(e);return e.next&&(0,r.startTransition)(()=>{t||o(!0)}),(async()=>{try{for await(let e of l){if(t)return;(0,r.startTransition)(()=>{t||i(e)})}}catch(e){if(t)return;(0,r.startTransition)(()=>{t||n(e)})}finally{if(t)return;(0,r.startTransition)(()=>{t||o(!1)})}})(),()=>{t=!0}},[e]),[t,l,s]},"useSyncUIState",0,function(){let e=r.useContext(W);if(null===e)throw Error("`useSyncUIState` must be used inside an <AI> provider.");return e},"useUIState",0,function(){let e=r.useContext(q);if(null===e)throw Error("`useUIState` must be used inside an <AI> provider.");if(!Array.isArray(e))throw Error("Invalid state");if(void 0===e[0])throw Error("`initialUIState` must be provided to `createAI` or `<AI>
2`");return e}],205139)}]);
3
4//# debugId=a578ee3a-4c36-4c88-a253-5db88b974ea8

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.