diff --git "a/hfstudio/static/_app/immutable/nodes/2.1jor8E63.js" "b/hfstudio/static/_app/immutable/nodes/2.1jor8E63.js" new file mode 100644--- /dev/null +++ "b/hfstudio/static/_app/immutable/nodes/2.1jor8E63.js" @@ -0,0 +1,70 @@ +import{r as vt,a as x,t as P,S as Le,i as Ve,s as Fe,c as ze,O as X,d,P as Bt,u as Be,g as je,e as Ge,Q as jt,f as de,h as i,R as Ln,m as k,E as Nt,T as Vn,U as ln,V as pe,I as Q,K as ee,L as te,J as ne,b as u,D as Ke,l as fe,k as m,y as K,o as M,p as _,z as Z,q as R,v as Hn,w as Lt,x as Ue,C as Ze,n as xe,N as sn,W as an,M as Rt,A as Tt,j as Gt,X as Kt,Y as Zt}from"../chunks/BF3xBGh8.js";import"../chunks/IHki7fMi.js";function bt(s){return(s==null?void 0:s.length)!==void 0?s:Array.from(s)}function Un(s,e){P(s,1,1,()=>{e.delete(s.key)})}function zn(s,e,n,t,r,l,a,o,h,N,D,v){let g=s.length,$=l.length,I=g;const F={};for(;I--;)F[s[I].key]=I;const S=[],A=new Map,c=new Map,f=[];for(I=$;I--;){const w=v(r,l,I),T=n(w);let E=a.get(T);E?f.push(()=>E.p(w,e)):(E=N(T,w),E.c()),A.set(T,S[I]=E),T in F&&c.set(T,Math.abs(I-F[T]))}const p=new Set,b=new Set;function y(w){x(w,1),w.m(o,D),a.set(w.key,w),D=w.first,$--}for(;g&&$;){const w=S[$-1],T=s[g-1],E=w.key,O=T.key;w===T?(D=w.first,g--,$--):A.has(O)?!a.has(E)||p.has(E)?y(w):b.has(O)?g--:c.get(E)>c.get(O)?(b.add(E),y(w)):(p.add(O),g--):(h(T,a),g--)}for(;g--;){const w=s[g];A.has(w.key)||h(w,a)}for(;$;)y(S[$-1]);return vt(f),S}function Me(s,e){const n={},t={},r={$$scope:1};let l=s.length;for(;l--;){const a=s[l],o=e[l];if(o){for(const h in a)h in o||(t[h]=1);for(const h in o)r[h]||(n[h]=o[h],r[h]=1);s[l]=o}else for(const h in a)r[h]=1}for(const a in t)a in n||(n[a]=void 0);return n}function Je(s){return typeof s=="object"&&s!==null?s:{}}/** + * @license lucide-svelte v0.303.0 - ISC + +This source code is licensed under the ISC license. +See the LICENSE file in the root directory of this source tree. + */const on={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round"};function un(s,e,n){const t=s.slice();return t[10]=e[n][0],t[11]=e[n][1],t}function Wt(s){let e,n=[s[11]],t={};for(let r=0;r{n(7,e=X(X({},e),pe($))),n(6,r=ln(e,t)),"name"in $&&n(0,o=$.name),"color"in $&&n(1,h=$.color),"size"in $&&n(2,N=$.size),"strokeWidth"in $&&n(3,D=$.strokeWidth),"absoluteStrokeWidth"in $&&n(4,v=$.absoluteStrokeWidth),"iconNode"in $&&n(5,g=$.iconNode),"$$scope"in $&&n(8,a=$.$$scope)},e=pe(e),[o,h,N,D,v,g,r,e,a,l]}class Qe extends Le{constructor(e){super(),Ve(this,e,jn,Bn,Fe,{name:0,color:1,size:2,strokeWidth:3,absoluteStrokeWidth:4,iconNode:5})}}function Gn(s){let e;const n=s[2].default,t=ze(n,s,s[3],null);return{c(){t&&t.c()},l(r){t&&t.l(r)},m(r,l){t&&t.m(r,l),e=!0},p(r,l){t&&t.p&&(!e||l&8)&&Be(t,n,r,r[3],e?Ge(n,r[3],l,null):je(r[3]),null)},i(r){e||(x(t,r),e=!0)},o(r){P(t,r),e=!1},d(r){t&&t.d(r)}}}function qn(s){let e,n;const t=[{name:"alert-circle"},s[1],{iconNode:s[0]}];let r={$$slots:{default:[Gn]},$$scope:{ctx:s}};for(let l=0;l{n(1,e=X(X({},e),pe(a))),"$$scope"in a&&n(3,r=a.$$scope)},e=pe(e),[l,e,t,r]}class Xn extends Le{constructor(e){super(),Ve(this,e,Wn,qn,Fe,{})}}function Yn(s){let e;const n=s[2].default,t=ze(n,s,s[3],null);return{c(){t&&t.c()},l(r){t&&t.l(r)},m(r,l){t&&t.m(r,l),e=!0},p(r,l){t&&t.p&&(!e||l&8)&&Be(t,n,r,r[3],e?Ge(n,r[3],l,null):je(r[3]),null)},i(r){e||(x(t,r),e=!0)},o(r){P(t,r),e=!1},d(r){t&&t.d(r)}}}function Kn(s){let e,n;const t=[{name:"chevron-down"},s[1],{iconNode:s[0]}];let r={$$slots:{default:[Yn]},$$scope:{ctx:s}};for(let l=0;l{n(1,e=X(X({},e),pe(a))),"$$scope"in a&&n(3,r=a.$$scope)},e=pe(e),[l,e,t,r]}class Jn extends Le{constructor(e){super(),Ve(this,e,Zn,Kn,Fe,{})}}function Qn(s){let e;const n=s[2].default,t=ze(n,s,s[3],null);return{c(){t&&t.c()},l(r){t&&t.l(r)},m(r,l){t&&t.m(r,l),e=!0},p(r,l){t&&t.p&&(!e||l&8)&&Be(t,n,r,r[3],e?Ge(n,r[3],l,null):je(r[3]),null)},i(r){e||(x(t,r),e=!0)},o(r){P(t,r),e=!1},d(r){t&&t.d(r)}}}function er(s){let e,n;const t=[{name:"code"},s[1],{iconNode:s[0]}];let r={$$slots:{default:[Qn]},$$scope:{ctx:s}};for(let l=0;l{n(1,e=X(X({},e),pe(a))),"$$scope"in a&&n(3,r=a.$$scope)},e=pe(e),[l,e,t,r]}class nr extends Le{constructor(e){super(),Ve(this,e,tr,er,Fe,{})}}function rr(s){let e;const n=s[2].default,t=ze(n,s,s[3],null);return{c(){t&&t.c()},l(r){t&&t.l(r)},m(r,l){t&&t.m(r,l),e=!0},p(r,l){t&&t.p&&(!e||l&8)&&Be(t,n,r,r[3],e?Ge(n,r[3],l,null):je(r[3]),null)},i(r){e||(x(t,r),e=!0)},o(r){P(t,r),e=!1},d(r){t&&t.d(r)}}}function lr(s){let e,n;const t=[{name:"copy"},s[1],{iconNode:s[0]}];let r={$$slots:{default:[rr]},$$scope:{ctx:s}};for(let l=0;l{n(1,e=X(X({},e),pe(a))),"$$scope"in a&&n(3,r=a.$$scope)},e=pe(e),[l,e,t,r]}class Ht extends Le{constructor(e){super(),Ve(this,e,sr,lr,Fe,{})}}function ar(s){let e;const n=s[2].default,t=ze(n,s,s[3],null);return{c(){t&&t.c()},l(r){t&&t.l(r)},m(r,l){t&&t.m(r,l),e=!0},p(r,l){t&&t.p&&(!e||l&8)&&Be(t,n,r,r[3],e?Ge(n,r[3],l,null):je(r[3]),null)},i(r){e||(x(t,r),e=!0)},o(r){P(t,r),e=!1},d(r){t&&t.d(r)}}}function or(s){let e,n;const t=[{name:"download"},s[1],{iconNode:s[0]}];let r={$$slots:{default:[ar]},$$scope:{ctx:s}};for(let l=0;l{n(1,e=X(X({},e),pe(a))),"$$scope"in a&&n(3,r=a.$$scope)},e=pe(e),[l,e,t,r]}class Xt extends Le{constructor(e){super(),Ve(this,e,ir,or,Fe,{})}}function ur(s){let e;const n=s[2].default,t=ze(n,s,s[3],null);return{c(){t&&t.c()},l(r){t&&t.l(r)},m(r,l){t&&t.m(r,l),e=!0},p(r,l){t&&t.p&&(!e||l&8)&&Be(t,n,r,r[3],e?Ge(n,r[3],l,null):je(r[3]),null)},i(r){e||(x(t,r),e=!0)},o(r){P(t,r),e=!1},d(r){t&&t.d(r)}}}function cr(s){let e,n;const t=[{name:"loader-2"},s[1],{iconNode:s[0]}];let r={$$slots:{default:[ur]},$$scope:{ctx:s}};for(let l=0;l{n(1,e=X(X({},e),pe(a))),"$$scope"in a&&n(3,r=a.$$scope)},e=pe(e),[l,e,t,r]}class dr extends Le{constructor(e){super(),Ve(this,e,fr,cr,Fe,{})}}function gr(s){let e;const n=s[2].default,t=ze(n,s,s[3],null);return{c(){t&&t.c()},l(r){t&&t.l(r)},m(r,l){t&&t.m(r,l),e=!0},p(r,l){t&&t.p&&(!e||l&8)&&Be(t,n,r,r[3],e?Ge(n,r[3],l,null):je(r[3]),null)},i(r){e||(x(t,r),e=!0)},o(r){P(t,r),e=!1},d(r){t&&t.d(r)}}}function hr(s){let e,n;const t=[{name:"more-horizontal"},s[1],{iconNode:s[0]}];let r={$$slots:{default:[gr]},$$scope:{ctx:s}};for(let l=0;l{n(1,e=X(X({},e),pe(a))),"$$scope"in a&&n(3,r=a.$$scope)},e=pe(e),[l,e,t,r]}class mr extends Le{constructor(e){super(),Ve(this,e,pr,hr,Fe,{})}}function _r(s){let e;const n=s[2].default,t=ze(n,s,s[3],null);return{c(){t&&t.c()},l(r){t&&t.l(r)},m(r,l){t&&t.m(r,l),e=!0},p(r,l){t&&t.p&&(!e||l&8)&&Be(t,n,r,r[3],e?Ge(n,r[3],l,null):je(r[3]),null)},i(r){e||(x(t,r),e=!0)},o(r){P(t,r),e=!1},d(r){t&&t.d(r)}}}function br(s){let e,n;const t=[{name:"panels-top-left"},s[1],{iconNode:s[0]}];let r={$$slots:{default:[_r]},$$scope:{ctx:s}};for(let l=0;l{n(1,e=X(X({},e),pe(a))),"$$scope"in a&&n(3,r=a.$$scope)},e=pe(e),[l,e,t,r]}class yr extends Le{constructor(e){super(),Ve(this,e,vr,br,Fe,{})}}function kr(s){let e;const n=s[2].default,t=ze(n,s,s[3],null);return{c(){t&&t.c()},l(r){t&&t.l(r)},m(r,l){t&&t.m(r,l),e=!0},p(r,l){t&&t.p&&(!e||l&8)&&Be(t,n,r,r[3],e?Ge(n,r[3],l,null):je(r[3]),null)},i(r){e||(x(t,r),e=!0)},o(r){P(t,r),e=!1},d(r){t&&t.d(r)}}}function wr(s){let e,n;const t=[{name:"pause"},s[1],{iconNode:s[0]}];let r={$$slots:{default:[kr]},$$scope:{ctx:s}};for(let l=0;l{n(1,e=X(X({},e),pe(a))),"$$scope"in a&&n(3,r=a.$$scope)},e=pe(e),[l,e,t,r]}class Mn extends Le{constructor(e){super(),Ve(this,e,$r,wr,Fe,{})}}function Er(s){let e;const n=s[2].default,t=ze(n,s,s[3],null);return{c(){t&&t.c()},l(r){t&&t.l(r)},m(r,l){t&&t.m(r,l),e=!0},p(r,l){t&&t.p&&(!e||l&8)&&Be(t,n,r,r[3],e?Ge(n,r[3],l,null):je(r[3]),null)},i(r){e||(x(t,r),e=!0)},o(r){P(t,r),e=!1},d(r){t&&t.d(r)}}}function Sr(s){let e,n;const t=[{name:"play"},s[1],{iconNode:s[0]}];let r={$$slots:{default:[Er]},$$scope:{ctx:s}};for(let l=0;l{n(1,e=X(X({},e),pe(a))),"$$scope"in a&&n(3,r=a.$$scope)},e=pe(e),[l,e,t,r]}class Ut extends Le{constructor(e){super(),Ve(this,e,Ar,Sr,Fe,{})}}function Tr(s){let e;const n=s[2].default,t=ze(n,s,s[3],null);return{c(){t&&t.c()},l(r){t&&t.l(r)},m(r,l){t&&t.m(r,l),e=!0},p(r,l){t&&t.p&&(!e||l&8)&&Be(t,n,r,r[3],e?Ge(n,r[3],l,null):je(r[3]),null)},i(r){e||(x(t,r),e=!0)},o(r){P(t,r),e=!1},d(r){t&&t.d(r)}}}function Ir(s){let e,n;const t=[{name:"rotate-ccw"},s[1],{iconNode:s[0]}];let r={$$slots:{default:[Tr]},$$scope:{ctx:s}};for(let l=0;l{n(1,e=X(X({},e),pe(a))),"$$scope"in a&&n(3,r=a.$$scope)},e=pe(e),[l,e,t,r]}class Nr extends Le{constructor(e){super(),Ve(this,e,Dr,Ir,Fe,{})}}function Cr(s){let e;const n=s[2].default,t=ze(n,s,s[3],null);return{c(){t&&t.c()},l(r){t&&t.l(r)},m(r,l){t&&t.m(r,l),e=!0},p(r,l){t&&t.p&&(!e||l&8)&&Be(t,n,r,r[3],e?Ge(n,r[3],l,null):je(r[3]),null)},i(r){e||(x(t,r),e=!0)},o(r){P(t,r),e=!1},d(r){t&&t.d(r)}}}function xr(s){let e,n;const t=[{name:"share"},s[1],{iconNode:s[0]}];let r={$$slots:{default:[Cr]},$$scope:{ctx:s}};for(let l=0;l{n(1,e=X(X({},e),pe(a))),"$$scope"in a&&n(3,r=a.$$scope)},e=pe(e),[l,e,t,r]}class Yt extends Le{constructor(e){super(),Ve(this,e,Fr,xr,Fe,{})}}function Pr(s){let e;const n=s[2].default,t=ze(n,s,s[3],null);return{c(){t&&t.c()},l(r){t&&t.l(r)},m(r,l){t&&t.m(r,l),e=!0},p(r,l){t&&t.p&&(!e||l&8)&&Be(t,n,r,r[3],e?Ge(n,r[3],l,null):je(r[3]),null)},i(r){e||(x(t,r),e=!0)},o(r){P(t,r),e=!1},d(r){t&&t.d(r)}}}function Or(s){let e,n;const t=[{name:"skip-back"},s[1],{iconNode:s[0]}];let r={$$slots:{default:[Pr]},$$scope:{ctx:s}};for(let l=0;l{n(1,e=X(X({},e),pe(a))),"$$scope"in a&&n(3,r=a.$$scope)},e=pe(e),[l,e,t,r]}class Vr extends Le{constructor(e){super(),Ve(this,e,Lr,Or,Fe,{})}}function Mr(s){let e;const n=s[2].default,t=ze(n,s,s[3],null);return{c(){t&&t.c()},l(r){t&&t.l(r)},m(r,l){t&&t.m(r,l),e=!0},p(r,l){t&&t.p&&(!e||l&8)&&Be(t,n,r,r[3],e?Ge(n,r[3],l,null):je(r[3]),null)},i(r){e||(x(t,r),e=!0)},o(r){P(t,r),e=!1},d(r){t&&t.d(r)}}}function Rr(s){let e,n;const t=[{name:"skip-forward"},s[1],{iconNode:s[0]}];let r={$$slots:{default:[Mr]},$$scope:{ctx:s}};for(let l=0;l{n(1,e=X(X({},e),pe(a))),"$$scope"in a&&n(3,r=a.$$scope)},e=pe(e),[l,e,t,r]}class Ur extends Le{constructor(e){super(),Ve(this,e,Hr,Rr,Fe,{})}}function zr(s){let e;const n=s[2].default,t=ze(n,s,s[3],null);return{c(){t&&t.c()},l(r){t&&t.l(r)},m(r,l){t&&t.m(r,l),e=!0},p(r,l){t&&t.p&&(!e||l&8)&&Be(t,n,r,r[3],e?Ge(n,r[3],l,null):je(r[3]),null)},i(r){e||(x(t,r),e=!0)},o(r){P(t,r),e=!1},d(r){t&&t.d(r)}}}function Br(s){let e,n;const t=[{name:"x"},s[1],{iconNode:s[0]}];let r={$$slots:{default:[zr]},$$scope:{ctx:s}};for(let l=0;l{n(1,e=X(X({},e),pe(a))),"$$scope"in a&&n(3,r=a.$$scope)},e=pe(e),[l,e,t,r]}class Gr extends Le{constructor(e){super(),Ve(this,e,jr,Br,Fe,{})}}var fn=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function qr(s){return s&&s.__esModule&&Object.prototype.hasOwnProperty.call(s,"default")?s.default:s}var Rn={exports:{}};(function(s){var e=typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:{};/** + * Prism: Lightweight, robust, elegant syntax highlighting + * + * @license MIT + * @author Lea Verou + * @namespace + * @public + */var n=function(t){var r=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,l=0,a={},o={manual:t.Prism&&t.Prism.manual,disableWorkerMessageHandler:t.Prism&&t.Prism.disableWorkerMessageHandler,util:{encode:function c(f){return f instanceof h?new h(f.type,c(f.content),f.alias):Array.isArray(f)?f.map(c):f.replace(/&/g,"&").replace(/"u")return null;if(document.currentScript&&document.currentScript.tagName==="SCRIPT")return document.currentScript;try{throw new Error}catch(b){var c=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(b.stack)||[])[1];if(c){var f=document.getElementsByTagName("script");for(var p in f)if(f[p].src==c)return f[p]}return null}},isActive:function(c,f,p){for(var b="no-"+f;c;){var y=c.classList;if(y.contains(f))return!0;if(y.contains(b))return!1;c=c.parentElement}return!!p}},languages:{plain:a,plaintext:a,text:a,txt:a,extend:function(c,f){var p=o.util.clone(o.languages[c]);for(var b in f)p[b]=f[b];return p},insertBefore:function(c,f,p,b){b=b||o.languages;var y=b[c],w={};for(var T in y)if(y.hasOwnProperty(T)){if(T==f)for(var E in p)p.hasOwnProperty(E)&&(w[E]=p[E]);p.hasOwnProperty(T)||(w[T]=y[T])}var O=b[c];return b[c]=w,o.languages.DFS(o.languages,function(V,L){L===O&&V!=c&&(this[V]=w)}),w},DFS:function c(f,p,b,y){y=y||{};var w=o.util.objId;for(var T in f)if(f.hasOwnProperty(T)){p.call(f,T,f[T],b||T);var E=f[T],O=o.util.type(E);O==="Object"&&!y[w(E)]?(y[w(E)]=!0,c(E,p,null,y)):O==="Array"&&!y[w(E)]&&(y[w(E)]=!0,c(E,p,T,y))}}},plugins:{},highlightAll:function(c,f){o.highlightAllUnder(document,c,f)},highlightAllUnder:function(c,f,p){var b={callback:p,container:c,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};o.hooks.run("before-highlightall",b),b.elements=Array.prototype.slice.apply(b.container.querySelectorAll(b.selector)),o.hooks.run("before-all-elements-highlight",b);for(var y=0,w;w=b.elements[y++];)o.highlightElement(w,f===!0,b.callback)},highlightElement:function(c,f,p){var b=o.util.getLanguage(c),y=o.languages[b];o.util.setLanguage(c,b);var w=c.parentElement;w&&w.nodeName.toLowerCase()==="pre"&&o.util.setLanguage(w,b);var T=c.textContent,E={element:c,language:b,grammar:y,code:T};function O(L){E.highlightedCode=L,o.hooks.run("before-insert",E),E.element.innerHTML=E.highlightedCode,o.hooks.run("after-highlight",E),o.hooks.run("complete",E),p&&p.call(E.element)}if(o.hooks.run("before-sanity-check",E),w=E.element.parentElement,w&&w.nodeName.toLowerCase()==="pre"&&!w.hasAttribute("tabindex")&&w.setAttribute("tabindex","0"),!E.code){o.hooks.run("complete",E),p&&p.call(E.element);return}if(o.hooks.run("before-highlight",E),!E.grammar){O(o.util.encode(E.code));return}if(f&&t.Worker){var V=new Worker(o.filename);V.onmessage=function(L){O(L.data)},V.postMessage(JSON.stringify({language:E.language,code:E.code,immediateClose:!0}))}else O(o.highlight(E.code,E.grammar,E.language))},highlight:function(c,f,p){var b={code:c,grammar:f,language:p};if(o.hooks.run("before-tokenize",b),!b.grammar)throw new Error('The language "'+b.language+'" has no grammar.');return b.tokens=o.tokenize(b.code,b.grammar),o.hooks.run("after-tokenize",b),h.stringify(o.util.encode(b.tokens),b.language)},tokenize:function(c,f){var p=f.rest;if(p){for(var b in p)f[b]=p[b];delete f.rest}var y=new v;return g(y,y.head,c),D(c,y,f,y.head,0),I(y)},hooks:{all:{},add:function(c,f){var p=o.hooks.all;p[c]=p[c]||[],p[c].push(f)},run:function(c,f){var p=o.hooks.all[c];if(!(!p||!p.length))for(var b=0,y;y=p[b++];)y(f)}},Token:h};t.Prism=o;function h(c,f,p,b){this.type=c,this.content=f,this.alias=p,this.length=(b||"").length|0}h.stringify=function c(f,p){if(typeof f=="string")return f;if(Array.isArray(f)){var b="";return f.forEach(function(O){b+=c(O,p)}),b}var y={type:f.type,content:c(f.content,p),tag:"span",classes:["token",f.type],attributes:{},language:p},w=f.alias;w&&(Array.isArray(w)?Array.prototype.push.apply(y.classes,w):y.classes.push(w)),o.hooks.run("wrap",y);var T="";for(var E in y.attributes)T+=" "+E+'="'+(y.attributes[E]||"").replace(/"/g,""")+'"';return"<"+y.tag+' class="'+y.classes.join(" ")+'"'+T+">"+y.content+""};function N(c,f,p,b){c.lastIndex=f;var y=c.exec(p);if(y&&b&&y[1]){var w=y[1].length;y.index+=w,y[0]=y[0].slice(w)}return y}function D(c,f,p,b,y,w){for(var T in p)if(!(!p.hasOwnProperty(T)||!p[T])){var E=p[T];E=Array.isArray(E)?E:[E];for(var O=0;O=w.reach);J+=j.value.length,j=j.next){var oe=j.value;if(f.length>c.length)return;if(!(oe instanceof h)){var ue=1,ge;if(H){if(ge=N(B,J,c,C),!ge||ge.index>=c.length)break;var ce=ge.index,me=ge.index+ge[0].length,_e=J;for(_e+=j.value.length;ce>=_e;)j=j.next,_e+=j.value.length;if(_e-=j.value.length,J=_e,j.value instanceof h)continue;for(var re=j;re!==f.tail&&(_ew.reach&&(w.reach=qe);var be=j.prev;ye&&(be=g(f,be,ye),J+=ye.length),$(f,be,ue);var Ee=new h(T,L?o.tokenize(le,L):le,z,le);if(j=g(f,be,Ee),we&&g(f,j,we),ue>1){var $e={cause:T+","+O,reach:qe};D(c,f,p,j.prev,J,$e),w&&$e.reach>w.reach&&(w.reach=$e.reach)}}}}}}function v(){var c={value:null,prev:null,next:null},f={value:null,prev:c,next:null};c.next=f,this.head=c,this.tail=f,this.length=0}function g(c,f,p){var b=f.next,y={value:p,prev:f,next:b};return f.next=y,b.prev=y,c.length++,y}function $(c,f,p){for(var b=f.next,y=0;y/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern://i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},n.languages.markup.tag.inside["attr-value"].inside.entity=n.languages.markup.entity,n.languages.markup.doctype.inside["internal-subset"].inside=n.languages.markup,n.hooks.add("wrap",function(t){t.type==="entity"&&(t.attributes.title=t.content.replace(/&/,"&"))}),Object.defineProperty(n.languages.markup.tag,"addInlined",{value:function(r,l){var a={};a["language-"+l]={pattern:/(^$)/i,lookbehind:!0,inside:n.languages[l]},a.cdata=/^$/i;var o={"included-cdata":{pattern://i,inside:a}};o["language-"+l]={pattern:/[\s\S]+/,inside:n.languages[l]};var h={};h[r]={pattern:RegExp(/(<__[^>]*>)(?:))*\]\]>|(?!)/.source.replace(/__/g,function(){return r}),"i"),lookbehind:!0,greedy:!0,inside:o},n.languages.insertBefore("markup","cdata",h)}}),Object.defineProperty(n.languages.markup.tag,"addAttribute",{value:function(t,r){n.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+t+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[r,"language-"+r],inside:n.languages[r]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),n.languages.html=n.languages.markup,n.languages.mathml=n.languages.markup,n.languages.svg=n.languages.markup,n.languages.xml=n.languages.extend("markup",{}),n.languages.ssml=n.languages.xml,n.languages.atom=n.languages.xml,n.languages.rss=n.languages.xml,function(t){var r=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;t.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+r.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+r.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+r.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+r.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:r,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},t.languages.css.atrule.inside.rest=t.languages.css;var l=t.languages.markup;l&&(l.tag.addInlined("style","css"),l.tag.addAttribute("style","css"))}(n),n.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},n.languages.javascript=n.languages.extend("clike",{"class-name":[n.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+(/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source)+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),n.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,n.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:n.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:n.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:n.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:n.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:n.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),n.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:n.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),n.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),n.languages.markup&&(n.languages.markup.tag.addInlined("script","javascript"),n.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),n.languages.js=n.languages.javascript,function(){if(typeof n>"u"||typeof document>"u")return;Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var t="Loading…",r=function(F,S){return"✖ Error "+F+" while fetching file: "+S},l="✖ Error: File does not exist or is empty",a={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"},o="data-src-status",h="loading",N="loaded",D="failed",v="pre[data-src]:not(["+o+'="'+N+'"]):not(['+o+'="'+h+'"])';function g(F,S,A){var c=new XMLHttpRequest;c.open("GET",F,!0),c.onreadystatechange=function(){c.readyState==4&&(c.status<400&&c.responseText?S(c.responseText):c.status>=400?A(r(c.status,c.statusText)):A(l))},c.send(null)}function $(F){var S=/^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec(F||"");if(S){var A=Number(S[1]),c=S[2],f=S[3];return c?f?[A,Number(f)]:[A,void 0]:[A,A]}}n.hooks.add("before-highlightall",function(F){F.selector+=", "+v}),n.hooks.add("before-sanity-check",function(F){var S=F.element;if(S.matches(v)){F.code="",S.setAttribute(o,h);var A=S.appendChild(document.createElement("CODE"));A.textContent=t;var c=S.getAttribute("data-src"),f=F.language;if(f==="none"){var p=(/\.(\w+)$/.exec(c)||[,"none"])[1];f=a[p]||p}n.util.setLanguage(A,f),n.util.setLanguage(S,f);var b=n.plugins.autoloader;b&&b.loadLanguages(f),g(c,function(y){S.setAttribute(o,N);var w=$(S.getAttribute("data-range"));if(w){var T=y.split(/\r\n?|\n/g),E=w[0],O=w[1]==null?T.length:w[1];E<0&&(E+=T.length),E=Math.max(0,Math.min(E-1,T.length)),O<0&&(O+=T.length),O=Math.max(0,Math.min(O,T.length)),y=T.slice(E,O).join(` +`),S.hasAttribute("data-start")||S.setAttribute("data-start",String(E+1))}A.textContent=y,n.highlightElement(A)},function(y){S.setAttribute(o,D),A.textContent=y})}}),n.plugins.fileHighlight={highlight:function(S){for(var A=(S||document).querySelectorAll(v),c=0,f;f=A[c++];)n.highlightElement(f)}};var I=!1;n.fileHighlight=function(){I||(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),I=!0),n.plugins.fileHighlight.highlight.apply(this,arguments)}}()})(Rn);var Wr=Rn.exports;const ct=qr(Wr);Prism.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern:/![sra](?=[:}]$)/,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/};Prism.languages.python["string-interpolation"].inside.interpolation.inside.rest=Prism.languages.python;Prism.languages.py=Prism.languages.python;(function(s){var e="\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b",n={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},t={bash:n,environment:{pattern:RegExp("\\$"+e),alias:"constant"},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp("(\\{)"+e),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/};s.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?:\.\w+)*(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+e),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},parameter:{pattern:/(^|\s)-{1,2}(?:\w+:[+-]?)?\w+(?:\.\w+)*(?=[=\s]|$)/,alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:t},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:n}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:t},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:t.entity}}],environment:{pattern:RegExp("\\$?"+e),alias:"constant"},variable:t.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cargo|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|java|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|sysctl|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},n.inside=s.languages.bash;for(var r=["comment","function-name","for-or-select","assign-left","parameter","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],l=t.variable[1].inside,a=0;a0||s[8]||s[9])&&_n(s);const H=[Qr,Jr],z=[];function ae(B,j){return!B[8]&&!B[9]&&B[7].length===0?0:1}return b=ae(s),y=z[b]=H[b](s),{c(){e=_("div"),n=_("div"),t=_("div"),r=_("div"),l=_("h2"),l.textContent=a,o=R(),h=_("p"),L.c(),N=R(),D=_("div"),v=_("div"),g=_("button"),$=Z("API"),F=R(),S=_("button"),A=Z("Local"),f=R(),C&&C.c(),p=R(),y.c(),this.h()},l(B){e=m(B,"DIV",{class:!0});var j=k(e);n=m(j,"DIV",{class:!0});var J=k(n);t=m(J,"DIV",{class:!0});var oe=k(t);r=m(oe,"DIV",{});var ue=k(r);l=m(ue,"H2",{class:!0,"data-svelte-h":!0}),xe(l)!=="svelte-k26g76"&&(l.textContent=a),o=M(ue),h=m(ue,"P",{class:!0});var ge=k(h);L.l(ge),ge.forEach(d),ue.forEach(d),N=M(oe),D=m(oe,"DIV",{class:!0});var me=k(D);v=m(me,"DIV",{class:!0});var _e=k(v);g=m(_e,"BUTTON",{class:!0});var re=k(g);$=K(re,"API"),re.forEach(d),F=M(_e),S=m(_e,"BUTTON",{class:!0});var ce=k(S);A=K(ce,"Local"),ce.forEach(d),_e.forEach(d),f=M(me),C&&C.l(me),me.forEach(d),oe.forEach(d),p=M(J),y.l(J),J.forEach(d),j.forEach(d),this.h()},h(){u(l,"class","text-2xl font-semibold text-gray-900"),u(h,"class","text-sm text-gray-600 mt-1"),u(g,"class",I="px-3 py-1 text-sm font-medium rounded transition-colors "+(s[0]==="api"?"bg-white shadow-sm":"text-gray-600")),u(S,"class",c="px-3 py-1 text-sm font-medium rounded transition-colors "+(s[0]==="local"?"bg-white shadow-sm":"text-gray-600")),u(v,"class","flex items-center bg-gray-100 rounded-md p-0.5"),u(D,"class","flex items-center justify-between mt-4"),u(t,"class","mb-6"),u(n,"class","max-w-4xl mx-auto p-8"),u(e,"class","flex-1 bg-gray-50 overflow-y-auto")},m(B,j){de(B,e,j),i(e,n),i(n,t),i(t,r),i(r,l),i(r,o),i(r,h),L.m(h,null),i(t,N),i(t,D),i(D,v),i(v,g),i(g,$),i(v,F),i(v,S),i(S,A),i(D,f),C&&C.m(D,null),i(n,p),z[b].m(n,null),w=!0,T||(E=[fe(g,"click",s[52]),fe(S,"click",s[53])],T=!0)},p(B,j){V!==(V=O(B))&&(L.d(1),L=V(B),L&&(L.c(),L.m(h,null))),(!w||j[0]&1&&I!==(I="px-3 py-1 text-sm font-medium rounded transition-colors "+(B[0]==="api"?"bg-white shadow-sm":"text-gray-600")))&&u(g,"class",I),(!w||j[0]&1&&c!==(c="px-3 py-1 text-sm font-medium rounded transition-colors "+(B[0]==="local"?"bg-white shadow-sm":"text-gray-600")))&&u(S,"class",c),B[7].length>0||B[8]||B[9]?C?(C.p(B,j),j[0]&896&&x(C,1)):(C=_n(B),C.c(),x(C,1),C.m(D,null)):C&&(Ze(),P(C,1,1,()=>{C=null}),Ke());let J=b;b=ae(B),b===J?z[b].p(B,j):(Ze(),P(z[J],1,1,()=>{z[J]=null}),Ke(),y=z[b],y?y.p(B,j):(y=z[b]=H[b](B),y.c()),x(y,1),y.m(n,null))},i(B){w||(x(C),x(y),w=!0)},o(B){P(C),P(y),w=!1},d(B){B&&d(e),L.d(),C&&C.d(),z[b].d(),T=!1,vt(E)}}}function Yr(s){let e,n,t,r,l,a,o,h,N=s[1].length+"",D,v,g,$,I,F,S,A,c,f,p,b,y="Model",w,T,E,O,V,L,C,H,z='Estimated $0.025 per 1000 characters • Billing ⤴',ae,B,j,J='

Voice

',oe,ue,ge,me,_e='
+
Clone your voice
(coming soon)
',re,ce,le,ye,we,qe="Exaggeration",be,Ee,$e=s[13].toFixed(2)+"",We,Re,Se,pt,Ce,ft="None Exaggerated",dt,He,et,Pe,ot="Stability",yt,Xe,st=s[14].toFixed(2)+"",gt,kt,Ae,tt,Oe,It="More stable More variable",nt,rt,it;const U=[rl,nl],q=[];function ie(G,se){return G[6]?0:1}I=ie(s),F=q[I]=U[I](s);let ve=s[10]&&$n(s),Ie=bt(s[25]),ke=[];for(let G=0;GP(he[G],1,1,()=>{he[G]=null});return{c(){e=_("div"),n=_("div"),t=_("div"),r=_("textarea"),l=R(),a=_("div"),o=_("div"),h=_("span"),D=Z(N),v=Z(" / 5,000 characters"),g=R(),$=_("button"),F.c(),A=R(),ve&&ve.c(),c=R(),f=_("div"),p=_("div"),b=_("h3"),b.textContent=y,w=R(),T=_("button"),E=_("span");for(let G=0;G{q[Ne]=null}),Ke(),F=q[I],F||(F=q[I]=U[I](G),F.c()),x(F,1),F.m($,null)),(!nt||se[0]&66&&S!==(S=G[6]||!G[1].trim()))&&($.disabled=S),G[10]?ve?(ve.p(G,se),se[0]&1024&&x(ve,1)):(ve=$n(G),ve.c(),x(ve,1),ve.m(n,null)):ve&&(Ze(),P(ve,1,1,()=>{ve=null}),Ke()),se[0]&33554440){Ie=bt(G[25]);let Y;for(Y=0;Yv[79].id;for(let v=0;v{o=null}),Ke()),v[9]?h?(h.p(v,g),g[0]&512&&x(h,1)):(h=vn(v),h.c(),x(h,1),h.m(e,t)):h&&(Ze(),P(h,1,1,()=>{h=null}),Ke()),g[0]&128|g[1]&1088&&(N=bt(v[7]),Ze(),r=zn(r,g,D,1,v,N,l,e,Un,kn,null,dn),Ke())},i(v){if(!a){x(o),x(h);for(let g=0;gs[59](O,L,C),me=()=>s[59](null,L,C);function _e(){return s[60](s[79],s[80],s[81])}return{c(){e=_("div"),n=_("div"),t=_("div"),r=_("div"),l=_("button"),o.c(),h=R(),N=_("div"),D=_("div"),g=Z(v),$=R(),I=_("div"),F=Z("Duration: "),A=Z(S),c=R(),f=_("div"),p=_("button"),ne(b.$$.fragment),y=R(),w=_("button"),ne(T.$$.fragment),E=R(),O=_("audio"),this.h()},l(re){e=m(re,"DIV",{class:!0});var ce=k(e);n=m(ce,"DIV",{class:!0});var le=k(n);t=m(le,"DIV",{class:!0});var ye=k(t);r=m(ye,"DIV",{class:!0});var we=k(r);l=m(we,"BUTTON",{class:!0});var qe=k(l);o.l(qe),qe.forEach(d),h=M(we),N=m(we,"DIV",{class:!0});var be=k(N);D=m(be,"DIV",{class:!0});var Ee=k(D);g=K(Ee,v),Ee.forEach(d),$=M(be),I=m(be,"DIV",{class:!0});var $e=k(I);F=K($e,"Duration: "),A=K($e,S),$e.forEach(d),be.forEach(d),we.forEach(d),c=M(ye),f=m(ye,"DIV",{class:!0});var We=k(f);p=m(We,"BUTTON",{class:!0,title:!0});var Re=k(p);te(b.$$.fragment,Re),Re.forEach(d),y=M(We),w=m(We,"BUTTON",{class:!0,title:!0});var Se=k(w);te(T.$$.fragment,Se),Se.forEach(d),We.forEach(d),ye.forEach(d),E=M(le),O=m(le,"AUDIO",{src:!0,class:!0}),k(O).forEach(d),le.forEach(d),ce.forEach(d),this.h()},h(){u(l,"class","w-10 h-10 bg-gradient-to-r from-amber-500 to-orange-500 rounded-full flex items-center justify-center text-white hover:from-amber-600 hover:to-orange-600 transition-colors shadow-md"),u(D,"class","text-sm font-medium text-gray-900 truncate"),u(I,"class","text-xs text-gray-500"),u(N,"class","flex-1"),u(r,"class","flex items-center gap-3 flex-1"),u(p,"class","p-2 hover:bg-gray-100 rounded-lg transition-colors"),u(p,"title","Download"),u(w,"class","p-2 hover:bg-gray-100 rounded-lg transition-colors"),u(w,"title","Share"),u(f,"class","flex items-center gap-1"),u(t,"class","flex items-center justify-between"),Gt(O.src,V=s[79].result.url)||u(O,"src",V),u(O,"class","hidden"),u(n,"class","bg-white rounded-lg border border-gray-200 p-4 shadow-sm"),u(e,"class","bg-gradient-to-b from-gray-50 to-white p-4")},m(re,ce){de(re,e,ce),i(e,n),i(n,t),i(t,r),i(r,l),j[a].m(l,null),i(r,h),i(r,N),i(N,D),i(D,g),i(N,$),i(N,I),i(I,F),i(I,A),i(t,c),i(t,f),i(f,p),ee(b,p,null),i(f,y),i(f,w),ee(T,w,null),i(n,E),i(n,O),ge(),H=!0,z||(ae=[fe(l,"click",oe),fe(p,"click",ue),fe(O,"ended",_e)],z=!0)},p(re,ce){s=re;let le=a;a=J(s),a!==le&&(Ze(),P(j[le],1,1,()=>{j[le]=null}),Ke(),o=j[a],o||(o=j[a]=B[a](s),o.c()),x(o,1),o.m(l,null)),(!H||ce[0]&128)&&v!==(v=(s[79].result.title||"Generated Audio")+"")&&Ue(g,v),(!H||ce[0]&128)&&S!==(S=On(s[79].result.duration||0)+"")&&Ue(A,S),(!H||ce[0]&128&&!Gt(O.src,V=s[79].result.url))&&u(O,"src",V),(L!==s[80]||C!==s[81])&&(me(),L=s[80],C=s[81],ge())},i(re){H||(x(o),x(b.$$.fragment,re),x(T.$$.fragment,re),H=!0)},o(re){P(o),P(b.$$.fragment,re),P(T.$$.fragment,re),H=!1},d(re){re&&d(e),j[a].d(),Q(b),Q(T),me(),z=!1,vt(ae)}}}function el(s){let e,n;return e=new Ut({props:{size:18,class:"ml-0.5"}}),{c(){ne(e.$$.fragment)},l(t){te(e.$$.fragment,t)},m(t,r){ee(e,t,r),n=!0},i(t){n||(x(e.$$.fragment,t),n=!0)},o(t){P(e.$$.fragment,t),n=!1},d(t){Q(e,t)}}}function tl(s){let e,n;return e=new Mn({props:{size:18}}),{c(){ne(e.$$.fragment)},l(t){te(e.$$.fragment,t)},m(t,r){ee(e,t,r),n=!0},i(t){n||(x(e.$$.fragment,t),n=!0)},o(t){P(e.$$.fragment,t),n=!1},d(t){Q(e,t)}}}function kn(s,e){let n,t,r,l,a,o=e[81]+1+"",h,N,D,v,g,$,I,F,S,A=ct.highlight(e[79].code,ct.languages.python,"python")+"",c,f,p,b,y;v=new Ht({props:{size:14,class:"text-gray-600"}});function w(){return e[56](e[79])}let T=e[79].result&&e[79].result.type==="audio"&&yn(e);return{key:s,first:null,c(){n=_("div"),t=_("div"),r=_("div"),l=_("span"),a=Z("Cell "),h=Z(o),N=R(),D=_("button"),ne(v.$$.fragment),g=R(),$=_("div"),I=_("pre"),F=_("code"),S=new Zt(!1),c=R(),T&&T.c(),f=R(),this.h()},l(E){n=m(E,"DIV",{class:!0});var O=k(n);t=m(O,"DIV",{class:!0});var V=k(t);r=m(V,"DIV",{class:!0});var L=k(r);l=m(L,"SPAN",{class:!0});var C=k(l);a=K(C,"Cell "),h=K(C,o),C.forEach(d),N=M(L),D=m(L,"BUTTON",{class:!0,title:!0});var H=k(D);te(v.$$.fragment,H),H.forEach(d),L.forEach(d),g=M(V),$=m(V,"DIV",{class:!0});var z=k($);I=m(z,"PRE",{class:!0});var ae=k(I);F=m(ae,"CODE",{class:!0});var B=k(F);S=Kt(B,!1),B.forEach(d),ae.forEach(d),z.forEach(d),V.forEach(d),c=M(O),T&&T.l(O),f=M(O),O.forEach(d),this.h()},h(){u(l,"class","text-sm font-medium text-gray-700"),u(D,"class","p-1.5 hover:bg-gray-200 rounded transition-colors"),u(D,"title","Copy code"),u(r,"class","flex items-center justify-between px-4 py-2 bg-gray-50 border-b border-gray-100"),S.a=null,u(F,"class","language-python text-sm"),u(I,"class","p-4 overflow-x-auto bg-gray-50"),u($,"class","relative"),u(t,"class","border-b border-gray-200"),u(n,"class","bg-white rounded-lg border border-gray-200 overflow-hidden shadow-sm"),this.first=n},m(E,O){de(E,n,O),i(n,t),i(t,r),i(r,l),i(l,a),i(l,h),i(r,N),i(r,D),ee(v,D,null),i(t,g),i(t,$),i($,I),i(I,F),S.m(A,F),i(n,c),T&&T.m(n,null),i(n,f),p=!0,b||(y=fe(D,"click",w),b=!0)},p(E,O){e=E,(!p||O[0]&128)&&o!==(o=e[81]+1+"")&&Ue(h,o),(!p||O[0]&128)&&A!==(A=ct.highlight(e[79].code,ct.languages.python,"python")+"")&&S.p(A),e[79].result&&e[79].result.type==="audio"?T?(T.p(e,O),O[0]&128&&x(T,1)):(T=yn(e),T.c(),x(T,1),T.m(n,f)):T&&(Ze(),P(T,1,1,()=>{T=null}),Ke())},i(E){p||(x(v.$$.fragment,E),x(T),p=!0)},o(E){P(v.$$.fragment,E),P(T),p=!1},d(E){E&&d(n),Q(v),T&&T.d(),b=!1,y()}}}function wn(s){let e,n,t;return{c(){e=_("p"),n=Z("Logged in as: "),t=Z(s[24]),this.h()},l(r){e=m(r,"P",{class:!0});var l=k(e);n=K(l,"Logged in as: "),t=K(l,s[24]),l.forEach(d),this.h()},h(){u(e,"class","text-xs text-gray-400 mt-2")},m(r,l){de(r,e,l),i(e,n),i(e,t)},p(r,l){l[0]&16777216&&Ue(t,r[24])},d(r){r&&d(e)}}}function nl(s){let e,n,t;return e=new Ut({props:{size:20}}),{c(){ne(e.$$.fragment),n=Z(` + Generate speech`)},l(r){te(e.$$.fragment,r),n=K(r,` + Generate speech`)},m(r,l){ee(e,r,l),de(r,n,l),t=!0},i(r){t||(x(e.$$.fragment,r),t=!0)},o(r){P(e.$$.fragment,r),t=!1},d(r){r&&d(n),Q(e,r)}}}function rl(s){let e,n,t;return e=new dr({props:{size:20,class:"animate-spin"}}),{c(){ne(e.$$.fragment),n=Z(` + Generating...`)},l(r){te(e.$$.fragment,r),n=K(r,` + Generating...`)},m(r,l){ee(e,r,l),de(r,n,l),t=!0},i(r){t||(x(e.$$.fragment,r),t=!0)},o(r){P(e.$$.fragment,r),t=!1},d(r){r&&d(n),Q(e,r)}}}function $n(s){let e,n,t,r,l,a,o,h,N,D,v,g,$,I,F,S,A,c="Share",f,p,b,y="Download",w,T,E,O,V,L,C,H,z,ae,B=Dt(s[16])+"",j,J,oe,ue,ge,me,_e=Dt(s[17])+"",re,ce,le,ye,we,qe,be,Ee,$e,We,Re,Se,pt,Ce,ft,dt=Dt(s[16])+"",He,et,Pe,ot,yt,Xe,st=Dt(s[17])+"",gt,kt,Ae,tt,Oe,It,nt,rt,it,U,q,ie,ve,Ie,ke,De;F=new Yt({props:{size:14,class:"text-gray-600"}}),T=new Xt({props:{size:14,class:"text-gray-600"}});const mt=[sl,ll],he=[];function zt(W,Te){return W[15]?0:1}L=zt(s),C=he[L]=mt[L](s),we=new Vr({props:{size:20,class:"text-gray-600"}});const G=[ol,al],se=[];function Ne(W,Te){return W[15]?0:1}Ee=Ne(s),$e=se[Ee]=G[Ee](s),Se=new Ur({props:{size:20,class:"text-gray-600"}}),Oe=new Yt({props:{size:14}}),it=new Xt({props:{size:16,class:"text-gray-600"}}),ie=new mr({props:{size:16,class:"text-gray-600"}});let Y=s[10]&&En(s);return{c(){e=_("div"),n=_("div"),t=_("div"),r=R(),l=_("div"),a=_("h3"),o=Z(s[18]),h=R(),N=_("p"),D=Z(s[2]),v=Z(" • Created 1 second ago"),g=R(),$=_("div"),I=_("button"),ne(F.$$.fragment),S=R(),A=_("span"),A.textContent=c,f=R(),p=_("button"),b=_("span"),b.textContent=y,w=R(),ne(T.$$.fragment),E=R(),O=_("div"),V=_("button"),C.c(),H=R(),z=_("div"),ae=_("span"),j=Z(B),J=R(),oe=_("div"),ue=_("div"),ge=R(),me=_("span"),re=Z(_e),ce=R(),le=_("div"),ye=_("button"),ne(we.$$.fragment),qe=R(),be=_("button"),$e.c(),We=R(),Re=_("button"),ne(Se.$$.fragment),pt=R(),Ce=_("div"),ft=_("span"),He=Z(dt),et=R(),Pe=_("div"),ot=_("div"),yt=R(),Xe=_("span"),gt=Z(st),kt=R(),Ae=_("div"),tt=_("button"),ne(Oe.$$.fragment),It=Z(` + Share`),nt=R(),rt=_("button"),ne(it.$$.fragment),U=R(),q=_("button"),ne(ie.$$.fragment),ve=R(),Y&&Y.c(),this.h()},l(W){e=m(W,"DIV",{class:!0});var Te=k(e);n=m(Te,"DIV",{class:!0});var lt=k(n);t=m(lt,"DIV",{class:!0}),k(t).forEach(d),r=M(lt),l=m(lt,"DIV",{class:!0});var ht=k(l);a=m(ht,"H3",{class:!0});var wt=k(a);o=K(wt,s[18]),wt.forEach(d),h=M(ht),N=m(ht,"P",{class:!0});var ut=k(N);D=K(ut,s[2]),v=K(ut," • Created 1 second ago"),ut.forEach(d),ht.forEach(d),g=M(lt),$=m(lt,"DIV",{class:!0});var $t=k($);I=m($t,"BUTTON",{class:!0});var Ct=k(I);te(F.$$.fragment,Ct),S=M(Ct),A=m(Ct,"SPAN",{class:!0,"data-svelte-h":!0}),xe(A)!=="svelte-hbn8gl"&&(A.textContent=c),Ct.forEach(d),f=M($t),p=m($t,"BUTTON",{class:!0});var Et=k(p);b=m(Et,"SPAN",{class:!0,"data-svelte-h":!0}),xe(b)!=="svelte-h01aeg"&&(b.textContent=y),w=M(Et),te(T.$$.fragment,Et),Et.forEach(d),$t.forEach(d),lt.forEach(d),E=M(Te),O=m(Te,"DIV",{class:!0});var St=k(O);V=m(St,"BUTTON",{class:!0});var xt=k(V);C.l(xt),xt.forEach(d),H=M(St),z=m(St,"DIV",{class:!0});var at=k(z);ae=m(at,"SPAN",{class:!0});var Ft=k(ae);j=K(Ft,B),Ft.forEach(d),J=M(at),oe=m(at,"DIV",{class:!0});var Vt=k(oe);ue=m(Vt,"DIV",{class:!0,style:!0}),k(ue).forEach(d),Vt.forEach(d),ge=M(at),me=m(at,"SPAN",{class:!0});var At=k(me);re=K(At,_e),At.forEach(d),at.forEach(d),St.forEach(d),ce=M(Te),le=m(Te,"DIV",{class:!0});var Ye=k(le);ye=m(Ye,"BUTTON",{class:!0,title:!0});var Mt=k(ye);te(we.$$.fragment,Mt),Mt.forEach(d),qe=M(Ye),be=m(Ye,"BUTTON",{class:!0});var _t=k(be);$e.l(_t),_t.forEach(d),We=M(Ye),Re=m(Ye,"BUTTON",{class:!0,title:!0});var Jt=k(Re);te(Se.$$.fragment,Jt),Jt.forEach(d),pt=M(Ye),Ce=m(Ye,"DIV",{class:!0});var Pt=k(Ce);ft=m(Pt,"SPAN",{class:!0});var Qt=k(ft);He=K(Qt,dt),Qt.forEach(d),et=M(Pt),Pe=m(Pt,"DIV",{class:!0});var en=k(Pe);ot=m(en,"DIV",{class:!0,style:!0}),k(ot).forEach(d),en.forEach(d),yt=M(Pt),Xe=m(Pt,"SPAN",{class:!0});var tn=k(Xe);gt=K(tn,st),tn.forEach(d),Pt.forEach(d),kt=M(Ye),Ae=m(Ye,"DIV",{class:!0});var Ot=k(Ae);tt=m(Ot,"BUTTON",{class:!0});var qt=k(tt);te(Oe.$$.fragment,qt),It=K(qt,` + Share`),qt.forEach(d),nt=M(Ot),rt=m(Ot,"BUTTON",{class:!0,title:!0});var nn=k(rt);te(it.$$.fragment,nn),nn.forEach(d),U=M(Ot),q=m(Ot,"BUTTON",{class:!0,title:!0});var rn=k(q);te(ie.$$.fragment,rn),rn.forEach(d),Ot.forEach(d),Ye.forEach(d),ve=M(Te),Y&&Y.l(Te),Te.forEach(d),this.h()},h(){u(t,"class","w-2 h-2 bg-green-500 rounded-full"),u(a,"class","font-medium text-gray-900 text-sm"),u(N,"class","text-xs text-gray-500"),u(l,"class","flex-1"),u(A,"class","text-gray-700"),u(I,"class","flex items-center gap-1.5 px-3 py-1.5 text-sm border border-gray-200 rounded-md hover:bg-gray-50 transition-colors"),u(b,"class","text-gray-700"),u(p,"class","flex items-center gap-1.5 px-3 py-1.5 text-sm border border-gray-200 rounded-md hover:bg-gray-50 transition-colors"),u($,"class","flex items-center gap-2"),u(n,"class","flex items-center gap-3 mb-4"),u(V,"class","w-8 h-8 bg-black rounded-full flex items-center justify-center hover:bg-gray-800 transition-colors"),u(ae,"class","text-xs text-gray-500 font-mono"),u(ue,"class","h-full bg-gradient-to-r from-amber-400 to-orange-500 rounded-full transition-all"),Rt(ue,"width",s[16]/s[17]*100+"%"),u(oe,"class","flex-1 h-1 bg-gray-200 rounded-full cursor-pointer"),u(me,"class","text-xs text-gray-500 font-mono"),u(z,"class","flex-1 flex items-center gap-2"),u(O,"class","flex items-center gap-3 mb-4"),u(ye,"class","p-2 hover:bg-gray-100 rounded-full"),u(ye,"title","Skip back"),u(be,"class","w-12 h-12 bg-black rounded-full flex items-center justify-center hover:bg-gray-800 transition-colors"),u(Re,"class","p-2 hover:bg-gray-100 rounded-full"),u(Re,"title","Skip forward"),u(ft,"class","text-xs text-gray-500 font-mono"),u(ot,"class","h-full bg-gradient-to-r from-amber-400 to-orange-500 rounded-full transition-all"),Rt(ot,"width",s[16]/s[17]*100+"%"),u(Pe,"class","flex-1 h-1 bg-gray-200 rounded-full"),u(Xe,"class","text-xs text-gray-500 font-mono"),u(Ce,"class","flex-1 flex items-center gap-3"),u(tt,"class","flex items-center gap-2 px-3 py-1.5 text-sm border border-gray-200 rounded-md hover:bg-gray-50"),u(rt,"class","p-2 hover:bg-gray-100 rounded-md"),u(rt,"title","Download"),u(q,"class","p-2 hover:bg-gray-100 rounded-md"),u(q,"title","More options"),u(Ae,"class","flex items-center gap-2"),u(le,"class","flex items-center gap-4 mb-4"),u(e,"class","p-4 border border-gray-200 rounded-lg bg-white")},m(W,Te){de(W,e,Te),i(e,n),i(n,t),i(n,r),i(n,l),i(l,a),i(a,o),i(l,h),i(l,N),i(N,D),i(N,v),i(n,g),i(n,$),i($,I),ee(F,I,null),i(I,S),i(I,A),i($,f),i($,p),i(p,b),i(p,w),ee(T,p,null),i(e,E),i(e,O),i(O,V),he[L].m(V,null),i(O,H),i(O,z),i(z,ae),i(ae,j),i(z,J),i(z,oe),i(oe,ue),i(z,ge),i(z,me),i(me,re),i(e,ce),i(e,le),i(le,ye),ee(we,ye,null),i(le,qe),i(le,be),se[Ee].m(be,null),i(le,We),i(le,Re),ee(Se,Re,null),i(le,pt),i(le,Ce),i(Ce,ft),i(ft,He),i(Ce,et),i(Ce,Pe),i(Pe,ot),i(Ce,yt),i(Ce,Xe),i(Xe,gt),i(le,kt),i(le,Ae),i(Ae,tt),ee(Oe,tt,null),i(tt,It),i(Ae,nt),i(Ae,rt),ee(it,rt,null),i(Ae,U),i(Ae,q),ee(ie,q,null),i(e,ve),Y&&Y.m(e,null),Ie=!0,ke||(De=[fe(I,"click",Pn),fe(p,"click",s[33]),fe(V,"click",s[28]),fe(be,"click",s[28]),fe(tt,"click",Pn),fe(rt,"click",s[33])],ke=!0)},p(W,Te){(!Ie||Te[0]&262144)&&Ue(o,W[18]),(!Ie||Te[0]&4)&&Ue(D,W[2]);let lt=L;L=zt(W),L!==lt&&(Ze(),P(he[lt],1,1,()=>{he[lt]=null}),Ke(),C=he[L],C||(C=he[L]=mt[L](W),C.c()),x(C,1),C.m(V,null)),(!Ie||Te[0]&65536)&&B!==(B=Dt(W[16])+"")&&Ue(j,B),(!Ie||Te[0]&196608)&&Rt(ue,"width",W[16]/W[17]*100+"%"),(!Ie||Te[0]&131072)&&_e!==(_e=Dt(W[17])+"")&&Ue(re,_e);let ht=Ee;Ee=Ne(W),Ee!==ht&&(Ze(),P(se[ht],1,1,()=>{se[ht]=null}),Ke(),$e=se[Ee],$e||($e=se[Ee]=G[Ee](W),$e.c()),x($e,1),$e.m(be,null)),(!Ie||Te[0]&65536)&&dt!==(dt=Dt(W[16])+"")&&Ue(He,dt),(!Ie||Te[0]&196608)&&Rt(ot,"width",W[16]/W[17]*100+"%"),(!Ie||Te[0]&131072)&&st!==(st=Dt(W[17])+"")&&Ue(gt,st),W[10]?Y?Y.p(W,Te):(Y=En(W),Y.c(),Y.m(e,null)):Y&&(Y.d(1),Y=null)},i(W){Ie||(x(F.$$.fragment,W),x(T.$$.fragment,W),x(C),x(we.$$.fragment,W),x($e),x(Se.$$.fragment,W),x(Oe.$$.fragment,W),x(it.$$.fragment,W),x(ie.$$.fragment,W),Ie=!0)},o(W){P(F.$$.fragment,W),P(T.$$.fragment,W),P(C),P(we.$$.fragment,W),P($e),P(Se.$$.fragment,W),P(Oe.$$.fragment,W),P(it.$$.fragment,W),P(ie.$$.fragment,W),Ie=!1},d(W){W&&d(e),Q(F),Q(T),he[L].d(),Q(we),se[Ee].d(),Q(Se),Q(Oe),Q(it),Q(ie),Y&&Y.d(),ke=!1,vt(De)}}}function ll(s){let e,n;return e=new Ut({props:{size:14,class:"text-white ml-0.5"}}),{c(){ne(e.$$.fragment)},l(t){te(e.$$.fragment,t)},m(t,r){ee(e,t,r),n=!0},i(t){n||(x(e.$$.fragment,t),n=!0)},o(t){P(e.$$.fragment,t),n=!1},d(t){Q(e,t)}}}function sl(s){let e;return{c(){e=_("div"),this.h()},l(n){e=m(n,"DIV",{class:!0}),k(e).forEach(d),this.h()},h(){u(e,"class","pause-filled text-white")},m(n,t){de(n,e,t)},i:Tt,o:Tt,d(n){n&&d(e)}}}function al(s){let e,n;return e=new Ut({props:{size:20,class:"text-white ml-0.5"}}),{c(){ne(e.$$.fragment)},l(t){te(e.$$.fragment,t)},m(t,r){ee(e,t,r),n=!0},i(t){n||(x(e.$$.fragment,t),n=!0)},o(t){P(e.$$.fragment,t),n=!1},d(t){Q(e,t)}}}function ol(s){let e;return{c(){e=_("div"),this.h()},l(n){e=m(n,"DIV",{class:!0}),k(e).forEach(d),this.h()},h(){u(e,"class","pause-filled text-white scale-150")},m(n,t){de(n,e,t)},i:Tt,o:Tt,d(n){n&&d(e)}}}function En(s){let e,n,t,r;return{c(){e=_("audio"),this.h()},l(l){e=m(l,"AUDIO",{src:!0,style:!0}),k(e).forEach(d),this.h()},h(){Gt(e.src,n=s[10])||u(e,"src",n),Rt(e,"display","none")},m(l,a){de(l,e,a),s[45](e),t||(r=[fe(e,"loadedmetadata",s[29]),fe(e,"timeupdate",s[30]),fe(e,"play",s[31]),fe(e,"pause",s[32])],t=!0)},p(l,a){a[0]&1024&&!Gt(e.src,n=l[10])&&u(e,"src",n)},d(l){l&&d(e),s[45](null),t=!1,vt(r)}}}function Sn(s){let e=s[74].name+"",n,t,r=s[74].badge&&il(s);return{c(){n=Z(e),r&&r.c(),t=Nt()},l(l){n=K(l,e),r&&r.l(l),t=Nt()},m(l,a){de(l,n,a),r&&r.m(l,a),de(l,t,a)},p(l,a){l[74].badge&&r.p(l,a)},d(l){l&&(d(n),d(t)),r&&r.d(l)}}}function il(s){let e,n,t,r=s[74].badge+"",l,a;return{c(){e=Z(" "),n=_("span"),t=Z("("),l=Z(r),a=Z(")"),this.h()},l(o){e=K(o," "),n=m(o,"SPAN",{class:!0});var h=k(n);t=K(h,"("),l=K(h,r),a=K(h,")"),h.forEach(d),this.h()},h(){u(n,"class","text-xs text-gray-500")},m(o,h){de(o,e,h),de(o,n,h),i(n,t),i(n,l),i(n,a)},p:Tt,d(o){o&&(d(e),d(n))}}}function An(s){let e,n=s[74].name===s[3]&&Sn(s);return{c(){n&&n.c(),e=Nt()},l(t){n&&n.l(t),e=Nt()},m(t,r){n&&n.m(t,r),de(t,e,r)},p(t,r){t[74].name===t[3]?n?n.p(t,r):(n=Sn(t),n.c(),n.m(e.parentNode,e)):n&&(n.d(1),n=null)},d(t){t&&d(e),n&&n.d(t)}}}function Tn(s){let e,n=bt(s[25]),t=[];for(let r=0;r{E[z]=null}),Ke(),c=E[A],c||(c=E[A]=T[A](s),c.c()),x(c,1),c.m(S,null)),(!b||H[0]&4&&p!==(p="w-full flex items-center justify-between p-2 rounded-lg hover:bg-gray-50 transition-colors text-left group border border-transparent "+(s[71].name===s[2]?"bg-gray-100 border-gray-200":"")))&&u(e,"class",p)},i(C){b||(x(c),b=!0)},o(C){P(c),b=!1},d(C){C&&d(e),E[A].d(),y=!1,vt(w)}}}function Nn(s){let e,n;return{c(){e=_("div"),n=Z(s[11]),this.h()},l(t){e=m(t,"DIV",{class:!0});var r=k(e);n=K(r,s[11]),r.forEach(d),this.h()},h(){u(e,"class","fixed bottom-4 right-4 px-4 py-2 bg-gray-900 text-white rounded-lg shadow-lg z-50 animate-fade-in svelte-1sw3914")},m(t,r){de(t,e,r),i(e,n)},p(t,r){r[0]&2048&&Ue(n,t[11])},d(t){t&&d(e)}}}function Cn(s){let e,n,t,r,l,a,o,h,N,D,v,g,$="An error occurred while processing your request",I,F,S,A,c,f,p,b,y,w,T,E,O="Close",V,L,C;a=new Xn({props:{size:20,class:"text-red-600"}}),S=new Gr({props:{size:20,class:"text-gray-500"}});let H=s[23]&&xn(s);return y=new Ht({props:{size:16}}),{c(){e=_("div"),n=_("div"),t=_("div"),r=_("div"),l=_("div"),ne(a.$$.fragment),o=R(),h=_("div"),N=_("h3"),D=Z(s[22]),v=R(),g=_("p"),g.textContent=$,I=R(),F=_("button"),ne(S.$$.fragment),A=R(),c=_("div"),H&&H.c(),f=R(),p=_("div"),b=_("button"),ne(y.$$.fragment),w=Z(` + Copy Error`),T=R(),E=_("button"),E.textContent=O,this.h()},l(z){e=m(z,"DIV",{class:!0});var ae=k(e);n=m(ae,"DIV",{class:!0});var B=k(n);t=m(B,"DIV",{class:!0});var j=k(t);r=m(j,"DIV",{class:!0});var J=k(r);l=m(J,"DIV",{class:!0});var oe=k(l);te(a.$$.fragment,oe),oe.forEach(d),o=M(J),h=m(J,"DIV",{class:!0});var ue=k(h);N=m(ue,"H3",{class:!0});var ge=k(N);D=K(ge,s[22]),ge.forEach(d),v=M(ue),g=m(ue,"P",{class:!0,"data-svelte-h":!0}),xe(g)!=="svelte-1l3zl3"&&(g.textContent=$),ue.forEach(d),J.forEach(d),I=M(j),F=m(j,"BUTTON",{class:!0,title:!0});var me=k(F);te(S.$$.fragment,me),me.forEach(d),j.forEach(d),A=M(B),c=m(B,"DIV",{class:!0});var _e=k(c);H&&H.l(_e),_e.forEach(d),f=M(B),p=m(B,"DIV",{class:!0});var re=k(p);b=m(re,"BUTTON",{class:!0});var ce=k(b);te(y.$$.fragment,ce),w=K(ce,` + Copy Error`),ce.forEach(d),T=M(re),E=m(re,"BUTTON",{class:!0,"data-svelte-h":!0}),xe(E)!=="svelte-1nyppew"&&(E.textContent=O),re.forEach(d),B.forEach(d),ae.forEach(d),this.h()},h(){u(l,"class","w-10 h-10 bg-red-100 rounded-full flex items-center justify-center flex-shrink-0"),u(N,"class","text-lg font-semibold text-gray-900 truncate"),u(g,"class","text-sm text-gray-600"),u(h,"class","min-w-0"),u(r,"class","flex items-center gap-3 min-w-0"),u(F,"class","p-2 hover:bg-red-100 rounded-full transition-colors flex-shrink-0"),u(F,"title","Close"),u(t,"class","flex items-center justify-between p-6 border-b border-gray-200 bg-red-50 flex-shrink-0"),u(c,"class","p-6 overflow-y-auto flex-1 min-h-0"),u(b,"class","flex items-center gap-2 px-4 py-2 text-gray-700 hover:bg-gray-200 rounded-lg transition-colors"),u(E,"class","px-6 py-2 bg-red-600 text-white rounded-lg hover:bg-red-700 transition-colors"),u(p,"class","flex items-center justify-end gap-3 p-6 border-t border-gray-200 bg-gray-50 flex-shrink-0"),u(n,"class","bg-white rounded-xl shadow-2xl max-w-2xl w-full max-h-[80vh] flex flex-col"),u(e,"class","fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50 p-4")},m(z,ae){de(z,e,ae),i(e,n),i(n,t),i(t,r),i(r,l),ee(a,l,null),i(r,o),i(r,h),i(h,N),i(N,D),i(h,v),i(h,g),i(t,I),i(t,F),ee(S,F,null),i(n,A),i(n,c),H&&H.m(c,null),i(n,f),i(n,p),i(p,b),ee(y,b,null),i(b,w),i(p,T),i(p,E),V=!0,L||(C=[fe(F,"click",s[38]),fe(b,"click",s[39]),fe(E,"click",s[38])],L=!0)},p(z,ae){(!V||ae[0]&4194304)&&Ue(D,z[22]),z[23]?H?H.p(z,ae):(H=xn(z),H.c(),H.m(c,null)):H&&(H.d(1),H=null)},i(z){V||(x(a.$$.fragment,z),x(S.$$.fragment,z),x(y.$$.fragment,z),V=!0)},o(z){P(a.$$.fragment,z),P(S.$$.fragment,z),P(y.$$.fragment,z),V=!1},d(z){z&&d(e),Q(a),Q(S),H&&H.d(),Q(y),L=!1,vt(C)}}}function xn(s){let e,n,t="Error Details:",r,l,a;return{c(){e=_("div"),n=_("h4"),n.textContent=t,r=R(),l=_("pre"),a=Z(s[23]),this.h()},l(o){e=m(o,"DIV",{class:!0});var h=k(e);n=m(h,"H4",{class:!0,"data-svelte-h":!0}),xe(n)!=="svelte-3lmggt"&&(n.textContent=t),r=M(h),l=m(h,"PRE",{class:!0});var N=k(l);a=K(N,s[23]),N.forEach(d),h.forEach(d),this.h()},h(){u(n,"class","text-sm font-medium text-gray-900 mb-2"),u(l,"class","text-xs text-gray-700 whitespace-pre-wrap font-mono leading-relaxed break-words"),u(e,"class","bg-gray-50 rounded-lg p-4 border")},m(o,h){de(o,e,h),i(e,n),i(e,r),i(e,l),i(l,a)},p(o,h){h[0]&8388608&&Ue(a,o[23])},d(o){o&&d(e)}}}function dl(s){let e,n,t,r,l,a,o,h,N,D,v,g,$,I,F,S,A,c,f,p,b,y;o=new yr({props:{size:14}}),g=new nr({props:{size:14}});let w=s[12]&&mn();const T=[Yr,Xr],E=[];function O(C,H){return C[4]==="ui"?0:1}S=O(s),A=E[S]=T[S](s);let V=s[11]&&Nn(s),L=s[21]&&Cn(s);return{c(){e=_("div"),n=_("header"),t=_("div"),r=_("div"),l=_("div"),a=_("button"),ne(o.$$.fragment),h=Z(` + UI`),D=R(),v=_("button"),ne(g.$$.fragment),$=Z(` + Code Recorder + `),w&&w.c(),F=R(),A.c(),c=R(),V&&V.c(),f=R(),L&&L.c(),this.h()},l(C){e=m(C,"DIV",{class:!0});var H=k(e);n=m(H,"HEADER",{class:!0});var z=k(n);t=m(z,"DIV",{class:!0});var ae=k(t);r=m(ae,"DIV",{class:!0});var B=k(r);l=m(B,"DIV",{class:!0});var j=k(l);a=m(j,"BUTTON",{class:!0});var J=k(a);te(o.$$.fragment,J),h=K(J,` + UI`),J.forEach(d),D=M(j),v=m(j,"BUTTON",{class:!0});var oe=k(v);te(g.$$.fragment,oe),$=K(oe,` + Code Recorder + `),w&&w.l(oe),oe.forEach(d),j.forEach(d),B.forEach(d),ae.forEach(d),z.forEach(d),F=M(H),A.l(H),c=M(H),V&&V.l(H),f=M(H),L&&L.l(H),H.forEach(d),this.h()},h(){u(a,"class",N="flex items-center gap-1.5 px-3 py-1 text-sm font-medium rounded transition-colors "+(s[4]==="ui"?"bg-white shadow-sm":"text-gray-600")),u(v,"class",I="flex items-center gap-1.5 px-3 py-1 text-sm font-medium rounded transition-colors relative overflow-hidden "+(s[4]==="code"?"bg-white shadow-sm":"text-gray-600")+" "+(s[12]?"code-flash":"")+" svelte-1sw3914"),u(l,"class","flex items-center bg-gray-100 rounded-md p-0.5"),u(r,"class","flex items-center gap-2"),u(t,"class","flex items-center justify-end px-4 py-2"),u(n,"class","border-b border-gray-200 bg-white"),u(e,"class","flex flex-col h-full")},m(C,H){de(C,e,H),i(e,n),i(n,t),i(t,r),i(r,l),i(l,a),ee(o,a,null),i(a,h),i(l,D),i(l,v),ee(g,v,null),i(v,$),w&&w.m(v,null),i(e,F),E[S].m(e,null),i(e,c),V&&V.m(e,null),i(e,f),L&&L.m(e,null),p=!0,b||(y=[fe(a,"click",s[42]),fe(v,"click",s[43]),fe(e,"click",s[35])],b=!0)},p(C,H){(!p||H[0]&16&&N!==(N="flex items-center gap-1.5 px-3 py-1 text-sm font-medium rounded transition-colors "+(C[4]==="ui"?"bg-white shadow-sm":"text-gray-600")))&&u(a,"class",N),C[12]?w||(w=mn(),w.c(),w.m(v,null)):w&&(w.d(1),w=null),(!p||H[0]&4112&&I!==(I="flex items-center gap-1.5 px-3 py-1 text-sm font-medium rounded transition-colors relative overflow-hidden "+(C[4]==="code"?"bg-white shadow-sm":"text-gray-600")+" "+(C[12]?"code-flash":"")+" svelte-1sw3914"))&&u(v,"class",I);let z=S;S=O(C),S===z?E[S].p(C,H):(Ze(),P(E[z],1,1,()=>{E[z]=null}),Ke(),A=E[S],A?A.p(C,H):(A=E[S]=T[S](C),A.c()),x(A,1),A.m(e,c)),C[11]?V?V.p(C,H):(V=Nn(C),V.c(),V.m(e,f)):V&&(V.d(1),V=null),C[21]?L?(L.p(C,H),H[0]&2097152&&x(L,1)):(L=Cn(C),L.c(),x(L,1),L.m(e,null)):L&&(Ze(),P(L,1,1,()=>{L=null}),Ke())},i(C){p||(x(o.$$.fragment,C),x(g.$$.fragment,C),x(A),x(L),p=!0)},o(C){P(o.$$.fragment,C),P(g.$$.fragment,C),P(A),P(L),p=!1},d(C){C&&d(e),Q(o),Q(g),w&&w.d(),E[S].d(),V&&V.d(),L&&L.d(),b=!1,vt(y)}}}function Fn(){if(typeof window<"u"&&window.gradio&&window.gradio.auth_token)return window.gradio.auth_token;const s=document.querySelector('meta[name="hf-oauth-token"]');if(s){const t=s.getAttribute("content");if(t)return t}const e=["hf_access_token","hf_token","huggingface_token","oauth_token","access_token"];for(const t of e){const r=localStorage.getItem(t);if(r)return r}for(const t of e){const r=sessionStorage.getItem(t);if(r)return r}const n=document.cookie.split(";");for(const t of n){const[r,l]=t.trim().split("=");if(r&&(r.includes("token")||r.includes("hf")||r.includes("oauth")))return decodeURIComponent(l)}try{const t=document.querySelector("script[data-hf-token]");if(t){const r=t.getAttribute("data-hf-token");if(r)return r}}catch{}return null}function Dt(s){const e=Math.floor(s/60),n=Math.floor(s%60);return`${e}:${n.toString().padStart(2,"0")}`}function Pn(){}function gl(s,e){const n=document.createElement("a");n.href=s,n.download=`${e||"audio"}.wav`,document.body.appendChild(n),n.click(),document.body.removeChild(n)}function On(s){if(!s)return"0:00";const e=Math.floor(s/60),n=Math.floor(s%60);return`${e}:${n.toString().padStart(2,"0")}`}function hl(s,e,n){let t="In a hole in the ground there lived a hobbit.",r="Lily",l="Chatterbox",a="api",o="ui",h=!1,N=!1,D=[],v=null,g=null,$=null,I=null,F=!1,S=.25,A=.7,c=!1,f=0,p=0,b="",y=null,w=null,T=null,E=!1,O="",V="",L=null;const C=[{id:"chatterbox",name:"Chatterbox",badge:"recommended"},{id:"kokoro",name:"Kokoro",badge:"coming soon",disabled:!0}],H=[{id:"lily",name:"Lily",description:"Warm, conversational voice from a female in her 30s",sample:"/voices/lily.mp3"},{id:"andrew",name:"Andrew",description:"Older British man who speaks clearly and kindly",sample:"/voices/andrew.mp3"},{id:"fairy",name:"Fairy",description:"High and airy female voice that bursts with excitement",sample:"/voices/fairy.mp3"},{id:"pirate",name:"Pirate",description:"Young pirate that speaks gruffly and passionately",sample:"/voices/pirate.mp3"}];async function z(){if(!t.trim())return;if(!Fn()){window.dispatchEvent(new CustomEvent("show-signin-popover"));return}n(6,N=!0),n(10,$=null),n(16,f=0),v||n(8,v=ye()),g||n(9,g=we());const q=qe();o==="ui"&&(n(12,F=!0),setTimeout(()=>{n(12,F=!1)},2500)),n(15,c=!1),n(18,b=t.length>30?t.substring(0,30)+"...":t);try{const ie=Fn(),ve={text:t,voice_id:r.toLowerCase(),model_id:l.toLowerCase(),mode:a,access_token:ie,parameters:{exaggeration:S,temperature:A}},Ie=await fetch("/api/tts/generate",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(ve)});if(!Ie.ok){const De=await Ie.text();throw new Error(`HTTP error! status: ${Ie.status}, body: ${De}`)}const ke=await Ie.json();if(ke.success&&ke.audio_url)n(10,$=ke.audio_url),_e(q,{type:"audio",url:ke.audio_url,title:b,duration:ke.duration}),o==="ui"&&(n(12,F=!0),setTimeout(()=>{n(12,F=!1)},2500));else{const De=ke.error||"Unknown error occurred";Ee("Generation Failed",De),n(10,$=null)}}catch{Ee("Network Error","Failed to connect to the server. Please check your connection and try again."),n(10,$=null)}finally{n(6,N=!1)}}function ae(){y&&(c?y.pause():y.play())}function B(){y&&n(17,p=y.duration)}function j(){y&&n(16,f=y.currentTime)}function J(){n(15,c=!0)}function oe(){n(15,c=!1)}function ue(){if($){const U=document.createElement("a");U.href=$,U.download="speech.wav",U.click()}}function ge(U,q){if(q.stopPropagation(),T===U.name)w&&(w.pause(),w.currentTime=0),n(20,T=null);else{w&&w.pause(),n(20,T=U.name);const ie=U.sample||"/samples/harvard.wav";w?w.src=ie:(w=new Audio(ie),w.addEventListener("ended",()=>{n(20,T=null)})),w.play().catch(ve=>{n(20,T=null)})}}function me(U){U.target.closest(".model-dropdown")||n(5,h=!1)}function _e(U,q=null){const ie={id:Date.now()+Math.random(),code:U,result:q};return n(7,D=[...D,ie]),re(),ie}function re(){if(!L)return;const U=`hfstudio_history_${L}`,q={username:L,setupCode:v,importCode:g,history:D};localStorage.setItem(U,JSON.stringify(q))}function ce(){if(!L)return;const U=`hfstudio_history_${L}`,q=localStorage.getItem(U);if(q)try{const ie=JSON.parse(q);ie.username===L&&(n(8,v=ie.setupCode||null),n(9,g=ie.importCode||null),n(7,D=ie.history||[]))}catch(ie){console.error("Error loading history:",ie)}}function le(){if(n(7,D=[]),n(8,v=null),n(9,g=null),L){const U=`hfstudio_history_${L}`;localStorage.removeItem(U)}}function ye(){return a==="local"?`# Run this command in your terminal: +hfstudio start ${l.toLowerCase()} --port 7861`:`# Install required packages (run in terminal): +pip install huggingface-hub`}function we(){return a==="local"?`from huggingface_hub import InferenceClient + +# Initialize the client for local server +client = InferenceClient(base_url="http://localhost:7861/v1/")`:`# Install required packages +# pip install huggingface-hub + +from huggingface_hub import InferenceClient + +# Initialize the client for HuggingFace API +client = InferenceClient( + provider="fal-ai", + api_key="YOUR_HF_TOKEN", # Get your token from https://huggingface.co/settings/tokens +)`}function qe(){const U={lily:"https://huggingface.co/spaces/Abradi/hfstudio/resolve/main/voices/lily.mp3",andrew:"https://huggingface.co/spaces/Abradi/hfstudio/resolve/main/voices/andrew.mp3",fairy:"https://huggingface.co/spaces/Abradi/hfstudio/resolve/main/voices/fairy.mp3",pirate:"https://huggingface.co/spaces/Abradi/hfstudio/resolve/main/voices/pirate.mp3"};return a==="local"?`# Generate speech +text = """${t}""" + +audio = client.text_to_speech( + text, + extra_body={ + "audio_url": "${U[r.toLowerCase()]}", + "exaggeration": ${S}, + "temperature": ${A} + } +)`:`# Generate speech +text = """${t}""" + +audio = client.text_to_speech( + text, + extra_body={ + "audio_url": "${U[r.toLowerCase()]}", + "exaggeration": ${S}, + "temperature": ${A} + } +)`}function be(U,q="Copied to clipboard!"){navigator.clipboard.writeText(U).then(()=>{n(11,I=q),setTimeout(()=>{n(11,I=null)},2e3)})}function Ee(U,q=""){n(22,O=U),n(23,V=q),n(21,E=!0)}function $e(){n(21,E=!1),n(22,O=""),n(23,V="")}function We(){const U=V?`${O} + +Details: +${V}`:O;be(U,"Error message copied!")}function Re(){const U=[];v&&U.push(`# Setup +${v}`),g&&U.push(`# Imports +${g}`),D.forEach((ie,ve)=>{U.push(`# Cell ${ve+1} +${ie.code}`)});const q=U.join(` + +`);be(q,"All code copied!")}Hn(()=>{const U=()=>{const q=localStorage.getItem("hf_access_token");q&&Se(q)};U(),window.addEventListener("storage",q=>{q.key==="hf_access_token"&&U()})});async function Se(U){try{const q=await fetch("https://huggingface.co/api/whoami-v2",{headers:{Authorization:`Bearer ${U}`}});if(q.ok){const ie=await q.json();n(24,L=ie.name||ie.fullname||ie.login||ie.username||"User"),ce()}}catch(q){console.error("Error fetching user info:",q)}}function pt(U){U.audioElement||(U.audioElement=new Audio(U.result.url),U.audioElement.addEventListener("ended",()=>{U.isPlaying=!1,n(7,D=[...D])})),U.isPlaying?(U.audioElement.pause(),U.isPlaying=!1):(D.forEach(q=>{q!==U&&q.isPlaying&&q.audioElement&&(q.audioElement.pause(),q.isPlaying=!1)}),U.audioElement.play(),U.isPlaying=!0),n(7,D=[...D])}const Ce=()=>n(4,o="ui"),ft=()=>n(4,o="code");function dt(){t=this.value,n(1,t)}function He(U){sn[U?"unshift":"push"](()=>{y=U,n(19,y)})}const et=()=>n(5,h=!h),Pe=U=>{U.disabled||(n(3,l=U.name),n(5,h=!1))},ot=(U,q)=>ge(U,q),yt=U=>n(2,r=U.name);function Xe(){S=an(this.value),n(13,S)}function st(){A=an(this.value),n(14,A)}const gt=()=>n(0,a="api"),kt=()=>n(0,a="local"),Ae=()=>be(v),tt=()=>be(g),Oe=U=>be(U.code),It=U=>pt(U),nt=U=>gl(U.result.url,U.result.title);function rt(U,q,ie){sn[U?"unshift":"push"](()=>{q[ie].audioElement=U,n(7,D)})}const it=(U,q,ie)=>n(7,q[ie].isPlaying=!1,D);return s.$$.update=()=>{s.$$.dirty[0]&1&&a&&(n(8,v=ye()),n(9,g=we()))},[a,t,r,l,o,h,N,D,v,g,$,I,F,S,A,c,f,p,b,y,T,E,O,V,L,C,H,z,ae,B,j,J,oe,ue,ge,me,le,be,$e,We,Re,pt,Ce,ft,dt,He,et,Pe,ot,yt,Xe,st,gt,kt,Ae,tt,Oe,It,nt,rt,it]}class _l extends Le{constructor(e){super(),Ve(this,e,hl,dl,Fe,{},null,[-1,-1,-1])}}export{_l as component};