@ncino/web-components 10.0.0 → 10.0.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/dist/components/panel/gator/panel.storybook-test.js +1 -1
- package/dist/node_modules/.pnpm/@vitest_expect@4.1.1/node_modules/@vitest/expect/dist/index.js +58 -0
- package/dist/node_modules/.pnpm/@vitest_pretty-format@4.1.1/node_modules/@vitest/pretty-format/dist/index.js +5 -0
- package/dist/node_modules/.pnpm/@vitest_runner@4.1.1/node_modules/@vitest/runner/dist/chunk-artifact.js +12 -0
- package/dist/node_modules/.pnpm/@vitest_snapshot@4.1.1/node_modules/@vitest/snapshot/dist/index.js +19 -0
- package/dist/node_modules/.pnpm/@vitest_utils@4.1.1/node_modules/@vitest/utils/dist/diff.js +42 -0
- package/dist/node_modules/.pnpm/@vitest_utils@4.1.1/node_modules/@vitest/utils/dist/display.js +2 -0
- package/dist/node_modules/.pnpm/@vitest_utils@4.1.1/node_modules/@vitest/utils/dist/error.js +2 -0
- package/dist/node_modules/.pnpm/@vitest_utils@4.1.1/node_modules/@vitest/utils/dist/helpers.js +2 -0
- package/dist/node_modules/.pnpm/@vitest_utils@4.1.1/node_modules/@vitest/utils/dist/offset.js +1 -0
- package/dist/node_modules/.pnpm/@vitest_utils@4.1.1/node_modules/@vitest/utils/dist/serialize.js +1 -0
- package/dist/node_modules/.pnpm/@vitest_utils@4.1.1/node_modules/@vitest/utils/dist/source-map.js +3 -0
- package/dist/node_modules/.pnpm/storybook@10.3.0_@testing-library_dom@10.4.1_prettier@3.8.1_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/storybook/dist/_browser-chunks/chunk-7YGTGCDG.js +1 -0
- package/dist/node_modules/.pnpm/storybook@10.3.0_@testing-library_dom@10.4.1_prettier@3.8.1_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/storybook/dist/test/index.js +152 -0
- package/dist/node_modules/.pnpm/vitest@4.1.1_@types_node@25.5.0_@vitest_browser-playwright@4.1.1_@vitest_ui@4.1.0_jsdom_d9702798a407692b1b9fdd8a6a95990c/node_modules/vitest/dist/chunks/benchmark.D0SlKNbZ.js +1 -0
- package/dist/node_modules/.pnpm/vitest@4.1.1_@types_node@25.5.0_@vitest_browser-playwright@4.1.1_@vitest_ui@4.1.0_jsdom_d9702798a407692b1b9fdd8a6a95990c/node_modules/vitest/dist/chunks/test.CBQUpOM3.js +10 -0
- package/dist/utils/vitest-a11y-utils.js +1 -1
- package/package.json +17 -17
- package/web-types.json +1 -1
- package/dist/node_modules/.pnpm/@vitest_expect@4.0.18/node_modules/@vitest/expect/dist/index.js +0 -58
- package/dist/node_modules/.pnpm/@vitest_pretty-format@4.0.18/node_modules/@vitest/pretty-format/dist/index.js +0 -5
- package/dist/node_modules/.pnpm/@vitest_runner@4.0.18/node_modules/@vitest/runner/dist/chunk-tasks.js +0 -2
- package/dist/node_modules/.pnpm/@vitest_runner@4.0.18/node_modules/@vitest/runner/dist/index.js +0 -9
- package/dist/node_modules/.pnpm/@vitest_snapshot@4.0.18/node_modules/@vitest/snapshot/dist/index.js +0 -21
- package/dist/node_modules/.pnpm/@vitest_utils@4.0.18/node_modules/@vitest/utils/dist/chunk-_commonjsHelpers.js +0 -1
- package/dist/node_modules/.pnpm/@vitest_utils@4.0.18/node_modules/@vitest/utils/dist/diff.js +0 -42
- package/dist/node_modules/.pnpm/@vitest_utils@4.0.18/node_modules/@vitest/utils/dist/display.js +0 -2
- package/dist/node_modules/.pnpm/@vitest_utils@4.0.18/node_modules/@vitest/utils/dist/error.js +0 -2
- package/dist/node_modules/.pnpm/@vitest_utils@4.0.18/node_modules/@vitest/utils/dist/helpers.js +0 -1
- package/dist/node_modules/.pnpm/@vitest_utils@4.0.18/node_modules/@vitest/utils/dist/serialize.js +0 -1
- package/dist/node_modules/.pnpm/@vitest_utils@4.0.18/node_modules/@vitest/utils/dist/source-map.js +0 -1
- package/dist/node_modules/.pnpm/pathe@2.0.3/node_modules/pathe/dist/shared/pathe.M-eThtNZ.js +0 -1
- package/dist/node_modules/.pnpm/storybook@10.2.10_@testing-library_dom@10.4.1_prettier@3.8.1_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/storybook/dist/_browser-chunks/chunk-VIJ7SQRO.js +0 -1
- package/dist/node_modules/.pnpm/storybook@10.2.10_@testing-library_dom@10.4.1_prettier@3.8.1_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/storybook/dist/test/index.js +0 -156
- package/dist/node_modules/.pnpm/vitest@4.0.18_@types_node@24.10.13_@vitest_browser-playwright@4.0.18_@vitest_ui@4.0.18__cf0e1d2cbbe808e71fa49297d0a4a6dd/node_modules/vitest/dist/chunks/vi.2VT5v0um.js +0 -11
- /package/dist/node_modules/.pnpm/{@vitest_spy@4.0.18 → @vitest_spy@4.1.1}/node_modules/@vitest/spy/dist/index.js +0 -0
- /package/dist/node_modules/.pnpm/{@vitest_utils@4.0.18 → @vitest_utils@4.1.1}/node_modules/@vitest/utils/dist/chunk-pathe.M-eThtNZ.js +0 -0
- /package/dist/node_modules/.pnpm/{@vitest_utils@4.0.18 → @vitest_utils@4.1.1}/node_modules/@vitest/utils/dist/timers.js +0 -0
- /package/dist/node_modules/.pnpm/{storybook@10.2.10_@testing-library_dom@10.4.1_prettier@3.8.1_react-dom@19.2.4_react@19.2.4__react@19.2.4 → storybook@10.3.0_@testing-library_dom@10.4.1_prettier@3.8.1_react-dom@19.2.4_react@19.2.4__react@19.2.4}/node_modules/storybook/dist/_browser-chunks/chunk-3LY4VQVK.js +0 -0
- /package/dist/node_modules/.pnpm/{storybook@10.2.10_@testing-library_dom@10.4.1_prettier@3.8.1_react-dom@19.2.4_react@19.2.4__react@19.2.4 → storybook@10.3.0_@testing-library_dom@10.4.1_prettier@3.8.1_react-dom@19.2.4_react@19.2.4__react@19.2.4}/node_modules/storybook/dist/_browser-chunks/chunk-A242L54C.js +0 -0
- /package/dist/node_modules/.pnpm/{storybook@10.2.10_@testing-library_dom@10.4.1_prettier@3.8.1_react-dom@19.2.4_react@19.2.4__react@19.2.4 → storybook@10.3.0_@testing-library_dom@10.4.1_prettier@3.8.1_react-dom@19.2.4_react@19.2.4__react@19.2.4}/node_modules/storybook/dist/_browser-chunks/chunk-Q5RYDXT3.js +0 -0
- /package/dist/node_modules/.pnpm/{storybook@10.2.10_@testing-library_dom@10.4.1_prettier@3.8.1_react-dom@19.2.4_react@19.2.4__react@19.2.4 → storybook@10.3.0_@testing-library_dom@10.4.1_prettier@3.8.1_react-dom@19.2.4_react@19.2.4__react@19.2.4}/node_modules/storybook/dist/_browser-chunks/chunk-ZUWEVLDX.js +0 -0
- /package/dist/node_modules/.pnpm/{storybook@10.2.10_@testing-library_dom@10.4.1_prettier@3.8.1_react-dom@19.2.4_react@19.2.4__react@19.2.4 → storybook@10.3.0_@testing-library_dom@10.4.1_prettier@3.8.1_react-dom@19.2.4_react@19.2.4__react@19.2.4}/node_modules/storybook/dist/client-logger/index.js +0 -0
- /package/dist/node_modules/.pnpm/{storybook@10.2.10_@testing-library_dom@10.4.1_prettier@3.8.1_react-dom@19.2.4_react@19.2.4__react@19.2.4 → storybook@10.3.0_@testing-library_dom@10.4.1_prettier@3.8.1_react-dom@19.2.4_react@19.2.4__react@19.2.4}/node_modules/storybook/dist/core-events/index.js +0 -0
- /package/dist/node_modules/.pnpm/{storybook@10.2.10_@testing-library_dom@10.4.1_prettier@3.8.1_react-dom@19.2.4_react@19.2.4__react@19.2.4 → storybook@10.3.0_@testing-library_dom@10.4.1_prettier@3.8.1_react-dom@19.2.4_react@19.2.4__react@19.2.4}/node_modules/storybook/dist/instrumenter/index.js +0 -0
- /package/dist/node_modules/.pnpm/{vitest@4.0.18_@types_node@24.10.13_@vitest_browser-playwright@4.0.18_@vitest_ui@4.0.18__cf0e1d2cbbe808e71fa49297d0a4a6dd → vitest@4.1.1_@types_node@25.5.0_@vitest_browser-playwright@4.1.1_@vitest_ui@4.1.0_jsdom_d9702798a407692b1b9fdd8a6a95990c}/node_modules/vitest/browser/context.js +0 -0
- /package/dist/node_modules/.pnpm/{vitest@4.0.18_@types_node@24.10.13_@vitest_browser-playwright@4.0.18_@vitest_ui@4.0.18__cf0e1d2cbbe808e71fa49297d0a4a6dd → vitest@4.1.1_@types_node@25.5.0_@vitest_browser-playwright@4.1.1_@vitest_ui@4.1.0_jsdom_d9702798a407692b1b9fdd8a6a95990c}/node_modules/vitest/dist/chunks/_commonjsHelpers.D26ty3Ew.js +0 -0
- /package/dist/node_modules/.pnpm/{vitest@4.0.18_@types_node@24.10.13_@vitest_browser-playwright@4.0.18_@vitest_ui@4.0.18__cf0e1d2cbbe808e71fa49297d0a4a6dd/node_modules/vitest/dist/chunks/utils.DvEY5TfP.js → vitest@4.1.1_@types_node@25.5.0_@vitest_browser-playwright@4.1.1_@vitest_ui@4.1.0_jsdom_d9702798a407692b1b9fdd8a6a95990c/node_modules/vitest/dist/chunks/utils.BX5Fg8C4.js} +0 -0
package/dist/node_modules/.pnpm/@vitest_utils@4.0.18/node_modules/@vitest/utils/dist/diff.js
DELETED
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import{format as V,plugins as Bn}from"../../../../../@vitest_pretty-format@4.0.18/node_modules/@vitest/pretty-format/dist/index.js";import J from"../../../../../tinyrainbow@3.0.3/node_modules/tinyrainbow/dist/index.js";import{stringify as Nn}from"./display.js";import{deepClone as Cn,getOwnProperties as Vn,getType as un}from"./helpers.js";import{g as Yn}from"./chunk-_commonjsHelpers.js";const j=-1,O=1,M=0;class A{0;1;constructor(t,e){this[0]=t,this[1]=e}}function Qn(n,t){if(!n||!t||n.charAt(0)!==t.charAt(0))return 0;let e=0,r=Math.min(n.length,t.length),o=r,l=0;for(;e<o;)n.substring(l,o)===t.substring(l,o)?(e=o,l=e):r=o,o=Math.floor((r-e)/2+e);return o}function Rn(n,t){if(!n||!t||n.charAt(n.length-1)!==t.charAt(t.length-1))return 0;let e=0,r=Math.min(n.length,t.length),o=r,l=0;for(;e<o;)n.substring(n.length-o,n.length-l)===t.substring(t.length-o,t.length-l)?(e=o,l=e):r=o,o=Math.floor((r-e)/2+e);return o}function bn(n,t){const e=n.length,r=t.length;if(e===0||r===0)return 0;e>r?n=n.substring(e-r):e<r&&(t=t.substring(0,e));const o=Math.min(e,r);if(n===t)return o;let l=0,s=1;for(;;){const a=n.substring(o-s),u=t.indexOf(a);if(u===-1)return l;s+=u,(u===0||n.substring(o-s)===t.substring(0,s))&&(l=s,s++)}}function Zn(n){let t=!1;const e=[];let r=0,o=null,l=0,s=0,a=0,u=0,y=0;for(;l<n.length;)n[l][0]===M?(e[r++]=l,s=u,a=y,u=0,y=0,o=n[l][1]):(n[l][0]===O?u+=n[l][1].length:y+=n[l][1].length,o&&o.length<=Math.max(s,a)&&o.length<=Math.max(u,y)&&(n.splice(e[r-1],0,new A(j,o)),n[e[r-1]+1][0]=O,r--,r--,l=r>0?e[r-1]:-1,s=0,a=0,u=0,y=0,o=null,t=!0)),l++;for(t&&kn(n),ne(n),l=1;l<n.length;){if(n[l-1][0]===j&&n[l][0]===O){const $=n[l-1][1],b=n[l][1],D=bn($,b),i=bn(b,$);D>=i?(D>=$.length/2||D>=b.length/2)&&(n.splice(l,0,new A(M,b.substring(0,D))),n[l-1][1]=$.substring(0,$.length-D),n[l+1][1]=b.substring(D),l++):(i>=$.length/2||i>=b.length/2)&&(n.splice(l,0,new A(M,$.substring(0,i))),n[l-1][0]=O,n[l-1][1]=b.substring(0,b.length-i),n[l+1][0]=j,n[l+1][1]=$.substring(i),l++),l++}l++}}const $n=/[^a-z0-9]/i,Fn=/\s/,yn=/[\r\n]/,dn=/\n\r?\n$/,xn=/^\r?\n\r?\n/;function ne(n){let t=1;for(;t<n.length-1;){if(n[t-1][0]===M&&n[t+1][0]===M){let e=n[t-1][1],r=n[t][1],o=n[t+1][1];const l=Rn(e,r);if(l){const $=r.substring(r.length-l);e=e.substring(0,e.length-l),r=$+r.substring(0,r.length-l),o=$+o}let s=e,a=r,u=o,y=nn(e,r)+nn(r,o);for(;r.charAt(0)===o.charAt(0);){e+=r.charAt(0),r=r.substring(1)+o.charAt(0),o=o.substring(1);const $=nn(e,r)+nn(r,o);$>=y&&(y=$,s=e,a=r,u=o)}n[t-1][1]!==s&&(s?n[t-1][1]=s:(n.splice(t-1,1),t--),n[t][1]=a,u?n[t+1][1]=u:(n.splice(t+1,1),t--))}t++}}function kn(n){var t;n.push(new A(M,""));let e=0,r=0,o=0,l="",s="",a;for(;e<n.length;)switch(n[e][0]){case O:o++,s+=n[e][1],e++;break;case j:r++,l+=n[e][1],e++;break;case M:r+o>1?(r!==0&&o!==0&&(a=Qn(s,l),a!==0&&(e-r-o>0&&n[e-r-o-1][0]===M?n[e-r-o-1][1]+=s.substring(0,a):(n.splice(0,0,new A(M,s.substring(0,a))),e++),s=s.substring(a),l=l.substring(a)),a=Rn(s,l),a!==0&&(n[e][1]=s.substring(s.length-a)+n[e][1],s=s.substring(0,s.length-a),l=l.substring(0,l.length-a))),e-=r+o,n.splice(e,r+o),l.length&&(n.splice(e,0,new A(j,l)),e++),s.length&&(n.splice(e,0,new A(O,s)),e++),e++):e!==0&&n[e-1][0]===M?(n[e-1][1]+=n[e][1],n.splice(e,1)):e++,o=0,r=0,l="",s="";break}((t=n.at(-1))===null||t===void 0?void 0:t[1])===""&&n.pop();let u=!1;for(e=1;e<n.length-1;)n[e-1][0]===M&&n[e+1][0]===M&&(n[e][1].substring(n[e][1].length-n[e-1][1].length)===n[e-1][1]?(n[e][1]=n[e-1][1]+n[e][1].substring(0,n[e][1].length-n[e-1][1].length),n[e+1][1]=n[e-1][1]+n[e+1][1],n.splice(e-1,1),u=!0):n[e][1].substring(0,n[e+1][1].length)===n[e+1][1]&&(n[e-1][1]+=n[e+1][1],n[e][1]=n[e][1].substring(n[e+1][1].length)+n[e+1][1],n.splice(e+1,1),u=!0)),e++;u&&kn(n)}function nn(n,t){if(!n||!t)return 6;const e=n.charAt(n.length-1),r=t.charAt(0),o=e.match($n),l=r.match($n),s=o&&e.match(Fn),a=l&&r.match(Fn),u=s&&e.match(yn),y=a&&r.match(yn),$=u&&n.match(dn),b=y&&t.match(xn);return $||b?5:u||y?4:o&&!s&&a?3:s||a?2:o||l?1:0}const qn="Compared values have no visual difference.",ee="Compared values serialize to the same structure.\nPrinting internal object structure without calling `toJSON` instead.";var en={},Ln;function te(){if(Ln)return en;Ln=1,Object.defineProperty(en,"__esModule",{value:!0}),en.default=D;const n="diff-sequences",t=0,e=(i,c,h,f,m)=>{let w=0;for(;i<c&&h<f&&m(i,h);)i+=1,h+=1,w+=1;return w},r=(i,c,h,f,m)=>{let w=0;for(;i<=c&&h<=f&&m(c,f);)c-=1,f-=1,w+=1;return w},o=(i,c,h,f,m,w,L)=>{let g=0,C=-i,F=w[g],p=F;w[g]+=e(F+1,c,f+F-C+1,h,m);const P=i<L?i:L;for(g+=1,C+=2;g<=P;g+=1,C+=2){if(g!==i&&p<w[g])F=w[g];else if(F=p+1,c<=F)return g-1;p=w[g],w[g]=F+e(F+1,c,f+F-C+1,h,m)}return L},l=(i,c,h,f,m,w,L)=>{let g=0,C=i,F=w[g],p=F;w[g]-=r(c,F-1,h,f+F-C-1,m);const P=i<L?i:L;for(g+=1,C-=2;g<=P;g+=1,C-=2){if(g!==i&&w[g]<p)F=w[g];else if(F=p-1,F<c)return g-1;p=w[g],w[g]=F-r(c,F-1,h,f+F-C-1,m)}return L},s=(i,c,h,f,m,w,L,g,C,F,p)=>{const P=f-c,z=h-c,E=m-f-z,N=-E-(i-1),H=-E+(i-1);let R=t;const _=i<g?i:g;for(let T=0,S=-i;T<=_;T+=1,S+=2){const W=T===0||T!==i&&R<L[T],B=W?L[T]:R,q=W?B:B+1,X=P+q-S,U=e(q+1,h,X+1,m,w),G=q+U;if(R=L[T],L[T]=G,N<=S&&S<=H){const Y=(i-1-(S+E))/2;if(Y<=F&&C[Y]-1<=G){const I=P+B-(W?S+1:S-1),k=r(c,B,f,I,w),v=B-k,x=I-k,Z=v+1,ln=x+1;p.nChangePreceding=i-1,i-1===Z+ln-c-f?(p.aEndPreceding=c,p.bEndPreceding=f):(p.aEndPreceding=Z,p.bEndPreceding=ln),p.nCommonPreceding=k,k!==0&&(p.aCommonPreceding=Z,p.bCommonPreceding=ln),p.nCommonFollowing=U,U!==0&&(p.aCommonFollowing=q+1,p.bCommonFollowing=X+1);const pn=G+1,wn=X+U+1;return p.nChangeFollowing=i-1,i-1===h+m-pn-wn?(p.aStartFollowing=h,p.bStartFollowing=m):(p.aStartFollowing=pn,p.bStartFollowing=wn),!0}}}return!1},a=(i,c,h,f,m,w,L,g,C,F,p)=>{const P=m-h,z=h-c,E=m-f-z,N=E-i,H=E+i;let R=t;const _=i<F?i:F;for(let T=0,S=i;T<=_;T+=1,S-=2){const W=T===0||T!==i&&C[T]<R,B=W?C[T]:R,q=W?B:B-1,X=P+q-S,U=r(c,q-1,f,X-1,w),G=q-U;if(R=C[T],C[T]=G,N<=S&&S<=H){const Y=(i+(S-E))/2;if(Y<=g&&G-1<=L[Y]){const I=X-U;if(p.nChangePreceding=i,i===G+I-c-f?(p.aEndPreceding=c,p.bEndPreceding=f):(p.aEndPreceding=G,p.bEndPreceding=I),p.nCommonPreceding=U,U!==0&&(p.aCommonPreceding=G,p.bCommonPreceding=I),p.nChangeFollowing=i-1,i===1)p.nCommonFollowing=0,p.aStartFollowing=h,p.bStartFollowing=m;else{const k=P+B-(W?S-1:S+1),v=e(B,h,k,m,w);p.nCommonFollowing=v,v!==0&&(p.aCommonFollowing=B,p.bCommonFollowing=k);const x=B+v,Z=k+v;i-1===h+m-x-Z?(p.aStartFollowing=h,p.bStartFollowing=m):(p.aStartFollowing=x,p.bStartFollowing=Z)}return!0}}}return!1},u=(i,c,h,f,m,w,L,g,C)=>{const F=f-c,p=m-h,P=h-c,z=m-f,K=z-P;let E=P,N=P;if(L[0]=c-1,g[0]=h,K%2===0){const H=(i||K)/2,R=(P+z)/2;for(let _=1;_<=R;_+=1)if(E=o(_,h,m,F,w,L,E),_<H)N=l(_,c,f,p,w,g,N);else if(a(_,c,h,f,m,w,L,E,g,N,C))return}else{const H=((i||K)+1)/2,R=(P+z+1)/2;let _=1;for(E=o(_,h,m,F,w,L,E),_+=1;_<=R;_+=1)if(N=l(_-1,c,f,p,w,g,N),_<H)E=o(_,h,m,F,w,L,E);else if(s(_,c,h,f,m,w,L,E,g,N,C))return}throw new Error(`${n}: no overlap aStart=${c} aEnd=${h} bStart=${f} bEnd=${m}`)},y=(i,c,h,f,m,w,L,g,C,F)=>{if(m-f<h-c){if(w=!w,w&&L.length===1){const{foundSubsequence:G,isCommon:Y}=L[0];L[1]={foundSubsequence:(I,k,v)=>{G(I,v,k)},isCommon:(I,k)=>Y(k,I)}}const X=c,U=h;c=f,h=m,f=X,m=U}const{foundSubsequence:p,isCommon:P}=L[w?1:0];u(i,c,h,f,m,P,g,C,F);const{nChangePreceding:z,aEndPreceding:K,bEndPreceding:E,nCommonPreceding:N,aCommonPreceding:H,bCommonPreceding:R,nCommonFollowing:_,aCommonFollowing:T,bCommonFollowing:S,nChangeFollowing:W,aStartFollowing:B,bStartFollowing:q}=F;c<K&&f<E&&y(z,c,K,f,E,w,L,g,C,F),N!==0&&p(N,H,R),_!==0&&p(_,T,S),B<h&&q<m&&y(W,B,h,q,m,w,L,g,C,F)},$=(i,c)=>{if(typeof c!="number")throw new TypeError(`${n}: ${i} typeof ${typeof c} is not a number`);if(!Number.isSafeInteger(c))throw new RangeError(`${n}: ${i} value ${c} is not a safe integer`);if(c<0)throw new RangeError(`${n}: ${i} value ${c} is a negative integer`)},b=(i,c)=>{const h=typeof c;if(h!=="function")throw new TypeError(`${n}: ${i} typeof ${h} is not a function`)};function D(i,c,h,f){$("aLength",i),$("bLength",c),b("isCommon",h),b("foundSubsequence",f);const m=e(0,i,0,c,h);if(m!==0&&f(m,0,0),i!==m||c!==m){const w=m,L=m,g=r(w,i-1,L,c-1,h),C=i-g,F=c-g,p=m+g;i!==p&&c!==p&&y(0,w,C,L,F,!1,[{foundSubsequence:f,isCommon:h}],[t],[t],{aCommonFollowing:t,aCommonPreceding:t,aEndPreceding:t,aStartFollowing:t,bCommonFollowing:t,bCommonPreceding:t,bEndPreceding:t,bStartFollowing:t,nChangeFollowing:t,nChangePreceding:t,nCommonFollowing:t,nCommonPreceding:t}),g!==0&&f(g,C,F)}}return en}var re=te(),Un=Yn(re);function oe(n,t){return n.replace(/\s+$/,e=>t(e))}function fn(n,t,e,r,o,l){return n.length!==0?e(`${r} ${oe(n,o)}`):r!==" "?e(r):t&&l.length!==0?e(`${r} ${l}`):""}function Gn(n,t,{aColor:e,aIndicator:r,changeLineTrailingSpaceColor:o,emptyFirstOrLastLinePlaceholder:l}){return fn(n,t,e,r,o,l)}function zn(n,t,{bColor:e,bIndicator:r,changeLineTrailingSpaceColor:o,emptyFirstOrLastLinePlaceholder:l}){return fn(n,t,e,r,o,l)}function Hn(n,t,{commonColor:e,commonIndicator:r,commonLineTrailingSpaceColor:o,emptyFirstOrLastLinePlaceholder:l}){return fn(n,t,e,r,o,l)}function Pn(n,t,e,r,{patchColor:o}){return o(`@@ -${n+1},${t-n} +${e+1},${r-e} @@`)}function le(n,t){const e=n.length,r=t.contextLines,o=r+r;let l=e,s=!1,a=0,u=0;for(;u!==e;){const g=u;for(;u!==e&&n[u][0]===M;)u+=1;if(g!==u)if(g===0)u>r&&(l-=u-r,s=!0);else if(u===e){const C=u-g;C>r&&(l-=C-r,s=!0)}else{const C=u-g;C>o&&(l-=C-o,a+=1)}for(;u!==e&&n[u][0]!==M;)u+=1}const y=a!==0||s;a!==0?l+=a+1:s&&(l+=1);const $=l-1,b=[];let D=0;y&&b.push("");let i=0,c=0,h=0,f=0;const m=g=>{const C=b.length;b.push(Hn(g,C===0||C===$,t)),h+=1,f+=1},w=g=>{const C=b.length;b.push(Gn(g,C===0||C===$,t)),h+=1},L=g=>{const C=b.length;b.push(zn(g,C===0||C===$,t)),f+=1};for(u=0;u!==e;){let g=u;for(;u!==e&&n[u][0]===M;)u+=1;if(g!==u)if(g===0){u>r&&(g=u-r,i=g,c=g,h=i,f=c);for(let C=g;C!==u;C+=1)m(n[C][1])}else if(u===e){const C=u-g>r?g+r:u;for(let F=g;F!==C;F+=1)m(n[F][1])}else{const C=u-g;if(C>o){const F=g+r;for(let P=g;P!==F;P+=1)m(n[P][1]);b[D]=Pn(i,h,c,f,t),D=b.length,b.push("");const p=C-o;i=h+p,c=f+p,h=i,f=c;for(let P=u-r;P!==u;P+=1)m(n[P][1])}else for(let F=g;F!==u;F+=1)m(n[F][1])}for(;u!==e&&n[u][0]===j;)w(n[u][1]),u+=1;for(;u!==e&&n[u][0]===O;)L(n[u][1]),u+=1}return y&&(b[D]=Pn(i,h,c,f,t)),b.join(`
|
|
2
|
-
`)}function se(n,t){return n.map((e,r,o)=>{const l=e[1],s=r===0||r===o.length-1;switch(e[0]){case j:return Gn(l,s,t);case O:return zn(l,s,t);default:return Hn(l,s,t)}}).join(`
|
|
3
|
-
`)}const sn=n=>n,In=5,ie=0;function ce(){return{aAnnotation:"Expected",aColor:J.green,aIndicator:"-",bAnnotation:"Received",bColor:J.red,bIndicator:"+",changeColor:J.inverse,changeLineTrailingSpaceColor:sn,commonColor:J.dim,commonIndicator:" ",commonLineTrailingSpaceColor:sn,compareKeys:void 0,contextLines:In,emptyFirstOrLastLinePlaceholder:"",expand:!1,includeChangeCounts:!1,omitAnnotationLines:!1,patchColor:J.yellow,printBasicPrototype:!1,truncateThreshold:ie,truncateAnnotation:"... Diff result is truncated",truncateAnnotationColor:sn}}function ue(n){return n&&typeof n=="function"?n:void 0}function he(n){return typeof n=="number"&&Number.isSafeInteger(n)&&n>=0?n:In}function Q(n={}){return{...ce(),...n,compareKeys:ue(n.compareKeys),contextLines:he(n.contextLines)}}function d(n){return n.length===1&&n[0].length===0}function ge(n){let t=0,e=0;return n.forEach(r=>{switch(r[0]){case j:t+=1;break;case O:e+=1;break}}),{a:t,b:e}}function ae({aAnnotation:n,aColor:t,aIndicator:e,bAnnotation:r,bColor:o,bIndicator:l,includeChangeCounts:s,omitAnnotationLines:a},u){if(a)return"";let y="",$="";if(s){const i=String(u.a),c=String(u.b),h=r.length-n.length,f=" ".repeat(Math.max(0,h)),m=" ".repeat(Math.max(0,-h)),w=c.length-i.length,L=" ".repeat(Math.max(0,w)),g=" ".repeat(Math.max(0,-w));y=`${f} ${e} ${L}${i}`,$=`${m} ${l} ${g}${c}`}const b=`${e} ${n}${y}`,D=`${l} ${r}${$}`;return`${t(b)}
|
|
4
|
-
${o(D)}
|
|
5
|
-
|
|
6
|
-
`}function mn(n,t,e){return ae(e,ge(n))+(e.expand?se(n,e):le(n,e))+(t?e.truncateAnnotationColor(`
|
|
7
|
-
${e.truncateAnnotation}`):"")}function on(n,t,e){const r=Q(e),[o,l]=Kn(d(n)?[]:n,d(t)?[]:t,r);return mn(o,l,r)}function fe(n,t,e,r,o){if(d(n)&&d(e)&&(n=[],e=[]),d(t)&&d(r)&&(t=[],r=[]),n.length!==e.length||t.length!==r.length)return on(n,t,o);const[l,s]=Kn(e,r,o);let a=0,u=0;return l.forEach(y=>{switch(y[0]){case j:y[1]=n[a],a+=1;break;case O:y[1]=t[u],u+=1;break;default:y[1]=t[u],a+=1,u+=1}}),mn(l,s,Q(o))}function Kn(n,t,e){const r=e?.truncateThreshold??!1,o=Math.max(Math.floor(e?.truncateThreshold??0),0),l=r?Math.min(n.length,o):n.length,s=r?Math.min(t.length,o):t.length,a=l!==n.length||s!==t.length,u=(i,c)=>n[i]===t[c],y=[];let $=0,b=0;for(Un(l,s,u,(i,c,h)=>{for(;$!==c;$+=1)y.push(new A(j,n[$]));for(;b!==h;b+=1)y.push(new A(O,t[b]));for(;i!==0;i-=1,$+=1,b+=1)y.push(new A(M,t[b]))});$!==l;$+=1)y.push(new A(j,n[$]));for(;b!==s;b+=1)y.push(new A(O,t[b]));return[y,a]}function An(n){if(n===void 0)return"undefined";if(n===null)return"null";if(Array.isArray(n))return"array";if(typeof n=="boolean")return"boolean";if(typeof n=="function")return"function";if(typeof n=="number")return"number";if(typeof n=="string")return"string";if(typeof n=="bigint")return"bigint";if(typeof n=="object"){if(n!=null){if(n.constructor===RegExp)return"regexp";if(n.constructor===Map)return"map";if(n.constructor===Set)return"set";if(n.constructor===Date)return"date"}return"object"}else if(typeof n=="symbol")return"symbol";throw new Error(`value of unknown type: ${n}`)}function Dn(n){return n.includes(`\r
|
|
8
|
-
`)?`\r
|
|
9
|
-
`:`
|
|
10
|
-
`}function me(n,t,e){const r=e?.truncateThreshold??!1,o=Math.max(Math.floor(e?.truncateThreshold??0),0);let l=n.length,s=t.length;if(r){const i=n.includes(`
|
|
11
|
-
`),c=t.includes(`
|
|
12
|
-
`),h=Dn(n),f=Dn(t),m=i?`${n.split(h,o).join(h)}
|
|
13
|
-
`:n,w=c?`${t.split(f,o).join(f)}
|
|
14
|
-
`:t;l=m.length,s=w.length}const a=l!==n.length||s!==t.length,u=(i,c)=>n[i]===t[c];let y=0,$=0;const b=[];return Un(l,s,u,(i,c,h)=>{y!==c&&b.push(new A(j,n.slice(y,c))),$!==h&&b.push(new A(O,t.slice($,h))),y=c+i,$=h+i,b.push(new A(M,t.slice(h,$)))}),y!==l&&b.push(new A(j,n.slice(y))),$!==s&&b.push(new A(O,t.slice($))),[b,a]}function pe(n,t,e){return t.reduce((r,o)=>r+(o[0]===M?o[1]:o[0]===n&&o[1].length!==0?e(o[1]):""),"")}class _n{op;line;lines;changeColor;constructor(t,e){this.op=t,this.line=[],this.lines=[],this.changeColor=e}pushSubstring(t){this.pushDiff(new A(this.op,t))}pushLine(){this.lines.push(this.line.length!==1?new A(this.op,pe(this.op,this.line,this.changeColor)):this.line[0][0]===this.op?this.line[0]:new A(this.op,this.line[0][1])),this.line.length=0}isLineEmpty(){return this.line.length===0}pushDiff(t){this.line.push(t)}align(t){const e=t[1];if(e.includes(`
|
|
15
|
-
`)){const r=e.split(`
|
|
16
|
-
`),o=r.length-1;r.forEach((l,s)=>{s<o?(this.pushSubstring(l),this.pushLine()):l.length!==0&&this.pushSubstring(l)})}else this.pushDiff(t)}moveLinesTo(t){this.isLineEmpty()||this.pushLine(),t.push(...this.lines),this.lines.length=0}}class we{deleteBuffer;insertBuffer;lines;constructor(t,e){this.deleteBuffer=t,this.insertBuffer=e,this.lines=[]}pushDiffCommonLine(t){this.lines.push(t)}pushDiffChangeLines(t){const e=t[1].length===0;(!e||this.deleteBuffer.isLineEmpty())&&this.deleteBuffer.pushDiff(t),(!e||this.insertBuffer.isLineEmpty())&&this.insertBuffer.pushDiff(t)}flushChangeLines(){this.deleteBuffer.moveLinesTo(this.lines),this.insertBuffer.moveLinesTo(this.lines)}align(t){const e=t[0],r=t[1];if(r.includes(`
|
|
17
|
-
`)){const o=r.split(`
|
|
18
|
-
`),l=o.length-1;o.forEach((s,a)=>{if(a===0){const u=new A(e,s);this.deleteBuffer.isLineEmpty()&&this.insertBuffer.isLineEmpty()?(this.flushChangeLines(),this.pushDiffCommonLine(u)):(this.pushDiffChangeLines(u),this.flushChangeLines())}else a<l?this.pushDiffCommonLine(new A(e,s)):s.length!==0&&this.pushDiffChangeLines(new A(e,s))})}else this.pushDiffChangeLines(t)}getLines(){return this.flushChangeLines(),this.lines}}function Ce(n,t){const e=new _n(j,t),r=new _n(O,t),o=new we(e,r);return n.forEach(l=>{switch(l[0]){case j:e.align(l);break;case O:r.align(l);break;default:o.align(l)}}),o.getLines()}function be(n,t){if(t){const e=n.length-1;return n.some((r,o)=>r[0]===M&&(o!==e||r[1]!==`
|
|
19
|
-
`))}return n.some(e=>e[0]===M)}function $e(n,t,e){if(n!==t&&n.length!==0&&t.length!==0){const r=n.includes(`
|
|
20
|
-
`)||t.includes(`
|
|
21
|
-
`),[o,l]=Wn(r?`${n}
|
|
22
|
-
`:n,r?`${t}
|
|
23
|
-
`:t,!0,e);if(be(o,r)){const s=Q(e),a=Ce(o,s.changeColor);return mn(a,l,s)}}return on(n.split(`
|
|
24
|
-
`),t.split(`
|
|
25
|
-
`),e)}function Wn(n,t,e,r){const[o,l]=me(n,t,r);return Zn(o),[o,l]}function hn(n,t){const{commonColor:e}=Q(t);return e(n)}const{AsymmetricMatcher:Fe,DOMCollection:ye,DOMElement:Le,Immutable:Pe,ReactElement:Ae,ReactTestComponent:De}=Bn,Xn=[De,Ae,Le,ye,Pe,Fe,Bn.Error],gn={maxDepth:20,plugins:Xn},vn={callToJSON:!1,maxDepth:8,plugins:Xn};function _e(n,t,e){if(Object.is(n,t))return"";const r=An(n);let o=r,l=!1;if(r==="object"&&typeof n.asymmetricMatch=="function"){if(n.$$typeof!==Symbol.for("jest.asymmetricMatcher")||typeof n.getExpectedType!="function")return;o=n.getExpectedType(),l=o==="string"}if(o!==An(t)){let f=function(L){return L.length<=h?L:`${L.slice(0,h)}...`};const{aAnnotation:s,aColor:a,aIndicator:u,bAnnotation:y,bColor:$,bIndicator:b}=Q(e),D=an(vn,e);let i=V(n,D),c=V(t,D);const h=1e5;i=f(i),c=f(c);const m=`${a(`${u} ${s}:`)}
|
|
26
|
-
${i}`,w=`${$(`${b} ${y}:`)}
|
|
27
|
-
${c}`;return`${m}
|
|
28
|
-
|
|
29
|
-
${w}`}if(!l)switch(r){case"string":return on(n.split(`
|
|
30
|
-
`),t.split(`
|
|
31
|
-
`),e);case"boolean":case"number":return Me(n,t,e);case"map":return cn(Mn(n),Mn(t),e);case"set":return cn(En(n),En(t),e);default:return cn(n,t,e)}}function Me(n,t,e){const r=V(n,gn),o=V(t,gn);return r===o?"":on(r.split(`
|
|
32
|
-
`),o.split(`
|
|
33
|
-
`),e)}function Mn(n){return new Map(Array.from(n.entries()).sort())}function En(n){return new Set(Array.from(n.values()).sort())}function cn(n,t,e){let r,o=!1;try{const s=an(gn,e);r=Tn(n,t,s,e)}catch{o=!0}const l=hn(qn,e);if(r===void 0||r===l){const s=an(vn,e);r=Tn(n,t,s,e),r!==l&&!o&&(r=`${hn(ee,e)}
|
|
34
|
-
|
|
35
|
-
${r}`)}return r}function an(n,t){const{compareKeys:e,printBasicPrototype:r,maxDepth:o}=Q(t);return{...n,compareKeys:e,printBasicPrototype:r,maxDepth:o??n.maxDepth}}function Tn(n,t,e,r){const o={...e,indent:0},l=V(n,o),s=V(t,o);if(l===s)return hn(qn,r);{const a=V(n,e),u=V(t,e);return fe(a.split(`
|
|
36
|
-
`),u.split(`
|
|
37
|
-
`),l.split(`
|
|
38
|
-
`),s.split(`
|
|
39
|
-
`),r)}}const Sn=2e4;function On(n){return un(n)==="Object"&&typeof n.asymmetricMatch=="function"}function tn(n,t){const e=un(n),r=un(t);return e===r&&(e==="Object"||e==="Array")}function qe(n,t,e){const{aAnnotation:r,bAnnotation:o}=Q(e);if(typeof t=="string"&&typeof n=="string"&&t.length>0&&n.length>0&&t.length<=Sn&&n.length<=Sn&&t!==n){if(t.includes(`
|
|
40
|
-
`)||n.includes(`
|
|
41
|
-
`))return $e(t,n,e);const[$]=Wn(t,n),b=$.some(h=>h[0]===M),D=Ee(r,o),i=D(r)+Oe(jn($,j,b)),c=D(o)+Se(jn($,O,b));return`${i}
|
|
42
|
-
${c}`}const l=Cn(t,{forceWritable:!0}),s=Cn(n,{forceWritable:!0}),{replacedExpected:a,replacedActual:u}=rn(s,l);return _e(a,u,e)}function rn(n,t,e=new WeakSet,r=new WeakSet){return n instanceof Error&&t instanceof Error&&typeof n.cause<"u"&&typeof t.cause>"u"?(delete n.cause,{replacedActual:n,replacedExpected:t}):tn(n,t)?e.has(n)||r.has(t)?{replacedActual:n,replacedExpected:t}:(e.add(n),r.add(t),Vn(t).forEach(o=>{const l=t[o],s=n[o];if(On(l)){if(l.asymmetricMatch(s))t[o]=s;else if("sample"in l&&l.sample!==void 0&&tn(s,l.sample)){const a=rn(s,l.sample,e,r);n[o]=a.replacedActual,t[o]=a.replacedExpected}}else if(On(s)){if(s.asymmetricMatch(l))n[o]=l;else if("sample"in s&&s.sample!==void 0&&tn(s.sample,l)){const a=rn(s.sample,l,e,r);n[o]=a.replacedActual,t[o]=a.replacedExpected}}else if(tn(s,l)){const a=rn(s,l,e,r);n[o]=a.replacedActual,t[o]=a.replacedExpected}}),{replacedActual:n,replacedExpected:t}):{replacedActual:n,replacedExpected:t}}function Ee(...n){const t=n.reduce((e,r)=>r.length>e?r.length:e,0);return e=>`${e}: ${" ".repeat(t-e.length)}`}const Te="·";function Jn(n){return n.replace(/\s+$/gm,t=>Te.repeat(t.length))}function Se(n){return J.red(Jn(Nn(n)))}function Oe(n){return J.green(Jn(Nn(n)))}function jn(n,t,e){return n.reduce((r,o)=>r+(o[0]===M?o[1]:o[0]===t?e?J.inverse(o[1]):o[1]:""),"")}export{j as DIFF_DELETE,M as DIFF_EQUAL,O as DIFF_INSERT,A as Diff,_e as diff,Kn as diffLinesRaw,on as diffLinesUnified,fe as diffLinesUnified2,Wn as diffStringsRaw,$e as diffStringsUnified,Ee as getLabelPrinter,qe as printDiffOrStringify,rn as replaceAsymmetricMatcher};
|
package/dist/node_modules/.pnpm/@vitest_utils@4.0.18/node_modules/@vitest/utils/dist/display.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{format as C,plugins as D}from"../../../../../@vitest_pretty-format@4.0.18/node_modules/@vitest/pretty-format/dist/index.js";const w={bold:["1","22"],dim:["2","22"],italic:["3","23"],underline:["4","24"],inverse:["7","27"],hidden:["8","28"],strike:["9","29"],black:["30","39"],red:["31","39"],green:["32","39"],yellow:["33","39"],blue:["34","39"],magenta:["35","39"],cyan:["36","39"],white:["37","39"],brightblack:["30;1","39"],brightred:["31;1","39"],brightgreen:["32;1","39"],brightyellow:["33;1","39"],brightblue:["34;1","39"],brightmagenta:["35;1","39"],brightcyan:["36;1","39"],brightwhite:["37;1","39"],grey:["90","39"]},G={special:"cyan",number:"yellow",bigint:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",symbol:"green",date:"magenta",regexp:"red"},p="…";function J(t,e){const n=w[G[e]]||w[e]||"";return n?`\x1B[${n[0]}m${String(t)}\x1B[${n[1]}m`:String(t)}function k({showHidden:t=!1,depth:e=2,colors:n=!1,customInspect:c=!0,showProxy:r=!1,maxArrayLength:i=1/0,breakLength:l=1/0,seen:s=[],truncate:u=1/0,stylize:f=String}={},o){const y={showHidden:!!t,depth:Number(e),colors:!!n,customInspect:!!c,showProxy:!!r,maxArrayLength:Number(i),breakLength:Number(l),truncate:Number(u),seen:s,inspect:o,stylize:f};return y.colors&&(y.stylize=J),y}function V(t){return t>="\uD800"&&t<="\uDBFF"}function m(t,e,n=p){t=String(t);const c=n.length,r=t.length;if(c>e&&r>c)return n;if(r>e&&r>c){let i=e-c;return i>0&&V(t[i-1])&&(i=i-1),`${t.slice(0,i)}${n}`}return t}function a(t,e,n,c=", "){n=n||e.inspect;const r=t.length;if(r===0)return"";const i=e.truncate;let l="",s="",u="";for(let f=0;f<r;f+=1){const o=f+1===t.length,y=f+2===t.length;u=`${p}(${t.length-f})`;const W=t[f];e.truncate=i-l.length-(o?0:c.length);const z=s||n(W,e)+(o?"":c),b=l.length+z.length,I=b+u.length;if(o&&b>i&&l.length+u.length<=i||!o&&!y&&I>i||(s=o?"":n(t[f+1],e)+(y?"":c),!o&&y&&I>i&&b+s.length>i))break;if(l+=z,!o&&!y&&b+s.length>=i){u=`${p}(${t.length-f-1})`;break}u=""}return`${l}${u}`}function K(t){return t.match(/^[a-zA-Z_][a-zA-Z_0-9]*$/)?t:JSON.stringify(t).replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'")}function h([t,e],n){return n.truncate-=2,typeof t=="string"?t=K(t):typeof t!="number"&&(t=`[${n.inspect(t,n)}]`),n.truncate-=t.length,e=n.inspect(e,n),`${t}: ${e}`}function X(t,e){const n=Object.keys(t).slice(t.length);if(!t.length&&!n.length)return"[]";e.truncate-=4;const c=a(t,e);e.truncate-=c.length;let r="";return n.length&&(r=a(n.map(i=>[i,t[i]]),e,h)),`[ ${c}${r?`, ${r}`:""} ]`}const Z=t=>typeof Buffer=="function"&&t instanceof Buffer?"Buffer":t[Symbol.toStringTag]?t[Symbol.toStringTag]:t.constructor.name;function g(t,e){const n=Z(t);e.truncate-=n.length+4;const c=Object.keys(t).slice(t.length);if(!t.length&&!c.length)return`${n}[]`;let r="";for(let l=0;l<t.length;l++){const s=`${e.stylize(m(t[l],e.truncate),"number")}${l===t.length-1?"":", "}`;if(e.truncate-=s.length,t[l]!==t.length&&e.truncate<=3){r+=`${p}(${t.length-t[l]+1})`;break}r+=s}let i="";return c.length&&(i=a(c.map(l=>[l,t[l]]),e,h)),`${n}[ ${r}${i?`, ${i}`:""} ]`}function q(t,e){const n=t.toJSON();if(n===null)return"Invalid Date";const c=n.split("T"),r=c[0];return e.stylize(`${r}T${m(c[1],e.truncate-r.length-1)}`,"date")}function T(t,e){const n=t[Symbol.toStringTag]||"Function",c=t.name;return c?e.stylize(`[${n} ${m(c,e.truncate-11)}]`,"special"):e.stylize(`[${n}]`,"special")}function Y([t,e],n){return n.truncate-=4,t=n.inspect(t,n),n.truncate-=t.length,e=n.inspect(e,n),`${t} => ${e}`}function Q(t){const e=[];return t.forEach((n,c)=>{e.push([c,n])}),e}function v(t,e){return t.size===0?"Map{}":(e.truncate-=7,`Map{ ${a(Q(t),e,Y)} }`)}const tt=Number.isNaN||(t=>t!==t);function j(t,e){return tt(t)?e.stylize("NaN","number"):t===1/0?e.stylize("Infinity","number"):t===-1/0?e.stylize("-Infinity","number"):t===0?e.stylize(1/t===1/0?"+0":"-0","number"):e.stylize(m(String(t),e.truncate),"number")}function M(t,e){let n=m(t.toString(),e.truncate-1);return n!==p&&(n+="n"),e.stylize(n,"bigint")}function et(t,e){const n=t.toString().split("/")[2],c=e.truncate-(2+n.length),r=t.source;return e.stylize(`/${m(r,c)}/${n}`,"regexp")}function nt(t){const e=[];return t.forEach(n=>{e.push(n)}),e}function rt(t,e){return t.size===0?"Set{}":(e.truncate-=7,`Set{ ${a(nt(t),e)} }`)}const E=new RegExp("['\\u0000-\\u001f\\u007f-\\u009f\\u00ad\\u0600-\\u0604\\u070f\\u17b4\\u17b5\\u200c-\\u200f\\u2028-\\u202f\\u2060-\\u206f\\ufeff\\ufff0-\\uffff]","g"),ct={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r","'":"\\'","\\":"\\\\"},it=16;function ut(t){return ct[t]||`\\u${`0000${t.charCodeAt(0).toString(it)}`.slice(-4)}`}function L(t,e){return E.test(t)&&(t=t.replace(E,ut)),e.stylize(`'${m(t,e.truncate-2)}'`,"string")}function P(t){return"description"in Symbol.prototype?t.description?`Symbol(${t.description})`:"Symbol()":t.toString()}const st=()=>"Promise{…}";function $(t,e){const n=Object.getOwnPropertyNames(t),c=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t):[];if(n.length===0&&c.length===0)return"{}";if(e.truncate-=4,e.seen=e.seen||[],e.seen.includes(t))return"[Circular]";e.seen.push(t);const r=a(n.map(s=>[s,t[s]]),e,h),i=a(c.map(s=>[s,t[s]]),e,h);e.seen.pop();let l="";return r&&i&&(l=", "),`{ ${r}${l}${i} }`}const d=typeof Symbol<"u"&&Symbol.toStringTag?Symbol.toStringTag:!1;function lt(t,e){let n="";return d&&d in t&&(n=t[d]),n=n||t.constructor.name,(!n||n==="_class")&&(n="<Anonymous Class>"),e.truncate-=n.length,`${n}${$(t,e)}`}function ft(t,e){return t.length===0?"Arguments[]":(e.truncate-=13,`Arguments[ ${a(t,e)} ]`)}const ot=["stack","line","column","name","message","fileName","lineNumber","columnNumber","number","description","cause"];function at(t,e){const n=Object.getOwnPropertyNames(t).filter(l=>ot.indexOf(l)===-1),c=t.name;e.truncate-=c.length;let r="";if(typeof t.message=="string"?r=m(t.message,e.truncate):n.unshift("message"),r=r?`: ${r}`:"",e.truncate-=r.length+5,e.seen=e.seen||[],e.seen.includes(t))return"[Circular]";e.seen.push(t);const i=a(n.map(l=>[l,t[l]]),e,h);return`${c}${r}${i?` { ${i} }`:""}`}function gt([t,e],n){return n.truncate-=3,e?`${n.stylize(String(t),"yellow")}=${n.stylize(`"${e}"`,"string")}`:`${n.stylize(String(t),"yellow")}`}function A(t,e){return a(t,e,yt,`
|
|
2
|
-
`)}function yt(t,e){switch(t.nodeType){case 1:return R(t,e);case 3:return e.inspect(t.data,e);default:return e.inspect(t,e)}}function R(t,e){const n=t.getAttributeNames(),c=t.tagName.toLowerCase(),r=e.stylize(`<${c}`,"special"),i=e.stylize(">","special"),l=e.stylize(`</${c}>`,"special");e.truncate-=c.length*2+5;let s="";n.length>0&&(s+=" ",s+=a(n.map(o=>[o,t.getAttribute(o)]),e,gt," ")),e.truncate-=s.length;const u=e.truncate;let f=A(t.children,e);return f&&f.length>u&&(f=`${p}(${t.children.length})`),`${r}${s}${i}${f}${l}`}const mt=typeof Symbol=="function"&&typeof Symbol.for=="function",N=mt?Symbol.for("chai/inspect"):"@@chai/inspect",O=Symbol.for("nodejs.util.inspect.custom"),F=new WeakMap,B={},x={undefined:(t,e)=>e.stylize("undefined","undefined"),null:(t,e)=>e.stylize("null","null"),boolean:(t,e)=>e.stylize(String(t),"boolean"),Boolean:(t,e)=>e.stylize(String(t),"boolean"),number:j,Number:j,bigint:M,BigInt:M,string:L,String:L,function:T,Function:T,symbol:P,Symbol:P,Array:X,Date:q,Map:v,Set:rt,RegExp:et,Promise:st,WeakSet:(t,e)=>e.stylize("WeakSet{…}","special"),WeakMap:(t,e)=>e.stylize("WeakMap{…}","special"),Arguments:ft,Int8Array:g,Uint8Array:g,Uint8ClampedArray:g,Int16Array:g,Uint16Array:g,Int32Array:g,Uint32Array:g,Float32Array:g,Float64Array:g,Generator:()=>"",DataView:()=>"",ArrayBuffer:()=>"",Error:at,HTMLCollection:A,NodeList:A},pt=(t,e,n,c)=>N in t&&typeof t[N]=="function"?t[N](e):O in t&&typeof t[O]=="function"?t[O](e.depth,e,c):"inspect"in t&&typeof t.inspect=="function"?t.inspect(e.depth,e):"constructor"in t&&F.has(t.constructor)?F.get(t.constructor)(t,e):B[n]?B[n](t,e):"",ht=Object.prototype.toString;function S(t,e={}){const n=k(e,S),{customInspect:c}=n;let r=t===null?"null":typeof t;if(r==="object"&&(r=ht.call(t).slice(8,-1)),r in x)return x[r](t,n);if(c&&t){const l=pt(t,n,r,S);if(l)return typeof l=="string"?l:S(l,n)}const i=t?Object.getPrototypeOf(t):!1;return i===Object.prototype||i===null?$(t,n):t&&typeof HTMLElement=="function"&&t instanceof HTMLElement?R(t,n):"constructor"in t?t.constructor!==Object?lt(t,n):$(t,n):t===Object(t)?$(t,n):n.stylize(String(t),r)}const{AsymmetricMatcher:bt,DOMCollection:$t,DOMElement:St,Immutable:dt,ReactElement:Nt,ReactTestComponent:Ot}=D,H=[Ot,Nt,St,$t,dt,bt];function _(t,e=10,{maxLength:n,...c}={}){const r=n??1e4;let i;try{i=C(t,{maxDepth:e,escapeString:!1,plugins:H,...c})}catch{i=C(t,{callToJSON:!1,maxDepth:e,escapeString:!1,plugins:H,...c})}return i.length>=r&&e>1?_(t,Math.floor(Math.min(e,Number.MAX_SAFE_INTEGER)/2),{maxLength:n,...c}):i}const At=/%[sdjifoOc%]/g;function zt(t,e={}){const n=(s,u)=>e.prettifyObject?_(s,void 0,{printBasicPrototype:!1,escapeString:!1}):U(s,u);if(typeof t[0]!="string"){const s=[];for(let u=0;u<t.length;u++)s.push(n(t[u],{depth:0,colors:!1}));return s.join(" ")}const c=t.length;let r=1;const i=t[0];let l=String(i).replace(At,s=>{if(s==="%%")return"%";if(r>=c)return s;switch(s){case"%s":{const u=t[r++];return typeof u=="bigint"?`${u.toString()}n`:typeof u=="number"&&u===0&&1/u<0?"-0":typeof u=="object"&&u!==null?typeof u.toString=="function"&&u.toString!==Object.prototype.toString?u.toString():n(u,{depth:0,colors:!1}):String(u)}case"%d":{const u=t[r++];return typeof u=="bigint"?`${u.toString()}n`:Number(u).toString()}case"%i":{const u=t[r++];return typeof u=="bigint"?`${u.toString()}n`:Number.parseInt(String(u)).toString()}case"%f":return Number.parseFloat(String(t[r++])).toString();case"%o":return n(t[r++],{showHidden:!0,showProxy:!0});case"%O":return n(t[r++]);case"%c":return r++,"";case"%j":try{return JSON.stringify(t[r++])}catch(u){const f=u.message;if(f.includes("circular structure")||f.includes("cyclic structures")||f.includes("cyclic object"))return"[Circular]";throw u}default:return s}});for(let s=t[r];r<c;s=t[++r])s===null||typeof s!="object"?l+=` ${s}`:l+=` ${n(s)}`;return l}function Ct(...t){return zt(t)}function U(t,e={}){return e.truncate===0&&(e.truncate=Number.POSITIVE_INFINITY),S(t,e)}function wt(t,e={}){typeof e.truncate>"u"&&(e.truncate=40);const n=U(t,e),c=Object.prototype.toString.call(t);if(e.truncate&&n.length>=e.truncate)if(c==="[object Function]"){const r=t;return r.name?`[Function: ${r.name}]`:"[Function]"}else{if(c==="[object Array]")return`[ Array(${t.length}) ]`;if(c==="[object Object]"){const r=Object.keys(t);return`{ Object (${r.length>2?`${r.splice(0,2).join(", ")}, ...`:r.join(", ")}) }`}else return n}return n}export{Ct as format,At as formatRegExp,U as inspect,wt as objDisplay,_ as stringify};
|
package/dist/node_modules/.pnpm/@vitest_utils@4.0.18/node_modules/@vitest/utils/dist/error.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{printDiffOrStringify as n}from"./diff.js";import{stringify as o}from"./display.js";import{serializeValue as f}from"./serialize.js";import"../../../../../tinyrainbow@3.0.3/node_modules/tinyrainbow/dist/index.js";function c(t,a,r=new WeakSet){if(!t||typeof t!="object")return{message:String(t)};const e=t;(e.showDiff||e.showDiff===void 0&&e.expected!==void 0&&e.actual!==void 0)&&(e.diff=n(e.actual,e.expected,{...a,...e.diffOptions})),"expected"in e&&typeof e.expected!="string"&&(e.expected=o(e.expected,10)),"actual"in e&&typeof e.actual!="string"&&(e.actual=o(e.actual,10));try{!r.has(e)&&typeof e.cause=="object"&&(r.add(e),e.cause=c(e.cause,a,r))}catch{}try{return f(e)}catch(i){return f(new Error(`Failed to fully serialize error: ${i?.message}
|
|
2
|
-
Inner error message: ${e?.message}`))}}export{c as processError,f as serializeError};
|
package/dist/node_modules/.pnpm/@vitest_utils@4.0.18/node_modules/@vitest/utils/dist/helpers.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
function a(e,t,n){const o=typeof e;if(!n.includes(o))throw new TypeError(`${t} value must be ${n.join(" or ")}, received "${o}"`)}function O(e){return e==null&&(e=[]),Array.isArray(e)?e:[e]}function d(e){return e!=null&&typeof e=="object"&&!Array.isArray(e)}function l(e){return e===Object.prototype||e===Function.prototype||e===RegExp.prototype}function g(e){return Object.prototype.toString.apply(e).slice(8,-1)}function y(e,t){const n=typeof t=="function"?t:o=>t.add(o);Object.getOwnPropertyNames(e).forEach(n),Object.getOwnPropertySymbols(e).forEach(n)}function b(e){const t=new Set;return l(e)?[]:(y(e,t),Array.from(t))}const p={forceWritable:!1};function j(e,t=p){return s(e,new WeakMap,t)}function s(e,t,n=p){let o,r;if(t.has(e))return t.get(e);if(Array.isArray(e)){for(r=Array.from({length:o=e.length}),t.set(e,r);o--;)r[o]=s(e[o],t,n);return r}if(Object.prototype.toString.call(e)==="[object Object]"){r=Object.create(Object.getPrototypeOf(e)),t.set(e,r);const u=b(e);for(const c of u){const i=Object.getOwnPropertyDescriptor(e,c);if(!i)continue;const f=s(e[c],t,n);n.forceWritable?Object.defineProperty(r,c,{enumerable:i.enumerable,configurable:!0,writable:!0,value:f}):"get"in i?Object.defineProperty(r,c,{...i,get(){return f}}):Object.defineProperty(r,c,{...i,value:f})}return r}return e}function w(){}function A(e,t,n=void 0){const o=t.replace(/\[(\d+)\]/g,".$1").split(".");let r=e;for(const u of o)if(r=new Object(r)[u],r===void 0)return n;return r}function P(){let e=null,t=null;const n=new Promise((o,r)=>{e=o,t=r});return n.resolve=e,n.reject=t,n}function N(e){if(!Number.isNaN(e))return!1;const t=new Float64Array(1);return t[0]=e,new Uint32Array(t.buffer)[1]>>>31===1}export{a as assertTypes,s as clone,P as createDefer,j as deepClone,b as getOwnProperties,g as getType,N as isNegativeNaN,d as isObject,w as noop,A as objectAttr,O as toArray};
|
package/dist/node_modules/.pnpm/@vitest_utils@4.0.18/node_modules/@vitest/utils/dist/serialize.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const y="@@__IMMUTABLE_RECORD__@@",g="@@__IMMUTABLE_ITERABLE__@@";function m(t){return t&&(t[g]||t[y])}const p=Object.getPrototypeOf({});function c(t){return t instanceof Error?`<unserializable>: ${t.message}`:typeof t=="string"?`<unserializable>: ${t}`:"<unserializable>"}function i(t,r=new WeakMap){if(!t||typeof t=="string")return t;if(t instanceof Error&&"toJSON"in t&&typeof t.toJSON=="function"){const e=t.toJSON();return e&&e!==t&&typeof e=="object"&&(typeof t.message=="string"&&f(()=>e.message??(e.message=u(t.message))),typeof t.stack=="string"&&f(()=>e.stack??(e.stack=t.stack)),typeof t.name=="string"&&f(()=>e.name??(e.name=t.name)),t.cause!=null&&f(()=>e.cause??(e.cause=i(t.cause,r)))),i(e,r)}if(typeof t=="function")return`Function<${t.name||"anonymous"}>`;if(typeof t=="symbol")return t.toString();if(typeof t!="object")return t;if(typeof Buffer<"u"&&t instanceof Buffer)return`<Buffer(${t.length}) ...>`;if(typeof Uint8Array<"u"&&t instanceof Uint8Array)return`<Uint8Array(${t.length}) ...>`;if(m(t))return i(t.toJSON(),r);if(t instanceof Promise||t.constructor&&t.constructor.prototype==="AsyncFunction")return"Promise";if(typeof Element<"u"&&t instanceof Element)return t.tagName;if(typeof t.toJSON=="function")return i(t.toJSON(),r);if(r.has(t))return r.get(t);if(Array.isArray(t)){const e=new Array(t.length);return r.set(t,e),t.forEach((o,n)=>{try{e[n]=i(o,r)}catch(s){e[n]=c(s)}}),e}else{const e=Object.create(null);r.set(t,e);let o=t;for(;o&&o!==p;)Object.getOwnPropertyNames(o).forEach(n=>{if(!(n in e))try{e[n]=i(t[n],r)}catch(s){delete e[n],e[n]=c(s)}}),o=Object.getPrototypeOf(o);return t instanceof Error&&f(()=>t.message=u(t.message)),e}}function f(t){try{return t()}catch{}}function u(t){return t.replace(/__(vite_ssr_import|vi_import)_\d+__\./g,"")}export{i as serializeValue};
|
package/dist/node_modules/.pnpm/@vitest_utils@4.0.18/node_modules/@vitest/utils/dist/source-map.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as m}from"./chunk-pathe.M-eThtNZ.js";var u="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",p=new Uint8Array(64),h=new Uint8Array(128);for(let r=0;r<u.length;r++){const e=u.charCodeAt(r);p[r]=e,h[e]=r}const d=/^\s*at .*(?:\S:\d+|\(native\))/m,v=/^(?:eval@)?(?:\[native code\])?$/;function f(r){if(!r.includes(":"))return[r];const i=/(.+?)(?::(\d+))?(?::(\d+))?$/.exec(r.replace(/^\(|\)$/g,""));if(!i)return[r];let t=i[1];if(t.startsWith("async ")&&(t=t.slice(6)),t.startsWith("http:")||t.startsWith("https:")){const l=new URL(t);l.searchParams.delete("import"),l.searchParams.delete("browserv"),t=l.pathname+l.hash+l.search}if(t.startsWith("/@fs/")){const l=/^\/@fs\/[a-zA-Z]:\//.test(t);t=t.slice(l?5:4)}return[t,i[2]||void 0,i[3]||void 0]}function _(r){let e=r.trim();if(v.test(e)||(e.includes(" > eval")&&(e=e.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,":$1")),!e.includes("@")))return null;let i=-1,t="",l;for(let n=0;n<e.length;n++)if(e[n]==="@"){const o=e.slice(n+1);if(o.includes(":")&&o.length>=3){i=n,t=o,l=n>0?e.slice(0,n):void 0;break}}if(i===-1||!t.includes(":")||t.length<3)return null;const[s,c,a]=f(t);return!s||!c||!a?null:{file:s,method:l||"",line:Number.parseInt(c),column:Number.parseInt(a)}}function E(r){const e=r.trim();return d.test(e)?g(e):_(e)}function g(r){let e=r.trim();if(!d.test(e))return null;e.includes("(eval ")&&(e=e.replace(/eval code/g,"eval").replace(/(\(eval at [^()]*)|(,.*$)/g,""));let i=e.replace(/^\s+/,"").replace(/\(eval code/g,"(").replace(/^.*?\s+/,"");const t=i.match(/ (\(.+\)$)/);i=t?i.replace(t[0],""):i;const[l,s,c]=f(t?t[1]:i);let a=t&&i||"",n=l&&["eval","<anonymous>"].includes(l)?void 0:l;return!n||!s||!c?null:(a.startsWith("async ")&&(a=a.slice(6)),n.startsWith("file://")&&(n=n.slice(7)),n=n.startsWith("node:")||n.startsWith("internal:")?n:m(n),a&&(a=a.replace(/__vite_ssr_import_\d+__\./g,"").replace(/(Object\.)?__vite_ssr_export_default__\s?/g,"")),{method:a,file:n,line:Number.parseInt(s),column:Number.parseInt(c)})}export{_ as parseSingleFFOrSafariStack,E as parseSingleStack,g as parseSingleV8Stack};
|
package/dist/node_modules/.pnpm/pathe@2.0.3/node_modules/pathe/dist/shared/pathe.M-eThtNZ.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const a=/^[A-Za-z]:\//;function g(t=""){return t&&t.replace(/\\/g,"/").replace(a,n=>n.toUpperCase())}const h=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/;function u(){return typeof process<"u"&&typeof process.cwd=="function"?process.cwd().replace(/\\/g,"/"):"/"}const p=function(...t){t=t.map(l=>g(l));let n="",e=!1;for(let l=t.length-1;l>=-1&&!e;l--){const s=l>=0?t[l]:u();!s||s.length===0||(n=`${s}/${n}`,e=c(s))}return n=d(n,!e),e&&!c(n)?`/${n}`:n.length>0?n:"."};function d(t,n){let e="",l=0,s=-1,o=0,r=null;for(let i=0;i<=t.length;++i){if(i<t.length)r=t[i];else{if(r==="/")break;r="/"}if(r==="/"){if(!(s===i-1||o===1))if(o===2){if(e.length<2||l!==2||e[e.length-1]!=="."||e[e.length-2]!=="."){if(e.length>2){const f=e.lastIndexOf("/");f===-1?(e="",l=0):(e=e.slice(0,f),l=e.length-1-e.lastIndexOf("/")),s=i,o=0;continue}else if(e.length>0){e="",l=0,s=i,o=0;continue}}n&&(e+=e.length>0?"/..":"..",l=2)}else e.length>0?e+=`/${t.slice(s+1,i)}`:e=t.slice(s+1,i),l=i-s-1;s=i,o=0}else r==="."&&o!==-1?++o:o=-1}return e}const c=function(t){return h.test(t)};export{d as a,g,c as i,p as r};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{__commonJS as y}from"./chunk-A242L54C.js";var w=y({"../../node_modules/color-name/index.js"(p,g){g.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}}}),v=y({"../../node_modules/color-convert/conversions.js"(p,g){var h=w(),f={};for(let n of Object.keys(h))f[h[n]]=n;var o={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};g.exports=o;for(let n of Object.keys(o)){if(!("channels"in o[n]))throw new Error("missing channels property: "+n);if(!("labels"in o[n]))throw new Error("missing channel labels property: "+n);if(o[n].labels.length!==o[n].channels)throw new Error("channel and label counts mismatch: "+n);let{channels:l,labels:e}=o[n];delete o[n].channels,delete o[n].labels,Object.defineProperty(o[n],"channels",{value:l}),Object.defineProperty(o[n],"labels",{value:e})}o.rgb.hsl=function(n){let l=n[0]/255,e=n[1]/255,r=n[2]/255,t=Math.min(l,e,r),a=Math.max(l,e,r),i=a-t,u,s;a===t?u=0:l===a?u=(e-r)/i:e===a?u=2+(r-l)/i:r===a&&(u=4+(l-e)/i),u=Math.min(u*60,360),u<0&&(u+=360);let c=(t+a)/2;return a===t?s=0:c<=.5?s=i/(a+t):s=i/(2-a-t),[u,s*100,c*100]},o.rgb.hsv=function(n){let l,e,r,t,a,i=n[0]/255,u=n[1]/255,s=n[2]/255,c=Math.max(i,u,s),b=c-Math.min(i,u,s),d=function(k){return(c-k)/6/b+1/2};return b===0?(t=0,a=0):(a=b/c,l=d(i),e=d(u),r=d(s),i===c?t=r-e:u===c?t=1/3+l-r:s===c&&(t=2/3+e-l),t<0?t+=1:t>1&&(t-=1)),[t*360,a*100,c*100]},o.rgb.hwb=function(n){let l=n[0],e=n[1],r=n[2],t=o.rgb.hsl(n)[0],a=1/255*Math.min(l,Math.min(e,r));return r=1-1/255*Math.max(l,Math.max(e,r)),[t,a*100,r*100]},o.rgb.cmyk=function(n){let l=n[0]/255,e=n[1]/255,r=n[2]/255,t=Math.min(1-l,1-e,1-r),a=(1-l-t)/(1-t)||0,i=(1-e-t)/(1-t)||0,u=(1-r-t)/(1-t)||0;return[a*100,i*100,u*100,t*100]};function m(n,l){return(n[0]-l[0])**2+(n[1]-l[1])**2+(n[2]-l[2])**2}o.rgb.keyword=function(n){let l=f[n];if(l)return l;let e=1/0,r;for(let t of Object.keys(h)){let a=h[t],i=m(n,a);i<e&&(e=i,r=t)}return r},o.keyword.rgb=function(n){return h[n]},o.rgb.xyz=function(n){let l=n[0]/255,e=n[1]/255,r=n[2]/255;l=l>.04045?((l+.055)/1.055)**2.4:l/12.92,e=e>.04045?((e+.055)/1.055)**2.4:e/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92;let t=l*.4124+e*.3576+r*.1805,a=l*.2126+e*.7152+r*.0722,i=l*.0193+e*.1192+r*.9505;return[t*100,a*100,i*100]},o.rgb.lab=function(n){let l=o.rgb.xyz(n),e=l[0],r=l[1],t=l[2];e/=95.047,r/=100,t/=108.883,e=e>.008856?e**(1/3):7.787*e+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,t=t>.008856?t**(1/3):7.787*t+16/116;let a=116*r-16,i=500*(e-r),u=200*(r-t);return[a,i,u]},o.hsl.rgb=function(n){let l=n[0]/360,e=n[1]/100,r=n[2]/100,t,a,i;if(e===0)return i=r*255,[i,i,i];r<.5?t=r*(1+e):t=r+e-r*e;let u=2*r-t,s=[0,0,0];for(let c=0;c<3;c++)a=l+1/3*-(c-1),a<0&&a++,a>1&&a--,6*a<1?i=u+(t-u)*6*a:2*a<1?i=t:3*a<2?i=u+(t-u)*(2/3-a)*6:i=u,s[c]=i*255;return s},o.hsl.hsv=function(n){let l=n[0],e=n[1]/100,r=n[2]/100,t=e,a=Math.max(r,.01);r*=2,e*=r<=1?r:2-r,t*=a<=1?a:2-a;let i=(r+e)/2,u=r===0?2*t/(a+t):2*e/(r+e);return[l,u*100,i*100]},o.hsv.rgb=function(n){let l=n[0]/60,e=n[1]/100,r=n[2]/100,t=Math.floor(l)%6,a=l-Math.floor(l),i=255*r*(1-e),u=255*r*(1-e*a),s=255*r*(1-e*(1-a));switch(r*=255,t){case 0:return[r,s,i];case 1:return[u,r,i];case 2:return[i,r,s];case 3:return[i,u,r];case 4:return[s,i,r];case 5:return[r,i,u]}},o.hsv.hsl=function(n){let l=n[0],e=n[1]/100,r=n[2]/100,t=Math.max(r,.01),a,i;i=(2-e)*r;let u=(2-e)*t;return a=e*t,a/=u<=1?u:2-u,a=a||0,i/=2,[l,a*100,i*100]},o.hwb.rgb=function(n){let l=n[0]/360,e=n[1]/100,r=n[2]/100,t=e+r,a;t>1&&(e/=t,r/=t);let i=Math.floor(6*l),u=1-r;a=6*l-i,(i&1)!==0&&(a=1-a);let s=e+a*(u-e),c,b,d;switch(i){default:case 6:case 0:c=u,b=s,d=e;break;case 1:c=s,b=u,d=e;break;case 2:c=e,b=u,d=s;break;case 3:c=e,b=s,d=u;break;case 4:c=s,b=e,d=u;break;case 5:c=u,b=e,d=s;break}return[c*255,b*255,d*255]},o.cmyk.rgb=function(n){let l=n[0]/100,e=n[1]/100,r=n[2]/100,t=n[3]/100,a=1-Math.min(1,l*(1-t)+t),i=1-Math.min(1,e*(1-t)+t),u=1-Math.min(1,r*(1-t)+t);return[a*255,i*255,u*255]},o.xyz.rgb=function(n){let l=n[0]/100,e=n[1]/100,r=n[2]/100,t,a,i;return t=l*3.2406+e*-1.5372+r*-.4986,a=l*-.9689+e*1.8758+r*.0415,i=l*.0557+e*-.204+r*1.057,t=t>.0031308?1.055*t**(1/2.4)-.055:t*12.92,a=a>.0031308?1.055*a**(1/2.4)-.055:a*12.92,i=i>.0031308?1.055*i**(1/2.4)-.055:i*12.92,t=Math.min(Math.max(0,t),1),a=Math.min(Math.max(0,a),1),i=Math.min(Math.max(0,i),1),[t*255,a*255,i*255]},o.xyz.lab=function(n){let l=n[0],e=n[1],r=n[2];l/=95.047,e/=100,r/=108.883,l=l>.008856?l**(1/3):7.787*l+16/116,e=e>.008856?e**(1/3):7.787*e+16/116,r=r>.008856?r**(1/3):7.787*r+16/116;let t=116*e-16,a=500*(l-e),i=200*(e-r);return[t,a,i]},o.lab.xyz=function(n){let l=n[0],e=n[1],r=n[2],t,a,i;a=(l+16)/116,t=e/500+a,i=a-r/200;let u=a**3,s=t**3,c=i**3;return a=u>.008856?u:(a-16/116)/7.787,t=s>.008856?s:(t-16/116)/7.787,i=c>.008856?c:(i-16/116)/7.787,t*=95.047,a*=100,i*=108.883,[t,a,i]},o.lab.lch=function(n){let l=n[0],e=n[1],r=n[2],t;t=Math.atan2(r,e)*360/2/Math.PI,t<0&&(t+=360);let a=Math.sqrt(e*e+r*r);return[l,a,t]},o.lch.lab=function(n){let l=n[0],e=n[1],r=n[2]/360*2*Math.PI,t=e*Math.cos(r),a=e*Math.sin(r);return[l,t,a]},o.rgb.ansi16=function(n,l=null){let[e,r,t]=n,a=l===null?o.rgb.hsv(n)[2]:l;if(a=Math.round(a/50),a===0)return 30;let i=30+(Math.round(t/255)<<2|Math.round(r/255)<<1|Math.round(e/255));return a===2&&(i+=60),i},o.hsv.ansi16=function(n){return o.rgb.ansi16(o.hsv.rgb(n),n[2])},o.rgb.ansi256=function(n){let l=n[0],e=n[1],r=n[2];return l===e&&e===r?l<8?16:l>248?231:Math.round((l-8)/247*24)+232:16+36*Math.round(l/255*5)+6*Math.round(e/255*5)+Math.round(r/255*5)},o.ansi16.rgb=function(n){let l=n%10;if(l===0||l===7)return n>50&&(l+=3.5),l=l/10.5*255,[l,l,l];let e=(~~(n>50)+1)*.5,r=(l&1)*e*255,t=(l>>1&1)*e*255,a=(l>>2&1)*e*255;return[r,t,a]},o.ansi256.rgb=function(n){if(n>=232){let a=(n-232)*10+8;return[a,a,a]}n-=16;let l,e=Math.floor(n/36)/5*255,r=Math.floor((l=n%36)/6)/5*255,t=l%6/5*255;return[e,r,t]},o.rgb.hex=function(n){let l=(((Math.round(n[0])&255)<<16)+((Math.round(n[1])&255)<<8)+(Math.round(n[2])&255)).toString(16).toUpperCase();return"000000".substring(l.length)+l},o.hex.rgb=function(n){let l=n.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!l)return[0,0,0];let e=l[0];l[0].length===3&&(e=e.split("").map(u=>u+u).join(""));let r=parseInt(e,16),t=r>>16&255,a=r>>8&255,i=r&255;return[t,a,i]},o.rgb.hcg=function(n){let l=n[0]/255,e=n[1]/255,r=n[2]/255,t=Math.max(Math.max(l,e),r),a=Math.min(Math.min(l,e),r),i=t-a,u,s;return i<1?u=a/(1-i):u=0,i<=0?s=0:t===l?s=(e-r)/i%6:t===e?s=2+(r-l)/i:s=4+(l-e)/i,s/=6,s%=1,[s*360,i*100,u*100]},o.hsl.hcg=function(n){let l=n[1]/100,e=n[2]/100,r=e<.5?2*l*e:2*l*(1-e),t=0;return r<1&&(t=(e-.5*r)/(1-r)),[n[0],r*100,t*100]},o.hsv.hcg=function(n){let l=n[1]/100,e=n[2]/100,r=l*e,t=0;return r<1&&(t=(e-r)/(1-r)),[n[0],r*100,t*100]},o.hcg.rgb=function(n){let l=n[0]/360,e=n[1]/100,r=n[2]/100;if(e===0)return[r*255,r*255,r*255];let t=[0,0,0],a=l%1*6,i=a%1,u=1-i,s=0;switch(Math.floor(a)){case 0:t[0]=1,t[1]=i,t[2]=0;break;case 1:t[0]=u,t[1]=1,t[2]=0;break;case 2:t[0]=0,t[1]=1,t[2]=i;break;case 3:t[0]=0,t[1]=u,t[2]=1;break;case 4:t[0]=i,t[1]=0,t[2]=1;break;default:t[0]=1,t[1]=0,t[2]=u}return s=(1-e)*r,[(e*t[0]+s)*255,(e*t[1]+s)*255,(e*t[2]+s)*255]},o.hcg.hsv=function(n){let l=n[1]/100,e=n[2]/100,r=l+e*(1-l),t=0;return r>0&&(t=l/r),[n[0],t*100,r*100]},o.hcg.hsl=function(n){let l=n[1]/100,e=n[2]/100*(1-l)+.5*l,r=0;return e>0&&e<.5?r=l/(2*e):e>=.5&&e<1&&(r=l/(2*(1-e))),[n[0],r*100,e*100]},o.hcg.hwb=function(n){let l=n[1]/100,e=n[2]/100,r=l+e*(1-l);return[n[0],(r-l)*100,(1-r)*100]},o.hwb.hcg=function(n){let l=n[1]/100,e=1-n[2]/100,r=e-l,t=0;return r<1&&(t=(e-r)/(1-r)),[n[0],r*100,t*100]},o.apple.rgb=function(n){return[n[0]/65535*255,n[1]/65535*255,n[2]/65535*255]},o.rgb.apple=function(n){return[n[0]/255*65535,n[1]/255*65535,n[2]/255*65535]},o.gray.rgb=function(n){return[n[0]/100*255,n[0]/100*255,n[0]/100*255]},o.gray.hsl=function(n){return[0,0,n[0]]},o.gray.hsv=o.gray.hsl,o.gray.hwb=function(n){return[0,100,n[0]]},o.gray.cmyk=function(n){return[0,0,0,n[0]]},o.gray.lab=function(n){return[n[0],0,0]},o.gray.hex=function(n){let l=Math.round(n[0]/100*255)&255,e=((l<<16)+(l<<8)+l).toString(16).toUpperCase();return"000000".substring(e.length)+e},o.rgb.gray=function(n){return[(n[0]+n[1]+n[2])/3/255*100]}}}),x=y({"../../node_modules/color-convert/route.js"(p,g){var h=v();function f(){let l={},e=Object.keys(h);for(let r=e.length,t=0;t<r;t++)l[e[t]]={distance:-1,parent:null};return l}function o(l){let e=f(),r=[l];for(e[l].distance=0;r.length;){let t=r.pop(),a=Object.keys(h[t]);for(let i=a.length,u=0;u<i;u++){let s=a[u],c=e[s];c.distance===-1&&(c.distance=e[t].distance+1,c.parent=t,r.unshift(s))}}return e}function m(l,e){return function(r){return e(l(r))}}function n(l,e){let r=[e[l].parent,l],t=h[e[l].parent][l],a=e[l].parent;for(;e[a].parent;)r.unshift(e[a].parent),t=m(h[e[a].parent][a],t),a=e[a].parent;return t.conversion=r,t}g.exports=function(l){let e=o(l),r={},t=Object.keys(e);for(let a=t.length,i=0;i<a;i++){let u=t[i];e[u].parent!==null&&(r[u]=n(u,e))}return r}}}),j=y({"../../node_modules/color-convert/index.js"(p,g){var h=v(),f=x(),o={},m=Object.keys(h);function n(e){let r=function(...t){let a=t[0];return a==null?a:(a.length>1&&(t=a),e(t))};return"conversion"in e&&(r.conversion=e.conversion),r}function l(e){let r=function(...t){let a=t[0];if(a==null)return a;a.length>1&&(t=a);let i=e(t);if(typeof i=="object")for(let u=i.length,s=0;s<u;s++)i[s]=Math.round(i[s]);return i};return"conversion"in e&&(r.conversion=e.conversion),r}m.forEach(e=>{o[e]={},Object.defineProperty(o[e],"channels",{value:h[e].channels}),Object.defineProperty(o[e],"labels",{value:h[e].labels});let r=f(e);Object.keys(r).forEach(t=>{let a=r[t];o[e][t]=l(a),o[e][t].raw=n(a)})}),g.exports=o}});export{j as require_color_convert};
|