XuVV commited on
Commit
2b717b8
Β·
1 Parent(s): b1b9a92

Update from GitHub Actions

Browse files
assets/{_...all_-B3b0dc6L.js β†’ _...all_-D3p2dDnz.js} RENAMED
@@ -1 +1 @@
1
- import{_ as e,c as _,o as c}from"./index-oqfyI0Df.js";const o={};function n(t,r){return c(),_("div",null," Not Found ")}const s=e(o,[["render",n]]);export{s as default};
 
1
+ import{_ as e,c as _,o as c}from"./index-CpnR-XtZ.js";const o={};function n(t,r){return c(),_("div",null," Not Found ")}const s=e(o,[["render",n]]);export{s as default};
assets/_name_-Bm_WTNaK.js DELETED
@@ -1 +0,0 @@
1
- import{d as a,Q as r,c as l,o as u,a as e,t as m,H as n,R as i}from"./index-oqfyI0Df.js";const x=a({__name:"[name]",setup(p){const o=r().params,s=i();return(d,t)=>(u(),l("div",null,[t[1]||(t[1]=e("div",{"i-carbon-pedestrian":"","inline-block":"","text-4xl":""},null,-1)),e("p",null," Hi, "+m(n(o).name),1),t[2]||(t[2]=e("p",{"text-sm":"",op50:""},[e("em",null,"Dynamic route!")],-1)),e("div",null,[e("button",{"m-3":"","mt-8":"","text-sm":"",btn:"",onClick:t[0]||(t[0]=c=>n(s).back())}," Back ")])]))}});export{x as default};
 
 
assets/{index-oqfyI0Df.js β†’ index-CpnR-XtZ.js} RENAMED
The diff for this file is too large to render. See raw diff
 
assets/{index-CR8UwHE5.css β†’ index-DdQ2ZrXn.css} RENAMED
@@ -1 +1 @@
1
- *,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:var(--un-default-border-color, #e5e7eb)}:before,:after{--un-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}@tailwind base;@tailwind components;@tailwind utilities;:root{--primary: #10B981;--bg: #ffffff;--text: #374151}.dark{--bg: #1F2937;--text: #F9FAFB}body{background-color:var(--bg);color:var(--text)}html,body,#app{height:100%;margin:0;padding:0}html.dark{background:#121212}.f{flex:1 1 0}*,:before,:after{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 rgb(0 0 0 / 0);--un-ring-shadow:0 0 rgb(0 0 0 / 0);--un-shadow-inset: ;--un-shadow:0 0 rgb(0 0 0 / 0);--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgb(147 197 253 / .5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }::backdrop{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 rgb(0 0 0 / 0);--un-ring-shadow:0 0 rgb(0 0 0 / 0);--un-shadow-inset: ;--un-shadow:0 0 rgb(0 0 0 / 0);--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgb(147 197 253 / .5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }.i-carbon-code,[i-carbon-code=""]{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1.2em' height='1.2em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='m31 16l-7 7l-1.41-1.41L28.17 16l-5.58-5.59L24 9zM1 16l7-7l1.41 1.41L3.83 16l5.58 5.59L8 23zm11.42 9.484L17.64 6l1.932.517L14.352 26z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;width:1.2em;height:1.2em}.i-carbon-pedestrian,[i-carbon-pedestrian=""]{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1.2em' height='1.2em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='m21.677 14l-1.245-3.114A2.99 2.99 0 0 0 17.646 9h-4.092a3 3 0 0 0-1.544.428L7 12.434V18h2v-4.434l3-1.8v11.931l-3.462 5.194L10.202 30L14 24.303V11h3.646a.995.995 0 0 1 .928.629L20.323 16H26v-2Z'/%3E%3Cpath fill='currentColor' d='M17.051 18.316L19 24.162V30h2v-6.162l-2.051-6.154zM16.5 8A3.5 3.5 0 1 1 20 4.5A3.504 3.504 0 0 1 16.5 8m0-5A1.5 1.5 0 1 0 18 4.5A1.5 1.5 0 0 0 16.5 3'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;width:1.2em;height:1.2em}.i-carbon-text-font,[i-carbon-text-font=""]{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1.2em' height='1.2em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M25 12h-5v2h5a1 1 0 0 1 1 1v2h-4a3.003 3.003 0 0 0-3 3v1a3.003 3.003 0 0 0 3 3h6v-9a3.003 3.003 0 0 0-3-3m-3 10a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h4v3zm-6 2h2L12 7h-2L4 24h2l1.694-5h6.613zm-7.629-7l2.497-7.371h.266L13.63 17z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;width:1.2em;height:1.2em}.btn,[btn=""]{display:inline-block;cursor:pointer;border-radius:.25rem;--un-bg-opacity:1;background-color:rgb(13 148 136 / var(--un-bg-opacity));padding:.25rem 1rem;--un-text-opacity:1;color:rgb(255 255 255 / var(--un-text-opacity))}.btn:disabled{cursor:default;--un-bg-opacity:1;background-color:rgb(75 85 99 / var(--un-bg-opacity));opacity:.5}[btn=""]:disabled{cursor:default;--un-bg-opacity:1;background-color:rgb(75 85 99 / var(--un-bg-opacity));opacity:.5}.btn:hover,[btn=""]:hover{--un-bg-opacity:1;background-color:rgb(15 118 110 / var(--un-bg-opacity))}.absolute{position:absolute}.relative{position:relative}.bottom-2{bottom:.5rem}.left-3{left:.75rem}.right-3{right:.75rem}.top-1\/2{top:50%}.m-1{margin:.25rem}.m-3,[m-3=""]{margin:.75rem}.mb-2{margin-bottom:.5rem}.mb-4{margin-bottom:1rem}.mt-2{margin-top:.5rem}.mt-8,[mt-8=""]{margin-top:2rem}.inline-block,[inline-block=""]{display:inline-block}.h-4{height:1rem}.h-5{height:1.25rem}.h-8{height:2rem}.h-full{height:100%}.h-screen{height:100vh}.h1{height:.25rem}.max-h-64{max-height:16rem}.min-h-\[200px\]{min-height:200px}.w-4{width:1rem}.w-5{width:1.25rem}.w-8{width:2rem}.w-full{width:100%}.flex{display:flex}.inline-flex{display:inline-flex}.flex-1{flex:1 1 0%}.flex-none{flex:none}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.-translate-y-1\/2{--un-translate-y:-50%;transform:translate(var(--un-translate-x)) translateY(var(--un-translate-y)) translateZ(var(--un-translate-z)) rotate(var(--un-rotate)) rotateX(var(--un-rotate-x)) rotateY(var(--un-rotate-y)) rotate(var(--un-rotate-z)) skew(var(--un-skew-x)) skewY(var(--un-skew-y)) scaleX(var(--un-scale-x)) scaleY(var(--un-scale-y)) scaleZ(var(--un-scale-z))}.transform{transform:translate(var(--un-translate-x)) translateY(var(--un-translate-y)) translateZ(var(--un-translate-z)) rotate(var(--un-rotate)) rotateX(var(--un-rotate-x)) rotateY(var(--un-rotate-y)) rotate(var(--un-rotate-z)) skew(var(--un-skew-x)) skewY(var(--un-skew-y)) scaleX(var(--un-scale-x)) scaleY(var(--un-scale-y)) scaleZ(var(--un-scale-z))}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.cursor-pointer{cursor:pointer}.resize-none{resize:none}.items-center{align-items:center}.justify-center{justify-content:center}.gap-1{gap:.25rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.overflow-auto{overflow:auto}.overflow-y-scroll{overflow-y:scroll}.border{border-width:1px}.border-2{border-width:2px}.border-b{border-bottom-width:1px}.last\:border-b-0:last-child{border-bottom-width:0px}.border-gray-100{--un-border-opacity:1;border-color:rgb(243 244 246 / var(--un-border-opacity))}.border-gray-200{--un-border-opacity:1;border-color:rgb(229 231 235 / var(--un-border-opacity))}.border-gray-300{--un-border-opacity:1;border-color:rgb(209 213 219 / var(--un-border-opacity))}.dark .dark\:border-gray-700{--un-border-opacity:1;border-color:rgb(55 65 81 / var(--un-border-opacity))}.dark .dark\:border-gray-800{--un-border-opacity:1;border-color:rgb(31 41 55 / var(--un-border-opacity))}.focus\:border-green-500:focus{--un-border-opacity:1;border-color:rgb(34 197 94 / var(--un-border-opacity))}.border-t-green-500{--un-border-opacity:1;--un-border-top-opacity:var(--un-border-opacity);border-top-color:rgb(34 197 94 / var(--un-border-top-opacity))}.rounded{border-radius:.25rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-sm{border-radius:.125rem}.bg-gray-100{--un-bg-opacity:1;background-color:rgb(243 244 246 / var(--un-bg-opacity))}.bg-white{--un-bg-opacity:1;background-color:rgb(255 255 255 / var(--un-bg-opacity))}.dark .dark\:bg-gray-800{--un-bg-opacity:1;background-color:rgb(31 41 55 / var(--un-bg-opacity))}.dark .dark\:bg-gray-900{--un-bg-opacity:1;background-color:rgb(17 24 39 / var(--un-bg-opacity))}.dark .dark\:bg-hex-121212{--un-bg-opacity:1;background-color:rgb(18 18 18 / var(--un-bg-opacity))}.dark .dark\:hover\:bg-gray-800:hover{--un-bg-opacity:1;background-color:rgb(31 41 55 / var(--un-bg-opacity))}.hover\:bg-green-50:hover{--un-bg-opacity:1;background-color:rgb(240 253 244 / var(--un-bg-opacity))}.p-2{padding:.5rem}.p-4{padding:1rem}.p-8{padding:2rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-4{padding-left:1rem;padding-right:1rem}.px-8{padding-left:2rem;padding-right:2rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-8{padding-top:2rem;padding-bottom:2rem}.pb-0{padding-bottom:0}.pb-8{padding-bottom:2rem}.pl-0{padding-left:0}.text-2xl{font-size:1.5rem;line-height:2rem}.text-4xl,[text-4xl=""]{font-size:2.25rem;line-height:2.5rem}.text-base{font-size:1rem;line-height:1.5rem}.text-sm,[text-sm=""]{font-size:.875rem;line-height:1.25rem}.text-xs{font-size:.75rem;line-height:1rem}.dark .dark\:text-gray-200{--un-text-opacity:1;color:rgb(229 231 235 / var(--un-text-opacity))}.dark .dark\:text-gray-400{--un-text-opacity:1;color:rgb(156 163 175 / var(--un-text-opacity))}.dark .dark\:text-white{--un-text-opacity:1;color:rgb(255 255 255 / var(--un-text-opacity))}.text-gray-500{--un-text-opacity:1;color:rgb(107 114 128 / var(--un-text-opacity))}.text-gray-800{--un-text-opacity:1;color:rgb(31 41 55 / var(--un-text-opacity))}.dark .dark\:hover\:text-green-400:hover{--un-text-opacity:1;color:rgb(74 222 128 / var(--un-text-opacity))}.hover\:text-green-700:hover{--un-text-opacity:1;color:rgb(21 128 61 / var(--un-text-opacity))}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-sans{font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji"}.op50,.opacity-50,[op50=""]{opacity:.5}.shadow-sm{--un-shadow:var(--un-shadow-inset) 0 1px 2px 0 var(--un-shadow-color, rgb(0 0 0 / .05));box-shadow:var(--un-ring-offset-shadow),var(--un-ring-shadow),var(--un-shadow)}.focus\:shadow-\[0_0_0_2px_rgba\(34\,197\,94\,0\.2\)\]:focus{--un-shadow:0 0 0 2px var(--un-shadow-color, rgba(34, 197, 94, .2));box-shadow:var(--un-ring-offset-shadow),var(--un-ring-shadow),var(--un-shadow)}.outline-none{outline:2px solid transparent;outline-offset:2px}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}
 
1
+ *,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:var(--un-default-border-color, #e5e7eb)}:before,:after{--un-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}@tailwind base;@tailwind components;@tailwind utilities;:root{--primary: #10B981;--bg: #ffffff;--text: #374151}.dark{--bg: #1F2937;--text: #F9FAFB}body{background-color:var(--bg);color:var(--text)}html,body,#app{height:100%;margin:0;padding:0}html.dark{background:#121212}.f{flex:1 1 0}*,:before,:after{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 rgb(0 0 0 / 0);--un-ring-shadow:0 0 rgb(0 0 0 / 0);--un-shadow-inset: ;--un-shadow:0 0 rgb(0 0 0 / 0);--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgb(147 197 253 / .5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }::backdrop{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 rgb(0 0 0 / 0);--un-ring-shadow:0 0 rgb(0 0 0 / 0);--un-shadow-inset: ;--un-shadow:0 0 rgb(0 0 0 / 0);--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgb(147 197 253 / .5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }.i-carbon-code,[i-carbon-code=""]{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1.2em' height='1.2em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='m31 16l-7 7l-1.41-1.41L28.17 16l-5.58-5.59L24 9zM1 16l7-7l1.41 1.41L3.83 16l5.58 5.59L8 23zm11.42 9.484L17.64 6l1.932.517L14.352 26z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;width:1.2em;height:1.2em}.i-carbon-text-font,[i-carbon-text-font=""]{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1.2em' height='1.2em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M25 12h-5v2h5a1 1 0 0 1 1 1v2h-4a3.003 3.003 0 0 0-3 3v1a3.003 3.003 0 0 0 3 3h6v-9a3.003 3.003 0 0 0-3-3m-3 10a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h4v3zm-6 2h2L12 7h-2L4 24h2l1.694-5h6.613zm-7.629-7l2.497-7.371h.266L13.63 17z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;width:1.2em;height:1.2em}.absolute{position:absolute}.relative{position:relative}.bottom-2{bottom:.5rem}.left-3{left:.75rem}.right-3{right:.75rem}.top-1\/2{top:50%}.m-1{margin:.25rem}.mb-2{margin-bottom:.5rem}.mb-4{margin-bottom:1rem}.mt-2{margin-top:.5rem}.h-4{height:1rem}.h-5{height:1.25rem}.h-8{height:2rem}.h-full{height:100%}.h-screen{height:100vh}.h1{height:.25rem}.max-h-64{max-height:16rem}.min-h-\[200px\]{min-height:200px}.w-4{width:1rem}.w-5{width:1.25rem}.w-8{width:2rem}.w-full{width:100%}.flex{display:flex}.inline-flex{display:inline-flex}.flex-1{flex:1 1 0%}.flex-none{flex:none}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.-translate-y-1\/2{--un-translate-y:-50%;transform:translate(var(--un-translate-x)) translateY(var(--un-translate-y)) translateZ(var(--un-translate-z)) rotate(var(--un-rotate)) rotateX(var(--un-rotate-x)) rotateY(var(--un-rotate-y)) rotate(var(--un-rotate-z)) skew(var(--un-skew-x)) skewY(var(--un-skew-y)) scaleX(var(--un-scale-x)) scaleY(var(--un-scale-y)) scaleZ(var(--un-scale-z))}.transform{transform:translate(var(--un-translate-x)) translateY(var(--un-translate-y)) translateZ(var(--un-translate-z)) rotate(var(--un-rotate)) rotateX(var(--un-rotate-x)) rotateY(var(--un-rotate-y)) rotate(var(--un-rotate-z)) skew(var(--un-skew-x)) skewY(var(--un-skew-y)) scaleX(var(--un-scale-x)) scaleY(var(--un-scale-y)) scaleZ(var(--un-scale-z))}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.cursor-pointer{cursor:pointer}.resize-none{resize:none}.items-center{align-items:center}.justify-center{justify-content:center}.gap-1{gap:.25rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.overflow-auto{overflow:auto}.overflow-y-scroll{overflow-y:scroll}.border{border-width:1px}.border-2{border-width:2px}.border-b{border-bottom-width:1px}.last\:border-b-0:last-child{border-bottom-width:0px}.border-gray-100{--un-border-opacity:1;border-color:rgb(243 244 246 / var(--un-border-opacity))}.border-gray-200{--un-border-opacity:1;border-color:rgb(229 231 235 / var(--un-border-opacity))}.border-gray-300{--un-border-opacity:1;border-color:rgb(209 213 219 / var(--un-border-opacity))}.dark .dark\:border-gray-700{--un-border-opacity:1;border-color:rgb(55 65 81 / var(--un-border-opacity))}.dark .dark\:border-gray-800{--un-border-opacity:1;border-color:rgb(31 41 55 / var(--un-border-opacity))}.focus\:border-green-500:focus{--un-border-opacity:1;border-color:rgb(34 197 94 / var(--un-border-opacity))}.border-t-green-500{--un-border-opacity:1;--un-border-top-opacity:var(--un-border-opacity);border-top-color:rgb(34 197 94 / var(--un-border-top-opacity))}.rounded{border-radius:.25rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-sm{border-radius:.125rem}.bg-gray-100{--un-bg-opacity:1;background-color:rgb(243 244 246 / var(--un-bg-opacity))}.bg-white{--un-bg-opacity:1;background-color:rgb(255 255 255 / var(--un-bg-opacity))}.dark .dark\:bg-gray-800{--un-bg-opacity:1;background-color:rgb(31 41 55 / var(--un-bg-opacity))}.dark .dark\:bg-gray-900{--un-bg-opacity:1;background-color:rgb(17 24 39 / var(--un-bg-opacity))}.dark .dark\:bg-hex-121212{--un-bg-opacity:1;background-color:rgb(18 18 18 / var(--un-bg-opacity))}.dark .dark\:hover\:bg-gray-800:hover{--un-bg-opacity:1;background-color:rgb(31 41 55 / var(--un-bg-opacity))}.hover\:bg-green-50:hover{--un-bg-opacity:1;background-color:rgb(240 253 244 / var(--un-bg-opacity))}.p-2{padding:.5rem}.p-4{padding:1rem}.p-8{padding:2rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-4{padding-left:1rem;padding-right:1rem}.px-8{padding-left:2rem;padding-right:2rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-8{padding-top:2rem;padding-bottom:2rem}.pb-0{padding-bottom:0}.pb-8{padding-bottom:2rem}.pl-0{padding-left:0}.text-2xl{font-size:1.5rem;line-height:2rem}.text-base{font-size:1rem;line-height:1.5rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xs{font-size:.75rem;line-height:1rem}.dark .dark\:text-gray-200{--un-text-opacity:1;color:rgb(229 231 235 / var(--un-text-opacity))}.dark .dark\:text-gray-400{--un-text-opacity:1;color:rgb(156 163 175 / var(--un-text-opacity))}.dark .dark\:text-white{--un-text-opacity:1;color:rgb(255 255 255 / var(--un-text-opacity))}.text-gray-500{--un-text-opacity:1;color:rgb(107 114 128 / var(--un-text-opacity))}.text-gray-800{--un-text-opacity:1;color:rgb(31 41 55 / var(--un-text-opacity))}.dark .dark\:hover\:text-green-400:hover{--un-text-opacity:1;color:rgb(74 222 128 / var(--un-text-opacity))}.hover\:text-green-700:hover{--un-text-opacity:1;color:rgb(21 128 61 / var(--un-text-opacity))}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-sans{font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji"}.opacity-50{opacity:.5}.shadow-sm{--un-shadow:var(--un-shadow-inset) 0 1px 2px 0 var(--un-shadow-color, rgb(0 0 0 / .05));box-shadow:var(--un-ring-offset-shadow),var(--un-ring-shadow),var(--un-shadow)}.focus\:shadow-\[0_0_0_2px_rgba\(34\,197\,94\,0\.2\)\]:focus{--un-shadow:0 0 0 2px var(--un-shadow-color, rgba(34, 197, 94, .2));box-shadow:var(--un-ring-offset-shadow),var(--un-ring-shadow),var(--un-shadow)}.outline-none{outline:2px solid transparent;outline-offset:2px}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}
assets/{index-SL8uGygA.js β†’ index-DkMrE4RS.js} RENAMED
@@ -1,4 +1,4 @@
1
- var wg=Object.defineProperty;var bg=(R,c,s)=>c in R?wg(R,c,{enumerable:!0,configurable:!0,writable:!0,value:s}):R[c]=s;var _e=(R,c,s)=>bg(R,typeof c!="symbol"?c+"":c,s);import{d as lh,c as or,o as Zs,a as Js,t as Xc,u as Mg,r as $f,B as vn,m as qi,i as Nh,b as Rf,e as Uh,f as Gc,g as vg,s as Ga,h as Ka,j as xg,k as Tg,l as Pg,n as Eg,p as Cg,q as Sg,v as sh,w as rh,F as ih,x as Hh,y as Vh,z as Wh,A as $g,C as kg,D as xn,E as oh,G as Ig,H as Ys,I as jh,J as ah,K as Nf,L as qh,M as jf,N as Ag,O as kf,_ as Uf,P as If}from"./index-oqfyI0Df.js";const Og={class:"m-1 inline-flex flex-col items-center rounded bg-gray-100 p-2 dark:bg-gray-800"},Fg={class:"text-sm"},Dg={class:"text-xs text-gray-500"},Lg=lh({__name:"TokenBlock",props:{token:null,id:null},setup(R){return(c,s)=>(Zs(),or("div",Og,[Js("span",Fg,Xc(R.token),1),Js("span",Dg,Xc(R.id),1)]))}});var zn={},Vf={"./node_modules/onnxruntime-web/dist/ort-wasm-simd-threaded.jsep.wasm":(R,c,s)=>{R.exports=s.p+"ort-wasm-simd-threaded.jsep.wasm"},"./node_modules/onnxruntime-web/dist/ort.bundle.min.mjs?46eb":(R,c,s)=>{R.exports=s.p+"ort.bundle.min.mjs"},"?2ce3":()=>{},"?7a2c":()=>{},"?a42a":()=>{},"?2b25":()=>{},"?569f":()=>{},"?3f59":()=>{},"?154a":()=>{},"./node_modules/@huggingface/jinja/dist/index.js":(R,c,s)=>{s.r(c),s.d(c,{Environment:()=>st,Interpreter:()=>ut,Template:()=>mt,parse:()=>be,tokenize:()=>b});var h=Object.freeze({Text:"Text",NumericLiteral:"NumericLiteral",BooleanLiteral:"BooleanLiteral",NullLiteral:"NullLiteral",StringLiteral:"StringLiteral",Identifier:"Identifier",Equals:"Equals",OpenParen:"OpenParen",CloseParen:"CloseParen",OpenStatement:"OpenStatement",CloseStatement:"CloseStatement",OpenExpression:"OpenExpression",CloseExpression:"CloseExpression",OpenSquareBracket:"OpenSquareBracket",CloseSquareBracket:"CloseSquareBracket",OpenCurlyBracket:"OpenCurlyBracket",CloseCurlyBracket:"CloseCurlyBracket",Comma:"Comma",Dot:"Dot",Colon:"Colon",Pipe:"Pipe",CallOperator:"CallOperator",AdditiveBinaryOperator:"AdditiveBinaryOperator",MultiplicativeBinaryOperator:"MultiplicativeBinaryOperator",ComparisonBinaryOperator:"ComparisonBinaryOperator",UnaryOperator:"UnaryOperator",Set:"Set",If:"If",For:"For",In:"In",Is:"Is",NotIn:"NotIn",Else:"Else",EndIf:"EndIf",ElseIf:"ElseIf",EndFor:"EndFor",And:"And",Or:"Or",Not:"UnaryOperator",Macro:"Macro",EndMacro:"EndMacro"}),T=Object.freeze({set:h.Set,for:h.For,in:h.In,is:h.Is,if:h.If,else:h.Else,endif:h.EndIf,elif:h.ElseIf,endfor:h.EndFor,and:h.And,or:h.Or,not:h.Not,"not in":h.NotIn,macro:h.Macro,endmacro:h.EndMacro,true:h.BooleanLiteral,false:h.BooleanLiteral,none:h.NullLiteral,True:h.BooleanLiteral,False:h.BooleanLiteral,None:h.NullLiteral}),I=class{constructor(B,ae){this.value=B,this.type=ae}};function U(B){return/\w/.test(B)}function F(B){return/[0-9]/.test(B)}var _=[["{%",h.OpenStatement],["%}",h.CloseStatement],["{{",h.OpenExpression],["}}",h.CloseExpression],["(",h.OpenParen],[")",h.CloseParen],["{",h.OpenCurlyBracket],["}",h.CloseCurlyBracket],["[",h.OpenSquareBracket],["]",h.CloseSquareBracket],[",",h.Comma],[".",h.Dot],[":",h.Colon],["|",h.Pipe],["<=",h.ComparisonBinaryOperator],[">=",h.ComparisonBinaryOperator],["==",h.ComparisonBinaryOperator],["!=",h.ComparisonBinaryOperator],["<",h.ComparisonBinaryOperator],[">",h.ComparisonBinaryOperator],["+",h.AdditiveBinaryOperator],["-",h.AdditiveBinaryOperator],["*",h.MultiplicativeBinaryOperator],["/",h.MultiplicativeBinaryOperator],["%",h.MultiplicativeBinaryOperator],["=",h.Equals]],v=new Map([["n",`
2
  `],["t"," "],["r","\r"],["b","\b"],["f","\f"],["v","\v"],["'","'"],['"','"'],["\\","\\"]]);function w(B,ae={}){return B.endsWith(`
3
  `)&&(B=B.slice(0,-1)),B=B.replace(/{#.*?#}/gs,"{##}"),ae.lstrip_blocks&&(B=B.replace(/^[ \t]*({[#%])/gm,"$1")),ae.trim_blocks&&(B=B.replace(/([#%]})\n/g,"$1")),B.replace(/{##}/g,"").replace(/-%}\s*/g,"%}").replace(/\s*{%-/g,"{%").replace(/-}}\s*/g,"}}").replace(/\s*{{-/g,"{{")}function b(B,ae={}){var qe,at,ct;const q=[],me=w(B,ae);let $e=0;const Re=vt=>{let St="";for(;vt(me[$e]);){if(me[$e]==="\\"){if(++$e,$e>=me.length)throw new SyntaxError("Unexpected end of input");const kt=me[$e++],is=v.get(kt);if(is===void 0)throw new SyntaxError(`Unexpected escaped character: ${kt}`);St+=is;continue}if(St+=me[$e++],$e>=me.length)throw new SyntaxError("Unexpected end of input")}return St};e:for(;$e<me.length;){const vt=(qe=q.at(-1))==null?void 0:qe.type;if(vt===void 0||vt===h.CloseStatement||vt===h.CloseExpression){let kt="";for(;$e<me.length&&!(me[$e]==="{"&&(me[$e+1]==="%"||me[$e+1]==="{"));)kt+=me[$e++];if(kt.length>0){q.push(new I(kt,h.Text));continue}}Re(kt=>/\s/.test(kt));const St=me[$e];if(St==="-"||St==="+"){const kt=(at=q.at(-1))==null?void 0:at.type;if(kt===h.Text||kt===void 0)throw new SyntaxError(`Unexpected character: ${St}`);switch(kt){case h.Identifier:case h.NumericLiteral:case h.BooleanLiteral:case h.NullLiteral:case h.StringLiteral:case h.CloseParen:case h.CloseSquareBracket:break;default:{++$e;const is=Re(F);q.push(new I(`${St}${is}`,is.length>0?h.NumericLiteral:h.UnaryOperator));continue}}}for(const[kt,is]of _)if(me.slice($e,$e+kt.length)===kt){q.push(new I(kt,is)),$e+=kt.length;continue e}if(St==="'"||St==='"'){++$e;const kt=Re(is=>is!==St);q.push(new I(kt,h.StringLiteral)),++$e;continue}if(F(St)){const kt=Re(F);q.push(new I(kt,h.NumericLiteral));continue}if(U(St)){const kt=Re(U),is=Object.hasOwn(T,kt)?T[kt]:h.Identifier;is===h.In&&((ct=q.at(-1))==null?void 0:ct.type)===h.Not?(q.pop(),q.push(new I("not in",h.NotIn))):q.push(new I(kt,is));continue}throw new SyntaxError(`Unexpected character: ${St}`)}return q}var x=class{constructor(){_e(this,"type","Statement")}},O=class extends x{constructor(ae){super();_e(this,"type","Program");this.body=ae}},H=class extends x{constructor(ae,q,me){super();_e(this,"type","If");this.test=ae,this.body=q,this.alternate=me}},re=class extends x{constructor(ae,q,me,$e){super();_e(this,"type","For");this.loopvar=ae,this.iterable=q,this.body=me,this.defaultBlock=$e}},ne=class extends x{constructor(ae,q){super();_e(this,"type","Set");this.assignee=ae,this.value=q}},G=class extends x{constructor(ae,q,me){super();_e(this,"type","Macro");this.name=ae,this.args=q,this.body=me}},W=class extends x{constructor(){super(...arguments);_e(this,"type","Expression")}},X=class extends W{constructor(ae,q,me){super();_e(this,"type","MemberExpression");this.object=ae,this.property=q,this.computed=me}},D=class extends W{constructor(ae,q){super();_e(this,"type","CallExpression");this.callee=ae,this.args=q}},A=class extends W{constructor(ae){super();_e(this,"type","Identifier");this.value=ae}},M=class extends W{constructor(ae){super();_e(this,"type","Literal");this.value=ae}},P=class extends M{constructor(){super(...arguments);_e(this,"type","NumericLiteral")}},L=class extends M{constructor(){super(...arguments);_e(this,"type","StringLiteral")}},le=class extends M{constructor(){super(...arguments);_e(this,"type","BooleanLiteral")}},oe=class extends M{constructor(){super(...arguments);_e(this,"type","NullLiteral")}},Te=class extends M{constructor(){super(...arguments);_e(this,"type","ArrayLiteral")}},we=class extends M{constructor(){super(...arguments);_e(this,"type","TupleLiteral")}},ie=class extends M{constructor(){super(...arguments);_e(this,"type","ObjectLiteral")}},Pe=class extends W{constructor(ae,q,me){super();_e(this,"type","BinaryExpression");this.operator=ae,this.left=q,this.right=me}},pe=class extends W{constructor(ae,q){super();_e(this,"type","FilterExpression");this.operand=ae,this.filter=q}},ke=class extends W{constructor(ae,q){super();_e(this,"type","SelectExpression");this.iterable=ae,this.test=q}},Oe=class extends W{constructor(ae,q,me){super();_e(this,"type","TestExpression");this.operand=ae,this.negate=q,this.test=me}},Ce=class extends W{constructor(ae,q){super();_e(this,"type","UnaryExpression");this.operator=ae,this.argument=q}},tt=class extends W{constructor(ae=void 0,q=void 0,me=void 0){super();_e(this,"type","SliceExpression");this.start=ae,this.stop=q,this.step=me}},Ge=class extends W{constructor(ae,q){super();_e(this,"type","KeywordArgumentExpression");this.key=ae,this.value=q}};function be(B){const ae=new O([]);let q=0;function me(it,xt){const Ft=B[q++];if(!Ft||Ft.type!==it)throw new Error(`Parser Error: ${xt}. ${Ft.type} !== ${it}.`);return Ft}function $e(){switch(B[q].type){case h.Text:return at();case h.OpenStatement:return ct();case h.OpenExpression:return vt();default:throw new SyntaxError(`Unexpected token type: ${B[q].type}`)}}function Re(...it){return q+it.length<=B.length&&it.some((xt,Ft)=>xt!==B[q+Ft].type)}function qe(...it){return q+it.length<=B.length&&it.every((xt,Ft)=>xt===B[q+Ft].type)}function at(){return new L(me(h.Text,"Expected text token").value)}function ct(){me(h.OpenStatement,"Expected opening statement token");let it;switch(B[q].type){case h.Set:++q,it=St(),me(h.CloseStatement,"Expected closing statement token");break;case h.If:++q,it=kt(),me(h.OpenStatement,"Expected {% token"),me(h.EndIf,"Expected endif token"),me(h.CloseStatement,"Expected %} token");break;case h.Macro:++q,it=is(),me(h.OpenStatement,"Expected {% token"),me(h.EndMacro,"Expected endmacro token"),me(h.CloseStatement,"Expected %} token");break;case h.For:++q,it=$s(),me(h.OpenStatement,"Expected {% token"),me(h.EndFor,"Expected endfor token"),me(h.CloseStatement,"Expected %} token");break;default:throw new SyntaxError(`Unknown statement type: ${B[q].type}`)}return it}function vt(){me(h.OpenExpression,"Expected opening expression token");const it=zs();return me(h.CloseExpression,"Expected closing expression token"),it}function St(){const it=zs();if(qe(h.Equals)){++q;const xt=St();return new ne(it,xt)}return it}function kt(){var Ws,Kr,Lr,vs,pr,Fs,Sr,ss;const it=zs();me(h.CloseStatement,"Expected closing statement token");const xt=[],Ft=[];for(;!(((Ws=B[q])==null?void 0:Ws.type)===h.OpenStatement&&(((Kr=B[q+1])==null?void 0:Kr.type)===h.ElseIf||((Lr=B[q+1])==null?void 0:Lr.type)===h.Else||((vs=B[q+1])==null?void 0:vs.type)===h.EndIf));)xt.push($e());if(((pr=B[q])==null?void 0:pr.type)===h.OpenStatement&&((Fs=B[q+1])==null?void 0:Fs.type)!==h.EndIf)if(++q,qe(h.ElseIf))me(h.ElseIf,"Expected elseif token"),Ft.push(kt());else for(me(h.Else,"Expected else token"),me(h.CloseStatement,"Expected closing statement token");!(((Sr=B[q])==null?void 0:Sr.type)===h.OpenStatement&&((ss=B[q+1])==null?void 0:ss.type)===h.EndIf);)Ft.push($e());return new H(it,xt,Ft)}function is(){const it=cr();if(it.type!=="Identifier")throw new SyntaxError("Expected identifier following macro statement");const xt=Fr();me(h.CloseStatement,"Expected closing statement token");const Ft=[];for(;Re(h.OpenStatement,h.EndMacro);)Ft.push($e());return new G(it,xt,Ft)}function Ms(it=!1){const xt=it?cr:zs,Ft=[xt()],Ws=qe(h.Comma);for(;Ws&&(++q,Ft.push(xt()),!!qe(h.Comma)););return Ws?new we(Ft):Ft[0]}function $s(){const it=Ms(!0);if(!(it instanceof A||it instanceof we))throw new SyntaxError(`Expected identifier/tuple for the loop variable, got ${it.type} instead`);me(h.In,"Expected `in` keyword following loop variable");const xt=zs();me(h.CloseStatement,"Expected closing statement token");const Ft=[];for(;Re(h.OpenStatement,h.EndFor)&&Re(h.OpenStatement,h.Else);)Ft.push($e());const Ws=[];if(qe(h.OpenStatement,h.Else))for(++q,++q,me(h.CloseStatement,"Expected closing statement token");Re(h.OpenStatement,h.EndFor);)Ws.push($e());return new re(it,xt,Ft,Ws)}function zs(){return ar()}function ar(){const it=Ar();if(qe(h.If)){++q;const xt=Ar();if(qe(h.Else)){++q;const Ft=Ar();return new H(xt,[it],[Ft])}else return new ke(it,xt)}return it}function Ar(){let it=sn();for(;qe(h.Or);){const xt=B[q];++q;const Ft=sn();it=new Pe(xt,it,Ft)}return it}function sn(){let it=Vs();for(;qe(h.And);){const xt=B[q];++q;const Ft=Vs();it=new Pe(xt,it,Ft)}return it}function Vs(){let it;for(;qe(h.Not);){const xt=B[q];++q;const Ft=Vs();it=new Ce(xt,Ft)}return it??Cr()}function Cr(){let it=Nt();for(;qe(h.ComparisonBinaryOperator)||qe(h.In)||qe(h.NotIn);){const xt=B[q];++q;const Ft=Nt();it=new Pe(xt,it,Ft)}return it}function Nt(){let it=Dr();for(;qe(h.AdditiveBinaryOperator);){const xt=B[q];++q;const Ft=Dr();it=new Pe(xt,it,Ft)}return it}function rn(){const it=Vr(cr());return qe(h.OpenParen)?Or(it):it}function Or(it){let xt=new D(it,Fr());return xt=Vr(xt),qe(h.OpenParen)&&(xt=Or(xt)),xt}function Fr(){me(h.OpenParen,"Expected opening parenthesis for arguments list");const it=nn();return me(h.CloseParen,"Expected closing parenthesis for arguments list"),it}function nn(){const it=[];for(;!qe(h.CloseParen);){let xt=zs();if(qe(h.Equals)){if(++q,!(xt instanceof A))throw new SyntaxError("Expected identifier for keyword argument");const Ft=zs();xt=new Ge(xt,Ft)}it.push(xt),qe(h.Comma)&&++q}return it}function fr(){const it=[];let xt=!1;for(;!qe(h.CloseSquareBracket);)qe(h.Colon)?(it.push(void 0),++q,xt=!0):(it.push(zs()),qe(h.Colon)&&(++q,xt=!0));if(it.length===0)throw new SyntaxError("Expected at least one argument for member/slice expression");if(xt){if(it.length>3)throw new SyntaxError("Expected 0-3 arguments for slice expression");return new tt(...it)}return it[0]}function Vr(it){for(;qe(h.Dot)||qe(h.OpenSquareBracket);){const xt=B[q];++q;let Ft;const Ws=xt.type!==h.Dot;if(Ws)Ft=fr(),me(h.CloseSquareBracket,"Expected closing square bracket");else if(Ft=cr(),Ft.type!=="Identifier")throw new SyntaxError("Expected identifier following dot operator");it=new X(it,Ft,Ws)}return it}function Dr(){let it=Wr();for(;qe(h.MultiplicativeBinaryOperator);){const xt=B[q];++q;const Ft=Wr();it=new Pe(xt,it,Ft)}return it}function Wr(){let it=Gr();for(;qe(h.Is);){++q;const xt=qe(h.Not);xt&&++q;let Ft=cr();if(Ft instanceof le?Ft=new A(Ft.value.toString()):Ft instanceof oe&&(Ft=new A("none")),!(Ft instanceof A))throw new SyntaxError("Expected identifier for the test");it=new Oe(it,xt,Ft)}return it}function Gr(){let it=rn();for(;qe(h.Pipe);){++q;let xt=cr();if(!(xt instanceof A))throw new SyntaxError("Expected identifier for the filter");qe(h.OpenParen)&&(xt=Or(xt)),it=new pe(it,xt)}return it}function cr(){const it=B[q];switch(it.type){case h.NumericLiteral:return++q,new P(Number(it.value));case h.StringLiteral:return++q,new L(it.value);case h.BooleanLiteral:return++q,new le(it.value.toLowerCase()==="true");case h.NullLiteral:return++q,new oe(null);case h.Identifier:return++q,new A(it.value);case h.OpenParen:{++q;const xt=Ms();if(B[q].type!==h.CloseParen)throw new SyntaxError(`Expected closing parenthesis, got ${B[q].type} instead`);return++q,xt}case h.OpenSquareBracket:{++q;const xt=[];for(;!qe(h.CloseSquareBracket);)xt.push(zs()),qe(h.Comma)&&++q;return++q,new Te(xt)}case h.OpenCurlyBracket:{++q;const xt=new Map;for(;!qe(h.CloseCurlyBracket);){const Ft=zs();me(h.Colon,"Expected colon between key and value in object literal");const Ws=zs();xt.set(Ft,Ws),qe(h.Comma)&&++q}return++q,new ie(xt)}default:throw new SyntaxError(`Unexpected token: ${it.type}`)}}for(;q<B.length;)ae.body.push($e());return ae}function Z(B,ae,q=1){ae===void 0&&(ae=B,B=0);const me=[];for(let $e=B;$e<ae;$e+=q)me.push($e);return me}function ce(B,ae,q,me=1){const $e=Math.sign(me);$e>=0?(ae=(ae??(ae=0))<0?Math.max(B.length+ae,0):Math.min(ae,B.length),q=(q??(q=B.length))<0?Math.max(B.length+q,0):Math.min(q,B.length)):(ae=(ae??(ae=B.length-1))<0?Math.max(B.length+ae,-1):Math.min(ae,B.length-1),q=(q??(q=-1))<-1?Math.max(B.length+q,-1):Math.min(q,B.length-1));const Re=[];for(let qe=ae;$e*qe<$e*q;qe+=me)Re.push(B[qe]);return Re}function Se(B){return B.replace(/\b\w/g,ae=>ae.toUpperCase())}var Be=class{constructor(B=void 0){_e(this,"type","RuntimeValue");_e(this,"value");_e(this,"builtins",new Map);this.value=B}__bool__(){return new Ke(!!this.value)}},Je=class extends Be{constructor(){super(...arguments);_e(this,"type","NumericValue")}},se=class extends Be{constructor(){super(...arguments);_e(this,"type","StringValue");_e(this,"builtins",new Map([["upper",new We(()=>new se(this.value.toUpperCase()))],["lower",new We(()=>new se(this.value.toLowerCase()))],["strip",new We(()=>new se(this.value.trim()))],["title",new We(()=>new se(Se(this.value)))],["length",new Je(this.value.length)],["rstrip",new We(()=>new se(this.value.trimEnd()))],["lstrip",new We(()=>new se(this.value.trimStart()))],["split",new We(ae=>{const q=ae[0]??new Ne;if(!(q instanceof se||q instanceof Ne))throw new Error("sep argument must be a string or null");const me=ae[1]??new Je(-1);if(!(me instanceof Je))throw new Error("maxsplit argument must be a number");let $e=[];if(q instanceof Ne){const Re=this.value.trimStart();for(const{0:qe,index:at}of Re.matchAll(/\S+/g)){if(me.value!==-1&&$e.length>=me.value&&at!==void 0){$e.push(qe+Re.slice(at+qe.length));break}$e.push(qe)}}else{if(q.value==="")throw new Error("empty separator");$e=this.value.split(q.value),me.value!==-1&&$e.length>me.value&&$e.push($e.splice(me.value).join(q.value))}return new ve($e.map(Re=>new se(Re)))})]]))}},Ke=class extends Be{constructor(){super(...arguments);_e(this,"type","BooleanValue")}},Ue=class extends Be{constructor(){super(...arguments);_e(this,"type","ObjectValue");_e(this,"builtins",new Map([["get",new We(([ae,q])=>{if(!(ae instanceof se))throw new Error(`Object key must be a string: got ${ae.type}`);return this.value.get(ae.value)??q??new Ne})],["items",new We(()=>new ve(Array.from(this.value.entries()).map(([ae,q])=>new ve([new se(ae),q]))))]]))}__bool__(){return new Ke(this.value.size>0)}},ue=class extends Ue{constructor(){super(...arguments);_e(this,"type","KeywordArgumentsValue")}},ve=class extends Be{constructor(){super(...arguments);_e(this,"type","ArrayValue");_e(this,"builtins",new Map([["length",new Je(this.value.length)]]))}__bool__(){return new Ke(this.value.length>0)}},Ve=class extends ve{constructor(){super(...arguments);_e(this,"type","TupleValue")}},We=class extends Be{constructor(){super(...arguments);_e(this,"type","FunctionValue")}},Ne=class extends Be{constructor(){super(...arguments);_e(this,"type","NullValue")}},je=class extends Be{constructor(){super(...arguments);_e(this,"type","UndefinedValue")}},st=class{constructor(B){_e(this,"variables",new Map([["namespace",new We(B=>{if(B.length===0)return new Ue(new Map);if(B.length!==1||!(B[0]instanceof Ue))throw new Error("`namespace` expects either zero arguments or a single object argument");return B[0]})]]));_e(this,"tests",new Map([["boolean",B=>B.type==="BooleanValue"],["callable",B=>B instanceof We],["odd",B=>{if(B.type!=="NumericValue")throw new Error(`Cannot apply test "odd" to type: ${B.type}`);return B.value%2!==0}],["even",B=>{if(B.type!=="NumericValue")throw new Error(`Cannot apply test "even" to type: ${B.type}`);return B.value%2===0}],["false",B=>B.type==="BooleanValue"&&!B.value],["true",B=>B.type==="BooleanValue"&&B.value],["none",B=>B.type==="NullValue"],["string",B=>B.type==="StringValue"],["number",B=>B.type==="NumericValue"],["integer",B=>B.type==="NumericValue"&&Number.isInteger(B.value)],["iterable",B=>B.type==="ArrayValue"||B.type==="StringValue"],["mapping",B=>B.type==="ObjectValue"],["lower",B=>{const ae=B.value;return B.type==="StringValue"&&ae===ae.toLowerCase()}],["upper",B=>{const ae=B.value;return B.type==="StringValue"&&ae===ae.toUpperCase()}],["none",B=>B.type==="NullValue"],["defined",B=>B.type!=="UndefinedValue"],["undefined",B=>B.type==="UndefinedValue"],["equalto",(B,ae)=>B.value===ae.value],["eq",(B,ae)=>B.value===ae.value]]));this.parent=B}set(B,ae){return this.declareVariable(B,pt(ae))}declareVariable(B,ae){if(this.variables.has(B))throw new SyntaxError(`Variable already declared: ${B}`);return this.variables.set(B,ae),ae}setVariable(B,ae){return this.variables.set(B,ae),ae}resolve(B){if(this.variables.has(B))return this;if(this.parent)return this.parent.resolve(B);throw new Error(`Unknown variable: ${B}`)}lookupVariable(B){try{return this.resolve(B).variables.get(B)??new je}catch{return new je}}},ut=class{constructor(B){_e(this,"global");this.global=B??new st}run(B){return this.evaluate(B,this.global)}evaluateBinaryExpression(B,ae){const q=this.evaluate(B.left,ae);switch(B.operator.value){case"and":return q.__bool__().value?this.evaluate(B.right,ae):q;case"or":return q.__bool__().value?q:this.evaluate(B.right,ae)}const me=this.evaluate(B.right,ae);switch(B.operator.value){case"==":return new Ke(q.value==me.value);case"!=":return new Ke(q.value!=me.value)}if(q instanceof je||me instanceof je)throw new Error("Cannot perform operation on undefined values");if(q instanceof Ne||me instanceof Ne)throw new Error("Cannot perform operation on null values");if(q instanceof Je&&me instanceof Je)switch(B.operator.value){case"+":return new Je(q.value+me.value);case"-":return new Je(q.value-me.value);case"*":return new Je(q.value*me.value);case"/":return new Je(q.value/me.value);case"%":return new Je(q.value%me.value);case"<":return new Ke(q.value<me.value);case">":return new Ke(q.value>me.value);case">=":return new Ke(q.value>=me.value);case"<=":return new Ke(q.value<=me.value)}else if(q instanceof ve&&me instanceof ve)switch(B.operator.value){case"+":return new ve(q.value.concat(me.value))}else if(me instanceof ve){const $e=me.value.find(Re=>Re.value===q.value)!==void 0;switch(B.operator.value){case"in":return new Ke($e);case"not in":return new Ke(!$e)}}if(q instanceof se||me instanceof se)switch(B.operator.value){case"+":return new se(q.value.toString()+me.value.toString())}if(q instanceof se&&me instanceof se)switch(B.operator.value){case"in":return new Ke(me.value.includes(q.value));case"not in":return new Ke(!me.value.includes(q.value))}if(q instanceof se&&me instanceof Ue)switch(B.operator.value){case"in":return new Ke(me.value.has(q.value));case"not in":return new Ke(!me.value.has(q.value))}throw new SyntaxError(`Unknown operator "${B.operator.value}" between ${q.type} and ${me.type}`)}evaluateArguments(B,ae){const q=[],me=new Map;for(const $e of B)if($e.type==="KeywordArgumentExpression"){const Re=$e;me.set(Re.key.value,this.evaluate(Re.value,ae))}else{if(me.size>0)throw new Error("Positional arguments must come before keyword arguments");q.push(this.evaluate($e,ae))}return[q,me]}evaluateFilterExpression(B,ae){const q=this.evaluate(B.operand,ae);if(B.filter.type==="Identifier"){const me=B.filter;if(me.value==="tojson")return new se(lt(q));if(q instanceof ve)switch(me.value){case"list":return q;case"first":return q.value[0];case"last":return q.value[q.value.length-1];case"length":return new Je(q.value.length);case"reverse":return new ve(q.value.reverse());case"sort":return new ve(q.value.sort(($e,Re)=>{if($e.type!==Re.type)throw new Error(`Cannot compare different types: ${$e.type} and ${Re.type}`);switch($e.type){case"NumericValue":return $e.value-Re.value;case"StringValue":return $e.value.localeCompare(Re.value);default:throw new Error(`Cannot compare type: ${$e.type}`)}}));case"join":return new se(q.value.map($e=>$e.value).join(""));default:throw new Error(`Unknown ArrayValue filter: ${me.value}`)}else if(q instanceof se)switch(me.value){case"length":return new Je(q.value.length);case"upper":return new se(q.value.toUpperCase());case"lower":return new se(q.value.toLowerCase());case"title":return new se(Se(q.value));case"capitalize":return new se(q.value.charAt(0).toUpperCase()+q.value.slice(1));case"trim":return new se(q.value.trim());case"indent":return new se(q.value.split(`
4
  `).map(($e,Re)=>Re===0||$e.length===0?$e:" "+$e).join(`
 
1
+ var wg=Object.defineProperty;var bg=(R,c,s)=>c in R?wg(R,c,{enumerable:!0,configurable:!0,writable:!0,value:s}):R[c]=s;var _e=(R,c,s)=>bg(R,typeof c!="symbol"?c+"":c,s);import{d as lh,c as or,o as Zs,a as Js,t as Xc,u as Mg,r as $f,B as vn,m as qi,i as Nh,b as Rf,e as Uh,f as Gc,g as vg,s as Ga,h as Ka,j as xg,k as Tg,l as Pg,n as Eg,p as Cg,q as Sg,v as sh,w as rh,F as ih,x as Hh,y as Vh,z as Wh,A as $g,C as kg,D as xn,E as oh,G as Ig,H as Ys,I as jh,J as ah,K as Nf,L as qh,M as jf,N as Ag,O as kf,_ as Uf,P as If}from"./index-CpnR-XtZ.js";const Og={class:"m-1 inline-flex flex-col items-center rounded bg-gray-100 p-2 dark:bg-gray-800"},Fg={class:"text-sm"},Dg={class:"text-xs text-gray-500"},Lg=lh({__name:"TokenBlock",props:{token:null,id:null},setup(R){return(c,s)=>(Zs(),or("div",Og,[Js("span",Fg,Xc(R.token),1),Js("span",Dg,Xc(R.id),1)]))}});var zn={},Vf={"./node_modules/onnxruntime-web/dist/ort-wasm-simd-threaded.jsep.wasm":(R,c,s)=>{R.exports=s.p+"ort-wasm-simd-threaded.jsep.wasm"},"./node_modules/onnxruntime-web/dist/ort.bundle.min.mjs?46eb":(R,c,s)=>{R.exports=s.p+"ort.bundle.min.mjs"},"?2ce3":()=>{},"?7a2c":()=>{},"?a42a":()=>{},"?2b25":()=>{},"?569f":()=>{},"?3f59":()=>{},"?154a":()=>{},"./node_modules/@huggingface/jinja/dist/index.js":(R,c,s)=>{s.r(c),s.d(c,{Environment:()=>st,Interpreter:()=>ut,Template:()=>mt,parse:()=>be,tokenize:()=>b});var h=Object.freeze({Text:"Text",NumericLiteral:"NumericLiteral",BooleanLiteral:"BooleanLiteral",NullLiteral:"NullLiteral",StringLiteral:"StringLiteral",Identifier:"Identifier",Equals:"Equals",OpenParen:"OpenParen",CloseParen:"CloseParen",OpenStatement:"OpenStatement",CloseStatement:"CloseStatement",OpenExpression:"OpenExpression",CloseExpression:"CloseExpression",OpenSquareBracket:"OpenSquareBracket",CloseSquareBracket:"CloseSquareBracket",OpenCurlyBracket:"OpenCurlyBracket",CloseCurlyBracket:"CloseCurlyBracket",Comma:"Comma",Dot:"Dot",Colon:"Colon",Pipe:"Pipe",CallOperator:"CallOperator",AdditiveBinaryOperator:"AdditiveBinaryOperator",MultiplicativeBinaryOperator:"MultiplicativeBinaryOperator",ComparisonBinaryOperator:"ComparisonBinaryOperator",UnaryOperator:"UnaryOperator",Set:"Set",If:"If",For:"For",In:"In",Is:"Is",NotIn:"NotIn",Else:"Else",EndIf:"EndIf",ElseIf:"ElseIf",EndFor:"EndFor",And:"And",Or:"Or",Not:"UnaryOperator",Macro:"Macro",EndMacro:"EndMacro"}),T=Object.freeze({set:h.Set,for:h.For,in:h.In,is:h.Is,if:h.If,else:h.Else,endif:h.EndIf,elif:h.ElseIf,endfor:h.EndFor,and:h.And,or:h.Or,not:h.Not,"not in":h.NotIn,macro:h.Macro,endmacro:h.EndMacro,true:h.BooleanLiteral,false:h.BooleanLiteral,none:h.NullLiteral,True:h.BooleanLiteral,False:h.BooleanLiteral,None:h.NullLiteral}),I=class{constructor(B,ae){this.value=B,this.type=ae}};function U(B){return/\w/.test(B)}function F(B){return/[0-9]/.test(B)}var _=[["{%",h.OpenStatement],["%}",h.CloseStatement],["{{",h.OpenExpression],["}}",h.CloseExpression],["(",h.OpenParen],[")",h.CloseParen],["{",h.OpenCurlyBracket],["}",h.CloseCurlyBracket],["[",h.OpenSquareBracket],["]",h.CloseSquareBracket],[",",h.Comma],[".",h.Dot],[":",h.Colon],["|",h.Pipe],["<=",h.ComparisonBinaryOperator],[">=",h.ComparisonBinaryOperator],["==",h.ComparisonBinaryOperator],["!=",h.ComparisonBinaryOperator],["<",h.ComparisonBinaryOperator],[">",h.ComparisonBinaryOperator],["+",h.AdditiveBinaryOperator],["-",h.AdditiveBinaryOperator],["*",h.MultiplicativeBinaryOperator],["/",h.MultiplicativeBinaryOperator],["%",h.MultiplicativeBinaryOperator],["=",h.Equals]],v=new Map([["n",`
2
  `],["t"," "],["r","\r"],["b","\b"],["f","\f"],["v","\v"],["'","'"],['"','"'],["\\","\\"]]);function w(B,ae={}){return B.endsWith(`
3
  `)&&(B=B.slice(0,-1)),B=B.replace(/{#.*?#}/gs,"{##}"),ae.lstrip_blocks&&(B=B.replace(/^[ \t]*({[#%])/gm,"$1")),ae.trim_blocks&&(B=B.replace(/([#%]})\n/g,"$1")),B.replace(/{##}/g,"").replace(/-%}\s*/g,"%}").replace(/\s*{%-/g,"{%").replace(/-}}\s*/g,"}}").replace(/\s*{{-/g,"{{")}function b(B,ae={}){var qe,at,ct;const q=[],me=w(B,ae);let $e=0;const Re=vt=>{let St="";for(;vt(me[$e]);){if(me[$e]==="\\"){if(++$e,$e>=me.length)throw new SyntaxError("Unexpected end of input");const kt=me[$e++],is=v.get(kt);if(is===void 0)throw new SyntaxError(`Unexpected escaped character: ${kt}`);St+=is;continue}if(St+=me[$e++],$e>=me.length)throw new SyntaxError("Unexpected end of input")}return St};e:for(;$e<me.length;){const vt=(qe=q.at(-1))==null?void 0:qe.type;if(vt===void 0||vt===h.CloseStatement||vt===h.CloseExpression){let kt="";for(;$e<me.length&&!(me[$e]==="{"&&(me[$e+1]==="%"||me[$e+1]==="{"));)kt+=me[$e++];if(kt.length>0){q.push(new I(kt,h.Text));continue}}Re(kt=>/\s/.test(kt));const St=me[$e];if(St==="-"||St==="+"){const kt=(at=q.at(-1))==null?void 0:at.type;if(kt===h.Text||kt===void 0)throw new SyntaxError(`Unexpected character: ${St}`);switch(kt){case h.Identifier:case h.NumericLiteral:case h.BooleanLiteral:case h.NullLiteral:case h.StringLiteral:case h.CloseParen:case h.CloseSquareBracket:break;default:{++$e;const is=Re(F);q.push(new I(`${St}${is}`,is.length>0?h.NumericLiteral:h.UnaryOperator));continue}}}for(const[kt,is]of _)if(me.slice($e,$e+kt.length)===kt){q.push(new I(kt,is)),$e+=kt.length;continue e}if(St==="'"||St==='"'){++$e;const kt=Re(is=>is!==St);q.push(new I(kt,h.StringLiteral)),++$e;continue}if(F(St)){const kt=Re(F);q.push(new I(kt,h.NumericLiteral));continue}if(U(St)){const kt=Re(U),is=Object.hasOwn(T,kt)?T[kt]:h.Identifier;is===h.In&&((ct=q.at(-1))==null?void 0:ct.type)===h.Not?(q.pop(),q.push(new I("not in",h.NotIn))):q.push(new I(kt,is));continue}throw new SyntaxError(`Unexpected character: ${St}`)}return q}var x=class{constructor(){_e(this,"type","Statement")}},O=class extends x{constructor(ae){super();_e(this,"type","Program");this.body=ae}},H=class extends x{constructor(ae,q,me){super();_e(this,"type","If");this.test=ae,this.body=q,this.alternate=me}},re=class extends x{constructor(ae,q,me,$e){super();_e(this,"type","For");this.loopvar=ae,this.iterable=q,this.body=me,this.defaultBlock=$e}},ne=class extends x{constructor(ae,q){super();_e(this,"type","Set");this.assignee=ae,this.value=q}},G=class extends x{constructor(ae,q,me){super();_e(this,"type","Macro");this.name=ae,this.args=q,this.body=me}},W=class extends x{constructor(){super(...arguments);_e(this,"type","Expression")}},X=class extends W{constructor(ae,q,me){super();_e(this,"type","MemberExpression");this.object=ae,this.property=q,this.computed=me}},D=class extends W{constructor(ae,q){super();_e(this,"type","CallExpression");this.callee=ae,this.args=q}},A=class extends W{constructor(ae){super();_e(this,"type","Identifier");this.value=ae}},M=class extends W{constructor(ae){super();_e(this,"type","Literal");this.value=ae}},P=class extends M{constructor(){super(...arguments);_e(this,"type","NumericLiteral")}},L=class extends M{constructor(){super(...arguments);_e(this,"type","StringLiteral")}},le=class extends M{constructor(){super(...arguments);_e(this,"type","BooleanLiteral")}},oe=class extends M{constructor(){super(...arguments);_e(this,"type","NullLiteral")}},Te=class extends M{constructor(){super(...arguments);_e(this,"type","ArrayLiteral")}},we=class extends M{constructor(){super(...arguments);_e(this,"type","TupleLiteral")}},ie=class extends M{constructor(){super(...arguments);_e(this,"type","ObjectLiteral")}},Pe=class extends W{constructor(ae,q,me){super();_e(this,"type","BinaryExpression");this.operator=ae,this.left=q,this.right=me}},pe=class extends W{constructor(ae,q){super();_e(this,"type","FilterExpression");this.operand=ae,this.filter=q}},ke=class extends W{constructor(ae,q){super();_e(this,"type","SelectExpression");this.iterable=ae,this.test=q}},Oe=class extends W{constructor(ae,q,me){super();_e(this,"type","TestExpression");this.operand=ae,this.negate=q,this.test=me}},Ce=class extends W{constructor(ae,q){super();_e(this,"type","UnaryExpression");this.operator=ae,this.argument=q}},tt=class extends W{constructor(ae=void 0,q=void 0,me=void 0){super();_e(this,"type","SliceExpression");this.start=ae,this.stop=q,this.step=me}},Ge=class extends W{constructor(ae,q){super();_e(this,"type","KeywordArgumentExpression");this.key=ae,this.value=q}};function be(B){const ae=new O([]);let q=0;function me(it,xt){const Ft=B[q++];if(!Ft||Ft.type!==it)throw new Error(`Parser Error: ${xt}. ${Ft.type} !== ${it}.`);return Ft}function $e(){switch(B[q].type){case h.Text:return at();case h.OpenStatement:return ct();case h.OpenExpression:return vt();default:throw new SyntaxError(`Unexpected token type: ${B[q].type}`)}}function Re(...it){return q+it.length<=B.length&&it.some((xt,Ft)=>xt!==B[q+Ft].type)}function qe(...it){return q+it.length<=B.length&&it.every((xt,Ft)=>xt===B[q+Ft].type)}function at(){return new L(me(h.Text,"Expected text token").value)}function ct(){me(h.OpenStatement,"Expected opening statement token");let it;switch(B[q].type){case h.Set:++q,it=St(),me(h.CloseStatement,"Expected closing statement token");break;case h.If:++q,it=kt(),me(h.OpenStatement,"Expected {% token"),me(h.EndIf,"Expected endif token"),me(h.CloseStatement,"Expected %} token");break;case h.Macro:++q,it=is(),me(h.OpenStatement,"Expected {% token"),me(h.EndMacro,"Expected endmacro token"),me(h.CloseStatement,"Expected %} token");break;case h.For:++q,it=$s(),me(h.OpenStatement,"Expected {% token"),me(h.EndFor,"Expected endfor token"),me(h.CloseStatement,"Expected %} token");break;default:throw new SyntaxError(`Unknown statement type: ${B[q].type}`)}return it}function vt(){me(h.OpenExpression,"Expected opening expression token");const it=zs();return me(h.CloseExpression,"Expected closing expression token"),it}function St(){const it=zs();if(qe(h.Equals)){++q;const xt=St();return new ne(it,xt)}return it}function kt(){var Ws,Kr,Lr,vs,pr,Fs,Sr,ss;const it=zs();me(h.CloseStatement,"Expected closing statement token");const xt=[],Ft=[];for(;!(((Ws=B[q])==null?void 0:Ws.type)===h.OpenStatement&&(((Kr=B[q+1])==null?void 0:Kr.type)===h.ElseIf||((Lr=B[q+1])==null?void 0:Lr.type)===h.Else||((vs=B[q+1])==null?void 0:vs.type)===h.EndIf));)xt.push($e());if(((pr=B[q])==null?void 0:pr.type)===h.OpenStatement&&((Fs=B[q+1])==null?void 0:Fs.type)!==h.EndIf)if(++q,qe(h.ElseIf))me(h.ElseIf,"Expected elseif token"),Ft.push(kt());else for(me(h.Else,"Expected else token"),me(h.CloseStatement,"Expected closing statement token");!(((Sr=B[q])==null?void 0:Sr.type)===h.OpenStatement&&((ss=B[q+1])==null?void 0:ss.type)===h.EndIf);)Ft.push($e());return new H(it,xt,Ft)}function is(){const it=cr();if(it.type!=="Identifier")throw new SyntaxError("Expected identifier following macro statement");const xt=Fr();me(h.CloseStatement,"Expected closing statement token");const Ft=[];for(;Re(h.OpenStatement,h.EndMacro);)Ft.push($e());return new G(it,xt,Ft)}function Ms(it=!1){const xt=it?cr:zs,Ft=[xt()],Ws=qe(h.Comma);for(;Ws&&(++q,Ft.push(xt()),!!qe(h.Comma)););return Ws?new we(Ft):Ft[0]}function $s(){const it=Ms(!0);if(!(it instanceof A||it instanceof we))throw new SyntaxError(`Expected identifier/tuple for the loop variable, got ${it.type} instead`);me(h.In,"Expected `in` keyword following loop variable");const xt=zs();me(h.CloseStatement,"Expected closing statement token");const Ft=[];for(;Re(h.OpenStatement,h.EndFor)&&Re(h.OpenStatement,h.Else);)Ft.push($e());const Ws=[];if(qe(h.OpenStatement,h.Else))for(++q,++q,me(h.CloseStatement,"Expected closing statement token");Re(h.OpenStatement,h.EndFor);)Ws.push($e());return new re(it,xt,Ft,Ws)}function zs(){return ar()}function ar(){const it=Ar();if(qe(h.If)){++q;const xt=Ar();if(qe(h.Else)){++q;const Ft=Ar();return new H(xt,[it],[Ft])}else return new ke(it,xt)}return it}function Ar(){let it=sn();for(;qe(h.Or);){const xt=B[q];++q;const Ft=sn();it=new Pe(xt,it,Ft)}return it}function sn(){let it=Vs();for(;qe(h.And);){const xt=B[q];++q;const Ft=Vs();it=new Pe(xt,it,Ft)}return it}function Vs(){let it;for(;qe(h.Not);){const xt=B[q];++q;const Ft=Vs();it=new Ce(xt,Ft)}return it??Cr()}function Cr(){let it=Nt();for(;qe(h.ComparisonBinaryOperator)||qe(h.In)||qe(h.NotIn);){const xt=B[q];++q;const Ft=Nt();it=new Pe(xt,it,Ft)}return it}function Nt(){let it=Dr();for(;qe(h.AdditiveBinaryOperator);){const xt=B[q];++q;const Ft=Dr();it=new Pe(xt,it,Ft)}return it}function rn(){const it=Vr(cr());return qe(h.OpenParen)?Or(it):it}function Or(it){let xt=new D(it,Fr());return xt=Vr(xt),qe(h.OpenParen)&&(xt=Or(xt)),xt}function Fr(){me(h.OpenParen,"Expected opening parenthesis for arguments list");const it=nn();return me(h.CloseParen,"Expected closing parenthesis for arguments list"),it}function nn(){const it=[];for(;!qe(h.CloseParen);){let xt=zs();if(qe(h.Equals)){if(++q,!(xt instanceof A))throw new SyntaxError("Expected identifier for keyword argument");const Ft=zs();xt=new Ge(xt,Ft)}it.push(xt),qe(h.Comma)&&++q}return it}function fr(){const it=[];let xt=!1;for(;!qe(h.CloseSquareBracket);)qe(h.Colon)?(it.push(void 0),++q,xt=!0):(it.push(zs()),qe(h.Colon)&&(++q,xt=!0));if(it.length===0)throw new SyntaxError("Expected at least one argument for member/slice expression");if(xt){if(it.length>3)throw new SyntaxError("Expected 0-3 arguments for slice expression");return new tt(...it)}return it[0]}function Vr(it){for(;qe(h.Dot)||qe(h.OpenSquareBracket);){const xt=B[q];++q;let Ft;const Ws=xt.type!==h.Dot;if(Ws)Ft=fr(),me(h.CloseSquareBracket,"Expected closing square bracket");else if(Ft=cr(),Ft.type!=="Identifier")throw new SyntaxError("Expected identifier following dot operator");it=new X(it,Ft,Ws)}return it}function Dr(){let it=Wr();for(;qe(h.MultiplicativeBinaryOperator);){const xt=B[q];++q;const Ft=Wr();it=new Pe(xt,it,Ft)}return it}function Wr(){let it=Gr();for(;qe(h.Is);){++q;const xt=qe(h.Not);xt&&++q;let Ft=cr();if(Ft instanceof le?Ft=new A(Ft.value.toString()):Ft instanceof oe&&(Ft=new A("none")),!(Ft instanceof A))throw new SyntaxError("Expected identifier for the test");it=new Oe(it,xt,Ft)}return it}function Gr(){let it=rn();for(;qe(h.Pipe);){++q;let xt=cr();if(!(xt instanceof A))throw new SyntaxError("Expected identifier for the filter");qe(h.OpenParen)&&(xt=Or(xt)),it=new pe(it,xt)}return it}function cr(){const it=B[q];switch(it.type){case h.NumericLiteral:return++q,new P(Number(it.value));case h.StringLiteral:return++q,new L(it.value);case h.BooleanLiteral:return++q,new le(it.value.toLowerCase()==="true");case h.NullLiteral:return++q,new oe(null);case h.Identifier:return++q,new A(it.value);case h.OpenParen:{++q;const xt=Ms();if(B[q].type!==h.CloseParen)throw new SyntaxError(`Expected closing parenthesis, got ${B[q].type} instead`);return++q,xt}case h.OpenSquareBracket:{++q;const xt=[];for(;!qe(h.CloseSquareBracket);)xt.push(zs()),qe(h.Comma)&&++q;return++q,new Te(xt)}case h.OpenCurlyBracket:{++q;const xt=new Map;for(;!qe(h.CloseCurlyBracket);){const Ft=zs();me(h.Colon,"Expected colon between key and value in object literal");const Ws=zs();xt.set(Ft,Ws),qe(h.Comma)&&++q}return++q,new ie(xt)}default:throw new SyntaxError(`Unexpected token: ${it.type}`)}}for(;q<B.length;)ae.body.push($e());return ae}function Z(B,ae,q=1){ae===void 0&&(ae=B,B=0);const me=[];for(let $e=B;$e<ae;$e+=q)me.push($e);return me}function ce(B,ae,q,me=1){const $e=Math.sign(me);$e>=0?(ae=(ae??(ae=0))<0?Math.max(B.length+ae,0):Math.min(ae,B.length),q=(q??(q=B.length))<0?Math.max(B.length+q,0):Math.min(q,B.length)):(ae=(ae??(ae=B.length-1))<0?Math.max(B.length+ae,-1):Math.min(ae,B.length-1),q=(q??(q=-1))<-1?Math.max(B.length+q,-1):Math.min(q,B.length-1));const Re=[];for(let qe=ae;$e*qe<$e*q;qe+=me)Re.push(B[qe]);return Re}function Se(B){return B.replace(/\b\w/g,ae=>ae.toUpperCase())}var Be=class{constructor(B=void 0){_e(this,"type","RuntimeValue");_e(this,"value");_e(this,"builtins",new Map);this.value=B}__bool__(){return new Ke(!!this.value)}},Je=class extends Be{constructor(){super(...arguments);_e(this,"type","NumericValue")}},se=class extends Be{constructor(){super(...arguments);_e(this,"type","StringValue");_e(this,"builtins",new Map([["upper",new We(()=>new se(this.value.toUpperCase()))],["lower",new We(()=>new se(this.value.toLowerCase()))],["strip",new We(()=>new se(this.value.trim()))],["title",new We(()=>new se(Se(this.value)))],["length",new Je(this.value.length)],["rstrip",new We(()=>new se(this.value.trimEnd()))],["lstrip",new We(()=>new se(this.value.trimStart()))],["split",new We(ae=>{const q=ae[0]??new Ne;if(!(q instanceof se||q instanceof Ne))throw new Error("sep argument must be a string or null");const me=ae[1]??new Je(-1);if(!(me instanceof Je))throw new Error("maxsplit argument must be a number");let $e=[];if(q instanceof Ne){const Re=this.value.trimStart();for(const{0:qe,index:at}of Re.matchAll(/\S+/g)){if(me.value!==-1&&$e.length>=me.value&&at!==void 0){$e.push(qe+Re.slice(at+qe.length));break}$e.push(qe)}}else{if(q.value==="")throw new Error("empty separator");$e=this.value.split(q.value),me.value!==-1&&$e.length>me.value&&$e.push($e.splice(me.value).join(q.value))}return new ve($e.map(Re=>new se(Re)))})]]))}},Ke=class extends Be{constructor(){super(...arguments);_e(this,"type","BooleanValue")}},Ue=class extends Be{constructor(){super(...arguments);_e(this,"type","ObjectValue");_e(this,"builtins",new Map([["get",new We(([ae,q])=>{if(!(ae instanceof se))throw new Error(`Object key must be a string: got ${ae.type}`);return this.value.get(ae.value)??q??new Ne})],["items",new We(()=>new ve(Array.from(this.value.entries()).map(([ae,q])=>new ve([new se(ae),q]))))]]))}__bool__(){return new Ke(this.value.size>0)}},ue=class extends Ue{constructor(){super(...arguments);_e(this,"type","KeywordArgumentsValue")}},ve=class extends Be{constructor(){super(...arguments);_e(this,"type","ArrayValue");_e(this,"builtins",new Map([["length",new Je(this.value.length)]]))}__bool__(){return new Ke(this.value.length>0)}},Ve=class extends ve{constructor(){super(...arguments);_e(this,"type","TupleValue")}},We=class extends Be{constructor(){super(...arguments);_e(this,"type","FunctionValue")}},Ne=class extends Be{constructor(){super(...arguments);_e(this,"type","NullValue")}},je=class extends Be{constructor(){super(...arguments);_e(this,"type","UndefinedValue")}},st=class{constructor(B){_e(this,"variables",new Map([["namespace",new We(B=>{if(B.length===0)return new Ue(new Map);if(B.length!==1||!(B[0]instanceof Ue))throw new Error("`namespace` expects either zero arguments or a single object argument");return B[0]})]]));_e(this,"tests",new Map([["boolean",B=>B.type==="BooleanValue"],["callable",B=>B instanceof We],["odd",B=>{if(B.type!=="NumericValue")throw new Error(`Cannot apply test "odd" to type: ${B.type}`);return B.value%2!==0}],["even",B=>{if(B.type!=="NumericValue")throw new Error(`Cannot apply test "even" to type: ${B.type}`);return B.value%2===0}],["false",B=>B.type==="BooleanValue"&&!B.value],["true",B=>B.type==="BooleanValue"&&B.value],["none",B=>B.type==="NullValue"],["string",B=>B.type==="StringValue"],["number",B=>B.type==="NumericValue"],["integer",B=>B.type==="NumericValue"&&Number.isInteger(B.value)],["iterable",B=>B.type==="ArrayValue"||B.type==="StringValue"],["mapping",B=>B.type==="ObjectValue"],["lower",B=>{const ae=B.value;return B.type==="StringValue"&&ae===ae.toLowerCase()}],["upper",B=>{const ae=B.value;return B.type==="StringValue"&&ae===ae.toUpperCase()}],["none",B=>B.type==="NullValue"],["defined",B=>B.type!=="UndefinedValue"],["undefined",B=>B.type==="UndefinedValue"],["equalto",(B,ae)=>B.value===ae.value],["eq",(B,ae)=>B.value===ae.value]]));this.parent=B}set(B,ae){return this.declareVariable(B,pt(ae))}declareVariable(B,ae){if(this.variables.has(B))throw new SyntaxError(`Variable already declared: ${B}`);return this.variables.set(B,ae),ae}setVariable(B,ae){return this.variables.set(B,ae),ae}resolve(B){if(this.variables.has(B))return this;if(this.parent)return this.parent.resolve(B);throw new Error(`Unknown variable: ${B}`)}lookupVariable(B){try{return this.resolve(B).variables.get(B)??new je}catch{return new je}}},ut=class{constructor(B){_e(this,"global");this.global=B??new st}run(B){return this.evaluate(B,this.global)}evaluateBinaryExpression(B,ae){const q=this.evaluate(B.left,ae);switch(B.operator.value){case"and":return q.__bool__().value?this.evaluate(B.right,ae):q;case"or":return q.__bool__().value?q:this.evaluate(B.right,ae)}const me=this.evaluate(B.right,ae);switch(B.operator.value){case"==":return new Ke(q.value==me.value);case"!=":return new Ke(q.value!=me.value)}if(q instanceof je||me instanceof je)throw new Error("Cannot perform operation on undefined values");if(q instanceof Ne||me instanceof Ne)throw new Error("Cannot perform operation on null values");if(q instanceof Je&&me instanceof Je)switch(B.operator.value){case"+":return new Je(q.value+me.value);case"-":return new Je(q.value-me.value);case"*":return new Je(q.value*me.value);case"/":return new Je(q.value/me.value);case"%":return new Je(q.value%me.value);case"<":return new Ke(q.value<me.value);case">":return new Ke(q.value>me.value);case">=":return new Ke(q.value>=me.value);case"<=":return new Ke(q.value<=me.value)}else if(q instanceof ve&&me instanceof ve)switch(B.operator.value){case"+":return new ve(q.value.concat(me.value))}else if(me instanceof ve){const $e=me.value.find(Re=>Re.value===q.value)!==void 0;switch(B.operator.value){case"in":return new Ke($e);case"not in":return new Ke(!$e)}}if(q instanceof se||me instanceof se)switch(B.operator.value){case"+":return new se(q.value.toString()+me.value.toString())}if(q instanceof se&&me instanceof se)switch(B.operator.value){case"in":return new Ke(me.value.includes(q.value));case"not in":return new Ke(!me.value.includes(q.value))}if(q instanceof se&&me instanceof Ue)switch(B.operator.value){case"in":return new Ke(me.value.has(q.value));case"not in":return new Ke(!me.value.has(q.value))}throw new SyntaxError(`Unknown operator "${B.operator.value}" between ${q.type} and ${me.type}`)}evaluateArguments(B,ae){const q=[],me=new Map;for(const $e of B)if($e.type==="KeywordArgumentExpression"){const Re=$e;me.set(Re.key.value,this.evaluate(Re.value,ae))}else{if(me.size>0)throw new Error("Positional arguments must come before keyword arguments");q.push(this.evaluate($e,ae))}return[q,me]}evaluateFilterExpression(B,ae){const q=this.evaluate(B.operand,ae);if(B.filter.type==="Identifier"){const me=B.filter;if(me.value==="tojson")return new se(lt(q));if(q instanceof ve)switch(me.value){case"list":return q;case"first":return q.value[0];case"last":return q.value[q.value.length-1];case"length":return new Je(q.value.length);case"reverse":return new ve(q.value.reverse());case"sort":return new ve(q.value.sort(($e,Re)=>{if($e.type!==Re.type)throw new Error(`Cannot compare different types: ${$e.type} and ${Re.type}`);switch($e.type){case"NumericValue":return $e.value-Re.value;case"StringValue":return $e.value.localeCompare(Re.value);default:throw new Error(`Cannot compare type: ${$e.type}`)}}));case"join":return new se(q.value.map($e=>$e.value).join(""));default:throw new Error(`Unknown ArrayValue filter: ${me.value}`)}else if(q instanceof se)switch(me.value){case"length":return new Je(q.value.length);case"upper":return new se(q.value.toUpperCase());case"lower":return new se(q.value.toLowerCase());case"title":return new se(Se(q.value));case"capitalize":return new se(q.value.charAt(0).toUpperCase()+q.value.slice(1));case"trim":return new se(q.value.trim());case"indent":return new se(q.value.split(`
4
  `).map(($e,Re)=>Re===0||$e.length===0?$e:" "+$e).join(`
index.html CHANGED
@@ -6,8 +6,8 @@
6
  <link rel="icon" href="/favicon.svg" type="image/svg+xml" />
7
  <title>Any Tokenizer Playground</title>
8
  <meta name="description" content="Opinionated Vite Starter Template" />
9
- <script type="module" crossorigin src="/assets/index-oqfyI0Df.js"></script>
10
- <link rel="stylesheet" crossorigin href="/assets/index-CR8UwHE5.css">
11
  </head>
12
  <body class="font-sans dark:text-white dark:bg-hex-121212">
13
  <div id="app"></div>
 
6
  <link rel="icon" href="/favicon.svg" type="image/svg+xml" />
7
  <title>Any Tokenizer Playground</title>
8
  <meta name="description" content="Opinionated Vite Starter Template" />
9
+ <script type="module" crossorigin src="/assets/index-CpnR-XtZ.js"></script>
10
+ <link rel="stylesheet" crossorigin href="/assets/index-DdQ2ZrXn.css">
11
  </head>
12
  <body class="font-sans dark:text-white dark:bg-hex-121212">
13
  <div id="app"></div>