tosijs-ui 1.2.2 → 1.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/iife.js CHANGED
@@ -1,22 +1,22 @@
1
- (()=>{var O5=Object.defineProperty;var U5=(i)=>i;function $5(i,l){this[i]=U5.bind(null,l)}var F0=(i,l)=>{for(var s in l)O5(i,s,{get:l[s],enumerable:!0,configurable:!0,set:$5.bind(l,s)})};var pl={};F0(pl,{xrControllersText:()=>W9,xrControllers:()=>Y9,xinTagList:()=>Pt,xinTag:()=>ut,xinTabs:()=>e9,xinTable:()=>p3,xinSizer:()=>Bt,xinSidenav:()=>B9,xinSelect:()=>Ci,xinSegmented:()=>nt,xinRating:()=>rt,xinPasswordStrength:()=>st,xinNotification:()=>g5,xinMenu:()=>t3,xinMd:()=>t9,xinLocalized:()=>k1,xinForm:()=>N9,xinFloat:()=>E2,xinField:()=>m9,xinCarousel:()=>Ys,version:()=>P5,updateLocalized:()=>vi,trackDrag:()=>X,tosijs:()=>M2,tosiTagList:()=>A5,tosiTag:()=>cl,tosiSelect:()=>d1,tosiSegmented:()=>b5,tosiRichText:()=>f5,tosiRating:()=>k5,tosiMonth:()=>T9,tosiMenu:()=>f4,tosiForm:()=>d5,tosiField:()=>c5,tosiDialog:()=>r0,testManager:()=>D,tabSelector:()=>c0,svgIcon:()=>Ks,svg2DataUrl:()=>ei,styleSheet:()=>D2,spacer:()=>x2,sizeBreak:()=>wt,sideNav:()=>B0,setLocale:()=>Ts,scriptTag:()=>L,runTests:()=>k0,richTextWidgets:()=>z5,richText:()=>dt,rewriteImports:()=>H1,removeLastMenu:()=>P1,postNotification:()=>it,positionFloat:()=>c4,popMenu:()=>K,popFloat:()=>pi,menu:()=>B4,markdownViewer:()=>j2,mapBox:()=>L9,makeSorter:()=>i0,localize:()=>q,localePicker:()=>i3,loadTransform:()=>d0,liveExample:()=>w0,legacyAliases:()=>j5,isBreached:()=>v5,insertExamples:()=>v0,initLocalization:()=>Es,icons:()=>v,i18n:()=>U,gamepadText:()=>X9,gamepadState:()=>p5,findHighestZ:()=>K1,filterPart:()=>z0,filterBuilder:()=>q9,expect:()=>mi,executeInline:()=>g0,executeInIframe:()=>C0,executeCode:()=>I4,enableTests:()=>Yi,elastic:()=>at,editableRect:()=>H9,dragAndDrop:()=>t0,disableTests:()=>Wi,digest:()=>C5,defineIcons:()=>Zs,defaultColors:()=>dl,dataTable:()=>F4,createThemeWithLegacy:()=>Vt,createTheme:()=>P0,createTestContext:()=>Ni,createSubMenu:()=>n4,createMenuItem:()=>w4,createMenuAction:()=>k4,createDocBrowser:()=>A9,createDarkTheme:()=>F5,componentVars:()=>qt,commandButton:()=>r1,colorInput:()=>di,codeEditor:()=>t2,bringToFront:()=>b1,bodymovinPlayer:()=>Ns,blockStyle:()=>hl,baseVariables:()=>H5,baseTheme:()=>jt,baseDarkTheme:()=>_t,b3d:()=>ms,availableFilters:()=>Ii,applyTheme:()=>Ft,abTest:()=>Qs,XinWord:()=>ct,XinTagList:()=>At,XinTag:()=>bt,XinSizer:()=>xl,XinSelect:()=>gi,XinSegmented:()=>kt,XinRating:()=>tt,XinPasswordStrength:()=>ol,XinNotification:()=>L1,XinMenu:()=>r3,XinLocalized:()=>I,XinForm:()=>Z9,XinFloat:()=>u1,XinField:()=>Q9,XinCarousel:()=>yi,TosiTagList:()=>c2,TosiTag:()=>$2,TosiSelect:()=>A1,TosiSegmented:()=>y2,TosiRating:()=>u0,TosiMonth:()=>sl,TosiMenu:()=>l0,TosiForm:()=>M0,TosiField:()=>f0,TosiDialog:()=>Pi,TabSelector:()=>Qi,SvgIcon:()=>hi,SizeBreak:()=>al,SideNav:()=>h2,STORAGE_KEY:()=>p0,RichText:()=>A0,RemoteSyncManager:()=>V2,MarkdownViewer:()=>Gi,MapBox:()=>R1,LocalePicker:()=>ki,LiveExample:()=>F1,FilterPart:()=>Di,FilterBuilder:()=>Ti,EditableRect:()=>t1,DataTable:()=>fi,CodeEditor:()=>Z1,BodymovinPlayer:()=>s2,B3d:()=>ai,AbTest:()=>l2});var M2={};F0(M2,{xinValue:()=>K5,xinProxy:()=>o4,xinPath:()=>Z5,xin:()=>Z,warnDeprecated:()=>f2,version:()=>r4,vars:()=>y,varDefault:()=>p,validateAgainstConstraints:()=>t4,updates:()=>is,unobserve:()=>O1,touchElement:()=>E0,touch:()=>B1,tosiValue:()=>O,tosiSetValue:()=>Q5,tosiPath:()=>c1,tosi:()=>S,throttle:()=>B2,svgElements:()=>W2,settings:()=>m2,scrollListItemIntoView:()=>Hs,onThemePreferencesChange:()=>gs,onStylesheetChange:()=>xs,on:()=>i2,observe:()=>T0,mathML:()=>i4,makeComponent:()=>si,invertLuminance:()=>L0,initVars:()=>ps,hotReload:()=>Os,getThemePreferences:()=>Tl,getListItem:()=>Q1,getListInstance:()=>S0,getListBinding:()=>R2,getCssVar:()=>Rl,elements:()=>C,deprecated:()=>Q,deleteListItem:()=>As,debounce:()=>Y2,css:()=>E1,boxedProxy:()=>li,boxed:()=>h1,blueprintLoader:()=>Gs,blueprint:()=>Js,bindings:()=>v1,bind:()=>f1,StyleSheet:()=>G1,MoreMath:()=>es,Component:()=>w,Color:()=>z,BlueprintLoader:()=>ti,Blueprint:()=>L2});function U1(i){if(i==null||typeof i!=="object")return i;if(i instanceof Set)return new Set(i);else if(Array.isArray(i))return i.map(U1);let l={};for(let s in i){let t=i[s];if(i!=null&&typeof i==="object")l[s]=U1(t);else l[s]=t}return l}var $l="-xin-data",S1=`.${$l}`,Jl="-xin-event",kl=`.${Jl}`,x1=Symbol.for("xin-path"),$1=Symbol.for("xin-value"),nl="xinObserve",wl="xinBind",Bl="xinOn",K2=Symbol("list-binding"),v2=Symbol("list-instance"),G0=new Map;function J5(i,l){let s=G0.get(i);if(s===void 0)s=new Set,G0.set(i,s);s.add(l)}function G5(i){return G0.get(i)}var zl=new Set;function f2(i,l){if(!zl.has(i))console.warn(l),zl.add(i)}function Q(i,l){let s=!1;return(...t)=>{if(!s)console.warn(l),s=!0;return i(...t)}}var c1=(i)=>{return i&&i[x1]||void 0};function O(i){if(typeof i==="object"&&i!==null){let l=i[$1];return l!==void 0?l:i}return i}function Q5(i,l){if(c1(i)===void 0)throw Error("tosiSetValue requires a xin or boxed proxy");i[$1]=l}var Z5=Q(c1,"xinPath is deprecated. Use tosiPath instead."),K5=Q(O,"xinValue is deprecated. Use tosiValue instead."),k2=new WeakMap,J1=new WeakMap,n2=(i)=>{let l=i.cloneNode();if(l instanceof Element){let s=J1.get(i),t=k2.get(i);if(s!=null)J1.set(l,U1(s));if(t!=null)k2.set(l,U1(t))}for(let s of Array.from(i instanceof HTMLTemplateElement?i.content.childNodes:i.childNodes))if(s instanceof Element||s instanceof DocumentFragment)l.appendChild(n2(s));else l.appendChild(s.cloneNode());return l},m2={debug:!1,perf:!1},m5=(i)=>{try{return JSON.stringify(i)}catch(l){return"{has circular references}"}},Gl=(...i)=>Error(i.map(m5).join(" ")),N5=()=>new Date(parseInt("1000000000",36)+Date.now()).valueOf().toString(36).slice(1),X5=0,Y5=()=>(parseInt("10000",36)+ ++X5).toString(36).slice(-5),W5=()=>N5()+Y5(),Q0=Symbol("delete"),Ql=Symbol("new-object"),j0=Symbol("automatic-index");function Zl(i){if(i==="")return[];if(Array.isArray(i))return i;else{let l=[];while(i.length>0){let s=i.search(/\[[^\]]+\]/);if(s===-1){l.push(i.split("."));break}else{let t=i.slice(0,s);if(i=i.slice(s),t!=="")l.push(t.split("."));if(s=i.indexOf("]")+1,l.push(i.slice(1,s-1)),i.slice(s,s+1)===".")s+=1;i=i.slice(s)}}return l}}var C1=new WeakMap;function Kl(i,l){if(C1.get(i)===void 0)C1.set(i,{});if(C1.get(i)[l]===void 0)C1.get(i)[l]={};let s=C1.get(i)[l];if(l==="_auto_")i.forEach((t,r)=>{if(t[j0]===void 0)t[j0]=W5();s[t[j0]+""]=r});else i.forEach((t,r)=>{s[y1(t,l)+""]=r});return s}function R5(i,l){if(C1.get(i)===void 0||C1.get(i)[l]===void 0)return Kl(i,l);else return C1.get(i)[l]}function L5(i,l,s){s=s+"";let t=R5(i,l)[s];if(t===void 0||y1(i[t],l)+""!==s)t=Kl(i,l)[s];return t}function I5(i,l,s){if(i[l]===void 0&&s!==void 0)i[l]=s;return i[l]}function ml(i,l,s,t){let r=l!==""?L5(i,l,s):s;if(t===Q0)return i.splice(r,1),C1.delete(i),Symbol("deleted");else if(t===Ql){if(l===""&&i[r]===void 0)i[r]={}}else if(t!==void 0)if(r!==void 0)i[r]=t;else if(l!==""&&y1(t,l)+""===s+"")i.push(t),r=i.length-1;else throw Error(`byIdPath insert failed at [${l}=${s}]`);return i[r]}function fl(i){if(!Array.isArray(i))throw Gl("setByPath failed: expected array, found",i)}function Ml(i){if(i==null||!(i instanceof Object))throw Gl("setByPath failed: expected Object, found",i)}function y1(i,l){let s=Zl(l),t=i,r,o,e,h;for(r=0,o=s.length;t!==void 0&&r<o;r++){let a=s[r];if(Array.isArray(a))for(e=0,h=a.length;t!==void 0&&e<h;e++){let x=a[e];t=t[x]}else if(t.length===0){if(t=t[Number(a.slice(1))],a[0]!=="=")return}else if(a.includes("=")){let[x,...c]=a.split("=");t=ml(t,x,c.join("="))}else e=parseInt(a,10),t=t[e]}return t}function D5(i,l,s){let t=i;if(l==="")throw Error("setByPath cannot be used to set the root object");let r=Zl(l);while(t!=null&&r.length>0){let o=r.shift();if(typeof o==="string"){let e=o.indexOf("=");if(e>-1){if(e===0)Ml(t);else fl(t);let h=o.slice(0,e),a=o.slice(e+1);if(t=ml(t,h,a,r.length>0?Ql:s),r.length===0)return!0}else{fl(t);let h=parseInt(o,10);if(r.length>0)t=t[h];else{if(s!==Q0){if(t[h]===s)return!1;t[h]=s}else t.splice(h,1);return!0}}}else if(Array.isArray(o)&&o.length>0){Ml(t);while(o.length>0){let e=o.shift();if(o.length>0||r.length>0)t=I5(t,e,o.length>0?{}:[]);else{if(s!==Q0){if(t[e]===s)return!1;t[e]=s}else{if(!Object.prototype.hasOwnProperty.call(t,e))return!1;delete t[e]}return!0}}}else throw Error(`setByPath failed, bad path ${l}`)}throw Error(`setByPath(${i}, ${l}, ${s}) failed`)}var w2={},Z0=null,T5=(i)=>{Z0=i},R0=()=>{if(Z0===null)throw Error("xin proxy not initialized");return Z0},K0=null,m0=null,S5=(i,l)=>{K0=i,m0=l},G2=()=>{if(K0===null)throw Error("bind not initialized");return K0},Q2=()=>{if(m0===null)throw Error("on not initialized");return m0},bl=Symbol("observer should be removed"),N2=[],D1=[],N0=!1,X0,Y0;function E5(i,l,s,t){let r=G5(i);if(r===void 0)return[];let o=[];for(let e of r){let h=y1(s,e);if(h!==void 0)o.push(`${i}[${e}=${h}]${t}`)}return o}class Nl{description;test;callback;constructor(i,l){let s=typeof l==="string"?`"${l}"`:`function ${l.name}`,t;if(typeof i==="string")this.test=(r)=>typeof r==="string"&&r!==""&&(i.startsWith(r)||r.startsWith(i)),t=`test = "${i}"`;else if(i instanceof RegExp)this.test=i.test.bind(i),t=`test = "${i.toString()}"`;else if(i instanceof Function)this.test=i,t=`test = function ${i.name}`;else throw Error("expect listener test to be a string, RegExp, or test function");if(this.description=`${t}, ${s}`,typeof l==="function")this.callback=l;else throw Error("expect callback to be a path or function");N2.push(this)}}var is=async()=>{if(X0===void 0)return;await X0},ls=()=>{if(m2.perf)console.time("xin async update");let i=Array.from(D1);D1.length=0,N0=!1;for(let l of i)N2.filter((s)=>{let t;try{t=s.test(l)}catch(r){throw Error(`Listener ${s.description} threw "${r}" at "${l}"`)}if(t===bl)return O1(s),!1;return t}).forEach((s)=>{let t;try{t=s.callback(l)}catch(r){console.error(`Listener ${s.description} threw "${r}" handling "${l}"`)}if(t===bl)O1(s)});if(typeof Y0==="function")Y0();if(m2.perf)console.timeEnd("xin async update")},B1=(i)=>{let l=typeof i==="string"?i:c1(i);if(l===void 0)throw console.error("touch was called on an invalid target",i),Error("touch was called on an invalid target");if(N0===!1)X0=new Promise((t)=>{Y0=t}),N0=setTimeout(ls);if(D1.find((t)=>l.startsWith(t))==null)D1.push(l);let s=l.match(/^(.+)\[(\d+)\](.*)$/);if(s!==null){let[,t,r,o]=s,e=parseInt(r,10),h=y1(w2,`${t}[${e}]`);if(h!=null){let a=E5(t,e,h,o);for(let x of a)if(D1.find((c)=>x.startsWith(c))==null)D1.push(x)}}},T1=(i,l)=>{return new Nl(i,l)},O1=(i)=>{let l=N2.indexOf(i);if(l>-1)N2.splice(l,1);else throw Error("unobserve failed, listener not found")},Xl=(i,l)=>{let s=new Event(l);i.dispatchEvent(s)},Yl=(i)=>{if(i instanceof HTMLInputElement)return i.type;else if(i instanceof HTMLSelectElement&&i.hasAttribute("multiple"))return"multi-select";else return"other"},ss=(i,l)=>{switch(Yl(i)){case"radio":i.checked=i.value===l;break;case"checkbox":i.checked=!!l;break;case"date":i.valueAsDate=new Date(l);break;case"multi-select":for(let s of Array.from(i.querySelectorAll("option")))s.selected=l[s.value];break;default:i.value=l}},ts=(i)=>{switch(Yl(i)){case"radio":{let l=i.parentElement?.querySelector(`[name="${i.name}"]:checked`);return l!=null?l.value:null}case"checkbox":return i.checked;case"date":return i.valueAsDate?.toISOString();case"multi-select":return Array.from(i.querySelectorAll("option")).reduce((l,s)=>{return l[s.value]=s.selected,l},{});default:return i.value}},{ResizeObserver:ul}=globalThis,W0=ul!=null?new ul((i)=>{for(let l of i){let s=l.target;Xl(s,"resize")}}):{observe(){},unobserve(){}},Al=(i,l,s=!0)=>{if(i!=null&&l!=null)if(typeof l==="string")i.textContent=l;else if(Array.isArray(l))l.forEach((t)=>{i.append(t instanceof Node&&s?n2(t):t)});else if(l instanceof Node)i.append(s?n2(l):l);else throw Error("expect text content or document node")},Y2=(i,l=250)=>{let s;return(...t)=>{if(s!==void 0)clearTimeout(s);s=setTimeout(()=>{i(...t)},l)}},B2=(i,l=250)=>{let s,t=Date.now()-l,r=!1;return(...o)=>{if(clearTimeout(s),s=setTimeout(()=>{i(...o),t=Date.now()},l),!r&&Date.now()-t>=l){r=!0;try{i(...o),t=Date.now()}finally{r=!1}}}},v1={value:{toDOM:ss,fromDOM(i){return ts(i)}},text:{toDOM(i,l){i.textContent=l}},enabled:{toDOM(i,l){i.disabled=!l}},disabled:{toDOM(i,l){i.disabled=Boolean(l)}},list:{toDOM(i,l,s){R2(i,l,s).update(l)}}};function a1(i){return i.replace(/[A-Z]/g,(l)=>{return`-${l.toLocaleLowerCase()}`})}function Wl(i){return i.replace(/-([a-z])/g,(l,s)=>{return s.toLocaleUpperCase()})}var rs=180/Math.PI,os=Math.PI/180;function e1(i,l,s){return s<i?NaN:l<i?i:l>s?s:l}function w1(i,l,s,t=!0){if(t)s=e1(0,s,1);return s*(l-i)+i}var es={RADIANS_TO_DEGREES:rs,DEGREES_TO_RADIANS:os,clamp:e1,lerp:w1};function Rl(i,l=document.body){let s=getComputedStyle(l);if(i.endsWith(")")&&i.startsWith("var("))i=i.slice(4,-1);return s.getPropertyValue(i).trim()}var hs=(i,l,s)=>{return(0.299*i+0.587*l+0.114*s)/255},V1=(i)=>("00"+Math.round(Number(i)).toString(16)).slice(-2);class Ll{h;s;l;constructor(i,l,s){i/=255,l/=255,s/=255;let t=Math.max(i,l,s),r=t-Math.min(i,l,s),o=r!==0?t===i?(l-s)/r:t===l?2+(s-i)/r:4+(i-l)/r:0;this.h=60*o<0?60*o+360:60*o,this.s=r!==0?t<=0.5?r/(2*t-r):r/(2-(2*t-r)):0,this.l=(2*t-r)/2}}var I1=globalThis.document!==void 0?globalThis.document.createElement("span"):void 0;class z{r;g;b;a;static fromVar(i,l=document.body){return z.fromCss(Rl(i,l))}static fromCss(i){let l=i.match(/^#([0-9a-fA-F]+)$/);if(l){let a=l[1];if(a.length===3)return new z(parseInt(a[0]+a[0],16),parseInt(a[1]+a[1],16),parseInt(a[2]+a[2],16));if(a.length===4)return new z(parseInt(a[0]+a[0],16),parseInt(a[1]+a[1],16),parseInt(a[2]+a[2],16),parseInt(a[3]+a[3],16)/255);if(a.length===6)return new z(parseInt(a.slice(0,2),16),parseInt(a.slice(2,4),16),parseInt(a.slice(4,6),16));if(a.length===8)return new z(parseInt(a.slice(0,2),16),parseInt(a.slice(2,4),16),parseInt(a.slice(4,6),16),parseInt(a.slice(6,8),16)/255)}let s=i;if(I1 instanceof HTMLSpanElement)I1.style.color="black",I1.style.color=i,document.body.appendChild(I1),s=getComputedStyle(I1).color,I1.remove();let[t,r,o,e]=s.match(/[\d.]+/g)||["0","0","0","0"],h=s.startsWith("color(srgb")?255:1;return new z(Number(t)*h,Number(r)*h,Number(o)*h,e==null?1:Number(e))}static fromHsl(i,l,s,t=1){let r,o,e;if(l===0)r=o=e=s;else{let a=(g,B,k)=>{if(k<0)k+=1;if(k>1)k-=1;if(k<0.16666666666666666)return g+(B-g)*6*k;if(k<0.5)return B;if(k<0.6666666666666666)return g+(B-g)*(0.6666666666666666-k)*6;return g},x=s<0.5?s*(1+l):s+l-s*l,c=2*s-x,d=(i%360+360)%360/360;r=a(c,x,d+0.3333333333333333),o=a(c,x,d),e=a(c,x,d-0.3333333333333333)}let h=new z(r*255,o*255,e*255,t);return h.hslCached={h:(i%360+360)%360,s:l,l:s},h}static black=new z(0,0,0);static white=new z(255,255,255);constructor(i,l,s,t=1){this.r=e1(0,i,255),this.g=e1(0,l,255),this.b=e1(0,s,255),this.a=e1(0,t,1)}get inverse(){return new z(255-this.r,255-this.g,255-this.b,this.a)}get inverseLuminance(){let{h:i,s:l,l:s}=this._hsl;return z.fromHsl(i,l,1-s,this.a)}get opaque(){return this.a===1?this:new z(this.r,this.g,this.b,1)}contrasting(i=1){return this.opaque.blend(this.brightness>0.5?z.black:z.white,i)}get rgb(){let{r:i,g:l,b:s}=this;return`rgb(${i.toFixed(0)},${l.toFixed(0)},${s.toFixed(0)})`}get rgba(){let{r:i,g:l,b:s,a:t}=this;return`rgba(${i.toFixed(0)},${l.toFixed(0)},${s.toFixed(0)},${t.toFixed(2)})`}get RGBA(){return[this.r/255,this.g/255,this.b/255,this.a]}get ARGB(){return[this.a,this.r/255,this.g/255,this.b/255]}hslCached;get _hsl(){if(this.hslCached==null)this.hslCached=new Ll(this.r,this.g,this.b);return this.hslCached}get hsl(){let{h:i,s:l,l:s}=this._hsl;return`hsl(${i.toFixed(0)}deg ${(l*100).toFixed(0)}% ${(s*100).toFixed(0)}%)`}get hsla(){let{h:i,s:l,l:s}=this._hsl;return`hsl(${i.toFixed(0)}deg ${(l*100).toFixed(0)}% ${(s*100).toFixed(0)}% / ${(this.a*100).toFixed(0)}%)`}get mono(){let i=this.brightness*255;return new z(i,i,i)}get brightness(){return hs(this.r,this.g,this.b)}get html(){return this.toString()}toString(){return this.a===1?"#"+V1(this.r)+V1(this.g)+V1(this.b):"#"+V1(this.r)+V1(this.g)+V1(this.b)+V1(Math.floor(255*this.a))}brighten(i){let{h:l,s,l:t}=this._hsl,r=e1(0,t+i*(1-t),1);return z.fromHsl(l,s,r,this.a)}darken(i){let{h:l,s,l:t}=this._hsl,r=e1(0,t*(1-i),1);return z.fromHsl(l,s,r,this.a)}saturate(i){let{h:l,s,l:t}=this._hsl,r=e1(0,s+i*(1-s),1);return z.fromHsl(l,r,t,this.a)}desaturate(i){let{h:l,s,l:t}=this._hsl,r=e1(0,s*(1-i),1);return z.fromHsl(l,r,t,this.a)}rotate(i){let{h:l,s,l:t}=this._hsl,r=(l+360+i)%360;return z.fromHsl(r,s,t,this.a)}opacity(i){let{h:l,s,l:t}=this._hsl;return z.fromHsl(l,s,t,i)}swatch(){return console.log(`%c %c ${this.html}, ${this.rgba}`,`background-color: ${this.html}`,"background-color: transparent"),this}blend(i,l){return new z(w1(this.r,i.r,l),w1(this.g,i.g,l),w1(this.b,i.b,l),w1(this.a,i.a,l))}static blendHue(i,l,s){let t=(l-i+720)%360;if(t<180)return i+s*t;else return i-(360-t)*s}mix(i,l){let s=this._hsl,t=i._hsl;return z.fromHsl(s.s===0?t.h:t.s===0?s.h:z.blendHue(s.h,t.h,l),w1(s.s,t.s,l),w1(s.l,t.l,l),w1(this.a,i.a,l))}colorMix(i,l){return z.fromCss(`color-mix(in hsl, ${this.html}, ${i.html} ${(l*100).toFixed(0)}%)`)}static computedColorStylesheet=null;static computedColors=new Map;static recomputeQueued=!1;static registerComputedColor(i,l,s,t){if(!z.computedColors.has(i))z.computedColors.set(i,{varName:l,scale:s,method:t}),z.queueRecompute()}static queueRecompute(){if(z.recomputeQueued)return;z.recomputeQueued=!0,queueMicrotask(()=>{z.recomputeQueued=!1,z.recomputeColors()})}static recomputeColors(){if(z.computedColors.size===0)return;let i=[];for(let[s,{varName:t,scale:r,method:o}]of z.computedColors)try{let e=z.fromVar(t),h;switch(o){case"b":h=r>0?e.brighten(r):e.darken(-r);break;case"s":h=r>0?e.saturate(r):e.desaturate(-r);break;case"h":h=e.rotate(r*100);break;case"o":h=e.opacity(r);break;default:continue}i.push(` ${s}: ${h.rgba};`)}catch(e){}if(i.length===0)return;let l=`:root {
1
+ (()=>{var $5=Object.defineProperty;var J5=(i)=>i;function G5(i,l){this[i]=J5.bind(null,l)}var F0=(i,l)=>{for(var s in l)$5(i,s,{get:l[s],enumerable:!0,configurable:!0,set:G5.bind(l,s)})};var pl={};F0(pl,{xrControllersText:()=>D9,xrControllers:()=>I9,xinTagList:()=>_t,xinTag:()=>Ft,xinTabs:()=>a9,xinTable:()=>C3,xinSizer:()=>bt,xinSidenav:()=>b9,xinSelect:()=>Ci,xinSegmented:()=>ft,xinRating:()=>at,xinPasswordStrength:()=>et,xinNotification:()=>g5,xinMenu:()=>o3,xinMd:()=>o9,xinLocalized:()=>k1,xinForm:()=>R9,xinFloat:()=>E2,xinField:()=>m9,xinCarousel:()=>Rs,version:()=>P5,updateLocalized:()=>vi,trackDrag:()=>m,tosijs:()=>M2,tosiTagList:()=>A5,tosiTag:()=>cl,tosiSelect:()=>d1,tosiSegmented:()=>b5,tosiRichText:()=>f5,tosiRating:()=>k5,tosiMonth:()=>lt,tosiMenu:()=>f4,tosiForm:()=>d5,tosiField:()=>c5,tosiDialog:()=>r0,testManager:()=>T,tabSelector:()=>c0,svgIcon:()=>Xs,svg2DataUrl:()=>ei,styleSheet:()=>D2,spacer:()=>c2,sizeBreak:()=>Mt,sideNav:()=>B0,setLocale:()=>Es,scriptTag:()=>D,runTests:()=>k0,richTextWidgets:()=>z5,richText:()=>vt,rewriteImports:()=>j1,removeLastMenu:()=>F1,postNotification:()=>rt,positionFloat:()=>c4,popMenu:()=>K,popFloat:()=>pi,menu:()=>B4,markdownViewer:()=>j2,mapBox:()=>T9,makeSorter:()=>i0,localize:()=>O,localePicker:()=>s3,loadTransform:()=>d0,liveExample:()=>w0,legacyAliases:()=>j5,isBreached:()=>v5,insertExamples:()=>v0,initLocalization:()=>l3,icons:()=>v,i18n:()=>$,gamepadText:()=>L9,gamepadState:()=>p5,findHighestZ:()=>X1,filterPart:()=>z0,filterBuilder:()=>J9,expect:()=>Ni,executeInline:()=>g0,executeInIframe:()=>C0,executeCode:()=>I4,enableTests:()=>Wi,elastic:()=>dt,editableRect:()=>V9,dragAndDrop:()=>t0,disableTests:()=>mi,digest:()=>C5,defineIcons:()=>Ns,defaultColors:()=>dl,dataTable:()=>F4,createThemeWithLegacy:()=>$t,createTheme:()=>P0,createTestContext:()=>Xi,createSubMenu:()=>n4,createMenuItem:()=>w4,createMenuAction:()=>k4,createDocBrowser:()=>j9,createDarkTheme:()=>F5,componentVars:()=>Jt,commandButton:()=>o1,colorInput:()=>di,codeEditor:()=>o2,bringToFront:()=>A1,bodymovinPlayer:()=>Ws,blockStyle:()=>hl,baseVariables:()=>H5,baseTheme:()=>Ot,baseDarkTheme:()=>Ut,b3d:()=>Ys,availableFilters:()=>Ii,applyTheme:()=>qt,abTest:()=>Ks,XinWord:()=>Ct,XinTagList:()=>jt,XinTag:()=>Ht,XinSizer:()=>xl,XinSelect:()=>gi,XinSegmented:()=>zt,XinRating:()=>ht,XinPasswordStrength:()=>ol,XinNotification:()=>D1,XinMenu:()=>e3,XinLocalized:()=>S,XinForm:()=>Y9,XinFloat:()=>P1,XinField:()=>X9,XinCarousel:()=>yi,TosiTagList:()=>p2,TosiTag:()=>$2,TosiSelect:()=>H1,TosiSegmented:()=>d2,TosiRating:()=>u0,TosiMonth:()=>sl,TosiMenu:()=>l0,TosiForm:()=>M0,TosiField:()=>f0,TosiDialog:()=>Pi,TabSelector:()=>Qi,SvgIcon:()=>hi,SizeBreak:()=>al,SideNav:()=>x2,STORAGE_KEY:()=>p0,RichText:()=>A0,RemoteSyncManager:()=>V2,MarkdownViewer:()=>Gi,MapBox:()=>I1,LocalePicker:()=>ki,LiveExample:()=>_1,FilterPart:()=>Di,FilterBuilder:()=>Si,EditableRect:()=>r1,DataTable:()=>fi,CodeEditor:()=>N1,BodymovinPlayer:()=>r2,B3d:()=>ai,AbTest:()=>t2});var M2={};F0(M2,{xinValue:()=>X5,xinProxy:()=>o4,xinPath:()=>N5,xin:()=>Z,warnDeprecated:()=>f2,version:()=>r4,vars:()=>y,varDefault:()=>p,validateAgainstConstraints:()=>t4,updates:()=>ss,unobserve:()=>$1,touchElement:()=>E0,touch:()=>f1,tosiValue:()=>U,tosiSetValue:()=>K5,tosiPath:()=>c1,tosi:()=>E,throttle:()=>B2,svgElements:()=>m2,settings:()=>N2,scrollListItemIntoView:()=>js,onThemePreferencesChange:()=>vs,onStylesheetChange:()=>cs,on:()=>s2,observe:()=>S0,mathML:()=>i4,makeComponent:()=>si,invertLuminance:()=>L0,initVars:()=>Cs,hotReload:()=>$s,getThemePreferences:()=>Sl,getListItem:()=>K1,getListInstance:()=>T0,getListBinding:()=>R2,getCssVar:()=>Rl,elements:()=>C,deprecated:()=>Q,deleteListItem:()=>Hs,debounce:()=>W2,css:()=>l2,boxedProxy:()=>li,boxed:()=>h1,blueprintLoader:()=>Zs,blueprint:()=>Qs,bindings:()=>v1,bind:()=>b1,StyleSheet:()=>Z1,MoreMath:()=>as,Component:()=>w,Color:()=>z,BlueprintLoader:()=>ti,Blueprint:()=>L2});function J1(i){if(i==null||typeof i!=="object")return i;if(i instanceof Set)return new Set(i);else if(Array.isArray(i))return i.map(J1);let l={};for(let s in i){let t=i[s];if(i!=null&&typeof i==="object")l[s]=J1(t);else l[s]=t}return l}var $l="-xin-data",i2=`.${$l}`,Jl="-xin-event",kl=`.${Jl}`,x1=Symbol.for("xin-path"),G1=Symbol.for("xin-value"),nl="xinObserve",wl="xinBind",Bl="xinOn",K2=Symbol("list-binding"),v2=Symbol("list-instance"),G0=new Map;function Q5(i,l){let s=G0.get(i);if(s===void 0)s=new Set,G0.set(i,s);s.add(l)}function Z5(i){return G0.get(i)}var zl=new Set;function f2(i,l){if(!zl.has(i))console.warn(l),zl.add(i)}function Q(i,l){let s=!1;return(...t)=>{if(!s)console.warn(l),s=!0;return i(...t)}}var c1=(i)=>{return i&&i[x1]||void 0};function U(i){if(typeof i==="object"&&i!==null){let l=i[G1];return l!==void 0?l:i}return i}function K5(i,l){if(c1(i)===void 0)throw Error("tosiSetValue requires a xin or boxed proxy");i[G1]=l}var N5=Q(c1,"xinPath is deprecated. Use tosiPath instead."),X5=Q(U,"xinValue is deprecated. Use tosiValue instead."),k2=new WeakMap,Q1=new WeakMap,n2=(i)=>{let l=i.cloneNode();if(l instanceof Element){let s=Q1.get(i),t=k2.get(i);if(s!=null)Q1.set(l,J1(s));if(t!=null)k2.set(l,J1(t))}for(let s of Array.from(i instanceof HTMLTemplateElement?i.content.childNodes:i.childNodes))if(s instanceof Element||s instanceof DocumentFragment)l.appendChild(n2(s));else l.appendChild(s.cloneNode());return l},N2={debug:!1,perf:!1},Y5=(i)=>{try{return JSON.stringify(i)}catch(l){return"{has circular references}"}},Gl=(...i)=>Error(i.map(Y5).join(" ")),W5=()=>new Date(parseInt("1000000000",36)+Date.now()).valueOf().toString(36).slice(1),m5=0,R5=()=>(parseInt("10000",36)+ ++m5).toString(36).slice(-5),L5=()=>W5()+R5(),Q0=Symbol("delete"),Ql=Symbol("new-object"),j0=Symbol("automatic-index");function Zl(i){if(i==="")return[];if(Array.isArray(i))return i;else{let l=[];while(i.length>0){let s=i.search(/\[[^\]]+\]/);if(s===-1){l.push(i.split("."));break}else{let t=i.slice(0,s);if(i=i.slice(s),t!=="")l.push(t.split("."));if(s=i.indexOf("]")+1,l.push(i.slice(1,s-1)),i.slice(s,s+1)===".")s+=1;i=i.slice(s)}}return l}}var C1=new WeakMap;function Kl(i,l){if(C1.get(i)===void 0)C1.set(i,{});if(C1.get(i)[l]===void 0)C1.get(i)[l]={};let s=C1.get(i)[l];if(l==="_auto_")i.forEach((t,r)=>{if(t[j0]===void 0)t[j0]=L5();s[t[j0]+""]=r});else i.forEach((t,r)=>{s[y1(t,l)+""]=r});return s}function I5(i,l){if(C1.get(i)===void 0||C1.get(i)[l]===void 0)return Kl(i,l);else return C1.get(i)[l]}function D5(i,l,s){s=s+"";let t=I5(i,l)[s];if(t===void 0||y1(i[t],l)+""!==s)t=Kl(i,l)[s];return t}function S5(i,l,s){if(i[l]===void 0&&s!==void 0)i[l]=s;return i[l]}function Nl(i,l,s,t){let r=l!==""?D5(i,l,s):s;if(t===Q0)return i.splice(r,1),C1.delete(i),Symbol("deleted");else if(t===Ql){if(l===""&&i[r]===void 0)i[r]={}}else if(t!==void 0)if(r!==void 0)i[r]=t;else if(l!==""&&y1(t,l)+""===s+"")i.push(t),r=i.length-1;else throw Error(`byIdPath insert failed at [${l}=${s}]`);return i[r]}function fl(i){if(!Array.isArray(i))throw Gl("setByPath failed: expected array, found",i)}function Ml(i){if(i==null||!(i instanceof Object))throw Gl("setByPath failed: expected Object, found",i)}function y1(i,l){let s=Zl(l),t=i,r,o,e,h;for(r=0,o=s.length;t!==void 0&&r<o;r++){let a=s[r];if(Array.isArray(a))for(e=0,h=a.length;t!==void 0&&e<h;e++){let x=a[e];t=t[x]}else if(t.length===0){if(t=t[Number(a.slice(1))],a[0]!=="=")return}else if(a.includes("=")){let[x,...c]=a.split("=");t=Nl(t,x,c.join("="))}else e=parseInt(a,10),t=t[e]}return t}function T5(i,l,s){let t=i;if(l==="")throw Error("setByPath cannot be used to set the root object");let r=Zl(l);while(t!=null&&r.length>0){let o=r.shift();if(typeof o==="string"){let e=o.indexOf("=");if(e>-1){if(e===0)Ml(t);else fl(t);let h=o.slice(0,e),a=o.slice(e+1);if(t=Nl(t,h,a,r.length>0?Ql:s),r.length===0)return!0}else{fl(t);let h=parseInt(o,10);if(r.length>0)t=t[h];else{if(s!==Q0){if(t[h]===s)return!1;t[h]=s}else t.splice(h,1);return!0}}}else if(Array.isArray(o)&&o.length>0){Ml(t);while(o.length>0){let e=o.shift();if(o.length>0||r.length>0)t=S5(t,e,o.length>0?{}:[]);else{if(s!==Q0){if(t[e]===s)return!1;t[e]=s}else{if(!Object.prototype.hasOwnProperty.call(t,e))return!1;delete t[e]}return!0}}}else throw Error(`setByPath failed, bad path ${l}`)}throw Error(`setByPath(${i}, ${l}, ${s}) failed`)}var w2={},Z0=null,E5=(i)=>{Z0=i},R0=()=>{if(Z0===null)throw Error("xin proxy not initialized");return Z0},K0=null,N0=null,is=(i,l)=>{K0=i,N0=l},G2=()=>{if(K0===null)throw Error("bind not initialized");return K0},Q2=()=>{if(N0===null)throw Error("on not initialized");return N0},bl=Symbol("observer should be removed"),X2=[],T1=[],X0=!1,Y0,W0;function ls(i,l,s,t){let r=Z5(i);if(r===void 0)return[];let o=[];for(let e of r){let h=y1(s,e);if(h!==void 0)o.push(`${i}[${e}=${h}]${t}`)}return o}class Xl{description;test;callback;constructor(i,l){let s=typeof l==="string"?`"${l}"`:`function ${l.name}`,t;if(typeof i==="string")this.test=(r)=>typeof r==="string"&&r!==""&&(i.startsWith(r)||r.startsWith(i)),t=`test = "${i}"`;else if(i instanceof RegExp)this.test=i.test.bind(i),t=`test = "${i.toString()}"`;else if(i instanceof Function)this.test=i,t=`test = function ${i.name}`;else throw Error("expect listener test to be a string, RegExp, or test function");if(this.description=`${t}, ${s}`,typeof l==="function")this.callback=l;else throw Error("expect callback to be a path or function");X2.push(this)}}var ss=async()=>{if(Y0===void 0)return;await Y0},ts=()=>{if(N2.perf)console.time("xin async update");let i=Array.from(T1);T1.length=0,X0=!1;for(let l of i)X2.filter((s)=>{let t;try{t=s.test(l)}catch(r){throw Error(`Listener ${s.description} threw "${r}" at "${l}"`)}if(t===bl)return $1(s),!1;return t}).forEach((s)=>{let t;try{t=s.callback(l)}catch(r){console.error(`Listener ${s.description} threw "${r}" handling "${l}"`)}if(t===bl)$1(s)});if(typeof W0==="function")W0();if(N2.perf)console.timeEnd("xin async update")},f1=(i)=>{let l=typeof i==="string"?i:c1(i);if(l===void 0)throw console.error("touch was called on an invalid target",i),Error("touch was called on an invalid target");if(X0===!1)Y0=new Promise((t)=>{W0=t}),X0=setTimeout(ts);if(T1.find((t)=>l.startsWith(t))==null)T1.push(l);let s=l.match(/^(.+)\[(\d+)\](.*)$/);if(s!==null){let[,t,r,o]=s,e=parseInt(r,10),h=y1(w2,`${t}[${e}]`);if(h!=null){let a=ls(t,e,h,o);for(let x of a)if(T1.find((c)=>x.startsWith(c))==null)T1.push(x)}}},E1=(i,l)=>{return new Xl(i,l)},$1=(i)=>{let l=X2.indexOf(i);if(l>-1)X2.splice(l,1);else throw Error("unobserve failed, listener not found")},Yl=(i,l)=>{let s=new Event(l);i.dispatchEvent(s)},Wl=(i)=>{if(i instanceof HTMLInputElement)return i.type;else if(i instanceof HTMLSelectElement&&i.hasAttribute("multiple"))return"multi-select";else return"other"},rs=(i,l)=>{switch(Wl(i)){case"radio":i.checked=i.value===l;break;case"checkbox":i.checked=!!l;break;case"date":i.valueAsDate=new Date(l);break;case"multi-select":for(let s of Array.from(i.querySelectorAll("option")))s.selected=l[s.value];break;default:i.value=l}},os=(i)=>{switch(Wl(i)){case"radio":{let l=i.parentElement?.querySelector(`[name="${i.name}"]:checked`);return l!=null?l.value:null}case"checkbox":return i.checked;case"date":return i.valueAsDate?.toISOString();case"multi-select":return Array.from(i.querySelectorAll("option")).reduce((l,s)=>{return l[s.value]=s.selected,l},{});default:return i.value}},{ResizeObserver:ul}=globalThis,m0=ul!=null?new ul((i)=>{for(let l of i){let s=l.target;Yl(s,"resize")}}):{observe(){},unobserve(){}},Al=(i,l,s=!0)=>{if(i!=null&&l!=null)if(typeof l==="string")i.textContent=l;else if(Array.isArray(l))l.forEach((t)=>{i.append(t instanceof Node&&s?n2(t):t)});else if(l instanceof Node)i.append(s?n2(l):l);else throw Error("expect text content or document node")},W2=(i,l=250)=>{let s;return(...t)=>{if(s!==void 0)clearTimeout(s);s=setTimeout(()=>{i(...t)},l)}},B2=(i,l=250)=>{let s,t=Date.now()-l,r=!1;return(...o)=>{if(clearTimeout(s),s=setTimeout(()=>{i(...o),t=Date.now()},l),!r&&Date.now()-t>=l){r=!0;try{i(...o),t=Date.now()}finally{r=!1}}}},v1={value:{toDOM:rs,fromDOM(i){return os(i)}},text:{toDOM(i,l){i.textContent=l}},enabled:{toDOM(i,l){i.disabled=!l}},disabled:{toDOM(i,l){i.disabled=Boolean(l)}},list:{toDOM(i,l,s){R2(i,l,s).update(l)}}};function a1(i){return i.replace(/[A-Z]/g,(l)=>{return`-${l.toLocaleLowerCase()}`})}function ml(i){return i.replace(/-([a-z])/g,(l,s)=>{return s.toLocaleUpperCase()})}var es=180/Math.PI,hs=Math.PI/180;function e1(i,l,s){return s<i?NaN:l<i?i:l>s?s:l}function z1(i,l,s,t=!0){if(t)s=e1(0,s,1);return s*(l-i)+i}var as={RADIANS_TO_DEGREES:es,DEGREES_TO_RADIANS:hs,clamp:e1,lerp:z1};function Rl(i,l=document.body){let s=getComputedStyle(l);if(i.endsWith(")")&&i.startsWith("var("))i=i.slice(4,-1);return s.getPropertyValue(i).trim()}var xs=(i,l,s)=>{return(0.299*i+0.587*l+0.114*s)/255},O1=(i)=>("00"+Math.round(Number(i)).toString(16)).slice(-2);class Ll{h;s;l;constructor(i,l,s){i/=255,l/=255,s/=255;let t=Math.max(i,l,s),r=t-Math.min(i,l,s),o=r!==0?t===i?(l-s)/r:t===l?2+(s-i)/r:4+(i-l)/r:0;this.h=60*o<0?60*o+360:60*o,this.s=r!==0?t<=0.5?r/(2*t-r):r/(2-(2*t-r)):0,this.l=(2*t-r)/2}}var S1=globalThis.document!==void 0?globalThis.document.createElement("span"):void 0;class z{r;g;b;a;static fromVar(i,l=document.body){return z.fromCss(Rl(i,l))}static fromCss(i){let l=i.match(/^#([0-9a-fA-F]+)$/);if(l){let a=l[1];if(a.length===3)return new z(parseInt(a[0]+a[0],16),parseInt(a[1]+a[1],16),parseInt(a[2]+a[2],16));if(a.length===4)return new z(parseInt(a[0]+a[0],16),parseInt(a[1]+a[1],16),parseInt(a[2]+a[2],16),parseInt(a[3]+a[3],16)/255);if(a.length===6)return new z(parseInt(a.slice(0,2),16),parseInt(a.slice(2,4),16),parseInt(a.slice(4,6),16));if(a.length===8)return new z(parseInt(a.slice(0,2),16),parseInt(a.slice(2,4),16),parseInt(a.slice(4,6),16),parseInt(a.slice(6,8),16)/255)}let s=i;if(S1 instanceof HTMLSpanElement)S1.style.color="black",S1.style.color=i,document.body.appendChild(S1),s=getComputedStyle(S1).color,S1.remove();let[t,r,o,e]=s.match(/[\d.]+/g)||["0","0","0","0"],h=s.startsWith("color(srgb")?255:1;return new z(Number(t)*h,Number(r)*h,Number(o)*h,e==null?1:Number(e))}static fromHsl(i,l,s,t=1){let r,o,e;if(l===0)r=o=e=s;else{let a=(g,B,k)=>{if(k<0)k+=1;if(k>1)k-=1;if(k<0.16666666666666666)return g+(B-g)*6*k;if(k<0.5)return B;if(k<0.6666666666666666)return g+(B-g)*(0.6666666666666666-k)*6;return g},x=s<0.5?s*(1+l):s+l-s*l,c=2*s-x,d=(i%360+360)%360/360;r=a(c,x,d+0.3333333333333333),o=a(c,x,d),e=a(c,x,d-0.3333333333333333)}let h=new z(r*255,o*255,e*255,t);return h.hslCached={h:(i%360+360)%360,s:l,l:s},h}static black=new z(0,0,0);static white=new z(255,255,255);constructor(i,l,s,t=1){this.r=e1(0,i,255),this.g=e1(0,l,255),this.b=e1(0,s,255),this.a=e1(0,t,1)}get inverse(){return new z(255-this.r,255-this.g,255-this.b,this.a)}get inverseLuminance(){let{h:i,s:l,l:s}=this._hsl;return z.fromHsl(i,l,1-s,this.a)}get opaque(){return this.a===1?this:new z(this.r,this.g,this.b,1)}contrasting(i=1){return this.opaque.blend(this.brightness>0.5?z.black:z.white,i)}get rgb(){let{r:i,g:l,b:s}=this;return`rgb(${i.toFixed(0)},${l.toFixed(0)},${s.toFixed(0)})`}get rgba(){let{r:i,g:l,b:s,a:t}=this;return`rgba(${i.toFixed(0)},${l.toFixed(0)},${s.toFixed(0)},${t.toFixed(2)})`}get RGBA(){return[this.r/255,this.g/255,this.b/255,this.a]}get ARGB(){return[this.a,this.r/255,this.g/255,this.b/255]}hslCached;get _hsl(){if(this.hslCached==null)this.hslCached=new Ll(this.r,this.g,this.b);return this.hslCached}get hsl(){let{h:i,s:l,l:s}=this._hsl;return`hsl(${i.toFixed(0)}deg ${(l*100).toFixed(0)}% ${(s*100).toFixed(0)}%)`}get hsla(){let{h:i,s:l,l:s}=this._hsl;return`hsl(${i.toFixed(0)}deg ${(l*100).toFixed(0)}% ${(s*100).toFixed(0)}% / ${(this.a*100).toFixed(0)}%)`}get mono(){let i=this.brightness*255;return new z(i,i,i)}get brightness(){return xs(this.r,this.g,this.b)}get html(){return this.toString()}toString(){return this.a===1?"#"+O1(this.r)+O1(this.g)+O1(this.b):"#"+O1(this.r)+O1(this.g)+O1(this.b)+O1(Math.floor(255*this.a))}brighten(i){let{h:l,s,l:t}=this._hsl,r=e1(0,t+i*(1-t),1);return z.fromHsl(l,s,r,this.a)}darken(i){let{h:l,s,l:t}=this._hsl,r=e1(0,t*(1-i),1);return z.fromHsl(l,s,r,this.a)}saturate(i){let{h:l,s,l:t}=this._hsl,r=e1(0,s+i*(1-s),1);return z.fromHsl(l,r,t,this.a)}desaturate(i){let{h:l,s,l:t}=this._hsl,r=e1(0,s*(1-i),1);return z.fromHsl(l,r,t,this.a)}rotate(i){let{h:l,s,l:t}=this._hsl,r=(l+360+i)%360;return z.fromHsl(r,s,t,this.a)}opacity(i){let{h:l,s,l:t}=this._hsl;return z.fromHsl(l,s,t,i)}swatch(){return console.log(`%c %c ${this.html}, ${this.rgba}`,`background-color: ${this.html}`,"background-color: transparent"),this}blend(i,l){return new z(z1(this.r,i.r,l),z1(this.g,i.g,l),z1(this.b,i.b,l),z1(this.a,i.a,l))}static blendHue(i,l,s){let t=(l-i+720)%360;if(t<180)return i+s*t;else return i-(360-t)*s}mix(i,l){let s=this._hsl,t=i._hsl;return z.fromHsl(s.s===0?t.h:t.s===0?s.h:z.blendHue(s.h,t.h,l),z1(s.s,t.s,l),z1(s.l,t.l,l),z1(this.a,i.a,l))}colorMix(i,l){return z.fromCss(`color-mix(in hsl, ${this.html}, ${i.html} ${(l*100).toFixed(0)}%)`)}static computedColorStylesheet=null;static computedColors=new Map;static recomputeQueued=!1;static registerComputedColor(i,l,s,t){if(!z.computedColors.has(i))z.computedColors.set(i,{varName:l,scale:s,method:t}),z.queueRecompute()}static queueRecompute(){if(z.recomputeQueued)return;z.recomputeQueued=!0,queueMicrotask(()=>{z.recomputeQueued=!1,z.recomputeColors()})}static recomputeColors(){if(z.computedColors.size===0)return;let i=[];for(let[s,{varName:t,scale:r,method:o}]of z.computedColors)try{let e=z.fromVar(t),h;switch(o){case"b":h=r>0?e.brighten(r):e.darken(-r);break;case"s":h=r>0?e.saturate(r):e.desaturate(-r);break;case"h":h=e.rotate(r*100);break;case"o":h=e.opacity(r);break;default:continue}i.push(` ${s}: ${h.rgba};`)}catch(e){}if(i.length===0)return;let l=`:root {
2
2
  ${i.join(`
3
3
  `)}
4
- }`;if(z.computedColorStylesheet===null)z.computedColorStylesheet=document.createElement("style"),z.computedColorStylesheet.id="tosijs-computed-colors",document.head.append(z.computedColorStylesheet);z.computedColorStylesheet.textContent=l}}var X2=new Set,Pl=!1;function as(){if(!Pl)Pl=!0,X2.add(()=>z.queueRecompute())}function xs(i){return X2.add(i),()=>X2.delete(i)}function ys(){as();for(let i of X2)i()}function G1(i,l){let s=O(l),t=C.style(E1(s));t.id=i,document.head.append(t);let r=c1(l);if(r!==void 0)T0(r,()=>{t.textContent=E1(O(l)),ys()})}var cs=/^(animation-iteration-count|column-count|flex(-grow|-shrink)?|font-weight|line-height|opacity|order|orphans|scale|tab-size|widows|z-index|zoom)$/,Il=(i,l)=>{if(typeof l==="number"&&!cs.test(i))l=`${l}px`;if(i.startsWith("_"))if(i.startsWith("__"))i="--"+i.substring(2),l=`var(${i}-default, ${l})`;else i="--"+i.substring(1);return{prop:i,value:String(l)}},ds=(i,l,s)=>{if(s===void 0)return"";if(s instanceof z)s=s.html;let t=Il(l,s);return`${i} ${t.prop}: ${t.value};`},Dl=(i,l,s="")=>{let t=a1(i);if(typeof l==="object"&&!(l instanceof z)){let r=Object.keys(l).map((o)=>Dl(o,l[o],`${s} `)).join(`
4
+ }`;if(z.computedColorStylesheet===null)z.computedColorStylesheet=document.createElement("style"),z.computedColorStylesheet.id="tosijs-computed-colors",document.head.append(z.computedColorStylesheet);z.computedColorStylesheet.textContent=l}}var Y2=new Set,Pl=!1;function ys(){if(!Pl)Pl=!0,Y2.add(()=>z.queueRecompute())}function cs(i){return Y2.add(i),()=>Y2.delete(i)}function ds(){ys();for(let i of Y2)i()}function Z1(i,l){let s=U(l),t=C.style(l2(s));t.id=i,document.head.append(t);let r=c1(l);if(r!==void 0)S0(r,()=>{t.textContent=l2(U(l)),ds()})}var ps=/^(animation-iteration-count|column-count|flex(-grow|-shrink)?|font-weight|line-height|opacity|order|orphans|scale|tab-size|widows|z-index|zoom)$/,Il=(i,l)=>{if(typeof l==="number"&&!ps.test(i))l=`${l}px`;if(i.startsWith("_"))if(i.startsWith("__"))i="--"+i.substring(2),l=`var(${i}-default, ${l})`;else i="--"+i.substring(1);return{prop:i,value:String(l)}},gs=(i,l,s)=>{if(s===void 0)return"";if(s instanceof z)s=s.html;let t=Il(l,s);return`${i} ${t.prop}: ${t.value};`},Dl=(i,l,s="")=>{let t=a1(i);if(typeof l==="object"&&!(l instanceof z)){let r=Object.keys(l).map((o)=>Dl(o,l[o],`${s} `)).join(`
5
5
  `);return`${s} ${i} {
6
6
  ${r}
7
- ${s} }`}else return ds(s,t,l)},E1=(i,l="")=>{return Object.keys(i).map((s)=>{let t=i[s];if(typeof t==="string"){if(s==="@import")return`@import url('${t}');`;throw Error("top-level string value only allowed for `@import`")}let r=Object.keys(t).map((o)=>Dl(o,t[o])).join(`
7
+ ${s} }`}else return gs(s,t,l)},l2=(i,l="")=>{return Object.keys(i).map((s)=>{let t=i[s];if(typeof t==="string"){if(s==="@import")return`@import url('${t}');`;throw Error("top-level string value only allowed for `@import`")}let r=Object.keys(t).map((o)=>Dl(o,t[o])).join(`
8
8
  `);return`${l}${s} {
9
9
  ${r}
10
10
  }`}).join(`
11
11
 
12
- `)},ps=(i)=>{f2("initVars","initVars is deprecated. Just use _ and __ prefixes instead.");let l={};for(let s of Object.keys(i)){let t=i[s],r=a1(s);l[`--${r}`]=typeof t==="number"&&t!==0?String(t)+"px":t}return l},L0=(i)=>{let l={};for(let s of Object.keys(i)){let t=i[s];if(t instanceof z)l[s]=t.inverseLuminance;else if(typeof t==="string"&&t.match(/^(#[0-9a-fA-F]{3}|rgba?\(|hsla?\()/))l[s]=z.fromCss(t).inverseLuminance}return l},p=new Proxy({},{get(i,l){if(i[l]===void 0){let s="--"+a1(l);i[l]=(t)=>`var(${s}, ${t})`}return i[l]}}),y=new Proxy({},{get(i,l){if(l==="default")return p;if(i[l]==null){l=a1(l);let[,s,,t,r,o]=l.match(/^([-\w]*?)((_)?(\d+)(\w?))?$/)||["",l],e=`--${s}`;if(r!=null){let h=t==null?Number(r)/100:-Number(r)/100;switch(o){case"b":case"s":case"h":case"o":{let a=`--${l}`;z.registerComputedColor(a,e,h,o),i[l]=`var(${a})`}break;case"":i[l]=`calc(var(${e}) * ${h})`;break;default:throw console.error(o),Error(`Unrecognized method ${o} for css variable ${e}`)}}else i[l]=`var(${e})`}return i[l]}});function Tl(){let i=(l)=>typeof matchMedia<"u"&&matchMedia(l).matches;return{colorScheme:i("(prefers-color-scheme: dark)")?"dark":"light",contrast:i("(prefers-contrast: more)")?"more":i("(prefers-contrast: less)")?"less":i("(prefers-contrast: custom)")?"custom":"no-preference",reducedMotion:i("(prefers-reduced-motion: reduce)"),reducedTransparency:i("(prefers-reduced-transparency: reduce)"),forcedColors:i("(forced-colors: active)")}}function gs(i){if(typeof matchMedia>"u")return()=>{};let l=["(prefers-color-scheme: dark)","(prefers-contrast: more)","(prefers-contrast: less)","(prefers-contrast: custom)","(prefers-reduced-motion: reduce)","(prefers-reduced-transparency: reduce)","(forced-colors: active)"],s=()=>i(Tl()),t=l.map((r)=>matchMedia(r));for(let r of t)r.addEventListener("change",s);return()=>{for(let r of t)r.removeEventListener("change",s)}}var Cs="http://www.w3.org/1998/Math/MathML",vs="http://www.w3.org/2000/svg",Z2={},Sl=(i,l,s)=>{let t=Il(a1(l),s);if(t.prop.startsWith("--"))i.style.setProperty(t.prop,t.value);else i.style[l]=t.value},ks=(i)=>{return{toDOM(l,s){Sl(l,i,s)}}},El=(i,l,s)=>{if(l==="style")if(typeof s==="object")for(let t of Object.keys(s))if(c1(s[t]))f1(i,s[t],ks(t));else Sl(i,t,s[t]);else i.setAttribute("style",s);else{let t=a1(l),r=i.constructor.observedAttributes;if(r?.includes(l)||r?.includes(t))if(typeof s==="boolean")s?i.setAttribute(t,""):i.removeAttribute(t);else i.setAttribute(t,s);else if(i[l]!==void 0){let{MathMLElement:o}=globalThis;if(i instanceof SVGElement||o!==void 0&&i instanceof o)i.setAttribute(l,s);else i[l]=s}else if(t==="class")s.split(" ").forEach((o)=>{i.classList.add(o)});else if(i[t]!==void 0)i[t]=s;else if(typeof s==="boolean")s?i.setAttribute(t,""):i.removeAttribute(t);else i.setAttribute(t,s)}},_0={},ns=(i)=>{if(!_0[i])_0[i]={toDOM(l,s){El(l,i,s)}};return _0[i]},ws=(i,l,s)=>{if(l==="apply")s(i);else if(l.match(/^on[A-Z]/)!=null){let t=l.substring(2).toLowerCase();i2(i,t,s)}else if(l==="bind")if((typeof s.binding==="string"?v1[s.binding]:s.binding)!==void 0&&s.value!==void 0)f1(i,s.value,s.binding instanceof Function?{toDOM:s.binding}:s.binding);else throw Error("bad binding");else if(l.match(/^bind[A-Z]/)!=null){let t=l.substring(4,5).toLowerCase()+l.substring(5),r=v1[t];if(r!==void 0)f1(i,s,r);else throw Error(`${l} is not allowed, bindings.${t} is not defined`)}else if(c1(s))f1(i,s,ns(l));else El(i,l,s)},I0=(i,...l)=>{if(Z2[i]===void 0){let[r,o]=i.split("|");if(o===void 0)Z2[i]=globalThis.document.createElement(r);else Z2[i]=globalThis.document.createElementNS(o,r)}let s=Z2[i].cloneNode(),t={};for(let r of l)if(r instanceof Element||r instanceof DocumentFragment||typeof r==="string"||typeof r==="number")if(s instanceof HTMLTemplateElement)s.content.append(r);else s.append(r);else if(c1(r))s.append(C.span({bindText:r}));else Object.assign(t,r);for(let r of Object.keys(t)){let o=t[r];ws(s,r,o)}return s},D0=(...i)=>{let l=globalThis.document.createDocumentFragment();for(let s of i)l.append(s);return l},C=new Proxy({fragment:D0},{get(i,l){if(l=l.replace(/[A-Z]/g,(s)=>`-${s.toLocaleLowerCase()}`),i[l]===void 0)i[l]=(...s)=>I0(l,...s);return i[l]},set(){throw Error("You may not add new properties to elements")}}),W2=new Proxy({fragment:D0},{get(i,l){if(i[l]===void 0)i[l]=(...s)=>I0(`${l}|${vs}`,...s);return i[l]},set(){throw Error("You may not add new properties to elements")}}),i4=new Proxy({fragment:D0},{get(i,l){if(i[l]===void 0)i[l]=(...s)=>I0(`${l}|${Cs}`,...s);return i[l]},set(){throw Error("You may not add new properties to elements")}}),Bs=["sort","splice","copyWithin","fill","pop","push","reverse","shift","unshift"],zs=!0,fs=/^\.?([^.[\](),])+(\.[^.[\](),]+|\[\d+\]|\[[^=[\](),]*=[^[\]()]+\])*$/,Ms=(i)=>fs.test(i),n1=(i="",l="")=>{if(i==="")return l;else if(l.match(/^\d+$/)!==null||l.includes("="))return`${i}[${l}]`;else return`${i}.${l}`},l4={};function V0(i,l){if(i!==null&&(typeof i==="object"||typeof i==="function"))return i;return new Proxy(l4,z1(l,!0))}var g2=()=>new Proxy({},z1("^",!0)),q0=(i)=>{let l=i(g2())?.path;if(!l?.startsWith("^."))throw Error("selector must return a property of the item");return l.substring(2)},O0=(i,l,s)=>{for(let t=0;t<i.length;t++)if(`${y1(i[t],l)}`===`${s}`)return t;return-1},Hl=(i,l)=>({listFind(s,t){if(s instanceof Element){let e=s;while(e&&!e[v2]&&e.parentElement)e=e.parentElement;let h=e?.[v2];if(h==null)return;let a=l.indexOf(h);return a!==-1?h1[i][a]:void 0}let r=q0(s),o=O0(l,r,t);return o!==-1?h1[i][o]:void 0},listUpdate(s,t){let r=q0(s),o=y1(t,r),e=O0(l,r,o);if(e!==-1){let h=h1[i][e];for(let a of Object.keys(t))h[a]=t[a];return h}return h1[i].push(t),h1[i][l.length-1]},listRemove(s,t){let r=q0(s),o=O0(l,r,t);if(o===-1)return!1;return h1[i].splice(o,1),!0}}),Fl=!1;function q1(){if(!Fl)console.warn("xinValue, tosiValue, xinPath, tosiPath, etc. are deprecated. Use value, path, observe, bind, on, binding, listBinding instead."),Fl=!0}var jl=(i)=>{return i===l4},z1=(i,l)=>({get(s,t){if(jl(s)){let h=()=>y1(w2,i);switch(t){case"path":return i;case"value":return h();case"valueOf":case"toJSON":return()=>h();case Symbol.toPrimitive:return(a)=>{let x=h();if(a==="number")return Number(x);if(a==="string")return String(x);return x};case"toString":return()=>String(h());case"touch":return()=>B1(i);case"observe":return(a)=>{let x=T1(i,a);return()=>O1(x)};case"on":return(a,x)=>Q2()(a,x,h());case"bind":return(a,x,c)=>{G2()(a,i,x,c)};case"binding":return(a)=>({bind:{value:i,binding:a}});case"listBinding":return(a=({span:c})=>c({bindText:"^"}),x={})=>[{bindList:{value:i,...x}},C.template(a(C,g2()))];case"listFind":case"listUpdate":case"listRemove":return Hl(i,s)[t];case $1:case"xinValue":case"tosiValue":return q1(),h();case x1:case"xinPath":case"tosiPath":return q1(),i;case nl:case"tosiObserve":return q1(),(a)=>{let x=T1(i,a);return()=>O1(x)};case Bl:case"tosiOn":return q1(),(a,x)=>Q2()(a,x,h());case wl:case"tosiBind":return q1(),(a,x,c)=>{G2()(a,i,x,c)};case"tosiBinding":return q1(),(a)=>({bind:{value:i,binding:a}});case"tosiListBinding":return q1(),(a=({span:c})=>c({bindText:"^"}),x={})=>[{bindList:{value:i,...x}},C.template(a(C,g2()))]}if(typeof t==="string"&&/^\d+$/.test(t)){let a=h();if(typeof a==="string")return a[parseInt(t,10)]}if(t==="length"){let a=h();if(typeof a==="string")return a.length}return}if(l&&!(t in s))switch(t){case"path":return i;case"value":return s.valueOf?s.valueOf():s;case"valueOf":case"toJSON":return()=>s.valueOf?s.valueOf():s;case"touch":return()=>B1(i);case"observe":return(h)=>{let a=T1(i,h);return()=>O1(a)};case"on":return(h,a)=>Q2()(h,a,O(s));case"bind":return(h,a,x)=>{G2()(h,i,a,x)};case"binding":return(h)=>({bind:{value:i,binding:h}});case"listBinding":return(h=({span:x})=>x({bindText:"^"}),a={})=>[{bindList:{value:i,...a}},C.template(h(C,g2()))];case"listFind":case"listUpdate":case"listRemove":return Hl(i,s)[t]}switch(t){case x1:case"xinPath":case"tosiPath":return i;case $1:case"xinValue":case"tosiValue":return s.valueOf?s.valueOf():s;case nl:case"xinObserve":case"tosiObserve":return(h)=>{let a=T1(i,h);return()=>O1(a)};case Bl:case"xinOn":case"tosiOn":return(h,a)=>Q2()(h,a,O(s));case wl:case"xinBind":case"tosiBind":return(h,a,x)=>{G2()(h,i,a,x)};case"tosiBinding":return(h)=>({bind:{value:i,binding:h}});case"tosiListBinding":return(h=({span:x})=>x({bindText:"^"}),a={})=>[{bindList:{value:i,...a}},C.template(h(C,g2()))]}if(typeof t==="symbol")return s[t];let r=Object.getOwnPropertyDescriptor(s,t);if(r&&!r.configurable&&!r.writable&&"value"in r)return r.value;let o=t,e=o.match(/^([^.[]+)\.(.+)$/)??o.match(/^([^\]]+)(\[.+)/)??o.match(/^(\[[^\]]+\])\.(.+)$/)??o.match(/^(\[[^\]]+\])\[(.+)$/);if(e!==null){let[,h,a]=e,x=n1(i,h),c=y1(s,h);return c!==null&&typeof c==="object"?new Proxy(c,z1(x,l))[a]:c}if(o.startsWith("[")&&o.endsWith("]"))o=o.substring(1,o.length-1);if(!Array.isArray(s)&&s[o]!==void 0||Array.isArray(s)&&o.includes("=")){let h;if(o.includes("=")){let[a,x]=o.split("=");h=s.find((c)=>`${y1(c,a)}`===x)}else h=s[o];if(h instanceof Object){let a=n1(i,o);return new Proxy(h instanceof Function?h.bind(s):h,z1(a,l))}else return l?V0(h,n1(i,o)):h}else if(Array.isArray(s)){let h=s[o];return typeof h==="function"?(...a)=>{let x=a.map((d)=>O(d)),c=h.apply(s,x);if(Bs.includes(o))B1(i);if(c!=null&&typeof c==="object"){if(o==="find"||o==="findLast"||o==="at"){let d=s.indexOf(c);if(d!==-1)return new Proxy(c,z1(n1(i,String(d)),l))}}return c}:typeof h==="object"?new Proxy(h,z1(n1(i,o),l)):l?V0(h,n1(i,o)):h}else return l?V0(s[o],n1(i,o)):s[o]},set(s,t,r){r=O(r);let o=t===$1||t==="xinValue"||t==="tosiValue"||t==="value"&&(jl(s)||l)?i:n1(i,t);if(zs&&!Ms(o))throw Error(`setting invalid path ${o}`);if(O(Z[o])!==r&&D5(w2,o,r))B1(o);return!0}}),T0=(i,l)=>{let s=typeof l==="function"?l:Z[l];if(typeof s!=="function")throw Error(`observe expects a function or path to a function, ${l} is neither`);return T1(i,s)},Z=new Proxy(w2,z1("",!1));T5(Z);var h1=new Proxy(w2,z1("",!0)),bs=16,us=100;function _l(i,l){let s=Array.from(i.querySelectorAll(S1));if(i.matches(S1))s.unshift(i);for(let t of s){let r=J1.get(t);for(let o of r){if(o.path.startsWith("^"))o.path=`${l}${o.path.substring(1)}`;if(o.binding.toDOM!=null)o.binding.toDOM(t,Z[o.path])}}}class s4{boundElement;listTop;listBottom;template;options;itemToElement;array=[];_filteredCache;_update;_previousSlice;static filterBoundObservers=new WeakMap;constructor(i,l,s={}){if(this.boundElement=i,this.itemToElement=new WeakMap,s.idPath!=null){let t=c1(l);if(t!=null)J5(t,s.idPath)}if(i.children.length!==1)throw Error("ListBinding expects an element with exactly one child element");if(i.children[0]instanceof HTMLTemplateElement){let t=i.children[0];if(t.content.children.length!==1)throw Error("ListBinding expects a template with exactly one child element");this.template=n2(t.content.children[0])}else this.template=i.children[0],this.template.remove();if(this.options=s,this.listTop=document.createElement("div"),this.listBottom=document.createElement("div"),this.listTop.classList.add("virtual-list-padding"),this.listBottom.classList.add("virtual-list-padding"),this.boundElement.append(this.listTop),this.boundElement.append(this.listBottom),this.boundElement[K2]=this,s.virtual!=null)if(W0.observe(this.boundElement),this._update=B2(()=>{this.update(this.array,!0)},bs),this.boundElement.addEventListener("resize",this._update),s.virtual.scrollContainer==="window")window.addEventListener("scroll",this._update),window.addEventListener("resize",this._update);else this.boundElement.addEventListener("scroll",this._update)}filteredArray(){if(this._filteredCache!=null)return this._filteredCache;let{hiddenProp:i,visibleProp:l}=this.options,s=this.array;if(i!==void 0)s=s.filter((t)=>t[i]!==!0);if(l!==void 0)s=s.filter((t)=>t[l]===!0);if(this.options.filter&&this.needle!==void 0)s=this.options.filter(s,this.needle);return this._filteredCache=s,s}visibleSlice(){let{virtual:i}=this.options,l=this.filteredArray(),s=0,t=l.length-1,r=0,o=0;if(i!=null&&this.boundElement instanceof HTMLElement){let e=this.boundElement.offsetWidth,h=i.scrollContainer==="window",a,x;if(h){a=window.innerHeight;let g=this.boundElement.getBoundingClientRect();x=Math.max(0,-g.top)}else a=this.boundElement.offsetHeight,x=this.boundElement.scrollTop;let c=i.width!=null?Math.max(1,Math.floor(e/i.width)):i.visibleColumns??1,d=Math.ceil(l.length/c);if(i.minHeight!=null){let g=i.minHeight,B=Math.ceil(a/g)+(i.rowChunkSize||1),k=c*B,M=d*g,A=Math.max(0,M-a),P=A>0?Math.min(1,Math.max(0,x/A)):0,b=Math.max(0,d-B+1),u=P*b,_=Math.floor(u);if(i.rowChunkSize)_-=_%i.rowChunkSize;return s=_*c,t=s+k-1,r=x,o=Math.max(0,M-x-a),{items:l,firstItem:s,lastItem:t,topBuffer:r,bottomBuffer:o,interpolation:{t:P,position:u,scrollTop:x,viewportHeight:a,totalScrollHeight:M,rowHeight:i.height}}}else{let g=Math.ceil(a/i.height)+(i.rowChunkSize||1),B=c*g,k=Math.floor(x/i.height);if(k>d-g+1)k=Math.max(0,d-g+1);if(i.rowChunkSize)k-=k%i.rowChunkSize;s=k*c,t=s+B-1,r=k*i.height,o=Math.max((d-g)*i.height-r,0)}}return{items:l,firstItem:s,lastItem:t,topBuffer:r,bottomBuffer:o}}needle;filter=B2((i)=>{if(this.needle!==i)this.needle=i,this.update(this.array)},us);update(i,l){if(i==null)i=[];if(this.array=i,!l)this._filteredCache=void 0;let{hiddenProp:s,visibleProp:t}=this.options,r=c1(i),o=this.visibleSlice();this.boundElement.classList.toggle("-xin-empty-list",o.items.length===0);let e=this._previousSlice,{firstItem:h,lastItem:a,topBuffer:x,bottomBuffer:c}=o,d=s===void 0&&t===void 0&&l===!0&&e!=null&&h===e.firstItem&&a===e.lastItem;if(d&&o.interpolation==null&&x===e.topBuffer&&c===e.bottomBuffer)return;if(d&&o.interpolation!=null){this._updateInterpolatedBuffers(o);return}this._previousSlice=o;let g=0,B=0,k=0;for(let b of Array.from(this.boundElement.children)){if(b===this.listTop||b===this.listBottom)continue;let u=b[v2];if(u==null)b.remove();else{let _=o.items.indexOf(u);if(_<h||_>a)b.remove(),this.itemToElement.delete(u),g++}}this.listTop.style.height=String(x)+"px",this.listBottom.style.height=String(c)+"px";let M=[],{idPath:A}=this.options;for(let b=h;b<=a;b++){let u=o.items[b];if(u===void 0)continue;let _=this.itemToElement.get(O(u));if(_==null){if(k++,_=n2(this.template),typeof u==="object")this.itemToElement.set(O(u),_),_[v2]=O(u);if(this.boundElement.insertBefore(_,this.listBottom),A!=null){let Y=u[A],G=`${r}[${A}=${Y}]`;_l(_,G)}else{let Y=`${r}[${b}]`;_l(_,Y)}}M.push(_)}let P=null;for(let b of M){if(b.previousElementSibling!==P)if(B++,P?.nextElementSibling!=null)this.boundElement.insertBefore(b,P.nextElementSibling);else this.boundElement.insertBefore(b,this.listBottom);P=b}if(o.interpolation!=null)this._updateInterpolatedBuffers(o);if(m2.perf)console.log(r,"updated",{removed:g,created:k,moved:B})}_updateInterpolatedBuffers(i){let{t:l,position:s,scrollTop:t,viewportHeight:r,totalScrollHeight:o,rowHeight:e}=i.interpolation,h=0;for(let d of Array.from(this.boundElement.children)){if(d===this.listTop||d===this.listBottom)continue;h+=d.offsetHeight||e}let a=t,x=t+r-h,c=Math.max(0,l*x+(1-l)*a-s%1*e);this.listTop.style.height=String(c)+"px",this.listBottom.style.height=String(Math.max(0,o-c-h))+"px"}}var R2=(i,l,s)=>{let t=i[K2];if(l&&t===void 0)t=new s4(i,l,s),i[K2]=t;return t},S0=(i)=>{let l;while(!(l=i[v2])&&i&&i.parentElement)i=i.parentElement;return l?{element:i,item:l}:void 0},Q1=(i)=>{let l=S0(i);return l?l.item:void 0},As=(i)=>{let l=S0(i);if(!l)return console.error("deleteListItem failed, element is not part of a list instance",i),!1;let s=R2(l.element.parentElement);if(!s.options.idPath)return console.error("deleteListItem failed, list binding has no idPath",i.parentElement,s),!1;let t=s.array.indexOf(l.item);if(t>-1)return s.array.splice(t,1),!0;return!1},Ps={start:"start",middle:"center",end:"end",nearest:"nearest"},Hs=(i,l,s={})=>{let t=R2(i);if(t==null)return console.error("scrollListItemIntoView failed, element has no list binding",i),!1;let{position:r="middle"}=s,o=t.filteredArray(),e=O(l)??l,h=o.indexOf(e);if(h===-1)return console.error("scrollListItemIntoView failed, item not found in list",l),!1;let{virtual:a}=t.options;if(a!=null&&i instanceof HTMLElement){let x=a.width!=null?Math.max(1,Math.floor(i.offsetWidth/a.width)):a.visibleColumns??1,c=Math.floor(h/x),d=a.minHeight??a.height,g=Math.ceil(o.length/x),B=a.scrollContainer==="window",k=B?window.innerHeight:i.offsetHeight,M;if(a.minHeight!=null){let A=Math.ceil(k/d)+(a.rowChunkSize||1),P=g*d,b=Math.max(0,P-k),u=Math.max(1,g-A+1),_=c/u;switch(r){case"start":M=_*b;break;case"end":M=Math.max(0,(c-A+1)/u*b);break;case"nearest":{let Y=B?Math.max(0,-i.getBoundingClientRect().top):i.scrollTop,G=b>0?Y/b:0,W=Math.floor(G*u);if(c<W)M=_*b;else if(c>=W+A)M=Math.max(0,(c-A+1)/u*b);else return!0;break}default:{let Y=c-Math.floor(A/2);M=Math.max(0,Y)/u*b}}}else{let A=c*a.height;switch(r){case"start":M=A;break;case"end":M=A-k+a.height;break;case"nearest":{let P=B?Math.max(0,-i.getBoundingClientRect().top):i.scrollTop;if(A<P)M=A;else if(A+a.height>P+k)M=A-k+a.height;else return!0;break}default:M=A-(k-a.height)/2}}if(M=Math.max(0,M),B){let A=i.getBoundingClientRect().top+window.scrollY;window.scrollTo({top:A+M,behavior:"smooth"})}else i.scrollTo({top:M,behavior:"smooth"})}else{let x=t.itemToElement.get(e);if(x==null)return console.error("scrollListItemIntoView failed, no DOM element found for item",l),!1;x.scrollIntoView({block:Ps[r]??"center",behavior:"smooth"})}return!0},{document:z2,MutationObserver:Vl}=globalThis,E0=(i,l)=>{let s=J1.get(i);if(s==null)return;for(let t of s){let{binding:r,options:o}=t,{path:e}=t,{toDOM:h}=r;if(h!=null){if(e.startsWith("^")){let a=Q1(i);if(a!=null&&a[x1]!=null)e=t.path=`${a[x1]}${e.substring(1)}`;else throw console.error(`Cannot resolve relative binding ${e}`,i,"is not part of a list"),Error(`Cannot resolve relative binding ${e}`)}if(l==null||e.startsWith(l))h(i,R0()[e],o)}}};if(Vl!=null)new Vl((i)=>{i.forEach((l)=>{Array.from(l.addedNodes).forEach((s)=>{if(s instanceof Element)Array.from(s.querySelectorAll(S1)).forEach((t)=>E0(t))})})}).observe(z2.body,{subtree:!0,childList:!0});T1(()=>!0,(i)=>{let l=Array.from(z2.querySelectorAll(S1));for(let s of l)E0(s,i)});var ql=(i)=>{let l=i.target?.closest(S1);while(l!=null){let s=J1.get(l);for(let t of s){let{binding:r,path:o}=t,{fromDOM:e}=r;if(e!=null){let h;try{h=e(l,t.options)}catch(a){throw console.error("Cannot get value from",l,"via",t),Error("Cannot obtain value fromDOM")}if(h!=null){let a=R0(),x=a[o];if(x==null)a[o]=h;else{let c=x[x1]!=null?x[$1]:x,d=h[x1]!=null?h[$1]:h;if(c!==d)a[o]=d}}}}l=l.parentElement.closest(S1)}};if(globalThis.document!=null)z2.body.addEventListener("change",ql,!0),z2.body.addEventListener("input",ql,!0);function f1(i,l,s,t){if(i instanceof DocumentFragment)throw Error("bind cannot bind to a DocumentFragment");let r;if(typeof l==="object"&&l[x1]===void 0&&t===void 0){let{value:h}=l;r=typeof h==="string"?h:h[x1],t=l,delete t.value}else r=typeof l==="string"?l:l[x1];if(r==null)throw Error("bind requires a path or object with xin Proxy");let{toDOM:o}=s;i.classList?.add($l);let e=J1.get(i);if(e==null)e=[],J1.set(i,e);if(e.push({path:r,binding:s,options:t}),o!=null&&!r.startsWith("^"))B1(r);if(t?.filter&&t?.needle)f1(i,t.needle,{toDOM(h,a){console.log({needle:a}),h[K2]?.filter(a)}});return i}var Ol=new Set,Fs=(i)=>{let l=i?.target?.closest(kl),s=!1,t=new Proxy(i,{get(o,e){if(e==="stopPropagation")return()=>{i.stopPropagation(),s=!0};else{let h=o[e];return typeof h==="function"?h.bind(o):h}}}),r=new Set;while(!s&&l!=null){let o=k2.get(l)[i.type]||r;for(let e of o){if(typeof e==="function")e(t);else{let h=R0()[e];if(typeof h==="function")h(t);else throw Error(`no event handler found at path ${e}`)}if(s)continue}l=l.parentElement!=null?l.parentElement.closest(kl):null}};function i2(i,l,s){let t=k2.get(i);if(i.classList.add(Jl),t==null)t={},k2.set(i,t);if(!t[l])t[l]=new Set;if(t[l].add(s),!Ol.has(l))Ol.add(l),z2.body.addEventListener(l,Fs,!0);return()=>{t[l].delete(s)}}S5(f1,i2);function t4(i,l){if(!i.internals)return;let s={},t="";if(i.hasAttribute("required")&&l==="")s.valueMissing=!0,t="Please fill out this field.";let r=i.getAttribute("minlength");if(r&&l.length<parseInt(r,10))s.tooShort=!0,t=`Please use at least ${r} characters.`;let o=i.getAttribute("maxlength");if(o&&l.length>parseInt(o,10))s.tooLong=!0,t=`Please use no more than ${o} characters.`;let e=i.getAttribute("pattern");if(e&&l!=="")try{if(!new RegExp(`^(?:${e})$`).test(l))s.patternMismatch=!0,t="Please match the requested format."}catch{}if(Object.keys(s).length>0)i.internals.setValidity(s,t,i);else i.internals.setValidity({})}var js=0;function U0(){return`custom-elt${(js++).toString(36)}`}var Ul=0,$0=null;function _s(){if($0===null)$0=new MutationObserver((i)=>{let l=new Set;for(let s of i)if(s.type==="attributes"&&s.target instanceof w){let t=s.target,r=Wl(s.attributeName);if(t._legacyTrackedAttrs?.has(r))l.add(t)}for(let s of l)s.queueRender(!1)});return $0}var C2={};function Vs(i,l){let s=C2[i],t=E1(l).replace(/:host\(([^)]+)\)/g,`${i}$1`).replace(/:host\b/g,i);C2[i]=s?s+`
13
- `+t:t}function qs(i){if(C2[i])document.head.append(C.style({id:i+"-component"},C2[i]));delete C2[i]}class w extends HTMLElement{static elements=C;static _elementCreator;static initAttributes;static formAssociated;internals;get validity(){return this.internals?.validity}get validationMessage(){return this.internals?.validationMessage??""}get willValidate(){return this.internals?.willValidate??!1}checkValidity(){return this.internals?.checkValidity()??!0}reportValidity(){return this.internals?.reportValidity()??!0}setCustomValidity(i){if(this.internals)if(i)this.internals.setValidity({customError:!0},i);else this.internals.setValidity({})}setValidity(i,l,s){this.internals?.setValidity(i,l,s)}setFormValue(i,l){this.internals?.setFormValue(i,l)}static get observedAttributes(){let i=this.initAttributes;if(i)return["hidden",...Object.keys(i).map(a1)];return["hidden"]}instanceId;styleNode;static styleSpec;static styleNode;content=C.slot();isSlotted;static _tagName=null;static get tagName(){return this._tagName}_legacyTrackedAttrs;_attrValues;_valueChanged=!1;static StyleNode(i){return console.warn("StyleNode is deprecated, just assign static styleSpec: XinStyleSheet to the class directly"),C.style(E1(i))}static elementCreator(i={}){let l=this;if(l._elementCreator==null){let{tag:s,styleSpec:t}=i,r=i!=null?s:null;if(r==null)if(typeof l.name==="string"&&l.name!==""){if(r=a1(l.name),r.startsWith("-"))r=r.slice(1)}else r=U0();if(customElements.get(r)!=null)console.warn(`${r} is already defined`);if(r.match(/\w+(-\w+)+/)==null)console.warn(`${r} is not a legal tag for a custom-element`),r=U0();while(customElements.get(r)!==void 0)r=U0();if(l._tagName=r,t!==void 0)Vs(r,t);window.customElements.define(r,this,i),l._elementCreator=C[r]}return l._elementCreator}initAttributes(...i){if(f2("initAttributes","initAttributes() is deprecated. Use static initAttributes = { ... } instead."),!this._legacyTrackedAttrs)this._legacyTrackedAttrs=new Set;for(let t of i)this._legacyTrackedAttrs.add(t);_s().observe(this,{attributes:!0});let l={},s={};i.forEach((t)=>{l[t]=U1(this[t]);let r=a1(t);Object.defineProperty(this,t,{enumerable:!1,get(){if(typeof l[t]==="boolean")return this.hasAttribute(r);else if(this.hasAttribute(r))return typeof l[t]==="number"?parseFloat(this.getAttribute(r)):this.getAttribute(r);else if(s[t]!==void 0)return s[t];else return l[t]},set(o){if(typeof l[t]==="boolean"){if(o!==this[t]){if(o)this.setAttribute(r,"");else this.removeAttribute(r);this.queueRender()}}else if(typeof l[t]==="number"){if(o!==parseFloat(this[t]))this.setAttribute(r,o),this.queueRender()}else if(typeof o==="object"||`${o}`!==`${this[t]}`){if(o===null||o===void 0||typeof o==="object")this.removeAttribute(r);else this.setAttribute(r,o);this.queueRender(),s[t]=o}}})})}initValue(){let i=Object.getOwnPropertyDescriptor(this,"value");if(i===void 0||i.get!==void 0||i.set!==void 0)return;let l=this.hasAttribute("value")?this.getAttribute("value"):U1(this.value);delete this.value,Object.defineProperty(this,"value",{enumerable:!1,get(){return l},set(s){if(l!==s)l=s,this._valueChanged=!0,this.queueRender(!0)}})}_parts;get parts(){let i=this.shadowRoot!=null?this.shadowRoot:this;if(this._parts==null)this._parts=new Proxy({},{get(l,s){if(l[s]===void 0){let t=i.querySelector(`[part="${s}"]`);if(t==null)t=i.querySelector(s);if(t==null)throw Error(`elementRef "${s}" does not exist!`);t.removeAttribute("data-ref"),l[s]=t}return l[s]}});return this._parts}attributeChangedCallback(i,l,s){let t=Wl(i);if(!this._legacyTrackedAttrs?.has(t))this.queueRender(!1)}constructor(){super();if(Ul+=1,this.constructor.formAssociated&&typeof this.attachInternals==="function"&&!this.internals)this.internals=this.attachInternals();let i=this.constructor.initAttributes;if(i)this._setupAttributeAccessors(i);this.instanceId=`${this.tagName.toLocaleLowerCase()}-${Ul}`,this._value=U1(this.defaultValue)}_setupAttributeAccessors(i){if(!this._attrValues)this._attrValues=new Map;for(let l of Object.keys(i)){let s=a1(l),t=i[l];if(l==="value"){console.warn(`${this.tagName}: 'value' cannot be an attribute. Use the Component value property instead.`);continue}if(typeof t==="object"&&t!==null){console.warn(`${this.tagName}: initAttributes.${l} is an object. Use a regular property instead.`);continue}let r=this,o=!1;while(r){let e=Object.getOwnPropertyDescriptor(r,l);if(e){if(!e.configurable||e.get||e.set){o=!0;break}break}r=Object.getPrototypeOf(r)}if(o)continue;Object.defineProperty(this,l,{enumerable:!1,get:()=>{if(typeof t==="boolean")return this.hasAttribute(s);else if(this.hasAttribute(s))return typeof t==="number"?parseFloat(this.getAttribute(s)):this.getAttribute(s);else if(this._attrValues.has(l))return this._attrValues.get(l);else return t},set:(e)=>{if(typeof t==="boolean"){if(e!==this[l]){if(e)this.setAttribute(s,"");else this.removeAttribute(s);this.queueRender()}}else if(typeof t==="number"){if(e!==parseFloat(this[l]))this.setAttribute(s,e),this.queueRender()}else if(typeof e==="object"||`${e}`!==`${this[l]}`){if(e===null||e===void 0||typeof e==="object")this.removeAttribute(s);else this.setAttribute(s,e);this.queueRender(),this._attrValues.set(l,e)}}})}}connectedCallback(){if(qs(this.constructor.tagName),this.hydrate(),this.role!=null)this.setAttribute("role",this.role);if(this.constructor.formAssociated&&!this.hasAttribute("tabindex"))this.setAttribute("tabindex","0");if(this.onResize!==void 0){if(W0.observe(this),this._onResize==null)this._onResize=this.onResize.bind(this);this.addEventListener("resize",this._onResize)}if(this.value!=null&&this.getAttribute("value")!=null)this._value=this.getAttribute("value");if(this.internals&&this.value!==void 0)this.internals.setFormValue(this.value),this.validateValue();this.queueRender()}disconnectedCallback(){W0.unobserve(this)}formResetCallback(){if(this.value!==void 0)this.value=this.defaultValue??""}formDisabledCallback(i){if(i)this.setAttribute("disabled","");else this.removeAttribute("disabled")}formStateRestoreCallback(i){if(this.value!==void 0&&typeof i==="string")this.value=i}_changeQueued=!1;_renderQueued=!1;queueRender(i=!1){if(!this._hydrated)return;if(!this._changeQueued)this._changeQueued=i;if(!this._renderQueued)this._renderQueued=!0,requestAnimationFrame(()=>{if(this._changeQueued){if(Xl(this,"change"),this.internals&&this.value!==void 0)this.internals.setFormValue(this.value)}this._changeQueued=!1,this._renderQueued=!1,this.render()})}_hydrated=!1;hydrate(){if(!this._hydrated){this.initValue();let i=typeof this.content!=="function",l=typeof this.content==="function"?this.content(C):this.content,{styleSpec:s}=this.constructor,{styleNode:t}=this.constructor;if(s)t=this.constructor.styleNode=C.style(E1(s)),delete this.constructor.styleNode;if(this.styleNode)console.warn(this,"styleNode is deprecrated, use static styleNode or statc styleSpec instead"),t=this.styleNode;if(t){let r=this.attachShadow({mode:"open"});r.appendChild(t.cloneNode(!0)),Al(r,l,i)}else if(l!==null){let r=Array.from(this.childNodes);Al(this,l,i),this.isSlotted=this.querySelector("slot,xin-slot")!==void 0;let o=Array.from(this.querySelectorAll("slot"));if(o.length>0)o.forEach(ii.replaceSlot);if(r.length>0){let e={"":this};Array.from(this.querySelectorAll("xin-slot")).forEach((h)=>{e[h.name]=h}),r.forEach((h)=>{let a=e[""],x=h instanceof Element?e[h.slot]:a;(x!==void 0?x:a).append(h)})}}this._hydrated=!0}}render(){if(this._valueChanged&&this.internals&&this.value!==void 0)this.internals.setFormValue(this.value),this.validateValue();this._valueChanged=!1}validateValue(){if(!this.internals||this.value===void 0)return;let i=typeof this.value==="string"?this.value:String(this.value);t4(this,i)}}class ii extends w{static initAttributes={name:""};content=null;static replaceSlot(i){let l=document.createElement("xin-slot");if(i.name!=="")l.setAttribute("name",i.name);i.replaceWith(l)}}var Ut=ii.elementCreator({tag:"xin-slot"}),Os=(i=()=>!0)=>{let l=localStorage.getItem("xin-state");if(l!=null){let t=JSON.parse(l);for(let r of Object.keys(t).filter(i))if(Z[r]!==void 0)Object.assign(Z[r],t[r]);else Z[r]=t[r]}let s=Y2(()=>{let t={},r=O(Z);for(let o of Object.keys(r).filter(i))t[o]=r[o];localStorage.setItem("xin-state",JSON.stringify(t)),console.log("xin state saved to localStorage")},500);T0(i,s)},r4="1.4.0";function S(i){return Object.assign(h1,i),h1}function li(i){return f2("boxedProxy","boxedProxy is deprecated, please use tosi() instead"),S(i)}function o4(i,l=!1){if(l)return f2("xinProxy-boxed","xinProxy(..., true) is deprecated; use tosi(...) instead"),li(i);return Object.keys(i).forEach((s)=>{Z[s]=i[s]}),Z}var Us={};async function si(i,l){let{type:s,styleSpec:t}=await l(i,{Color:z,Component:w,elements:C,svgElements:W2,mathML:i4,varDefault:p,vars:y,xin:Z,boxed:h1,xinProxy:o4,boxedProxy:li,tosi:S,makeComponent:si,bind:f1,on:i2,version:r4}),r={type:s,creator:s.elementCreator({tag:i,styleSpec:t})};return Us[i]=r,r}var J0={},$s=(i)=>import(i);class L2 extends w{static initAttributes={tag:"anon-elt",src:"",property:"default"};loaded;blueprintLoaded=(i)=>{};async packaged(){let{tag:i,src:l,property:s}=this,t=`${i}.${s}:${l}`;if(!this.loaded){if(J0[t]===void 0)J0[t]=$s(l).then((r)=>{let o=r[s];return si(i,o)});else console.log(`using cached ${i} with signature ${t}`);this.loaded=await J0[t],this.blueprintLoaded(this.loaded)}return this.loaded}}var Js=L2.elementCreator({tag:"xin-blueprint",styleSpec:{":host":{display:"none"}}});class ti extends w{allLoaded=()=>{};constructor(){super()}async load(){let i=Array.from(this.querySelectorAll(L2.tagName)).filter((l)=>l.src).map((l)=>l.packaged());await Promise.all(i),this.allLoaded()}connectedCallback(){super.connectedCallback(),this.load()}}var Gs=ti.elementCreator({tag:"xin-loader",styleSpec:{":host":{display:"none"}}});var ri={};class l2 extends w{static set conditions(i){Object.assign(ri,i);for(let l of[...l2.instances])l.queueRender()}static initAttributes={condition:"",not:!1};static instances=new Set;connectedCallback(){super.connectedCallback(),l2.instances.add(this)}disconnectedCallback(){super.disconnectedCallback(),l2.instances.delete(this)}render(){if(this.condition!==""&&(this.not?ri[this.condition]!==!0:ri[this.condition]===!0))this.toggleAttribute("hidden",!1);else this.toggleAttribute("hidden",!0)}}var Qs=l2.elementCreator({tag:"xin-ab"});var I2={};function L(i,l){if(I2[i]===void 0){if(l!==void 0){let t=globalThis[l];I2[i]=Promise.resolve({[l]:t})}let s=C.script({src:i});document.head.append(s),I2[i]=new Promise((t)=>{s.onload=()=>t(globalThis)})}return I2[i]}var oi={};function D2(i){if(oi[i]===void 0){let l=C.link({rel:"stylesheet",type:"text/css",href:i});document.head.append(l),oi[i]=new Promise((s)=>{l.onload=s})}return oi[i]}var b2={earth:'<svg class="color" viewBox="0 0 48 48"><g><g><g><path style="fill:#a3d9ff;fill-rule:evenodd;stroke:#000000;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;stroke-width:2;" d="M7,13.46 C5.1,16.52,4,20.13,4,24 C4,31.81,8.47,38.57,15,41.87 C15,41.87,15,31,15,31 C15,31,9,29,9,29 C9,29,9,19,9,19 C9,19,7,15,7,15 C7,15,7,13.46,7,13.46 z"/><path style="fill:#a3d9ff;fill-rule:evenodd;stroke:#000000;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;stroke-width:2;" d="M18.4,4.79 C20.18,4.28,22.06,4,24,4 C27.57,4,30.92,4.93,33.82,6.57 C33.82,6.57,29,13,29,13 C29,13,31,19,31,19 C31,19,37,21,37,21 C37,21,39,29,39,29 C39,29,37.35,38.89,37.35,38.89 C33.81,42.07,29.13,44,24,44 C21.03,44,18.22,43.35,15.69,42.2 C15.69,42.2,27,29,27,29 C27,29,27,25,27,25 C27,25,21,23,21,23 C21,23,15,19,15,19 C15,19,11,19,11,19 C11,19,11,13,11,13 C11,13,13,11,13,11 C13,11,15,15,15,15 C15,15,17,15,17,15 C17,15,17,9,17,9 C17,9,18.4,4.79,18.4,4.79 z"/><path style="fill:#274e42;fill-rule:evenodd;stroke:#000000;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;stroke-width:2;" d="M18.4,4.79 C18.4,4.79,17,9,17,9 C17,9,17,15,17,15 C17,15,15,15,15,15 C15,15,13,11,13,11 C13,11,11,13,11,13 C11,13,11,19,11,19 C11,19,15,19,15,19 C15,19,21,23,21,23 C21,23,27,25,27,25 C27,25,27,29,27,29 C27,29,15.69,42.2,15.69,42.2 C15.46,42.09,15.23,41.98,15,41.87 C15,41.87,15,31,15,31 C15,31,9,29,9,29 C9,29,9,19,9,19 C9,19,7,15,7,15 C7,15,7,13.46,7,13.46 C9.57,9.32,13.62,6.19,18.4,4.79 z"/><path style="fill:#274e42;fill-rule:evenodd;stroke:#000000;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;stroke-width:2;" d="M33.82,6.57 C33.82,6.57,29,13,29,13 C29,13,31,19,31,19 C31,19,37,21,37,21 C37,21,39,29,39,29 C39,29,37.35,38.89,37.35,38.89 C41.43,35.23,44,29.91,44,24 C44,16.52,39.9,10,33.82,6.57 z"/></g></g></g></svg> ',blueprint:'<svg class="color" viewBox="0 0 24 24"><g><path style="fill:#9e9e9e;fill-rule:nonzero;stroke:#000000;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;stroke-width:1;" d="M10.5,14.5 C10.5,14.5,7.5,15.5,7.5,17.5 C7.5,19.5,10.5,19.5,10.5,19.5"/><path style="fill:#9e9e9e;fill-rule:nonzero;stroke:#000000;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;stroke-width:1;" d="M18.5,14.5 C18.5,14.5,21.5,15.5,21.5,17.5 C21.5,19.5,18.5,19.5,18.5,19.5"/><path style="fill:#ffffff;fill-rule:evenodd;stroke:#000000;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;stroke-width:1;" d="M7,5.09 C7,3.94,7.9,3,9,3 C9,3,20,3,20,3 C21.1,3,22,3.94,22,5.09 C22,5.09,22,12.41,22,12.41 C22,13.56,21.1,14.5,20,14.5 C20,14.5,9,14.5,9,14.5 C7.9,14.5,7,13.56,7,12.41 C7,12.41,7,5.09,7,5.09 z"/><path style="fill:#ffffff;fill-rule:nonzero;stroke:#000000;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;stroke-width:1;" d="M14.5,5.5 C14.5,5.5,14.5,11.5,14.5,11.5"/><path style="fill:#ffffff;fill-rule:nonzero;stroke:#000000;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;stroke-width:1;" d="M16.5,7.5 C16.5,7.5,16.5,8.5,16.5,8.5"/><path style="fill:#ffffff;fill-rule:nonzero;stroke:#000000;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;stroke-width:1;" d="M12.5,7.5 C12.5,7.5,12.5,8.5,12.5,8.5"/><g/><path style="fill:none;stroke:#000000;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;stroke-width:1;" d="M18.5,21.5 C18.5,21.5,17.5,20.5,17.5,20.5 C17.5,20.5,16.5,21.5,16.5,21.5"/><path style="fill:none;stroke:#000000;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;stroke-width:1;" d="M12.5,21.5 C12.5,21.5,11.5,20.5,11.5,20.5 C11.5,20.5,10.5,21.5,10.5,21.5"/><path style="fill:#e4e4e4;fill-rule:evenodd;stroke:#000000;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;stroke-width:1;" d="M10.5,14.5 C10.5,14.5,18.5,14.5,18.5,14.5 C18.5,14.5,18.5,19.5,18.5,19.5 C18.5,19.5,10.5,19.5,10.5,19.5 C10.5,19.5,10.5,14.5,10.5,14.5 z"/><g><g><path style="fill:#5e78ca;fill-rule:nonzero;stroke:#f2f2f2;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;stroke-width:1;" d="M14,16.5 C14,16.5,16,16.5,16,16.5 C16,16.5,14.53,19.5,14.53,19.5"/><path style="fill:#5e78ca;fill-rule:evenodd;stroke:none;" d="M3.59,8.5 C3.59,8.5,12.59,8.5,12.59,8.5 C12.59,8.5,14.53,19.5,14.53,19.5 C14.53,19.5,5.53,19.5,5.53,19.5 C5.53,19.5,3.59,8.5,3.59,8.5 z"/><path style="fill:#5e78ca;fill-rule:nonzero;stroke:#f2f2f2;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;stroke-width:1;" d="M12.59,8.5 C12.59,8.5,11.12,11.5,11.12,11.5 C11.12,11.5,2.12,11.5,2.12,11.5 C2.12,11.5,3.59,8.5,3.59,8.5"/><path style="fill:#5e78ca;fill-rule:nonzero;stroke:#f2f2f2;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;stroke-width:1;" d="M12.59,8.5 C12.59,8.5,14.53,19.5,14.53,19.5"/><path style="fill:#5e78ca;fill-rule:nonzero;stroke:#f2f2f2;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;stroke-width:1;" d="M4.12,11.5 C4.12,11.5,5.53,19.5,5.53,19.5"/></g><path style="fill:#9e9e9e;fill-rule:nonzero;stroke:#000000;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;stroke-width:1;" d="M9.24,12.5 C10.75,12.5,12.2,13.73,12.46,15.24 C12.46,15.24,12.46,15.24,12.46,15.24 C12.68,16.49,11.85,17.5,10.6,17.5 C10.6,17.5,10.55,17.5,10.55,17.5 C10.17,17.5,9.92,17.81,9.98,18.19 C9.98,18.19,9.98,18.19,9.98,18.19 C10.21,19.47,9.36,20.5,8.08,20.5 C8.08,20.5,6.39,20.5,6.39,20.5 C5.1,20.5,3.87,19.45,3.64,18.16 C3.64,18.16,3.12,15.21,3.12,15.21 C2.86,13.71,3.86,12.5,5.35,12.5 C5.35,12.5,9.24,12.5,9.24,12.5 z"/></g></g></svg> ',tosiXr:'<svg class="color" viewBox="0 0 24 24"><g><path style="fill:#9e9e9e;fill-rule:nonzero;stroke:#000000;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;stroke-width:1;" d="M8,14.25 C8,14.25,5,15.25,5,17.25 C5,19.25,8,19.25,8,19.25"/><path style="fill:#9e9e9e;fill-rule:nonzero;stroke:#000000;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;stroke-width:1;" d="M16,14.25 C16,14.25,19,15.25,19,17.25 C19,19.25,16,19.25,16,19.25"/><path style="fill:#ffffff;fill-rule:evenodd;stroke:#000000;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;stroke-width:1;" d="M4.5,4.85 C4.5,3.69,5.4,2.75,6.5,2.75 C6.5,2.75,17.5,2.75,17.5,2.75 C18.61,2.75,19.5,3.69,19.5,4.85 C19.5,4.85,19.5,12.16,19.5,12.16 C19.5,13.32,18.61,14.25,17.5,14.25 C17.5,14.25,6.5,14.25,6.5,14.25 C5.4,14.25,4.5,13.32,4.5,12.16 C4.5,12.16,4.5,4.85,4.5,4.85 z"/><path style="fill:#ffffff;fill-rule:nonzero;stroke:#000000;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;stroke-width:1;" d="M12,5.25 C12,5.25,12,11.25,12,11.25"/><path style="fill:#ffffff;fill-rule:nonzero;stroke:#000000;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;stroke-width:1;" d="M14,7.25 C14,7.25,14,8.25,14,8.25"/><path style="fill:#ffffff;fill-rule:nonzero;stroke:#000000;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;stroke-width:1;" d="M10,7.25 C10,7.25,10,8.25,10,8.25"/><path style="fill:none;stroke:#000000;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;stroke-width:1;" d="M16,21.25 C16,21.25,15,20.25,15,20.25 C15,20.25,14,21.25,14,21.25"/><path style="fill:none;stroke:#000000;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;stroke-width:1;" d="M10,21.25 C10,21.25,9,20.25,9,20.25 C9,20.25,8,21.25,8,21.25"/><path style="fill:#e4e4e4;fill-rule:evenodd;stroke:#000000;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;stroke-width:1;" d="M8,14.25 C8,14.25,16,14.25,16,14.25 C16,14.25,16,19.25,16,19.25 C16,19.25,8,19.25,8,19.25 C8,19.25,8,14.25,8,14.25 z"/><path style="fill:#ff7bac;fill-opacity:0.75;fill-rule:evenodd;stroke:#000000;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:10;stroke-width:1;" d="M12,4 C12,4,11.99,4,11.99,4 C6.19,4,3,4.73,3,8.5 C3,11.39,4.66,13,7.27,13 C9.88,13,10.68,11.13,11.99,11.13 C11.99,11.13,12,11.13,12,11.13 C12,11.13,12.01,11.13,12.01,11.13 C13.32,11.13,14.12,13,16.73,13 C19.34,13,21,11.39,21,8.5 C21,4.73,17.81,4,12.01,4 C12.01,4,12,4,12,4 C12,4,12,4,12,4 z"/></g></svg> ',cmy:'<svg class="color filled" viewBox="0 0 24 24"><g><g><path style="fill:#00ff00;fill-rule:evenodd;" d="M12,10.88 C10.9,10.01,9.51,9.5,8,9.5 C7.22,9.5,6.47,9.64,5.78,9.89 C6.37,11.85,7.87,13.42,9.78,14.11 C10.17,12.81,10.96,11.69,12,10.88 z"/><path style="fill:#0000ff;fill-rule:evenodd;" d="M12,10.88 C13.1,10.01,14.49,9.5,16,9.5 C16.78,9.5,17.53,9.64,18.22,9.89 C17.63,11.85,16.13,13.42,14.22,14.11 C13.83,12.81,13.04,11.69,12,10.88 C12,10.88,12,10.88,12,10.88 z"/><path style="fill:#000000;fill-rule:evenodd;" d="M9.78,14.11 C10.17,12.81,10.96,11.69,12,10.88 C13.04,11.69,13.83,12.81,14.22,14.11 C13.53,14.36,12.78,14.5,12,14.5 C11.22,14.5,10.47,14.36,9.78,14.11 C9.78,14.11,9.78,14.11,9.78,14.11 z"/><path style="fill:#ff0000;fill-rule:evenodd;" d="M9.78,14.11 C9.6,14.71,9.5,15.34,9.5,16 C9.5,18.08,10.48,19.93,12,21.12 C13.52,19.93,14.5,18.08,14.5,16 C14.5,15.34,14.4,14.71,14.22,14.11 C13.53,14.36,12.78,14.5,12,14.5 C11.22,14.5,10.47,14.36,9.78,14.11 C9.78,14.11,9.78,14.11,9.78,14.11 z"/><path style="fill:#02fefe;fill-rule:evenodd;" d="M5.78,9.89 C5.6,9.29,5.5,8.66,5.5,8 C5.5,4.41,8.41,1.5,12,1.5 C15.59,1.5,18.5,4.41,18.5,8 C18.5,8.66,18.4,9.29,18.22,9.89 C17.53,9.64,16.78,9.5,16,9.5 C14.49,9.5,13.1,10.01,12,10.88 C10.9,10.01,9.51,9.5,8,9.5 C7.22,9.5,6.47,9.64,5.78,9.89 C5.78,9.89,5.78,9.89,5.78,9.89 z"/><path style="fill:#fffe00;fill-rule:evenodd;" d="M5.78,9.89 C3.28,10.8,1.5,13.19,1.5,16 C1.5,19.59,4.41,22.5,8,22.5 C9.51,22.5,10.9,21.99,12,21.12 C10.48,19.93,9.5,18.08,9.5,16 C9.5,15.34,9.6,14.71,9.78,14.11 C7.87,13.42,6.37,11.85,5.78,9.89 C5.78,9.89,5.78,9.89,5.78,9.89 z"/><path style="fill:#ff00ff;fill-rule:evenodd;" d="M18.22,9.89 C20.72,10.8,22.5,13.19,22.5,16 C22.5,19.59,19.59,22.5,16,22.5 C14.49,22.5,13.1,21.99,12,21.12 C13.52,19.93,14.5,18.08,14.5,16 C14.5,15.34,14.4,14.71,14.22,14.11 C16.13,13.42,17.63,11.85,18.22,9.89 z"/></g></g></svg> ',rgb:'<svg class="color filled" viewBox="0 0 24 24"><g><g><path style="fill:#ff00ff;fill-rule:evenodd;" d="M12,10.88 C10.9,10.01,9.51,9.5,8,9.5 C7.22,9.5,6.47,9.64,5.78,9.89 C6.37,11.85,7.87,13.42,9.78,14.11 C10.17,12.81,10.96,11.69,12,10.88 z"/><path style="fill:#ffff00;fill-rule:evenodd;" d="M12,10.88 C13.1,10.01,14.49,9.5,16,9.5 C16.78,9.5,17.53,9.64,18.22,9.89 C17.63,11.85,16.13,13.42,14.22,14.11 C13.83,12.81,13.04,11.69,12,10.88 C12,10.88,12,10.88,12,10.88 z"/><path style="fill:#ffffff;fill-rule:evenodd;" d="M9.78,14.11 C10.17,12.81,10.96,11.69,12,10.88 C13.04,11.69,13.83,12.81,14.22,14.11 C13.53,14.36,12.78,14.5,12,14.5 C11.22,14.5,10.47,14.36,9.78,14.11 C9.78,14.11,9.78,14.11,9.78,14.11 z"/><path style="fill:#00ffff;fill-rule:evenodd;" d="M9.78,14.11 C9.6,14.71,9.5,15.34,9.5,16 C9.5,18.08,10.48,19.93,12,21.12 C13.52,19.93,14.5,18.08,14.5,16 C14.5,15.34,14.4,14.71,14.22,14.11 C13.53,14.36,12.78,14.5,12,14.5 C11.22,14.5,10.47,14.36,9.78,14.11 C9.78,14.11,9.78,14.11,9.78,14.11 z"/><path style="fill:#ff0000;fill-rule:evenodd;" d="M5.78,9.89 C5.6,9.29,5.5,8.66,5.5,8 C5.5,4.41,8.41,1.5,12,1.5 C15.59,1.5,18.5,4.41,18.5,8 C18.5,8.66,18.4,9.29,18.22,9.89 C17.53,9.64,16.78,9.5,16,9.5 C14.49,9.5,13.1,10.01,12,10.88 C10.9,10.01,9.51,9.5,8,9.5 C7.22,9.5,6.47,9.64,5.78,9.89 C5.78,9.89,5.78,9.89,5.78,9.89 z"/><path style="fill:#0000ff;fill-rule:evenodd;" d="M5.78,9.89 C3.28,10.8,1.5,13.19,1.5,16 C1.5,19.59,4.41,22.5,8,22.5 C9.51,22.5,10.9,21.99,12,21.12 C10.48,19.93,9.5,18.08,9.5,16 C9.5,15.34,9.6,14.71,9.78,14.11 C7.87,13.42,6.37,11.85,5.78,9.89 C5.78,9.89,5.78,9.89,5.78,9.89 z"/><path style="fill:#00ff00;fill-rule:evenodd;" d="M18.22,9.89 C20.72,10.8,22.5,13.19,22.5,16 C22.5,19.59,19.59,22.5,16,22.5 C14.49,22.5,13.1,21.99,12,21.12 C13.52,19.93,14.5,18.08,14.5,16 C14.5,15.34,14.4,14.71,14.22,14.11 C16.13,13.42,17.63,11.85,18.22,9.89 z"/></g></g></svg> ',xrColor:'<svg class="color filled" viewBox="0 0 40 24"><g><g><g><path style="fill:#000000;fill-rule:evenodd;" d="M20,2 C19.99,2,19.98,2,19.98,2 C8.39,2,2,3.61,2,12 C2,18.41,5.32,22,10.54,22 C15.77,22,17.37,17.85,19.98,17.85 C19.98,17.85,19.99,17.85,20,17.85 C20.01,17.85,20.02,17.85,20.02,17.85 C22.63,17.85,24.23,22,29.46,22 C34.68,22,38,18.41,38,12 C38,3.61,31.61,2,20.02,2 C20.02,2,20.01,2,20,2 C20,2,20,2,20,2 z"/></g><path style="fill:#fbed21;fill-rule:evenodd;" d="M12.2,19.84 C15.79,19.39,17.07,16.46,19.07,16.46 C19.07,16.46,19.08,16.46,19.09,16.46 C19.09,16.46,19.1,16.46,19.11,16.46 C19.44,16.46,19.75,16.54,20.06,16.68 C20.37,16.54,20.68,16.46,21.01,16.46 C21.02,16.46,21.02,16.46,21.03,16.46 C21.04,16.46,21.04,16.46,21.05,16.46 C23.05,16.46,24.33,19.39,27.92,19.84 C31.66,19.4,33.98,16.5,33.98,11.62 C33.98,4.91,29.04,3.44,20.06,3.35 C11.07,3.44,6.14,4.91,6.14,11.62 C6.14,16.5,8.46,19.4,12.2,19.84 z"/><path style="fill:#8cc63f;fill-rule:evenodd;" d="M12.2,19.84 C12.52,19.87,12.86,19.89,13.21,19.89 C16.86,19.89,18.37,17.43,20.06,16.68 C19.75,16.54,19.44,16.46,19.11,16.46 C19.1,16.46,19.09,16.46,19.09,16.46 C19.08,16.46,19.07,16.46,19.07,16.46 C17.07,16.46,15.79,19.39,12.2,19.84 z"/><path style="fill:#8cc63f;fill-rule:evenodd;" d="M20.06,3.35 C20.37,3.35,20.69,3.35,21.01,3.35 C21.02,3.35,21.02,3.35,21.03,3.35 C21.03,3.35,21.03,3.35,21.03,3.35 C21.04,3.35,21.04,3.35,21.05,3.35 C30.64,3.35,35.92,4.68,35.92,11.62 C35.92,16.92,33.18,19.89,28.86,19.89 C28.53,19.89,28.22,19.87,27.92,19.84 C31.66,19.4,33.98,16.5,33.98,11.62 C33.98,4.91,29.04,3.44,20.06,3.35 C20.06,3.35,20.06,3.35,20.06,3.35 z"/><path style="fill:#ff1c23;fill-rule:evenodd;" d="M20.06,16.68 C21.74,17.43,23.25,19.89,26.91,19.89 C27.26,19.89,27.59,19.87,27.92,19.84 C24.33,19.39,23.05,16.46,21.05,16.46 C21.04,16.46,21.04,16.46,21.03,16.46 C21.02,16.46,21.02,16.46,21.01,16.46 C20.68,16.46,20.37,16.54,20.06,16.68 z"/><path style="fill:#ff1c23;fill-rule:evenodd;" d="M12.2,19.84 C11.9,19.87,11.59,19.89,11.26,19.89 C6.94,19.89,4.19,16.92,4.19,11.62 C4.19,4.68,9.48,3.35,19.07,3.35 C19.07,3.35,19.08,3.35,19.09,3.35 C19.09,3.35,19.09,3.35,19.09,3.35 C19.09,3.35,19.1,3.35,19.11,3.35 C19.43,3.35,19.75,3.35,20.06,3.35 C11.07,3.44,6.14,4.91,6.14,11.62 C6.14,16.5,8.46,19.4,12.2,19.84 z"/></g><g><path style="fill:#8cc63e;fill-rule:nonzero;" d="M22.55,8.63 C22.55,9.05,22.55,9.46,22.55,9.88 C22.54,10.25,22.85,10.56,23.2,10.55 C23.54,10.56,23.85,10.25,23.85,9.88 C23.85,9.46,23.85,9.05,23.85,8.63 C23.85,8.26,23.54,7.95,23.2,7.96 C22.85,7.95,22.54,8.26,22.55,8.63 z"/><path style="fill:#8cc63e;fill-rule:nonzero;" d="M17.32,8.63 C17.32,9.05,17.32,9.46,17.32,9.88 C17.31,10.25,17.62,10.56,17.97,10.55 C18.31,10.56,18.62,10.25,18.62,9.88 C18.62,9.46,18.62,9.05,18.62,8.63 C18.62,8.26,18.31,7.95,17.97,7.96 C17.62,7.95,17.31,8.26,17.32,8.63 z"/><path style="fill:#8cc63e;fill-rule:nonzero;" d="M19.99,4.39 C19.99,8.09,19.99,11.8,19.99,15.5 C19.99,15.87,20.3,16.18,20.64,16.17 C20.99,16.18,21.3,15.87,21.29,15.5 C21.29,11.8,21.29,8.09,21.29,4.39 C21.3,4.02,20.99,3.71,20.64,3.72 C20.3,3.71,19.99,4.02,19.99,4.39 z"/><path style="fill:#fe1a22;fill-rule:nonzero;" d="M21.43,8.63 C21.43,9.05,21.43,9.46,21.43,9.88 C21.42,10.25,21.73,10.56,22.08,10.55 C22.42,10.56,22.73,10.25,22.73,9.88 C22.73,9.46,22.73,9.05,22.73,8.63 C22.73,8.26,22.42,7.95,22.08,7.96 C21.73,7.95,21.42,8.26,21.43,8.63 z"/><path style="fill:#fe1a22;fill-rule:nonzero;" d="M16.2,8.63 C16.2,9.05,16.2,9.46,16.2,9.88 C16.19,10.25,16.5,10.56,16.85,10.55 C17.19,10.56,17.5,10.25,17.5,9.88 C17.5,9.46,17.5,9.05,17.5,8.63 C17.5,8.26,17.19,7.95,16.85,7.96 C16.5,7.95,16.19,8.26,16.2,8.63 z"/><path style="fill:#fe1a22;fill-rule:nonzero;" d="M18.87,4.39 C18.87,8.09,18.87,11.8,18.87,15.5 C18.87,15.87,19.18,16.18,19.52,16.17 C19.86,16.18,20.18,15.87,20.17,15.5 C20.17,11.8,20.17,8.09,20.17,4.39 C20.18,4.02,19.86,3.71,19.52,3.72 C19.18,3.71,18.87,4.02,18.87,4.39 z"/><path style="fill:#000000;fill-rule:nonzero;" d="M21.97,8.63 C21.97,9.05,21.97,9.46,21.97,9.88 C21.97,10.25,22.28,10.56,22.62,10.55 C22.97,10.56,23.28,10.25,23.27,9.88 C23.27,9.46,23.27,9.05,23.27,8.63 C23.28,8.26,22.97,7.95,22.62,7.96 C22.28,7.95,21.97,8.26,21.97,8.63 z"/><path style="fill:#000000;fill-rule:nonzero;" d="M16.74,8.63 C16.74,9.05,16.74,9.46,16.74,9.88 C16.74,10.25,17.05,10.56,17.39,10.55 C17.74,10.56,18.05,10.25,18.04,9.88 C18.04,9.46,18.04,9.05,18.04,8.63 C18.05,8.26,17.74,7.95,17.39,7.96 C17.05,7.95,16.74,8.26,16.74,8.63 z"/><path style="fill:#000000;fill-rule:nonzero;" d="M19.41,4.39 C19.41,8.09,19.41,11.8,19.41,15.5 C19.41,15.87,19.72,16.18,20.07,16.17 C20.41,16.18,20.72,15.87,20.72,15.5 C20.72,11.8,20.72,8.09,20.72,4.39 C20.72,4.02,20.41,3.71,20.07,3.72 C19.72,3.71,19.41,4.02,19.41,4.39 z"/></g></g></svg> ',tosiUi:'<svg class="color" viewBox="0 0 48 48"><g><g><g><path style="fill:#ffffff;fill-rule:evenodd;stroke:#000000;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;stroke-width:2;" d="M3,33 C3,31.9,3.9,31,5,31 C5,31,43,31,43,31 C44.1,31,45,31.9,45,33 C45,33,45,43,45,43 C45,44.1,44.1,45,43,45 C43,45,5,45,5,45 C3.9,45,3,44.1,3,43 C3,43,3,33,3,33 z"/><g><path style="fill:#ffffff;fill-rule:evenodd;stroke:#ed247b;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;stroke-width:2;" d="M7,35 C7,35,7,36.34,7,38 C7,39.66,8.34,41,10,41 C11.66,41,13,39.66,13,38 C13,36.34,13,35,13,35"/><path style="fill:#ffffff;fill-rule:nonzero;stroke:#ed247b;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;stroke-width:2;" d="M17,35 C17,35,17,41,17,41"/></g><g><path style="fill:#ed247b;fill-rule:evenodd;stroke:none;" d="M38,33 C40.76,33,43,35.24,43,38 C43,40.76,40.76,43,38,43 C35.24,43,33,40.76,33,38 C33,35.24,35.24,33,38,33 z"/><path style="fill:#ed247b;fill-rule:nonzero;stroke:#ffffff;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;stroke-width:2;" d="M40,36 C40,36,36,40,36,40"/><path style="fill:#ed247b;fill-rule:nonzero;stroke:#ffffff;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;stroke-width:2;" d="M36,36 C36,36,40,40,40,40"/></g></g><g><path style="fill:#9e9e9e;fill-rule:nonzero;stroke:#000000;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;stroke-width:2;" d="M15.97,21.01 C15.97,21.01,9.97,23.01,9.97,27.01 C9.97,31.01,15.97,31.01,15.97,31.01"/><path style="fill:#9e9e9e;fill-rule:nonzero;stroke:#000000;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;stroke-width:2;" d="M31.97,21.01 C31.97,21.01,37.97,23.01,37.97,27.01 C37.97,31.01,31.97,31.01,31.97,31.01"/><path style="fill:none;stroke:#000000;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;stroke-width:2;" d="M31,33 C31,33,29.49,31,29.49,31 C29.49,31,27.97,33,27.97,33"/><path style="fill:none;stroke:#000000;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;stroke-width:2;" d="M19.97,33 C19.97,33,17.97,31,17.97,31 C17.97,31,15.97,33,15.97,33"/><path style="fill:#e4e4e4;fill-rule:evenodd;stroke:#000000;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;stroke-width:2;" d="M15.97,21 C15.97,21,31.97,21,31.97,21 C31.97,21,31.97,31,31.97,31 C31.97,31,15.97,31,15.97,31 C15.97,31,15.97,21,15.97,21 z"/><path style="fill:#ffffff;fill-rule:evenodd;stroke:#000000;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;stroke-width:2;" d="M9,7.18 C9,4.87,10.79,3,13,3 C13,3,35.02,3,35.02,3 C37.23,3,39.03,4.87,39.03,7.18 C39.03,7.18,39.03,21.82,39.03,21.82 C39.03,24.13,37.23,26,35.02,26 C35.02,26,13,26,13,26 C10.79,26,9,24.13,9,21.82 C9,21.82,9,7.18,9,7.18 z"/><path style="fill:#ffffff;fill-rule:nonzero;stroke:#000000;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;stroke-width:2;" d="M24,11 C24,11,24,23,24,23"/><path style="fill:#ffffff;fill-rule:nonzero;stroke:#000000;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;stroke-width:2;" d="M28,15 C28,15,28,17,28,17"/><path style="fill:#ffffff;fill-rule:nonzero;stroke:#000000;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;stroke-width:2;" d="M20,15 C20,15,20,17,20,17"/></g></g></g></svg> ',tosiFavicon:'<svg class="color" viewBox="0 0 48 48"><g><g><path style="fill:#ed247b;fill-rule:evenodd;stroke:none;" d="M1,9 C1,4.58,4.58,1,9,1 C9,1,39,1,39,1 C43.42,1,47,4.58,47,9 C47,9,47,39,47,39 C47,43.42,43.42,47,39,47 C39,47,9,47,9,47 C4.58,47,1,43.42,1,39 C1,39,1,9,1,9 z"/><g><path style="fill:#9e9e9e;fill-rule:nonzero;stroke:#000000;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;stroke-width:2;" d="M16,29 C16,29,10,31,10,35 C10,39,16,39,16,39"/><path style="fill:#9e9e9e;fill-rule:nonzero;stroke:#000000;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;stroke-width:2;" d="M32,29 C32,29,38,31,38,35 C38,39,32,39,32,39"/><path style="fill:#ffffff;fill-rule:evenodd;stroke:#000000;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;stroke-width:2;" d="M9,10.18 C9,7.87,10.79,6,13,6 C13,6,35,6,35,6 C37.21,6,39,7.87,39,10.18 C39,10.18,39,24.82,39,24.82 C39,27.13,37.21,29,35,29 C35,29,13,29,13,29 C10.79,29,9,27.13,9,24.82 C9,24.82,9,10.18,9,10.18 z"/><path style="fill:#ffffff;fill-rule:nonzero;stroke:#000000;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;stroke-width:2;" d="M24,11 C24,11,24,23,24,23"/><path style="fill:#ffffff;fill-rule:nonzero;stroke:#000000;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;stroke-width:2;" d="M28,15 C28,15,28,17,28,17"/><path style="fill:#ffffff;fill-rule:nonzero;stroke:#000000;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;stroke-width:2;" d="M20,15 C20,15,20,17,20,17"/><path style="fill:none;stroke:#000000;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;stroke-width:2;" d="M32,43 C32,43,30,41,30,41 C30,41,28,43,28,43"/><path style="fill:none;stroke:#000000;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;stroke-width:2;" d="M20,43 C20,43,18,41,18,41 C18,41,16,43,16,43"/><path style="fill:#e4e4e4;fill-rule:evenodd;stroke:#000000;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;stroke-width:2;" d="M16,29 C16,29,32,29,32,29 C32,29,32,39,32,39 C32,39,16,39,16,39 C16,39,16,29,16,29 z"/></g></g></g></svg> ',tosiPlatform:'<svg class="color" viewBox="0 0 48 48"><g><g><g><path style="fill:#3ea9f5;fill-rule:evenodd;stroke:none;" d="M23.97,47 C23.97,47,39,47,39,47 C43.42,47,47,43.42,47,39 C47,39,47,9,47,9 C47,4.58,43.42,1,39,1 C39,1,9,1,9,1 C4.58,1,1,4.58,1,9 C1,9,1,39,1,39 C1,41.64,2.28,43.98,4.25,45.44 C4.09,44.82,4,44.17,4,43.5 C4,39.36,7.36,36,11.5,36 C15.14,36,18.18,38.6,18.86,42.05 C19.07,42.02,19.28,42,19.5,42 C21.99,42,24,44.01,24,46.5 C24,46.67,23.99,46.84,23.97,47 z"/><path style="fill:#ffffff;fill-rule:evenodd;stroke:none;" d="M4.25,45.44 C4.09,44.82,4,44.17,4,43.5 C4,39.36,7.36,36,11.5,36 C15.14,36,18.18,38.6,18.86,42.05 C19.07,42.02,19.28,42,19.5,42 C21.99,42,24,44.01,24,46.5 C24,46.67,23.99,46.84,23.97,47 C23.97,47,9,47,9,47 C7.22,47,5.58,46.42,4.25,45.44 z"/></g><path style="fill:none;stroke:#000000;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;stroke-width:2;" d="M35,35 C35,35,32.17,35,32.17,35 C32.17,35,32.17,37.83,32.17,37.83"/><path style="fill:none;stroke:#000000;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;stroke-width:2;" d="M31,39 C31,39,28.17,39,28.17,39 C28.17,39,28.17,41.83,28.17,41.83"/><path style="fill:#9e9e9e;fill-rule:nonzero;stroke:#000000;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;stroke-width:2;" d="M7.48,16 C4.45,16,2,18.45,2,21.48 C2,21.48,2,21.48,2,21.48 C2,23.98,4.02,26,6.52,26 C6.52,26,6.62,26,6.62,26 C7.38,26,8,26.62,8,27.38 C8,27.38,8,27.38,8,27.38 C8,29.93,10.07,32,12.62,32 C12.62,32,16,32,16,32 C18.58,32,20.68,29.91,20.68,27.32 C20.68,27.32,20.68,21.42,20.68,21.42 C20.68,18.43,18.25,16,15.26,16 C15.26,16,7.48,16,7.48,16 z"/><path style="fill:#e4e4e4;fill-rule:evenodd;stroke:#000000;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;stroke-width:2;" d="M17,29 C17,29,33,29,33,29 C33,29,33,29,33,29 C33,34.52,28.52,39,23,39 C23,39,23,39,23,39 C19.69,39,17,36.31,17,33 C17,33,17,29,17,29 z"/><path style="fill:#9e9e9e;fill-rule:nonzero;stroke:#000000;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;stroke-width:2;" d="M40.52,16 C43.55,16,46,18.45,46,21.48 C46,21.48,46,21.48,46,21.48 C46,23.98,43.98,26,41.48,26 C41.48,26,41.38,26,41.38,26 C40.62,26,40,26.62,40,27.38 C40,27.38,40,27.38,40,27.38 C40,29.93,37.93,32,35.38,32 C35.38,32,32,32,32,32 C29.42,32,27.32,29.91,27.32,27.32 C27.32,27.32,27.32,21.42,27.32,21.42 C27.32,18.43,29.75,16,32.74,16 C32.74,16,40.52,16,40.52,16 z"/><g><path style="fill:#ffffff;fill-rule:evenodd;stroke:#000000;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;stroke-width:2;" d="M6,10.18 C6,7.87,7.79,6,10,6 C10,6,32,6,32,6 C34.21,6,36,7.87,36,10.18 C36,10.18,36,24.82,36,24.82 C36,27.13,34.21,29,32,29 C32,29,10,29,10,29 C7.79,29,6,27.13,6,24.82 C6,24.82,6,10.18,6,10.18 z"/><path style="fill:#ffffff;fill-rule:nonzero;stroke:#000000;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;stroke-width:2;" d="M21,11 C21,11,21,23,21,23"/><path style="fill:#ffffff;fill-rule:nonzero;stroke:#000000;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;stroke-width:2;" d="M25,15 C25,15,25,17,25,17"/><path style="fill:#ffffff;fill-rule:nonzero;stroke:#000000;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;stroke-width:2;" d="M17,15 C17,15,17,17,17,17"/></g></g></g></svg> ',tosi:'<svg class="color" viewBox="0 0 48 48"><g><path style="fill:#9e9e9e;fill-rule:nonzero;stroke:#000000;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;stroke-width:2;" d="M38.35,31.7 C39.78,34.37,38.78,37.69,36.11,39.13 C36.11,39.13,36.11,39.13,36.11,39.13 C33.92,40.31,31.18,39.48,29.99,37.29 C29.99,37.29,29.95,37.2,29.95,37.2 C29.58,36.53,28.75,36.27,28.08,36.64 C28.08,36.64,28.08,36.64,28.08,36.64 C25.83,37.84,23.03,37,21.82,34.76 C21.82,34.76,20.22,31.78,20.22,31.78 C18.99,29.5,19.85,26.67,22.12,25.44 C22.12,25.44,27.32,22.65,27.32,22.65 C29.96,21.23,33.24,22.22,34.66,24.85 C34.66,24.85,38.35,31.7,38.35,31.7 z"/><path style="fill:#9e9e9e;fill-rule:nonzero;stroke:#000000;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;stroke-width:2;" d="M10.65,31.7 C9.22,34.37,10.22,37.69,12.89,39.13 C12.89,39.13,12.89,39.13,12.89,39.13 C15.08,40.31,17.82,39.48,19.01,37.29 C19.01,37.29,19.05,37.2,19.05,37.2 C19.42,36.53,20.25,36.27,20.92,36.64 C20.92,36.64,20.92,36.64,20.92,36.64 C23.17,37.84,25.97,37,27.18,34.76 C27.18,34.76,28.78,31.78,28.78,31.78 C30.01,29.5,29.15,26.67,26.88,25.44 C26.88,25.44,21.68,22.65,21.68,22.65 C19.04,21.23,15.76,22.22,14.34,24.85 C14.34,24.85,10.65,31.7,10.65,31.7 z"/><path style="fill:none;stroke:#000000;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;stroke-width:2;" d="M32.5,43 C32.5,43,30.5,41,30.5,41 C30.5,41,28.5,43,28.5,43"/><path style="fill:none;stroke:#000000;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;stroke-width:2;" d="M20.5,43 C20.5,43,18.5,41,18.5,41 C18.5,41,16.5,43,16.5,43"/><path style="fill:#e4e4e4;fill-rule:evenodd;stroke:#000000;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;stroke-width:2;" d="M16.5,29 C16.5,29,32.5,29,32.5,29 C32.5,29,32.5,36,32.5,36 C32.5,37.66,31.16,39,29.5,39 C29.5,39,19.5,39,19.5,39 C17.84,39,16.5,37.66,16.5,36 C16.5,36,16.5,29,16.5,29 z"/><g><path style="fill:#ffffff;fill-rule:evenodd;stroke:#000000;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;stroke-width:2;" d="M9.5,10.18 C9.5,7.87,11.29,6,13.5,6 C13.5,6,35.5,6,35.5,6 C37.71,6,39.5,7.87,39.5,10.18 C39.5,10.18,39.5,24.82,39.5,24.82 C39.5,27.13,37.71,29,35.5,29 C35.5,29,13.5,29,13.5,29 C11.29,29,9.5,27.13,9.5,24.82 C9.5,24.82,9.5,10.18,9.5,10.18 z"/><g><path style="fill:#ffffff;fill-rule:nonzero;stroke:#000000;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;stroke-width:2;" d="M24.5,11 C24.5,11,24.5,23,24.5,23"/><path style="fill:#ffffff;fill-rule:nonzero;stroke:#000000;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;stroke-width:2;" d="M28.5,15 C28.5,15,28.5,17,28.5,17"/><path style="fill:#ffffff;fill-rule:nonzero;stroke:#000000;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;stroke-width:2;" d="M20.5,15 C20.5,15,20.5,17,20.5,17"/></g></g></g></svg> ',sortDescending:'<svg class="stroked" viewBox="0 0 24 24"><g><path d="M16.5,14.5 C16.5,14.5,7.5,14.5,7.5,14.5"/><path d="M14.5,18.5 C14.5,18.5,9.5,18.5,9.5,18.5"/><path d="M18.5,10.5 C18.5,10.5,5.5,10.5,5.5,10.5"/><path d="M20.5,6.5 C20.5,6.5,3.5,6.5,3.5,6.5"/></g></svg> ',columns:'<svg class="stroked" viewBox="0 0 24 24"><path d="M12 3h7a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-7m0-18H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h7m0-18v18"></path></svg>',underline:'<svg class="stroked" viewBox="0 0 24 24"><path d="M6 3v7a6 6 0 0 0 6 6 6 6 0 0 0 6-6V3"></path><line x1="4" y1="21" x2="20" y2="21"></line></svg>',grid:'<svg class="stroked" viewBox="0 0 24 24"><rect x="3" y="3" width="7" height="7"></rect><rect x="14" y="3" width="7" height="7"></rect><rect x="14" y="14" width="7" height="7"></rect><rect x="3" y="14" width="7" height="7"></rect></svg>',triangle:'<svg class="stroked" viewBox="0 0 24 24"><path d="M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z"></path></svg>',search:'<svg class="stroked" viewBox="0 0 24 24"><circle cx="11" cy="11" r="8"></circle><line x1="21" y1="21" x2="16.65" y2="16.65"></line></svg>',volume2:'<svg class="stroked" viewBox="0 0 24 24"><polygon points="11 5 6 9 2 9 2 15 6 15 11 19 11 5"></polygon><path d="M19.07 4.93a10 10 0 0 1 0 14.14M15.54 8.46a5 5 0 0 1 0 7.07"></path></svg>',arrowUpCircle:'<svg class="stroked" viewBox="0 0 24 24"><circle cx="12" cy="12" r="10"></circle><polyline points="16 12 12 8 8 12"></polyline><line x1="12" y1="16" x2="12" y2="8"></line></svg>',pauseCircle:'<svg class="stroked" viewBox="0 0 24 24"><circle cx="12" cy="12" r="10"></circle><line x1="10" y1="15" x2="10" y2="9"></line><line x1="14" y1="15" x2="14" y2="9"></line></svg>',checkSquare:'<svg class="stroked" viewBox="0 0 24 24"><polyline points="9 11 12 14 22 4"></polyline><path d="M21 12v7a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11"></path></svg>',arrowDown:'<svg class="stroked" viewBox="0 0 24 24"><line x1="12" y1="5" x2="12" y2="19"></line><polyline points="19 12 12 19 5 12"></polyline></svg>',figma:'<svg class="stroked" viewBox="0 0 24 24"><path d="M5 5.5A3.5 3.5 0 0 1 8.5 2H12v7H8.5A3.5 3.5 0 0 1 5 5.5z"></path><path d="M12 2h3.5a3.5 3.5 0 1 1 0 7H12V2z"></path><path d="M12 12.5a3.5 3.5 0 1 1 7 0 3.5 3.5 0 1 1-7 0z"></path><path d="M5 19.5A3.5 3.5 0 0 1 8.5 16H12v3.5a3.5 3.5 0 1 1-7 0z"></path><path d="M5 12.5A3.5 3.5 0 0 1 8.5 9H12v7H8.5A3.5 3.5 0 0 1 5 12.5z"></path></svg>',cornerRightUp:'<svg class="stroked" viewBox="0 0 24 24"><polyline points="10 9 15 4 20 9"></polyline><path d="M4 20h7a4 4 0 0 0 4-4V4"></path></svg>',chevronsRight:'<svg class="stroked" viewBox="0 0 24 24"><polyline points="13 17 18 12 13 7"></polyline><polyline points="6 17 11 12 6 7"></polyline></svg>',list:'<svg class="stroked" viewBox="0 0 24 24"><line x1="8" y1="6" x2="21" y2="6"></line><line x1="8" y1="12" x2="21" y2="12"></line><line x1="8" y1="18" x2="21" y2="18"></line><line x1="3" y1="6" x2="3.01" y2="6"></line><line x1="3" y1="12" x2="3.01" y2="12"></line><line x1="3" y1="18" x2="3.01" y2="18"></line></svg>',chevronsDown:'<svg class="stroked" viewBox="0 0 24 24"><polyline points="7 13 12 18 17 13"></polyline><polyline points="7 6 12 11 17 6"></polyline></svg>',wind:'<svg class="stroked" viewBox="0 0 24 24"><path d="M9.59 4.59A2 2 0 1 1 11 8H2m10.59 11.41A2 2 0 1 0 14 16H2m15.73-8.27A2.5 2.5 0 1 1 19.5 12H2"></path></svg>',cornerUpRight:'<svg class="stroked" viewBox="0 0 24 24"><polyline points="15 14 20 9 15 4"></polyline><path d="M4 20v-7a4 4 0 0 1 4-4h12"></path></svg>',target:'<svg class="stroked" viewBox="0 0 24 24"><circle cx="12" cy="12" r="10"></circle><circle cx="12" cy="12" r="6"></circle><circle cx="12" cy="12" r="2"></circle></svg>',scissors:'<svg class="stroked" viewBox="0 0 24 24"><circle cx="6" cy="6" r="3"></circle><circle cx="6" cy="18" r="3"></circle><line x1="20" y1="4" x2="8.12" y2="15.88"></line><line x1="14.47" y1="14.48" x2="20" y2="20"></line><line x1="8.12" y1="8.12" x2="12" y2="12"></line></svg>',minimize2:'<svg class="stroked" viewBox="0 0 24 24"><polyline points="4 14 10 14 10 20"></polyline><polyline points="20 10 14 10 14 4"></polyline><line x1="14" y1="10" x2="21" y2="3"></line><line x1="3" y1="21" x2="10" y2="14"></line></svg>',playCircle:'<svg class="stroked" viewBox="0 0 24 24"><circle cx="12" cy="12" r="10"></circle><polygon points="10 8 16 12 10 16 10 8"></polygon></svg>',crosshair:'<svg class="stroked" viewBox="0 0 24 24"><circle cx="12" cy="12" r="10"></circle><line x1="22" y1="12" x2="18" y2="12"></line><line x1="6" y1="12" x2="2" y2="12"></line><line x1="12" y1="6" x2="12" y2="2"></line><line x1="12" y1="22" x2="12" y2="18"></line></svg>',airplay:'<svg class="stroked" viewBox="0 0 24 24"><path d="M5 17H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2h-1"></path><polygon points="12 15 17 21 7 21 12 15"></polygon></svg>',xOctagon:'<svg class="stroked" viewBox="0 0 24 24"><polygon points="7.86 2 16.14 2 22 7.86 22 16.14 16.14 22 7.86 22 2 16.14 2 7.86 7.86 2"></polygon><line x1="15" y1="9" x2="9" y2="15"></line><line x1="9" y1="9" x2="15" y2="15"></line></svg>',repeat:'<svg class="stroked" viewBox="0 0 24 24"><polyline points="17 1 21 5 17 9"></polyline><path d="M3 11V9a4 4 0 0 1 4-4h14"></path><polyline points="7 23 3 19 7 15"></polyline><path d="M21 13v2a4 4 0 0 1-4 4H3"></path></svg>',edit3:'<svg class="stroked" viewBox="0 0 24 24"><path d="M12 20h9"></path><path d="M16.5 3.5a2.12 2.12 0 0 1 3 3L7 19l-4 1 1-4L16.5 3.5z"></path></svg>',volume1:'<svg class="stroked" viewBox="0 0 24 24"><polygon points="11 5 6 9 2 9 2 15 6 15 11 19 11 5"></polygon><path d="M15.54 8.46a5 5 0 0 1 0 7.07"></path></svg>',sunrise:'<svg class="stroked" viewBox="0 0 24 24"><path d="M17 18a5 5 0 0 0-10 0"></path><line x1="12" y1="2" x2="12" y2="9"></line><line x1="4.22" y1="10.22" x2="5.64" y2="11.64"></line><line x1="1" y1="18" x2="3" y2="18"></line><line x1="21" y1="18" x2="23" y2="18"></line><line x1="18.36" y1="11.64" x2="19.78" y2="10.22"></line><line x1="23" y1="22" x2="1" y2="22"></line><polyline points="8 6 12 2 16 6"></polyline></svg>',toggleRight:'<svg class="stroked" viewBox="0 0 24 24"><rect x="1" y="5" width="22" height="14" rx="7" ry="7"></rect><circle cx="16" cy="12" r="3"></circle></svg>',umbrella:'<svg class="stroked" viewBox="0 0 24 24"><path d="M23 12a11.05 11.05 0 0 0-22 0zm-5 7a3 3 0 0 1-6 0v-7"></path></svg>',user:'<svg class="stroked" viewBox="0 0 24 24"><path d="M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2"></path><circle cx="12" cy="7" r="4"></circle></svg>',fileMinus:'<svg class="stroked" viewBox="0 0 24 24"><path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"></path><polyline points="14 2 14 8 20 8"></polyline><line x1="9" y1="15" x2="15" y2="15"></line></svg>',xCircle:'<svg class="stroked" viewBox="0 0 24 24"><circle cx="12" cy="12" r="10"></circle><line x1="15" y1="9" x2="9" y2="15"></line><line x1="9" y1="9" x2="15" y2="15"></line></svg>',circle:'<svg class="stroked" viewBox="0 0 24 24"><circle cx="12" cy="12" r="10"></circle></svg>',phoneMissed:'<svg class="stroked" viewBox="0 0 24 24"><line x1="23" y1="1" x2="17" y2="7"></line><line x1="17" y1="1" x2="23" y2="7"></line><path d="M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z"></path></svg>',edit2:'<svg class="stroked" viewBox="0 0 24 24"><path d="M17 3a2.83 2.83 0 1 1 4 4L7.5 20.5 2 22l1.5-5.5L17 3z"></path></svg>',cornerLeftUp:'<svg class="stroked" viewBox="0 0 24 24"><polyline points="14 9 9 4 4 9"></polyline><path d="M20 20h-7a4 4 0 0 1-4-4V4"></path></svg>',home:'<svg class="stroked" viewBox="0 0 24 24"><path d="M3 9l9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"></path><polyline points="9 22 9 12 15 12 15 22"></polyline></svg>',gitlab:'<svg class="stroked" viewBox="0 0 24 24"><path d="M22.65 14.39L12 22.13 1.35 14.39a.84.84 0 0 1-.3-.94l1.22-3.78 2.44-7.51A.42.42 0 0 1 4.82 2a.43.43 0 0 1 .58 0 .42.42 0 0 1 .11.18l2.44 7.49h8.1l2.44-7.51A.42.42 0 0 1 18.6 2a.43.43 0 0 1 .58 0 .42.42 0 0 1 .11.18l2.44 7.51L23 13.45a.84.84 0 0 1-.35.94z"></path></svg>',music:'<svg class="stroked" viewBox="0 0 24 24"><path d="M9 18V5l12-2v13"></path><circle cx="6" cy="18" r="3"></circle><circle cx="18" cy="16" r="3"></circle></svg>',smartphone:'<svg class="stroked" viewBox="0 0 24 24"><rect x="5" y="2" width="14" height="20" rx="2" ry="2"></rect><line x1="12" y1="18" x2="12.01" y2="18"></line></svg>',moreHorizontal:'<svg class="stroked" viewBox="0 0 24 24"><circle cx="12" cy="12" r="1"></circle><circle cx="19" cy="12" r="1"></circle><circle cx="5" cy="12" r="1"></circle></svg>',sliders:'<svg class="stroked" viewBox="0 0 24 24"><line x1="4" y1="21" x2="4" y2="14"></line><line x1="4" y1="10" x2="4" y2="3"></line><line x1="12" y1="21" x2="12" y2="12"></line><line x1="12" y1="8" x2="12" y2="3"></line><line x1="20" y1="21" x2="20" y2="16"></line><line x1="20" y1="12" x2="20" y2="3"></line><line x1="1" y1="14" x2="7" y2="14"></line><line x1="9" y1="8" x2="15" y2="8"></line><line x1="17" y1="16" x2="23" y2="16"></line></svg>',arrowUpLeft:'<svg class="stroked" viewBox="0 0 24 24"><line x1="17" y1="17" x2="7" y2="7"></line><polyline points="7 17 7 7 17 7"></polyline></svg>',chevronDown:'<svg class="stroked" viewBox="0 0 24 24"><polyline points="6 9 12 15 18 9"></polyline></svg>',hexagon:'<svg class="stroked" viewBox="0 0 24 24"><path d="M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z"></path></svg>',github:'<svg class="stroked" viewBox="0 0 24 24"><path d="M9 19c-5 1.5-5-2.5-7-3m14 6v-3.87a3.37 3.37 0 0 0-.94-2.61c3.14-.35 6.44-1.54 6.44-7A5.44 5.44 0 0 0 20 4.77 5.07 5.07 0 0 0 19.91 1S18.73.65 16 2.48a13.38 13.38 0 0 0-7 0C6.27.65 5.09 1 5.09 1A5.07 5.07 0 0 0 5 4.77a5.44 5.44 0 0 0-1.5 3.78c0 5.42 3.3 6.61 6.44 7A3.37 3.37 0 0 0 9 18.13V22"></path></svg>',crop:'<svg class="stroked" viewBox="0 0 24 24"><path d="M6.13 1L6 16a2 2 0 0 0 2 2h15"></path><path d="M1 6.13L16 6a2 2 0 0 1 2 2v15"></path></svg>',tag:'<svg class="stroked" viewBox="0 0 24 24"><path d="M20.59 13.41l-7.17 7.17a2 2 0 0 1-2.83 0L2 12V2h10l8.59 8.59a2 2 0 0 1 0 2.82z"></path><line x1="7" y1="7" x2="7.01" y2="7"></line></svg>',briefcase:'<svg class="stroked" viewBox="0 0 24 24"><rect x="2" y="7" width="20" height="14" rx="2" ry="2"></rect><path d="M16 21V5a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16"></path></svg>',rotateCw:'<svg class="stroked" viewBox="0 0 24 24"><polyline points="23 4 23 10 17 10"></polyline><path d="M20.49 15a9 9 0 1 1-2.12-9.36L23 10"></path></svg>',map:'<svg class="stroked" viewBox="0 0 24 24"><polygon points="1 6 1 22 8 18 16 22 23 18 23 2 16 6 8 2 1 6"></polygon><line x1="8" y1="2" x2="8" y2="18"></line><line x1="16" y1="6" x2="16" y2="22"></line></svg>',inbox:'<svg class="stroked" viewBox="0 0 24 24"><polyline points="22 12 16 12 14 15 10 15 8 12 2 12"></polyline><path d="M5.45 5.11L2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z"></path></svg>',alignJustify:'<svg class="stroked" viewBox="0 0 24 24"><line x1="21" y1="10" x2="3" y2="10"></line><line x1="21" y1="6" x2="3" y2="6"></line><line x1="21" y1="14" x2="3" y2="14"></line><line x1="21" y1="18" x2="3" y2="18"></line></svg>',plusSquare:'<svg class="stroked" viewBox="0 0 24 24"><rect x="3" y="3" width="18" height="18" rx="2" ry="2"></rect><line x1="12" y1="8" x2="12" y2="16"></line><line x1="8" y1="12" x2="16" y2="12"></line></svg>',power:'<svg class="stroked" viewBox="0 0 24 24"><path d="M18.36 6.64a9 9 0 1 1-12.73 0"></path><line x1="12" y1="2" x2="12" y2="12"></line></svg>',database:'<svg class="stroked" viewBox="0 0 24 24"><ellipse cx="12" cy="5" rx="9" ry="3"></ellipse><path d="M21 12c0 1.66-4 3-9 3s-9-1.34-9-3"></path><path d="M3 5v14c0 1.66 4 3 9 3s9-1.34 9-3V5"></path></svg>',cameraOff:'<svg class="stroked" viewBox="0 0 24 24"><line x1="1" y1="1" x2="23" y2="23"></line><path d="M21 21H3a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h3m3-3h6l2 3h4a2 2 0 0 1 2 2v9.34m-7.72-2.06a4 4 0 1 1-5.56-5.56"></path></svg>',toggleLeft:'<svg class="stroked" viewBox="0 0 24 24"><rect x="1" y="5" width="22" height="14" rx="7" ry="7"></rect><circle cx="8" cy="12" r="3"></circle></svg>',file:'<svg class="stroked" viewBox="0 0 24 24"><path d="M13 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V9z"></path><polyline points="13 2 13 9 20 9"></polyline></svg>',messageCircle:'<svg class="stroked" viewBox="0 0 24 24"><path d="M21 11.5a8.38 8.38 0 0 1-.9 3.8 8.5 8.5 0 0 1-7.6 4.7 8.38 8.38 0 0 1-3.8-.9L3 21l1.9-5.7a8.38 8.38 0 0 1-.9-3.8 8.5 8.5 0 0 1 4.7-7.6 8.38 8.38 0 0 1 3.8-.9h.5a8.48 8.48 0 0 1 8 8v.5z"></path></svg>',voicemail:'<svg class="stroked" viewBox="0 0 24 24"><circle cx="5.5" cy="11.5" r="4.5"></circle><circle cx="18.5" cy="11.5" r="4.5"></circle><line x1="5.5" y1="16" x2="18.5" y2="16"></line></svg>',terminal:'<svg class="stroked" viewBox="0 0 24 24"><polyline points="4 17 10 11 4 5"></polyline><line x1="12" y1="19" x2="20" y2="19"></line></svg>',move:'<svg class="stroked" viewBox="0 0 24 24"><polyline points="5 9 2 12 5 15"></polyline><polyline points="9 5 12 2 15 5"></polyline><polyline points="15 19 12 22 9 19"></polyline><polyline points="19 9 22 12 19 15"></polyline><line x1="2" y1="12" x2="22" y2="12"></line><line x1="12" y1="2" x2="12" y2="22"></line></svg>',maximize:'<svg class="stroked" viewBox="0 0 24 24"><path d="M8 3H5a2 2 0 0 0-2 2v3m18 0V5a2 2 0 0 0-2-2h-3m0 18h3a2 2 0 0 0 2-2v-3M3 16v3a2 2 0 0 0 2 2h3"></path></svg>',chevronUp:'<svg class="stroked" viewBox="0 0 24 24"><polyline points="18 15 12 9 6 15"></polyline></svg>',arrowDownLeft:'<svg class="stroked" viewBox="0 0 24 24"><line x1="17" y1="7" x2="7" y2="17"></line><polyline points="17 17 7 17 7 7"></polyline></svg>',fileText:'<svg class="stroked" viewBox="0 0 24 24"><path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"></path><polyline points="14 2 14 8 20 8"></polyline><line x1="16" y1="13" x2="8" y2="13"></line><line x1="16" y1="17" x2="8" y2="17"></line><polyline points="10 9 9 9 8 9"></polyline></svg>',droplet:'<svg class="stroked" viewBox="0 0 24 24"><path d="M12 2.69l5.66 5.66a8 8 0 1 1-11.31 0z"></path></svg>',zapOff:'<svg class="stroked" viewBox="0 0 24 24"><polyline points="12.41 6.75 13 2 10.57 4.92"></polyline><polyline points="18.57 12.91 21 10 15.66 10"></polyline><polyline points="8 8 3 14 12 14 11 22 16 16"></polyline><line x1="1" y1="1" x2="23" y2="23"></line></svg>',x:'<svg class="stroked" viewBox="0 0 24 24"><line x1="18" y1="6" x2="6" y2="18"></line><line x1="6" y1="6" x2="18" y2="18"></line></svg>',barChart:'<svg class="stroked" viewBox="0 0 24 24"><line x1="12" y1="20" x2="12" y2="10"></line><line x1="18" y1="20" x2="18" y2="4"></line><line x1="6" y1="20" x2="6" y2="16"></line></svg>',lock:'<svg class="stroked" viewBox="0 0 24 24"><rect x="3" y="11" width="18" height="11" rx="2" ry="2"></rect><path d="M7 11V7a5 5 0 0 1 10 0v4"></path></svg>',logIn:'<svg class="stroked" viewBox="0 0 24 24"><path d="M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4"></path><polyline points="10 17 15 12 10 7"></polyline><line x1="15" y1="12" x2="3" y2="12"></line></svg>',shoppingBag:'<svg class="stroked" viewBox="0 0 24 24"><path d="M6 2L3 6v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6l-3-4z"></path><line x1="3" y1="6" x2="21" y2="6"></line><path d="M16 10a4 4 0 0 1-8 0"></path></svg>',divide:'<svg class="stroked" viewBox="0 0 24 24"><circle cx="12" cy="6" r="2"></circle><line x1="5" y1="12" x2="19" y2="12"></line><circle cx="12" cy="18" r="2"></circle></svg>',cloudDrizzle:'<svg class="stroked" viewBox="0 0 24 24"><line x1="8" y1="19" x2="8" y2="21"></line><line x1="8" y1="13" x2="8" y2="15"></line><line x1="16" y1="19" x2="16" y2="21"></line><line x1="16" y1="13" x2="16" y2="15"></line><line x1="12" y1="21" x2="12" y2="23"></line><line x1="12" y1="15" x2="12" y2="17"></line><path d="M20 16.58A5 5 0 0 0 18 7h-1.26A8 8 0 1 0 4 15.25"></path></svg>',refreshCw:'<svg class="stroked" viewBox="0 0 24 24"><polyline points="23 4 23 10 17 10"></polyline><polyline points="1 20 1 14 7 14"></polyline><path d="M3.51 9a9 9 0 0 1 14.85-3.36L23 10M1 14l4.64 4.36A9 9 0 0 0 20.49 15"></path></svg>',chevronRight:'<svg class="stroked" viewBox="0 0 24 24"><polyline points="9 18 15 12 9 6"></polyline></svg>',clipboard:'<svg class="stroked" viewBox="0 0 24 24"><path d="M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2"></path><rect x="8" y="2" width="8" height="4" rx="1" ry="1"></rect></svg>',package:'<svg class="stroked" viewBox="0 0 24 24"><line x1="16.5" y1="9.4" x2="7.5" y2="4.21"></line><path d="M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z"></path><polyline points="3.27 6.96 12 12.01 20.73 6.96"></polyline><line x1="12" y1="22.08" x2="12" y2="12"></line></svg>',instagram:'<svg class="stroked" viewBox="0 0 24 24"><rect x="2" y="2" width="20" height="20" rx="5" ry="5"></rect><path d="M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z"></path><line x1="17.5" y1="6.5" x2="17.51" y2="6.5"></line></svg>',link:'<svg class="stroked" viewBox="0 0 24 24"><path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"></path><path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"></path></svg>',videoOff:'<svg class="stroked" viewBox="0 0 24 24"><path d="M16 16v1a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V7a2 2 0 0 1 2-2h2m5.66 0H14a2 2 0 0 1 2 2v3.34l1 1L23 7v10"></path><line x1="1" y1="1" x2="23" y2="23"></line></svg>',key:'<svg class="stroked" viewBox="0 0 24 24"><path d="M21 2l-2 2m-7.61 7.61a5.5 5.5 0 1 1-7.78 7.78 5.5 5.5 0 0 1 7.78-7.78zm0 0L15.5 7.5m0 0l3 3L22 7l-3-3m-3.5 3.5L19 4"></path></svg>',meh:'<svg class="stroked" viewBox="0 0 24 24"><circle cx="12" cy="12" r="10"></circle><line x1="8" y1="15" x2="16" y2="15"></line><line x1="9" y1="9" x2="9.01" y2="9"></line><line x1="15" y1="9" x2="15.01" y2="9"></line></svg>',cornerDownRight:'<svg class="stroked" viewBox="0 0 24 24"><polyline points="15 10 20 15 15 20"></polyline><path d="M4 4v7a4 4 0 0 0 4 4h12"></path></svg>',arrowRight:'<svg class="stroked" viewBox="0 0 24 24"><line x1="5" y1="12" x2="19" y2="12"></line><polyline points="12 5 19 12 12 19"></polyline></svg>',aperture:'<svg class="stroked" viewBox="0 0 24 24"><circle cx="12" cy="12" r="10"></circle><line x1="14.31" y1="8" x2="20.05" y2="17.94"></line><line x1="9.69" y1="8" x2="21.17" y2="8"></line><line x1="7.38" y1="12" x2="13.12" y2="2.06"></line><line x1="9.69" y1="16" x2="3.95" y2="6.06"></line><line x1="14.31" y1="16" x2="2.83" y2="16"></line><line x1="16.62" y1="12" x2="10.88" y2="21.94"></line></svg>',stopCircle:'<svg class="stroked" viewBox="0 0 24 24"><circle cx="12" cy="12" r="10"></circle><rect x="9" y="9" width="6" height="6"></rect></svg>',logOut:'<svg class="stroked" viewBox="0 0 24 24"><path d="M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4"></path><polyline points="16 17 21 12 16 7"></polyline><line x1="21" y1="12" x2="9" y2="12"></line></svg>',arrowLeftCircle:'<svg class="stroked" viewBox="0 0 24 24"><circle cx="12" cy="12" r="10"></circle><polyline points="12 8 8 12 12 16"></polyline><line x1="16" y1="12" x2="8" y2="12"></line></svg>',barChart2:'<svg class="stroked" viewBox="0 0 24 24"><line x1="18" y1="20" x2="18" y2="10"></line><line x1="12" y1="20" x2="12" y2="4"></line><line x1="6" y1="20" x2="6" y2="14"></line></svg>',gitPullRequest:'<svg class="stroked" viewBox="0 0 24 24"><circle cx="18" cy="18" r="3"></circle><circle cx="6" cy="6" r="3"></circle><path d="M13 6h3a2 2 0 0 1 2 2v7"></path><line x1="6" y1="9" x2="6" y2="21"></line></svg>',minimize:'<svg class="stroked" viewBox="0 0 24 24"><path d="M8 3v3a2 2 0 0 1-2 2H3m18 0h-3a2 2 0 0 1-2-2V3m0 18v-3a2 2 0 0 1 2-2h3M3 16h3a2 2 0 0 1 2 2v3"></path></svg>',minusSquare:'<svg class="stroked" viewBox="0 0 24 24"><rect x="3" y="3" width="18" height="18" rx="2" ry="2"></rect><line x1="8" y1="12" x2="16" y2="12"></line></svg>',settings:'<svg class="stroked" viewBox="0 0 24 24"><circle cx="12" cy="12" r="3"></circle><path d="M19.4 15a1.65 1.65 0 0 0 .33 1.82l.6.06a2 2 0 0 1 0 2.83 2 2 0 0 1-2.83 0l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-2 2 2 2 0 0 1-2-2v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.6.06a2 2 0 0 1-2.83 0 2 2 0 0 1 0-2.83l.06-.06a1.65 1.65 0 0 0 .33-1.82 1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1-2-2 2 2 0 0 1 2-2h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 0-2.83 2 2 0 0 1 2.83 0l.6.06a1.65 1.65 0 0 0 1.82.33H9a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 2-2 2 2 0 0 1 2 2v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 0 2 2 0 0 1 0 2.83l-.6.06a1.65 1.65 0 0 0-.33 1.82V9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 2 2 2 2 0 0 1-2 2h-.09a1.65 1.65 0 0 0-1.51 1z"></path></svg>',cloudSnow:'<svg class="stroked" viewBox="0 0 24 24"><path d="M20 17.58A5 5 0 0 0 18 8h-1.26A8 8 0 1 0 4 16.25"></path><line x1="8" y1="16" x2="8.01" y2="16"></line><line x1="8" y1="20" x2="8.01" y2="20"></line><line x1="12" y1="18" x2="12.01" y2="18"></line><line x1="12" y1="22" x2="12.01" y2="22"></line><line x1="16" y1="16" x2="16.01" y2="16"></line><line x1="16" y1="20" x2="16.01" y2="20"></line></svg>',thumbsDown:'<svg class="stroked" viewBox="0 0 24 24"><path d="M10 15v4a3 3 0 0 0 3 3l4-9V2H5.72a2 2 0 0 0-2 1.7l-1.38 9a2 2 0 0 0 2 2.3zm7-13h2.67A2.31 2.31 0 0 1 22 4v7a2.31 2.31 0 0 1-2.33 2H17"></path></svg>',type:'<svg class="stroked" viewBox="0 0 24 24"><polyline points="4 7 4 4 20 4 20 7"></polyline><line x1="9" y1="20" x2="15" y2="20"></line><line x1="12" y1="4" x2="12" y2="20"></line></svg>',archive:'<svg class="stroked" viewBox="0 0 24 24"><polyline points="21 8 21 21 3 21 3 8"></polyline><rect x="1" y="3" width="22" height="5"></rect><line x1="10" y1="12" x2="14" y2="12"></line></svg>',phoneOutgoing:'<svg class="stroked" viewBox="0 0 24 24"><polyline points="23 7 23 1 17 1"></polyline><line x1="16" y1="8" x2="23" y2="1"></line><path d="M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z"></path></svg>',pocket:'<svg class="stroked" viewBox="0 0 24 24"><path d="M4 3h16a2 2 0 0 1 2 2v6a10 10 0 0 1-10 10A10 10 0 0 1 2 11V5a2 2 0 0 1 2-2z"></path><polyline points="8 10 12 14 16 10"></polyline></svg>',mail:'<svg class="stroked" viewBox="0 0 24 24"><path d="M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z"></path><polyline points="22,6 12,13 2,6"></polyline></svg>',shield:'<svg class="stroked" viewBox="0 0 24 24"><path d="M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z"></path></svg>',download:'<svg class="stroked" viewBox="0 0 24 24"><path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"></path><polyline points="7 10 12 15 17 10"></polyline><line x1="12" y1="15" x2="12" y2="3"></line></svg>',phoneForwarded:'<svg class="stroked" viewBox="0 0 24 24"><polyline points="19 1 23 5 19 9"></polyline><line x1="15" y1="5" x2="23" y2="5"></line><path d="M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z"></path></svg>',cornerRightDown:'<svg class="stroked" viewBox="0 0 24 24"><polyline points="10 15 15 20 20 15"></polyline><path d="M4 4h7a4 4 0 0 1 4 4v12"></path></svg>',bookOpen:'<svg class="stroked" viewBox="0 0 24 24"><path d="M2 3h6a4 4 0 0 1 4 4v14a3 3 0 0 0-3-3H2z"></path><path d="M22 3h-6a4 4 0 0 0-4 4v14a3 3 0 0 1 3-3h7z"></path></svg>',divideSquare:'<svg class="stroked" viewBox="0 0 24 24"><rect x="3" y="3" width="18" height="18" rx="2" ry="2"></rect><line x1="8" y1="12" x2="16" y2="12"></line><line x1="12" y1="16" x2="12" y2="16"></line><line x1="12" y1="8" x2="12" y2="8"></line></svg>',server:'<svg class="stroked" viewBox="0 0 24 24"><rect x="2" y="2" width="20" height="8" rx="2" ry="2"></rect><rect x="2" y="14" width="20" height="8" rx="2" ry="2"></rect><line x1="6" y1="6" x2="6.01" y2="6"></line><line x1="6" y1="18" x2="6.01" y2="18"></line></svg>',tv:'<svg class="stroked" viewBox="0 0 24 24"><rect x="2" y="7" width="20" height="15" rx="2" ry="2"></rect><polyline points="17 2 12 7 7 2"></polyline></svg>',skipForward:'<svg class="stroked" viewBox="0 0 24 24"><polygon points="5 4 15 12 5 20 5 4"></polygon><line x1="19" y1="5" x2="19" y2="19"></line></svg>',volume:'<svg class="stroked" viewBox="0 0 24 24"><polygon points="11 5 6 9 2 9 2 15 6 15 11 19 11 5"></polygon></svg>',userPlus:'<svg class="stroked" viewBox="0 0 24 24"><path d="M16 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2"></path><circle cx="8.5" cy="7" r="4"></circle><line x1="20" y1="8" x2="20" y2="14"></line><line x1="23" y1="11" x2="17" y2="11"></line></svg>',batteryCharging:'<svg class="stroked" viewBox="0 0 24 24"><path d="M5 18H3a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h3.19M15 6h2a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2h-3.19"></path><line x1="23" y1="13" x2="23" y2="11"></line><polyline points="11 6 7 12 13 12 9 18"></polyline></svg>',layers:'<svg class="stroked" viewBox="0 0 24 24"><polygon points="12 2 2 7 12 12 22 7 12 2"></polygon><polyline points="2 17 12 22 22 17"></polyline><polyline points="2 12 12 17 22 12"></polyline></svg>',slash:'<svg class="stroked" viewBox="0 0 24 24"><circle cx="12" cy="12" r="10"></circle><line x1="4.93" y1="4.93" x2="19.07" y2="19.07"></line></svg>',radio:'<svg class="stroked" viewBox="0 0 24 24"><circle cx="12" cy="12" r="2"></circle><path d="M16.24 7.76a6 6 0 0 1 0 8.49m-8.48-.01a6 6 0 0 1 0-8.49m11.31-2.82a10 10 0 0 1 0 14.14m-14.14 0a10 10 0 0 1 0-14.14"></path></svg>',book:'<svg class="stroked" viewBox="0 0 24 24"><path d="M4 19.5A2.5 2.5 0 0 1 6.5 17H20"></path><path d="M6.5 2H20v20H6.5A2.5 2.5 0 0 1 4 19.5v-15A2.5 2.5 0 0 1 6.5 2z"></path></svg>',userMinus:'<svg class="stroked" viewBox="0 0 24 24"><path d="M16 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2"></path><circle cx="8.5" cy="7" r="4"></circle><line x1="23" y1="11" x2="17" y2="11"></line></svg>',bell:'<svg class="stroked" viewBox="0 0 24 24"><path d="M18 8A6 6 0 0 0 6 8c0 7-3 9-3 9h18s-3-2-3-9"></path><path d="M13.73 21a2 2 0 0 1-3.46 0"></path></svg>',gitBranch:'<svg class="stroked" viewBox="0 0 24 24"><line x1="6" y1="3" x2="6" y2="15"></line><circle cx="18" cy="6" r="3"></circle><circle cx="6" cy="18" r="3"></circle><path d="M18 9a9 9 0 0 1-9 9"></path></svg>',coffee:'<svg class="stroked" viewBox="0 0 24 24"><path d="M18 8h1a4 4 0 0 1 0 8h-1"></path><path d="M2 8h16v9a4 4 0 0 1-4 4H6a4 4 0 0 1-4-4V8z"></path><line x1="6" y1="1" x2="6" y2="4"></line><line x1="10" y1="1" x2="10" y2="4"></line><line x1="14" y1="1" x2="14" y2="4"></line></svg>',code:'<svg class="stroked" viewBox="0 0 24 24"><polyline points="16 18 22 12 16 6"></polyline><polyline points="8 6 2 12 8 18"></polyline></svg>',thermometer:'<svg class="stroked" viewBox="0 0 24 24"><path d="M14 14.76V3.5a2.5 2.5 0 0 0-5 0v11.26a4.5 4.5 0 1 0 5 0z"></path></svg>',cast:'<svg class="stroked" viewBox="0 0 24 24"><path d="M2 16.1A5 5 0 0 1 5.9 20M2 12.05A9 9 0 0 1 9.95 20M2 8V6a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2h-6"></path><line x1="2" y1="20" x2="2.01" y2="20"></line></svg>',flag:'<svg class="stroked" viewBox="0 0 24 24"><path d="M4 15s1-1 4-1 5 2 8 2 4-1 4-1V3s-1 1-4 1-5-2-8-2-4 1-4 1z"></path><line x1="4" y1="22" x2="4" y2="15"></line></svg>',eyeOff:'<svg class="stroked" viewBox="0 0 24 24"><path d="M17.94 17.94A10.07 10.07 0 0 1 12 20c-7 0-11-8-11-8a18.45 18.45 0 0 1 5.06-5.94M9.9 4.24A9.12 9.12 0 0 1 12 4c7 0 11 8 11 8a18.5 18.5 0 0 1-2.16 3.19m-6.72-1.07a3 3 0 1 1-4.24-4.24"></path><line x1="1" y1="1" x2="23" y2="23"></line></svg>',battery:'<svg class="stroked" viewBox="0 0 24 24"><rect x="1" y="6" width="18" height="12" rx="2" ry="2"></rect><line x1="23" y1="13" x2="23" y2="11"></line></svg>',disc:'<svg class="stroked" viewBox="0 0 24 24"><circle cx="12" cy="12" r="10"></circle><circle cx="12" cy="12" r="3"></circle></svg>',frown:'<svg class="stroked" viewBox="0 0 24 24"><circle cx="12" cy="12" r="10"></circle><path d="M16 16s-1.5-2-4-2-4 2-4 2"></path><line x1="9" y1="9" x2="9.01" y2="9"></line><line x1="15" y1="9" x2="15.01" y2="9"></line></svg>',tool:'<svg class="stroked" viewBox="0 0 24 24"><path d="M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z"></path></svg>',cpu:'<svg class="stroked" viewBox="0 0 24 24"><rect x="4" y="4" width="16" height="16" rx="2" ry="2"></rect><rect x="9" y="9" width="6" height="6"></rect><line x1="9" y1="1" x2="9" y2="4"></line><line x1="15" y1="1" x2="15" y2="4"></line><line x1="9" y1="20" x2="9" y2="23"></line><line x1="15" y1="20" x2="15" y2="23"></line><line x1="20" y1="9" x2="23" y2="9"></line><line x1="20" y1="14" x2="23" y2="14"></line><line x1="1" y1="9" x2="4" y2="9"></line><line x1="1" y1="14" x2="4" y2="14"></line></svg>',bold:'<svg class="stroked" viewBox="0 0 24 24"><path d="M6 4h8a4 4 0 0 1 4 4 4 4 0 0 1-4 4H6z"></path><path d="M6 12h9a4 4 0 0 1 4 4 4 4 0 0 1-4 4H6z"></path></svg>',hash:'<svg class="stroked" viewBox="0 0 24 24"><line x1="4" y1="9" x2="20" y2="9"></line><line x1="4" y1="15" x2="20" y2="15"></line><line x1="10" y1="3" x2="8" y2="21"></line><line x1="16" y1="3" x2="14" y2="21"></line></svg>',share2:'<svg class="stroked" viewBox="0 0 24 24"><circle cx="18" cy="5" r="3"></circle><circle cx="6" cy="12" r="3"></circle><circle cx="18" cy="19" r="3"></circle><line x1="8.59" y1="13.51" x2="15.42" y2="17.49"></line><line x1="15.41" y1="6.51" x2="8.59" y2="10.49"></line></svg>',plus:'<svg class="stroked" viewBox="0 0 24 24"><line x1="12" y1="5" x2="12" y2="19"></line><line x1="5" y1="12" x2="19" y2="12"></line></svg>',check:'<svg class="stroked" viewBox="0 0 24 24"><polyline points="20 6 9 17 4 12"></polyline></svg>',rotateCcw:'<svg class="stroked" viewBox="0 0 24 24"><polyline points="1 4 1 10 7 10"></polyline><path d="M3.51 15a9 9 0 1 0 2.13-9.36L1 10"></path></svg>',hardDrive:'<svg class="stroked" viewBox="0 0 24 24"><line x1="22" y1="12" x2="2" y2="12"></line><path d="M5.45 5.11L2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z"></path><line x1="6" y1="16" x2="6.01" y2="16"></line><line x1="10" y1="16" x2="10.01" y2="16"></line></svg>',bluetooth:'<svg class="stroked" viewBox="0 0 24 24"><polyline points="6.5 6.5 17.5 17.5 12 23 12 1 17.5 6.5 6.5 17.5"></polyline></svg>',pieChart:'<svg class="stroked" viewBox="0 0 24 24"><path d="M21.21 15.89A10 10 0 1 1 8 2.83"></path><path d="M22 12A10 10 0 0 0 12 2v10z"></path></svg>',headphones:'<svg class="stroked" viewBox="0 0 24 24"><path d="M3 18v-6a9 9 0 0 1 18 0v6"></path><path d="M21 19a2 2 0 0 1-2 2h-1a2 2 0 0 1-2-2v-3a2 2 0 0 1 2-2h3zM3 19a2 2 0 0 0 2 2h1a2 2 0 0 0 2-2v-3a2 2 0 0 0-2-2H3z"></path></svg>',rss:'<svg class="stroked" viewBox="0 0 24 24"><path d="M4 11a9 9 0 0 1 9 9"></path><path d="M4 4a16 16 0 0 1 16 16"></path><circle cx="5" cy="19" r="1"></circle></svg>',wifi:'<svg class="stroked" viewBox="0 0 24 24"><path d="M5 12.55a11 11 0 0 1 14.08 0"></path><path d="M1.42 9a16 16 0 0 1 21.16 0"></path><path d="M8.53 16.11a6 6 0 0 1 6.95 0"></path><line x1="12" y1="20" x2="12.01" y2="20"></line></svg>',cornerUpLeft:'<svg class="stroked" viewBox="0 0 24 24"><polyline points="9 14 4 9 9 4"></polyline><path d="M20 20v-7a4 4 0 0 0-4-4H4"></path></svg>',watch:'<svg class="stroked" viewBox="0 0 24 24"><circle cx="12" cy="12" r="7"></circle><polyline points="12 9 12 12 13.5 13.5"></polyline><path d="M16.51 17.35l-.35 3.83a2 2 0 0 1-2 1.82H9.83a2 2 0 0 1-2-1.82l-.35-3.83m.01-10.7l.35-3.83A2 2 0 0 1 9.83 1h4.35a2 2 0 0 1 2 1.82l.35 3.83"></path></svg>',info:'<svg class="stroked" viewBox="0 0 24 24"><circle cx="12" cy="12" r="10"></circle><line x1="12" y1="16" x2="12" y2="12"></line><line x1="12" y1="8" x2="12.01" y2="8"></line></svg>',userX:'<svg class="stroked" viewBox="0 0 24 24"><path d="M16 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2"></path><circle cx="8.5" cy="7" r="4"></circle><line x1="18" y1="8" x2="23" y2="13"></line><line x1="23" y1="8" x2="18" y2="13"></line></svg>',loader:'<svg class="stroked" viewBox="0 0 24 24"><line x1="12" y1="2" x2="12" y2="6"></line><line x1="12" y1="18" x2="12" y2="22"></line><line x1="4.93" y1="4.93" x2="7.76" y2="7.76"></line><line x1="16.24" y1="16.24" x2="19.07" y2="19.07"></line><line x1="2" y1="12" x2="6" y2="12"></line><line x1="18" y1="12" x2="22" y2="12"></line><line x1="4.93" y1="19.07" x2="7.76" y2="16.24"></line><line x1="16.24" y1="7.76" x2="19.07" y2="4.93"></line></svg>',refreshCcw:'<svg class="stroked" viewBox="0 0 24 24"><polyline points="1 4 1 10 7 10"></polyline><polyline points="23 20 23 14 17 14"></polyline><path d="M20.49 9A9 9 0 0 0 5.64 5.64L1 10m22 4l-4.64 4.36A9 9 0 0 1 3.51 15"></path></svg>',folderPlus:'<svg class="stroked" viewBox="0 0 24 24"><path d="M22 19a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h5l2 3h9a2 2 0 0 1 2 2z"></path><line x1="12" y1="11" x2="12" y2="17"></line><line x1="9" y1="14" x2="15" y2="14"></line></svg>',gitMerge:'<svg class="stroked" viewBox="0 0 24 24"><circle cx="18" cy="18" r="3"></circle><circle cx="6" cy="6" r="3"></circle><path d="M6 21V9a9 9 0 0 0 9 9"></path></svg>',mic:'<svg class="stroked" viewBox="0 0 24 24"><path d="M12 1a3 3 0 0 0-3 3v8a3 3 0 0 0 6 0V4a3 3 0 0 0-3-3z"></path><path d="M19 10v2a7 7 0 0 1-14 0v-2"></path><line x1="12" y1="19" x2="12" y2="23"></line><line x1="8" y1="23" x2="16" y2="23"></line></svg>',copy:'<svg class="stroked" viewBox="0 0 24 24"><rect x="9" y="9" width="13" height="13" rx="2" ry="2"></rect><path d="M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"></path></svg>',zoomIn:'<svg class="stroked" viewBox="0 0 24 24"><circle cx="11" cy="11" r="8"></circle><line x1="21" y1="21" x2="16.65" y2="16.65"></line><line x1="11" y1="8" x2="11" y2="14"></line><line x1="8" y1="11" x2="14" y2="11"></line></svg>',arrowRightCircle:'<svg class="stroked" viewBox="0 0 24 24"><circle cx="12" cy="12" r="10"></circle><polyline points="12 16 16 12 12 8"></polyline><line x1="8" y1="12" x2="16" y2="12"></line></svg>',alignRight:'<svg class="stroked" viewBox="0 0 24 24"><line x1="21" y1="10" x2="7" y2="10"></line><line x1="21" y1="6" x2="3" y2="6"></line><line x1="21" y1="14" x2="3" y2="14"></line><line x1="21" y1="18" x2="7" y2="18"></line></svg>',image:'<svg class="stroked" viewBox="0 0 24 24"><rect x="3" y="3" width="18" height="18" rx="2" ry="2"></rect><circle cx="8.5" cy="8.5" r="1.5"></circle><polyline points="21 15 16 10 5 21"></polyline></svg>',maximize2:'<svg class="stroked" viewBox="0 0 24 24"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" y1="3" x2="14" y2="10"></line><line x1="3" y1="21" x2="10" y2="14"></line></svg>',checkCircle:'<svg class="stroked" viewBox="0 0 24 24"><path d="M22 11.08V12a10 10 0 1 1-5.93-9.14"></path><polyline points="22 4 12 14.01 9 11.01"></polyline></svg>',sunset:'<svg class="stroked" viewBox="0 0 24 24"><path d="M17 18a5 5 0 0 0-10 0"></path><line x1="12" y1="9" x2="12" y2="2"></line><line x1="4.22" y1="10.22" x2="5.64" y2="11.64"></line><line x1="1" y1="18" x2="3" y2="18"></line><line x1="21" y1="18" x2="23" y2="18"></line><line x1="18.36" y1="11.64" x2="19.78" y2="10.22"></line><line x1="23" y1="22" x2="1" y2="22"></line><polyline points="16 5 12 9 8 5"></polyline></svg>',save:'<svg class="stroked" viewBox="0 0 24 24"><path d="M19 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11l5 5v11a2 2 0 0 1-2 2z"></path><polyline points="17 21 17 13 7 13 7 21"></polyline><polyline points="7 3 7 8 15 8"></polyline></svg>',smile:'<svg class="stroked" viewBox="0 0 24 24"><circle cx="12" cy="12" r="10"></circle><path d="M8 14s1.5 2 4 2 4-2 4-2"></path><line x1="9" y1="9" x2="9.01" y2="9"></line><line x1="15" y1="9" x2="15.01" y2="9"></line></svg>',navigation:'<svg class="stroked" viewBox="0 0 24 24"><polygon points="3 11 22 2 13 21 11 13 3 11"></polygon></svg>',cloudLightning:'<svg class="stroked" viewBox="0 0 24 24"><path d="M19 16.9A5 5 0 0 0 18 7h-1.26a8 8 0 1 0-11.62 9"></path><polyline points="13 11 9 17 15 17 11 23"></polyline></svg>',paperclip:'<svg class="stroked" viewBox="0 0 24 24"><path d="M21.44 11.05l-9.19 9.19a6 6 0 0 1-8.49-8.49l9.19-9.19a4 4 0 0 1 5.66 5.66l-9.2 9.19a2 2 0 0 1-2.83-2.83l8.49-8.48"></path></svg>',fastForward:'<svg class="stroked" viewBox="0 0 24 24"><polygon points="13 19 22 12 13 5 13 19"></polygon><polygon points="2 19 11 12 2 5 2 19"></polygon></svg>',xSquare:'<svg class="stroked" viewBox="0 0 24 24"><rect x="3" y="3" width="18" height="18" rx="2" ry="2"></rect><line x1="9" y1="9" x2="15" y2="15"></line><line x1="15" y1="9" x2="9" y2="15"></line></svg>',award:'<svg class="stroked" viewBox="0 0 24 24"><circle cx="12" cy="8" r="7"></circle><polyline points="8.21 13.89 7 23 12 20 17 23 15.79 13.88"></polyline></svg>',zoomOut:'<svg class="stroked" viewBox="0 0 24 24"><circle cx="11" cy="11" r="8"></circle><line x1="21" y1="21" x2="16.65" y2="16.65"></line><line x1="8" y1="11" x2="14" y2="11"></line></svg>',box:'<svg class="stroked" viewBox="0 0 24 24"><path d="M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z"></path><polyline points="3.27 6.96 12 12.01 20.73 6.96"></polyline><line x1="12" y1="22.08" x2="12" y2="12"></line></svg>',thumbsUp:'<svg class="stroked" viewBox="0 0 24 24"><path d="M14 9V5a3 3 0 0 0-3-3l-4 9v11h11.28a2 2 0 0 0 2-1.7l1.38-9a2 2 0 0 0-2-2.3zM7 22H4a2 2 0 0 1-2-2v-7a2 2 0 0 1 2-2h3"></path></svg>',percent:'<svg class="stroked" viewBox="0 0 24 24"><line x1="19" y1="5" x2="5" y2="19"></line><circle cx="6.5" cy="6.5" r="2.5"></circle><circle cx="17.5" cy="17.5" r="2.5"></circle></svg>',sidebar:'<svg class="stroked" viewBox="0 0 24 24"><rect x="3" y="3" width="18" height="18" rx="2" ry="2"></rect><line x1="9" y1="3" x2="9" y2="21"></line></svg>',square:'<svg class="stroked" viewBox="0 0 24 24"><rect x="3" y="3" width="18" height="18" rx="2" ry="2"></rect></svg>',play:'<svg class="stroked" viewBox="0 0 24 24"><polygon points="5 3 19 12 5 21 5 3"></polygon></svg>',gitCommit:'<svg class="stroked" viewBox="0 0 24 24"><circle cx="12" cy="12" r="4"></circle><line x1="1.05" y1="12" x2="7" y2="12"></line><line x1="17.01" y1="12" x2="22.96" y2="12"></line></svg>',table:'<svg class="stroked" viewBox="0 0 24 24"><path d="M9 3H5a2 2 0 0 0-2 2v4m6-6h10a2 2 0 0 1 2 2v4M9 3v18m0 0h10a2 2 0 0 0 2-2V9M9 21H5a2 2 0 0 1-2-2V9m0 0h18"></path></svg>',send:'<svg class="stroked" viewBox="0 0 24 24"><line x1="22" y1="2" x2="11" y2="13"></line><polygon points="22 2 15 22 11 13 2 9 22 2"></polygon></svg>',phoneCall:'<svg class="stroked" viewBox="0 0 24 24"><path d="M15.05 5A5 5 0 0 1 19 8.95M15.05 1A9 9 0 0 1 23 8.94m-1 7.98v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z"></path></svg>',speaker:'<svg class="stroked" viewBox="0 0 24 24"><rect x="4" y="2" width="16" height="20" rx="2" ry="2"></rect><circle cx="12" cy="14" r="4"></circle><line x1="12" y1="6" x2="12.01" y2="6"></line></svg>',facebook:'<svg class="filled" version="1" viewBox="0 0 512 512"><path d="M464 0h-416c-26 0-48 22-48 48v416c0 26 22 48 48 48h208v-224h-64v-64h64v-32c0-53 43-96 96-96h64v64h-64c-18 0-32 14-32 32v32h96l-16 64h-80v224h144c26 0 48-22 48-48v-416c0-26-22-48-48-48z"></path></svg> ',codesandbox:'<svg class="stroked" viewBox="0 0 24 24"><path d="M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z"></path><polyline points="7.5 4.21 12 6.81 16.5 4.21"></polyline><polyline points="7.5 19.79 7.5 14.6 3 12"></polyline><polyline points="21 12 16.5 14.6 16.5 19.79"></polyline><polyline points="3.27 6.96 12 12.01 20.73 6.96"></polyline><line x1="12" y1="22.08" x2="12" y2="12"></line></svg>',camera:'<svg class="stroked" viewBox="0 0 24 24"><path d="M23 19a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h4l2-3h6l2 3h4a2 2 0 0 1 2 2z"></path><circle cx="12" cy="13" r="4"></circle></svg>',link2:'<svg class="stroked" viewBox="0 0 24 24"><path d="M15 7h3a5 5 0 0 1 5 5 5 5 0 0 1-5 5h-3m-6 0H6a5 5 0 0 1-5-5 5 5 0 0 1 5-5h3"></path><line x1="8" y1="12" x2="16" y2="12"></line></svg>',printer:'<svg class="stroked" viewBox="0 0 24 24"><polyline points="6 9 6 2 18 2 18 9"></polyline><path d="M6 18H4a2 2 0 0 1-2-2v-5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2h-2"></path><rect x="6" y="14" width="12" height="8"></rect></svg>',folderMinus:'<svg class="stroked" viewBox="0 0 24 24"><path d="M22 19a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h5l2 3h9a2 2 0 0 1 2 2z"></path><line x1="9" y1="14" x2="15" y2="14"></line></svg>',arrowUpRight:'<svg class="stroked" viewBox="0 0 24 24"><line x1="7" y1="17" x2="17" y2="7"></line><polyline points="7 7 17 7 17 17"></polyline></svg>',truck:'<svg class="stroked" viewBox="0 0 24 24"><rect x="1" y="3" width="15" height="13"></rect><polygon points="16 8 20 8 23 11 23 16 16 16 16 8"></polygon><circle cx="5.5" cy="18.5" r="2.5"></circle><circle cx="18.5" cy="18.5" r="2.5"></circle></svg>',lifeBuoy:'<svg class="stroked" viewBox="0 0 24 24"><circle cx="12" cy="12" r="10"></circle><circle cx="12" cy="12" r="4"></circle><line x1="4.93" y1="4.93" x2="9.17" y2="9.17"></line><line x1="14.83" y1="14.83" x2="19.07" y2="19.07"></line><line x1="14.83" y1="9.17" x2="19.07" y2="4.93"></line><line x1="14.83" y1="9.17" x2="18.36" y2="5.64"></line><line x1="4.93" y1="19.07" x2="9.17" y2="14.83"></line></svg>',penTool:'<svg class="stroked" viewBox="0 0 24 24"><path d="M12 19l7-7 3 3-7 7-3-3z"></path><path d="M18 13l-1.5-7.5L2 2l3.5 14.5L13 18l5-5z"></path><path d="M2 2l7.59 7.59"></path><circle cx="11" cy="11" r="2"></circle></svg>',atSign:'<svg class="stroked" viewBox="0 0 24 24"><circle cx="12" cy="12" r="4"></circle><path d="M16 8v5a3 3 0 0 0 6 0v-1a10 10 0 1 0-3.92 7.94"></path></svg>',feather:'<svg class="stroked" viewBox="0 0 24 24"><path d="M20.24 12.24a6 6 0 0 0-8.49-8.49L5 10.5V19h8.5z"></path><line x1="16" y1="8" x2="2" y2="22"></line><line x1="17.5" y1="15" x2="9" y2="15"></line></svg>',trash:'<svg class="stroked" viewBox="0 0 24 24"><polyline points="3 6 5 6 21 6"></polyline><path d="M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2"></path></svg>',wifiOff:'<svg class="stroked" viewBox="0 0 24 24"><line x1="1" y1="1" x2="23" y2="23"></line><path d="M16.72 11.06A10.94 10.94 0 0 1 19 12.55"></path><path d="M5 12.55a10.94 10.94 0 0 1 5.17-2.39"></path><path d="M10.71 5.05A16 16 0 0 1 22.58 9"></path><path d="M1.42 9a15.91 15.91 0 0 1 4.7-2.88"></path><path d="M8.53 16.11a6 6 0 0 1 6.95 0"></path><line x1="12" y1="20" x2="12.01" y2="20"></line></svg>',cornerLeftDown:'<svg class="stroked" viewBox="0 0 24 24"><polyline points="14 15 9 20 4 15"></polyline><path d="M20 4h-7a4 4 0 0 0-4 4v12"></path></svg>',dollarSign:'<svg class="stroked" viewBox="0 0 24 24"><line x1="12" y1="1" x2="12" y2="23"></line><path d="M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6"></path></svg>',star:'<svg class="stroked" viewBox="0 0 24 24"><polygon points="12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2"></polygon></svg>',cloudOff:'<svg class="stroked" viewBox="0 0 24 24"><path d="M22.61 16.95A5 5 0 0 0 18 10h-1.26a8 8 0 0 0-7.05-6M5 5a8 8 0 0 0 4 15h9a5 5 0 0 0 1.7-.3"></path><line x1="1" y1="1" x2="23" y2="23"></line></svg>',sun:'<svg class="stroked" viewBox="0 0 24 24"><circle cx="12" cy="12" r="5"></circle><line x1="12" y1="1" x2="12" y2="3"></line><line x1="12" y1="21" x2="12" y2="23"></line><line x1="4.22" y1="4.22" x2="5.64" y2="5.64"></line><line x1="18.36" y1="18.36" x2="19.78" y2="19.78"></line><line x1="1" y1="12" x2="3" y2="12"></line><line x1="21" y1="12" x2="23" y2="12"></line><line x1="4.22" y1="19.78" x2="5.64" y2="18.36"></line><line x1="18.36" y1="5.64" x2="19.78" y2="4.22"></line></svg>',messageSquare:'<svg class="stroked" viewBox="0 0 24 24"><path d="M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"></path></svg>',edit:'<svg class="stroked" viewBox="0 0 24 24"><path d="M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7"></path><path d="M18.5 2.5a2.12 2.12 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z"></path></svg>',anchor:'<svg class="stroked" viewBox="0 0 24 24"><circle cx="12" cy="5" r="3"></circle><line x1="12" y1="22" x2="12" y2="8"></line><path d="M5 12H2a10 10 0 0 0 20 0h-3"></path></svg>',alertCircle:'<svg class="stroked" viewBox="0 0 24 24"><circle cx="12" cy="12" r="10"></circle><line x1="12" y1="8" x2="12" y2="12"></line><line x1="12" y1="16" x2="12.01" y2="16"></line></svg>',chevronsUp:'<svg class="stroked" viewBox="0 0 24 24"><polyline points="17 11 12 6 7 11"></polyline><polyline points="17 18 12 13 7 18"></polyline></svg>',uploadCloud:'<svg class="stroked" viewBox="0 0 24 24"><polyline points="16 16 12 12 8 16"></polyline><line x1="12" y1="12" x2="12" y2="21"></line><path d="M20.39 18.39A5 5 0 0 0 18 9h-1.26A8 8 0 1 0 3 16.3"></path><polyline points="16 16 12 12 8 16"></polyline></svg>',twitch:'<svg class="stroked" viewBox="0 0 24 24"><path d="M21 2H3v16h5v4l4-4h5l4-4V2zm-10 9V7m5 4V7"></path></svg>',youtube:'<svg class="filled" version="1" viewBox="0 0 512 512"><g></g><path d="M507 154c0 0-5-35-20-51-20-20-41-21-51-22-72-5-179-5-179-5h-0c0 0-108 0-179 5-10 1-32 1-51 22-15 16-20 51-20 51s-5 41-5 83v39c0 41 5 83 5 83s5 35 20 51c20 20 45 20 57 22 41 4 174 5 174 5s108-0 179-5c10-1 32-1 51-22 15-16 20-51 20-51s5-41 5-83v-39c-0-41-5-83-5-83zM203 322v-144l138 72-138 72z"></path></svg> ',unlock:'<svg class="stroked" viewBox="0 0 24 24"><rect x="3" y="11" width="18" height="11" rx="2" ry="2"></rect><path d="M7 11V7a5 5 0 0 1 9.9-1"></path></svg>',compass:'<svg class="stroked" viewBox="0 0 24 24"><circle cx="12" cy="12" r="10"></circle><polygon points="16.24 7.76 14.12 14.12 7.76 16.24 9.88 9.88 16.24 7.76"></polygon></svg>',plusCircle:'<svg class="stroked" viewBox="0 0 24 24"><circle cx="12" cy="12" r="10"></circle><line x1="12" y1="8" x2="12" y2="16"></line><line x1="8" y1="12" x2="16" y2="12"></line></svg>',creditCard:'<svg class="stroked" viewBox="0 0 24 24"><rect x="1" y="4" width="22" height="16" rx="2" ry="2"></rect><line x1="1" y1="10" x2="23" y2="10"></line></svg>',cloudRain:'<svg class="stroked" viewBox="0 0 24 24"><line x1="16" y1="13" x2="16" y2="21"></line><line x1="8" y1="13" x2="8" y2="21"></line><line x1="12" y1="15" x2="12" y2="23"></line><path d="M20 16.58A5 5 0 0 0 18 7h-1.26A8 8 0 1 0 4 15.25"></path></svg>',trash2:'<svg class="stroked" viewBox="0 0 24 24"><polyline points="3 6 5 6 21 6"></polyline><path d="M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2"></path><line x1="10" y1="11" x2="10" y2="17"></line><line x1="14" y1="11" x2="14" y2="17"></line></svg>',skipBack:'<svg class="stroked" viewBox="0 0 24 24"><polygon points="19 20 9 12 19 4 19 20"></polygon><line x1="5" y1="19" x2="5" y2="5"></line></svg>',filePlus:'<svg class="stroked" viewBox="0 0 24 24"><path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"></path><polyline points="14 2 14 8 20 8"></polyline><line x1="12" y1="18" x2="12" y2="12"></line><line x1="9" y1="15" x2="15" y2="15"></line></svg>',delete:'<svg class="stroked" viewBox="0 0 24 24"><path d="M21 4H8l-7 8 7 8h13a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2z"></path><line x1="18" y1="9" x2="12" y2="15"></line><line x1="12" y1="9" x2="18" y2="15"></line></svg>',command:'<svg class="stroked" viewBox="0 0 24 24"><path d="M18 3a3 3 0 0 0-3 3v12a3 3 0 0 0 3 3 3 3 0 0 0 3-3 3 3 0 0 0-3-3H6a3 3 0 0 0-3 3 3 3 0 0 0 3 3 3 3 0 0 0 3-3V6a3 3 0 0 0-3-3 3 3 0 0 0-3 3 3 3 0 0 0 3 3h12a3 3 0 0 0 3-3 3 3 0 0 0-3-3z"></path></svg>',clock:'<svg class="stroked" viewBox="0 0 24 24"><circle cx="12" cy="12" r="10"></circle><polyline points="12 6 12 12 16 14"></polyline></svg>',octagon:'<svg class="stroked" viewBox="0 0 24 24"><polygon points="7.86 2 16.14 2 22 7.86 22 16.14 16.14 22 7.86 22 2 16.14 2 7.86 7.86 2"></polygon></svg>',phone:'<svg class="stroked" viewBox="0 0 24 24"><path d="M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z"></path></svg>',eye:'<svg class="stroked" viewBox="0 0 24 24"><path d="M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z"></path><circle cx="12" cy="12" r="3"></circle></svg>',phoneOff:'<svg class="stroked" viewBox="0 0 24 24"><path d="M10.68 13.31a16 16 0 0 0 3.41 2.6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7 2 2 0 0 1 1.72 2v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.42 19.42 0 0 1-3.33-2.67m-2.67-3.34a19.79 19.79 0 0 1-3.07-8.63A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91"></path><line x1="23" y1="1" x2="1" y2="23"></line></svg>',codepen:'<svg class="stroked" viewBox="0 0 24 24"><polygon points="12 2 22 8.5 22 15.5 12 22 2 15.5 2 8.5 12 2"></polygon><line x1="12" y1="22" x2="12" y2="15.5"></line><polyline points="22 8.5 12 15.5 2 8.5"></polyline><polyline points="2 15.5 12 8.5 22 15.5"></polyline><line x1="12" y1="2" x2="12" y2="8.5"></line></svg>',dribbble:'<svg class="stroked" viewBox="0 0 24 24"><circle cx="12" cy="12" r="10"></circle><path d="M8.56 2.75c4.37 6.03 6.02 9.42 8.03 17.72m2.54-15.38c-3.72 4.35-8.94 5.66-16.88 5.85m19.5 1.9c-3.5-.93-6.63-.82-8.94 0-2.58.92-5.01 2.86-7.44 6.32"></path></svg>',gift:'<svg class="stroked" viewBox="0 0 24 24"><polyline points="20 12 20 22 4 22 4 12"></polyline><rect x="2" y="7" width="20" height="5"></rect><line x1="12" y1="22" x2="12" y2="7"></line><path d="M12 7H7.5a2.5 2.5 0 0 1 0-5C11 2 12 7 12 7z"></path><path d="M12 7h4.5a2.5 2.5 0 0 0 0-5C13 2 12 7 12 7z"></path></svg>',externalLink:'<svg class="stroked" viewBox="0 0 24 24"><path d="M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"></path><polyline points="15 3 21 3 21 9"></polyline><line x1="10" y1="14" x2="21" y2="3"></line></svg>',zap:'<svg class="stroked" viewBox="0 0 24 24"><polygon points="13 2 3 14 12 14 11 22 21 10 12 10 13 2"></polygon></svg>',trello:'<svg class="stroked" viewBox="0 0 24 24"><rect x="3" y="3" width="18" height="18" rx="2" ry="2"></rect><rect x="7" y="7" width="3" height="9"></rect><rect x="14" y="7" width="3" height="5"></rect></svg>',moreVertical:'<svg class="stroked" viewBox="0 0 24 24"><circle cx="12" cy="12" r="1"></circle><circle cx="12" cy="5" r="1"></circle><circle cx="12" cy="19" r="1"></circle></svg>',micOff:'<svg class="stroked" viewBox="0 0 24 24"><line x1="1" y1="1" x2="23" y2="23"></line><path d="M9 9v3a3 3 0 0 0 5.12 2.12M15 9.34V4a3 3 0 0 0-5.94-.6"></path><path d="M17 16.95A7 7 0 0 1 5 12v-2m14 0v2a7 7 0 0 1-.11 1.23"></path><line x1="12" y1="19" x2="12" y2="23"></line><line x1="8" y1="23" x2="16" y2="23"></line></svg>',share:'<svg class="stroked" viewBox="0 0 24 24"><path d="M4 12v8a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-8"></path><polyline points="16 6 12 2 8 6"></polyline><line x1="12" y1="2" x2="12" y2="15"></line></svg>',arrowUp:'<svg class="stroked" viewBox="0 0 24 24"><line x1="12" y1="19" x2="12" y2="5"></line><polyline points="5 12 12 5 19 12"></polyline></svg>',bellOff:'<svg class="stroked" viewBox="0 0 24 24"><path d="M13.73 21a2 2 0 0 1-3.46 0"></path><path d="M18.63 13A17.89 17.89 0 0 1 18 8"></path><path d="M6.26 6.26A5.86 5.86 0 0 0 6 8c0 7-3 9-3 9h14"></path><path d="M18 8a6 6 0 0 0-9.33-5"></path><line x1="1" y1="1" x2="23" y2="23"></line></svg>',linkedin:'<svg class="stroked" viewBox="0 0 24 24"><path d="M16 8a6 6 0 0 1 6 6v7h-4v-7a2 2 0 0 0-2-2 2 2 0 0 0-2 2v7h-4v-7a6 6 0 0 1 6-6z"></path><rect x="2" y="9" width="4" height="12"></rect><circle cx="4" cy="4" r="2"></circle></svg>',video:'<svg class="stroked" viewBox="0 0 24 24"><polygon points="23 7 16 12 23 17 23 7"></polygon><rect x="1" y="5" width="15" height="14" rx="2" ry="2"></rect></svg>',divideCircle:'<svg class="stroked" viewBox="0 0 24 24"><line x1="8" y1="12" x2="16" y2="12"></line><line x1="12" y1="16" x2="12" y2="16"></line><line x1="12" y1="8" x2="12" y2="8"></line><circle cx="12" cy="12" r="10"></circle></svg>',activity:'<svg class="stroked" viewBox="0 0 24 24"><polyline points="22 12 18 12 15 21 9 3 6 12 2 12"></polyline></svg>',twitter:'<svg class="stroked" viewBox="0 0 24 24"><path d="M23 3a10.9 10.9 0 0 1-3.14 1.53 4.48 4.48 0 0 0-7.86 3v1A10.66 10.66 0 0 1 3 4s-4 9 5 13a11.64 11.64 0 0 1-7 2c9 5 20 0 20-11.5a4.5 4.5 0 0 0-.08-.83A7.72 7.72 0 0 0 23 3z"></path></svg>',mapPin:'<svg class="stroked" viewBox="0 0 24 24"><path d="M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z"></path><circle cx="12" cy="10" r="3"></circle></svg>',filter:'<svg class="stroked" viewBox="0 0 24 24"><polygon points="22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3"></polygon></svg>',phoneIncoming:'<svg class="stroked" viewBox="0 0 24 24"><polyline points="16 2 16 8 22 8"></polyline><line x1="23" y1="1" x2="16" y2="8"></line><path d="M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z"></path></svg>',italic:'<svg class="stroked" viewBox="0 0 24 24"><line x1="19" y1="4" x2="10" y2="4"></line><line x1="14" y1="20" x2="5" y2="20"></line><line x1="15" y1="4" x2="9" y2="20"></line></svg>',chevronsLeft:'<svg class="stroked" viewBox="0 0 24 24"><polyline points="11 17 6 12 11 7"></polyline><polyline points="18 17 13 12 18 7"></polyline></svg>',calendar:'<svg class="stroked" viewBox="0 0 24 24"><rect x="3" y="4" width="18" height="18" rx="2" ry="2"></rect><line x1="16" y1="2" x2="16" y2="6"></line><line x1="8" y1="2" x2="8" y2="6"></line><line x1="3" y1="10" x2="21" y2="10"></line></svg>',globe:'<svg class="stroked" viewBox="0 0 24 24"><circle cx="12" cy="12" r="10"></circle><line x1="2" y1="12" x2="22" y2="12"></line><path d="M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z"></path></svg>',arrowLeft:'<svg class="stroked" viewBox="0 0 24 24"><line x1="19" y1="12" x2="5" y2="12"></line><polyline points="12 19 5 12 12 5"></polyline></svg>',alignCenter:'<svg class="stroked" viewBox="0 0 24 24"><line x1="18" y1="10" x2="6" y2="10"></line><line x1="21" y1="6" x2="3" y2="6"></line><line x1="21" y1="14" x2="3" y2="14"></line><line x1="18" y1="18" x2="6" y2="18"></line></svg>',minusCircle:'<svg class="stroked" viewBox="0 0 24 24"><circle cx="12" cy="12" r="10"></circle><line x1="8" y1="12" x2="16" y2="12"></line></svg>',arrowDownRight:'<svg class="stroked" viewBox="0 0 24 24"><line x1="7" y1="7" x2="17" y2="17"></line><polyline points="17 7 17 17 7 17"></polyline></svg>',framer:'<svg class="stroked" viewBox="0 0 24 24"><path d="M5 16V9h14V2H5l14 14h-7m-7 0l7 7v-7m-7 0h7"></path></svg>',volumeX:'<svg class="stroked" viewBox="0 0 24 24"><polygon points="11 5 6 9 2 9 2 15 6 15 11 19 11 5"></polygon><line x1="23" y1="9" x2="17" y2="15"></line><line x1="17" y1="9" x2="23" y2="15"></line></svg>',slack:'<svg class="stroked" viewBox="0 0 24 24"><path d="M14.5 10c-.83 0-1.5-.67-1.5-1.5v-5c0-.83.67-1.5 1.5-1.5s1.5.67 1.5 1.5v5c0 .83-.67 1.5-1.5 1.5z"></path><path d="M20.5 10H19V8.5c0-.83.67-1.5 1.5-1.5s1.5.67 1.5 1.5-.67 1.5-1.5 1.5z"></path><path d="M9.5 14c.83 0 1.5.67 1.5 1.5v5c0 .83-.67 1.5-1.5 1.5S8 21.33 8 20.5v-5c0-.83.67-1.5 1.5-1.5z"></path><path d="M3.5 14H5v1.5c0 .83-.67 1.5-1.5 1.5S2 16.33 2 15.5 2.67 14 3.5 14z"></path><path d="M14 14.5c0-.83.67-1.5 1.5-1.5h5c.83 0 1.5.67 1.5 1.5s-.67 1.5-1.5 1.5h-5c-.83 0-1.5-.67-1.5-1.5z"></path><path d="M15.5 19H14v1.5c0 .83.67 1.5 1.5 1.5s1.5-.67 1.5-1.5-.67-1.5-1.5-1.5z"></path><path d="M10 9.5C10 8.67 9.33 8 8.5 8h-5C2.67 8 2 8.67 2 9.5S2.67 11 3.5 11h5c.83 0 1.5-.67 1.5-1.5z"></path><path d="M8.5 5H10V3.5C10 2.67 9.33 2 8.5 2S7 2.67 7 3.5 7.67 5 8.5 5z"></path></svg>',cloud:'<svg class="stroked" viewBox="0 0 24 24"><path d="M18 10h-1.26A8 8 0 1 0 9 20h9a5 5 0 0 0 0-10z"></path></svg>',downloadCloud:'<svg class="stroked" viewBox="0 0 24 24"><polyline points="8 17 12 21 16 17"></polyline><line x1="12" y1="12" x2="12" y2="21"></line><path d="M20.88 18.09A5 5 0 0 0 18 9h-1.26A8 8 0 1 0 3 16.29"></path></svg>',shuffle:'<svg class="stroked" viewBox="0 0 24 24"><polyline points="16 3 21 3 21 8"></polyline><line x1="4" y1="20" x2="21" y2="3"></line><polyline points="21 16 21 21 16 21"></polyline><line x1="15" y1="15" x2="21" y2="21"></line><line x1="4" y1="4" x2="9" y2="9"></line></svg>',rewind:'<svg class="stroked" viewBox="0 0 24 24"><polygon points="11 19 2 12 11 5 11 19"></polygon><polygon points="22 19 13 12 22 5 22 19"></polygon></svg>',upload:'<svg class="stroked" viewBox="0 0 24 24"><path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"></path><polyline points="17 8 12 3 7 8"></polyline><line x1="12" y1="3" x2="12" y2="15"></line></svg>',trendingDown:'<svg class="stroked" viewBox="0 0 24 24"><polyline points="23 18 13.5 8.5 8.5 13.5 1 6"></polyline><polyline points="17 18 23 18 23 12"></polyline></svg>',pause:'<svg class="stroked" viewBox="0 0 24 24"><rect x="6" y="4" width="4" height="16"></rect><rect x="14" y="4" width="4" height="16"></rect></svg>',arrowDownCircle:'<svg class="stroked" viewBox="0 0 24 24"><circle cx="12" cy="12" r="10"></circle><polyline points="8 12 12 16 16 12"></polyline><line x1="12" y1="8" x2="12" y2="16"></line></svg>',bookmark:'<svg class="stroked" viewBox="0 0 24 24"><path d="M19 21l-7-5-7 5V5a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2z"></path></svg>',alertTriangle:'<svg class="stroked" viewBox="0 0 24 24"><path d="M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z"></path><line x1="12" y1="9" x2="12" y2="13"></line><line x1="12" y1="17" x2="12.01" y2="17"></line></svg>',userCheck:'<svg class="stroked" viewBox="0 0 24 24"><path d="M16 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2"></path><circle cx="8.5" cy="7" r="4"></circle><polyline points="17 11 19 13 23 9"></polyline></svg>',tablet:'<svg class="stroked" viewBox="0 0 24 24"><rect x="4" y="2" width="16" height="20" rx="2" ry="2"></rect><line x1="12" y1="18" x2="12.01" y2="18"></line></svg>',alertOctagon:'<svg class="stroked" viewBox="0 0 24 24"><polygon points="7.86 2 16.14 2 22 7.86 22 16.14 16.14 22 7.86 22 2 16.14 2 7.86 7.86 2"></polygon><line x1="12" y1="8" x2="12" y2="12"></line><line x1="12" y1="16" x2="12.01" y2="16"></line></svg>',menu:'<svg class="stroked" viewBox="0 0 24 24"><line x1="3" y1="12" x2="21" y2="12"></line><line x1="3" y1="6" x2="21" y2="6"></line><line x1="3" y1="18" x2="21" y2="18"></line></svg>',chrome:'<svg class="stroked" viewBox="0 0 24 24"><circle cx="12" cy="12" r="10"></circle><circle cx="12" cy="12" r="4"></circle><line x1="21.17" y1="8" x2="12" y2="8"></line><line x1="3.95" y1="6.06" x2="8.54" y2="14"></line><line x1="10.88" y1="21.94" x2="15.46" y2="14"></line></svg>',shoppingCart:'<svg class="stroked" viewBox="0 0 24 24"><circle cx="9" cy="21" r="1"></circle><circle cx="20" cy="21" r="1"></circle><path d="M1 1h4l2.68 13.39a2 2 0 0 0 2 1.61h9.72a2 2 0 0 0 2-1.61L23 6H6"></path></svg>',folder:'<svg class="stroked" viewBox="0 0 24 24"><path d="M22 19a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h5l2 3h9a2 2 0 0 1 2 2z"></path></svg>',users:'<svg class="stroked" viewBox="0 0 24 24"><path d="M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2"></path><circle cx="9" cy="7" r="4"></circle><path d="M23 21v-2a4 4 0 0 0-3-3.87"></path><path d="M16 3.13a4 4 0 0 1 0 7.75"></path></svg>',cornerDownLeft:'<svg class="stroked" viewBox="0 0 24 24"><polyline points="9 10 4 15 9 20"></polyline><path d="M20 4v7a4 4 0 0 1-4 4H4"></path></svg>',monitor:'<svg class="stroked" viewBox="0 0 24 24"><rect x="2" y="3" width="20" height="14" rx="2" ry="2"></rect><line x1="8" y1="21" x2="16" y2="21"></line><line x1="12" y1="17" x2="12" y2="21"></line></svg>',minus:'<svg class="stroked" viewBox="0 0 24 24"><line x1="5" y1="12" x2="19" y2="12"></line></svg>',helpCircle:'<svg class="stroked" viewBox="0 0 24 24"><circle cx="12" cy="12" r="10"></circle><path d="M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3"></path><line x1="12" y1="17" x2="12.01" y2="17"></line></svg>',navigation2:'<svg class="stroked" viewBox="0 0 24 24"><polygon points="12 2 19 21 12 17 5 21 12 2"></polygon></svg>',chevronLeft:'<svg class="stroked" viewBox="0 0 24 24"><polyline points="15 18 9 12 15 6"></polyline></svg>',film:'<svg class="stroked" viewBox="0 0 24 24"><rect x="2" y="2" width="20" height="20" rx="2.18" ry="2.18"></rect><line x1="7" y1="2" x2="7" y2="22"></line><line x1="17" y1="2" x2="17" y2="22"></line><line x1="2" y1="12" x2="22" y2="12"></line><line x1="2" y1="7" x2="7" y2="7"></line><line x1="2" y1="17" x2="7" y2="17"></line><line x1="17" y1="17" x2="22" y2="17"></line><line x1="17" y1="7" x2="22" y2="7"></line></svg>',moon:'<svg class="stroked" viewBox="0 0 24 24"><path d="M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z"></path></svg>',shieldOff:'<svg class="stroked" viewBox="0 0 24 24"><path d="M19.69 14a6.9 6.9 0 0 0 .31-2V5l-8-3-3.16 1.18"></path><path d="M4.73 4.73L4 5v7c0 6 8 10 8 10a20.29 20.29 0 0 0 5.62-4.38"></path><line x1="1" y1="1" x2="23" y2="23"></line></svg>',layout:'<svg class="stroked" viewBox="0 0 24 24"><rect x="3" y="3" width="18" height="18" rx="2" ry="2"></rect><line x1="3" y1="9" x2="21" y2="9"></line><line x1="9" y1="21" x2="9" y2="9"></line></svg>',mousePointer:'<svg class="stroked" viewBox="0 0 24 24"><path d="M3 3l7.07 16.97 2.51-7.39 7.39-2.51L3 3z"></path><path d="M13 13l6 6"></path></svg>',alignLeft:'<svg class="stroked" viewBox="0 0 24 24"><line x1="17" y1="10" x2="3" y2="10"></line><line x1="21" y1="6" x2="3" y2="6"></line><line x1="21" y1="14" x2="3" y2="14"></line><line x1="17" y1="18" x2="3" y2="18"></line></svg>',heart:'<svg class="stroked" viewBox="0 0 24 24"><path d="M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z"></path></svg>',trendingUp:'<svg class="stroked" viewBox="0 0 24 24"><polyline points="23 6 13.5 15.5 8.5 10.5 1 18"></polyline><polyline points="17 6 23 6 23 12"></polyline></svg>',listBullet:'<svg class="stroked" viewBox="0 0 24 24"><g><path style="" d="M21,6 C21,6,10,6,10,6"/><path style="" d="M21,12 C21,12,10,12,10,12"/><path style="" d="M21,18 C21,18,10,18,10,18"/><path style="" d="M5.5,5 C6.05,5,6.5,5.45,6.5,6 C6.5,6.55,6.05,7,5.5,7 C4.95,7,4.5,6.55,4.5,6 C4.5,5.45,4.95,5,5.5,5 z"/><path style="" d="M5.5,11 C6.05,11,6.5,11.45,6.5,12 C6.5,12.55,6.05,13,5.5,13 C4.95,13,4.5,12.55,4.5,12 C4.5,11.45,4.95,11,5.5,11 z"/><path style="" d="M5.5,17 C6.05,17,6.5,17.45,6.5,18 C6.5,18.55,6.05,19,5.5,19 C4.95,19,4.5,18.55,4.5,18 C4.5,17.45,4.95,17,5.5,17 z"/></g></svg> ',indent:'<svg class="stroked" viewBox="0 0 24 24"><g><path style="" d="M21,10 C21,10,8,10,8,10"/><path style="" d="M21,6 C21,6,8,6,8,6"/><path style="" d="M21,14 C21,14,8,14,8,14"/><path style="" d="M21,18 C21,18,8,18,8,18"/><path style="" d="M2.5,9 C2.5,9,5.5,12,5.5,12 C5.5,12,2.5,15,2.5,15"/></g></svg> ',fontBold:'<svg class="stroked" viewBox="0 0 24 24"><g><path style="" d="M13.5,11 C15.71,11,17.5,12.68,17.5,14.75 C17.5,16.82,15.71,18.5,13.5,18.5 C13.5,18.5,8.5,18.5,8.5,18.5 C8.5,18.5,8.5,3.5,8.5,3.5 C8.5,3.5,13.5,3.5,13.5,3.5 C15.71,3.5,17.5,5.18,17.5,7.25 C17.5,9.32,15.71,11,13.5,11 C13.5,11,13.5,11,13.5,11 z"/><path style="" d="M13.5,11 C13.5,11,8.5,11,8.5,11"/><path style="" d="M12.5,11 C14.71,11,16.5,12.68,16.5,14.75 C16.5,16.82,14.71,18.5,12.5,18.5 C12.5,18.5,7.5,18.5,7.5,18.5 C7.5,18.5,7.5,3.5,7.5,3.5 C7.5,3.5,12.5,3.5,12.5,3.5 C14.71,3.5,16.5,5.18,16.5,7.25 C16.5,9.32,14.71,11,12.5,11 C12.5,11,12.5,11,12.5,11 z"/><path style="" d="M12.5,11 C12.5,11,7.5,11,7.5,11"/></g></svg> ',fontItalic:'<svg class="stroked" viewBox="0 0 24 24"><g><path style="" d="M17,4.5 C17,4.5,13,4.5,13,4.5"/><path style="" d="M11,19.5 C11,19.5,7,19.5,7,19.5"/><path style="" d="M15,4.5 C15,4.5,9,19.5,9,19.5"/></g></svg> ',fontUnderline:'<svg class="stroked" viewBox="0 0 24 24"><g><path style="" d="M7.5,3.5 C7.5,3.5,7.5,10.74,7.5,13.5 C7.5,16.26,9.74,18.5,12.5,18.5 C15.26,18.5,17.5,16.26,17.5,13.5 C17.5,10.74,17.5,3.5,17.5,3.5"/><path style="" d="M7.5,21.5 C7.5,21.5,17.5,21.5,17.5,21.5"/></g></svg> ',outdent:'<svg class="stroked" viewBox="0 0 24 24"><g><path style="" d="M21,10 C21,10,8,10,8,10"/><path style="" d="M21,6 C21,6,8,6,8,6"/><path style="" d="M21,14 C21,14,8,14,8,14"/><path style="" d="M21,18 C21,18,8,18,8,18"/><path style="" d="M5.5,9 C5.5,9,2.5,12,2.5,12 C2.5,12,5.5,15,5.5,15"/></g></svg> ',listNumber:'<svg class="stroked" viewBox="0 0 24 24"><g><path style="" d="M21,6 C21,6,10,6,10,6"/><path style="" d="M21,12 C21,12,10,12,10,12"/><path style="" d="M21,18 C21,18,10,18,10,18"/><path style="" d="M4.5,5 C4.5,5,5.5,4,5.5,4 C5.5,4,5.5,8,5.5,8"/><path style="" d="M4.5,10 C4.5,10,5.5,10,5.5,10 C6.05,10,6.5,10.45,6.5,11 C6.5,11,6.5,11,6.5,11 C6.5,11.55,6.05,12,5.5,12 C5.5,12,5.5,12,5.5,12 C4.95,12,4.5,12.45,4.5,13 C4.5,13,4.5,14,4.5,14 C4.5,14,6.5,14,6.5,14"/><path style="" d="M4.5,16 C4.5,16,5.5,16,5.5,16 C6.05,16,6.5,16.45,6.5,17 C6.5,17,6.5,17,6.5,17 C6.5,17.55,6.05,18,5.5,18 C5.5,18,4.5,18,4.5,18 C4.5,18,5.5,18,5.5,18 C6.05,18,6.5,18.45,6.5,19 C6.5,19,6.5,19,6.5,19 C6.5,19.55,6.05,20,5.5,20 C5.5,20,4.5,20,4.5,20"/></g></svg> ',resize:'<svg class="stroked" version="1.1" viewBox="0, 0, 24, 24"><g><path d="M9,3 L3,3 L3,9"/><path d="M15,21 L21,21 L21,15"/><path d="M3,3 L10,10"/><path d="M21,21 L14,14"/></g></svg> ',bug:'<svg class="stroked" viewBox="0 0 24 24"><g><path style="" d="M8,6 C8,3.79,9.79,2,12,2 C14.21,2,16,3.79,16,6 C16,6,8,6,8,6 z"/><path style="" d="M20,7 C20,7,18,9,18,9"/><path style="" d="M20,19 C20,19,18,17,18,17"/><path style="" d="M21,13 C21,13,18,13,18,13"/><path style="" d="M16.44,9 C17.3,9,18,9.7,18,10.56 C18,10.56,18,15,18,15 C18,18.31,15.31,21,12,21 C8.69,21,6,18.31,6,15 C6,15,6,10.56,6,10.56 C6,9.7,6.7,9,7.56,9 C7.56,9,16.44,9,16.44,9 z"/><path style="" d="M4,7 C4,7,6,9,6,9"/><path style="" d="M4,19 C4,19,6,17,6,17"/><path style="" d="M3,13 C3,13,6,13,6,13"/><path style="" d="M12,12 C12,12,12,17,12,17"/></g></svg> ',blog:'<svg class="stroked" viewBox="0 0 24 24"><g><path style="" d="M21,10.02 C21,10.02,21,15,21,15 C21,15.53,20.79,16.04,20.41,16.41 C20.04,16.79,19.53,17,19,17 C19,17,7,17,7,17 C5.67,18.33,4.33,19.67,3,21 C3,21,3,5,3,5 C3,4.47,3.21,3.96,3.59,3.59 C3.96,3.21,4.47,3,5,3 C8.53,3,10.49,3,14.02,3"/><path style="" d="M19,2 C19.54,1.46,20.32,1.25,21.05,1.45 C21.78,1.65,22.35,2.22,22.55,2.95 C22.75,3.68,22.54,4.46,22,5 C22,5,15.5,11.5,15.5,11.5 C14.17,11.83,12.83,12.17,11.5,12.5 C11.83,11.17,12.17,9.83,12.5,8.5 C15.67,5.33,15.83,5.17,19,2 z"/><path style="" d="M14.6,3"/><path style="" d="M21,8.77"/><path style="" d="M7,7 C7,7,10,7,10,7"/><path style="" d="M7,10 C7,10,9,10,9,10"/></g></svg> ',sortAscending:'<svg class="stroked" viewBox="0 0 24 24"><g><path d="M16.5,10.5 C16.5,10.5,7.5,10.5,7.5,10.5"/><path d="M14.5,6.5 C14.5,6.5,9.5,6.5,9.5,6.5"/><path d="M18.5,14.5 C18.5,14.5,5.5,14.5,5.5,14.5"/><path d="M20.5,18.5 C20.5,18.5,3.5,18.5,3.5,18.5"/></g></svg> ',npm:'<svg class="filled" version="1" viewBox="0 0 512 512"><path d="M0 0v512h512v-512h-512zM416 416h-64v-256h-96v256h-160v-320h320v320z"></path></svg> ',game:'<svg class="filled" version="1" viewBox="0 0 704 512"><path d="M528 97v-1h-336c-88 0-160 72-160 160s72 160 160 160c52 0 99-25 128-64h64c29 39 76 64 128 64 88 0 160-72 160-160 0-83-63-151-144-159zM288 288h-64v64h-64v-64h-64v-64h64v-64h64v64h64v64zM480 288c-18 0-32-14-32-32s14-32 32-32 32 14 32 32-14 32-32 32zM576 288c-18 0-32-14-32-32 0-18 14-32 32-32s32 14 32 32c0 18-14 32-32 32z"></path></svg> ',google:'<svg class="filled" version="1" viewBox="0 0 512 512"><path d="M256 0c-141 0-256 115-256 256s115 256 256 256 256-115 256-256-115-256-256-256zM260 448c-106 0-192-86-192-192s86-192 192-192c52 0 95 19 129 50l-52 50c-14-14-39-30-77-30-66 0-119 54-119 121s54 121 119 121c76 0 105-55 109-83h-109v-66h181c2 10 3 19 3 32 0 110-73 188-184 188z"></path></svg> ',discord:'<svg class="filled" version="1" viewBox="0 0 1013 768"><path d="M858 64c-60-28-131-51-204-64l-5-1c-8 14-17 32-25 51l-1 4c-35-6-75-9-116-9s-81 3-120 9l4-1c-9-22-18-40-28-57l1 3c-79 14-149 36-214 67l5-2c-132 196-168 387-150 575v0c73 55 158 99 250 127l6 2c19-26 38-55 53-85l2-3c-33-13-62-27-89-43l2 1c7-5 14-11 21-16 75 36 163 57 256 57s181-21 260-59l-4 2c7 6 14 11 21 16-25 15-53 29-83 40l-4 1c17 34 36 63 56 90l-1-2c98-30 183-74 259-130l-2 2c21-218-36-407-151-575zM338 524c-50 0-91-45-91-101s40-102 91-102 92 46 91 102-40 101-91 101zM675 524c-50 0-91-45-91-101s40-102 91-102 92 46 91 102-40 101-91 101z"></path></svg> '};var Zs=(i)=>{Object.assign(b2,i)},ei=(i,l,s,t)=>{i.setAttribute("xmlns","http://www.w3.org/2000/svg");for(let e of[...i.querySelectorAll("path, polygon, line, circle, rect, ellipse, polyline")]){if(l!==void 0)e.setAttribute("fill",l);if(s!==void 0)e.setAttribute("stroke",s);if(t!==void 0)e.setAttribute("stroke-width",String(t))}let r=i.querySelectorAll("[style]");i.removeAttribute("style");for(let e of[...r]){let{fill:h,stroke:a,strokeWidth:x,strokeLinecap:c,strokeLinejoin:d}=e.style;if(h)e.setAttribute("fill",z.fromCss(h).html);if(a)e.setAttribute("stroke",z.fromCss(a).html);if(x)e.setAttribute("strokeWidth",x);if(c)e.setAttribute("strokeLinecap",c);if(d)e.setAttribute("strokeLinejoin",d);e.removeAttribute("style")}return`url(data:image/svg+xml;charset=UTF-8,${encodeURIComponent(i.outerHTML)})`},v=new Proxy(b2,{get(i,l){let s=b2[l];if(l&&!s)console.warn(`icon ${l} does not exist`);if(!s)s=b2.square;return(...t)=>{let r=C.div();r.innerHTML=s;let o=r.querySelector("svg"),e=new Set(o.classList);e.add("xin-icon");let h=W2.svg({class:Array.from(e).join(" "),viewBox:o.getAttribute("viewBox")},...t,...o.children);if(h.style.strokeWidth=p.tosiIconStrokeWidth("2px"),e.has("filled"))h.style.stroke="none",h.style.fill="currentColor";else if(e.has("stroked"))h.style.stroke=p.tosiIconStroke("currentColor"),h.style.fill="none";else h.style.stroke=p.tosiIconStroke("currentColor"),h.style.fill=p.tosiIconFill("currentColor");return h.style.height=p.tosiIconSize("16px"),h}}});class hi extends w{static initAttributes={icon:"",size:0,fill:"",stroke:"",strokeWidth:1};render(){super.render(),this.textContent="";let i={};if(this.size)i.height=this.size+"px",this.style.setProperty("--tosi-icon-size",`${this.size}px`),this.style.setProperty("--xin-icon-size",`${this.size}px`);if(this.stroke)i.stroke=this.stroke,i.strokeWidth=this.strokeWidth;if(this.fill)i.fill=this.fill;this.append(v[this.icon]({style:i}))}}var Ks=hi.elementCreator({tag:"xin-icon",styleSpec:{":host":{"--tosi-icon-size":"var(--xin-icon-size, 16px)","--tosi-icon-stroke-width":"var(--xin-icon-stroke-width, var(--icon-stroke-width, 2px))","--tosi-icon-stroke-linejoin":"var(--icon-stroke-linejoin, round)","--tosi-icon-stroke-linecap":"var(--icon-stroke-linecap, round)","--tosi-icon-fill":"var(--xin-icon-fill, var(--icon-fill, none))",display:"inline-flex",stroke:"currentColor",strokeWidth:p.tosiIconStrokeWidth("2px"),strokeLinejoin:p.tosiIconStrokeLinejoin("round"),strokeLinecap:p.tosiIconStrokeLinecap("round"),fill:p.tosiIconFill("none")},":host, :host svg":{height:p.tosiIconSize("16px")}}});var e4=()=>{};class ai extends w{babylonReady;BABYLON;static styleSpec={":host":{display:"block",position:"relative"},":host canvas":{width:"100%",height:"100%"},":host .babylonVRicon":{height:50,width:80,backgroundColor:"transparent",filter:"drop-shadow(0 0 4px #000c)",backgroundImage:ei(v.xrColor()),backgroundPosition:"center",backgroundRepeat:"no-repeat",border:"none",borderRadius:5,borderStyle:"none",outline:"none",transition:"transform 0.125s ease-out"},":host .babylonVRicon:hover":{transform:"scale(1.1)"}};content=C.canvas({part:"canvas"});constructor(){super();this.babylonReady=(async()=>{let{BABYLON:i}=await L("https://cdn.babylonjs.com/babylon.js","BABYLON");return i})()}scene;engine;sceneCreated=e4;update=e4;_update=()=>{if(this.scene){if(this.update!==void 0)this.update(this,this.BABYLON);if(this.scene.activeCamera!==void 0)this.scene.render()}};onResize(){if(this.engine)this.engine.resize()}loadScene=async(i,l,s)=>{let{BABYLON:t}=await L("https://cdn.babylonjs.com/loaders/babylonjs.loaders.min.js","BABYLON");t.SceneLoader.Append(i,l,this.scene,s)};loadUI=async(i)=>{let{BABYLON:l}=await L("https://cdn.babylonjs.com/gui/babylon.gui.min.js","BABYLON"),s=l.GUI.AdvancedDynamicTexture.CreateFullscreenUI("GUI",!0,this.scene),{snippetId:t,jsonUrl:r,data:o,size:e}=i;if(e)s.idealWidth=e,s.renderAtIdealSize=!0;let h;if(t)h=await s.parseFromSnippetAsync(t);else if(r)h=await s.parseFromURLAsync(r);else if(o)h=s.parseContent(o);else return null;let a=s.getChildren()[0],x=a.children.reduce((c,d)=>{return c[d.name]=d,c},{});return{advancedTexture:s,gui:h,root:a,widgets:x}};connectedCallback(){super.connectedCallback();let{canvas:i}=this.parts;this.babylonReady.then(async(l)=>{if(this.BABYLON=l,this.engine=new l.Engine(i,!0),this.scene=new l.Scene(this.engine),this.sceneCreated)await this.sceneCreated(this,l);if(this.scene.activeCamera===void 0)new l.ArcRotateCamera("default-camera",-Math.PI/2,Math.PI/2.5,3,new l.Vector3(0,0,0)).attachControl(this.parts.canvas,!0);this.engine.runRenderLoop(this._update)})}}var ms=ai.elementCreator({tag:"xin-3d"});class s2 extends w{static initAttributes={src:"",json:""};content=null;config={renderer:"svg",loop:!0,autoplay:!0};static bodymovinAvailable;animation;static styleSpec={":host":{width:400,height:400,display:"inline-block"}};_loading=!1;get loading(){return this._loading}constructor(){super();if(s2.bodymovinAvailable===void 0)s2.bodymovinAvailable=L("https://cdnjs.cloudflare.com/ajax/libs/bodymovin/5.12.2/lottie.min.js","bodymovin")}doneLoading=()=>{this._loading=!1};load=({bodymovin:i})=>{if(this._loading=!0,this.config.container=this.shadowRoot!==null?this.shadowRoot:void 0,this.json!=="")this.config.animationData=this.json,delete this.config.path;else if(this.src!=="")delete this.config.animationData,this.config.path=this.src;else console.log("%c<xin-lottie>%c expected either %cjson%c (animation data) or %csrc% c(url) but found neither.","color: #44f; background: #fff; padding: 0 5px","color: default","color: #44f; background: #fff; padding: 0 5px","color: default","color: #44f; background: #fff; padding: 0 5px","color: default");if(this.animation){this.animation.destroy();let l=this.shadowRoot;if(l!==null)l.querySelector("svg")?.remove()}this.animation=i.loadAnimation(this.config),this.animation.addEventListener("DOMLoaded",this.doneLoading)};render(){super.render(),s2.bodymovinAvailable.then(this.load).catch((i)=>{console.error(i)})}}var Ns=s2.elementCreator({tag:"xin-lottie"});var{button:xi,slot:Xs,div:T2}=C;class yi extends w{static initAttributes={dots:!1,arrows:!1,maxVisibleItems:1,snapDuration:0.25,snapDelay:0.1,loop:!1,auto:0};lastAutoAdvance=Date.now();interval;autoAdvance=()=>{if(this.auto>0&&this.auto*1000<Date.now()-this.lastAutoAdvance)this.forward()};_page=0;get page(){return this._page}set page(i){let{scroller:l,back:s,forward:t}=this.parts;if(this.lastPage<=0)t.disabled=s.disabled=!0,i=0;else i=Math.max(0,Math.min(this.lastPage,i)),i=isNaN(i)?0:i;if(this._page!==i)this._page=isNaN(i)?0:i,this.animateScroll(this._page*l.offsetWidth),s.disabled=this.page<=0&&!this.loop,t.disabled=this.page>=this.lastPage&&!this.loop}get visibleItems(){return[...this.children].filter((i)=>getComputedStyle(i).display!=="none")}get lastPage(){return Math.max(Math.ceil(this.visibleItems.length/(this.maxVisibleItems||1))-1,0)}static styleSpec={":host":{display:"flex",flexDirection:"column",position:"relative"},":host svg":{height:y.carouselIconSize},":host button":{outline:"none",border:"none",boxShadow:"none",background:"transparent",color:y.carouselButtonColor,padding:0},":host::part(back), :host::part(forward)":{position:"absolute",top:0,bottom:0,width:y.carouseButtonWidth,zIndex:2},":host::part(back)":{left:0},":host::part(forward)":{right:0},":host button:disabled":{opacity:0.5,pointerEvents:"none"},":host button:hover":{color:y.carouselButtonHoverColor},":host button:active":{color:y.carouselButtonActiveColor},":host::part(pager)":{position:"relative"},":host::part(scroller)":{overflow:"auto hidden",position:"relative"},":host::part(grid)":{display:"grid",justifyItems:"center"},":host *::-webkit-scrollbar, *::-webkit-scrollbar-thumb":{display:"none"},":host .dot":{background:y.carouselButtonColor,borderRadius:y.carouselDotSize,height:y.carouselDotSize,width:y.carouselDotSize,transition:y.carouselDotTransition},":host .dot:not(.current):hover":{background:y.carouselButtonHoverColor,height:y.carouselDotSize150,width:y.carouselDotSize150,margin:y.carouselDotSize_25},":host .dot:not(.current):active":{background:y.carouselButtonActiveColor},":host .dot.current":{background:y.carouselDotCurrentColor},":host::part(progress)":{display:"flex",gap:y.carouselDotSpacing,justifyContent:"center",padding:y.carouselProgressPadding}};easing=(i)=>{return Math.sin(i*Math.PI*0.5)};indicateCurrent=()=>{let{scroller:i,progress:l}=this.parts,s=i.scrollLeft/i.offsetWidth;[...l.children].forEach((t,r)=>{t.classList.toggle("current",Math.floor(r/this.maxVisibleItems-s)===0)}),this.lastAutoAdvance=Date.now(),clearTimeout(this.snapTimer),this.snapTimer=setTimeout(this.snapPosition,this.snapDelay*1000)};snapPosition=()=>{let{scroller:i}=this.parts,l=Math.round(i.scrollLeft/i.offsetWidth);if(l!==this.page)this.page=l>this.page?Math.ceil(l):Math.floor(l);this.lastAutoAdvance=Date.now()};back=()=>{this.page=this.page>0?this.page-1:this.lastPage};forward=()=>{this.page=this.page<this.lastPage?this.page+1:0};handleDotClick=(i)=>{let{progress:l}=this.parts,s=[...l.children].indexOf(i.target);if(s>-1)this.page=Math.floor(s/this.maxVisibleItems)};snapTimer;animationFrame;animateScroll(i,l=-1,s=0){cancelAnimationFrame(this.animationFrame);let{scroller:t}=this.parts;if(l===-1){l=t.scrollLeft,s=Date.now(),this.animationFrame=requestAnimationFrame(()=>{this.animateScroll(i,l,s)});return}let r=(Date.now()-s)/1000;if(r>=this.snapDuration||Math.abs(t.scrollLeft-i)<2)t.scrollLeft=i,this.animationFrame=null;else t.scrollLeft=l+this.easing(r/this.snapDuration)*(i-l),this.animationFrame=requestAnimationFrame(()=>{this.animateScroll(i,l,s)})}content=()=>[T2({part:"pager"},xi({title:"previous slide",part:"back"},v.chevronLeft()),T2({title:"slides",role:"group",part:"scroller"},T2({part:"grid"},Xs())),xi({title:"next slide",part:"forward"},v.chevronRight())),T2({title:"choose slide to display",role:"group",part:"progress"})];connectedCallback(){super.connectedCallback(),this.ariaRoleDescription="carousel",this.ariaOrientation="horizontal",this.ariaReadOnly="true";let{back:i,forward:l,scroller:s,progress:t}=this.parts;i.addEventListener("click",this.back),l.addEventListener("click",this.forward),s.addEventListener("scroll",this.indicateCurrent),t.addEventListener("click",this.handleDotClick),this.lastAutoAdvance=Date.now(),this.interval=setInterval(this.autoAdvance,100)}disconnectedCallback(){clearInterval(this.interval)}render(){super.render();let{dots:i,arrows:l,visibleItems:s,lastPage:t}=this,{progress:r,back:o,forward:e,grid:h}=this.parts;s.forEach((a)=>{a.role="group"}),h.style.gridTemplateColumns=`${100/this.maxVisibleItems/(1+this.lastPage)}% `.repeat(s.length).trim(),h.style.width=(1+this.lastPage)*100+"%",r.textContent="",r.append(...s.map((a,x)=>xi({title:`item ${x+1}`,class:"dot"}))),this.indicateCurrent(),r.style.display=i&&t>0?"":"none",o.hidden=e.hidden=!(l&&t>0)}}var Ys=yi.elementCreator({tag:"xin-carousel",styleSpec:{":host":{_carouselIconSize:24,_carouselButtonColor:"#0004",_carouselButtonHoverColor:"#0006",_carouselButtonActiveColor:"#000c",_carouseButtonWidth:48,_carouselDotCurrentColor:"#0008",_carouselDotSize:8,_carouselDotSpacing:y.carouselDotSize,_carouselProgressPadding:12,_carouselDotTransition:"0.125s ease-in-out"},":host:focus":{outline:"none",boxShadow:"none"}}});var h4="https://cdnjs.cloudflare.com/ajax/libs/ace/1.23.2/",a4="ace/theme/tomorrow",Ws=async()=>{let{ace:i}=await L(`${h4}ace.min.js`);return i},Rs=async(i,l="html",s={},t=a4)=>{let r=await Ws();r.config.set("basePath",h4);let o=r.edit(i,{mode:`ace/mode/${l}`,tabSize:2,useSoftTabs:!0,useWorker:!1,...s});return o.setTheme(t),{ace:r,editor:o}};class Z1 extends w{source="";get value(){return this.editor===void 0?this.source:this.editor.getValue()}set value(i){if(this.editor===void 0)this.source=i;else this.editor.setValue(i),this.editor.clearSelection(),this.editor.session.getUndoManager().reset()}static initAttributes={mode:"javascript",theme:a4,disabled:!1};role="code editor";_ace;_editor;_editorPromise;options={};get ace(){return this._ace}get editor(){return this._editor}static styleSpec={":host":{display:"block",position:"relative",width:"100%",height:"100%"}};onResize(){if(this.editor!==void 0)this.editor.resize(!0)}connectedCallback(){if(super.connectedCallback(),this.source==="")this.value=this.textContent!==null?this.textContent.trim():"";if(this._editorPromise===void 0)this._editorPromise=Rs(this,this.mode,this.options,this.theme),this._editorPromise.then(({ace:i,editor:l})=>{this._ace=i,this._editor=l,l.setValue(this.source,1),l.clearSelection(),l.session.getUndoManager().reset()})}render(){if(super.render(),this._editorPromise!==void 0)this._editorPromise.then(({editor:i})=>i.setReadOnly(this.disabled))}}var t2=Z1.elementCreator({tag:"xin-code"});var{input:ci}=C,x4=z.fromCss("#8888");class y4 extends w{value=x4.rgba;color=x4;static styleSpec={":host":{_gap:8,_swatchSize:32,_cssWidth:72,_alphaWidth:72,display:"inline-flex",gap:y.gap,alignItems:"center"},':host input[type="color"]':{border:0,width:y.swatchSize,height:y.swatchSize,background:"transparent"},":host::part(alpha)":{width:y.alphaWidth},":host::part(css)":{width:y.cssWidth,fontFamily:"monospace"}};content=[ci({title:"base color",type:"color",part:"rgb"}),ci({type:"range",title:"opacity",part:"alpha",min:0,max:1,step:0.05}),ci({title:"css color spec",part:"css"})];valueChanged=!1;update=(i)=>{let{rgb:l,alpha:s,css:t}=this.parts;if(i.type==="input")this.color=z.fromCss(l.value),this.color.a=Number(s.value),t.value=this.color.html;else this.color=z.fromCss(t.value),l.value=this.color.html.substring(0,7),s.value=String(this.color.a);l.style.opacity=String(this.color.a),this.value=this.color.rgba,this.valueChanged=!0};connectedCallback(){super.connectedCallback();let{rgb:i,alpha:l,css:s}=this.parts;i.addEventListener("input",this.update),l.addEventListener("input",this.update),s.addEventListener("change",this.update)}render(){if(this.valueChanged){this.valueChanged=!1;return}let{rgb:i,alpha:l,css:s}=this.parts;this.color=z.fromCss(this.value),i.value=this.color.html.substring(0,7),i.style.opacity=String(this.color.a),l.value=String(this.color.a),s.value=this.color.html}}var di=y4.elementCreator({tag:"xin-color"});var M1=C.div({style:{content:" ",position:"fixed",top:0,left:0,right:0,bottom:0}}),S2={passive:!0},X=(i,l,s="move")=>{if(!i.type.startsWith("touch")){let{clientX:r,clientY:o}=i;M1.style.cursor=s,b1(M1),document.body.append(M1);let e=(h)=>{let a=h.clientX-r,x=h.clientY-o;if(l(a,x,h)===!0)M1.removeEventListener("mousemove",e),M1.removeEventListener("mouseup",e),M1.remove()};M1.addEventListener("mousemove",e,S2),M1.addEventListener("mouseup",e,S2)}else if(i instanceof TouchEvent){let r=i.changedTouches[0],o=r.identifier,e=r.clientX,h=r.clientY,a=i.target,x=0,c=0,d=(g)=>{let B=[...g.touches].find((k)=>k.identifier===o);if(B!==void 0)x=B.clientX-e,c=B.clientY-h;if(g.type==="touchmove")g.stopPropagation(),g.preventDefault();if(l(x,c,g)===!0||B===void 0)a.removeEventListener("touchmove",d),a.removeEventListener("touchend",d),a.removeEventListener("touchcancel",d)};a.addEventListener("touchmove",d),a.addEventListener("touchend",d,S2),a.addEventListener("touchcancel",d,S2)}},K1=(i="body *")=>[...document.querySelectorAll(i)].map((l)=>parseFloat(getComputedStyle(l).zIndex)).reduce((l,s)=>isNaN(l)||Number(l)<s?s:Number(l),0),b1=(i,l="body *")=>{i.style.zIndex=String(K1(l)+1)};var{slot:Ls}=C;class u1 extends w{static floats=new Set;static initAttributes={drag:!1,remainOnResize:"remove",remainOnScroll:"remain"};content=Ls();static styleSpec={":host":{position:"fixed"}};reposition=(i)=>{if(i.target?.closest(".no-drag"))return;if(this.drag){b1(this);let s=this.offsetLeft,t=this.offsetTop;X(i,(r,o,e)=>{if(this.style.left=`${s+r}px`,this.style.top=`${t+o}px`,this.style.right="auto",this.style.bottom="auto",e.type==="mouseup")return!0})}};connectedCallback(){super.connectedCallback(),u1.floats.add(this);let i={passive:!0};this.addEventListener("touchstart",this.reposition,i),this.addEventListener("mousedown",this.reposition,i),b1(this)}disconnectedCallback(){super.disconnectedCallback(),u1.floats.delete(this)}}var E2=u1.elementCreator({tag:"xin-float"});window.addEventListener("resize",()=>{Array.from(u1.floats).forEach((i)=>{if(i.remainOnResize==="hide")i.hidden=!0;else if(i.remainOnResize==="remove")i.remove()})},{passive:!0});document.addEventListener("scroll",(i)=>{if(i.target instanceof HTMLElement&&i.target.closest(u1.tagName))return;Array.from(u1.floats).forEach((l)=>{if(l.remainOnScroll==="hide")l.hidden=!0;else if(l.remainOnScroll==="remove")l.remove()})},{passive:!0,capture:!0});var pi=(i)=>{let{content:l,target:s,position:t,remainOnScroll:r,remainOnResize:o,draggable:e}=i,h=Array.isArray(l)?E2(...l):E2(l);if(c4(h,s,t,r,o,e),i.class)h.setAttribute("class",i.class);return document.body.append(h),h},c4=(i,l,s,t,r,o=!1)=>{{let{position:k}=getComputedStyle(i);if(k!=="fixed")i.style.position="fixed";if(r)i.remainOnResize=r;if(t)i.remainOnScroll=t;b1(i)}i.drag=o;let{left:e,top:h,width:a,height:x}=l.getBoundingClientRect(),c=e+a*0.5,d=h+x*0.5,g=window.innerWidth,B=window.innerHeight;if(s==="side")s=(c<g*0.5?"e":"w")+(d<B*0.5?"s":"n");else if(s==="auto"||s===void 0)s=(d<B*0.5?"s":"n")+(c<g*0.5?"e":"w");if(i.style.top=i.style.left=i.style.right=i.style.bottom=i.style.transform="",s.length===2){let[k,M]=s;switch(k){case"n":i.style.bottom=(B-h).toFixed(2)+"px";break;case"e":i.style.left=(e+a).toFixed(2)+"px";break;case"s":i.style.top=(h+x).toFixed(2)+"px";break;case"w":i.style.right=(g-e).toFixed(2)+"px";break}switch(M){case"n":i.style.bottom=(B-h-x).toFixed(2)+"px";break;case"e":i.style.left=e.toFixed(2)+"px";break;case"s":i.style.top=h.toFixed(2)+"px";break;case"w":i.style.right=(g-e-a).toFixed(2)+"px";break}i.style.transform=""}else if(s==="n")i.style.bottom=(B-h).toFixed(2)+"px",i.style.left=c.toFixed(2)+"px",i.style.transform="translateX(-50%)";else if(s==="s")i.style.top=(h+x).toFixed(2)+"px",i.style.left=c.toFixed(2)+"px",i.style.transform="translateX(-50%)";else if(s==="e")i.style.left=(e+a).toFixed(2)+"px",i.style.top=d.toFixed(2)+"px",i.style.transform="translateY(-50%)";else if(s==="w")i.style.right=(g-e).toFixed(2)+"px",i.style.top=d.toFixed(2)+"px",i.style.transform="translateY(-50%)";i.style.setProperty("--max-height",`calc(100vh - ${i.style.top||i.style.bottom})`),i.style.setProperty("--max-width",`calc(100vw - ${i.style.left||i.style.right})`)};function i0(i,l=!0){return(s,t)=>{let r=i(s),o=i(t);for(let e in r)if(r[e]!==o[e])return(Array.isArray(l)?l[e]!==!1:l)?r[e]>o[e]?1:-1:r[e]>o[e]?-1:1;return 0}}var{button:Is,span:d4,input:Ds}=C,p4=(i,l)=>{return!!i.find((s)=>{if(s===null||l==null)return!1;else if(Array.isArray(s))return p4(s,l);else if(s.value===l||s===l)return!0})};class A1 extends w{static formAssociated=!0;static initAttributes={editable:!1,placeholder:"",showIcon:!1,hideCaption:!1,localized:!1,disabled:!1,required:!1,name:""};_options=[];get options(){return this._options}set options(i){if(typeof i==="string")this._options=A1.parseOptionsString(i);else this._options=i;this.queueRender()}static parseOptionsString(i){return i.split(",").map((l)=>{let s=l.trim();if(s==="")return null;let[t,r]=s.split("=").map((h)=>h.trim());if(!r)return{value:t,caption:t};let[o,e]=r.split(":").map((h)=>h.trim());return{value:t,caption:o||t,icon:e||void 0}})}value="";filter="";isExpanded=!1;formDisabledCallback(i){this.disabled=i}formResetCallback(){this.value=""}setValue=(i,l=!1)=>{if(this.value!==i)this.value=i,this.queueRender(!0);if(l)this.dispatchEvent(new Event("action"))};getValue=()=>this.value;get selectOptions(){return this.options}buildOptionMenuItem=(i)=>{if(i===null)return null;let{setValue:l,getValue:s}=this,t,r,o;if(typeof i==="string")r=o=i;else({icon:t,caption:r,value:o}=i);if(this.localized)r=q(r);let{options:e}=i;if(e)return{icon:t,caption:r,checked:()=>p4(e,s()),menuItems:e.map(this.buildOptionMenuItem)};return{icon:t,caption:r,checked:()=>s()===o,action:typeof o==="function"?async()=>{let h=await o();if(h!==void 0)l(h,!0)}:()=>{if(typeof o==="string")l(o,!0)}}};poppedOptions=[];get optionsMenu(){let i=this.selectOptions.map(this.buildOptionMenuItem);if(this.filter==="")return i;let l=(s)=>{if(s===null)return!0;else if(s.menuItems)return s.menuItems=s.menuItems.filter(l),s.menuItems.length>0;else return s.caption.toLocaleLowerCase().includes(this.filter)};return i.filter(l)}handleChange=(i)=>{let{value:l}=this.parts,s=l.value||"";if(this.value!==String(s))this.value=s,this.dispatchEvent(new Event("change"));this.filter="",i.stopPropagation(),i.preventDefault()};handleKey=(i)=>{if(i.key==="Enter")i.preventDefault()};filterMenu=B2(()=>{this.filter=this.parts.value.value.toLocaleLowerCase(),P1(0),this.popOptions()});popOptions=(i)=>{if(i&&i.type==="click")this.filter="";this.poppedOptions=this.optionsMenu,this.isExpanded=!0,this.updateAriaExpanded(),K({target:this,menuItems:this.poppedOptions,showChecked:!0,role:"listbox",onClose:()=>{this.isExpanded=!1,this.updateAriaExpanded()}})};updateAriaExpanded(){let{value:i}=this.parts;i.setAttribute("aria-expanded",String(this.isExpanded))}content=()=>[Is({type:"button",part:"button",onClick:this.popOptions},d4(),Ds({part:"value",value:this.value,tabindex:0,role:"combobox",ariaHaspopup:"listbox",ariaExpanded:"false",ariaAutocomplete:this.editable?"list":"none",onKeydown:this.handleKey,onInput:this.filterMenu,onChange:this.handleChange}),v.chevronDown())];get allOptions(){let i=[];function l(s){for(let t of s)if(typeof t==="string")i.push({caption:t,value:t});else if(t?.value)i.push(t);else if(t?.options)l(t.options)}return l(this.selectOptions),i}findOption(){return this.allOptions.find((l)=>l.value===this.value)||{caption:this.value,value:this.value}}localeChanged=()=>{this.queueRender()};connectedCallback(){super.connectedCallback();let i=this.getAttribute("options");if(i&&this._options.length===0)this._options=A1.parseOptionsString(i);if(this.localized)I.allInstances.add(this)}disconnectedCallback(){if(super.disconnectedCallback(),this.localized)I.allInstances.delete(this)}render(){super.render();let{value:i,button:l}=this.parts;l.disabled=this.disabled;let s=i.previousElementSibling,t=this.findOption(),r=d4();if(i.value=this.localized?q(t.caption):t.caption,t.icon)if(t.icon instanceof HTMLElement)r=t.icon.cloneNode(!0);else r=v[t.icon]();s.replaceWith(r),i.setAttribute("placeholder",this.localized?q(this.placeholder):this.placeholder),i.style.pointerEvents=this.editable?"":"none",i.readOnly=!this.editable}}var gi=A1,d1=A1.elementCreator({tag:"tosi-select",styleSpec:{":host":{"--tosi-select-gap":"var(--tosi-spacing-sm, 8px)","--tosi-select-touch-size":"var(--tosi-touch-size, 44px)","--tosi-select-padding":"0 var(--tosi-spacing-sm, 8px)","--tosi-select-value-padding":"0 var(--tosi-spacing-sm, 8px)","--tosi-select-icon-width":"24px","--tosi-select-field-width":"140px","--gap":"var(--tosi-select-gap)","--touch-size":"var(--tosi-select-touch-size)","--padding":"var(--tosi-select-padding)","--value-padding":"var(--tosi-select-value-padding)","--icon-width":"var(--tosi-select-icon-width)","--fieldWidth":"var(--tosi-select-field-width)",display:"inline-flex",position:"relative"},":host button":{display:"flex",alignItems:"center",justifyItems:"center",gap:y.tosiSelectGap,textAlign:"left",height:y.tosiSelectTouchSize,padding:y.tosiSelectPadding,position:"relative",width:"100%"},":host:not([show-icon]) button > :first-child":{display:"none"},":host[hide-caption] button > :nth-child(2)":{display:"none"},':host [part="value"]':{width:y.tosiSelectFieldWidth,padding:y.tosiSelectValuePadding,height:y.tosiSelectTouchSize,lineHeight:y.tosiSelectTouchSize,boxShadow:"none",whiteSpace:"nowrap",outline:"none",background:"transparent",flex:"1"},':host [part="value"]:not(:focus)':{overflow:"hidden",textOverflow:"ellipsis",background:"transparent"}}}),Ci=Q((...i)=>d1(...i),"xinSelect is deprecated, use tosiSelect instead (tag is now <tosi-select>)");var{span:g4}=C,{i18n:U}=S({i18n:{locale:window.navigator.language,locales:[window.navigator.language],languages:[window.navigator.language],emoji:[""],stringMap:{},localeOptions:[{icon:g4(),caption:window.navigator.language,value:window.navigator.language}]}});v1.localeOptions={toDOM(i,l){if(i instanceof gi)i.options=l}};var Ts=(i)=>{if(U.locales.value.includes(i))U.locale.value=i;else console.error(`language ${i} is not available`)},vi=()=>{let i=Array.from(I.allInstances);for(let l of i)l.localeChanged()};U.locale.observe(vi);var Ss=i0((i)=>[i.caption.toLocaleLowerCase()]);function Es(i){let[l,,s,t,...r]=i.split(`
14
- `).map((o)=>o.split("\t"));if(l&&s&&t&&r){if(U.locales.value=l,U.languages.value=s,U.emoji.value=t,U.stringMap.value=r.reduce((o,e)=>{return o[e[0].toLocaleLowerCase()]=e,o},{}),U.localeOptions.value=l.map((o,e)=>({icon:g4({title:l[e]},t[e]),caption:s[e],value:o})).sort(Ss),!U.locales.value.includes(U.locale.value)){let o=U.locale.value.substring(0,2);U.locale.value=U.locales.value.find((e)=>e.substring(0,2)===o)||U.locales.value[0]}vi()}}function q(i){if(i.endsWith("…"))return q(i.substring(0,i.length-1))+"…";let l=U.locales.value.indexOf(U.locale.value);if(l>-1){let t=U.stringMap.value[i.toLocaleLowerCase()],r=t&&t[l];if(r)i=i.toLocaleLowerCase()===i?r.toLocaleLowerCase():r}return i}class ki extends w{static initAttributes={hideCaption:!1};content=()=>{return Ci({part:"select",showIcon:!0,title:q("Language"),bindValue:U.locale,bindLocaleOptions:U.localeOptions})};render(){super.render(),this.parts.select.toggleAttribute("hide-caption",this.hideCaption)}}var i3=ki.elementCreator({tag:"xin-locale-picker"});class I extends w{static allInstances=new Set;static initAttributes={refString:""};contents=()=>C.xinSlot();connectedCallback(){super.connectedCallback(),I.allInstances.add(this)}disconnectedCallback(){super.disconnectedCallback(),I.allInstances.delete(this)}localeChanged(){if(!this.refString)this.refString=this.textContent||"";this.textContent=this.refString?q(this.refString):""}render(){super.render(),this.localeChanged()}}var k1=I.elementCreator({tag:"xin-localized",styleSpec:{":host":{pointerEvents:"none"}}});var C4=(i,l)=>{l=l.toLocaleLowerCase();let s=!!l.match(/\^|ctrl/),t=!!l.match(/⌘|meta/),r=!!l.match(/⌥|⎇|alt|option/),o=!!l.match(/⇧|shift/),e=l.slice(-1);return i.key===e&&i.metaKey===t&&i.ctrlKey===s&&i.altKey===r&&i.shiftKey===o};var{div:v4,button:ni,span:E,a:l3,xinSlot:s3}=C;G1("xin-menu-helper",{".xin-menu":{overflow:"hidden auto",maxHeight:`calc(${y.maxHeight} - ${p.menuInset("8px")})`,borderRadius:y.spacing50,background:p.menuBg("#fafafa"),boxShadow:p.menuShadow(`${y.spacing13} ${y.spacing50} ${y.spacing} #0004`)},".xin-menu > div":{width:p.menuWidth("auto")},".xin-menu-trigger":{paddingLeft:0,paddingRight:0,minWidth:p.touchSize("48px")},".xin-menu-separator":{display:"inline-block",content:" ",height:"1px",width:"100%",background:p.menuSeparatorColor("#2224"),margin:p.menuSeparatorMargin("8px 0")},".xin-menu-item":{boxShadow:"none",border:"none !important",display:"grid",alignItems:"center",justifyContent:"flex-start",textDecoration:"none",gridTemplateColumns:"0px 1fr 30px",width:"100%",gap:0,background:"transparent",padding:p.menuItemPadding("0 16px"),height:p.menuItemHeight("48px"),lineHeight:p.menuItemHeight("48px"),textAlign:"left"},".xin-menu-item, .xin-menu-item > span":{color:p.menuItemColor("#222")},".xin-menu-with-icons .xin-menu-item":{gridTemplateColumns:"30px 1fr 30px"},".xin-menu-item svg":{stroke:p.menuItemIconColor("#222")},".xin-menu-item.xin-menu-item-checked":{background:p.menuItemHoverBg("#eee")},".xin-menu-item > span:nth-child(2)":{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",textAlign:"left"},".xin-menu-item:hover":{boxShadow:"none !important",background:p.menuItemHoverBg("#eee")},".xin-menu-item:active":{boxShadow:"none !important",background:p.menuItemActiveBg("#aaa"),color:p.menuItemActiveColor("#000")},".xin-menu-item:active svg":{stroke:p.menuItemIconActiveColor("#000")}});var k4=(i,l)=>{let s=i.checked&&i.checked()&&"check"||!1,t=i?.icon||s||E(" ");if(typeof t==="string")t=v[t]();let r=l.role==="listbox"?"option":"menuitem",o;if(typeof i?.action==="string")o=l3({class:"xin-menu-item",role:r,href:i.action},t,l.localized?E(q(i.caption)):E(i.caption),E(i.shortcut||" "));else o=ni({class:"xin-menu-item",role:r,onClick:i.action},t,l.localized?E(q(i.caption)):E(i.caption),E(i.shortcut||" "));if(o.classList.toggle("xin-menu-item-checked",s!==!1),l.role==="listbox"&&s)o.setAttribute("aria-selected","true");if(i?.enabled&&!i.enabled())o.setAttribute("disabled",""),o.setAttribute("aria-disabled","true");return o},n4=(i,l)=>{let s=i.checked&&i.checked()&&"check"||!1,t=i?.icon||s||E(" ");if(typeof t==="string")t=v[t]();let r=ni({class:"xin-menu-item",disabled:!(!i.enabled||i.enabled()),onClick(o){K(Object.assign({},l,{menuItems:i.menuItems,target:r,submenuDepth:(l.submenuDepth||0)+1,position:"side"})),o.stopPropagation(),o.preventDefault()}},t,l.localized?E(q(i.caption)):E(i.caption),v.chevronRight({style:{justifySelf:"flex-end"}}));return r},w4=(i,l)=>{if(i===null)return E({class:"xin-menu-separator"});else{let s=i?.action?k4(i,l):n4(i,l);if(l.showChecked&&i.checked&&i.checked())requestAnimationFrame(()=>{s.scrollIntoView({block:"center"})});return s}},B4=(i)=>{let{target:l,width:s,menuItems:t,role:r="menu"}=i,o=t.find((e)=>e?.icon||e?.checked);return v4({class:o?"xin-menu xin-menu-with-icons":"xin-menu",role:r,onClick(){P1(0)}},v4({style:{minWidth:l.offsetWidth+"px",width:typeof s==="number"?`${s}px`:s},onMousedown(e){e.preventDefault(),e.stopPropagation()}},...t.map((e)=>w4(e,i))))},r2,m1=[],P1=(i=0)=>{let l=m1.splice(i);for(let s of l)if(s.menu.remove(),s.onClose)s.onClose();return r2=l[0],i>0?m1[i-1]:void 0};document.body.addEventListener("mousedown",(i)=>{if(i.target&&!m1.find((l)=>l.target.contains(i.target)))P1(0)});document.body.addEventListener("keydown",(i)=>{if(i.key==="Escape")P1(0)});var K=(i)=>{i=Object.assign({submenuDepth:0},i);let{target:l,position:s,submenuDepth:t}=i;if(r2&&!document.body.contains(r2?.menu))r2=void 0;if(m1.length&&!document.body.contains(m1[0].menu))m1.splice(0);if(t===0&&r2?.target===l)return;let r=P1(t);if(r2?.target===l)return;if(r&&r.target===l){P1();return}if(!i.menuItems?.length)return;let o=B4(i),e=pi({content:o,target:l,position:s});e.remainOnScroll="remove",m1.push({target:l,menu:e,onClose:i.onClose})};function z4(i,l){for(let s of i){if(!s)continue;let{shortcut:t}=s,{menuItems:r}=s;if(t){if(C4(l,t))return s}else if(r){let o=z4(r,l);if(o)return o}}return}class l0 extends w{static initAttributes={menuWidth:"auto",localized:!1,icon:""};menuItems=[];showMenu=(i)=>{if(i.type==="click"||i.code==="Space")K({target:this.parts.trigger,width:this.menuWidth,localized:this.localized,menuItems:this.menuItems}),i.stopPropagation(),i.preventDefault()};content=()=>ni({tabindex:0,part:"trigger",onClick:this.showMenu},s3());handleShortcut=async(i)=>{let l=z4(this.menuItems,i);if(l){if(l.action instanceof Function)l.action()}};constructor(){super();this.addEventListener("keydown",this.showMenu)}connectedCallback(){super.connectedCallback(),document.addEventListener("keydown",this.handleShortcut,!0)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("keydown",this.handleShortcut)}}var f4=l0.elementCreator({tag:"tosi-menu",styleSpec:{":host":{display:"inline-block"},":host button > xin-slot":{display:"flex",alignItems:"center",gap:p.tosiMenuTriggerGap("10px")}}}),t3=f4,r3=l0;var t0={};F0(t0,{init:()=>Bi,draggedElement:()=>x3});var o3=()=>!!document.querySelector(".drag-source"),u4=(i,l)=>{if(!i)return!1;for(let s of i)if(s==="special/any")return!0;else if(s.indexOf("*")>-1){let[t,r]=s.split("/"),[o,e]=l.split("/");if((t==="*"||t===o)&&(r==="*"||r===e))return!0}else if(s===l)return!0},s0=(i)=>{for(let l of[...document.querySelectorAll(`.${i}`)])l.classList.remove(i)},A4=()=>{s0("drag-over"),s0("drag-source"),s0("drag-target")},wi=(i,l=";")=>{return(i||"").split(l).map((s)=>s.trim()).filter((s)=>s!=="")},P4=(i)=>{if(!i)i=[];let l=[...document.querySelectorAll("[data-drop]")];for(let s of l){let t=wi(s.dataset.drop);if(i.find((r)=>u4(t,r)))s.classList.add("drag-target");else s.classList.remove("drag-target")}};function e3(i){let l=i.target?.closest('[draggable="true"],a[href]');if(!l)return;l.classList.add("drag-source");let s=l.matches('[draggable="true"]')?wi(l.dataset.drag||"text/html"):wi(l.dataset.drag||"url");for(let t of s){let r=l.dataset.dragContent||(t==="text/html"?l.innerHTML:l.textContent);i.dataTransfer?.setData(t,r||"")}P4(i.dataTransfer?.types),i.stopPropagation()}function M4(i){if(!o3())P4(i.dataTransfer?.types);let l=i.target.closest(".drag-target");if(l&&i.dataTransfer)l.classList.add("drag-over"),i.dataTransfer.dropEffect="copy";else i.preventDefault(),i.stopPropagation()}function h3(){s0("drag-over")}function a3(i){let l=i.target.closest(".drag-target");if(l){let s=(l.dataset?.drop||"").split(";");for(let t of s)if(u4(i.dataTransfer?.types,t))if(t==="text/html")l.innerHTML=i.dataTransfer?.getData(t)||"";else l.textContent=i.dataTransfer?.getData(t)||""}A4()}var x3=()=>document.querySelector(".drag-source"),b4=!1,Bi=()=>{if(b4)return;document.body.addEventListener("dragstart",e3),document.body.addEventListener("dragenter",M4),document.body.addEventListener("dragover",M4),document.body.addEventListener("drop",a3),document.body.addEventListener("dragleave",h3),document.body.addEventListener("dragend",A4),window.addEventListener("dragover",(i)=>i.preventDefault()),window.addEventListener("drop",(i)=>i.preventDefault()),b4=!0};function y3(i,l,s){let t=i.find((r)=>r[l]!==void 0&&r[l]!==null);if(t!==void 0){let r=t[l];switch(typeof r){case"string":if(r.match(/^\d+(\.\d+)?$/))return 6*s;else if(r.includes(" "))return 20*s;else return 12*s;case"number":return 6*s;case"boolean":return 5*s;case"object":return!1;default:return 8*s}}return!1}var{div:o2,span:zi,button:c3,template:d3}=C,H4=(i)=>i;class fi extends w{static initAttributes={rowHeight:30,charWidth:15,minColumnWidth:30,select:!1,multiple:!1,pinnedTop:0,pinnedBottom:0,nosort:!1,nohide:!1,noreorder:!1,localized:!1};selectionChanged=()=>{};selectedKey=Symbol("selected");selectBinding=(i,l)=>{i.toggleAttribute("aria-selected",l[this.selectedKey]===!0)};maxVisibleRows=1e4;get value(){return{array:this.array,filter:this.filter,columns:this.columns}}set value(i){let{array:l,columns:s,filter:t}=O(i);if(this._array!==l||this._columns!==s||this._filter!==t)this.queueRender();this._array=l||[],this._columns=s||null,this._filter=t||H4}rowData={visible:[],pinnedTop:[],pinnedBottom:[]};_array=[];_columns=null;_filter=H4;get virtual(){return this.rowHeight>0?{height:this.rowHeight}:void 0}constructor(){super();this.rowData=S({[this.instanceId]:this.rowData})[this.instanceId]}get array(){return this._array}set array(i){this._array=O(i),this.queueRender()}get filter(){return this._filter}set filter(i){if(this._filter!==i)this._filter=i,this.queueRender()}get sort(){if(this._sort)return this._sort;let i=this._columns?.find((s)=>s.sort==="ascending"||s.sort==="descending");if(!i)return;let{prop:l}=i;return i.sort==="ascending"?(s,t)=>s[l]>t[l]?1:-1:(s,t)=>s[l]>t[l]?-1:1}set sort(i){if(this._sort!==i)this._sort=i,this.queueRender()}get columns(){if(!Array.isArray(this._columns)){let{_array:i}=this;this._columns=Object.keys(i[0]||{}).map((l)=>{let s=y3(i,l,this.charWidth);return{name:l.replace(/([a-z])([A-Z])/g,"$1 $2").toLocaleLowerCase(),prop:l,align:typeof i[0][l]==="number"||i[0][l]!==""&&!isNaN(i[0][l])?"right":"left",visible:s!==!1,width:s?s:0}})}return this._columns}set columns(i){this._columns=i,this.queueRender()}get visibleColumns(){return this.columns.filter((i)=>i.visible!==!1)}content=null;getColumn(i){let l=(i.touches!==void 0?i.touches[0].clientX:i.clientX)-this.getBoundingClientRect().x,s=i.touches!==void 0?20:5,t=0,r=[];return this.visibleColumns.find((e)=>{if(e.visible!==!1)return t+=e.width,r.push(t),Math.abs(l-t)<s})}setCursor=(i)=>{if(this.getColumn(i)!==void 0)this.style.cursor="col-resize";else this.style.cursor=""};resizeColumn=(i)=>{let l=this.getColumn(i);if(l!==void 0){let s=Number(l.width),t=i.touches!==void 0,r=t?i.touches[0].identifier:void 0;X(i,(o,e,h)=>{if((t?[...h.touches].find((c)=>c.identifier===r):!0)===void 0)return!0;let x=s+o;if(l.width=x>this.minColumnWidth?x:this.minColumnWidth,this.setColumnWidths(),h.type==="mouseup")return!0},"col-resize")}};selectRow(i,l=!0){if(l)i[this.selectedKey]=!0;else delete i[this.selectedKey]}selectRows(i,l=!0){for(let s of i||this.array)this.selectRow(s,l)}deSelect(i){this.selectRows(i,!1)}rangeStart;updateSelection=(i)=>{if(!this.select&&!this.multiple)return;let{target:l}=i;if(!(l instanceof HTMLElement))return;let s=l.closest(".tr");if(!(s instanceof HTMLElement))return;let t=Q1(s);if(t===!1)return;let r=i,o=window.getSelection();if(o!==null)o.removeAllRanges();let e=this.visibleRows;if(this.multiple&&r.shiftKey&&e.length>0&&this.rangeStart!==t){let h=this.rangeStart===void 0||this.rangeStart[this.selectedKey]===!0,[a,x]=[this.rangeStart!==void 0?e.indexOf(this.rangeStart):0,e.indexOf(t)].sort((c,d)=>c-d);if(a>-1)for(let c=a;c<=x;c++){let d=e[c];this.selectRow(d,h)}}else if(this.multiple&&r.metaKey){this.selectRow(t,!t[this.selectedKey]);let h=e.indexOf(t),a=e[h+1],x=h>0?e[h-1]:void 0;if(a!==void 0&&a[this.selectedKey]===!0)this.rangeStart=a;else if(x!==void 0&&x[this.selectedKey]===!0)this.rangeStart=x;else this.rangeStart=void 0}else this.rangeStart=t,this.deSelect(),this.selectRow(t,!0);this.selectionChanged(this.visibleSelectedRows);for(let h of Array.from(this.querySelectorAll(".tr"))){let a=Q1(h);this.selectBinding(h,a)}};connectedCallback(){super.connectedCallback(),this.addEventListener("mousemove",this.setCursor),this.addEventListener("mousedown",this.resizeColumn),this.addEventListener("touchstart",this.resizeColumn,{passive:!0}),this.addEventListener("mouseup",this.updateSelection),this.addEventListener("touchend",this.updateSelection)}setColumnWidths(){let i=this.visibleColumns.map((s)=>s.width+"px").join(" "),l=this.visibleColumns.reduce((s,t)=>s+t.width,0)+"px";this.style.setProperty("--tosi-table-grid-columns",i),this.style.setProperty("--tosi-table-grid-row-width",l),this.style.setProperty("--grid-columns",i),this.style.setProperty("--grid-row-width",l)}sortByColumn=(i,l="auto")=>{for(let s of this.columns.filter((t)=>O(t.sort)!==!1))if(O(s)===i){if(l==="auto")s.sort=s.sort==="ascending"?"descending":"ascending";else s.sort=l;this.queueRender()}else delete s.sort};popColumnMenu=(i,l)=>{let{sortByColumn:s}=this,t=this.columns.filter((e)=>e.visible===!1),r=this.queueRender.bind(this),o=[];if(!this.nosort&&l.sort!==!1)o.push({caption:this.localized?`${q("Sort")} ${q("Ascending")}`:"Sort Ascending",icon:"sortAscending",action(){s(l)}},{caption:this.localized?`${q("Sort")} ${q("Descending")}`:"Sort Descending",icon:"sortDescending",action(){s(l,"descending")}});if(!this.nohide){if(o.length)o.push(null);o.push({caption:this.localized?`${q("Hide")} ${q("Column")}`:"Hide Column",icon:"eyeOff",enabled:()=>l.visible!==!0,action(){l.visible=!1,r()}},{caption:this.localized?`${q("Show")} ${q("Column")}`:"Show Column",icon:"eye",enabled:()=>t.length>0,menuItems:t.map((e)=>{return{caption:e.name||e.prop,action(){delete e.visible,r()}}})})}K({target:i,localized:this.localized,menuItems:o})};get captionSpan(){return this.localized?k1:zi}headerCell=(i)=>{let{popColumnMenu:l}=this,s="none",t;switch(i.sort){case"ascending":t=v.sortAscending(),s="descending";break;case!1:break;default:break;case"descending":s="ascending",t=v.sortDescending()}let r=!(this.nosort&&this.nohide)?c3({class:"menu-trigger",onClick(o){l(o.target,i),o.stopPropagation()}},t||v.moreVertical()):{};return i.headerCell!==void 0?i.headerCell(i):zi({class:"th",role:"columnheader",ariaSort:s,style:{...this.cellStyle,justifyContent:i.align||"left"}},this.captionSpan({style:{flex:"1"}},typeof i.name==="string"?i.name:i.prop),r)};dataCell=(i)=>{if(i.dataCell!==void 0)return i.dataCell(i);return zi({class:"td",role:"cell",style:{...this.cellStyle,justifyContent:i.align||"left"},bindText:`^.${i.prop}`})};get visibleRows(){return O(this.rowData.visible)}get visibleSelectedRows(){return this.visibleRows.filter((i)=>i[this.selectedKey])}get selectedRows(){return this.array.filter((i)=>i[this.selectedKey])}rowTemplate(i){return d3(o2({class:"tr",role:"row",bind:{value:"^",binding:{toDOM:this.selectBinding}}},...i.map(this.dataCell)))}draggedColumn;dropColumn=(i)=>{let l=i.target.closest(".drag-over"),s=Array.from(l.parentElement.children).indexOf(l),t=this.visibleColumns[s],r=this.columns.indexOf(this.draggedColumn),o=this.columns.indexOf(t);this.columns.splice(r,1),this.columns.splice(o,0,this.draggedColumn),console.log({event:i,target:l,targetIndex:s,draggedIndex:r,droppedIndex:o}),this.queueRender(),i.preventDefault(),i.stopPropagation()};render(){super.render(),this.rowData.pinnedTop=this.pinnedTop>0?this._array.slice(0,this.pinnedTop):[],this.rowData.pinnedBottom=this.pinnedBottom>0?this._array.slice(this._array.length-this.pinnedBottom):[],this.rowData.visible=this.filter(this._array.slice(this.pinnedTop,Math.min(this.maxVisibleRows,this._array.length-this.pinnedTop-this.pinnedBottom)));let{sort:i}=this;if(i)this.rowData.visible.sort(i);this.textContent="",this.style.display="flex",this.style.flexDirection="column";let{visibleColumns:l}=this;if(this.style.setProperty("--tosi-table-row-height",`${this.rowHeight}px`),this.style.setProperty("--row-height",`${this.rowHeight}px`),this.setColumnWidths(),!this.noreorder)Bi();let s=this.instanceId+"-column-header",t=l.map((r)=>{let o=this.headerCell(r);if(!this.noreorder&&o.children[0]){let e=o.children[0];e.setAttribute("draggable","true"),e.style.pointerEvents="all",e.dataset.drag=s,o.dataset.drop=s,e.addEventListener("dragstart",()=>{this.draggedColumn=r}),o.addEventListener("drop",this.dropColumn)}return o});if(this.append(o2({class:"thead",role:"rowgroup",style:{touchAction:"none"}},o2({class:"tr",role:"row"},...t))),this.pinnedTop>0)this.append(o2({part:"pinnedTopRows",class:"tbody",role:"rowgroup",style:{flex:"0 0 auto",overflow:"hidden",height:`${this.rowHeight*this.pinnedTop}px`},bindList:{value:this.rowData.pinnedTop,virtual:this.virtual}},this.rowTemplate(l)));if(this.append(o2({part:"visibleRows",class:"tbody",role:"rowgroup",style:{content:" ",minHeight:"100px",flex:"1 1 100px",overflow:"hidden auto"},bindList:{value:this.rowData.visible,virtual:this.virtual}},this.rowTemplate(l))),this.pinnedBottom>0)this.append(o2({part:"pinnedBottomRows",class:"tbody",role:"rowgroup",style:{flex:"0 0 auto",overflow:"hidden",height:`${this.rowHeight*this.pinnedBottom}px`},bindList:{value:this.rowData.pinnedBottom,virtual:this.virtual}},this.rowTemplate(l)))}}var F4=fi.elementCreator({tag:"tosi-table",styleSpec:{":host":{"--tosi-table-row-height":"32px","--tosi-table-touch-size":"var(--tosi-touch-size, 44px)","--tosi-table-dragged-header-bg":"#0004","--tosi-table-dragged-header-color":"#fff","--tosi-table-drop-header-bg":"#fff4","--row-height":"var(--tosi-table-row-height)","--touch-size":"var(--tosi-table-touch-size)","--dragged-header-bg":"var(--tosi-table-dragged-header-bg)","--dragged-header-color":"var(--tosi-table-dragged-header-color)","--drop-header-bg":"var(--tosi-table-drop-header-bg)",overflow:"auto hidden"},":host .thead, :host .tbody":{width:y.tosiTableGridRowWidth},":host .tr":{display:"grid",gridTemplateColumns:y.tosiTableGridColumns,height:y.tosiTableRowHeight,lineHeight:y.tosiTableRowHeight},":host .td, :host .th":{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",display:"flex",alignItems:"center"},":host .th .menu-trigger":{color:"currentColor",background:"none",padding:0,lineHeight:y.tosiTableTouchSize,height:y.tosiTableTouchSize,width:y.tosiTableTouchSize},':host [draggable="true"]':{cursor:"ew-resize"},':host [draggable="true"]:active':{background:y.tosiTableDraggedHeaderBg,color:y.tosiTableDraggedHeaderColor},":host .drag-over":{background:y.tosiTableDropHeaderBg}}}),p3=Q(F4,"xinTable is deprecated. Use dataTable instead.");var{dialog:g3,button:Mi,header:C3,footer:v3,xinSlot:bi,h3:ui,p:Ai,label:k3,input:n3,div:w3}=C;class Pi extends w{static async alert(i,l="Alert"){return new Promise((s)=>{let t=r0({removeOnClose:!0,closeOnBackgroundClick:!0,dialogWillClose(){s()}},ui({slot:"header"},l),i.includes(`
15
- `)?C.pre({style:{whiteSpace:"pre-wrap",margin:0}},i):Ai(i));document.body.append(t),t.showModal()})}static async confirm(i,l="Confirm"){return new Promise((s)=>{let t=r0({removeOnClose:!0,dialogWillClose(r){s(r==="confirm")}},ui({slot:"header"},l),Ai(i),Mi({slot:"footer",onClick(){t.close()}},"Cancel"));document.body.append(t),t.showModal()})}static async prompt(i,l="Prompt",s=""){return new Promise((t)=>{let r=n3({value:s}),o=r0({removeOnClose:!0,dialogWillClose(e){t(e==="confirm"?r.value:null)},initialFocus(){r.focus()}},ui({slot:"header"},l),Ai(k3({style:{display:"flex",flexDirection:"column",alignItems:"stretch",gap:5}},w3(i),r)),Mi({slot:"footer",onClick(){o.close()}},"Cancel"));document.body.append(o),o.showModal()})}static initAttributes={removeOnClose:!1,closeOnBackgroundClick:!1};constructor(){super();i2(this,"click",()=>{if(this.closeOnBackgroundClick)this.close()})}dialogWillClose=(i="cancel")=>{console.log("dialog will close with",i)};initialFocus(){this.parts.ok.focus()}#i=(i)=>{};showModal=()=>{return this.style.zIndex=String(K1()),new Promise((i)=>{this.#i=i,this.parts.dialog.showModal(),requestAnimationFrame(()=>{this.initialFocus()})})};close=(i="cancel")=>{if(this.dialogWillClose(i),this.#i(i),this.parts.dialog.close(),this.removeOnClose)this.remove()};ok=()=>{this.close("confirm")};content=()=>g3({part:"dialog"},C3(bi({name:"header"})),bi(),v3(bi({name:"footer"}),Mi({part:"ok",onClick:this.ok},"OK")))}var r0=Pi.elementCreator({tag:"tosi-dialog",styleSpec:{":host > dialog::backdrop":{backdropFilter:"blur(8px)"},":host > dialog:not([open])":{display:"none"},":host > dialog[open]":{minWidth:300,border:0,borderRadius:10,overflow:"hidden",maxHeight:"calc(100% - 20px)",padding:0,display:"flex",flexDirection:"column",gap:5,_dialogShadow:p.menuShadow("0 5px 10px #0004"),_dialogBackground:p.background("#fafafa"),_dialogColor:p.textColor("#222"),boxShadow:y.dialogShadow,background:y.dialogBackground,color:y.dialogColor},":host > dialog > *":{padding:"0 20px"},":host > dialog > header":{display:"flex",justifyContent:"center",gap:10},":host > dialog > footer":{display:"flex",justifyContent:"flex-end",gap:10,paddingBottom:20}}});function Fi(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var X1=Fi();function $4(i){X1=i}var H2={exec:()=>null};function F(i,l=""){let s=typeof i=="string"?i:i.source,t={replace:(r,o)=>{let e=typeof o=="string"?o:o.source;return e=e.replace(m.caret,"$1"),s=s.replace(r,e),t},getRegex:()=>new RegExp(s,l)};return t}var B3=(()=>{try{return!!new RegExp("(?<=1)(?<!1)")}catch{return!1}})(),m={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ xX]\] +/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:(i)=>new RegExp(`^( {0,3}${i})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:(i)=>new RegExp(`^ {0,${Math.min(3,i-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:(i)=>new RegExp(`^ {0,${Math.min(3,i-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:(i)=>new RegExp(`^ {0,${Math.min(3,i-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:(i)=>new RegExp(`^ {0,${Math.min(3,i-1)}}#`),htmlBeginRegex:(i)=>new RegExp(`^ {0,${Math.min(3,i-1)}}<(?:[a-z].*>|!--)`,"i")},z3=/^(?:[ \t]*(?:\n|$))+/,f3=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,M3=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,F2=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,b3=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,ji=/(?:[*+-]|\d{1,9}[.)])/,J4=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,G4=F(J4).replace(/bull/g,ji).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),u3=F(J4).replace(/bull/g,ji).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),_i=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,A3=/^[^\n]+/,Vi=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,P3=F(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",Vi).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),H3=F(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,ji).getRegex(),x0="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",qi=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,F3=F("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$))","i").replace("comment",qi).replace("tag",x0).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Q4=F(_i).replace("hr",F2).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",x0).getRegex(),j3=F(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",Q4).getRegex(),Oi={blockquote:j3,code:f3,def:P3,fences:M3,heading:b3,hr:F2,html:F3,lheading:G4,list:H3,newline:z3,paragraph:Q4,table:H2,text:A3},j4=F("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",F2).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3}\t)[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",x0).getRegex(),_3={...Oi,lheading:u3,table:j4,paragraph:F(_i).replace("hr",F2).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",j4).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",x0).getRegex()},V3={...Oi,html:F(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",qi).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:H2,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:F(_i).replace("hr",F2).replace("heading",` *#{1,6} *[^
16
- ]`).replace("lheading",G4).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},q3=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,O3=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,Z4=/^( {2,}|\\)\n(?!\s*$)/,U3=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,y0=/[\p{P}\p{S}]/u,Ui=/[\s\p{P}\p{S}]/u,K4=/[^\s\p{P}\p{S}]/u,$3=F(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,Ui).getRegex(),m4=/(?!~)[\p{P}\p{S}]/u,J3=/(?!~)[\s\p{P}\p{S}]/u,G3=/(?:[^\s\p{P}\p{S}]|~)/u,Q3=F(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",B3?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),N4=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,Z3=F(N4,"u").replace(/punct/g,y0).getRegex(),K3=F(N4,"u").replace(/punct/g,m4).getRegex(),X4="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",m3=F(X4,"gu").replace(/notPunctSpace/g,K4).replace(/punctSpace/g,Ui).replace(/punct/g,y0).getRegex(),N3=F(X4,"gu").replace(/notPunctSpace/g,G3).replace(/punctSpace/g,J3).replace(/punct/g,m4).getRegex(),X3=F("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,K4).replace(/punctSpace/g,Ui).replace(/punct/g,y0).getRegex(),Y3=F(/\\(punct)/,"gu").replace(/punct/g,y0).getRegex(),W3=F(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),R3=F(qi).replace("(?:-->|$)","-->").getRegex(),L3=F("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",R3).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),e0=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/,I3=F(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",e0).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Y4=F(/^!?\[(label)\]\[(ref)\]/).replace("label",e0).replace("ref",Vi).getRegex(),W4=F(/^!?\[(ref)\](?:\[\])?/).replace("ref",Vi).getRegex(),D3=F("reflink|nolink(?!\\()","g").replace("reflink",Y4).replace("nolink",W4).getRegex(),_4=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,$i={_backpedal:H2,anyPunctuation:Y3,autolink:W3,blockSkip:Q3,br:Z4,code:O3,del:H2,emStrongLDelim:Z3,emStrongRDelimAst:m3,emStrongRDelimUnd:X3,escape:q3,link:I3,nolink:W4,punctuation:$3,reflink:Y4,reflinkSearch:D3,tag:L3,text:U3,url:H2},T3={...$i,link:F(/^!?\[(label)\]\((.*?)\)/).replace("label",e0).getRegex(),reflink:F(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",e0).getRegex()},Hi={...$i,emStrongRDelimAst:N3,emStrongLDelim:K3,url:F(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",_4).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:F(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",_4).getRegex()},S3={...Hi,br:F(Z4).replace("{2,}","*").getRegex(),text:F(Hi.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},o0={normal:Oi,gfm:_3,pedantic:V3},u2={normal:$i,gfm:Hi,breaks:S3,pedantic:T3},E3={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},V4=(i)=>E3[i];function p1(i,l){if(l){if(m.escapeTest.test(i))return i.replace(m.escapeReplace,V4)}else if(m.escapeTestNoEncode.test(i))return i.replace(m.escapeReplaceNoEncode,V4);return i}function q4(i){try{i=encodeURI(i).replace(m.percentDecode,"%")}catch{return null}return i}function O4(i,l){let s=i.replace(m.findPipe,(o,e,h)=>{let a=!1,x=e;for(;--x>=0&&h[x]==="\\";)a=!a;return a?"|":" |"}),t=s.split(m.splitPipe),r=0;if(t[0].trim()||t.shift(),t.length>0&&!t.at(-1)?.trim()&&t.pop(),l)if(t.length>l)t.splice(l);else for(;t.length<l;)t.push("");for(;r<t.length;r++)t[r]=t[r].trim().replace(m.slashPipe,"|");return t}function A2(i,l,s){let t=i.length;if(t===0)return"";let r=0;for(;r<t;){let o=i.charAt(t-r-1);if(o===l&&!s)r++;else if(o!==l&&s)r++;else break}return i.slice(0,t-r)}function i9(i,l){if(i.indexOf(l[1])===-1)return-1;let s=0;for(let t=0;t<i.length;t++)if(i[t]==="\\")t++;else if(i[t]===l[0])s++;else if(i[t]===l[1]&&(s--,s<0))return t;return s>0?-2:-1}function U4(i,l,s,t,r){let o=l.href,e=l.title||null,h=i[1].replace(r.other.outputLinkReplace,"$1");t.state.inLink=!0;let a={type:i[0].charAt(0)==="!"?"image":"link",raw:s,href:o,title:e,text:h,tokens:t.inlineTokens(h)};return t.state.inLink=!1,a}function l9(i,l,s){let t=i.match(s.other.indentCodeCompensation);if(t===null)return l;let r=t[1];return l.split(`
12
+ `)},Cs=(i)=>{f2("initVars","initVars is deprecated. Just use _ and __ prefixes instead.");let l={};for(let s of Object.keys(i)){let t=i[s],r=a1(s);l[`--${r}`]=typeof t==="number"&&t!==0?String(t)+"px":t}return l},L0=(i)=>{let l={};for(let s of Object.keys(i)){let t=i[s];if(t instanceof z)l[s]=t.inverseLuminance;else if(typeof t==="string"&&t.match(/^(#[0-9a-fA-F]{3}|rgba?\(|hsla?\()/))l[s]=z.fromCss(t).inverseLuminance}return l},p=new Proxy({},{get(i,l){if(i[l]===void 0){let s="--"+a1(l);i[l]=(t)=>`var(${s}, ${t})`}return i[l]}}),y=new Proxy({},{get(i,l){if(l==="default")return p;if(i[l]==null){l=a1(l);let[,s,,t,r,o]=l.match(/^([-\w]*?)((_)?(\d+)(\w?))?$/)||["",l],e=`--${s}`;if(r!=null){let h=t==null?Number(r)/100:-Number(r)/100;switch(o){case"b":case"s":case"h":case"o":{let a=`--${l}`;z.registerComputedColor(a,e,h,o),i[l]=`var(${a})`}break;case"":i[l]=`calc(var(${e}) * ${h})`;break;default:throw console.error(o),Error(`Unrecognized method ${o} for css variable ${e}`)}}else i[l]=`var(${e})`}return i[l]}});function Sl(){let i=(l)=>typeof matchMedia<"u"&&matchMedia(l).matches;return{colorScheme:i("(prefers-color-scheme: dark)")?"dark":"light",contrast:i("(prefers-contrast: more)")?"more":i("(prefers-contrast: less)")?"less":i("(prefers-contrast: custom)")?"custom":"no-preference",reducedMotion:i("(prefers-reduced-motion: reduce)"),reducedTransparency:i("(prefers-reduced-transparency: reduce)"),forcedColors:i("(forced-colors: active)")}}function vs(i){if(typeof matchMedia>"u")return()=>{};let l=["(prefers-color-scheme: dark)","(prefers-contrast: more)","(prefers-contrast: less)","(prefers-contrast: custom)","(prefers-reduced-motion: reduce)","(prefers-reduced-transparency: reduce)","(forced-colors: active)"],s=()=>i(Sl()),t=l.map((r)=>matchMedia(r));for(let r of t)r.addEventListener("change",s);return()=>{for(let r of t)r.removeEventListener("change",s)}}var ks="http://www.w3.org/1998/Math/MathML",ns="http://www.w3.org/2000/svg",Z2={},Tl=(i,l,s)=>{let t=Il(a1(l),s);if(t.prop.startsWith("--"))i.style.setProperty(t.prop,t.value);else i.style[l]=t.value},ws=(i)=>{return{toDOM(l,s){Tl(l,i,s)}}},El=(i,l,s)=>{if(l==="style")if(typeof s==="object")for(let t of Object.keys(s))if(c1(s[t]))b1(i,s[t],ws(t));else Tl(i,t,s[t]);else i.setAttribute("style",s);else{let t=a1(l),r=i.constructor.observedAttributes;if(r?.includes(l)||r?.includes(t))if(typeof s==="boolean")s?i.setAttribute(t,""):i.removeAttribute(t);else i.setAttribute(t,s);else if(i[l]!==void 0){let{MathMLElement:o}=globalThis;if(i instanceof SVGElement||o!==void 0&&i instanceof o)i.setAttribute(l,s);else i[l]=s}else if(t==="class")s.split(" ").forEach((o)=>{i.classList.add(o)});else if(i[t]!==void 0)i[t]=s;else if(typeof s==="boolean")s?i.setAttribute(t,""):i.removeAttribute(t);else i.setAttribute(t,s)}},_0={},Bs=(i)=>{if(!_0[i])_0[i]={toDOM(l,s){El(l,i,s)}};return _0[i]},zs=(i,l,s)=>{if(l==="apply")s(i);else if(l.match(/^on[A-Z]/)!=null){let t=l.substring(2).toLowerCase();s2(i,t,s)}else if(l==="bind")if((typeof s.binding==="string"?v1[s.binding]:s.binding)!==void 0&&s.value!==void 0)b1(i,s.value,s.binding instanceof Function?{toDOM:s.binding}:s.binding);else throw Error("bad binding");else if(l.match(/^bind[A-Z]/)!=null){let t=l.substring(4,5).toLowerCase()+l.substring(5),r=v1[t];if(r!==void 0)b1(i,s,r);else throw Error(`${l} is not allowed, bindings.${t} is not defined`)}else if(c1(s))b1(i,s,Bs(l));else El(i,l,s)},I0=(i,...l)=>{if(Z2[i]===void 0){let[r,o]=i.split("|");if(o===void 0)Z2[i]=globalThis.document.createElement(r);else Z2[i]=globalThis.document.createElementNS(o,r)}let s=Z2[i].cloneNode(),t={};for(let r of l)if(r instanceof Element||r instanceof DocumentFragment||typeof r==="string"||typeof r==="number")if(s instanceof HTMLTemplateElement)s.content.append(r);else s.append(r);else if(c1(r))s.append(C.span({bindText:r}));else Object.assign(t,r);for(let r of Object.keys(t)){let o=t[r];zs(s,r,o)}return s},D0=(...i)=>{let l=globalThis.document.createDocumentFragment();for(let s of i)l.append(s);return l},C=new Proxy({fragment:D0},{get(i,l){if(l=l.replace(/[A-Z]/g,(s)=>`-${s.toLocaleLowerCase()}`),i[l]===void 0)i[l]=(...s)=>I0(l,...s);return i[l]},set(){throw Error("You may not add new properties to elements")}}),m2=new Proxy({fragment:D0},{get(i,l){if(i[l]===void 0)i[l]=(...s)=>I0(`${l}|${ns}`,...s);return i[l]},set(){throw Error("You may not add new properties to elements")}}),i4=new Proxy({fragment:D0},{get(i,l){if(i[l]===void 0)i[l]=(...s)=>I0(`${l}|${ks}`,...s);return i[l]},set(){throw Error("You may not add new properties to elements")}}),fs=["sort","splice","copyWithin","fill","pop","push","reverse","shift","unshift"],Ms=!0,bs=/^\.?([^.[\](),])+(\.[^.[\](),]+|\[\d+\]|\[[^=[\](),]*=[^[\]()]+\])*$/,us=(i)=>bs.test(i),B1=(i="",l="")=>{if(i==="")return l;else if(l.match(/^\d+$/)!==null||l.includes("="))return`${i}[${l}]`;else return`${i}.${l}`},l4={};function V0(i,l){if(i!==null&&(typeof i==="object"||typeof i==="function"))return i;return new Proxy(l4,M1(l,!0))}var g2=()=>new Proxy({},M1("^",!0)),q0=(i)=>{let l=i(g2())?.path;if(!l?.startsWith("^."))throw Error("selector must return a property of the item");return l.substring(2)},O0=(i,l,s)=>{for(let t=0;t<i.length;t++)if(`${y1(i[t],l)}`===`${s}`)return t;return-1},Hl=(i,l)=>({listFind(s,t){if(s instanceof Element){let e=s;while(e&&!e[v2]&&e.parentElement)e=e.parentElement;let h=e?.[v2];if(h==null)return;let a=l.indexOf(h);return a!==-1?h1[i][a]:void 0}let r=q0(s),o=O0(l,r,t);return o!==-1?h1[i][o]:void 0},listUpdate(s,t){let r=q0(s),o=y1(t,r),e=O0(l,r,o);if(e!==-1){let h=h1[i][e];for(let a of Object.keys(t))h[a]=t[a];return h}return h1[i].push(t),h1[i][l.length-1]},listRemove(s,t){let r=q0(s),o=O0(l,r,t);if(o===-1)return!1;return h1[i].splice(o,1),!0}}),Fl=!1;function U1(){if(!Fl)console.warn("xinValue, tosiValue, xinPath, tosiPath, etc. are deprecated. Use value, path, observe, bind, on, binding, listBinding instead."),Fl=!0}var jl=(i)=>{return i===l4},M1=(i,l)=>({get(s,t){if(jl(s)){let h=()=>y1(w2,i);switch(t){case"path":return i;case"value":return h();case"valueOf":case"toJSON":return()=>h();case Symbol.toPrimitive:return(a)=>{let x=h();if(a==="number")return Number(x);if(a==="string")return String(x);return x};case"toString":return()=>String(h());case"touch":return()=>f1(i);case"observe":return(a)=>{let x=E1(i,a);return()=>$1(x)};case"on":return(a,x)=>Q2()(a,x,h());case"bind":return(a,x,c)=>{G2()(a,i,x,c)};case"binding":return(a)=>({bind:{value:i,binding:a}});case"listBinding":return(a=({span:c})=>c({bindText:"^"}),x={})=>[{bindList:{value:i,...x}},C.template(a(C,g2()))];case"listFind":case"listUpdate":case"listRemove":return Hl(i,s)[t];case G1:case"xinValue":case"tosiValue":return U1(),h();case x1:case"xinPath":case"tosiPath":return U1(),i;case nl:case"tosiObserve":return U1(),(a)=>{let x=E1(i,a);return()=>$1(x)};case Bl:case"tosiOn":return U1(),(a,x)=>Q2()(a,x,h());case wl:case"tosiBind":return U1(),(a,x,c)=>{G2()(a,i,x,c)};case"tosiBinding":return U1(),(a)=>({bind:{value:i,binding:a}});case"tosiListBinding":return U1(),(a=({span:c})=>c({bindText:"^"}),x={})=>[{bindList:{value:i,...x}},C.template(a(C,g2()))]}if(typeof t==="string"&&/^\d+$/.test(t)){let a=h();if(typeof a==="string")return a[parseInt(t,10)]}if(t==="length"){let a=h();if(typeof a==="string")return a.length}return}if(l&&!(t in s))switch(t){case"path":return i;case"value":return s.valueOf?s.valueOf():s;case"valueOf":case"toJSON":return()=>s.valueOf?s.valueOf():s;case"touch":return()=>f1(i);case"observe":return(h)=>{let a=E1(i,h);return()=>$1(a)};case"on":return(h,a)=>Q2()(h,a,U(s));case"bind":return(h,a,x)=>{G2()(h,i,a,x)};case"binding":return(h)=>({bind:{value:i,binding:h}});case"listBinding":return(h=({span:x})=>x({bindText:"^"}),a={})=>[{bindList:{value:i,...a}},C.template(h(C,g2()))];case"listFind":case"listUpdate":case"listRemove":return Hl(i,s)[t]}switch(t){case x1:case"xinPath":case"tosiPath":return i;case G1:case"xinValue":case"tosiValue":return s.valueOf?s.valueOf():s;case nl:case"xinObserve":case"tosiObserve":return(h)=>{let a=E1(i,h);return()=>$1(a)};case Bl:case"xinOn":case"tosiOn":return(h,a)=>Q2()(h,a,U(s));case wl:case"xinBind":case"tosiBind":return(h,a,x)=>{G2()(h,i,a,x)};case"tosiBinding":return(h)=>({bind:{value:i,binding:h}});case"tosiListBinding":return(h=({span:x})=>x({bindText:"^"}),a={})=>[{bindList:{value:i,...a}},C.template(h(C,g2()))]}if(typeof t==="symbol")return s[t];let r=Object.getOwnPropertyDescriptor(s,t);if(r&&!r.configurable&&!r.writable&&"value"in r)return r.value;let o=t,e=o.match(/^([^.[]+)\.(.+)$/)??o.match(/^([^\]]+)(\[.+)/)??o.match(/^(\[[^\]]+\])\.(.+)$/)??o.match(/^(\[[^\]]+\])\[(.+)$/);if(e!==null){let[,h,a]=e,x=B1(i,h),c=y1(s,h);return c!==null&&typeof c==="object"?new Proxy(c,M1(x,l))[a]:c}if(o.startsWith("[")&&o.endsWith("]"))o=o.substring(1,o.length-1);if(!Array.isArray(s)&&s[o]!==void 0||Array.isArray(s)&&o.includes("=")){let h;if(o.includes("=")){let[a,x]=o.split("=");h=s.find((c)=>`${y1(c,a)}`===x)}else h=s[o];if(h instanceof Object){let a=B1(i,o);return new Proxy(h instanceof Function?h.bind(s):h,M1(a,l))}else return l?V0(h,B1(i,o)):h}else if(Array.isArray(s)){let h=s[o];return typeof h==="function"?(...a)=>{let x=a.map((d)=>U(d)),c=h.apply(s,x);if(fs.includes(o))f1(i);if(c!=null&&typeof c==="object"){if(o==="find"||o==="findLast"||o==="at"){let d=s.indexOf(c);if(d!==-1)return new Proxy(c,M1(B1(i,String(d)),l))}}return c}:typeof h==="object"?new Proxy(h,M1(B1(i,o),l)):l?V0(h,B1(i,o)):h}else return l?V0(s[o],B1(i,o)):s[o]},set(s,t,r){r=U(r);let o=t===G1||t==="xinValue"||t==="tosiValue"||t==="value"&&(jl(s)||l)?i:B1(i,t);if(Ms&&!us(o))throw Error(`setting invalid path ${o}`);if(U(Z[o])!==r&&T5(w2,o,r))f1(o);return!0}}),S0=(i,l)=>{let s=typeof l==="function"?l:Z[l];if(typeof s!=="function")throw Error(`observe expects a function or path to a function, ${l} is neither`);return E1(i,s)},Z=new Proxy(w2,M1("",!1));E5(Z);var h1=new Proxy(w2,M1("",!0)),As=16,Ps=100;function _l(i,l){let s=Array.from(i.querySelectorAll(i2));if(i.matches(i2))s.unshift(i);for(let t of s){let r=Q1.get(t);for(let o of r){if(o.path.startsWith("^"))o.path=`${l}${o.path.substring(1)}`;if(o.binding.toDOM!=null)o.binding.toDOM(t,Z[o.path])}}}class s4{boundElement;listTop;listBottom;template;options;itemToElement;array=[];_filteredCache;_update;_previousSlice;static filterBoundObservers=new WeakMap;constructor(i,l,s={}){if(this.boundElement=i,this.itemToElement=new WeakMap,s.idPath!=null){let t=c1(l);if(t!=null)Q5(t,s.idPath)}if(i.children.length!==1)throw Error("ListBinding expects an element with exactly one child element");if(i.children[0]instanceof HTMLTemplateElement){let t=i.children[0];if(t.content.children.length!==1)throw Error("ListBinding expects a template with exactly one child element");this.template=n2(t.content.children[0])}else this.template=i.children[0],this.template.remove();if(this.options=s,this.listTop=document.createElement("div"),this.listBottom=document.createElement("div"),this.listTop.classList.add("virtual-list-padding"),this.listBottom.classList.add("virtual-list-padding"),this.boundElement.append(this.listTop),this.boundElement.append(this.listBottom),this.boundElement[K2]=this,s.virtual!=null)if(m0.observe(this.boundElement),this._update=B2(()=>{this.update(this.array,!0)},As),this.boundElement.addEventListener("resize",this._update),s.virtual.scrollContainer==="window")window.addEventListener("scroll",this._update),window.addEventListener("resize",this._update);else this.boundElement.addEventListener("scroll",this._update)}filteredArray(){if(this._filteredCache!=null)return this._filteredCache;let{hiddenProp:i,visibleProp:l}=this.options,s=this.array;if(i!==void 0)s=s.filter((t)=>t[i]!==!0);if(l!==void 0)s=s.filter((t)=>t[l]===!0);if(this.options.filter&&this.needle!==void 0)s=this.options.filter(s,this.needle);return this._filteredCache=s,s}visibleSlice(){let{virtual:i}=this.options,l=this.filteredArray(),s=0,t=l.length-1,r=0,o=0;if(i!=null&&this.boundElement instanceof HTMLElement){let e=this.boundElement.offsetWidth,h=i.scrollContainer==="window",a,x;if(h){a=window.innerHeight;let g=this.boundElement.getBoundingClientRect();x=Math.max(0,-g.top)}else a=this.boundElement.offsetHeight,x=this.boundElement.scrollTop;let c=i.width!=null?Math.max(1,Math.floor(e/i.width)):i.visibleColumns??1,d=Math.ceil(l.length/c);if(i.minHeight!=null){let g=i.minHeight,B=Math.ceil(a/g)+(i.rowChunkSize||1),k=c*B,M=d*g,A=Math.max(0,M-a),P=A>0?Math.min(1,Math.max(0,x/A)):0,b=Math.max(0,d-B+1),u=P*b,_=Math.floor(u);if(i.rowChunkSize)_-=_%i.rowChunkSize;return s=_*c,t=s+k-1,r=x,o=Math.max(0,M-x-a),{items:l,firstItem:s,lastItem:t,topBuffer:r,bottomBuffer:o,interpolation:{t:P,position:u,scrollTop:x,viewportHeight:a,totalScrollHeight:M,rowHeight:i.height}}}else{let g=Math.ceil(a/i.height)+(i.rowChunkSize||1),B=c*g,k=Math.floor(x/i.height);if(k>d-g+1)k=Math.max(0,d-g+1);if(i.rowChunkSize)k-=k%i.rowChunkSize;s=k*c,t=s+B-1,r=k*i.height,o=Math.max((d-g)*i.height-r,0)}}return{items:l,firstItem:s,lastItem:t,topBuffer:r,bottomBuffer:o}}needle;filter=B2((i)=>{if(this.needle!==i)this.needle=i,this.update(this.array)},Ps);update(i,l){if(i==null)i=[];if(this.array=i,!l)this._filteredCache=void 0;let{hiddenProp:s,visibleProp:t}=this.options,r=c1(i),o=this.visibleSlice();this.boundElement.classList.toggle("-xin-empty-list",o.items.length===0);let e=this._previousSlice,{firstItem:h,lastItem:a,topBuffer:x,bottomBuffer:c}=o,d=s===void 0&&t===void 0&&l===!0&&e!=null&&h===e.firstItem&&a===e.lastItem;if(d&&o.interpolation==null&&x===e.topBuffer&&c===e.bottomBuffer)return;if(d&&o.interpolation!=null){this._updateInterpolatedBuffers(o);return}this._previousSlice=o;let g=0,B=0,k=0;for(let b of Array.from(this.boundElement.children)){if(b===this.listTop||b===this.listBottom)continue;let u=b[v2];if(u==null)b.remove();else{let _=o.items.indexOf(u);if(_<h||_>a)b.remove(),this.itemToElement.delete(u),g++}}this.listTop.style.height=String(x)+"px",this.listBottom.style.height=String(c)+"px";let M=[],{idPath:A}=this.options;for(let b=h;b<=a;b++){let u=o.items[b];if(u===void 0)continue;let _=this.itemToElement.get(U(u));if(_==null){if(k++,_=n2(this.template),typeof u==="object")this.itemToElement.set(U(u),_),_[v2]=U(u);if(this.boundElement.insertBefore(_,this.listBottom),A!=null){let R=u[A],G=`${r}[${A}=${R}]`;_l(_,G)}else{let R=`${r}[${b}]`;_l(_,R)}}M.push(_)}let P=null;for(let b of M){if(b.previousElementSibling!==P)if(B++,P?.nextElementSibling!=null)this.boundElement.insertBefore(b,P.nextElementSibling);else this.boundElement.insertBefore(b,this.listBottom);P=b}if(o.interpolation!=null)this._updateInterpolatedBuffers(o);if(N2.perf)console.log(r,"updated",{removed:g,created:k,moved:B})}_updateInterpolatedBuffers(i){let{t:l,position:s,scrollTop:t,viewportHeight:r,totalScrollHeight:o,rowHeight:e}=i.interpolation,h=0;for(let d of Array.from(this.boundElement.children)){if(d===this.listTop||d===this.listBottom)continue;h+=d.offsetHeight||e}let a=t,x=t+r-h,c=Math.max(0,l*x+(1-l)*a-s%1*e);this.listTop.style.height=String(c)+"px",this.listBottom.style.height=String(Math.max(0,o-c-h))+"px"}}var R2=(i,l,s)=>{let t=i[K2];if(l&&t===void 0)t=new s4(i,l,s),i[K2]=t;return t},T0=(i)=>{let l;while(!(l=i[v2])&&i&&i.parentElement)i=i.parentElement;return l?{element:i,item:l}:void 0},K1=(i)=>{let l=T0(i);return l?l.item:void 0},Hs=(i)=>{let l=T0(i);if(!l)return console.error("deleteListItem failed, element is not part of a list instance",i),!1;let s=R2(l.element.parentElement);if(!s.options.idPath)return console.error("deleteListItem failed, list binding has no idPath",i.parentElement,s),!1;let t=s.array.indexOf(l.item);if(t>-1)return s.array.splice(t,1),!0;return!1},Fs={start:"start",middle:"center",end:"end",nearest:"nearest"},js=(i,l,s={})=>{let t=R2(i);if(t==null)return console.error("scrollListItemIntoView failed, element has no list binding",i),!1;let{position:r="middle"}=s,o=t.filteredArray(),e=U(l)??l,h=o.indexOf(e);if(h===-1)return console.error("scrollListItemIntoView failed, item not found in list",l),!1;let{virtual:a}=t.options;if(a!=null&&i instanceof HTMLElement){let x=a.width!=null?Math.max(1,Math.floor(i.offsetWidth/a.width)):a.visibleColumns??1,c=Math.floor(h/x),d=a.minHeight??a.height,g=Math.ceil(o.length/x),B=a.scrollContainer==="window",k=B?window.innerHeight:i.offsetHeight,M;if(a.minHeight!=null){let A=Math.ceil(k/d)+(a.rowChunkSize||1),P=g*d,b=Math.max(0,P-k),u=Math.max(1,g-A+1),_=c/u;switch(r){case"start":M=_*b;break;case"end":M=Math.max(0,(c-A+1)/u*b);break;case"nearest":{let R=B?Math.max(0,-i.getBoundingClientRect().top):i.scrollTop,G=b>0?R/b:0,L=Math.floor(G*u);if(c<L)M=_*b;else if(c>=L+A)M=Math.max(0,(c-A+1)/u*b);else return!0;break}default:{let R=c-Math.floor(A/2);M=Math.max(0,R)/u*b}}}else{let A=c*a.height;switch(r){case"start":M=A;break;case"end":M=A-k+a.height;break;case"nearest":{let P=B?Math.max(0,-i.getBoundingClientRect().top):i.scrollTop;if(A<P)M=A;else if(A+a.height>P+k)M=A-k+a.height;else return!0;break}default:M=A-(k-a.height)/2}}if(M=Math.max(0,M),B){let A=i.getBoundingClientRect().top+window.scrollY;window.scrollTo({top:A+M,behavior:"smooth"})}else i.scrollTo({top:M,behavior:"smooth"})}else{let x=t.itemToElement.get(e);if(x==null)return console.error("scrollListItemIntoView failed, no DOM element found for item",l),!1;x.scrollIntoView({block:Fs[r]??"center",behavior:"smooth"})}return!0},{document:z2,MutationObserver:Vl}=globalThis,E0=(i,l)=>{let s=Q1.get(i);if(s==null)return;for(let t of s){let{binding:r,options:o}=t,{path:e}=t,{toDOM:h}=r;if(h!=null){if(e.startsWith("^")){let a=K1(i);if(a!=null&&a[x1]!=null)e=t.path=`${a[x1]}${e.substring(1)}`;else throw console.error(`Cannot resolve relative binding ${e}`,i,"is not part of a list"),Error(`Cannot resolve relative binding ${e}`)}if(l==null||e.startsWith(l))h(i,R0()[e],o)}}};if(Vl!=null)new Vl((i)=>{i.forEach((l)=>{Array.from(l.addedNodes).forEach((s)=>{if(s instanceof Element)Array.from(s.querySelectorAll(i2)).forEach((t)=>E0(t))})})}).observe(z2.body,{subtree:!0,childList:!0});E1(()=>!0,(i)=>{let l=Array.from(z2.querySelectorAll(i2));for(let s of l)E0(s,i)});var ql=(i)=>{let l=i.target?.closest(i2);while(l!=null){let s=Q1.get(l);for(let t of s){let{binding:r,path:o}=t,{fromDOM:e}=r;if(e!=null){let h;try{h=e(l,t.options)}catch(a){throw console.error("Cannot get value from",l,"via",t),Error("Cannot obtain value fromDOM")}if(h!=null){let a=R0(),x=a[o];if(x==null)a[o]=h;else{let c=x[x1]!=null?x[G1]:x,d=h[x1]!=null?h[G1]:h;if(c!==d)a[o]=d}}}}l=l.parentElement.closest(i2)}};if(globalThis.document!=null)z2.body.addEventListener("change",ql,!0),z2.body.addEventListener("input",ql,!0);function b1(i,l,s,t){if(i instanceof DocumentFragment)throw Error("bind cannot bind to a DocumentFragment");let r;if(typeof l==="object"&&l[x1]===void 0&&t===void 0){let{value:h}=l;r=typeof h==="string"?h:h[x1],t=l,delete t.value}else r=typeof l==="string"?l:l[x1];if(r==null)throw Error("bind requires a path or object with xin Proxy");let{toDOM:o}=s;i.classList?.add($l);let e=Q1.get(i);if(e==null)e=[],Q1.set(i,e);if(e.push({path:r,binding:s,options:t}),o!=null&&!r.startsWith("^"))f1(r);if(t?.filter&&t?.needle)b1(i,t.needle,{toDOM(h,a){console.log({needle:a}),h[K2]?.filter(a)}});return i}var Ol=new Set,_s=(i)=>{let l=i?.target?.closest(kl),s=!1,t=new Proxy(i,{get(o,e){if(e==="stopPropagation")return()=>{i.stopPropagation(),s=!0};else{let h=o[e];return typeof h==="function"?h.bind(o):h}}}),r=new Set;while(!s&&l!=null){let o=k2.get(l)[i.type]||r;for(let e of o){if(typeof e==="function")e(t);else{let h=R0()[e];if(typeof h==="function")h(t);else throw Error(`no event handler found at path ${e}`)}if(s)continue}l=l.parentElement!=null?l.parentElement.closest(kl):null}};function s2(i,l,s){let t=k2.get(i);if(i.classList.add(Jl),t==null)t={},k2.set(i,t);if(!t[l])t[l]=new Set;if(t[l].add(s),!Ol.has(l))Ol.add(l),z2.body.addEventListener(l,_s,!0);return()=>{t[l].delete(s)}}is(b1,s2);function t4(i,l){if(!i.internals)return;let s={},t="";if(i.hasAttribute("required")&&l==="")s.valueMissing=!0,t="Please fill out this field.";let r=i.getAttribute("minlength");if(r&&l.length<parseInt(r,10))s.tooShort=!0,t=`Please use at least ${r} characters.`;let o=i.getAttribute("maxlength");if(o&&l.length>parseInt(o,10))s.tooLong=!0,t=`Please use no more than ${o} characters.`;let e=i.getAttribute("pattern");if(e&&l!=="")try{if(!new RegExp(`^(?:${e})$`).test(l))s.patternMismatch=!0,t="Please match the requested format."}catch{}if(Object.keys(s).length>0)i.internals.setValidity(s,t,i);else i.internals.setValidity({})}var Vs=0;function U0(){return`custom-elt${(Vs++).toString(36)}`}var Ul=0,$0=null;function qs(){if($0===null)$0=new MutationObserver((i)=>{let l=new Set;for(let s of i)if(s.type==="attributes"&&s.target instanceof w){let t=s.target,r=ml(s.attributeName);if(t._legacyTrackedAttrs?.has(r))l.add(t)}for(let s of l)s.queueRender(!1)});return $0}var C2={};function Os(i,l){let s=C2[i],t=l2(l).replace(/:host\(([^)]+)\)/g,`${i}$1`).replace(/:host\b/g,i);C2[i]=s?s+`
13
+ `+t:t}function Us(i){if(C2[i])document.head.append(C.style({id:i+"-component"},C2[i]));delete C2[i]}class w extends HTMLElement{static elements=C;static _elementCreator;static initAttributes;static formAssociated;internals;get validity(){return this.internals?.validity}get validationMessage(){return this.internals?.validationMessage??""}get willValidate(){return this.internals?.willValidate??!1}checkValidity(){return this.internals?.checkValidity()??!0}reportValidity(){return this.internals?.reportValidity()??!0}setCustomValidity(i){if(this.internals)if(i)this.internals.setValidity({customError:!0},i);else this.internals.setValidity({})}setValidity(i,l,s){this.internals?.setValidity(i,l,s)}setFormValue(i,l){this.internals?.setFormValue(i,l)}static get observedAttributes(){let i=this.initAttributes;if(i)return["hidden",...Object.keys(i).map(a1)];return["hidden"]}instanceId;styleNode;static styleSpec;static styleNode;content=C.slot();isSlotted;static _tagName=null;static get tagName(){return this._tagName}_legacyTrackedAttrs;_attrValues;_valueChanged=!1;static StyleNode(i){return console.warn("StyleNode is deprecated, just assign static styleSpec: XinStyleSheet to the class directly"),C.style(l2(i))}static elementCreator(i={}){let l=this;if(l._elementCreator==null){let{tag:s,styleSpec:t}=i,r=i!=null?s:null;if(r==null)if(typeof l.name==="string"&&l.name!==""){if(r=a1(l.name),r.startsWith("-"))r=r.slice(1)}else r=U0();if(customElements.get(r)!=null)console.warn(`${r} is already defined`);if(r.match(/\w+(-\w+)+/)==null)console.warn(`${r} is not a legal tag for a custom-element`),r=U0();while(customElements.get(r)!==void 0)r=U0();if(l._tagName=r,t!==void 0)Os(r,t);window.customElements.define(r,this,i),l._elementCreator=C[r]}return l._elementCreator}initAttributes(...i){if(f2("initAttributes","initAttributes() is deprecated. Use static initAttributes = { ... } instead."),!this._legacyTrackedAttrs)this._legacyTrackedAttrs=new Set;for(let t of i)this._legacyTrackedAttrs.add(t);qs().observe(this,{attributes:!0});let l={},s={};i.forEach((t)=>{l[t]=J1(this[t]);let r=a1(t);Object.defineProperty(this,t,{enumerable:!1,get(){if(typeof l[t]==="boolean")return this.hasAttribute(r);else if(this.hasAttribute(r))return typeof l[t]==="number"?parseFloat(this.getAttribute(r)):this.getAttribute(r);else if(s[t]!==void 0)return s[t];else return l[t]},set(o){if(typeof l[t]==="boolean"){if(o!==this[t]){if(o)this.setAttribute(r,"");else this.removeAttribute(r);this.queueRender()}}else if(typeof l[t]==="number"){if(o!==parseFloat(this[t]))this.setAttribute(r,o),this.queueRender()}else if(typeof o==="object"||`${o}`!==`${this[t]}`){if(o===null||o===void 0||typeof o==="object")this.removeAttribute(r);else this.setAttribute(r,o);this.queueRender(),s[t]=o}}})})}initValue(){let i=Object.getOwnPropertyDescriptor(this,"value");if(i===void 0||i.get!==void 0||i.set!==void 0)return;let l=this.hasAttribute("value")?this.getAttribute("value"):J1(this.value);delete this.value,Object.defineProperty(this,"value",{enumerable:!1,get(){return l},set(s){if(l!==s)l=s,this._valueChanged=!0,this.queueRender(!0)}})}_parts;get parts(){let i=this.shadowRoot!=null?this.shadowRoot:this;if(this._parts==null)this._parts=new Proxy({},{get(l,s){if(l[s]===void 0){let t=i.querySelector(`[part="${s}"]`);if(t==null)t=i.querySelector(s);if(t==null)throw Error(`elementRef "${s}" does not exist!`);t.removeAttribute("data-ref"),l[s]=t}return l[s]}});return this._parts}attributeChangedCallback(i,l,s){let t=ml(i);if(!this._legacyTrackedAttrs?.has(t))this.queueRender(!1)}constructor(){super();if(Ul+=1,this.constructor.formAssociated&&typeof this.attachInternals==="function"&&!this.internals)this.internals=this.attachInternals();let i=this.constructor.initAttributes;if(i)this._setupAttributeAccessors(i);this.instanceId=`${this.tagName.toLocaleLowerCase()}-${Ul}`,this._value=J1(this.defaultValue)}_setupAttributeAccessors(i){if(!this._attrValues)this._attrValues=new Map;for(let l of Object.keys(i)){let s=a1(l),t=i[l];if(l==="value"){console.warn(`${this.tagName}: 'value' cannot be an attribute. Use the Component value property instead.`);continue}if(typeof t==="object"&&t!==null){console.warn(`${this.tagName}: initAttributes.${l} is an object. Use a regular property instead.`);continue}let r=this,o=!1;while(r){let e=Object.getOwnPropertyDescriptor(r,l);if(e){if(!e.configurable||e.get||e.set){o=!0;break}break}r=Object.getPrototypeOf(r)}if(o)continue;Object.defineProperty(this,l,{enumerable:!1,get:()=>{if(typeof t==="boolean")return this.hasAttribute(s);else if(this.hasAttribute(s))return typeof t==="number"?parseFloat(this.getAttribute(s)):this.getAttribute(s);else if(this._attrValues.has(l))return this._attrValues.get(l);else return t},set:(e)=>{if(typeof t==="boolean"){if(e!==this[l]){if(e)this.setAttribute(s,"");else this.removeAttribute(s);this.queueRender()}}else if(typeof t==="number"){if(e!==parseFloat(this[l]))this.setAttribute(s,e),this.queueRender()}else if(typeof e==="object"||`${e}`!==`${this[l]}`){if(e===null||e===void 0||typeof e==="object")this.removeAttribute(s);else this.setAttribute(s,e);this.queueRender(),this._attrValues.set(l,e)}}})}}connectedCallback(){if(Us(this.constructor.tagName),this.hydrate(),this.role!=null)this.setAttribute("role",this.role);if(this.constructor.formAssociated&&!this.hasAttribute("tabindex"))this.setAttribute("tabindex","0");if(this.onResize!==void 0){if(m0.observe(this),this._onResize==null)this._onResize=this.onResize.bind(this);this.addEventListener("resize",this._onResize)}if(this.value!=null&&this.getAttribute("value")!=null)this._value=this.getAttribute("value");if(this.internals&&this.value!==void 0)this.internals.setFormValue(this.value),this.validateValue();this.queueRender()}disconnectedCallback(){m0.unobserve(this)}formResetCallback(){if(this.value!==void 0)this.value=this.defaultValue??""}formDisabledCallback(i){if(i)this.setAttribute("disabled","");else this.removeAttribute("disabled")}formStateRestoreCallback(i){if(this.value!==void 0&&typeof i==="string")this.value=i}_changeQueued=!1;_renderQueued=!1;queueRender(i=!1){if(!this._hydrated)return;if(!this._changeQueued)this._changeQueued=i;if(!this._renderQueued)this._renderQueued=!0,requestAnimationFrame(()=>{if(this._changeQueued){if(Yl(this,"change"),this.internals&&this.value!==void 0)this.internals.setFormValue(this.value)}this._changeQueued=!1,this._renderQueued=!1,this.render()})}_hydrated=!1;hydrate(){if(!this._hydrated){this.initValue();let i=typeof this.content!=="function",l=typeof this.content==="function"?this.content(C):this.content,{styleSpec:s}=this.constructor,{styleNode:t}=this.constructor;if(s)t=this.constructor.styleNode=C.style(l2(s)),delete this.constructor.styleNode;if(this.styleNode)console.warn(this,"styleNode is deprecrated, use static styleNode or statc styleSpec instead"),t=this.styleNode;if(t){let r=this.attachShadow({mode:"open"});r.appendChild(t.cloneNode(!0)),Al(r,l,i)}else if(l!==null){let r=Array.from(this.childNodes);Al(this,l,i),this.isSlotted=this.querySelector("slot,xin-slot")!==void 0;let o=Array.from(this.querySelectorAll("slot"));if(o.length>0)o.forEach(ii.replaceSlot);if(r.length>0){let e={"":this};Array.from(this.querySelectorAll("xin-slot")).forEach((h)=>{e[h.name]=h}),r.forEach((h)=>{let a=e[""],x=h instanceof Element?e[h.slot]:a;(x!==void 0?x:a).append(h)})}}this._hydrated=!0}}render(){if(this._valueChanged&&this.internals&&this.value!==void 0)this.internals.setFormValue(this.value),this.validateValue();this._valueChanged=!1}validateValue(){if(!this.internals||this.value===void 0)return;let i=typeof this.value==="string"?this.value:String(this.value);t4(this,i)}}class ii extends w{static initAttributes={name:""};content=null;static replaceSlot(i){let l=document.createElement("xin-slot");if(i.name!=="")l.setAttribute("name",i.name);i.replaceWith(l)}}var Qt=ii.elementCreator({tag:"xin-slot"}),$s=(i=()=>!0)=>{let l=localStorage.getItem("xin-state");if(l!=null){let t=JSON.parse(l);for(let r of Object.keys(t).filter(i))if(Z[r]!==void 0)Object.assign(Z[r],t[r]);else Z[r]=t[r]}let s=W2(()=>{let t={},r=U(Z);for(let o of Object.keys(r).filter(i))t[o]=r[o];localStorage.setItem("xin-state",JSON.stringify(t)),console.log("xin state saved to localStorage")},500);S0(i,s)},r4="1.4.0";function E(i){return Object.assign(h1,i),h1}function li(i){return f2("boxedProxy","boxedProxy is deprecated, please use tosi() instead"),E(i)}function o4(i,l=!1){if(l)return f2("xinProxy-boxed","xinProxy(..., true) is deprecated; use tosi(...) instead"),li(i);return Object.keys(i).forEach((s)=>{Z[s]=i[s]}),Z}var Js={};async function si(i,l){let{type:s,styleSpec:t}=await l(i,{Color:z,Component:w,elements:C,svgElements:m2,mathML:i4,varDefault:p,vars:y,xin:Z,boxed:h1,xinProxy:o4,boxedProxy:li,tosi:E,makeComponent:si,bind:b1,on:s2,version:r4}),r={type:s,creator:s.elementCreator({tag:i,styleSpec:t})};return Js[i]=r,r}var J0={},Gs=(i)=>import(i);class L2 extends w{static initAttributes={tag:"anon-elt",src:"",property:"default"};loaded;blueprintLoaded=(i)=>{};async packaged(){let{tag:i,src:l,property:s}=this,t=`${i}.${s}:${l}`;if(!this.loaded){if(J0[t]===void 0)J0[t]=Gs(l).then((r)=>{let o=r[s];return si(i,o)});else console.log(`using cached ${i} with signature ${t}`);this.loaded=await J0[t],this.blueprintLoaded(this.loaded)}return this.loaded}}var Qs=L2.elementCreator({tag:"xin-blueprint",styleSpec:{":host":{display:"none"}}});class ti extends w{allLoaded=()=>{};constructor(){super()}async load(){let i=Array.from(this.querySelectorAll(L2.tagName)).filter((l)=>l.src).map((l)=>l.packaged());await Promise.all(i),this.allLoaded()}connectedCallback(){super.connectedCallback(),this.load()}}var Zs=ti.elementCreator({tag:"xin-loader",styleSpec:{":host":{display:"none"}}});var ri={};class t2 extends w{static set conditions(i){Object.assign(ri,i);for(let l of[...t2.instances])l.queueRender()}static initAttributes={condition:"",not:!1};static instances=new Set;connectedCallback(){super.connectedCallback(),t2.instances.add(this)}disconnectedCallback(){super.disconnectedCallback(),t2.instances.delete(this)}render(){if(this.condition!==""&&(this.not?ri[this.condition]!==!0:ri[this.condition]===!0))this.toggleAttribute("hidden",!1);else this.toggleAttribute("hidden",!0)}}var Ks=t2.elementCreator({tag:"xin-ab"});var I2={};function D(i,l){if(I2[i]===void 0){if(l!==void 0){let t=globalThis[l];I2[i]=Promise.resolve({[l]:t})}let s=C.script({src:i});document.head.append(s),I2[i]=new Promise((t)=>{s.onload=()=>t(globalThis)})}return I2[i]}var oi={};function D2(i){if(oi[i]===void 0){let l=C.link({rel:"stylesheet",type:"text/css",href:i});document.head.append(l),oi[i]=new Promise((s)=>{l.onload=s})}return oi[i]}var b2={earth:'<svg class="color" viewBox="0 0 48 48"><g><g><g><path style="fill:#a3d9ff;fill-rule:evenodd;stroke:#000000;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;stroke-width:2;" d="M7,13.46 C5.1,16.52,4,20.13,4,24 C4,31.81,8.47,38.57,15,41.87 C15,41.87,15,31,15,31 C15,31,9,29,9,29 C9,29,9,19,9,19 C9,19,7,15,7,15 C7,15,7,13.46,7,13.46 z"/><path style="fill:#a3d9ff;fill-rule:evenodd;stroke:#000000;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;stroke-width:2;" d="M18.4,4.79 C20.18,4.28,22.06,4,24,4 C27.57,4,30.92,4.93,33.82,6.57 C33.82,6.57,29,13,29,13 C29,13,31,19,31,19 C31,19,37,21,37,21 C37,21,39,29,39,29 C39,29,37.35,38.89,37.35,38.89 C33.81,42.07,29.13,44,24,44 C21.03,44,18.22,43.35,15.69,42.2 C15.69,42.2,27,29,27,29 C27,29,27,25,27,25 C27,25,21,23,21,23 C21,23,15,19,15,19 C15,19,11,19,11,19 C11,19,11,13,11,13 C11,13,13,11,13,11 C13,11,15,15,15,15 C15,15,17,15,17,15 C17,15,17,9,17,9 C17,9,18.4,4.79,18.4,4.79 z"/><path style="fill:#274e42;fill-rule:evenodd;stroke:#000000;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;stroke-width:2;" d="M18.4,4.79 C18.4,4.79,17,9,17,9 C17,9,17,15,17,15 C17,15,15,15,15,15 C15,15,13,11,13,11 C13,11,11,13,11,13 C11,13,11,19,11,19 C11,19,15,19,15,19 C15,19,21,23,21,23 C21,23,27,25,27,25 C27,25,27,29,27,29 C27,29,15.69,42.2,15.69,42.2 C15.46,42.09,15.23,41.98,15,41.87 C15,41.87,15,31,15,31 C15,31,9,29,9,29 C9,29,9,19,9,19 C9,19,7,15,7,15 C7,15,7,13.46,7,13.46 C9.57,9.32,13.62,6.19,18.4,4.79 z"/><path style="fill:#274e42;fill-rule:evenodd;stroke:#000000;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;stroke-width:2;" d="M33.82,6.57 C33.82,6.57,29,13,29,13 C29,13,31,19,31,19 C31,19,37,21,37,21 C37,21,39,29,39,29 C39,29,37.35,38.89,37.35,38.89 C41.43,35.23,44,29.91,44,24 C44,16.52,39.9,10,33.82,6.57 z"/></g></g></g></svg> ',blueprint:'<svg class="color" viewBox="0 0 24 24"><g><path style="fill:#9e9e9e;fill-rule:nonzero;stroke:#000000;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;stroke-width:1;" d="M10.5,14.5 C10.5,14.5,7.5,15.5,7.5,17.5 C7.5,19.5,10.5,19.5,10.5,19.5"/><path style="fill:#9e9e9e;fill-rule:nonzero;stroke:#000000;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;stroke-width:1;" d="M18.5,14.5 C18.5,14.5,21.5,15.5,21.5,17.5 C21.5,19.5,18.5,19.5,18.5,19.5"/><path style="fill:#ffffff;fill-rule:evenodd;stroke:#000000;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;stroke-width:1;" d="M7,5.09 C7,3.94,7.9,3,9,3 C9,3,20,3,20,3 C21.1,3,22,3.94,22,5.09 C22,5.09,22,12.41,22,12.41 C22,13.56,21.1,14.5,20,14.5 C20,14.5,9,14.5,9,14.5 C7.9,14.5,7,13.56,7,12.41 C7,12.41,7,5.09,7,5.09 z"/><path style="fill:#ffffff;fill-rule:nonzero;stroke:#000000;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;stroke-width:1;" d="M14.5,5.5 C14.5,5.5,14.5,11.5,14.5,11.5"/><path style="fill:#ffffff;fill-rule:nonzero;stroke:#000000;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;stroke-width:1;" d="M16.5,7.5 C16.5,7.5,16.5,8.5,16.5,8.5"/><path style="fill:#ffffff;fill-rule:nonzero;stroke:#000000;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;stroke-width:1;" d="M12.5,7.5 C12.5,7.5,12.5,8.5,12.5,8.5"/><g/><path style="fill:none;stroke:#000000;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;stroke-width:1;" d="M18.5,21.5 C18.5,21.5,17.5,20.5,17.5,20.5 C17.5,20.5,16.5,21.5,16.5,21.5"/><path style="fill:none;stroke:#000000;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;stroke-width:1;" d="M12.5,21.5 C12.5,21.5,11.5,20.5,11.5,20.5 C11.5,20.5,10.5,21.5,10.5,21.5"/><path style="fill:#e4e4e4;fill-rule:evenodd;stroke:#000000;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;stroke-width:1;" d="M10.5,14.5 C10.5,14.5,18.5,14.5,18.5,14.5 C18.5,14.5,18.5,19.5,18.5,19.5 C18.5,19.5,10.5,19.5,10.5,19.5 C10.5,19.5,10.5,14.5,10.5,14.5 z"/><g><g><path style="fill:#5e78ca;fill-rule:nonzero;stroke:#f2f2f2;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;stroke-width:1;" d="M14,16.5 C14,16.5,16,16.5,16,16.5 C16,16.5,14.53,19.5,14.53,19.5"/><path style="fill:#5e78ca;fill-rule:evenodd;stroke:none;" d="M3.59,8.5 C3.59,8.5,12.59,8.5,12.59,8.5 C12.59,8.5,14.53,19.5,14.53,19.5 C14.53,19.5,5.53,19.5,5.53,19.5 C5.53,19.5,3.59,8.5,3.59,8.5 z"/><path style="fill:#5e78ca;fill-rule:nonzero;stroke:#f2f2f2;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;stroke-width:1;" d="M12.59,8.5 C12.59,8.5,11.12,11.5,11.12,11.5 C11.12,11.5,2.12,11.5,2.12,11.5 C2.12,11.5,3.59,8.5,3.59,8.5"/><path style="fill:#5e78ca;fill-rule:nonzero;stroke:#f2f2f2;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;stroke-width:1;" d="M12.59,8.5 C12.59,8.5,14.53,19.5,14.53,19.5"/><path style="fill:#5e78ca;fill-rule:nonzero;stroke:#f2f2f2;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;stroke-width:1;" d="M4.12,11.5 C4.12,11.5,5.53,19.5,5.53,19.5"/></g><path style="fill:#9e9e9e;fill-rule:nonzero;stroke:#000000;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;stroke-width:1;" d="M9.24,12.5 C10.75,12.5,12.2,13.73,12.46,15.24 C12.46,15.24,12.46,15.24,12.46,15.24 C12.68,16.49,11.85,17.5,10.6,17.5 C10.6,17.5,10.55,17.5,10.55,17.5 C10.17,17.5,9.92,17.81,9.98,18.19 C9.98,18.19,9.98,18.19,9.98,18.19 C10.21,19.47,9.36,20.5,8.08,20.5 C8.08,20.5,6.39,20.5,6.39,20.5 C5.1,20.5,3.87,19.45,3.64,18.16 C3.64,18.16,3.12,15.21,3.12,15.21 C2.86,13.71,3.86,12.5,5.35,12.5 C5.35,12.5,9.24,12.5,9.24,12.5 z"/></g></g></svg> ',tosiXr:'<svg class="color" viewBox="0 0 24 24"><g><path style="fill:#9e9e9e;fill-rule:nonzero;stroke:#000000;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;stroke-width:1;" d="M8,14.25 C8,14.25,5,15.25,5,17.25 C5,19.25,8,19.25,8,19.25"/><path style="fill:#9e9e9e;fill-rule:nonzero;stroke:#000000;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;stroke-width:1;" d="M16,14.25 C16,14.25,19,15.25,19,17.25 C19,19.25,16,19.25,16,19.25"/><path style="fill:#ffffff;fill-rule:evenodd;stroke:#000000;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;stroke-width:1;" d="M4.5,4.85 C4.5,3.69,5.4,2.75,6.5,2.75 C6.5,2.75,17.5,2.75,17.5,2.75 C18.61,2.75,19.5,3.69,19.5,4.85 C19.5,4.85,19.5,12.16,19.5,12.16 C19.5,13.32,18.61,14.25,17.5,14.25 C17.5,14.25,6.5,14.25,6.5,14.25 C5.4,14.25,4.5,13.32,4.5,12.16 C4.5,12.16,4.5,4.85,4.5,4.85 z"/><path style="fill:#ffffff;fill-rule:nonzero;stroke:#000000;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;stroke-width:1;" d="M12,5.25 C12,5.25,12,11.25,12,11.25"/><path style="fill:#ffffff;fill-rule:nonzero;stroke:#000000;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;stroke-width:1;" d="M14,7.25 C14,7.25,14,8.25,14,8.25"/><path style="fill:#ffffff;fill-rule:nonzero;stroke:#000000;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;stroke-width:1;" d="M10,7.25 C10,7.25,10,8.25,10,8.25"/><path style="fill:none;stroke:#000000;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;stroke-width:1;" d="M16,21.25 C16,21.25,15,20.25,15,20.25 C15,20.25,14,21.25,14,21.25"/><path style="fill:none;stroke:#000000;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;stroke-width:1;" d="M10,21.25 C10,21.25,9,20.25,9,20.25 C9,20.25,8,21.25,8,21.25"/><path style="fill:#e4e4e4;fill-rule:evenodd;stroke:#000000;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;stroke-width:1;" d="M8,14.25 C8,14.25,16,14.25,16,14.25 C16,14.25,16,19.25,16,19.25 C16,19.25,8,19.25,8,19.25 C8,19.25,8,14.25,8,14.25 z"/><path style="fill:#ff7bac;fill-opacity:0.75;fill-rule:evenodd;stroke:#000000;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:10;stroke-width:1;" d="M12,4 C12,4,11.99,4,11.99,4 C6.19,4,3,4.73,3,8.5 C3,11.39,4.66,13,7.27,13 C9.88,13,10.68,11.13,11.99,11.13 C11.99,11.13,12,11.13,12,11.13 C12,11.13,12.01,11.13,12.01,11.13 C13.32,11.13,14.12,13,16.73,13 C19.34,13,21,11.39,21,8.5 C21,4.73,17.81,4,12.01,4 C12.01,4,12,4,12,4 C12,4,12,4,12,4 z"/></g></svg> ',cmy:'<svg class="color filled" viewBox="0 0 24 24"><g><g><path style="fill:#00ff00;fill-rule:evenodd;" d="M12,10.88 C10.9,10.01,9.51,9.5,8,9.5 C7.22,9.5,6.47,9.64,5.78,9.89 C6.37,11.85,7.87,13.42,9.78,14.11 C10.17,12.81,10.96,11.69,12,10.88 z"/><path style="fill:#0000ff;fill-rule:evenodd;" d="M12,10.88 C13.1,10.01,14.49,9.5,16,9.5 C16.78,9.5,17.53,9.64,18.22,9.89 C17.63,11.85,16.13,13.42,14.22,14.11 C13.83,12.81,13.04,11.69,12,10.88 C12,10.88,12,10.88,12,10.88 z"/><path style="fill:#000000;fill-rule:evenodd;" d="M9.78,14.11 C10.17,12.81,10.96,11.69,12,10.88 C13.04,11.69,13.83,12.81,14.22,14.11 C13.53,14.36,12.78,14.5,12,14.5 C11.22,14.5,10.47,14.36,9.78,14.11 C9.78,14.11,9.78,14.11,9.78,14.11 z"/><path style="fill:#ff0000;fill-rule:evenodd;" d="M9.78,14.11 C9.6,14.71,9.5,15.34,9.5,16 C9.5,18.08,10.48,19.93,12,21.12 C13.52,19.93,14.5,18.08,14.5,16 C14.5,15.34,14.4,14.71,14.22,14.11 C13.53,14.36,12.78,14.5,12,14.5 C11.22,14.5,10.47,14.36,9.78,14.11 C9.78,14.11,9.78,14.11,9.78,14.11 z"/><path style="fill:#02fefe;fill-rule:evenodd;" d="M5.78,9.89 C5.6,9.29,5.5,8.66,5.5,8 C5.5,4.41,8.41,1.5,12,1.5 C15.59,1.5,18.5,4.41,18.5,8 C18.5,8.66,18.4,9.29,18.22,9.89 C17.53,9.64,16.78,9.5,16,9.5 C14.49,9.5,13.1,10.01,12,10.88 C10.9,10.01,9.51,9.5,8,9.5 C7.22,9.5,6.47,9.64,5.78,9.89 C5.78,9.89,5.78,9.89,5.78,9.89 z"/><path style="fill:#fffe00;fill-rule:evenodd;" d="M5.78,9.89 C3.28,10.8,1.5,13.19,1.5,16 C1.5,19.59,4.41,22.5,8,22.5 C9.51,22.5,10.9,21.99,12,21.12 C10.48,19.93,9.5,18.08,9.5,16 C9.5,15.34,9.6,14.71,9.78,14.11 C7.87,13.42,6.37,11.85,5.78,9.89 C5.78,9.89,5.78,9.89,5.78,9.89 z"/><path style="fill:#ff00ff;fill-rule:evenodd;" d="M18.22,9.89 C20.72,10.8,22.5,13.19,22.5,16 C22.5,19.59,19.59,22.5,16,22.5 C14.49,22.5,13.1,21.99,12,21.12 C13.52,19.93,14.5,18.08,14.5,16 C14.5,15.34,14.4,14.71,14.22,14.11 C16.13,13.42,17.63,11.85,18.22,9.89 z"/></g></g></svg> ',rgb:'<svg class="color filled" viewBox="0 0 24 24"><g><g><path style="fill:#ff00ff;fill-rule:evenodd;" d="M12,10.88 C10.9,10.01,9.51,9.5,8,9.5 C7.22,9.5,6.47,9.64,5.78,9.89 C6.37,11.85,7.87,13.42,9.78,14.11 C10.17,12.81,10.96,11.69,12,10.88 z"/><path style="fill:#ffff00;fill-rule:evenodd;" d="M12,10.88 C13.1,10.01,14.49,9.5,16,9.5 C16.78,9.5,17.53,9.64,18.22,9.89 C17.63,11.85,16.13,13.42,14.22,14.11 C13.83,12.81,13.04,11.69,12,10.88 C12,10.88,12,10.88,12,10.88 z"/><path style="fill:#ffffff;fill-rule:evenodd;" d="M9.78,14.11 C10.17,12.81,10.96,11.69,12,10.88 C13.04,11.69,13.83,12.81,14.22,14.11 C13.53,14.36,12.78,14.5,12,14.5 C11.22,14.5,10.47,14.36,9.78,14.11 C9.78,14.11,9.78,14.11,9.78,14.11 z"/><path style="fill:#00ffff;fill-rule:evenodd;" d="M9.78,14.11 C9.6,14.71,9.5,15.34,9.5,16 C9.5,18.08,10.48,19.93,12,21.12 C13.52,19.93,14.5,18.08,14.5,16 C14.5,15.34,14.4,14.71,14.22,14.11 C13.53,14.36,12.78,14.5,12,14.5 C11.22,14.5,10.47,14.36,9.78,14.11 C9.78,14.11,9.78,14.11,9.78,14.11 z"/><path style="fill:#ff0000;fill-rule:evenodd;" d="M5.78,9.89 C5.6,9.29,5.5,8.66,5.5,8 C5.5,4.41,8.41,1.5,12,1.5 C15.59,1.5,18.5,4.41,18.5,8 C18.5,8.66,18.4,9.29,18.22,9.89 C17.53,9.64,16.78,9.5,16,9.5 C14.49,9.5,13.1,10.01,12,10.88 C10.9,10.01,9.51,9.5,8,9.5 C7.22,9.5,6.47,9.64,5.78,9.89 C5.78,9.89,5.78,9.89,5.78,9.89 z"/><path style="fill:#0000ff;fill-rule:evenodd;" d="M5.78,9.89 C3.28,10.8,1.5,13.19,1.5,16 C1.5,19.59,4.41,22.5,8,22.5 C9.51,22.5,10.9,21.99,12,21.12 C10.48,19.93,9.5,18.08,9.5,16 C9.5,15.34,9.6,14.71,9.78,14.11 C7.87,13.42,6.37,11.85,5.78,9.89 C5.78,9.89,5.78,9.89,5.78,9.89 z"/><path style="fill:#00ff00;fill-rule:evenodd;" d="M18.22,9.89 C20.72,10.8,22.5,13.19,22.5,16 C22.5,19.59,19.59,22.5,16,22.5 C14.49,22.5,13.1,21.99,12,21.12 C13.52,19.93,14.5,18.08,14.5,16 C14.5,15.34,14.4,14.71,14.22,14.11 C16.13,13.42,17.63,11.85,18.22,9.89 z"/></g></g></svg> ',xrColor:'<svg class="color filled" viewBox="0 0 40 24"><g><g><g><path style="fill:#000000;fill-rule:evenodd;" d="M20,2 C19.99,2,19.98,2,19.98,2 C8.39,2,2,3.61,2,12 C2,18.41,5.32,22,10.54,22 C15.77,22,17.37,17.85,19.98,17.85 C19.98,17.85,19.99,17.85,20,17.85 C20.01,17.85,20.02,17.85,20.02,17.85 C22.63,17.85,24.23,22,29.46,22 C34.68,22,38,18.41,38,12 C38,3.61,31.61,2,20.02,2 C20.02,2,20.01,2,20,2 C20,2,20,2,20,2 z"/></g><path style="fill:#fbed21;fill-rule:evenodd;" d="M12.2,19.84 C15.79,19.39,17.07,16.46,19.07,16.46 C19.07,16.46,19.08,16.46,19.09,16.46 C19.09,16.46,19.1,16.46,19.11,16.46 C19.44,16.46,19.75,16.54,20.06,16.68 C20.37,16.54,20.68,16.46,21.01,16.46 C21.02,16.46,21.02,16.46,21.03,16.46 C21.04,16.46,21.04,16.46,21.05,16.46 C23.05,16.46,24.33,19.39,27.92,19.84 C31.66,19.4,33.98,16.5,33.98,11.62 C33.98,4.91,29.04,3.44,20.06,3.35 C11.07,3.44,6.14,4.91,6.14,11.62 C6.14,16.5,8.46,19.4,12.2,19.84 z"/><path style="fill:#8cc63f;fill-rule:evenodd;" d="M12.2,19.84 C12.52,19.87,12.86,19.89,13.21,19.89 C16.86,19.89,18.37,17.43,20.06,16.68 C19.75,16.54,19.44,16.46,19.11,16.46 C19.1,16.46,19.09,16.46,19.09,16.46 C19.08,16.46,19.07,16.46,19.07,16.46 C17.07,16.46,15.79,19.39,12.2,19.84 z"/><path style="fill:#8cc63f;fill-rule:evenodd;" d="M20.06,3.35 C20.37,3.35,20.69,3.35,21.01,3.35 C21.02,3.35,21.02,3.35,21.03,3.35 C21.03,3.35,21.03,3.35,21.03,3.35 C21.04,3.35,21.04,3.35,21.05,3.35 C30.64,3.35,35.92,4.68,35.92,11.62 C35.92,16.92,33.18,19.89,28.86,19.89 C28.53,19.89,28.22,19.87,27.92,19.84 C31.66,19.4,33.98,16.5,33.98,11.62 C33.98,4.91,29.04,3.44,20.06,3.35 C20.06,3.35,20.06,3.35,20.06,3.35 z"/><path style="fill:#ff1c23;fill-rule:evenodd;" d="M20.06,16.68 C21.74,17.43,23.25,19.89,26.91,19.89 C27.26,19.89,27.59,19.87,27.92,19.84 C24.33,19.39,23.05,16.46,21.05,16.46 C21.04,16.46,21.04,16.46,21.03,16.46 C21.02,16.46,21.02,16.46,21.01,16.46 C20.68,16.46,20.37,16.54,20.06,16.68 z"/><path style="fill:#ff1c23;fill-rule:evenodd;" d="M12.2,19.84 C11.9,19.87,11.59,19.89,11.26,19.89 C6.94,19.89,4.19,16.92,4.19,11.62 C4.19,4.68,9.48,3.35,19.07,3.35 C19.07,3.35,19.08,3.35,19.09,3.35 C19.09,3.35,19.09,3.35,19.09,3.35 C19.09,3.35,19.1,3.35,19.11,3.35 C19.43,3.35,19.75,3.35,20.06,3.35 C11.07,3.44,6.14,4.91,6.14,11.62 C6.14,16.5,8.46,19.4,12.2,19.84 z"/></g><g><path style="fill:#8cc63e;fill-rule:nonzero;" d="M22.55,8.63 C22.55,9.05,22.55,9.46,22.55,9.88 C22.54,10.25,22.85,10.56,23.2,10.55 C23.54,10.56,23.85,10.25,23.85,9.88 C23.85,9.46,23.85,9.05,23.85,8.63 C23.85,8.26,23.54,7.95,23.2,7.96 C22.85,7.95,22.54,8.26,22.55,8.63 z"/><path style="fill:#8cc63e;fill-rule:nonzero;" d="M17.32,8.63 C17.32,9.05,17.32,9.46,17.32,9.88 C17.31,10.25,17.62,10.56,17.97,10.55 C18.31,10.56,18.62,10.25,18.62,9.88 C18.62,9.46,18.62,9.05,18.62,8.63 C18.62,8.26,18.31,7.95,17.97,7.96 C17.62,7.95,17.31,8.26,17.32,8.63 z"/><path style="fill:#8cc63e;fill-rule:nonzero;" d="M19.99,4.39 C19.99,8.09,19.99,11.8,19.99,15.5 C19.99,15.87,20.3,16.18,20.64,16.17 C20.99,16.18,21.3,15.87,21.29,15.5 C21.29,11.8,21.29,8.09,21.29,4.39 C21.3,4.02,20.99,3.71,20.64,3.72 C20.3,3.71,19.99,4.02,19.99,4.39 z"/><path style="fill:#fe1a22;fill-rule:nonzero;" d="M21.43,8.63 C21.43,9.05,21.43,9.46,21.43,9.88 C21.42,10.25,21.73,10.56,22.08,10.55 C22.42,10.56,22.73,10.25,22.73,9.88 C22.73,9.46,22.73,9.05,22.73,8.63 C22.73,8.26,22.42,7.95,22.08,7.96 C21.73,7.95,21.42,8.26,21.43,8.63 z"/><path style="fill:#fe1a22;fill-rule:nonzero;" d="M16.2,8.63 C16.2,9.05,16.2,9.46,16.2,9.88 C16.19,10.25,16.5,10.56,16.85,10.55 C17.19,10.56,17.5,10.25,17.5,9.88 C17.5,9.46,17.5,9.05,17.5,8.63 C17.5,8.26,17.19,7.95,16.85,7.96 C16.5,7.95,16.19,8.26,16.2,8.63 z"/><path style="fill:#fe1a22;fill-rule:nonzero;" d="M18.87,4.39 C18.87,8.09,18.87,11.8,18.87,15.5 C18.87,15.87,19.18,16.18,19.52,16.17 C19.86,16.18,20.18,15.87,20.17,15.5 C20.17,11.8,20.17,8.09,20.17,4.39 C20.18,4.02,19.86,3.71,19.52,3.72 C19.18,3.71,18.87,4.02,18.87,4.39 z"/><path style="fill:#000000;fill-rule:nonzero;" d="M21.97,8.63 C21.97,9.05,21.97,9.46,21.97,9.88 C21.97,10.25,22.28,10.56,22.62,10.55 C22.97,10.56,23.28,10.25,23.27,9.88 C23.27,9.46,23.27,9.05,23.27,8.63 C23.28,8.26,22.97,7.95,22.62,7.96 C22.28,7.95,21.97,8.26,21.97,8.63 z"/><path style="fill:#000000;fill-rule:nonzero;" d="M16.74,8.63 C16.74,9.05,16.74,9.46,16.74,9.88 C16.74,10.25,17.05,10.56,17.39,10.55 C17.74,10.56,18.05,10.25,18.04,9.88 C18.04,9.46,18.04,9.05,18.04,8.63 C18.05,8.26,17.74,7.95,17.39,7.96 C17.05,7.95,16.74,8.26,16.74,8.63 z"/><path style="fill:#000000;fill-rule:nonzero;" d="M19.41,4.39 C19.41,8.09,19.41,11.8,19.41,15.5 C19.41,15.87,19.72,16.18,20.07,16.17 C20.41,16.18,20.72,15.87,20.72,15.5 C20.72,11.8,20.72,8.09,20.72,4.39 C20.72,4.02,20.41,3.71,20.07,3.72 C19.72,3.71,19.41,4.02,19.41,4.39 z"/></g></g></svg> ',tosiUi:'<svg class="color" viewBox="0 0 48 48"><g><g><g><path style="fill:#ffffff;fill-rule:evenodd;stroke:#000000;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;stroke-width:2;" d="M3,33 C3,31.9,3.9,31,5,31 C5,31,43,31,43,31 C44.1,31,45,31.9,45,33 C45,33,45,43,45,43 C45,44.1,44.1,45,43,45 C43,45,5,45,5,45 C3.9,45,3,44.1,3,43 C3,43,3,33,3,33 z"/><g><path style="fill:#ffffff;fill-rule:evenodd;stroke:#ed247b;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;stroke-width:2;" d="M7,35 C7,35,7,36.34,7,38 C7,39.66,8.34,41,10,41 C11.66,41,13,39.66,13,38 C13,36.34,13,35,13,35"/><path style="fill:#ffffff;fill-rule:nonzero;stroke:#ed247b;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;stroke-width:2;" d="M17,35 C17,35,17,41,17,41"/></g><g><path style="fill:#ed247b;fill-rule:evenodd;stroke:none;" d="M38,33 C40.76,33,43,35.24,43,38 C43,40.76,40.76,43,38,43 C35.24,43,33,40.76,33,38 C33,35.24,35.24,33,38,33 z"/><path style="fill:#ed247b;fill-rule:nonzero;stroke:#ffffff;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;stroke-width:2;" d="M40,36 C40,36,36,40,36,40"/><path style="fill:#ed247b;fill-rule:nonzero;stroke:#ffffff;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;stroke-width:2;" d="M36,36 C36,36,40,40,40,40"/></g></g><g><path style="fill:#9e9e9e;fill-rule:nonzero;stroke:#000000;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;stroke-width:2;" d="M15.97,21.01 C15.97,21.01,9.97,23.01,9.97,27.01 C9.97,31.01,15.97,31.01,15.97,31.01"/><path style="fill:#9e9e9e;fill-rule:nonzero;stroke:#000000;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;stroke-width:2;" d="M31.97,21.01 C31.97,21.01,37.97,23.01,37.97,27.01 C37.97,31.01,31.97,31.01,31.97,31.01"/><path style="fill:none;stroke:#000000;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;stroke-width:2;" d="M31,33 C31,33,29.49,31,29.49,31 C29.49,31,27.97,33,27.97,33"/><path style="fill:none;stroke:#000000;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;stroke-width:2;" d="M19.97,33 C19.97,33,17.97,31,17.97,31 C17.97,31,15.97,33,15.97,33"/><path style="fill:#e4e4e4;fill-rule:evenodd;stroke:#000000;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;stroke-width:2;" d="M15.97,21 C15.97,21,31.97,21,31.97,21 C31.97,21,31.97,31,31.97,31 C31.97,31,15.97,31,15.97,31 C15.97,31,15.97,21,15.97,21 z"/><path style="fill:#ffffff;fill-rule:evenodd;stroke:#000000;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;stroke-width:2;" d="M9,7.18 C9,4.87,10.79,3,13,3 C13,3,35.02,3,35.02,3 C37.23,3,39.03,4.87,39.03,7.18 C39.03,7.18,39.03,21.82,39.03,21.82 C39.03,24.13,37.23,26,35.02,26 C35.02,26,13,26,13,26 C10.79,26,9,24.13,9,21.82 C9,21.82,9,7.18,9,7.18 z"/><path style="fill:#ffffff;fill-rule:nonzero;stroke:#000000;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;stroke-width:2;" d="M24,11 C24,11,24,23,24,23"/><path style="fill:#ffffff;fill-rule:nonzero;stroke:#000000;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;stroke-width:2;" d="M28,15 C28,15,28,17,28,17"/><path style="fill:#ffffff;fill-rule:nonzero;stroke:#000000;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;stroke-width:2;" d="M20,15 C20,15,20,17,20,17"/></g></g></g></svg> ',tosiFavicon:'<svg class="color" viewBox="0 0 48 48"><g><g><path style="fill:#ed247b;fill-rule:evenodd;stroke:none;" d="M1,9 C1,4.58,4.58,1,9,1 C9,1,39,1,39,1 C43.42,1,47,4.58,47,9 C47,9,47,39,47,39 C47,43.42,43.42,47,39,47 C39,47,9,47,9,47 C4.58,47,1,43.42,1,39 C1,39,1,9,1,9 z"/><g><path style="fill:#9e9e9e;fill-rule:nonzero;stroke:#000000;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;stroke-width:2;" d="M16,29 C16,29,10,31,10,35 C10,39,16,39,16,39"/><path style="fill:#9e9e9e;fill-rule:nonzero;stroke:#000000;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;stroke-width:2;" d="M32,29 C32,29,38,31,38,35 C38,39,32,39,32,39"/><path style="fill:#ffffff;fill-rule:evenodd;stroke:#000000;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;stroke-width:2;" d="M9,10.18 C9,7.87,10.79,6,13,6 C13,6,35,6,35,6 C37.21,6,39,7.87,39,10.18 C39,10.18,39,24.82,39,24.82 C39,27.13,37.21,29,35,29 C35,29,13,29,13,29 C10.79,29,9,27.13,9,24.82 C9,24.82,9,10.18,9,10.18 z"/><path style="fill:#ffffff;fill-rule:nonzero;stroke:#000000;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;stroke-width:2;" d="M24,11 C24,11,24,23,24,23"/><path style="fill:#ffffff;fill-rule:nonzero;stroke:#000000;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;stroke-width:2;" d="M28,15 C28,15,28,17,28,17"/><path style="fill:#ffffff;fill-rule:nonzero;stroke:#000000;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;stroke-width:2;" d="M20,15 C20,15,20,17,20,17"/><path style="fill:none;stroke:#000000;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;stroke-width:2;" d="M32,43 C32,43,30,41,30,41 C30,41,28,43,28,43"/><path style="fill:none;stroke:#000000;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;stroke-width:2;" d="M20,43 C20,43,18,41,18,41 C18,41,16,43,16,43"/><path style="fill:#e4e4e4;fill-rule:evenodd;stroke:#000000;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;stroke-width:2;" d="M16,29 C16,29,32,29,32,29 C32,29,32,39,32,39 C32,39,16,39,16,39 C16,39,16,29,16,29 z"/></g></g></g></svg> ',tosiPlatform:'<svg class="color" viewBox="0 0 48 48"><g><g><g><path style="fill:#3ea9f5;fill-rule:evenodd;stroke:none;" d="M23.97,47 C23.97,47,39,47,39,47 C43.42,47,47,43.42,47,39 C47,39,47,9,47,9 C47,4.58,43.42,1,39,1 C39,1,9,1,9,1 C4.58,1,1,4.58,1,9 C1,9,1,39,1,39 C1,41.64,2.28,43.98,4.25,45.44 C4.09,44.82,4,44.17,4,43.5 C4,39.36,7.36,36,11.5,36 C15.14,36,18.18,38.6,18.86,42.05 C19.07,42.02,19.28,42,19.5,42 C21.99,42,24,44.01,24,46.5 C24,46.67,23.99,46.84,23.97,47 z"/><path style="fill:#ffffff;fill-rule:evenodd;stroke:none;" d="M4.25,45.44 C4.09,44.82,4,44.17,4,43.5 C4,39.36,7.36,36,11.5,36 C15.14,36,18.18,38.6,18.86,42.05 C19.07,42.02,19.28,42,19.5,42 C21.99,42,24,44.01,24,46.5 C24,46.67,23.99,46.84,23.97,47 C23.97,47,9,47,9,47 C7.22,47,5.58,46.42,4.25,45.44 z"/></g><path style="fill:none;stroke:#000000;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;stroke-width:2;" d="M35,35 C35,35,32.17,35,32.17,35 C32.17,35,32.17,37.83,32.17,37.83"/><path style="fill:none;stroke:#000000;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;stroke-width:2;" d="M31,39 C31,39,28.17,39,28.17,39 C28.17,39,28.17,41.83,28.17,41.83"/><path style="fill:#9e9e9e;fill-rule:nonzero;stroke:#000000;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;stroke-width:2;" d="M7.48,16 C4.45,16,2,18.45,2,21.48 C2,21.48,2,21.48,2,21.48 C2,23.98,4.02,26,6.52,26 C6.52,26,6.62,26,6.62,26 C7.38,26,8,26.62,8,27.38 C8,27.38,8,27.38,8,27.38 C8,29.93,10.07,32,12.62,32 C12.62,32,16,32,16,32 C18.58,32,20.68,29.91,20.68,27.32 C20.68,27.32,20.68,21.42,20.68,21.42 C20.68,18.43,18.25,16,15.26,16 C15.26,16,7.48,16,7.48,16 z"/><path style="fill:#e4e4e4;fill-rule:evenodd;stroke:#000000;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;stroke-width:2;" d="M17,29 C17,29,33,29,33,29 C33,29,33,29,33,29 C33,34.52,28.52,39,23,39 C23,39,23,39,23,39 C19.69,39,17,36.31,17,33 C17,33,17,29,17,29 z"/><path style="fill:#9e9e9e;fill-rule:nonzero;stroke:#000000;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;stroke-width:2;" d="M40.52,16 C43.55,16,46,18.45,46,21.48 C46,21.48,46,21.48,46,21.48 C46,23.98,43.98,26,41.48,26 C41.48,26,41.38,26,41.38,26 C40.62,26,40,26.62,40,27.38 C40,27.38,40,27.38,40,27.38 C40,29.93,37.93,32,35.38,32 C35.38,32,32,32,32,32 C29.42,32,27.32,29.91,27.32,27.32 C27.32,27.32,27.32,21.42,27.32,21.42 C27.32,18.43,29.75,16,32.74,16 C32.74,16,40.52,16,40.52,16 z"/><g><path style="fill:#ffffff;fill-rule:evenodd;stroke:#000000;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;stroke-width:2;" d="M6,10.18 C6,7.87,7.79,6,10,6 C10,6,32,6,32,6 C34.21,6,36,7.87,36,10.18 C36,10.18,36,24.82,36,24.82 C36,27.13,34.21,29,32,29 C32,29,10,29,10,29 C7.79,29,6,27.13,6,24.82 C6,24.82,6,10.18,6,10.18 z"/><path style="fill:#ffffff;fill-rule:nonzero;stroke:#000000;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;stroke-width:2;" d="M21,11 C21,11,21,23,21,23"/><path style="fill:#ffffff;fill-rule:nonzero;stroke:#000000;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;stroke-width:2;" d="M25,15 C25,15,25,17,25,17"/><path style="fill:#ffffff;fill-rule:nonzero;stroke:#000000;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;stroke-width:2;" d="M17,15 C17,15,17,17,17,17"/></g></g></g></svg> ',tosi:'<svg class="color" viewBox="0 0 48 48"><g><path style="fill:#9e9e9e;fill-rule:nonzero;stroke:#000000;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;stroke-width:2;" d="M38.35,31.7 C39.78,34.37,38.78,37.69,36.11,39.13 C36.11,39.13,36.11,39.13,36.11,39.13 C33.92,40.31,31.18,39.48,29.99,37.29 C29.99,37.29,29.95,37.2,29.95,37.2 C29.58,36.53,28.75,36.27,28.08,36.64 C28.08,36.64,28.08,36.64,28.08,36.64 C25.83,37.84,23.03,37,21.82,34.76 C21.82,34.76,20.22,31.78,20.22,31.78 C18.99,29.5,19.85,26.67,22.12,25.44 C22.12,25.44,27.32,22.65,27.32,22.65 C29.96,21.23,33.24,22.22,34.66,24.85 C34.66,24.85,38.35,31.7,38.35,31.7 z"/><path style="fill:#9e9e9e;fill-rule:nonzero;stroke:#000000;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;stroke-width:2;" d="M10.65,31.7 C9.22,34.37,10.22,37.69,12.89,39.13 C12.89,39.13,12.89,39.13,12.89,39.13 C15.08,40.31,17.82,39.48,19.01,37.29 C19.01,37.29,19.05,37.2,19.05,37.2 C19.42,36.53,20.25,36.27,20.92,36.64 C20.92,36.64,20.92,36.64,20.92,36.64 C23.17,37.84,25.97,37,27.18,34.76 C27.18,34.76,28.78,31.78,28.78,31.78 C30.01,29.5,29.15,26.67,26.88,25.44 C26.88,25.44,21.68,22.65,21.68,22.65 C19.04,21.23,15.76,22.22,14.34,24.85 C14.34,24.85,10.65,31.7,10.65,31.7 z"/><path style="fill:none;stroke:#000000;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;stroke-width:2;" d="M32.5,43 C32.5,43,30.5,41,30.5,41 C30.5,41,28.5,43,28.5,43"/><path style="fill:none;stroke:#000000;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;stroke-width:2;" d="M20.5,43 C20.5,43,18.5,41,18.5,41 C18.5,41,16.5,43,16.5,43"/><path style="fill:#e4e4e4;fill-rule:evenodd;stroke:#000000;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;stroke-width:2;" d="M16.5,29 C16.5,29,32.5,29,32.5,29 C32.5,29,32.5,36,32.5,36 C32.5,37.66,31.16,39,29.5,39 C29.5,39,19.5,39,19.5,39 C17.84,39,16.5,37.66,16.5,36 C16.5,36,16.5,29,16.5,29 z"/><g><path style="fill:#ffffff;fill-rule:evenodd;stroke:#000000;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;stroke-width:2;" d="M9.5,10.18 C9.5,7.87,11.29,6,13.5,6 C13.5,6,35.5,6,35.5,6 C37.71,6,39.5,7.87,39.5,10.18 C39.5,10.18,39.5,24.82,39.5,24.82 C39.5,27.13,37.71,29,35.5,29 C35.5,29,13.5,29,13.5,29 C11.29,29,9.5,27.13,9.5,24.82 C9.5,24.82,9.5,10.18,9.5,10.18 z"/><g><path style="fill:#ffffff;fill-rule:nonzero;stroke:#000000;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;stroke-width:2;" d="M24.5,11 C24.5,11,24.5,23,24.5,23"/><path style="fill:#ffffff;fill-rule:nonzero;stroke:#000000;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;stroke-width:2;" d="M28.5,15 C28.5,15,28.5,17,28.5,17"/><path style="fill:#ffffff;fill-rule:nonzero;stroke:#000000;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;stroke-width:2;" d="M20.5,15 C20.5,15,20.5,17,20.5,17"/></g></g></g></svg> ',sortDescending:'<svg class="stroked" viewBox="0 0 24 24"><g><path d="M16.5,14.5 C16.5,14.5,7.5,14.5,7.5,14.5"/><path d="M14.5,18.5 C14.5,18.5,9.5,18.5,9.5,18.5"/><path d="M18.5,10.5 C18.5,10.5,5.5,10.5,5.5,10.5"/><path d="M20.5,6.5 C20.5,6.5,3.5,6.5,3.5,6.5"/></g></svg> ',columns:'<svg class="stroked" viewBox="0 0 24 24"><path d="M12 3h7a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-7m0-18H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h7m0-18v18"></path></svg>',underline:'<svg class="stroked" viewBox="0 0 24 24"><path d="M6 3v7a6 6 0 0 0 6 6 6 6 0 0 0 6-6V3"></path><line x1="4" y1="21" x2="20" y2="21"></line></svg>',grid:'<svg class="stroked" viewBox="0 0 24 24"><rect x="3" y="3" width="7" height="7"></rect><rect x="14" y="3" width="7" height="7"></rect><rect x="14" y="14" width="7" height="7"></rect><rect x="3" y="14" width="7" height="7"></rect></svg>',triangle:'<svg class="stroked" viewBox="0 0 24 24"><path d="M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z"></path></svg>',search:'<svg class="stroked" viewBox="0 0 24 24"><circle cx="11" cy="11" r="8"></circle><line x1="21" y1="21" x2="16.65" y2="16.65"></line></svg>',volume2:'<svg class="stroked" viewBox="0 0 24 24"><polygon points="11 5 6 9 2 9 2 15 6 15 11 19 11 5"></polygon><path d="M19.07 4.93a10 10 0 0 1 0 14.14M15.54 8.46a5 5 0 0 1 0 7.07"></path></svg>',arrowUpCircle:'<svg class="stroked" viewBox="0 0 24 24"><circle cx="12" cy="12" r="10"></circle><polyline points="16 12 12 8 8 12"></polyline><line x1="12" y1="16" x2="12" y2="8"></line></svg>',pauseCircle:'<svg class="stroked" viewBox="0 0 24 24"><circle cx="12" cy="12" r="10"></circle><line x1="10" y1="15" x2="10" y2="9"></line><line x1="14" y1="15" x2="14" y2="9"></line></svg>',checkSquare:'<svg class="stroked" viewBox="0 0 24 24"><polyline points="9 11 12 14 22 4"></polyline><path d="M21 12v7a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11"></path></svg>',arrowDown:'<svg class="stroked" viewBox="0 0 24 24"><line x1="12" y1="5" x2="12" y2="19"></line><polyline points="19 12 12 19 5 12"></polyline></svg>',figma:'<svg class="stroked" viewBox="0 0 24 24"><path d="M5 5.5A3.5 3.5 0 0 1 8.5 2H12v7H8.5A3.5 3.5 0 0 1 5 5.5z"></path><path d="M12 2h3.5a3.5 3.5 0 1 1 0 7H12V2z"></path><path d="M12 12.5a3.5 3.5 0 1 1 7 0 3.5 3.5 0 1 1-7 0z"></path><path d="M5 19.5A3.5 3.5 0 0 1 8.5 16H12v3.5a3.5 3.5 0 1 1-7 0z"></path><path d="M5 12.5A3.5 3.5 0 0 1 8.5 9H12v7H8.5A3.5 3.5 0 0 1 5 12.5z"></path></svg>',cornerRightUp:'<svg class="stroked" viewBox="0 0 24 24"><polyline points="10 9 15 4 20 9"></polyline><path d="M4 20h7a4 4 0 0 0 4-4V4"></path></svg>',chevronsRight:'<svg class="stroked" viewBox="0 0 24 24"><polyline points="13 17 18 12 13 7"></polyline><polyline points="6 17 11 12 6 7"></polyline></svg>',list:'<svg class="stroked" viewBox="0 0 24 24"><line x1="8" y1="6" x2="21" y2="6"></line><line x1="8" y1="12" x2="21" y2="12"></line><line x1="8" y1="18" x2="21" y2="18"></line><line x1="3" y1="6" x2="3.01" y2="6"></line><line x1="3" y1="12" x2="3.01" y2="12"></line><line x1="3" y1="18" x2="3.01" y2="18"></line></svg>',chevronsDown:'<svg class="stroked" viewBox="0 0 24 24"><polyline points="7 13 12 18 17 13"></polyline><polyline points="7 6 12 11 17 6"></polyline></svg>',wind:'<svg class="stroked" viewBox="0 0 24 24"><path d="M9.59 4.59A2 2 0 1 1 11 8H2m10.59 11.41A2 2 0 1 0 14 16H2m15.73-8.27A2.5 2.5 0 1 1 19.5 12H2"></path></svg>',cornerUpRight:'<svg class="stroked" viewBox="0 0 24 24"><polyline points="15 14 20 9 15 4"></polyline><path d="M4 20v-7a4 4 0 0 1 4-4h12"></path></svg>',target:'<svg class="stroked" viewBox="0 0 24 24"><circle cx="12" cy="12" r="10"></circle><circle cx="12" cy="12" r="6"></circle><circle cx="12" cy="12" r="2"></circle></svg>',scissors:'<svg class="stroked" viewBox="0 0 24 24"><circle cx="6" cy="6" r="3"></circle><circle cx="6" cy="18" r="3"></circle><line x1="20" y1="4" x2="8.12" y2="15.88"></line><line x1="14.47" y1="14.48" x2="20" y2="20"></line><line x1="8.12" y1="8.12" x2="12" y2="12"></line></svg>',minimize2:'<svg class="stroked" viewBox="0 0 24 24"><polyline points="4 14 10 14 10 20"></polyline><polyline points="20 10 14 10 14 4"></polyline><line x1="14" y1="10" x2="21" y2="3"></line><line x1="3" y1="21" x2="10" y2="14"></line></svg>',playCircle:'<svg class="stroked" viewBox="0 0 24 24"><circle cx="12" cy="12" r="10"></circle><polygon points="10 8 16 12 10 16 10 8"></polygon></svg>',crosshair:'<svg class="stroked" viewBox="0 0 24 24"><circle cx="12" cy="12" r="10"></circle><line x1="22" y1="12" x2="18" y2="12"></line><line x1="6" y1="12" x2="2" y2="12"></line><line x1="12" y1="6" x2="12" y2="2"></line><line x1="12" y1="22" x2="12" y2="18"></line></svg>',airplay:'<svg class="stroked" viewBox="0 0 24 24"><path d="M5 17H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2h-1"></path><polygon points="12 15 17 21 7 21 12 15"></polygon></svg>',xOctagon:'<svg class="stroked" viewBox="0 0 24 24"><polygon points="7.86 2 16.14 2 22 7.86 22 16.14 16.14 22 7.86 22 2 16.14 2 7.86 7.86 2"></polygon><line x1="15" y1="9" x2="9" y2="15"></line><line x1="9" y1="9" x2="15" y2="15"></line></svg>',repeat:'<svg class="stroked" viewBox="0 0 24 24"><polyline points="17 1 21 5 17 9"></polyline><path d="M3 11V9a4 4 0 0 1 4-4h14"></path><polyline points="7 23 3 19 7 15"></polyline><path d="M21 13v2a4 4 0 0 1-4 4H3"></path></svg>',edit3:'<svg class="stroked" viewBox="0 0 24 24"><path d="M12 20h9"></path><path d="M16.5 3.5a2.12 2.12 0 0 1 3 3L7 19l-4 1 1-4L16.5 3.5z"></path></svg>',volume1:'<svg class="stroked" viewBox="0 0 24 24"><polygon points="11 5 6 9 2 9 2 15 6 15 11 19 11 5"></polygon><path d="M15.54 8.46a5 5 0 0 1 0 7.07"></path></svg>',sunrise:'<svg class="stroked" viewBox="0 0 24 24"><path d="M17 18a5 5 0 0 0-10 0"></path><line x1="12" y1="2" x2="12" y2="9"></line><line x1="4.22" y1="10.22" x2="5.64" y2="11.64"></line><line x1="1" y1="18" x2="3" y2="18"></line><line x1="21" y1="18" x2="23" y2="18"></line><line x1="18.36" y1="11.64" x2="19.78" y2="10.22"></line><line x1="23" y1="22" x2="1" y2="22"></line><polyline points="8 6 12 2 16 6"></polyline></svg>',toggleRight:'<svg class="stroked" viewBox="0 0 24 24"><rect x="1" y="5" width="22" height="14" rx="7" ry="7"></rect><circle cx="16" cy="12" r="3"></circle></svg>',umbrella:'<svg class="stroked" viewBox="0 0 24 24"><path d="M23 12a11.05 11.05 0 0 0-22 0zm-5 7a3 3 0 0 1-6 0v-7"></path></svg>',user:'<svg class="stroked" viewBox="0 0 24 24"><path d="M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2"></path><circle cx="12" cy="7" r="4"></circle></svg>',fileMinus:'<svg class="stroked" viewBox="0 0 24 24"><path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"></path><polyline points="14 2 14 8 20 8"></polyline><line x1="9" y1="15" x2="15" y2="15"></line></svg>',xCircle:'<svg class="stroked" viewBox="0 0 24 24"><circle cx="12" cy="12" r="10"></circle><line x1="15" y1="9" x2="9" y2="15"></line><line x1="9" y1="9" x2="15" y2="15"></line></svg>',circle:'<svg class="stroked" viewBox="0 0 24 24"><circle cx="12" cy="12" r="10"></circle></svg>',phoneMissed:'<svg class="stroked" viewBox="0 0 24 24"><line x1="23" y1="1" x2="17" y2="7"></line><line x1="17" y1="1" x2="23" y2="7"></line><path d="M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z"></path></svg>',edit2:'<svg class="stroked" viewBox="0 0 24 24"><path d="M17 3a2.83 2.83 0 1 1 4 4L7.5 20.5 2 22l1.5-5.5L17 3z"></path></svg>',cornerLeftUp:'<svg class="stroked" viewBox="0 0 24 24"><polyline points="14 9 9 4 4 9"></polyline><path d="M20 20h-7a4 4 0 0 1-4-4V4"></path></svg>',home:'<svg class="stroked" viewBox="0 0 24 24"><path d="M3 9l9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"></path><polyline points="9 22 9 12 15 12 15 22"></polyline></svg>',gitlab:'<svg class="stroked" viewBox="0 0 24 24"><path d="M22.65 14.39L12 22.13 1.35 14.39a.84.84 0 0 1-.3-.94l1.22-3.78 2.44-7.51A.42.42 0 0 1 4.82 2a.43.43 0 0 1 .58 0 .42.42 0 0 1 .11.18l2.44 7.49h8.1l2.44-7.51A.42.42 0 0 1 18.6 2a.43.43 0 0 1 .58 0 .42.42 0 0 1 .11.18l2.44 7.51L23 13.45a.84.84 0 0 1-.35.94z"></path></svg>',music:'<svg class="stroked" viewBox="0 0 24 24"><path d="M9 18V5l12-2v13"></path><circle cx="6" cy="18" r="3"></circle><circle cx="18" cy="16" r="3"></circle></svg>',smartphone:'<svg class="stroked" viewBox="0 0 24 24"><rect x="5" y="2" width="14" height="20" rx="2" ry="2"></rect><line x1="12" y1="18" x2="12.01" y2="18"></line></svg>',moreHorizontal:'<svg class="stroked" viewBox="0 0 24 24"><circle cx="12" cy="12" r="1"></circle><circle cx="19" cy="12" r="1"></circle><circle cx="5" cy="12" r="1"></circle></svg>',sliders:'<svg class="stroked" viewBox="0 0 24 24"><line x1="4" y1="21" x2="4" y2="14"></line><line x1="4" y1="10" x2="4" y2="3"></line><line x1="12" y1="21" x2="12" y2="12"></line><line x1="12" y1="8" x2="12" y2="3"></line><line x1="20" y1="21" x2="20" y2="16"></line><line x1="20" y1="12" x2="20" y2="3"></line><line x1="1" y1="14" x2="7" y2="14"></line><line x1="9" y1="8" x2="15" y2="8"></line><line x1="17" y1="16" x2="23" y2="16"></line></svg>',arrowUpLeft:'<svg class="stroked" viewBox="0 0 24 24"><line x1="17" y1="17" x2="7" y2="7"></line><polyline points="7 17 7 7 17 7"></polyline></svg>',chevronDown:'<svg class="stroked" viewBox="0 0 24 24"><polyline points="6 9 12 15 18 9"></polyline></svg>',hexagon:'<svg class="stroked" viewBox="0 0 24 24"><path d="M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z"></path></svg>',github:'<svg class="stroked" viewBox="0 0 24 24"><path d="M9 19c-5 1.5-5-2.5-7-3m14 6v-3.87a3.37 3.37 0 0 0-.94-2.61c3.14-.35 6.44-1.54 6.44-7A5.44 5.44 0 0 0 20 4.77 5.07 5.07 0 0 0 19.91 1S18.73.65 16 2.48a13.38 13.38 0 0 0-7 0C6.27.65 5.09 1 5.09 1A5.07 5.07 0 0 0 5 4.77a5.44 5.44 0 0 0-1.5 3.78c0 5.42 3.3 6.61 6.44 7A3.37 3.37 0 0 0 9 18.13V22"></path></svg>',crop:'<svg class="stroked" viewBox="0 0 24 24"><path d="M6.13 1L6 16a2 2 0 0 0 2 2h15"></path><path d="M1 6.13L16 6a2 2 0 0 1 2 2v15"></path></svg>',tag:'<svg class="stroked" viewBox="0 0 24 24"><path d="M20.59 13.41l-7.17 7.17a2 2 0 0 1-2.83 0L2 12V2h10l8.59 8.59a2 2 0 0 1 0 2.82z"></path><line x1="7" y1="7" x2="7.01" y2="7"></line></svg>',briefcase:'<svg class="stroked" viewBox="0 0 24 24"><rect x="2" y="7" width="20" height="14" rx="2" ry="2"></rect><path d="M16 21V5a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16"></path></svg>',rotateCw:'<svg class="stroked" viewBox="0 0 24 24"><polyline points="23 4 23 10 17 10"></polyline><path d="M20.49 15a9 9 0 1 1-2.12-9.36L23 10"></path></svg>',map:'<svg class="stroked" viewBox="0 0 24 24"><polygon points="1 6 1 22 8 18 16 22 23 18 23 2 16 6 8 2 1 6"></polygon><line x1="8" y1="2" x2="8" y2="18"></line><line x1="16" y1="6" x2="16" y2="22"></line></svg>',inbox:'<svg class="stroked" viewBox="0 0 24 24"><polyline points="22 12 16 12 14 15 10 15 8 12 2 12"></polyline><path d="M5.45 5.11L2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z"></path></svg>',alignJustify:'<svg class="stroked" viewBox="0 0 24 24"><line x1="21" y1="10" x2="3" y2="10"></line><line x1="21" y1="6" x2="3" y2="6"></line><line x1="21" y1="14" x2="3" y2="14"></line><line x1="21" y1="18" x2="3" y2="18"></line></svg>',plusSquare:'<svg class="stroked" viewBox="0 0 24 24"><rect x="3" y="3" width="18" height="18" rx="2" ry="2"></rect><line x1="12" y1="8" x2="12" y2="16"></line><line x1="8" y1="12" x2="16" y2="12"></line></svg>',power:'<svg class="stroked" viewBox="0 0 24 24"><path d="M18.36 6.64a9 9 0 1 1-12.73 0"></path><line x1="12" y1="2" x2="12" y2="12"></line></svg>',database:'<svg class="stroked" viewBox="0 0 24 24"><ellipse cx="12" cy="5" rx="9" ry="3"></ellipse><path d="M21 12c0 1.66-4 3-9 3s-9-1.34-9-3"></path><path d="M3 5v14c0 1.66 4 3 9 3s9-1.34 9-3V5"></path></svg>',cameraOff:'<svg class="stroked" viewBox="0 0 24 24"><line x1="1" y1="1" x2="23" y2="23"></line><path d="M21 21H3a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h3m3-3h6l2 3h4a2 2 0 0 1 2 2v9.34m-7.72-2.06a4 4 0 1 1-5.56-5.56"></path></svg>',toggleLeft:'<svg class="stroked" viewBox="0 0 24 24"><rect x="1" y="5" width="22" height="14" rx="7" ry="7"></rect><circle cx="8" cy="12" r="3"></circle></svg>',file:'<svg class="stroked" viewBox="0 0 24 24"><path d="M13 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V9z"></path><polyline points="13 2 13 9 20 9"></polyline></svg>',messageCircle:'<svg class="stroked" viewBox="0 0 24 24"><path d="M21 11.5a8.38 8.38 0 0 1-.9 3.8 8.5 8.5 0 0 1-7.6 4.7 8.38 8.38 0 0 1-3.8-.9L3 21l1.9-5.7a8.38 8.38 0 0 1-.9-3.8 8.5 8.5 0 0 1 4.7-7.6 8.38 8.38 0 0 1 3.8-.9h.5a8.48 8.48 0 0 1 8 8v.5z"></path></svg>',voicemail:'<svg class="stroked" viewBox="0 0 24 24"><circle cx="5.5" cy="11.5" r="4.5"></circle><circle cx="18.5" cy="11.5" r="4.5"></circle><line x1="5.5" y1="16" x2="18.5" y2="16"></line></svg>',terminal:'<svg class="stroked" viewBox="0 0 24 24"><polyline points="4 17 10 11 4 5"></polyline><line x1="12" y1="19" x2="20" y2="19"></line></svg>',move:'<svg class="stroked" viewBox="0 0 24 24"><polyline points="5 9 2 12 5 15"></polyline><polyline points="9 5 12 2 15 5"></polyline><polyline points="15 19 12 22 9 19"></polyline><polyline points="19 9 22 12 19 15"></polyline><line x1="2" y1="12" x2="22" y2="12"></line><line x1="12" y1="2" x2="12" y2="22"></line></svg>',maximize:'<svg class="stroked" viewBox="0 0 24 24"><path d="M8 3H5a2 2 0 0 0-2 2v3m18 0V5a2 2 0 0 0-2-2h-3m0 18h3a2 2 0 0 0 2-2v-3M3 16v3a2 2 0 0 0 2 2h3"></path></svg>',chevronUp:'<svg class="stroked" viewBox="0 0 24 24"><polyline points="18 15 12 9 6 15"></polyline></svg>',arrowDownLeft:'<svg class="stroked" viewBox="0 0 24 24"><line x1="17" y1="7" x2="7" y2="17"></line><polyline points="17 17 7 17 7 7"></polyline></svg>',fileText:'<svg class="stroked" viewBox="0 0 24 24"><path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"></path><polyline points="14 2 14 8 20 8"></polyline><line x1="16" y1="13" x2="8" y2="13"></line><line x1="16" y1="17" x2="8" y2="17"></line><polyline points="10 9 9 9 8 9"></polyline></svg>',droplet:'<svg class="stroked" viewBox="0 0 24 24"><path d="M12 2.69l5.66 5.66a8 8 0 1 1-11.31 0z"></path></svg>',zapOff:'<svg class="stroked" viewBox="0 0 24 24"><polyline points="12.41 6.75 13 2 10.57 4.92"></polyline><polyline points="18.57 12.91 21 10 15.66 10"></polyline><polyline points="8 8 3 14 12 14 11 22 16 16"></polyline><line x1="1" y1="1" x2="23" y2="23"></line></svg>',x:'<svg class="stroked" viewBox="0 0 24 24"><line x1="18" y1="6" x2="6" y2="18"></line><line x1="6" y1="6" x2="18" y2="18"></line></svg>',barChart:'<svg class="stroked" viewBox="0 0 24 24"><line x1="12" y1="20" x2="12" y2="10"></line><line x1="18" y1="20" x2="18" y2="4"></line><line x1="6" y1="20" x2="6" y2="16"></line></svg>',lock:'<svg class="stroked" viewBox="0 0 24 24"><rect x="3" y="11" width="18" height="11" rx="2" ry="2"></rect><path d="M7 11V7a5 5 0 0 1 10 0v4"></path></svg>',logIn:'<svg class="stroked" viewBox="0 0 24 24"><path d="M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4"></path><polyline points="10 17 15 12 10 7"></polyline><line x1="15" y1="12" x2="3" y2="12"></line></svg>',shoppingBag:'<svg class="stroked" viewBox="0 0 24 24"><path d="M6 2L3 6v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6l-3-4z"></path><line x1="3" y1="6" x2="21" y2="6"></line><path d="M16 10a4 4 0 0 1-8 0"></path></svg>',divide:'<svg class="stroked" viewBox="0 0 24 24"><circle cx="12" cy="6" r="2"></circle><line x1="5" y1="12" x2="19" y2="12"></line><circle cx="12" cy="18" r="2"></circle></svg>',cloudDrizzle:'<svg class="stroked" viewBox="0 0 24 24"><line x1="8" y1="19" x2="8" y2="21"></line><line x1="8" y1="13" x2="8" y2="15"></line><line x1="16" y1="19" x2="16" y2="21"></line><line x1="16" y1="13" x2="16" y2="15"></line><line x1="12" y1="21" x2="12" y2="23"></line><line x1="12" y1="15" x2="12" y2="17"></line><path d="M20 16.58A5 5 0 0 0 18 7h-1.26A8 8 0 1 0 4 15.25"></path></svg>',refreshCw:'<svg class="stroked" viewBox="0 0 24 24"><polyline points="23 4 23 10 17 10"></polyline><polyline points="1 20 1 14 7 14"></polyline><path d="M3.51 9a9 9 0 0 1 14.85-3.36L23 10M1 14l4.64 4.36A9 9 0 0 0 20.49 15"></path></svg>',chevronRight:'<svg class="stroked" viewBox="0 0 24 24"><polyline points="9 18 15 12 9 6"></polyline></svg>',clipboard:'<svg class="stroked" viewBox="0 0 24 24"><path d="M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2"></path><rect x="8" y="2" width="8" height="4" rx="1" ry="1"></rect></svg>',package:'<svg class="stroked" viewBox="0 0 24 24"><line x1="16.5" y1="9.4" x2="7.5" y2="4.21"></line><path d="M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z"></path><polyline points="3.27 6.96 12 12.01 20.73 6.96"></polyline><line x1="12" y1="22.08" x2="12" y2="12"></line></svg>',instagram:'<svg class="stroked" viewBox="0 0 24 24"><rect x="2" y="2" width="20" height="20" rx="5" ry="5"></rect><path d="M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z"></path><line x1="17.5" y1="6.5" x2="17.51" y2="6.5"></line></svg>',link:'<svg class="stroked" viewBox="0 0 24 24"><path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"></path><path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"></path></svg>',videoOff:'<svg class="stroked" viewBox="0 0 24 24"><path d="M16 16v1a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V7a2 2 0 0 1 2-2h2m5.66 0H14a2 2 0 0 1 2 2v3.34l1 1L23 7v10"></path><line x1="1" y1="1" x2="23" y2="23"></line></svg>',key:'<svg class="stroked" viewBox="0 0 24 24"><path d="M21 2l-2 2m-7.61 7.61a5.5 5.5 0 1 1-7.78 7.78 5.5 5.5 0 0 1 7.78-7.78zm0 0L15.5 7.5m0 0l3 3L22 7l-3-3m-3.5 3.5L19 4"></path></svg>',meh:'<svg class="stroked" viewBox="0 0 24 24"><circle cx="12" cy="12" r="10"></circle><line x1="8" y1="15" x2="16" y2="15"></line><line x1="9" y1="9" x2="9.01" y2="9"></line><line x1="15" y1="9" x2="15.01" y2="9"></line></svg>',cornerDownRight:'<svg class="stroked" viewBox="0 0 24 24"><polyline points="15 10 20 15 15 20"></polyline><path d="M4 4v7a4 4 0 0 0 4 4h12"></path></svg>',arrowRight:'<svg class="stroked" viewBox="0 0 24 24"><line x1="5" y1="12" x2="19" y2="12"></line><polyline points="12 5 19 12 12 19"></polyline></svg>',aperture:'<svg class="stroked" viewBox="0 0 24 24"><circle cx="12" cy="12" r="10"></circle><line x1="14.31" y1="8" x2="20.05" y2="17.94"></line><line x1="9.69" y1="8" x2="21.17" y2="8"></line><line x1="7.38" y1="12" x2="13.12" y2="2.06"></line><line x1="9.69" y1="16" x2="3.95" y2="6.06"></line><line x1="14.31" y1="16" x2="2.83" y2="16"></line><line x1="16.62" y1="12" x2="10.88" y2="21.94"></line></svg>',stopCircle:'<svg class="stroked" viewBox="0 0 24 24"><circle cx="12" cy="12" r="10"></circle><rect x="9" y="9" width="6" height="6"></rect></svg>',logOut:'<svg class="stroked" viewBox="0 0 24 24"><path d="M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4"></path><polyline points="16 17 21 12 16 7"></polyline><line x1="21" y1="12" x2="9" y2="12"></line></svg>',arrowLeftCircle:'<svg class="stroked" viewBox="0 0 24 24"><circle cx="12" cy="12" r="10"></circle><polyline points="12 8 8 12 12 16"></polyline><line x1="16" y1="12" x2="8" y2="12"></line></svg>',barChart2:'<svg class="stroked" viewBox="0 0 24 24"><line x1="18" y1="20" x2="18" y2="10"></line><line x1="12" y1="20" x2="12" y2="4"></line><line x1="6" y1="20" x2="6" y2="14"></line></svg>',gitPullRequest:'<svg class="stroked" viewBox="0 0 24 24"><circle cx="18" cy="18" r="3"></circle><circle cx="6" cy="6" r="3"></circle><path d="M13 6h3a2 2 0 0 1 2 2v7"></path><line x1="6" y1="9" x2="6" y2="21"></line></svg>',minimize:'<svg class="stroked" viewBox="0 0 24 24"><path d="M8 3v3a2 2 0 0 1-2 2H3m18 0h-3a2 2 0 0 1-2-2V3m0 18v-3a2 2 0 0 1 2-2h3M3 16h3a2 2 0 0 1 2 2v3"></path></svg>',minusSquare:'<svg class="stroked" viewBox="0 0 24 24"><rect x="3" y="3" width="18" height="18" rx="2" ry="2"></rect><line x1="8" y1="12" x2="16" y2="12"></line></svg>',settings:'<svg class="stroked" viewBox="0 0 24 24"><circle cx="12" cy="12" r="3"></circle><path d="M19.4 15a1.65 1.65 0 0 0 .33 1.82l.6.06a2 2 0 0 1 0 2.83 2 2 0 0 1-2.83 0l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-2 2 2 2 0 0 1-2-2v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.6.06a2 2 0 0 1-2.83 0 2 2 0 0 1 0-2.83l.06-.06a1.65 1.65 0 0 0 .33-1.82 1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1-2-2 2 2 0 0 1 2-2h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 0-2.83 2 2 0 0 1 2.83 0l.6.06a1.65 1.65 0 0 0 1.82.33H9a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 2-2 2 2 0 0 1 2 2v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 0 2 2 0 0 1 0 2.83l-.6.06a1.65 1.65 0 0 0-.33 1.82V9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 2 2 2 2 0 0 1-2 2h-.09a1.65 1.65 0 0 0-1.51 1z"></path></svg>',cloudSnow:'<svg class="stroked" viewBox="0 0 24 24"><path d="M20 17.58A5 5 0 0 0 18 8h-1.26A8 8 0 1 0 4 16.25"></path><line x1="8" y1="16" x2="8.01" y2="16"></line><line x1="8" y1="20" x2="8.01" y2="20"></line><line x1="12" y1="18" x2="12.01" y2="18"></line><line x1="12" y1="22" x2="12.01" y2="22"></line><line x1="16" y1="16" x2="16.01" y2="16"></line><line x1="16" y1="20" x2="16.01" y2="20"></line></svg>',thumbsDown:'<svg class="stroked" viewBox="0 0 24 24"><path d="M10 15v4a3 3 0 0 0 3 3l4-9V2H5.72a2 2 0 0 0-2 1.7l-1.38 9a2 2 0 0 0 2 2.3zm7-13h2.67A2.31 2.31 0 0 1 22 4v7a2.31 2.31 0 0 1-2.33 2H17"></path></svg>',type:'<svg class="stroked" viewBox="0 0 24 24"><polyline points="4 7 4 4 20 4 20 7"></polyline><line x1="9" y1="20" x2="15" y2="20"></line><line x1="12" y1="4" x2="12" y2="20"></line></svg>',archive:'<svg class="stroked" viewBox="0 0 24 24"><polyline points="21 8 21 21 3 21 3 8"></polyline><rect x="1" y="3" width="22" height="5"></rect><line x1="10" y1="12" x2="14" y2="12"></line></svg>',phoneOutgoing:'<svg class="stroked" viewBox="0 0 24 24"><polyline points="23 7 23 1 17 1"></polyline><line x1="16" y1="8" x2="23" y2="1"></line><path d="M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z"></path></svg>',pocket:'<svg class="stroked" viewBox="0 0 24 24"><path d="M4 3h16a2 2 0 0 1 2 2v6a10 10 0 0 1-10 10A10 10 0 0 1 2 11V5a2 2 0 0 1 2-2z"></path><polyline points="8 10 12 14 16 10"></polyline></svg>',mail:'<svg class="stroked" viewBox="0 0 24 24"><path d="M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z"></path><polyline points="22,6 12,13 2,6"></polyline></svg>',shield:'<svg class="stroked" viewBox="0 0 24 24"><path d="M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z"></path></svg>',download:'<svg class="stroked" viewBox="0 0 24 24"><path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"></path><polyline points="7 10 12 15 17 10"></polyline><line x1="12" y1="15" x2="12" y2="3"></line></svg>',phoneForwarded:'<svg class="stroked" viewBox="0 0 24 24"><polyline points="19 1 23 5 19 9"></polyline><line x1="15" y1="5" x2="23" y2="5"></line><path d="M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z"></path></svg>',cornerRightDown:'<svg class="stroked" viewBox="0 0 24 24"><polyline points="10 15 15 20 20 15"></polyline><path d="M4 4h7a4 4 0 0 1 4 4v12"></path></svg>',bookOpen:'<svg class="stroked" viewBox="0 0 24 24"><path d="M2 3h6a4 4 0 0 1 4 4v14a3 3 0 0 0-3-3H2z"></path><path d="M22 3h-6a4 4 0 0 0-4 4v14a3 3 0 0 1 3-3h7z"></path></svg>',divideSquare:'<svg class="stroked" viewBox="0 0 24 24"><rect x="3" y="3" width="18" height="18" rx="2" ry="2"></rect><line x1="8" y1="12" x2="16" y2="12"></line><line x1="12" y1="16" x2="12" y2="16"></line><line x1="12" y1="8" x2="12" y2="8"></line></svg>',server:'<svg class="stroked" viewBox="0 0 24 24"><rect x="2" y="2" width="20" height="8" rx="2" ry="2"></rect><rect x="2" y="14" width="20" height="8" rx="2" ry="2"></rect><line x1="6" y1="6" x2="6.01" y2="6"></line><line x1="6" y1="18" x2="6.01" y2="18"></line></svg>',tv:'<svg class="stroked" viewBox="0 0 24 24"><rect x="2" y="7" width="20" height="15" rx="2" ry="2"></rect><polyline points="17 2 12 7 7 2"></polyline></svg>',skipForward:'<svg class="stroked" viewBox="0 0 24 24"><polygon points="5 4 15 12 5 20 5 4"></polygon><line x1="19" y1="5" x2="19" y2="19"></line></svg>',volume:'<svg class="stroked" viewBox="0 0 24 24"><polygon points="11 5 6 9 2 9 2 15 6 15 11 19 11 5"></polygon></svg>',userPlus:'<svg class="stroked" viewBox="0 0 24 24"><path d="M16 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2"></path><circle cx="8.5" cy="7" r="4"></circle><line x1="20" y1="8" x2="20" y2="14"></line><line x1="23" y1="11" x2="17" y2="11"></line></svg>',batteryCharging:'<svg class="stroked" viewBox="0 0 24 24"><path d="M5 18H3a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h3.19M15 6h2a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2h-3.19"></path><line x1="23" y1="13" x2="23" y2="11"></line><polyline points="11 6 7 12 13 12 9 18"></polyline></svg>',layers:'<svg class="stroked" viewBox="0 0 24 24"><polygon points="12 2 2 7 12 12 22 7 12 2"></polygon><polyline points="2 17 12 22 22 17"></polyline><polyline points="2 12 12 17 22 12"></polyline></svg>',slash:'<svg class="stroked" viewBox="0 0 24 24"><circle cx="12" cy="12" r="10"></circle><line x1="4.93" y1="4.93" x2="19.07" y2="19.07"></line></svg>',radio:'<svg class="stroked" viewBox="0 0 24 24"><circle cx="12" cy="12" r="2"></circle><path d="M16.24 7.76a6 6 0 0 1 0 8.49m-8.48-.01a6 6 0 0 1 0-8.49m11.31-2.82a10 10 0 0 1 0 14.14m-14.14 0a10 10 0 0 1 0-14.14"></path></svg>',book:'<svg class="stroked" viewBox="0 0 24 24"><path d="M4 19.5A2.5 2.5 0 0 1 6.5 17H20"></path><path d="M6.5 2H20v20H6.5A2.5 2.5 0 0 1 4 19.5v-15A2.5 2.5 0 0 1 6.5 2z"></path></svg>',userMinus:'<svg class="stroked" viewBox="0 0 24 24"><path d="M16 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2"></path><circle cx="8.5" cy="7" r="4"></circle><line x1="23" y1="11" x2="17" y2="11"></line></svg>',bell:'<svg class="stroked" viewBox="0 0 24 24"><path d="M18 8A6 6 0 0 0 6 8c0 7-3 9-3 9h18s-3-2-3-9"></path><path d="M13.73 21a2 2 0 0 1-3.46 0"></path></svg>',gitBranch:'<svg class="stroked" viewBox="0 0 24 24"><line x1="6" y1="3" x2="6" y2="15"></line><circle cx="18" cy="6" r="3"></circle><circle cx="6" cy="18" r="3"></circle><path d="M18 9a9 9 0 0 1-9 9"></path></svg>',coffee:'<svg class="stroked" viewBox="0 0 24 24"><path d="M18 8h1a4 4 0 0 1 0 8h-1"></path><path d="M2 8h16v9a4 4 0 0 1-4 4H6a4 4 0 0 1-4-4V8z"></path><line x1="6" y1="1" x2="6" y2="4"></line><line x1="10" y1="1" x2="10" y2="4"></line><line x1="14" y1="1" x2="14" y2="4"></line></svg>',code:'<svg class="stroked" viewBox="0 0 24 24"><polyline points="16 18 22 12 16 6"></polyline><polyline points="8 6 2 12 8 18"></polyline></svg>',thermometer:'<svg class="stroked" viewBox="0 0 24 24"><path d="M14 14.76V3.5a2.5 2.5 0 0 0-5 0v11.26a4.5 4.5 0 1 0 5 0z"></path></svg>',cast:'<svg class="stroked" viewBox="0 0 24 24"><path d="M2 16.1A5 5 0 0 1 5.9 20M2 12.05A9 9 0 0 1 9.95 20M2 8V6a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2h-6"></path><line x1="2" y1="20" x2="2.01" y2="20"></line></svg>',flag:'<svg class="stroked" viewBox="0 0 24 24"><path d="M4 15s1-1 4-1 5 2 8 2 4-1 4-1V3s-1 1-4 1-5-2-8-2-4 1-4 1z"></path><line x1="4" y1="22" x2="4" y2="15"></line></svg>',eyeOff:'<svg class="stroked" viewBox="0 0 24 24"><path d="M17.94 17.94A10.07 10.07 0 0 1 12 20c-7 0-11-8-11-8a18.45 18.45 0 0 1 5.06-5.94M9.9 4.24A9.12 9.12 0 0 1 12 4c7 0 11 8 11 8a18.5 18.5 0 0 1-2.16 3.19m-6.72-1.07a3 3 0 1 1-4.24-4.24"></path><line x1="1" y1="1" x2="23" y2="23"></line></svg>',battery:'<svg class="stroked" viewBox="0 0 24 24"><rect x="1" y="6" width="18" height="12" rx="2" ry="2"></rect><line x1="23" y1="13" x2="23" y2="11"></line></svg>',disc:'<svg class="stroked" viewBox="0 0 24 24"><circle cx="12" cy="12" r="10"></circle><circle cx="12" cy="12" r="3"></circle></svg>',frown:'<svg class="stroked" viewBox="0 0 24 24"><circle cx="12" cy="12" r="10"></circle><path d="M16 16s-1.5-2-4-2-4 2-4 2"></path><line x1="9" y1="9" x2="9.01" y2="9"></line><line x1="15" y1="9" x2="15.01" y2="9"></line></svg>',tool:'<svg class="stroked" viewBox="0 0 24 24"><path d="M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z"></path></svg>',cpu:'<svg class="stroked" viewBox="0 0 24 24"><rect x="4" y="4" width="16" height="16" rx="2" ry="2"></rect><rect x="9" y="9" width="6" height="6"></rect><line x1="9" y1="1" x2="9" y2="4"></line><line x1="15" y1="1" x2="15" y2="4"></line><line x1="9" y1="20" x2="9" y2="23"></line><line x1="15" y1="20" x2="15" y2="23"></line><line x1="20" y1="9" x2="23" y2="9"></line><line x1="20" y1="14" x2="23" y2="14"></line><line x1="1" y1="9" x2="4" y2="9"></line><line x1="1" y1="14" x2="4" y2="14"></line></svg>',bold:'<svg class="stroked" viewBox="0 0 24 24"><path d="M6 4h8a4 4 0 0 1 4 4 4 4 0 0 1-4 4H6z"></path><path d="M6 12h9a4 4 0 0 1 4 4 4 4 0 0 1-4 4H6z"></path></svg>',hash:'<svg class="stroked" viewBox="0 0 24 24"><line x1="4" y1="9" x2="20" y2="9"></line><line x1="4" y1="15" x2="20" y2="15"></line><line x1="10" y1="3" x2="8" y2="21"></line><line x1="16" y1="3" x2="14" y2="21"></line></svg>',share2:'<svg class="stroked" viewBox="0 0 24 24"><circle cx="18" cy="5" r="3"></circle><circle cx="6" cy="12" r="3"></circle><circle cx="18" cy="19" r="3"></circle><line x1="8.59" y1="13.51" x2="15.42" y2="17.49"></line><line x1="15.41" y1="6.51" x2="8.59" y2="10.49"></line></svg>',plus:'<svg class="stroked" viewBox="0 0 24 24"><line x1="12" y1="5" x2="12" y2="19"></line><line x1="5" y1="12" x2="19" y2="12"></line></svg>',check:'<svg class="stroked" viewBox="0 0 24 24"><polyline points="20 6 9 17 4 12"></polyline></svg>',rotateCcw:'<svg class="stroked" viewBox="0 0 24 24"><polyline points="1 4 1 10 7 10"></polyline><path d="M3.51 15a9 9 0 1 0 2.13-9.36L1 10"></path></svg>',hardDrive:'<svg class="stroked" viewBox="0 0 24 24"><line x1="22" y1="12" x2="2" y2="12"></line><path d="M5.45 5.11L2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z"></path><line x1="6" y1="16" x2="6.01" y2="16"></line><line x1="10" y1="16" x2="10.01" y2="16"></line></svg>',bluetooth:'<svg class="stroked" viewBox="0 0 24 24"><polyline points="6.5 6.5 17.5 17.5 12 23 12 1 17.5 6.5 6.5 17.5"></polyline></svg>',pieChart:'<svg class="stroked" viewBox="0 0 24 24"><path d="M21.21 15.89A10 10 0 1 1 8 2.83"></path><path d="M22 12A10 10 0 0 0 12 2v10z"></path></svg>',headphones:'<svg class="stroked" viewBox="0 0 24 24"><path d="M3 18v-6a9 9 0 0 1 18 0v6"></path><path d="M21 19a2 2 0 0 1-2 2h-1a2 2 0 0 1-2-2v-3a2 2 0 0 1 2-2h3zM3 19a2 2 0 0 0 2 2h1a2 2 0 0 0 2-2v-3a2 2 0 0 0-2-2H3z"></path></svg>',rss:'<svg class="stroked" viewBox="0 0 24 24"><path d="M4 11a9 9 0 0 1 9 9"></path><path d="M4 4a16 16 0 0 1 16 16"></path><circle cx="5" cy="19" r="1"></circle></svg>',wifi:'<svg class="stroked" viewBox="0 0 24 24"><path d="M5 12.55a11 11 0 0 1 14.08 0"></path><path d="M1.42 9a16 16 0 0 1 21.16 0"></path><path d="M8.53 16.11a6 6 0 0 1 6.95 0"></path><line x1="12" y1="20" x2="12.01" y2="20"></line></svg>',cornerUpLeft:'<svg class="stroked" viewBox="0 0 24 24"><polyline points="9 14 4 9 9 4"></polyline><path d="M20 20v-7a4 4 0 0 0-4-4H4"></path></svg>',watch:'<svg class="stroked" viewBox="0 0 24 24"><circle cx="12" cy="12" r="7"></circle><polyline points="12 9 12 12 13.5 13.5"></polyline><path d="M16.51 17.35l-.35 3.83a2 2 0 0 1-2 1.82H9.83a2 2 0 0 1-2-1.82l-.35-3.83m.01-10.7l.35-3.83A2 2 0 0 1 9.83 1h4.35a2 2 0 0 1 2 1.82l.35 3.83"></path></svg>',info:'<svg class="stroked" viewBox="0 0 24 24"><circle cx="12" cy="12" r="10"></circle><line x1="12" y1="16" x2="12" y2="12"></line><line x1="12" y1="8" x2="12.01" y2="8"></line></svg>',userX:'<svg class="stroked" viewBox="0 0 24 24"><path d="M16 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2"></path><circle cx="8.5" cy="7" r="4"></circle><line x1="18" y1="8" x2="23" y2="13"></line><line x1="23" y1="8" x2="18" y2="13"></line></svg>',loader:'<svg class="stroked" viewBox="0 0 24 24"><line x1="12" y1="2" x2="12" y2="6"></line><line x1="12" y1="18" x2="12" y2="22"></line><line x1="4.93" y1="4.93" x2="7.76" y2="7.76"></line><line x1="16.24" y1="16.24" x2="19.07" y2="19.07"></line><line x1="2" y1="12" x2="6" y2="12"></line><line x1="18" y1="12" x2="22" y2="12"></line><line x1="4.93" y1="19.07" x2="7.76" y2="16.24"></line><line x1="16.24" y1="7.76" x2="19.07" y2="4.93"></line></svg>',refreshCcw:'<svg class="stroked" viewBox="0 0 24 24"><polyline points="1 4 1 10 7 10"></polyline><polyline points="23 20 23 14 17 14"></polyline><path d="M20.49 9A9 9 0 0 0 5.64 5.64L1 10m22 4l-4.64 4.36A9 9 0 0 1 3.51 15"></path></svg>',folderPlus:'<svg class="stroked" viewBox="0 0 24 24"><path d="M22 19a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h5l2 3h9a2 2 0 0 1 2 2z"></path><line x1="12" y1="11" x2="12" y2="17"></line><line x1="9" y1="14" x2="15" y2="14"></line></svg>',gitMerge:'<svg class="stroked" viewBox="0 0 24 24"><circle cx="18" cy="18" r="3"></circle><circle cx="6" cy="6" r="3"></circle><path d="M6 21V9a9 9 0 0 0 9 9"></path></svg>',mic:'<svg class="stroked" viewBox="0 0 24 24"><path d="M12 1a3 3 0 0 0-3 3v8a3 3 0 0 0 6 0V4a3 3 0 0 0-3-3z"></path><path d="M19 10v2a7 7 0 0 1-14 0v-2"></path><line x1="12" y1="19" x2="12" y2="23"></line><line x1="8" y1="23" x2="16" y2="23"></line></svg>',copy:'<svg class="stroked" viewBox="0 0 24 24"><rect x="9" y="9" width="13" height="13" rx="2" ry="2"></rect><path d="M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"></path></svg>',zoomIn:'<svg class="stroked" viewBox="0 0 24 24"><circle cx="11" cy="11" r="8"></circle><line x1="21" y1="21" x2="16.65" y2="16.65"></line><line x1="11" y1="8" x2="11" y2="14"></line><line x1="8" y1="11" x2="14" y2="11"></line></svg>',arrowRightCircle:'<svg class="stroked" viewBox="0 0 24 24"><circle cx="12" cy="12" r="10"></circle><polyline points="12 16 16 12 12 8"></polyline><line x1="8" y1="12" x2="16" y2="12"></line></svg>',alignRight:'<svg class="stroked" viewBox="0 0 24 24"><line x1="21" y1="10" x2="7" y2="10"></line><line x1="21" y1="6" x2="3" y2="6"></line><line x1="21" y1="14" x2="3" y2="14"></line><line x1="21" y1="18" x2="7" y2="18"></line></svg>',image:'<svg class="stroked" viewBox="0 0 24 24"><rect x="3" y="3" width="18" height="18" rx="2" ry="2"></rect><circle cx="8.5" cy="8.5" r="1.5"></circle><polyline points="21 15 16 10 5 21"></polyline></svg>',maximize2:'<svg class="stroked" viewBox="0 0 24 24"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" y1="3" x2="14" y2="10"></line><line x1="3" y1="21" x2="10" y2="14"></line></svg>',checkCircle:'<svg class="stroked" viewBox="0 0 24 24"><path d="M22 11.08V12a10 10 0 1 1-5.93-9.14"></path><polyline points="22 4 12 14.01 9 11.01"></polyline></svg>',sunset:'<svg class="stroked" viewBox="0 0 24 24"><path d="M17 18a5 5 0 0 0-10 0"></path><line x1="12" y1="9" x2="12" y2="2"></line><line x1="4.22" y1="10.22" x2="5.64" y2="11.64"></line><line x1="1" y1="18" x2="3" y2="18"></line><line x1="21" y1="18" x2="23" y2="18"></line><line x1="18.36" y1="11.64" x2="19.78" y2="10.22"></line><line x1="23" y1="22" x2="1" y2="22"></line><polyline points="16 5 12 9 8 5"></polyline></svg>',save:'<svg class="stroked" viewBox="0 0 24 24"><path d="M19 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11l5 5v11a2 2 0 0 1-2 2z"></path><polyline points="17 21 17 13 7 13 7 21"></polyline><polyline points="7 3 7 8 15 8"></polyline></svg>',smile:'<svg class="stroked" viewBox="0 0 24 24"><circle cx="12" cy="12" r="10"></circle><path d="M8 14s1.5 2 4 2 4-2 4-2"></path><line x1="9" y1="9" x2="9.01" y2="9"></line><line x1="15" y1="9" x2="15.01" y2="9"></line></svg>',navigation:'<svg class="stroked" viewBox="0 0 24 24"><polygon points="3 11 22 2 13 21 11 13 3 11"></polygon></svg>',cloudLightning:'<svg class="stroked" viewBox="0 0 24 24"><path d="M19 16.9A5 5 0 0 0 18 7h-1.26a8 8 0 1 0-11.62 9"></path><polyline points="13 11 9 17 15 17 11 23"></polyline></svg>',paperclip:'<svg class="stroked" viewBox="0 0 24 24"><path d="M21.44 11.05l-9.19 9.19a6 6 0 0 1-8.49-8.49l9.19-9.19a4 4 0 0 1 5.66 5.66l-9.2 9.19a2 2 0 0 1-2.83-2.83l8.49-8.48"></path></svg>',fastForward:'<svg class="stroked" viewBox="0 0 24 24"><polygon points="13 19 22 12 13 5 13 19"></polygon><polygon points="2 19 11 12 2 5 2 19"></polygon></svg>',xSquare:'<svg class="stroked" viewBox="0 0 24 24"><rect x="3" y="3" width="18" height="18" rx="2" ry="2"></rect><line x1="9" y1="9" x2="15" y2="15"></line><line x1="15" y1="9" x2="9" y2="15"></line></svg>',award:'<svg class="stroked" viewBox="0 0 24 24"><circle cx="12" cy="8" r="7"></circle><polyline points="8.21 13.89 7 23 12 20 17 23 15.79 13.88"></polyline></svg>',zoomOut:'<svg class="stroked" viewBox="0 0 24 24"><circle cx="11" cy="11" r="8"></circle><line x1="21" y1="21" x2="16.65" y2="16.65"></line><line x1="8" y1="11" x2="14" y2="11"></line></svg>',box:'<svg class="stroked" viewBox="0 0 24 24"><path d="M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z"></path><polyline points="3.27 6.96 12 12.01 20.73 6.96"></polyline><line x1="12" y1="22.08" x2="12" y2="12"></line></svg>',thumbsUp:'<svg class="stroked" viewBox="0 0 24 24"><path d="M14 9V5a3 3 0 0 0-3-3l-4 9v11h11.28a2 2 0 0 0 2-1.7l1.38-9a2 2 0 0 0-2-2.3zM7 22H4a2 2 0 0 1-2-2v-7a2 2 0 0 1 2-2h3"></path></svg>',percent:'<svg class="stroked" viewBox="0 0 24 24"><line x1="19" y1="5" x2="5" y2="19"></line><circle cx="6.5" cy="6.5" r="2.5"></circle><circle cx="17.5" cy="17.5" r="2.5"></circle></svg>',sidebar:'<svg class="stroked" viewBox="0 0 24 24"><rect x="3" y="3" width="18" height="18" rx="2" ry="2"></rect><line x1="9" y1="3" x2="9" y2="21"></line></svg>',square:'<svg class="stroked" viewBox="0 0 24 24"><rect x="3" y="3" width="18" height="18" rx="2" ry="2"></rect></svg>',play:'<svg class="stroked" viewBox="0 0 24 24"><polygon points="5 3 19 12 5 21 5 3"></polygon></svg>',gitCommit:'<svg class="stroked" viewBox="0 0 24 24"><circle cx="12" cy="12" r="4"></circle><line x1="1.05" y1="12" x2="7" y2="12"></line><line x1="17.01" y1="12" x2="22.96" y2="12"></line></svg>',table:'<svg class="stroked" viewBox="0 0 24 24"><path d="M9 3H5a2 2 0 0 0-2 2v4m6-6h10a2 2 0 0 1 2 2v4M9 3v18m0 0h10a2 2 0 0 0 2-2V9M9 21H5a2 2 0 0 1-2-2V9m0 0h18"></path></svg>',send:'<svg class="stroked" viewBox="0 0 24 24"><line x1="22" y1="2" x2="11" y2="13"></line><polygon points="22 2 15 22 11 13 2 9 22 2"></polygon></svg>',phoneCall:'<svg class="stroked" viewBox="0 0 24 24"><path d="M15.05 5A5 5 0 0 1 19 8.95M15.05 1A9 9 0 0 1 23 8.94m-1 7.98v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z"></path></svg>',speaker:'<svg class="stroked" viewBox="0 0 24 24"><rect x="4" y="2" width="16" height="20" rx="2" ry="2"></rect><circle cx="12" cy="14" r="4"></circle><line x1="12" y1="6" x2="12.01" y2="6"></line></svg>',facebook:'<svg class="filled" version="1" viewBox="0 0 512 512"><path d="M464 0h-416c-26 0-48 22-48 48v416c0 26 22 48 48 48h208v-224h-64v-64h64v-32c0-53 43-96 96-96h64v64h-64c-18 0-32 14-32 32v32h96l-16 64h-80v224h144c26 0 48-22 48-48v-416c0-26-22-48-48-48z"></path></svg> ',codesandbox:'<svg class="stroked" viewBox="0 0 24 24"><path d="M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z"></path><polyline points="7.5 4.21 12 6.81 16.5 4.21"></polyline><polyline points="7.5 19.79 7.5 14.6 3 12"></polyline><polyline points="21 12 16.5 14.6 16.5 19.79"></polyline><polyline points="3.27 6.96 12 12.01 20.73 6.96"></polyline><line x1="12" y1="22.08" x2="12" y2="12"></line></svg>',camera:'<svg class="stroked" viewBox="0 0 24 24"><path d="M23 19a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h4l2-3h6l2 3h4a2 2 0 0 1 2 2z"></path><circle cx="12" cy="13" r="4"></circle></svg>',link2:'<svg class="stroked" viewBox="0 0 24 24"><path d="M15 7h3a5 5 0 0 1 5 5 5 5 0 0 1-5 5h-3m-6 0H6a5 5 0 0 1-5-5 5 5 0 0 1 5-5h3"></path><line x1="8" y1="12" x2="16" y2="12"></line></svg>',printer:'<svg class="stroked" viewBox="0 0 24 24"><polyline points="6 9 6 2 18 2 18 9"></polyline><path d="M6 18H4a2 2 0 0 1-2-2v-5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2h-2"></path><rect x="6" y="14" width="12" height="8"></rect></svg>',folderMinus:'<svg class="stroked" viewBox="0 0 24 24"><path d="M22 19a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h5l2 3h9a2 2 0 0 1 2 2z"></path><line x1="9" y1="14" x2="15" y2="14"></line></svg>',arrowUpRight:'<svg class="stroked" viewBox="0 0 24 24"><line x1="7" y1="17" x2="17" y2="7"></line><polyline points="7 7 17 7 17 17"></polyline></svg>',truck:'<svg class="stroked" viewBox="0 0 24 24"><rect x="1" y="3" width="15" height="13"></rect><polygon points="16 8 20 8 23 11 23 16 16 16 16 8"></polygon><circle cx="5.5" cy="18.5" r="2.5"></circle><circle cx="18.5" cy="18.5" r="2.5"></circle></svg>',lifeBuoy:'<svg class="stroked" viewBox="0 0 24 24"><circle cx="12" cy="12" r="10"></circle><circle cx="12" cy="12" r="4"></circle><line x1="4.93" y1="4.93" x2="9.17" y2="9.17"></line><line x1="14.83" y1="14.83" x2="19.07" y2="19.07"></line><line x1="14.83" y1="9.17" x2="19.07" y2="4.93"></line><line x1="14.83" y1="9.17" x2="18.36" y2="5.64"></line><line x1="4.93" y1="19.07" x2="9.17" y2="14.83"></line></svg>',penTool:'<svg class="stroked" viewBox="0 0 24 24"><path d="M12 19l7-7 3 3-7 7-3-3z"></path><path d="M18 13l-1.5-7.5L2 2l3.5 14.5L13 18l5-5z"></path><path d="M2 2l7.59 7.59"></path><circle cx="11" cy="11" r="2"></circle></svg>',atSign:'<svg class="stroked" viewBox="0 0 24 24"><circle cx="12" cy="12" r="4"></circle><path d="M16 8v5a3 3 0 0 0 6 0v-1a10 10 0 1 0-3.92 7.94"></path></svg>',feather:'<svg class="stroked" viewBox="0 0 24 24"><path d="M20.24 12.24a6 6 0 0 0-8.49-8.49L5 10.5V19h8.5z"></path><line x1="16" y1="8" x2="2" y2="22"></line><line x1="17.5" y1="15" x2="9" y2="15"></line></svg>',trash:'<svg class="stroked" viewBox="0 0 24 24"><polyline points="3 6 5 6 21 6"></polyline><path d="M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2"></path></svg>',wifiOff:'<svg class="stroked" viewBox="0 0 24 24"><line x1="1" y1="1" x2="23" y2="23"></line><path d="M16.72 11.06A10.94 10.94 0 0 1 19 12.55"></path><path d="M5 12.55a10.94 10.94 0 0 1 5.17-2.39"></path><path d="M10.71 5.05A16 16 0 0 1 22.58 9"></path><path d="M1.42 9a15.91 15.91 0 0 1 4.7-2.88"></path><path d="M8.53 16.11a6 6 0 0 1 6.95 0"></path><line x1="12" y1="20" x2="12.01" y2="20"></line></svg>',cornerLeftDown:'<svg class="stroked" viewBox="0 0 24 24"><polyline points="14 15 9 20 4 15"></polyline><path d="M20 4h-7a4 4 0 0 0-4 4v12"></path></svg>',dollarSign:'<svg class="stroked" viewBox="0 0 24 24"><line x1="12" y1="1" x2="12" y2="23"></line><path d="M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6"></path></svg>',star:'<svg class="stroked" viewBox="0 0 24 24"><polygon points="12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2"></polygon></svg>',cloudOff:'<svg class="stroked" viewBox="0 0 24 24"><path d="M22.61 16.95A5 5 0 0 0 18 10h-1.26a8 8 0 0 0-7.05-6M5 5a8 8 0 0 0 4 15h9a5 5 0 0 0 1.7-.3"></path><line x1="1" y1="1" x2="23" y2="23"></line></svg>',sun:'<svg class="stroked" viewBox="0 0 24 24"><circle cx="12" cy="12" r="5"></circle><line x1="12" y1="1" x2="12" y2="3"></line><line x1="12" y1="21" x2="12" y2="23"></line><line x1="4.22" y1="4.22" x2="5.64" y2="5.64"></line><line x1="18.36" y1="18.36" x2="19.78" y2="19.78"></line><line x1="1" y1="12" x2="3" y2="12"></line><line x1="21" y1="12" x2="23" y2="12"></line><line x1="4.22" y1="19.78" x2="5.64" y2="18.36"></line><line x1="18.36" y1="5.64" x2="19.78" y2="4.22"></line></svg>',messageSquare:'<svg class="stroked" viewBox="0 0 24 24"><path d="M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"></path></svg>',edit:'<svg class="stroked" viewBox="0 0 24 24"><path d="M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7"></path><path d="M18.5 2.5a2.12 2.12 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z"></path></svg>',anchor:'<svg class="stroked" viewBox="0 0 24 24"><circle cx="12" cy="5" r="3"></circle><line x1="12" y1="22" x2="12" y2="8"></line><path d="M5 12H2a10 10 0 0 0 20 0h-3"></path></svg>',alertCircle:'<svg class="stroked" viewBox="0 0 24 24"><circle cx="12" cy="12" r="10"></circle><line x1="12" y1="8" x2="12" y2="12"></line><line x1="12" y1="16" x2="12.01" y2="16"></line></svg>',chevronsUp:'<svg class="stroked" viewBox="0 0 24 24"><polyline points="17 11 12 6 7 11"></polyline><polyline points="17 18 12 13 7 18"></polyline></svg>',uploadCloud:'<svg class="stroked" viewBox="0 0 24 24"><polyline points="16 16 12 12 8 16"></polyline><line x1="12" y1="12" x2="12" y2="21"></line><path d="M20.39 18.39A5 5 0 0 0 18 9h-1.26A8 8 0 1 0 3 16.3"></path><polyline points="16 16 12 12 8 16"></polyline></svg>',twitch:'<svg class="stroked" viewBox="0 0 24 24"><path d="M21 2H3v16h5v4l4-4h5l4-4V2zm-10 9V7m5 4V7"></path></svg>',youtube:'<svg class="filled" version="1" viewBox="0 0 512 512"><g></g><path d="M507 154c0 0-5-35-20-51-20-20-41-21-51-22-72-5-179-5-179-5h-0c0 0-108 0-179 5-10 1-32 1-51 22-15 16-20 51-20 51s-5 41-5 83v39c0 41 5 83 5 83s5 35 20 51c20 20 45 20 57 22 41 4 174 5 174 5s108-0 179-5c10-1 32-1 51-22 15-16 20-51 20-51s5-41 5-83v-39c-0-41-5-83-5-83zM203 322v-144l138 72-138 72z"></path></svg> ',unlock:'<svg class="stroked" viewBox="0 0 24 24"><rect x="3" y="11" width="18" height="11" rx="2" ry="2"></rect><path d="M7 11V7a5 5 0 0 1 9.9-1"></path></svg>',compass:'<svg class="stroked" viewBox="0 0 24 24"><circle cx="12" cy="12" r="10"></circle><polygon points="16.24 7.76 14.12 14.12 7.76 16.24 9.88 9.88 16.24 7.76"></polygon></svg>',plusCircle:'<svg class="stroked" viewBox="0 0 24 24"><circle cx="12" cy="12" r="10"></circle><line x1="12" y1="8" x2="12" y2="16"></line><line x1="8" y1="12" x2="16" y2="12"></line></svg>',creditCard:'<svg class="stroked" viewBox="0 0 24 24"><rect x="1" y="4" width="22" height="16" rx="2" ry="2"></rect><line x1="1" y1="10" x2="23" y2="10"></line></svg>',cloudRain:'<svg class="stroked" viewBox="0 0 24 24"><line x1="16" y1="13" x2="16" y2="21"></line><line x1="8" y1="13" x2="8" y2="21"></line><line x1="12" y1="15" x2="12" y2="23"></line><path d="M20 16.58A5 5 0 0 0 18 7h-1.26A8 8 0 1 0 4 15.25"></path></svg>',trash2:'<svg class="stroked" viewBox="0 0 24 24"><polyline points="3 6 5 6 21 6"></polyline><path d="M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2"></path><line x1="10" y1="11" x2="10" y2="17"></line><line x1="14" y1="11" x2="14" y2="17"></line></svg>',skipBack:'<svg class="stroked" viewBox="0 0 24 24"><polygon points="19 20 9 12 19 4 19 20"></polygon><line x1="5" y1="19" x2="5" y2="5"></line></svg>',filePlus:'<svg class="stroked" viewBox="0 0 24 24"><path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"></path><polyline points="14 2 14 8 20 8"></polyline><line x1="12" y1="18" x2="12" y2="12"></line><line x1="9" y1="15" x2="15" y2="15"></line></svg>',delete:'<svg class="stroked" viewBox="0 0 24 24"><path d="M21 4H8l-7 8 7 8h13a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2z"></path><line x1="18" y1="9" x2="12" y2="15"></line><line x1="12" y1="9" x2="18" y2="15"></line></svg>',command:'<svg class="stroked" viewBox="0 0 24 24"><path d="M18 3a3 3 0 0 0-3 3v12a3 3 0 0 0 3 3 3 3 0 0 0 3-3 3 3 0 0 0-3-3H6a3 3 0 0 0-3 3 3 3 0 0 0 3 3 3 3 0 0 0 3-3V6a3 3 0 0 0-3-3 3 3 0 0 0-3 3 3 3 0 0 0 3 3h12a3 3 0 0 0 3-3 3 3 0 0 0-3-3z"></path></svg>',clock:'<svg class="stroked" viewBox="0 0 24 24"><circle cx="12" cy="12" r="10"></circle><polyline points="12 6 12 12 16 14"></polyline></svg>',octagon:'<svg class="stroked" viewBox="0 0 24 24"><polygon points="7.86 2 16.14 2 22 7.86 22 16.14 16.14 22 7.86 22 2 16.14 2 7.86 7.86 2"></polygon></svg>',phone:'<svg class="stroked" viewBox="0 0 24 24"><path d="M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z"></path></svg>',eye:'<svg class="stroked" viewBox="0 0 24 24"><path d="M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z"></path><circle cx="12" cy="12" r="3"></circle></svg>',phoneOff:'<svg class="stroked" viewBox="0 0 24 24"><path d="M10.68 13.31a16 16 0 0 0 3.41 2.6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7 2 2 0 0 1 1.72 2v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.42 19.42 0 0 1-3.33-2.67m-2.67-3.34a19.79 19.79 0 0 1-3.07-8.63A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91"></path><line x1="23" y1="1" x2="1" y2="23"></line></svg>',codepen:'<svg class="stroked" viewBox="0 0 24 24"><polygon points="12 2 22 8.5 22 15.5 12 22 2 15.5 2 8.5 12 2"></polygon><line x1="12" y1="22" x2="12" y2="15.5"></line><polyline points="22 8.5 12 15.5 2 8.5"></polyline><polyline points="2 15.5 12 8.5 22 15.5"></polyline><line x1="12" y1="2" x2="12" y2="8.5"></line></svg>',dribbble:'<svg class="stroked" viewBox="0 0 24 24"><circle cx="12" cy="12" r="10"></circle><path d="M8.56 2.75c4.37 6.03 6.02 9.42 8.03 17.72m2.54-15.38c-3.72 4.35-8.94 5.66-16.88 5.85m19.5 1.9c-3.5-.93-6.63-.82-8.94 0-2.58.92-5.01 2.86-7.44 6.32"></path></svg>',gift:'<svg class="stroked" viewBox="0 0 24 24"><polyline points="20 12 20 22 4 22 4 12"></polyline><rect x="2" y="7" width="20" height="5"></rect><line x1="12" y1="22" x2="12" y2="7"></line><path d="M12 7H7.5a2.5 2.5 0 0 1 0-5C11 2 12 7 12 7z"></path><path d="M12 7h4.5a2.5 2.5 0 0 0 0-5C13 2 12 7 12 7z"></path></svg>',externalLink:'<svg class="stroked" viewBox="0 0 24 24"><path d="M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"></path><polyline points="15 3 21 3 21 9"></polyline><line x1="10" y1="14" x2="21" y2="3"></line></svg>',zap:'<svg class="stroked" viewBox="0 0 24 24"><polygon points="13 2 3 14 12 14 11 22 21 10 12 10 13 2"></polygon></svg>',trello:'<svg class="stroked" viewBox="0 0 24 24"><rect x="3" y="3" width="18" height="18" rx="2" ry="2"></rect><rect x="7" y="7" width="3" height="9"></rect><rect x="14" y="7" width="3" height="5"></rect></svg>',moreVertical:'<svg class="stroked" viewBox="0 0 24 24"><circle cx="12" cy="12" r="1"></circle><circle cx="12" cy="5" r="1"></circle><circle cx="12" cy="19" r="1"></circle></svg>',micOff:'<svg class="stroked" viewBox="0 0 24 24"><line x1="1" y1="1" x2="23" y2="23"></line><path d="M9 9v3a3 3 0 0 0 5.12 2.12M15 9.34V4a3 3 0 0 0-5.94-.6"></path><path d="M17 16.95A7 7 0 0 1 5 12v-2m14 0v2a7 7 0 0 1-.11 1.23"></path><line x1="12" y1="19" x2="12" y2="23"></line><line x1="8" y1="23" x2="16" y2="23"></line></svg>',share:'<svg class="stroked" viewBox="0 0 24 24"><path d="M4 12v8a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-8"></path><polyline points="16 6 12 2 8 6"></polyline><line x1="12" y1="2" x2="12" y2="15"></line></svg>',arrowUp:'<svg class="stroked" viewBox="0 0 24 24"><line x1="12" y1="19" x2="12" y2="5"></line><polyline points="5 12 12 5 19 12"></polyline></svg>',bellOff:'<svg class="stroked" viewBox="0 0 24 24"><path d="M13.73 21a2 2 0 0 1-3.46 0"></path><path d="M18.63 13A17.89 17.89 0 0 1 18 8"></path><path d="M6.26 6.26A5.86 5.86 0 0 0 6 8c0 7-3 9-3 9h14"></path><path d="M18 8a6 6 0 0 0-9.33-5"></path><line x1="1" y1="1" x2="23" y2="23"></line></svg>',linkedin:'<svg class="stroked" viewBox="0 0 24 24"><path d="M16 8a6 6 0 0 1 6 6v7h-4v-7a2 2 0 0 0-2-2 2 2 0 0 0-2 2v7h-4v-7a6 6 0 0 1 6-6z"></path><rect x="2" y="9" width="4" height="12"></rect><circle cx="4" cy="4" r="2"></circle></svg>',video:'<svg class="stroked" viewBox="0 0 24 24"><polygon points="23 7 16 12 23 17 23 7"></polygon><rect x="1" y="5" width="15" height="14" rx="2" ry="2"></rect></svg>',divideCircle:'<svg class="stroked" viewBox="0 0 24 24"><line x1="8" y1="12" x2="16" y2="12"></line><line x1="12" y1="16" x2="12" y2="16"></line><line x1="12" y1="8" x2="12" y2="8"></line><circle cx="12" cy="12" r="10"></circle></svg>',activity:'<svg class="stroked" viewBox="0 0 24 24"><polyline points="22 12 18 12 15 21 9 3 6 12 2 12"></polyline></svg>',twitter:'<svg class="stroked" viewBox="0 0 24 24"><path d="M23 3a10.9 10.9 0 0 1-3.14 1.53 4.48 4.48 0 0 0-7.86 3v1A10.66 10.66 0 0 1 3 4s-4 9 5 13a11.64 11.64 0 0 1-7 2c9 5 20 0 20-11.5a4.5 4.5 0 0 0-.08-.83A7.72 7.72 0 0 0 23 3z"></path></svg>',mapPin:'<svg class="stroked" viewBox="0 0 24 24"><path d="M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z"></path><circle cx="12" cy="10" r="3"></circle></svg>',filter:'<svg class="stroked" viewBox="0 0 24 24"><polygon points="22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3"></polygon></svg>',phoneIncoming:'<svg class="stroked" viewBox="0 0 24 24"><polyline points="16 2 16 8 22 8"></polyline><line x1="23" y1="1" x2="16" y2="8"></line><path d="M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z"></path></svg>',italic:'<svg class="stroked" viewBox="0 0 24 24"><line x1="19" y1="4" x2="10" y2="4"></line><line x1="14" y1="20" x2="5" y2="20"></line><line x1="15" y1="4" x2="9" y2="20"></line></svg>',chevronsLeft:'<svg class="stroked" viewBox="0 0 24 24"><polyline points="11 17 6 12 11 7"></polyline><polyline points="18 17 13 12 18 7"></polyline></svg>',calendar:'<svg class="stroked" viewBox="0 0 24 24"><rect x="3" y="4" width="18" height="18" rx="2" ry="2"></rect><line x1="16" y1="2" x2="16" y2="6"></line><line x1="8" y1="2" x2="8" y2="6"></line><line x1="3" y1="10" x2="21" y2="10"></line></svg>',globe:'<svg class="stroked" viewBox="0 0 24 24"><circle cx="12" cy="12" r="10"></circle><line x1="2" y1="12" x2="22" y2="12"></line><path d="M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z"></path></svg>',arrowLeft:'<svg class="stroked" viewBox="0 0 24 24"><line x1="19" y1="12" x2="5" y2="12"></line><polyline points="12 19 5 12 12 5"></polyline></svg>',alignCenter:'<svg class="stroked" viewBox="0 0 24 24"><line x1="18" y1="10" x2="6" y2="10"></line><line x1="21" y1="6" x2="3" y2="6"></line><line x1="21" y1="14" x2="3" y2="14"></line><line x1="18" y1="18" x2="6" y2="18"></line></svg>',minusCircle:'<svg class="stroked" viewBox="0 0 24 24"><circle cx="12" cy="12" r="10"></circle><line x1="8" y1="12" x2="16" y2="12"></line></svg>',arrowDownRight:'<svg class="stroked" viewBox="0 0 24 24"><line x1="7" y1="7" x2="17" y2="17"></line><polyline points="17 7 17 17 7 17"></polyline></svg>',framer:'<svg class="stroked" viewBox="0 0 24 24"><path d="M5 16V9h14V2H5l14 14h-7m-7 0l7 7v-7m-7 0h7"></path></svg>',volumeX:'<svg class="stroked" viewBox="0 0 24 24"><polygon points="11 5 6 9 2 9 2 15 6 15 11 19 11 5"></polygon><line x1="23" y1="9" x2="17" y2="15"></line><line x1="17" y1="9" x2="23" y2="15"></line></svg>',slack:'<svg class="stroked" viewBox="0 0 24 24"><path d="M14.5 10c-.83 0-1.5-.67-1.5-1.5v-5c0-.83.67-1.5 1.5-1.5s1.5.67 1.5 1.5v5c0 .83-.67 1.5-1.5 1.5z"></path><path d="M20.5 10H19V8.5c0-.83.67-1.5 1.5-1.5s1.5.67 1.5 1.5-.67 1.5-1.5 1.5z"></path><path d="M9.5 14c.83 0 1.5.67 1.5 1.5v5c0 .83-.67 1.5-1.5 1.5S8 21.33 8 20.5v-5c0-.83.67-1.5 1.5-1.5z"></path><path d="M3.5 14H5v1.5c0 .83-.67 1.5-1.5 1.5S2 16.33 2 15.5 2.67 14 3.5 14z"></path><path d="M14 14.5c0-.83.67-1.5 1.5-1.5h5c.83 0 1.5.67 1.5 1.5s-.67 1.5-1.5 1.5h-5c-.83 0-1.5-.67-1.5-1.5z"></path><path d="M15.5 19H14v1.5c0 .83.67 1.5 1.5 1.5s1.5-.67 1.5-1.5-.67-1.5-1.5-1.5z"></path><path d="M10 9.5C10 8.67 9.33 8 8.5 8h-5C2.67 8 2 8.67 2 9.5S2.67 11 3.5 11h5c.83 0 1.5-.67 1.5-1.5z"></path><path d="M8.5 5H10V3.5C10 2.67 9.33 2 8.5 2S7 2.67 7 3.5 7.67 5 8.5 5z"></path></svg>',cloud:'<svg class="stroked" viewBox="0 0 24 24"><path d="M18 10h-1.26A8 8 0 1 0 9 20h9a5 5 0 0 0 0-10z"></path></svg>',downloadCloud:'<svg class="stroked" viewBox="0 0 24 24"><polyline points="8 17 12 21 16 17"></polyline><line x1="12" y1="12" x2="12" y2="21"></line><path d="M20.88 18.09A5 5 0 0 0 18 9h-1.26A8 8 0 1 0 3 16.29"></path></svg>',shuffle:'<svg class="stroked" viewBox="0 0 24 24"><polyline points="16 3 21 3 21 8"></polyline><line x1="4" y1="20" x2="21" y2="3"></line><polyline points="21 16 21 21 16 21"></polyline><line x1="15" y1="15" x2="21" y2="21"></line><line x1="4" y1="4" x2="9" y2="9"></line></svg>',rewind:'<svg class="stroked" viewBox="0 0 24 24"><polygon points="11 19 2 12 11 5 11 19"></polygon><polygon points="22 19 13 12 22 5 22 19"></polygon></svg>',upload:'<svg class="stroked" viewBox="0 0 24 24"><path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"></path><polyline points="17 8 12 3 7 8"></polyline><line x1="12" y1="3" x2="12" y2="15"></line></svg>',trendingDown:'<svg class="stroked" viewBox="0 0 24 24"><polyline points="23 18 13.5 8.5 8.5 13.5 1 6"></polyline><polyline points="17 18 23 18 23 12"></polyline></svg>',pause:'<svg class="stroked" viewBox="0 0 24 24"><rect x="6" y="4" width="4" height="16"></rect><rect x="14" y="4" width="4" height="16"></rect></svg>',arrowDownCircle:'<svg class="stroked" viewBox="0 0 24 24"><circle cx="12" cy="12" r="10"></circle><polyline points="8 12 12 16 16 12"></polyline><line x1="12" y1="8" x2="12" y2="16"></line></svg>',bookmark:'<svg class="stroked" viewBox="0 0 24 24"><path d="M19 21l-7-5-7 5V5a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2z"></path></svg>',alertTriangle:'<svg class="stroked" viewBox="0 0 24 24"><path d="M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z"></path><line x1="12" y1="9" x2="12" y2="13"></line><line x1="12" y1="17" x2="12.01" y2="17"></line></svg>',userCheck:'<svg class="stroked" viewBox="0 0 24 24"><path d="M16 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2"></path><circle cx="8.5" cy="7" r="4"></circle><polyline points="17 11 19 13 23 9"></polyline></svg>',tablet:'<svg class="stroked" viewBox="0 0 24 24"><rect x="4" y="2" width="16" height="20" rx="2" ry="2"></rect><line x1="12" y1="18" x2="12.01" y2="18"></line></svg>',alertOctagon:'<svg class="stroked" viewBox="0 0 24 24"><polygon points="7.86 2 16.14 2 22 7.86 22 16.14 16.14 22 7.86 22 2 16.14 2 7.86 7.86 2"></polygon><line x1="12" y1="8" x2="12" y2="12"></line><line x1="12" y1="16" x2="12.01" y2="16"></line></svg>',menu:'<svg class="stroked" viewBox="0 0 24 24"><line x1="3" y1="12" x2="21" y2="12"></line><line x1="3" y1="6" x2="21" y2="6"></line><line x1="3" y1="18" x2="21" y2="18"></line></svg>',chrome:'<svg class="stroked" viewBox="0 0 24 24"><circle cx="12" cy="12" r="10"></circle><circle cx="12" cy="12" r="4"></circle><line x1="21.17" y1="8" x2="12" y2="8"></line><line x1="3.95" y1="6.06" x2="8.54" y2="14"></line><line x1="10.88" y1="21.94" x2="15.46" y2="14"></line></svg>',shoppingCart:'<svg class="stroked" viewBox="0 0 24 24"><circle cx="9" cy="21" r="1"></circle><circle cx="20" cy="21" r="1"></circle><path d="M1 1h4l2.68 13.39a2 2 0 0 0 2 1.61h9.72a2 2 0 0 0 2-1.61L23 6H6"></path></svg>',folder:'<svg class="stroked" viewBox="0 0 24 24"><path d="M22 19a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h5l2 3h9a2 2 0 0 1 2 2z"></path></svg>',users:'<svg class="stroked" viewBox="0 0 24 24"><path d="M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2"></path><circle cx="9" cy="7" r="4"></circle><path d="M23 21v-2a4 4 0 0 0-3-3.87"></path><path d="M16 3.13a4 4 0 0 1 0 7.75"></path></svg>',cornerDownLeft:'<svg class="stroked" viewBox="0 0 24 24"><polyline points="9 10 4 15 9 20"></polyline><path d="M20 4v7a4 4 0 0 1-4 4H4"></path></svg>',monitor:'<svg class="stroked" viewBox="0 0 24 24"><rect x="2" y="3" width="20" height="14" rx="2" ry="2"></rect><line x1="8" y1="21" x2="16" y2="21"></line><line x1="12" y1="17" x2="12" y2="21"></line></svg>',minus:'<svg class="stroked" viewBox="0 0 24 24"><line x1="5" y1="12" x2="19" y2="12"></line></svg>',helpCircle:'<svg class="stroked" viewBox="0 0 24 24"><circle cx="12" cy="12" r="10"></circle><path d="M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3"></path><line x1="12" y1="17" x2="12.01" y2="17"></line></svg>',navigation2:'<svg class="stroked" viewBox="0 0 24 24"><polygon points="12 2 19 21 12 17 5 21 12 2"></polygon></svg>',chevronLeft:'<svg class="stroked" viewBox="0 0 24 24"><polyline points="15 18 9 12 15 6"></polyline></svg>',film:'<svg class="stroked" viewBox="0 0 24 24"><rect x="2" y="2" width="20" height="20" rx="2.18" ry="2.18"></rect><line x1="7" y1="2" x2="7" y2="22"></line><line x1="17" y1="2" x2="17" y2="22"></line><line x1="2" y1="12" x2="22" y2="12"></line><line x1="2" y1="7" x2="7" y2="7"></line><line x1="2" y1="17" x2="7" y2="17"></line><line x1="17" y1="17" x2="22" y2="17"></line><line x1="17" y1="7" x2="22" y2="7"></line></svg>',moon:'<svg class="stroked" viewBox="0 0 24 24"><path d="M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z"></path></svg>',shieldOff:'<svg class="stroked" viewBox="0 0 24 24"><path d="M19.69 14a6.9 6.9 0 0 0 .31-2V5l-8-3-3.16 1.18"></path><path d="M4.73 4.73L4 5v7c0 6 8 10 8 10a20.29 20.29 0 0 0 5.62-4.38"></path><line x1="1" y1="1" x2="23" y2="23"></line></svg>',layout:'<svg class="stroked" viewBox="0 0 24 24"><rect x="3" y="3" width="18" height="18" rx="2" ry="2"></rect><line x1="3" y1="9" x2="21" y2="9"></line><line x1="9" y1="21" x2="9" y2="9"></line></svg>',mousePointer:'<svg class="stroked" viewBox="0 0 24 24"><path d="M3 3l7.07 16.97 2.51-7.39 7.39-2.51L3 3z"></path><path d="M13 13l6 6"></path></svg>',alignLeft:'<svg class="stroked" viewBox="0 0 24 24"><line x1="17" y1="10" x2="3" y2="10"></line><line x1="21" y1="6" x2="3" y2="6"></line><line x1="21" y1="14" x2="3" y2="14"></line><line x1="17" y1="18" x2="3" y2="18"></line></svg>',heart:'<svg class="stroked" viewBox="0 0 24 24"><path d="M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z"></path></svg>',trendingUp:'<svg class="stroked" viewBox="0 0 24 24"><polyline points="23 6 13.5 15.5 8.5 10.5 1 18"></polyline><polyline points="17 6 23 6 23 12"></polyline></svg>',listBullet:'<svg class="stroked" viewBox="0 0 24 24"><g><path style="" d="M21,6 C21,6,10,6,10,6"/><path style="" d="M21,12 C21,12,10,12,10,12"/><path style="" d="M21,18 C21,18,10,18,10,18"/><path style="" d="M5.5,5 C6.05,5,6.5,5.45,6.5,6 C6.5,6.55,6.05,7,5.5,7 C4.95,7,4.5,6.55,4.5,6 C4.5,5.45,4.95,5,5.5,5 z"/><path style="" d="M5.5,11 C6.05,11,6.5,11.45,6.5,12 C6.5,12.55,6.05,13,5.5,13 C4.95,13,4.5,12.55,4.5,12 C4.5,11.45,4.95,11,5.5,11 z"/><path style="" d="M5.5,17 C6.05,17,6.5,17.45,6.5,18 C6.5,18.55,6.05,19,5.5,19 C4.95,19,4.5,18.55,4.5,18 C4.5,17.45,4.95,17,5.5,17 z"/></g></svg> ',indent:'<svg class="stroked" viewBox="0 0 24 24"><g><path style="" d="M21,10 C21,10,8,10,8,10"/><path style="" d="M21,6 C21,6,8,6,8,6"/><path style="" d="M21,14 C21,14,8,14,8,14"/><path style="" d="M21,18 C21,18,8,18,8,18"/><path style="" d="M2.5,9 C2.5,9,5.5,12,5.5,12 C5.5,12,2.5,15,2.5,15"/></g></svg> ',fontBold:'<svg class="stroked" viewBox="0 0 24 24"><g><path style="" d="M13.5,11 C15.71,11,17.5,12.68,17.5,14.75 C17.5,16.82,15.71,18.5,13.5,18.5 C13.5,18.5,8.5,18.5,8.5,18.5 C8.5,18.5,8.5,3.5,8.5,3.5 C8.5,3.5,13.5,3.5,13.5,3.5 C15.71,3.5,17.5,5.18,17.5,7.25 C17.5,9.32,15.71,11,13.5,11 C13.5,11,13.5,11,13.5,11 z"/><path style="" d="M13.5,11 C13.5,11,8.5,11,8.5,11"/><path style="" d="M12.5,11 C14.71,11,16.5,12.68,16.5,14.75 C16.5,16.82,14.71,18.5,12.5,18.5 C12.5,18.5,7.5,18.5,7.5,18.5 C7.5,18.5,7.5,3.5,7.5,3.5 C7.5,3.5,12.5,3.5,12.5,3.5 C14.71,3.5,16.5,5.18,16.5,7.25 C16.5,9.32,14.71,11,12.5,11 C12.5,11,12.5,11,12.5,11 z"/><path style="" d="M12.5,11 C12.5,11,7.5,11,7.5,11"/></g></svg> ',fontItalic:'<svg class="stroked" viewBox="0 0 24 24"><g><path style="" d="M17,4.5 C17,4.5,13,4.5,13,4.5"/><path style="" d="M11,19.5 C11,19.5,7,19.5,7,19.5"/><path style="" d="M15,4.5 C15,4.5,9,19.5,9,19.5"/></g></svg> ',fontUnderline:'<svg class="stroked" viewBox="0 0 24 24"><g><path style="" d="M7.5,3.5 C7.5,3.5,7.5,10.74,7.5,13.5 C7.5,16.26,9.74,18.5,12.5,18.5 C15.26,18.5,17.5,16.26,17.5,13.5 C17.5,10.74,17.5,3.5,17.5,3.5"/><path style="" d="M7.5,21.5 C7.5,21.5,17.5,21.5,17.5,21.5"/></g></svg> ',outdent:'<svg class="stroked" viewBox="0 0 24 24"><g><path style="" d="M21,10 C21,10,8,10,8,10"/><path style="" d="M21,6 C21,6,8,6,8,6"/><path style="" d="M21,14 C21,14,8,14,8,14"/><path style="" d="M21,18 C21,18,8,18,8,18"/><path style="" d="M5.5,9 C5.5,9,2.5,12,2.5,12 C2.5,12,5.5,15,5.5,15"/></g></svg> ',listNumber:'<svg class="stroked" viewBox="0 0 24 24"><g><path style="" d="M21,6 C21,6,10,6,10,6"/><path style="" d="M21,12 C21,12,10,12,10,12"/><path style="" d="M21,18 C21,18,10,18,10,18"/><path style="" d="M4.5,5 C4.5,5,5.5,4,5.5,4 C5.5,4,5.5,8,5.5,8"/><path style="" d="M4.5,10 C4.5,10,5.5,10,5.5,10 C6.05,10,6.5,10.45,6.5,11 C6.5,11,6.5,11,6.5,11 C6.5,11.55,6.05,12,5.5,12 C5.5,12,5.5,12,5.5,12 C4.95,12,4.5,12.45,4.5,13 C4.5,13,4.5,14,4.5,14 C4.5,14,6.5,14,6.5,14"/><path style="" d="M4.5,16 C4.5,16,5.5,16,5.5,16 C6.05,16,6.5,16.45,6.5,17 C6.5,17,6.5,17,6.5,17 C6.5,17.55,6.05,18,5.5,18 C5.5,18,4.5,18,4.5,18 C4.5,18,5.5,18,5.5,18 C6.05,18,6.5,18.45,6.5,19 C6.5,19,6.5,19,6.5,19 C6.5,19.55,6.05,20,5.5,20 C5.5,20,4.5,20,4.5,20"/></g></svg> ',resize:'<svg class="stroked" version="1.1" viewBox="0, 0, 24, 24"><g><path d="M9,3 L3,3 L3,9"/><path d="M15,21 L21,21 L21,15"/><path d="M3,3 L10,10"/><path d="M21,21 L14,14"/></g></svg> ',bug:'<svg class="stroked" viewBox="0 0 24 24"><g><path style="" d="M8,6 C8,3.79,9.79,2,12,2 C14.21,2,16,3.79,16,6 C16,6,8,6,8,6 z"/><path style="" d="M20,7 C20,7,18,9,18,9"/><path style="" d="M20,19 C20,19,18,17,18,17"/><path style="" d="M21,13 C21,13,18,13,18,13"/><path style="" d="M16.44,9 C17.3,9,18,9.7,18,10.56 C18,10.56,18,15,18,15 C18,18.31,15.31,21,12,21 C8.69,21,6,18.31,6,15 C6,15,6,10.56,6,10.56 C6,9.7,6.7,9,7.56,9 C7.56,9,16.44,9,16.44,9 z"/><path style="" d="M4,7 C4,7,6,9,6,9"/><path style="" d="M4,19 C4,19,6,17,6,17"/><path style="" d="M3,13 C3,13,6,13,6,13"/><path style="" d="M12,12 C12,12,12,17,12,17"/></g></svg> ',blog:'<svg class="stroked" viewBox="0 0 24 24"><g><path style="" d="M21,10.02 C21,10.02,21,15,21,15 C21,15.53,20.79,16.04,20.41,16.41 C20.04,16.79,19.53,17,19,17 C19,17,7,17,7,17 C5.67,18.33,4.33,19.67,3,21 C3,21,3,5,3,5 C3,4.47,3.21,3.96,3.59,3.59 C3.96,3.21,4.47,3,5,3 C8.53,3,10.49,3,14.02,3"/><path style="" d="M19,2 C19.54,1.46,20.32,1.25,21.05,1.45 C21.78,1.65,22.35,2.22,22.55,2.95 C22.75,3.68,22.54,4.46,22,5 C22,5,15.5,11.5,15.5,11.5 C14.17,11.83,12.83,12.17,11.5,12.5 C11.83,11.17,12.17,9.83,12.5,8.5 C15.67,5.33,15.83,5.17,19,2 z"/><path style="" d="M14.6,3"/><path style="" d="M21,8.77"/><path style="" d="M7,7 C7,7,10,7,10,7"/><path style="" d="M7,10 C7,10,9,10,9,10"/></g></svg> ',sortAscending:'<svg class="stroked" viewBox="0 0 24 24"><g><path d="M16.5,10.5 C16.5,10.5,7.5,10.5,7.5,10.5"/><path d="M14.5,6.5 C14.5,6.5,9.5,6.5,9.5,6.5"/><path d="M18.5,14.5 C18.5,14.5,5.5,14.5,5.5,14.5"/><path d="M20.5,18.5 C20.5,18.5,3.5,18.5,3.5,18.5"/></g></svg> ',npm:'<svg class="filled" version="1" viewBox="0 0 512 512"><path d="M0 0v512h512v-512h-512zM416 416h-64v-256h-96v256h-160v-320h320v320z"></path></svg> ',game:'<svg class="filled" version="1" viewBox="0 0 704 512"><path d="M528 97v-1h-336c-88 0-160 72-160 160s72 160 160 160c52 0 99-25 128-64h64c29 39 76 64 128 64 88 0 160-72 160-160 0-83-63-151-144-159zM288 288h-64v64h-64v-64h-64v-64h64v-64h64v64h64v64zM480 288c-18 0-32-14-32-32s14-32 32-32 32 14 32 32-14 32-32 32zM576 288c-18 0-32-14-32-32 0-18 14-32 32-32s32 14 32 32c0 18-14 32-32 32z"></path></svg> ',google:'<svg class="filled" version="1" viewBox="0 0 512 512"><path d="M256 0c-141 0-256 115-256 256s115 256 256 256 256-115 256-256-115-256-256-256zM260 448c-106 0-192-86-192-192s86-192 192-192c52 0 95 19 129 50l-52 50c-14-14-39-30-77-30-66 0-119 54-119 121s54 121 119 121c76 0 105-55 109-83h-109v-66h181c2 10 3 19 3 32 0 110-73 188-184 188z"></path></svg> ',discord:'<svg class="filled" version="1" viewBox="0 0 1013 768"><path d="M858 64c-60-28-131-51-204-64l-5-1c-8 14-17 32-25 51l-1 4c-35-6-75-9-116-9s-81 3-120 9l4-1c-9-22-18-40-28-57l1 3c-79 14-149 36-214 67l5-2c-132 196-168 387-150 575v0c73 55 158 99 250 127l6 2c19-26 38-55 53-85l2-3c-33-13-62-27-89-43l2 1c7-5 14-11 21-16 75 36 163 57 256 57s181-21 260-59l-4 2c7 6 14 11 21 16-25 15-53 29-83 40l-4 1c17 34 36 63 56 90l-1-2c98-30 183-74 259-130l-2 2c21-218-36-407-151-575zM338 524c-50 0-91-45-91-101s40-102 91-102 92 46 91 102-40 101-91 101zM675 524c-50 0-91-45-91-101s40-102 91-102 92 46 91 102-40 101-91 101z"></path></svg> '};var Ns=(i)=>{Object.assign(b2,i)},ei=(i,l,s,t)=>{i.setAttribute("xmlns","http://www.w3.org/2000/svg");for(let e of[...i.querySelectorAll("path, polygon, line, circle, rect, ellipse, polyline")]){if(l!==void 0)e.setAttribute("fill",l);if(s!==void 0)e.setAttribute("stroke",s);if(t!==void 0)e.setAttribute("stroke-width",String(t))}let r=i.querySelectorAll("[style]");i.removeAttribute("style");for(let e of[...r]){let{fill:h,stroke:a,strokeWidth:x,strokeLinecap:c,strokeLinejoin:d}=e.style;if(h)e.setAttribute("fill",z.fromCss(h).html);if(a)e.setAttribute("stroke",z.fromCss(a).html);if(x)e.setAttribute("strokeWidth",x);if(c)e.setAttribute("strokeLinecap",c);if(d)e.setAttribute("strokeLinejoin",d);e.removeAttribute("style")}return`url(data:image/svg+xml;charset=UTF-8,${encodeURIComponent(i.outerHTML)})`},v=new Proxy(b2,{get(i,l){let s=b2[l];if(l&&!s)console.warn(`icon ${l} does not exist`);if(!s)s=b2.square;return(...t)=>{let r=C.div();r.innerHTML=s;let o=r.querySelector("svg"),e=new Set(o.classList);e.add("xin-icon");let h=m2.svg({class:Array.from(e).join(" "),viewBox:o.getAttribute("viewBox")},...t,...o.children);if(h.style.strokeWidth=p.tosiIconStrokeWidth("2px"),e.has("filled"))h.style.stroke="none",h.style.fill="currentColor";else if(e.has("stroked"))h.style.stroke=p.tosiIconStroke("currentColor"),h.style.fill="none";else h.style.stroke=p.tosiIconStroke("currentColor"),h.style.fill=p.tosiIconFill("currentColor");return h.style.height=p.tosiIconSize("16px"),h}}});class hi extends w{static initAttributes={icon:"",size:0,fill:"",stroke:"",strokeWidth:1};render(){super.render(),this.textContent="";let i={};if(this.size)i.height=this.size+"px",this.style.setProperty("--tosi-icon-size",`${this.size}px`),this.style.setProperty("--xin-icon-size",`${this.size}px`);if(this.stroke)i.stroke=this.stroke,i.strokeWidth=this.strokeWidth;if(this.fill)i.fill=this.fill;this.append(v[this.icon]({style:i}))}}var Xs=hi.elementCreator({tag:"xin-icon",styleSpec:{":host":{"--tosi-icon-size":"var(--xin-icon-size, 16px)","--tosi-icon-stroke-width":"var(--xin-icon-stroke-width, var(--icon-stroke-width, 2px))","--tosi-icon-stroke-linejoin":"var(--icon-stroke-linejoin, round)","--tosi-icon-stroke-linecap":"var(--icon-stroke-linecap, round)","--tosi-icon-fill":"var(--xin-icon-fill, var(--icon-fill, none))",display:"inline-flex",stroke:"currentColor",strokeWidth:p.tosiIconStrokeWidth("2px"),strokeLinejoin:p.tosiIconStrokeLinejoin("round"),strokeLinecap:p.tosiIconStrokeLinecap("round"),fill:p.tosiIconFill("none")},":host, :host svg":{height:p.tosiIconSize("16px")}}});var e4=()=>{};class ai extends w{babylonReady;BABYLON;static styleSpec={":host":{display:"block",position:"relative"},":host canvas":{width:"100%",height:"100%"},":host .babylonVRicon":{height:50,width:80,backgroundColor:"transparent",filter:"drop-shadow(0 0 4px #000c)",backgroundImage:ei(v.xrColor()),backgroundPosition:"center",backgroundRepeat:"no-repeat",border:"none",borderRadius:5,borderStyle:"none",outline:"none",transition:"transform 0.125s ease-out"},":host .babylonVRicon:hover":{transform:"scale(1.1)"}};content=C.canvas({part:"canvas"});constructor(){super();this.babylonReady=(async()=>{let{BABYLON:i}=await D("https://cdn.babylonjs.com/babylon.js","BABYLON");return i})()}scene;engine;sceneCreated=e4;update=e4;_update=()=>{if(this.scene){if(this.update!==void 0)this.update(this,this.BABYLON);if(this.scene.activeCamera!==void 0)this.scene.render()}};onResize(){if(this.engine)this.engine.resize()}loadScene=async(i,l,s)=>{let{BABYLON:t}=await D("https://cdn.babylonjs.com/loaders/babylonjs.loaders.min.js","BABYLON");t.SceneLoader.Append(i,l,this.scene,s)};loadUI=async(i)=>{let{BABYLON:l}=await D("https://cdn.babylonjs.com/gui/babylon.gui.min.js","BABYLON"),s=l.GUI.AdvancedDynamicTexture.CreateFullscreenUI("GUI",!0,this.scene),{snippetId:t,jsonUrl:r,data:o,size:e}=i;if(e)s.idealWidth=e,s.renderAtIdealSize=!0;let h;if(t)h=await s.parseFromSnippetAsync(t);else if(r)h=await s.parseFromURLAsync(r);else if(o)h=s.parseContent(o);else return null;let a=s.getChildren()[0],x=a.children.reduce((c,d)=>{return c[d.name]=d,c},{});return{advancedTexture:s,gui:h,root:a,widgets:x}};connectedCallback(){super.connectedCallback();let{canvas:i}=this.parts;this.babylonReady.then(async(l)=>{if(this.BABYLON=l,this.engine=new l.Engine(i,!0),this.scene=new l.Scene(this.engine),this.sceneCreated)await this.sceneCreated(this,l);if(this.scene.activeCamera===void 0)new l.ArcRotateCamera("default-camera",-Math.PI/2,Math.PI/2.5,3,new l.Vector3(0,0,0)).attachControl(this.parts.canvas,!0);this.engine.runRenderLoop(this._update)})}}var Ys=ai.elementCreator({tag:"xin-3d"});class r2 extends w{static initAttributes={src:"",json:""};content=null;config={renderer:"svg",loop:!0,autoplay:!0};static bodymovinAvailable;animation;static styleSpec={":host":{width:400,height:400,display:"inline-block"}};_loading=!1;get loading(){return this._loading}constructor(){super();if(r2.bodymovinAvailable===void 0)r2.bodymovinAvailable=D("https://cdnjs.cloudflare.com/ajax/libs/bodymovin/5.12.2/lottie.min.js","bodymovin")}doneLoading=()=>{this._loading=!1};load=({bodymovin:i})=>{if(this._loading=!0,this.config.container=this.shadowRoot!==null?this.shadowRoot:void 0,this.json!=="")this.config.animationData=this.json,delete this.config.path;else if(this.src!=="")delete this.config.animationData,this.config.path=this.src;else console.log("%c<xin-lottie>%c expected either %cjson%c (animation data) or %csrc% c(url) but found neither.","color: #44f; background: #fff; padding: 0 5px","color: default","color: #44f; background: #fff; padding: 0 5px","color: default","color: #44f; background: #fff; padding: 0 5px","color: default");if(this.animation){this.animation.destroy();let l=this.shadowRoot;if(l!==null)l.querySelector("svg")?.remove()}this.animation=i.loadAnimation(this.config),this.animation.addEventListener("DOMLoaded",this.doneLoading)};render(){super.render(),r2.bodymovinAvailable.then(this.load).catch((i)=>{console.error(i)})}}var Ws=r2.elementCreator({tag:"xin-lottie"});var{button:xi,slot:ms,div:S2}=C;class yi extends w{static initAttributes={dots:!1,arrows:!1,maxVisibleItems:1,snapDuration:0.25,snapDelay:0.1,loop:!1,auto:0};lastAutoAdvance=Date.now();interval;autoAdvance=()=>{if(this.auto>0&&this.auto*1000<Date.now()-this.lastAutoAdvance)this.forward()};_page=0;get page(){return this._page}set page(i){let{scroller:l,back:s,forward:t}=this.parts;if(this.lastPage<=0)t.disabled=s.disabled=!0,i=0;else i=Math.max(0,Math.min(this.lastPage,i)),i=isNaN(i)?0:i;if(this._page!==i)this._page=isNaN(i)?0:i,this.animateScroll(this._page*l.offsetWidth),s.disabled=this.page<=0&&!this.loop,t.disabled=this.page>=this.lastPage&&!this.loop}get visibleItems(){return[...this.children].filter((i)=>getComputedStyle(i).display!=="none")}get lastPage(){return Math.max(Math.ceil(this.visibleItems.length/(this.maxVisibleItems||1))-1,0)}static styleSpec={":host":{display:"flex",flexDirection:"column",position:"relative"},":host svg":{height:y.carouselIconSize},":host button":{outline:"none",border:"none",boxShadow:"none",background:"transparent",color:y.carouselButtonColor,padding:0},":host::part(back), :host::part(forward)":{position:"absolute",top:0,bottom:0,width:y.carouseButtonWidth,zIndex:2},":host::part(back)":{left:0},":host::part(forward)":{right:0},":host button:disabled":{opacity:0.5,pointerEvents:"none"},":host button:hover":{color:y.carouselButtonHoverColor},":host button:active":{color:y.carouselButtonActiveColor},":host::part(pager)":{position:"relative"},":host::part(scroller)":{overflow:"auto hidden",position:"relative"},":host::part(grid)":{display:"grid",justifyItems:"center"},":host *::-webkit-scrollbar, *::-webkit-scrollbar-thumb":{display:"none"},":host .dot":{background:y.carouselButtonColor,borderRadius:y.carouselDotSize,height:y.carouselDotSize,width:y.carouselDotSize,transition:y.carouselDotTransition},":host .dot:not(.current):hover":{background:y.carouselButtonHoverColor,height:y.carouselDotSize150,width:y.carouselDotSize150,margin:y.carouselDotSize_25},":host .dot:not(.current):active":{background:y.carouselButtonActiveColor},":host .dot.current":{background:y.carouselDotCurrentColor},":host::part(progress)":{display:"flex",gap:y.carouselDotSpacing,justifyContent:"center",padding:y.carouselProgressPadding}};easing=(i)=>{return Math.sin(i*Math.PI*0.5)};indicateCurrent=()=>{let{scroller:i,progress:l}=this.parts,s=i.scrollLeft/i.offsetWidth;[...l.children].forEach((t,r)=>{t.classList.toggle("current",Math.floor(r/this.maxVisibleItems-s)===0)}),this.lastAutoAdvance=Date.now(),clearTimeout(this.snapTimer),this.snapTimer=setTimeout(this.snapPosition,this.snapDelay*1000)};snapPosition=()=>{let{scroller:i}=this.parts,l=Math.round(i.scrollLeft/i.offsetWidth);if(l!==this.page)this.page=l>this.page?Math.ceil(l):Math.floor(l);this.lastAutoAdvance=Date.now()};back=()=>{this.page=this.page>0?this.page-1:this.lastPage};forward=()=>{this.page=this.page<this.lastPage?this.page+1:0};handleDotClick=(i)=>{let{progress:l}=this.parts,s=[...l.children].indexOf(i.target);if(s>-1)this.page=Math.floor(s/this.maxVisibleItems)};snapTimer;animationFrame;animateScroll(i,l=-1,s=0){cancelAnimationFrame(this.animationFrame);let{scroller:t}=this.parts;if(l===-1){l=t.scrollLeft,s=Date.now(),this.animationFrame=requestAnimationFrame(()=>{this.animateScroll(i,l,s)});return}let r=(Date.now()-s)/1000;if(r>=this.snapDuration||Math.abs(t.scrollLeft-i)<2)t.scrollLeft=i,this.animationFrame=null;else t.scrollLeft=l+this.easing(r/this.snapDuration)*(i-l),this.animationFrame=requestAnimationFrame(()=>{this.animateScroll(i,l,s)})}content=()=>[S2({part:"pager"},xi({title:"previous slide",part:"back"},v.chevronLeft()),S2({title:"slides",role:"group",part:"scroller"},S2({part:"grid"},ms())),xi({title:"next slide",part:"forward"},v.chevronRight())),S2({title:"choose slide to display",role:"group",part:"progress"})];connectedCallback(){super.connectedCallback(),this.ariaRoleDescription="carousel",this.ariaOrientation="horizontal",this.ariaReadOnly="true";let{back:i,forward:l,scroller:s,progress:t}=this.parts;i.addEventListener("click",this.back),l.addEventListener("click",this.forward),s.addEventListener("scroll",this.indicateCurrent),t.addEventListener("click",this.handleDotClick),this.lastAutoAdvance=Date.now(),this.interval=setInterval(this.autoAdvance,100)}disconnectedCallback(){clearInterval(this.interval)}render(){super.render();let{dots:i,arrows:l,visibleItems:s,lastPage:t}=this,{progress:r,back:o,forward:e,grid:h}=this.parts;s.forEach((a)=>{a.role="group"}),h.style.gridTemplateColumns=`${100/this.maxVisibleItems/(1+this.lastPage)}% `.repeat(s.length).trim(),h.style.width=(1+this.lastPage)*100+"%",r.textContent="",r.append(...s.map((a,x)=>xi({title:`item ${x+1}`,class:"dot"}))),this.indicateCurrent(),r.style.display=i&&t>0?"":"none",o.hidden=e.hidden=!(l&&t>0)}}var Rs=yi.elementCreator({tag:"xin-carousel",styleSpec:{":host":{_carouselIconSize:24,_carouselButtonColor:"#0004",_carouselButtonHoverColor:"#0006",_carouselButtonActiveColor:"#000c",_carouseButtonWidth:48,_carouselDotCurrentColor:"#0008",_carouselDotSize:8,_carouselDotSpacing:y.carouselDotSize,_carouselProgressPadding:12,_carouselDotTransition:"0.125s ease-in-out"},":host:focus":{outline:"none",boxShadow:"none"}}});var h4="https://cdnjs.cloudflare.com/ajax/libs/ace/1.23.2/",a4="ace/theme/tomorrow",Ls=async()=>{let{ace:i}=await D(`${h4}ace.min.js`);return i},Is=async(i,l="html",s={},t=a4)=>{let r=await Ls();r.config.set("basePath",h4);let o=r.edit(i,{mode:`ace/mode/${l}`,tabSize:2,useSoftTabs:!0,useWorker:!1,...s});return o.setTheme(t),{ace:r,editor:o}};class N1 extends w{source="";get value(){return this.editor===void 0?this.source:this.editor.getValue()}set value(i){if(this.editor===void 0)this.source=i;else this.editor.setValue(i),this.editor.clearSelection(),this.editor.session.getUndoManager().reset()}static initAttributes={mode:"javascript",theme:a4,disabled:!1};role="code editor";_ace;_editor;_editorPromise;options={};get ace(){return this._ace}get editor(){return this._editor}static styleSpec={":host":{display:"block",position:"relative",width:"100%",height:"100%"}};onResize(){if(this.editor!==void 0)this.editor.resize(!0)}connectedCallback(){if(super.connectedCallback(),this.source==="")this.value=this.textContent!==null?this.textContent.trim():"";if(this._editorPromise===void 0)this._editorPromise=Is(this,this.mode,this.options,this.theme),this._editorPromise.then(({ace:i,editor:l})=>{this._ace=i,this._editor=l,l.setValue(this.source,1),l.clearSelection(),l.session.getUndoManager().reset()})}render(){if(super.render(),this._editorPromise!==void 0)this._editorPromise.then(({editor:i})=>i.setReadOnly(this.disabled))}}var o2=N1.elementCreator({tag:"xin-code"});var{input:ci}=C,x4=z.fromCss("#8888");class y4 extends w{value=x4.rgba;color=x4;static styleSpec={":host":{_gap:8,_swatchSize:32,_cssWidth:72,_alphaWidth:72,display:"inline-flex",gap:y.gap,alignItems:"center"},':host input[type="color"]':{border:0,width:y.swatchSize,height:y.swatchSize,background:"transparent"},":host::part(alpha)":{width:y.alphaWidth},":host::part(css)":{width:y.cssWidth,fontFamily:"monospace"}};content=[ci({title:"base color",type:"color",part:"rgb"}),ci({type:"range",title:"opacity",part:"alpha",min:0,max:1,step:0.05}),ci({title:"css color spec",part:"css"})];valueChanged=!1;update=(i)=>{let{rgb:l,alpha:s,css:t}=this.parts;if(i.type==="input")this.color=z.fromCss(l.value),this.color.a=Number(s.value),t.value=this.color.html;else this.color=z.fromCss(t.value),l.value=this.color.html.substring(0,7),s.value=String(this.color.a);l.style.opacity=String(this.color.a),this.value=this.color.rgba,this.valueChanged=!0};connectedCallback(){super.connectedCallback();let{rgb:i,alpha:l,css:s}=this.parts;i.addEventListener("input",this.update),l.addEventListener("input",this.update),s.addEventListener("change",this.update)}render(){if(this.valueChanged){this.valueChanged=!1;return}let{rgb:i,alpha:l,css:s}=this.parts;this.color=z.fromCss(this.value),i.value=this.color.html.substring(0,7),i.style.opacity=String(this.color.a),l.value=String(this.color.a),s.value=this.color.html}}var di=y4.elementCreator({tag:"xin-color"});var u1=C.div({style:{content:" ",position:"fixed",top:0,left:0,right:0,bottom:0}}),T2={passive:!0},m=(i,l,s="move")=>{if(!i.type.startsWith("touch")){let{clientX:r,clientY:o}=i;u1.style.cursor=s,A1(u1),document.body.append(u1);let e=(h)=>{let a=h.clientX-r,x=h.clientY-o;if(l(a,x,h)===!0)u1.removeEventListener("mousemove",e),u1.removeEventListener("mouseup",e),u1.remove()};u1.addEventListener("mousemove",e,T2),u1.addEventListener("mouseup",e,T2)}else if(i instanceof TouchEvent){let r=i.changedTouches[0],o=r.identifier,e=r.clientX,h=r.clientY,a=i.target,x=0,c=0,d=(g)=>{let B=[...g.touches].find((k)=>k.identifier===o);if(B!==void 0)x=B.clientX-e,c=B.clientY-h;if(g.type==="touchmove")g.stopPropagation(),g.preventDefault();if(l(x,c,g)===!0||B===void 0)a.removeEventListener("touchmove",d),a.removeEventListener("touchend",d),a.removeEventListener("touchcancel",d)};a.addEventListener("touchmove",d),a.addEventListener("touchend",d,T2),a.addEventListener("touchcancel",d,T2)}},X1=(i="body *")=>[...document.querySelectorAll(i)].map((l)=>parseFloat(getComputedStyle(l).zIndex)).reduce((l,s)=>isNaN(l)||Number(l)<s?s:Number(l),0),A1=(i,l="body *")=>{i.style.zIndex=String(X1(l)+1)};var{slot:Ds}=C;class P1 extends w{static floats=new Set;static initAttributes={drag:!1,remainOnResize:"remove",remainOnScroll:"remain"};content=Ds();static styleSpec={":host":{position:"fixed"}};reposition=(i)=>{if(i.target?.closest(".no-drag"))return;if(this.drag){A1(this);let s=this.offsetLeft,t=this.offsetTop;m(i,(r,o,e)=>{if(this.style.left=`${s+r}px`,this.style.top=`${t+o}px`,this.style.right="auto",this.style.bottom="auto",e.type==="mouseup")return!0})}};connectedCallback(){super.connectedCallback(),P1.floats.add(this);let i={passive:!0};this.addEventListener("touchstart",this.reposition,i),this.addEventListener("mousedown",this.reposition,i),A1(this)}disconnectedCallback(){super.disconnectedCallback(),P1.floats.delete(this)}}var E2=P1.elementCreator({tag:"xin-float"});window.addEventListener("resize",()=>{Array.from(P1.floats).forEach((i)=>{if(i.remainOnResize==="hide")i.hidden=!0;else if(i.remainOnResize==="remove")i.remove()})},{passive:!0});document.addEventListener("scroll",(i)=>{if(i.target instanceof HTMLElement&&i.target.closest(P1.tagName))return;Array.from(P1.floats).forEach((l)=>{if(l.remainOnScroll==="hide")l.hidden=!0;else if(l.remainOnScroll==="remove")l.remove()})},{passive:!0,capture:!0});var pi=(i)=>{let{content:l,target:s,position:t,remainOnScroll:r,remainOnResize:o,draggable:e}=i,h=Array.isArray(l)?E2(...l):E2(l);if(c4(h,s,t,r,o,e),i.class)h.setAttribute("class",i.class);return document.body.append(h),h},c4=(i,l,s,t,r,o=!1)=>{{let{position:k}=getComputedStyle(i);if(k!=="fixed")i.style.position="fixed";if(r)i.remainOnResize=r;if(t)i.remainOnScroll=t;A1(i)}i.drag=o;let{left:e,top:h,width:a,height:x}=l.getBoundingClientRect(),c=e+a*0.5,d=h+x*0.5,g=window.innerWidth,B=window.innerHeight;if(s==="side")s=(c<g*0.5?"e":"w")+(d<B*0.5?"s":"n");else if(s==="auto"||s===void 0)s=(d<B*0.5?"s":"n")+(c<g*0.5?"e":"w");if(i.style.top=i.style.left=i.style.right=i.style.bottom=i.style.transform="",s.length===2){let[k,M]=s;switch(k){case"n":i.style.bottom=(B-h).toFixed(2)+"px";break;case"e":i.style.left=(e+a).toFixed(2)+"px";break;case"s":i.style.top=(h+x).toFixed(2)+"px";break;case"w":i.style.right=(g-e).toFixed(2)+"px";break}switch(M){case"n":i.style.bottom=(B-h-x).toFixed(2)+"px";break;case"e":i.style.left=e.toFixed(2)+"px";break;case"s":i.style.top=h.toFixed(2)+"px";break;case"w":i.style.right=(g-e-a).toFixed(2)+"px";break}i.style.transform=""}else if(s==="n")i.style.bottom=(B-h).toFixed(2)+"px",i.style.left=c.toFixed(2)+"px",i.style.transform="translateX(-50%)";else if(s==="s")i.style.top=(h+x).toFixed(2)+"px",i.style.left=c.toFixed(2)+"px",i.style.transform="translateX(-50%)";else if(s==="e")i.style.left=(e+a).toFixed(2)+"px",i.style.top=d.toFixed(2)+"px",i.style.transform="translateY(-50%)";else if(s==="w")i.style.right=(g-e).toFixed(2)+"px",i.style.top=d.toFixed(2)+"px",i.style.transform="translateY(-50%)";i.style.setProperty("--max-height",`calc(100vh - ${i.style.top||i.style.bottom})`),i.style.setProperty("--max-width",`calc(100vw - ${i.style.left||i.style.right})`)};function i0(i,l=!0){return(s,t)=>{let r=i(s),o=i(t);for(let e in r)if(r[e]!==o[e])return(Array.isArray(l)?l[e]!==!1:l)?r[e]>o[e]?1:-1:r[e]>o[e]?-1:1;return 0}}var{button:Ss,span:d4,input:Ts}=C,p4=(i,l)=>{return!!i.find((s)=>{if(s===null||l==null)return!1;else if(Array.isArray(s))return p4(s,l);else if(s.value===l||s===l)return!0})};class H1 extends w{static formAssociated=!0;static initAttributes={editable:!1,placeholder:"",showIcon:!1,hideCaption:!1,localized:!1,disabled:!1,required:!1,name:""};_options=[];get options(){return this._options}set options(i){if(typeof i==="string")this._options=H1.parseOptionsString(i);else this._options=i;this.queueRender()}static parseOptionsString(i){return i.split(",").map((l)=>{let s=l.trim();if(s==="")return null;let[t,r]=s.split("=").map((h)=>h.trim());if(!r)return{value:t,caption:t};let[o,e]=r.split(":").map((h)=>h.trim());return{value:t,caption:o||t,icon:e||void 0}})}value="";filter="";isExpanded=!1;formDisabledCallback(i){this.disabled=i}formResetCallback(){this.value=""}setValue=(i,l=!1)=>{if(this.value!==i)this.value=i,this.queueRender(!0);if(l)this.dispatchEvent(new Event("action"))};getValue=()=>this.value;get selectOptions(){return this.options}buildOptionMenuItem=(i)=>{if(i===null)return null;let{setValue:l,getValue:s}=this,t,r,o;if(typeof i==="string")r=o=i;else({icon:t,caption:r,value:o}=i);if(this.localized)r=O(r);let{options:e}=i;if(e)return{icon:t,caption:r,checked:()=>p4(e,s()),menuItems:e.map(this.buildOptionMenuItem)};return{icon:t,caption:r,checked:()=>s()===o,action:typeof o==="function"?async()=>{let h=await o();if(h!==void 0)l(h,!0)}:()=>{if(typeof o==="string")l(o,!0)}}};poppedOptions=[];get optionsMenu(){let i=this.selectOptions.map(this.buildOptionMenuItem);if(this.filter==="")return i;let l=(s)=>{if(s===null)return!0;else if(s.menuItems)return s.menuItems=s.menuItems.filter(l),s.menuItems.length>0;else return s.caption.toLocaleLowerCase().includes(this.filter)};return i.filter(l)}handleChange=(i)=>{let{value:l}=this.parts,s=l.value||"";if(this.value!==String(s))this.value=s,this.dispatchEvent(new Event("change"));this.filter="",i.stopPropagation(),i.preventDefault()};handleKey=(i)=>{if(i.key==="Enter")i.preventDefault()};filterMenu=B2(()=>{this.filter=this.parts.value.value.toLocaleLowerCase(),F1(0),this.popOptions()});popOptions=(i)=>{if(i&&i.type==="click")this.filter="";this.poppedOptions=this.optionsMenu,this.isExpanded=!0,this.updateAriaExpanded(),K({target:this,menuItems:this.poppedOptions,showChecked:!0,role:"listbox",onClose:()=>{this.isExpanded=!1,this.updateAriaExpanded()}})};updateAriaExpanded(){let{value:i}=this.parts;i.setAttribute("aria-expanded",String(this.isExpanded))}content=()=>[Ss({type:"button",part:"button",onClick:this.popOptions},d4(),Ts({part:"value",value:this.value,tabindex:0,role:"combobox",ariaHaspopup:"listbox",ariaExpanded:"false",ariaAutocomplete:this.editable?"list":"none",onKeydown:this.handleKey,onInput:this.filterMenu,onChange:this.handleChange}),v.chevronDown())];get allOptions(){let i=[];function l(s){for(let t of s)if(typeof t==="string")i.push({caption:t,value:t});else if(t?.value)i.push(t);else if(t?.options)l(t.options)}return l(this.selectOptions),i}findOption(){return this.allOptions.find((l)=>l.value===this.value)||{caption:this.value,value:this.value}}localeChanged=()=>{this.queueRender()};connectedCallback(){super.connectedCallback();let i=this.getAttribute("options");if(i&&this._options.length===0)this._options=H1.parseOptionsString(i);if(this.localized)S.allInstances.add(this)}disconnectedCallback(){if(super.disconnectedCallback(),this.localized)S.allInstances.delete(this)}render(){super.render();let{value:i,button:l}=this.parts;l.disabled=this.disabled;let s=i.previousElementSibling,t=this.findOption(),r=d4();if(i.value=this.localized?O(t.caption):t.caption,t.icon)if(t.icon instanceof HTMLElement)r=t.icon.cloneNode(!0);else r=v[t.icon]();s.replaceWith(r),i.setAttribute("placeholder",this.localized?O(this.placeholder):this.placeholder),i.style.pointerEvents=this.editable?"":"none",i.readOnly=!this.editable}}var gi=H1,d1=H1.elementCreator({tag:"tosi-select",styleSpec:{":host":{"--tosi-select-gap":"var(--tosi-spacing-sm, 8px)","--tosi-select-touch-size":"var(--tosi-touch-size, 44px)","--tosi-select-padding":"0 var(--tosi-spacing-sm, 8px)","--tosi-select-value-padding":"0 var(--tosi-spacing-sm, 8px)","--tosi-select-icon-width":"24px","--tosi-select-field-width":"140px","--gap":"var(--tosi-select-gap)","--touch-size":"var(--tosi-select-touch-size)","--padding":"var(--tosi-select-padding)","--value-padding":"var(--tosi-select-value-padding)","--icon-width":"var(--tosi-select-icon-width)","--fieldWidth":"var(--tosi-select-field-width)",display:"inline-flex",position:"relative"},":host button":{display:"flex",alignItems:"center",justifyItems:"center",gap:y.tosiSelectGap,textAlign:"left",height:y.tosiSelectTouchSize,padding:y.tosiSelectPadding,position:"relative",width:"100%"},":host:not([show-icon]) button > :first-child":{display:"none"},":host[hide-caption] button > :nth-child(2)":{display:"none"},':host [part="value"]':{width:y.tosiSelectFieldWidth,padding:y.tosiSelectValuePadding,height:y.tosiSelectTouchSize,lineHeight:y.tosiSelectTouchSize,boxShadow:"none",whiteSpace:"nowrap",outline:"none",background:"transparent",flex:"1"},':host [part="value"]:not(:focus)':{overflow:"hidden",textOverflow:"ellipsis",background:"transparent"}}}),Ci=Q((...i)=>d1(...i),"xinSelect is deprecated, use tosiSelect instead (tag is now <tosi-select>)");var{span:g4}=C,{i18n:$}=E({i18n:{locale:window.navigator.language,locales:[window.navigator.language],languages:[window.navigator.language],emoji:[""],stringMap:{},localeOptions:[{icon:g4(),caption:window.navigator.language,value:window.navigator.language}]}});v1.localeOptions={toDOM(i,l){if(i instanceof gi)i.options=l}};var Es=(i)=>{if($.locales.value.includes(i))$.locale.value=i;else console.error(`language ${i} is not available`)},vi=()=>{let i=Array.from(S.allInstances);for(let l of i)l.localeChanged()};$.locale.observe(vi);var i3=i0((i)=>[i.caption.toLocaleLowerCase()]);function l3(i){let[l,,s,t,...r]=i.split(`
14
+ `).map((o)=>o.split("\t"));if(l&&s&&t&&r){if($.locales.value=l,$.languages.value=s,$.emoji.value=t,$.stringMap.value=r.reduce((o,e)=>{return o[e[0].toLocaleLowerCase()]=e,o},{}),$.localeOptions.value=l.map((o,e)=>({icon:g4({title:l[e]},t[e]),caption:s[e],value:o})).sort(i3),!$.locales.value.includes($.locale.value)){let o=$.locale.value.substring(0,2);$.locale.value=$.locales.value.find((e)=>e.substring(0,2)===o)||$.locales.value[0]}vi()}}function O(i){if(i.endsWith("…"))return O(i.substring(0,i.length-1))+"…";let l=$.locales.value.indexOf($.locale.value);if(l>-1){let t=$.stringMap.value[i.toLocaleLowerCase()],r=t&&t[l];if(r)i=i.toLocaleLowerCase()===i?r.toLocaleLowerCase():r}return i}class ki extends w{static initAttributes={hideCaption:!1};content=()=>{return Ci({part:"select",showIcon:!0,title:O("Language"),bindValue:$.locale,bindLocaleOptions:$.localeOptions})};render(){super.render(),this.parts.select.toggleAttribute("hide-caption",this.hideCaption)}}var s3=ki.elementCreator({tag:"xin-locale-picker"});class S extends w{static allInstances=new Set;static initAttributes={refString:""};contents=()=>C.xinSlot();connectedCallback(){super.connectedCallback(),S.allInstances.add(this)}disconnectedCallback(){super.disconnectedCallback(),S.allInstances.delete(this)}localeChanged(){if(!this.refString)this.refString=this.textContent||"";this.textContent=this.refString?O(this.refString):""}render(){super.render(),this.localeChanged()}}var k1=S.elementCreator({tag:"xin-localized",styleSpec:{":host":{pointerEvents:"none"}}});var C4=(i,l)=>{l=l.toLocaleLowerCase();let s=!!l.match(/\^|ctrl/),t=!!l.match(/⌘|meta/),r=!!l.match(/⌥|⎇|alt|option/),o=!!l.match(/⇧|shift/),e=l.slice(-1);return i.key===e&&i.metaKey===t&&i.ctrlKey===s&&i.altKey===r&&i.shiftKey===o};var{div:v4,button:ni,span:i1,a:t3,xinSlot:r3}=C;Z1("xin-menu-helper",{".xin-menu":{overflow:"hidden auto",maxHeight:`calc(${y.maxHeight} - ${p.menuInset("8px")})`,borderRadius:y.spacing50,background:p.menuBg("#fafafa"),boxShadow:p.menuShadow(`${y.spacing13} ${y.spacing50} ${y.spacing} #0004`)},".xin-menu > div":{width:p.menuWidth("auto")},".xin-menu-trigger":{paddingLeft:0,paddingRight:0,minWidth:p.touchSize("48px")},".xin-menu-separator":{display:"inline-block",content:" ",height:"1px",width:"100%",background:p.menuSeparatorColor("#2224"),margin:p.menuSeparatorMargin("8px 0")},".xin-menu-item":{boxShadow:"none",border:"none !important",display:"grid",alignItems:"center",justifyContent:"flex-start",textDecoration:"none",gridTemplateColumns:"0px 1fr 30px",width:"100%",gap:0,background:"transparent",padding:p.menuItemPadding("0 16px"),height:p.menuItemHeight("48px"),lineHeight:p.menuItemHeight("48px"),textAlign:"left"},".xin-menu-item, .xin-menu-item > span":{color:p.menuItemColor("#222")},".xin-menu-with-icons .xin-menu-item":{gridTemplateColumns:"30px 1fr 30px"},".xin-menu-item svg":{stroke:p.menuItemIconColor("#222")},".xin-menu-item.xin-menu-item-checked":{background:p.menuItemHoverBg("#eee")},".xin-menu-item > span:nth-child(2)":{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",textAlign:"left"},".xin-menu-item:hover":{boxShadow:"none !important",background:p.menuItemHoverBg("#eee")},".xin-menu-item:active":{boxShadow:"none !important",background:p.menuItemActiveBg("#aaa"),color:p.menuItemActiveColor("#000")},".xin-menu-item:active svg":{stroke:p.menuItemIconActiveColor("#000")}});var k4=(i,l)=>{let s=i.checked&&i.checked()&&"check"||!1,t=i?.icon||s||i1(" ");if(typeof t==="string")t=v[t]();let r=l.role==="listbox"?"option":"menuitem",o;if(typeof i?.action==="string")o=t3({class:"xin-menu-item",role:r,href:i.action},t,l.localized?i1(O(i.caption)):i1(i.caption),i1(i.shortcut||" "));else o=ni({class:"xin-menu-item",role:r,onClick:i.action},t,l.localized?i1(O(i.caption)):i1(i.caption),i1(i.shortcut||" "));if(o.classList.toggle("xin-menu-item-checked",s!==!1),l.role==="listbox"&&s)o.setAttribute("aria-selected","true");if(i?.enabled&&!i.enabled())o.setAttribute("disabled",""),o.setAttribute("aria-disabled","true");return o},n4=(i,l)=>{let s=i.checked&&i.checked()&&"check"||!1,t=i?.icon||s||i1(" ");if(typeof t==="string")t=v[t]();let r=ni({class:"xin-menu-item",disabled:!(!i.enabled||i.enabled()),onClick(o){K(Object.assign({},l,{menuItems:i.menuItems,target:r,submenuDepth:(l.submenuDepth||0)+1,position:"side"})),o.stopPropagation(),o.preventDefault()}},t,l.localized?i1(O(i.caption)):i1(i.caption),v.chevronRight({style:{justifySelf:"flex-end"}}));return r},w4=(i,l)=>{if(i===null)return i1({class:"xin-menu-separator"});else{let s=i?.action?k4(i,l):n4(i,l);if(l.showChecked&&i.checked&&i.checked())requestAnimationFrame(()=>{s.scrollIntoView({block:"center"})});return s}},B4=(i)=>{let{target:l,width:s,menuItems:t,role:r="menu"}=i,o=t.find((e)=>e?.icon||e?.checked);return v4({class:o?"xin-menu xin-menu-with-icons":"xin-menu",role:r,onClick(){F1(0)}},v4({style:{minWidth:l.offsetWidth+"px",width:typeof s==="number"?`${s}px`:s},onMousedown(e){e.preventDefault(),e.stopPropagation()}},...t.map((e)=>w4(e,i))))},e2,Y1=[],F1=(i=0)=>{let l=Y1.splice(i);for(let s of l)if(s.menu.remove(),s.onClose)s.onClose();return e2=l[0],i>0?Y1[i-1]:void 0};document.body.addEventListener("mousedown",(i)=>{if(i.target&&!Y1.find((l)=>l.target.contains(i.target)))F1(0)});document.body.addEventListener("keydown",(i)=>{if(i.key==="Escape")F1(0)});var K=(i)=>{i=Object.assign({submenuDepth:0},i);let{target:l,position:s,submenuDepth:t}=i;if(e2&&!document.body.contains(e2?.menu))e2=void 0;if(Y1.length&&!document.body.contains(Y1[0].menu))Y1.splice(0);if(t===0&&e2?.target===l)return;let r=F1(t);if(e2?.target===l)return;if(r&&r.target===l){F1();return}if(!i.menuItems?.length)return;let o=B4(i),e=pi({content:o,target:l,position:s});e.remainOnScroll="remove",Y1.push({target:l,menu:e,onClose:i.onClose})};function z4(i,l){for(let s of i){if(!s)continue;let{shortcut:t}=s,{menuItems:r}=s;if(t){if(C4(l,t))return s}else if(r){let o=z4(r,l);if(o)return o}}return}class l0 extends w{static initAttributes={menuWidth:"auto",localized:!1,icon:""};menuItems=[];showMenu=(i)=>{if(i.type==="click"||i.code==="Space")K({target:this.parts.trigger,width:this.menuWidth,localized:this.localized,menuItems:this.menuItems}),i.stopPropagation(),i.preventDefault()};content=()=>ni({tabindex:0,part:"trigger",onClick:this.showMenu},r3());handleShortcut=async(i)=>{let l=z4(this.menuItems,i);if(l){if(l.action instanceof Function)l.action()}};constructor(){super();this.addEventListener("keydown",this.showMenu)}connectedCallback(){super.connectedCallback(),document.addEventListener("keydown",this.handleShortcut,!0)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("keydown",this.handleShortcut)}}var f4=l0.elementCreator({tag:"tosi-menu",styleSpec:{":host":{display:"inline-block"},":host button > xin-slot":{display:"flex",alignItems:"center",gap:p.tosiMenuTriggerGap("10px")}}}),o3=f4,e3=l0;var t0={};F0(t0,{init:()=>Bi,draggedElement:()=>c3});var h3=()=>!!document.querySelector(".drag-source"),u4=(i,l)=>{if(!i)return!1;for(let s of i)if(s==="special/any")return!0;else if(s.indexOf("*")>-1){let[t,r]=s.split("/"),[o,e]=l.split("/");if((t==="*"||t===o)&&(r==="*"||r===e))return!0}else if(s===l)return!0},s0=(i)=>{for(let l of[...document.querySelectorAll(`.${i}`)])l.classList.remove(i)},A4=()=>{s0("drag-over"),s0("drag-source"),s0("drag-target")},wi=(i,l=";")=>{return(i||"").split(l).map((s)=>s.trim()).filter((s)=>s!=="")},P4=(i)=>{if(!i)i=[];let l=[...document.querySelectorAll("[data-drop]")];for(let s of l){let t=wi(s.dataset.drop);if(i.find((r)=>u4(t,r)))s.classList.add("drag-target");else s.classList.remove("drag-target")}};function a3(i){let l=i.target?.closest('[draggable="true"],a[href]');if(!l)return;l.classList.add("drag-source");let s=l.matches('[draggable="true"]')?wi(l.dataset.drag||"text/html"):wi(l.dataset.drag||"url");for(let t of s){let r=l.dataset.dragContent||(t==="text/html"?l.innerHTML:l.textContent);i.dataTransfer?.setData(t,r||"")}P4(i.dataTransfer?.types),i.stopPropagation()}function M4(i){if(!h3())P4(i.dataTransfer?.types);let l=i.target.closest(".drag-target");if(l&&i.dataTransfer)l.classList.add("drag-over"),i.dataTransfer.dropEffect="copy";else i.preventDefault(),i.stopPropagation()}function x3(){s0("drag-over")}function y3(i){let l=i.target.closest(".drag-target");if(l){let s=(l.dataset?.drop||"").split(";");for(let t of s)if(u4(i.dataTransfer?.types,t))if(t==="text/html")l.innerHTML=i.dataTransfer?.getData(t)||"";else l.textContent=i.dataTransfer?.getData(t)||""}A4()}var c3=()=>document.querySelector(".drag-source"),b4=!1,Bi=()=>{if(b4)return;document.body.addEventListener("dragstart",a3),document.body.addEventListener("dragenter",M4),document.body.addEventListener("dragover",M4),document.body.addEventListener("drop",y3),document.body.addEventListener("dragleave",x3),document.body.addEventListener("dragend",A4),window.addEventListener("dragover",(i)=>i.preventDefault()),window.addEventListener("drop",(i)=>i.preventDefault()),b4=!0};function d3(i,l,s){let t=i.find((r)=>r[l]!==void 0&&r[l]!==null);if(t!==void 0){let r=t[l];switch(typeof r){case"string":if(r.match(/^\d+(\.\d+)?$/))return 6*s;else if(r.includes(" "))return 20*s;else return 12*s;case"number":return 6*s;case"boolean":return 5*s;case"object":return!1;default:return 8*s}}return!1}var{div:h2,span:zi,button:p3,template:g3}=C,H4=(i)=>i;class fi extends w{static initAttributes={rowHeight:30,charWidth:15,minColumnWidth:30,select:!1,multiple:!1,pinnedTop:0,pinnedBottom:0,nosort:!1,nohide:!1,noreorder:!1,localized:!1};selectionChanged=()=>{};selectedKey=Symbol("selected");selectBinding=(i,l)=>{i.toggleAttribute("aria-selected",l[this.selectedKey]===!0)};maxVisibleRows=1e4;get value(){return{array:this.array,filter:this.filter,columns:this.columns}}set value(i){let{array:l,columns:s,filter:t}=U(i);if(this._array!==l||this._columns!==s||this._filter!==t)this.queueRender();this._array=l||[],this._columns=s||null,this._filter=t||H4}rowData={visible:[],pinnedTop:[],pinnedBottom:[]};_array=[];_columns=null;_filter=H4;get virtual(){return this.rowHeight>0?{height:this.rowHeight}:void 0}constructor(){super();this.rowData=E({[this.instanceId]:this.rowData})[this.instanceId]}get array(){return this._array}set array(i){this._array=U(i),this.queueRender()}get filter(){return this._filter}set filter(i){if(this._filter!==i)this._filter=i,this.queueRender()}get sort(){if(this._sort)return this._sort;let i=this._columns?.find((s)=>s.sort==="ascending"||s.sort==="descending");if(!i)return;let{prop:l}=i;return i.sort==="ascending"?(s,t)=>s[l]>t[l]?1:-1:(s,t)=>s[l]>t[l]?-1:1}set sort(i){if(this._sort!==i)this._sort=i,this.queueRender()}get columns(){if(!Array.isArray(this._columns)){let{_array:i}=this;this._columns=Object.keys(i[0]||{}).map((l)=>{let s=d3(i,l,this.charWidth);return{name:l.replace(/([a-z])([A-Z])/g,"$1 $2").toLocaleLowerCase(),prop:l,align:typeof i[0][l]==="number"||i[0][l]!==""&&!isNaN(i[0][l])?"right":"left",visible:s!==!1,width:s?s:0}})}return this._columns}set columns(i){this._columns=i,this.queueRender()}get visibleColumns(){return this.columns.filter((i)=>i.visible!==!1)}content=null;getColumn(i){let l=(i.touches!==void 0?i.touches[0].clientX:i.clientX)-this.getBoundingClientRect().x,s=i.touches!==void 0?20:5,t=0,r=[];return this.visibleColumns.find((e)=>{if(e.visible!==!1)return t+=e.width,r.push(t),Math.abs(l-t)<s})}setCursor=(i)=>{if(this.getColumn(i)!==void 0)this.style.cursor="col-resize";else this.style.cursor=""};resizeColumn=(i)=>{let l=this.getColumn(i);if(l!==void 0){let s=Number(l.width),t=i.touches!==void 0,r=t?i.touches[0].identifier:void 0;m(i,(o,e,h)=>{if((t?[...h.touches].find((c)=>c.identifier===r):!0)===void 0)return!0;let x=s+o;if(l.width=x>this.minColumnWidth?x:this.minColumnWidth,this.setColumnWidths(),h.type==="mouseup")return!0},"col-resize")}};selectRow(i,l=!0){if(l)i[this.selectedKey]=!0;else delete i[this.selectedKey]}selectRows(i,l=!0){for(let s of i||this.array)this.selectRow(s,l)}deSelect(i){this.selectRows(i,!1)}rangeStart;updateSelection=(i)=>{if(!this.select&&!this.multiple)return;let{target:l}=i;if(!(l instanceof HTMLElement))return;let s=l.closest(".tr");if(!(s instanceof HTMLElement))return;let t=K1(s);if(t===!1)return;let r=i,o=window.getSelection();if(o!==null)o.removeAllRanges();let e=this.visibleRows;if(this.multiple&&r.shiftKey&&e.length>0&&this.rangeStart!==t){let h=this.rangeStart===void 0||this.rangeStart[this.selectedKey]===!0,[a,x]=[this.rangeStart!==void 0?e.indexOf(this.rangeStart):0,e.indexOf(t)].sort((c,d)=>c-d);if(a>-1)for(let c=a;c<=x;c++){let d=e[c];this.selectRow(d,h)}}else if(this.multiple&&r.metaKey){this.selectRow(t,!t[this.selectedKey]);let h=e.indexOf(t),a=e[h+1],x=h>0?e[h-1]:void 0;if(a!==void 0&&a[this.selectedKey]===!0)this.rangeStart=a;else if(x!==void 0&&x[this.selectedKey]===!0)this.rangeStart=x;else this.rangeStart=void 0}else this.rangeStart=t,this.deSelect(),this.selectRow(t,!0);this.selectionChanged(this.visibleSelectedRows);for(let h of Array.from(this.querySelectorAll(".tr"))){let a=K1(h);this.selectBinding(h,a)}};connectedCallback(){super.connectedCallback(),this.addEventListener("mousemove",this.setCursor),this.addEventListener("mousedown",this.resizeColumn),this.addEventListener("touchstart",this.resizeColumn,{passive:!0}),this.addEventListener("mouseup",this.updateSelection),this.addEventListener("touchend",this.updateSelection)}setColumnWidths(){let i=this.visibleColumns.map((s)=>s.width+"px").join(" "),l=this.visibleColumns.reduce((s,t)=>s+t.width,0)+"px";this.style.setProperty("--tosi-table-grid-columns",i),this.style.setProperty("--tosi-table-grid-row-width",l),this.style.setProperty("--grid-columns",i),this.style.setProperty("--grid-row-width",l)}sortByColumn=(i,l="auto")=>{for(let s of this.columns.filter((t)=>U(t.sort)!==!1))if(U(s)===i){if(l==="auto")s.sort=s.sort==="ascending"?"descending":"ascending";else s.sort=l;this.queueRender()}else delete s.sort};popColumnMenu=(i,l)=>{let{sortByColumn:s}=this,t=this.columns.filter((e)=>e.visible===!1),r=this.queueRender.bind(this),o=[];if(!this.nosort&&l.sort!==!1)o.push({caption:this.localized?`${O("Sort")} ${O("Ascending")}`:"Sort Ascending",icon:"sortAscending",action(){s(l)}},{caption:this.localized?`${O("Sort")} ${O("Descending")}`:"Sort Descending",icon:"sortDescending",action(){s(l,"descending")}});if(!this.nohide){if(o.length)o.push(null);o.push({caption:this.localized?`${O("Hide")} ${O("Column")}`:"Hide Column",icon:"eyeOff",enabled:()=>l.visible!==!0,action(){l.visible=!1,r()}},{caption:this.localized?`${O("Show")} ${O("Column")}`:"Show Column",icon:"eye",enabled:()=>t.length>0,menuItems:t.map((e)=>{return{caption:e.name||e.prop,action(){delete e.visible,r()}}})})}K({target:i,localized:this.localized,menuItems:o})};get captionSpan(){return this.localized?k1:zi}headerCell=(i)=>{let{popColumnMenu:l}=this,s="none",t;switch(i.sort){case"ascending":t=v.sortAscending(),s="descending";break;case!1:break;default:break;case"descending":s="ascending",t=v.sortDescending()}let r=!(this.nosort&&this.nohide)?p3({class:"menu-trigger",onClick(o){l(o.target,i),o.stopPropagation()}},t||v.moreVertical()):{};return i.headerCell!==void 0?i.headerCell(i):zi({class:"th",role:"columnheader",ariaSort:s,style:{...this.cellStyle,justifyContent:i.align||"left"}},this.captionSpan({style:{flex:"1"}},typeof i.name==="string"?i.name:i.prop),r)};dataCell=(i)=>{if(i.dataCell!==void 0)return i.dataCell(i);return zi({class:"td",role:"cell",style:{...this.cellStyle,justifyContent:i.align||"left"},bindText:`^.${i.prop}`})};get visibleRows(){return U(this.rowData.visible)}get visibleSelectedRows(){return this.visibleRows.filter((i)=>i[this.selectedKey])}get selectedRows(){return this.array.filter((i)=>i[this.selectedKey])}rowTemplate(i){return g3(h2({class:"tr",role:"row",bind:{value:"^",binding:{toDOM:this.selectBinding}}},...i.map(this.dataCell)))}draggedColumn;dropColumn=(i)=>{let l=i.target.closest(".drag-over"),s=Array.from(l.parentElement.children).indexOf(l),t=this.visibleColumns[s],r=this.columns.indexOf(this.draggedColumn),o=this.columns.indexOf(t);this.columns.splice(r,1),this.columns.splice(o,0,this.draggedColumn),console.log({event:i,target:l,targetIndex:s,draggedIndex:r,droppedIndex:o}),this.queueRender(),i.preventDefault(),i.stopPropagation()};render(){super.render(),this.rowData.pinnedTop=this.pinnedTop>0?this._array.slice(0,this.pinnedTop):[],this.rowData.pinnedBottom=this.pinnedBottom>0?this._array.slice(this._array.length-this.pinnedBottom):[],this.rowData.visible=this.filter(this._array.slice(this.pinnedTop,Math.min(this.maxVisibleRows,this._array.length-this.pinnedTop-this.pinnedBottom)));let{sort:i}=this;if(i)this.rowData.visible.sort(i);this.textContent="",this.style.display="flex",this.style.flexDirection="column";let{visibleColumns:l}=this;if(this.style.setProperty("--tosi-table-row-height",`${this.rowHeight}px`),this.style.setProperty("--row-height",`${this.rowHeight}px`),this.setColumnWidths(),!this.noreorder)Bi();let s=this.instanceId+"-column-header",t=l.map((r)=>{let o=this.headerCell(r);if(!this.noreorder&&o.children[0]){let e=o.children[0];e.setAttribute("draggable","true"),e.style.pointerEvents="all",e.dataset.drag=s,o.dataset.drop=s,e.addEventListener("dragstart",()=>{this.draggedColumn=r}),o.addEventListener("drop",this.dropColumn)}return o});if(this.append(h2({class:"thead",role:"rowgroup",style:{touchAction:"none"}},h2({class:"tr",role:"row"},...t))),this.pinnedTop>0)this.append(h2({part:"pinnedTopRows",class:"tbody",role:"rowgroup",style:{flex:"0 0 auto",overflow:"hidden",height:`${this.rowHeight*this.pinnedTop}px`},bindList:{value:this.rowData.pinnedTop,virtual:this.virtual}},this.rowTemplate(l)));if(this.append(h2({part:"visibleRows",class:"tbody",role:"rowgroup",style:{content:" ",minHeight:"100px",flex:"1 1 100px",overflow:"hidden auto"},bindList:{value:this.rowData.visible,virtual:this.virtual}},this.rowTemplate(l))),this.pinnedBottom>0)this.append(h2({part:"pinnedBottomRows",class:"tbody",role:"rowgroup",style:{flex:"0 0 auto",overflow:"hidden",height:`${this.rowHeight*this.pinnedBottom}px`},bindList:{value:this.rowData.pinnedBottom,virtual:this.virtual}},this.rowTemplate(l)))}}var F4=fi.elementCreator({tag:"tosi-table",styleSpec:{":host":{"--tosi-table-row-height":"32px","--tosi-table-touch-size":"var(--tosi-touch-size, 44px)","--tosi-table-dragged-header-bg":"#0004","--tosi-table-dragged-header-color":"#fff","--tosi-table-drop-header-bg":"#fff4","--row-height":"var(--tosi-table-row-height)","--touch-size":"var(--tosi-table-touch-size)","--dragged-header-bg":"var(--tosi-table-dragged-header-bg)","--dragged-header-color":"var(--tosi-table-dragged-header-color)","--drop-header-bg":"var(--tosi-table-drop-header-bg)",overflow:"auto hidden"},":host .thead, :host .tbody":{width:y.tosiTableGridRowWidth},":host .tr":{display:"grid",gridTemplateColumns:y.tosiTableGridColumns,height:y.tosiTableRowHeight,lineHeight:y.tosiTableRowHeight},":host .td, :host .th":{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",display:"flex",alignItems:"center"},":host .th .menu-trigger":{color:"currentColor",background:"none",padding:0,lineHeight:y.tosiTableTouchSize,height:y.tosiTableTouchSize,width:y.tosiTableTouchSize},':host [draggable="true"]':{cursor:"ew-resize"},':host [draggable="true"]:active':{background:y.tosiTableDraggedHeaderBg,color:y.tosiTableDraggedHeaderColor},":host .drag-over":{background:y.tosiTableDropHeaderBg}}}),C3=Q(F4,"xinTable is deprecated. Use dataTable instead.");var{dialog:v3,button:Mi,header:k3,footer:n3,xinSlot:bi,h3:ui,p:Ai,label:w3,input:B3,div:z3}=C;class Pi extends w{static async alert(i,l="Alert"){return new Promise((s)=>{let t=r0({removeOnClose:!0,closeOnBackgroundClick:!0,dialogWillClose(){s()}},ui({slot:"header"},l),i.includes(`
15
+ `)?C.pre({style:{whiteSpace:"pre-wrap",margin:0}},i):Ai(i));document.body.append(t),t.showModal()})}static async confirm(i,l="Confirm"){return new Promise((s)=>{let t=r0({removeOnClose:!0,dialogWillClose(r){s(r==="confirm")}},ui({slot:"header"},l),Ai(i),Mi({slot:"footer",onClick(){t.close()}},"Cancel"));document.body.append(t),t.showModal()})}static async prompt(i,l="Prompt",s=""){return new Promise((t)=>{let r=B3({value:s}),o=r0({removeOnClose:!0,dialogWillClose(e){t(e==="confirm"?r.value:null)},initialFocus(){r.focus()}},ui({slot:"header"},l),Ai(w3({style:{display:"flex",flexDirection:"column",alignItems:"stretch",gap:5}},z3(i),r)),Mi({slot:"footer",onClick(){o.close()}},"Cancel"));document.body.append(o),o.showModal()})}static initAttributes={removeOnClose:!1,closeOnBackgroundClick:!1};constructor(){super();s2(this,"click",()=>{if(this.closeOnBackgroundClick)this.close()})}dialogWillClose=(i="cancel")=>{console.log("dialog will close with",i)};initialFocus(){this.parts.ok.focus()}#i=(i)=>{};showModal=()=>{return this.style.zIndex=String(X1()),new Promise((i)=>{this.#i=i,this.parts.dialog.showModal(),requestAnimationFrame(()=>{this.initialFocus()})})};close=(i="cancel")=>{if(this.dialogWillClose(i),this.#i(i),this.parts.dialog.close(),this.removeOnClose)this.remove()};ok=()=>{this.close("confirm")};content=()=>v3({part:"dialog"},k3(bi({name:"header"})),bi(),n3(bi({name:"footer"}),Mi({part:"ok",onClick:this.ok},"OK")))}var r0=Pi.elementCreator({tag:"tosi-dialog",styleSpec:{":host > dialog::backdrop":{backdropFilter:"blur(8px)"},":host > dialog:not([open])":{display:"none"},":host > dialog[open]":{minWidth:300,border:0,borderRadius:10,overflow:"hidden",maxHeight:"calc(100% - 20px)",padding:0,display:"flex",flexDirection:"column",gap:5,_dialogShadow:p.menuShadow("0 5px 10px #0004"),_dialogBackground:p.background("#fafafa"),_dialogColor:p.textColor("#222"),boxShadow:y.dialogShadow,background:y.dialogBackground,color:y.dialogColor},":host > dialog > *":{padding:"0 20px"},":host > dialog > header":{display:"flex",justifyContent:"center",gap:10},":host > dialog > footer":{display:"flex",justifyContent:"flex-end",gap:10,paddingBottom:20}}});function Fi(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var m1=Fi();function $4(i){m1=i}var H2={exec:()=>null};function F(i,l=""){let s=typeof i=="string"?i:i.source,t={replace:(r,o)=>{let e=typeof o=="string"?o:o.source;return e=e.replace(N.caret,"$1"),s=s.replace(r,e),t},getRegex:()=>new RegExp(s,l)};return t}var f3=(()=>{try{return!!new RegExp("(?<=1)(?<!1)")}catch{return!1}})(),N={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ xX]\] +/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:(i)=>new RegExp(`^( {0,3}${i})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:(i)=>new RegExp(`^ {0,${Math.min(3,i-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:(i)=>new RegExp(`^ {0,${Math.min(3,i-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:(i)=>new RegExp(`^ {0,${Math.min(3,i-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:(i)=>new RegExp(`^ {0,${Math.min(3,i-1)}}#`),htmlBeginRegex:(i)=>new RegExp(`^ {0,${Math.min(3,i-1)}}<(?:[a-z].*>|!--)`,"i")},M3=/^(?:[ \t]*(?:\n|$))+/,b3=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,u3=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,F2=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,A3=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,ji=/(?:[*+-]|\d{1,9}[.)])/,J4=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,G4=F(J4).replace(/bull/g,ji).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),P3=F(J4).replace(/bull/g,ji).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),_i=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,H3=/^[^\n]+/,Vi=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,F3=F(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",Vi).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),j3=F(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,ji).getRegex(),x0="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",qi=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,_3=F("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$))","i").replace("comment",qi).replace("tag",x0).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Q4=F(_i).replace("hr",F2).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",x0).getRegex(),V3=F(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",Q4).getRegex(),Oi={blockquote:V3,code:b3,def:F3,fences:u3,heading:A3,hr:F2,html:_3,lheading:G4,list:j3,newline:M3,paragraph:Q4,table:H2,text:H3},j4=F("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",F2).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3}\t)[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",x0).getRegex(),q3={...Oi,lheading:P3,table:j4,paragraph:F(_i).replace("hr",F2).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",j4).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",x0).getRegex()},O3={...Oi,html:F(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",qi).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:H2,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:F(_i).replace("hr",F2).replace("heading",` *#{1,6} *[^
16
+ ]`).replace("lheading",G4).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},U3=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,$3=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,Z4=/^( {2,}|\\)\n(?!\s*$)/,J3=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,y0=/[\p{P}\p{S}]/u,Ui=/[\s\p{P}\p{S}]/u,K4=/[^\s\p{P}\p{S}]/u,G3=F(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,Ui).getRegex(),N4=/(?!~)[\p{P}\p{S}]/u,Q3=/(?!~)[\s\p{P}\p{S}]/u,Z3=/(?:[^\s\p{P}\p{S}]|~)/u,K3=F(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",f3?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),X4=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,N3=F(X4,"u").replace(/punct/g,y0).getRegex(),X3=F(X4,"u").replace(/punct/g,N4).getRegex(),Y4="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",Y3=F(Y4,"gu").replace(/notPunctSpace/g,K4).replace(/punctSpace/g,Ui).replace(/punct/g,y0).getRegex(),W3=F(Y4,"gu").replace(/notPunctSpace/g,Z3).replace(/punctSpace/g,Q3).replace(/punct/g,N4).getRegex(),m3=F("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,K4).replace(/punctSpace/g,Ui).replace(/punct/g,y0).getRegex(),R3=F(/\\(punct)/,"gu").replace(/punct/g,y0).getRegex(),L3=F(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),I3=F(qi).replace("(?:-->|$)","-->").getRegex(),D3=F("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",I3).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),e0=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/,S3=F(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",e0).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),W4=F(/^!?\[(label)\]\[(ref)\]/).replace("label",e0).replace("ref",Vi).getRegex(),m4=F(/^!?\[(ref)\](?:\[\])?/).replace("ref",Vi).getRegex(),T3=F("reflink|nolink(?!\\()","g").replace("reflink",W4).replace("nolink",m4).getRegex(),_4=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,$i={_backpedal:H2,anyPunctuation:R3,autolink:L3,blockSkip:K3,br:Z4,code:$3,del:H2,emStrongLDelim:N3,emStrongRDelimAst:Y3,emStrongRDelimUnd:m3,escape:U3,link:S3,nolink:m4,punctuation:G3,reflink:W4,reflinkSearch:T3,tag:D3,text:J3,url:H2},E3={...$i,link:F(/^!?\[(label)\]\((.*?)\)/).replace("label",e0).getRegex(),reflink:F(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",e0).getRegex()},Hi={...$i,emStrongRDelimAst:W3,emStrongLDelim:X3,url:F(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",_4).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:F(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",_4).getRegex()},i9={...Hi,br:F(Z4).replace("{2,}","*").getRegex(),text:F(Hi.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},o0={normal:Oi,gfm:q3,pedantic:O3},u2={normal:$i,gfm:Hi,breaks:i9,pedantic:E3},l9={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},V4=(i)=>l9[i];function p1(i,l){if(l){if(N.escapeTest.test(i))return i.replace(N.escapeReplace,V4)}else if(N.escapeTestNoEncode.test(i))return i.replace(N.escapeReplaceNoEncode,V4);return i}function q4(i){try{i=encodeURI(i).replace(N.percentDecode,"%")}catch{return null}return i}function O4(i,l){let s=i.replace(N.findPipe,(o,e,h)=>{let a=!1,x=e;for(;--x>=0&&h[x]==="\\";)a=!a;return a?"|":" |"}),t=s.split(N.splitPipe),r=0;if(t[0].trim()||t.shift(),t.length>0&&!t.at(-1)?.trim()&&t.pop(),l)if(t.length>l)t.splice(l);else for(;t.length<l;)t.push("");for(;r<t.length;r++)t[r]=t[r].trim().replace(N.slashPipe,"|");return t}function A2(i,l,s){let t=i.length;if(t===0)return"";let r=0;for(;r<t;){let o=i.charAt(t-r-1);if(o===l&&!s)r++;else if(o!==l&&s)r++;else break}return i.slice(0,t-r)}function s9(i,l){if(i.indexOf(l[1])===-1)return-1;let s=0;for(let t=0;t<i.length;t++)if(i[t]==="\\")t++;else if(i[t]===l[0])s++;else if(i[t]===l[1]&&(s--,s<0))return t;return s>0?-2:-1}function U4(i,l,s,t,r){let o=l.href,e=l.title||null,h=i[1].replace(r.other.outputLinkReplace,"$1");t.state.inLink=!0;let a={type:i[0].charAt(0)==="!"?"image":"link",raw:s,href:o,title:e,text:h,tokens:t.inlineTokens(h)};return t.state.inLink=!1,a}function t9(i,l,s){let t=i.match(s.other.indentCodeCompensation);if(t===null)return l;let r=t[1];return l.split(`
17
17
  `).map((o)=>{let e=o.match(s.other.beginningSpace);if(e===null)return o;let[h]=e;return h.length>=r.length?o.slice(r.length):o}).join(`
18
- `)}var h0=class{options;rules;lexer;constructor(i){this.options=i||X1}space(i){let l=this.rules.block.newline.exec(i);if(l&&l[0].length>0)return{type:"space",raw:l[0]}}code(i){let l=this.rules.block.code.exec(i);if(l){let s=l[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:l[0],codeBlockStyle:"indented",text:this.options.pedantic?s:A2(s,`
19
- `)}}}fences(i){let l=this.rules.block.fences.exec(i);if(l){let s=l[0],t=l9(s,l[3]||"",this.rules);return{type:"code",raw:s,lang:l[2]?l[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):l[2],text:t}}}heading(i){let l=this.rules.block.heading.exec(i);if(l){let s=l[2].trim();if(this.rules.other.endingHash.test(s)){let t=A2(s,"#");(this.options.pedantic||!t||this.rules.other.endingSpaceChar.test(t))&&(s=t.trim())}return{type:"heading",raw:l[0],depth:l[1].length,text:s,tokens:this.lexer.inline(s)}}}hr(i){let l=this.rules.block.hr.exec(i);if(l)return{type:"hr",raw:A2(l[0],`
18
+ `)}var h0=class{options;rules;lexer;constructor(i){this.options=i||m1}space(i){let l=this.rules.block.newline.exec(i);if(l&&l[0].length>0)return{type:"space",raw:l[0]}}code(i){let l=this.rules.block.code.exec(i);if(l){let s=l[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:l[0],codeBlockStyle:"indented",text:this.options.pedantic?s:A2(s,`
19
+ `)}}}fences(i){let l=this.rules.block.fences.exec(i);if(l){let s=l[0],t=t9(s,l[3]||"",this.rules);return{type:"code",raw:s,lang:l[2]?l[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):l[2],text:t}}}heading(i){let l=this.rules.block.heading.exec(i);if(l){let s=l[2].trim();if(this.rules.other.endingHash.test(s)){let t=A2(s,"#");(this.options.pedantic||!t||this.rules.other.endingSpaceChar.test(t))&&(s=t.trim())}return{type:"heading",raw:l[0],depth:l[1].length,text:s,tokens:this.lexer.inline(s)}}}hr(i){let l=this.rules.block.hr.exec(i);if(l)return{type:"hr",raw:A2(l[0],`
20
20
  `)}}blockquote(i){let l=this.rules.block.blockquote.exec(i);if(l){let s=A2(l[0],`
21
21
  `).split(`
22
22
  `),t="",r="",o=[];for(;s.length>0;){let e=!1,h=[],a;for(a=0;a<s.length;a++)if(this.rules.other.blockquoteStart.test(s[a]))h.push(s[a]),e=!0;else if(!e)h.push(s[a]);else break;s=s.slice(a);let x=h.join(`
@@ -31,14 +31,14 @@ ${c}`:c;let d=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTo
31
31
  `);continue}}return{type:"blockquote",raw:t,tokens:o,text:r}}}list(i){let l=this.rules.block.list.exec(i);if(l){let s=l[1].trim(),t=s.length>1,r={type:"list",raw:"",ordered:t,start:t?+s.slice(0,-1):"",loose:!1,items:[]};s=t?`\\d{1,9}\\${s.slice(-1)}`:`\\${s}`,this.options.pedantic&&(s=t?s:"[*+-]");let o=this.rules.other.listItemRegex(s),e=!1;for(;i;){let a=!1,x="",c="";if(!(l=o.exec(i))||this.rules.block.hr.test(i))break;x=l[0],i=i.substring(x.length);let d=l[2].split(`
32
32
  `,1)[0].replace(this.rules.other.listReplaceTabs,(P)=>" ".repeat(3*P.length)),g=i.split(`
33
33
  `,1)[0],B=!d.trim(),k=0;if(this.options.pedantic?(k=2,c=d.trimStart()):B?k=l[1].length+1:(k=l[2].search(this.rules.other.nonSpaceChar),k=k>4?1:k,c=d.slice(k),k+=l[1].length),B&&this.rules.other.blankLine.test(g)&&(x+=g+`
34
- `,i=i.substring(g.length+1),a=!0),!a){let P=this.rules.other.nextBulletRegex(k),b=this.rules.other.hrRegex(k),u=this.rules.other.fencesBeginRegex(k),_=this.rules.other.headingBeginRegex(k),Y=this.rules.other.htmlBeginRegex(k);for(;i;){let G=i.split(`
35
- `,1)[0],W;if(g=G,this.options.pedantic?(g=g.replace(this.rules.other.listReplaceNesting," "),W=g):W=g.replace(this.rules.other.tabCharGlobal," "),u.test(g)||_.test(g)||Y.test(g)||P.test(g)||b.test(g))break;if(W.search(this.rules.other.nonSpaceChar)>=k||!g.trim())c+=`
36
- `+W.slice(k);else{if(B||d.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||u.test(d)||_.test(d)||b.test(d))break;c+=`
34
+ `,i=i.substring(g.length+1),a=!0),!a){let P=this.rules.other.nextBulletRegex(k),b=this.rules.other.hrRegex(k),u=this.rules.other.fencesBeginRegex(k),_=this.rules.other.headingBeginRegex(k),R=this.rules.other.htmlBeginRegex(k);for(;i;){let G=i.split(`
35
+ `,1)[0],L;if(g=G,this.options.pedantic?(g=g.replace(this.rules.other.listReplaceNesting," "),L=g):L=g.replace(this.rules.other.tabCharGlobal," "),u.test(g)||_.test(g)||R.test(g)||P.test(g)||b.test(g))break;if(L.search(this.rules.other.nonSpaceChar)>=k||!g.trim())c+=`
36
+ `+L.slice(k);else{if(B||d.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||u.test(d)||_.test(d)||b.test(d))break;c+=`
37
37
  `+g}!B&&!g.trim()&&(B=!0),x+=G+`
38
- `,i=i.substring(G.length+1),d=W.slice(k)}}r.loose||(e?r.loose=!0:this.rules.other.doubleBlankLine.test(x)&&(e=!0));let M=null,A;this.options.gfm&&(M=this.rules.other.listIsTask.exec(c),M&&(A=M[0]!=="[ ] ",c=c.replace(this.rules.other.listReplaceTask,""))),r.items.push({type:"list_item",raw:x,task:!!M,checked:A,loose:!1,text:c,tokens:[]}),r.raw+=x}let h=r.items.at(-1);if(h)h.raw=h.raw.trimEnd(),h.text=h.text.trimEnd();else return;r.raw=r.raw.trimEnd();for(let a=0;a<r.items.length;a++)if(this.lexer.state.top=!1,r.items[a].tokens=this.lexer.blockTokens(r.items[a].text,[]),!r.loose){let x=r.items[a].tokens.filter((d)=>d.type==="space"),c=x.length>0&&x.some((d)=>this.rules.other.anyLine.test(d.raw));r.loose=c}if(r.loose)for(let a=0;a<r.items.length;a++)r.items[a].loose=!0;return r}}html(i){let l=this.rules.block.html.exec(i);if(l)return{type:"html",block:!0,raw:l[0],pre:l[1]==="pre"||l[1]==="script"||l[1]==="style",text:l[0]}}def(i){let l=this.rules.block.def.exec(i);if(l){let s=l[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),t=l[2]?l[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",r=l[3]?l[3].substring(1,l[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):l[3];return{type:"def",tag:s,raw:l[0],href:t,title:r}}}table(i){let l=this.rules.block.table.exec(i);if(!l||!this.rules.other.tableDelimiter.test(l[2]))return;let s=O4(l[1]),t=l[2].replace(this.rules.other.tableAlignChars,"").split("|"),r=l[3]?.trim()?l[3].replace(this.rules.other.tableRowBlankLine,"").split(`
38
+ `,i=i.substring(G.length+1),d=L.slice(k)}}r.loose||(e?r.loose=!0:this.rules.other.doubleBlankLine.test(x)&&(e=!0));let M=null,A;this.options.gfm&&(M=this.rules.other.listIsTask.exec(c),M&&(A=M[0]!=="[ ] ",c=c.replace(this.rules.other.listReplaceTask,""))),r.items.push({type:"list_item",raw:x,task:!!M,checked:A,loose:!1,text:c,tokens:[]}),r.raw+=x}let h=r.items.at(-1);if(h)h.raw=h.raw.trimEnd(),h.text=h.text.trimEnd();else return;r.raw=r.raw.trimEnd();for(let a=0;a<r.items.length;a++)if(this.lexer.state.top=!1,r.items[a].tokens=this.lexer.blockTokens(r.items[a].text,[]),!r.loose){let x=r.items[a].tokens.filter((d)=>d.type==="space"),c=x.length>0&&x.some((d)=>this.rules.other.anyLine.test(d.raw));r.loose=c}if(r.loose)for(let a=0;a<r.items.length;a++)r.items[a].loose=!0;return r}}html(i){let l=this.rules.block.html.exec(i);if(l)return{type:"html",block:!0,raw:l[0],pre:l[1]==="pre"||l[1]==="script"||l[1]==="style",text:l[0]}}def(i){let l=this.rules.block.def.exec(i);if(l){let s=l[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),t=l[2]?l[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",r=l[3]?l[3].substring(1,l[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):l[3];return{type:"def",tag:s,raw:l[0],href:t,title:r}}}table(i){let l=this.rules.block.table.exec(i);if(!l||!this.rules.other.tableDelimiter.test(l[2]))return;let s=O4(l[1]),t=l[2].replace(this.rules.other.tableAlignChars,"").split("|"),r=l[3]?.trim()?l[3].replace(this.rules.other.tableRowBlankLine,"").split(`
39
39
  `):[],o={type:"table",raw:l[0],header:[],align:[],rows:[]};if(s.length===t.length){for(let e of t)this.rules.other.tableAlignRight.test(e)?o.align.push("right"):this.rules.other.tableAlignCenter.test(e)?o.align.push("center"):this.rules.other.tableAlignLeft.test(e)?o.align.push("left"):o.align.push(null);for(let e=0;e<s.length;e++)o.header.push({text:s[e],tokens:this.lexer.inline(s[e]),header:!0,align:o.align[e]});for(let e of r)o.rows.push(O4(e,o.header.length).map((h,a)=>({text:h,tokens:this.lexer.inline(h),header:!1,align:o.align[a]})));return o}}lheading(i){let l=this.rules.block.lheading.exec(i);if(l)return{type:"heading",raw:l[0],depth:l[2].charAt(0)==="="?1:2,text:l[1],tokens:this.lexer.inline(l[1])}}paragraph(i){let l=this.rules.block.paragraph.exec(i);if(l){let s=l[1].charAt(l[1].length-1)===`
40
- `?l[1].slice(0,-1):l[1];return{type:"paragraph",raw:l[0],text:s,tokens:this.lexer.inline(s)}}}text(i){let l=this.rules.block.text.exec(i);if(l)return{type:"text",raw:l[0],text:l[0],tokens:this.lexer.inline(l[0])}}escape(i){let l=this.rules.inline.escape.exec(i);if(l)return{type:"escape",raw:l[0],text:l[1]}}tag(i){let l=this.rules.inline.tag.exec(i);if(l)return!this.lexer.state.inLink&&this.rules.other.startATag.test(l[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(l[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(l[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(l[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:l[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:l[0]}}link(i){let l=this.rules.inline.link.exec(i);if(l){let s=l[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(s)){if(!this.rules.other.endAngleBracket.test(s))return;let o=A2(s.slice(0,-1),"\\");if((s.length-o.length)%2===0)return}else{let o=i9(l[2],"()");if(o===-2)return;if(o>-1){let e=(l[0].indexOf("!")===0?5:4)+l[1].length+o;l[2]=l[2].substring(0,o),l[0]=l[0].substring(0,e).trim(),l[3]=""}}let t=l[2],r="";if(this.options.pedantic){let o=this.rules.other.pedanticHrefTitle.exec(t);o&&(t=o[1],r=o[3])}else r=l[3]?l[3].slice(1,-1):"";return t=t.trim(),this.rules.other.startAngleBracket.test(t)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(s)?t=t.slice(1):t=t.slice(1,-1)),U4(l,{href:t&&t.replace(this.rules.inline.anyPunctuation,"$1"),title:r&&r.replace(this.rules.inline.anyPunctuation,"$1")},l[0],this.lexer,this.rules)}}reflink(i,l){let s;if((s=this.rules.inline.reflink.exec(i))||(s=this.rules.inline.nolink.exec(i))){let t=(s[2]||s[1]).replace(this.rules.other.multipleSpaceGlobal," "),r=l[t.toLowerCase()];if(!r){let o=s[0].charAt(0);return{type:"text",raw:o,text:o}}return U4(s,r,s[0],this.lexer,this.rules)}}emStrong(i,l,s=""){let t=this.rules.inline.emStrongLDelim.exec(i);if(!t||t[3]&&s.match(this.rules.other.unicodeAlphaNumeric))return;if(!(t[1]||t[2])||!s||this.rules.inline.punctuation.exec(s)){let r=[...t[0]].length-1,o,e,h=r,a=0,x=t[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(x.lastIndex=0,l=l.slice(-1*i.length+r);(t=x.exec(l))!=null;){if(o=t[1]||t[2]||t[3]||t[4]||t[5]||t[6],!o)continue;if(e=[...o].length,t[3]||t[4]){h+=e;continue}else if((t[5]||t[6])&&r%3&&!((r+e)%3)){a+=e;continue}if(h-=e,h>0)continue;e=Math.min(e,e+h+a);let c=[...t[0]][0].length,d=i.slice(0,r+t.index+c+e);if(Math.min(r,e)%2){let B=d.slice(1,-1);return{type:"em",raw:d,text:B,tokens:this.lexer.inlineTokens(B)}}let g=d.slice(2,-2);return{type:"strong",raw:d,text:g,tokens:this.lexer.inlineTokens(g)}}}}codespan(i){let l=this.rules.inline.code.exec(i);if(l){let s=l[2].replace(this.rules.other.newLineCharGlobal," "),t=this.rules.other.nonSpaceChar.test(s),r=this.rules.other.startingSpaceChar.test(s)&&this.rules.other.endingSpaceChar.test(s);return t&&r&&(s=s.substring(1,s.length-1)),{type:"codespan",raw:l[0],text:s}}}br(i){let l=this.rules.inline.br.exec(i);if(l)return{type:"br",raw:l[0]}}del(i){let l=this.rules.inline.del.exec(i);if(l)return{type:"del",raw:l[0],text:l[2],tokens:this.lexer.inlineTokens(l[2])}}autolink(i){let l=this.rules.inline.autolink.exec(i);if(l){let s,t;return l[2]==="@"?(s=l[1],t="mailto:"+s):(s=l[1],t=s),{type:"link",raw:l[0],text:s,href:t,tokens:[{type:"text",raw:s,text:s}]}}}url(i){let l;if(l=this.rules.inline.url.exec(i)){let s,t;if(l[2]==="@")s=l[0],t="mailto:"+s;else{let r;do r=l[0],l[0]=this.rules.inline._backpedal.exec(l[0])?.[0]??"";while(r!==l[0]);s=l[0],l[1]==="www."?t="http://"+l[0]:t=l[0]}return{type:"link",raw:l[0],text:s,href:t,tokens:[{type:"text",raw:s,text:s}]}}}inlineText(i){let l=this.rules.inline.text.exec(i);if(l){let s=this.lexer.state.inRawBlock;return{type:"text",raw:l[0],text:l[0],escaped:s}}}},i1=class i{tokens;options;state;tokenizer;inlineQueue;constructor(l){this.tokens=[],this.tokens.links=Object.create(null),this.options=l||X1,this.options.tokenizer=this.options.tokenizer||new h0,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let s={other:m,block:o0.normal,inline:u2.normal};this.options.pedantic?(s.block=o0.pedantic,s.inline=u2.pedantic):this.options.gfm&&(s.block=o0.gfm,this.options.breaks?s.inline=u2.breaks:s.inline=u2.gfm),this.tokenizer.rules=s}static get rules(){return{block:o0,inline:u2}}static lex(l,s){return new i(s).lex(l)}static lexInline(l,s){return new i(s).inlineTokens(l)}lex(l){l=l.replace(m.carriageReturn,`
41
- `),this.blockTokens(l,this.tokens);for(let s=0;s<this.inlineQueue.length;s++){let t=this.inlineQueue[s];this.inlineTokens(t.src,t.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(l,s=[],t=!1){for(this.options.pedantic&&(l=l.replace(m.tabCharGlobal," ").replace(m.spaceLine,""));l;){let r;if(this.options.extensions?.block?.some((e)=>(r=e.call({lexer:this},l,s))?(l=l.substring(r.raw.length),s.push(r),!0):!1))continue;if(r=this.tokenizer.space(l)){l=l.substring(r.raw.length);let e=s.at(-1);r.raw.length===1&&e!==void 0?e.raw+=`
40
+ `?l[1].slice(0,-1):l[1];return{type:"paragraph",raw:l[0],text:s,tokens:this.lexer.inline(s)}}}text(i){let l=this.rules.block.text.exec(i);if(l)return{type:"text",raw:l[0],text:l[0],tokens:this.lexer.inline(l[0])}}escape(i){let l=this.rules.inline.escape.exec(i);if(l)return{type:"escape",raw:l[0],text:l[1]}}tag(i){let l=this.rules.inline.tag.exec(i);if(l)return!this.lexer.state.inLink&&this.rules.other.startATag.test(l[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(l[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(l[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(l[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:l[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:l[0]}}link(i){let l=this.rules.inline.link.exec(i);if(l){let s=l[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(s)){if(!this.rules.other.endAngleBracket.test(s))return;let o=A2(s.slice(0,-1),"\\");if((s.length-o.length)%2===0)return}else{let o=s9(l[2],"()");if(o===-2)return;if(o>-1){let e=(l[0].indexOf("!")===0?5:4)+l[1].length+o;l[2]=l[2].substring(0,o),l[0]=l[0].substring(0,e).trim(),l[3]=""}}let t=l[2],r="";if(this.options.pedantic){let o=this.rules.other.pedanticHrefTitle.exec(t);o&&(t=o[1],r=o[3])}else r=l[3]?l[3].slice(1,-1):"";return t=t.trim(),this.rules.other.startAngleBracket.test(t)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(s)?t=t.slice(1):t=t.slice(1,-1)),U4(l,{href:t&&t.replace(this.rules.inline.anyPunctuation,"$1"),title:r&&r.replace(this.rules.inline.anyPunctuation,"$1")},l[0],this.lexer,this.rules)}}reflink(i,l){let s;if((s=this.rules.inline.reflink.exec(i))||(s=this.rules.inline.nolink.exec(i))){let t=(s[2]||s[1]).replace(this.rules.other.multipleSpaceGlobal," "),r=l[t.toLowerCase()];if(!r){let o=s[0].charAt(0);return{type:"text",raw:o,text:o}}return U4(s,r,s[0],this.lexer,this.rules)}}emStrong(i,l,s=""){let t=this.rules.inline.emStrongLDelim.exec(i);if(!t||t[3]&&s.match(this.rules.other.unicodeAlphaNumeric))return;if(!(t[1]||t[2])||!s||this.rules.inline.punctuation.exec(s)){let r=[...t[0]].length-1,o,e,h=r,a=0,x=t[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(x.lastIndex=0,l=l.slice(-1*i.length+r);(t=x.exec(l))!=null;){if(o=t[1]||t[2]||t[3]||t[4]||t[5]||t[6],!o)continue;if(e=[...o].length,t[3]||t[4]){h+=e;continue}else if((t[5]||t[6])&&r%3&&!((r+e)%3)){a+=e;continue}if(h-=e,h>0)continue;e=Math.min(e,e+h+a);let c=[...t[0]][0].length,d=i.slice(0,r+t.index+c+e);if(Math.min(r,e)%2){let B=d.slice(1,-1);return{type:"em",raw:d,text:B,tokens:this.lexer.inlineTokens(B)}}let g=d.slice(2,-2);return{type:"strong",raw:d,text:g,tokens:this.lexer.inlineTokens(g)}}}}codespan(i){let l=this.rules.inline.code.exec(i);if(l){let s=l[2].replace(this.rules.other.newLineCharGlobal," "),t=this.rules.other.nonSpaceChar.test(s),r=this.rules.other.startingSpaceChar.test(s)&&this.rules.other.endingSpaceChar.test(s);return t&&r&&(s=s.substring(1,s.length-1)),{type:"codespan",raw:l[0],text:s}}}br(i){let l=this.rules.inline.br.exec(i);if(l)return{type:"br",raw:l[0]}}del(i){let l=this.rules.inline.del.exec(i);if(l)return{type:"del",raw:l[0],text:l[2],tokens:this.lexer.inlineTokens(l[2])}}autolink(i){let l=this.rules.inline.autolink.exec(i);if(l){let s,t;return l[2]==="@"?(s=l[1],t="mailto:"+s):(s=l[1],t=s),{type:"link",raw:l[0],text:s,href:t,tokens:[{type:"text",raw:s,text:s}]}}}url(i){let l;if(l=this.rules.inline.url.exec(i)){let s,t;if(l[2]==="@")s=l[0],t="mailto:"+s;else{let r;do r=l[0],l[0]=this.rules.inline._backpedal.exec(l[0])?.[0]??"";while(r!==l[0]);s=l[0],l[1]==="www."?t="http://"+l[0]:t=l[0]}return{type:"link",raw:l[0],text:s,href:t,tokens:[{type:"text",raw:s,text:s}]}}}inlineText(i){let l=this.rules.inline.text.exec(i);if(l){let s=this.lexer.state.inRawBlock;return{type:"text",raw:l[0],text:l[0],escaped:s}}}},l1=class i{tokens;options;state;tokenizer;inlineQueue;constructor(l){this.tokens=[],this.tokens.links=Object.create(null),this.options=l||m1,this.options.tokenizer=this.options.tokenizer||new h0,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let s={other:N,block:o0.normal,inline:u2.normal};this.options.pedantic?(s.block=o0.pedantic,s.inline=u2.pedantic):this.options.gfm&&(s.block=o0.gfm,this.options.breaks?s.inline=u2.breaks:s.inline=u2.gfm),this.tokenizer.rules=s}static get rules(){return{block:o0,inline:u2}}static lex(l,s){return new i(s).lex(l)}static lexInline(l,s){return new i(s).inlineTokens(l)}lex(l){l=l.replace(N.carriageReturn,`
41
+ `),this.blockTokens(l,this.tokens);for(let s=0;s<this.inlineQueue.length;s++){let t=this.inlineQueue[s];this.inlineTokens(t.src,t.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(l,s=[],t=!1){for(this.options.pedantic&&(l=l.replace(N.tabCharGlobal," ").replace(N.spaceLine,""));l;){let r;if(this.options.extensions?.block?.some((e)=>(r=e.call({lexer:this},l,s))?(l=l.substring(r.raw.length),s.push(r),!0):!1))continue;if(r=this.tokenizer.space(l)){l=l.substring(r.raw.length);let e=s.at(-1);r.raw.length===1&&e!==void 0?e.raw+=`
42
42
  `:s.push(r);continue}if(r=this.tokenizer.code(l)){l=l.substring(r.raw.length);let e=s.at(-1);e?.type==="paragraph"||e?.type==="text"?(e.raw+=(e.raw.endsWith(`
43
43
  `)?"":`
44
44
  `)+r.raw,e.text+=`
@@ -51,7 +51,7 @@ ${c}`:c;let d=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTo
51
51
  `+r.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=e.text):s.push(r),t=o.length!==l.length,l=l.substring(r.raw.length);continue}if(r=this.tokenizer.text(l)){l=l.substring(r.raw.length);let e=s.at(-1);e?.type==="text"?(e.raw+=(e.raw.endsWith(`
52
52
  `)?"":`
53
53
  `)+r.raw,e.text+=`
54
- `+r.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=e.text):s.push(r);continue}if(l){let e="Infinite loop on byte: "+l.charCodeAt(0);if(this.options.silent){console.error(e);break}else throw Error(e)}}return this.state.top=!0,s}inline(l,s=[]){return this.inlineQueue.push({src:l,tokens:s}),s}inlineTokens(l,s=[]){let t=l,r=null;if(this.tokens.links){let a=Object.keys(this.tokens.links);if(a.length>0)for(;(r=this.tokenizer.rules.inline.reflinkSearch.exec(t))!=null;)a.includes(r[0].slice(r[0].lastIndexOf("[")+1,-1))&&(t=t.slice(0,r.index)+"["+"a".repeat(r[0].length-2)+"]"+t.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(r=this.tokenizer.rules.inline.anyPunctuation.exec(t))!=null;)t=t.slice(0,r.index)+"++"+t.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);let o;for(;(r=this.tokenizer.rules.inline.blockSkip.exec(t))!=null;)o=r[2]?r[2].length:0,t=t.slice(0,r.index+o)+"["+"a".repeat(r[0].length-o-2)+"]"+t.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);t=this.options.hooks?.emStrongMask?.call({lexer:this},t)??t;let e=!1,h="";for(;l;){e||(h=""),e=!1;let a;if(this.options.extensions?.inline?.some((c)=>(a=c.call({lexer:this},l,s))?(l=l.substring(a.raw.length),s.push(a),!0):!1))continue;if(a=this.tokenizer.escape(l)){l=l.substring(a.raw.length),s.push(a);continue}if(a=this.tokenizer.tag(l)){l=l.substring(a.raw.length),s.push(a);continue}if(a=this.tokenizer.link(l)){l=l.substring(a.raw.length),s.push(a);continue}if(a=this.tokenizer.reflink(l,this.tokens.links)){l=l.substring(a.raw.length);let c=s.at(-1);a.type==="text"&&c?.type==="text"?(c.raw+=a.raw,c.text+=a.text):s.push(a);continue}if(a=this.tokenizer.emStrong(l,t,h)){l=l.substring(a.raw.length),s.push(a);continue}if(a=this.tokenizer.codespan(l)){l=l.substring(a.raw.length),s.push(a);continue}if(a=this.tokenizer.br(l)){l=l.substring(a.raw.length),s.push(a);continue}if(a=this.tokenizer.del(l)){l=l.substring(a.raw.length),s.push(a);continue}if(a=this.tokenizer.autolink(l)){l=l.substring(a.raw.length),s.push(a);continue}if(!this.state.inLink&&(a=this.tokenizer.url(l))){l=l.substring(a.raw.length),s.push(a);continue}let x=l;if(this.options.extensions?.startInline){let c=1/0,d=l.slice(1),g;this.options.extensions.startInline.forEach((B)=>{g=B.call({lexer:this},d),typeof g=="number"&&g>=0&&(c=Math.min(c,g))}),c<1/0&&c>=0&&(x=l.substring(0,c+1))}if(a=this.tokenizer.inlineText(x)){l=l.substring(a.raw.length),a.raw.slice(-1)!=="_"&&(h=a.raw.slice(-1)),e=!0;let c=s.at(-1);c?.type==="text"?(c.raw+=a.raw,c.text+=a.text):s.push(a);continue}if(l){let c="Infinite loop on byte: "+l.charCodeAt(0);if(this.options.silent){console.error(c);break}else throw Error(c)}}return s}},a0=class{options;parser;constructor(i){this.options=i||X1}space(i){return""}code({text:i,lang:l,escaped:s}){let t=(l||"").match(m.notSpaceStart)?.[0],r=i.replace(m.endingNewline,"")+`
54
+ `+r.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=e.text):s.push(r);continue}if(l){let e="Infinite loop on byte: "+l.charCodeAt(0);if(this.options.silent){console.error(e);break}else throw Error(e)}}return this.state.top=!0,s}inline(l,s=[]){return this.inlineQueue.push({src:l,tokens:s}),s}inlineTokens(l,s=[]){let t=l,r=null;if(this.tokens.links){let a=Object.keys(this.tokens.links);if(a.length>0)for(;(r=this.tokenizer.rules.inline.reflinkSearch.exec(t))!=null;)a.includes(r[0].slice(r[0].lastIndexOf("[")+1,-1))&&(t=t.slice(0,r.index)+"["+"a".repeat(r[0].length-2)+"]"+t.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(r=this.tokenizer.rules.inline.anyPunctuation.exec(t))!=null;)t=t.slice(0,r.index)+"++"+t.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);let o;for(;(r=this.tokenizer.rules.inline.blockSkip.exec(t))!=null;)o=r[2]?r[2].length:0,t=t.slice(0,r.index+o)+"["+"a".repeat(r[0].length-o-2)+"]"+t.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);t=this.options.hooks?.emStrongMask?.call({lexer:this},t)??t;let e=!1,h="";for(;l;){e||(h=""),e=!1;let a;if(this.options.extensions?.inline?.some((c)=>(a=c.call({lexer:this},l,s))?(l=l.substring(a.raw.length),s.push(a),!0):!1))continue;if(a=this.tokenizer.escape(l)){l=l.substring(a.raw.length),s.push(a);continue}if(a=this.tokenizer.tag(l)){l=l.substring(a.raw.length),s.push(a);continue}if(a=this.tokenizer.link(l)){l=l.substring(a.raw.length),s.push(a);continue}if(a=this.tokenizer.reflink(l,this.tokens.links)){l=l.substring(a.raw.length);let c=s.at(-1);a.type==="text"&&c?.type==="text"?(c.raw+=a.raw,c.text+=a.text):s.push(a);continue}if(a=this.tokenizer.emStrong(l,t,h)){l=l.substring(a.raw.length),s.push(a);continue}if(a=this.tokenizer.codespan(l)){l=l.substring(a.raw.length),s.push(a);continue}if(a=this.tokenizer.br(l)){l=l.substring(a.raw.length),s.push(a);continue}if(a=this.tokenizer.del(l)){l=l.substring(a.raw.length),s.push(a);continue}if(a=this.tokenizer.autolink(l)){l=l.substring(a.raw.length),s.push(a);continue}if(!this.state.inLink&&(a=this.tokenizer.url(l))){l=l.substring(a.raw.length),s.push(a);continue}let x=l;if(this.options.extensions?.startInline){let c=1/0,d=l.slice(1),g;this.options.extensions.startInline.forEach((B)=>{g=B.call({lexer:this},d),typeof g=="number"&&g>=0&&(c=Math.min(c,g))}),c<1/0&&c>=0&&(x=l.substring(0,c+1))}if(a=this.tokenizer.inlineText(x)){l=l.substring(a.raw.length),a.raw.slice(-1)!=="_"&&(h=a.raw.slice(-1)),e=!0;let c=s.at(-1);c?.type==="text"?(c.raw+=a.raw,c.text+=a.text):s.push(a);continue}if(l){let c="Infinite loop on byte: "+l.charCodeAt(0);if(this.options.silent){console.error(c);break}else throw Error(c)}}return s}},a0=class{options;parser;constructor(i){this.options=i||m1}space(i){return""}code({text:i,lang:l,escaped:s}){let t=(l||"").match(N.notSpaceStart)?.[0],r=i.replace(N.endingNewline,"")+`
55
55
  `;return t?'<pre><code class="language-'+p1(t)+'">'+(s?r:p1(r,!0))+`</code></pre>
56
56
  `:"<pre><code>"+(s?r:p1(r,!0))+`</code></pre>
57
57
  `}blockquote({tokens:i}){return`<blockquote>
@@ -69,11 +69,11 @@ ${this.parser.parse(i)}</blockquote>
69
69
  `}tablerow({text:i}){return`<tr>
70
70
  ${i}</tr>
71
71
  `}tablecell(i){let l=this.parser.parseInline(i.tokens),s=i.header?"th":"td";return(i.align?`<${s} align="${i.align}">`:`<${s}>`)+l+`</${s}>
72
- `}strong({tokens:i}){return`<strong>${this.parser.parseInline(i)}</strong>`}em({tokens:i}){return`<em>${this.parser.parseInline(i)}</em>`}codespan({text:i}){return`<code>${p1(i,!0)}</code>`}br(i){return"<br>"}del({tokens:i}){return`<del>${this.parser.parseInline(i)}</del>`}link({href:i,title:l,tokens:s}){let t=this.parser.parseInline(s),r=q4(i);if(r===null)return t;i=r;let o='<a href="'+i+'"';return l&&(o+=' title="'+p1(l)+'"'),o+=">"+t+"</a>",o}image({href:i,title:l,text:s,tokens:t}){t&&(s=this.parser.parseInline(t,this.parser.textRenderer));let r=q4(i);if(r===null)return p1(s);i=r;let o=`<img src="${i}" alt="${s}"`;return l&&(o+=` title="${p1(l)}"`),o+=">",o}text(i){return"tokens"in i&&i.tokens?this.parser.parseInline(i.tokens):("escaped"in i)&&i.escaped?i.text:p1(i.text)}},Ji=class{strong({text:i}){return i}em({text:i}){return i}codespan({text:i}){return i}del({text:i}){return i}html({text:i}){return i}text({text:i}){return i}link({text:i}){return""+i}image({text:i}){return""+i}br(){return""}},l1=class i{options;renderer;textRenderer;constructor(l){this.options=l||X1,this.options.renderer=this.options.renderer||new a0,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new Ji}static parse(l,s){return new i(s).parse(l)}static parseInline(l,s){return new i(s).parseInline(l)}parse(l,s=!0){let t="";for(let r=0;r<l.length;r++){let o=l[r];if(this.options.extensions?.renderers?.[o.type]){let h=o,a=this.options.extensions.renderers[h.type].call({parser:this},h);if(a!==!1||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(h.type)){t+=a||"";continue}}let e=o;switch(e.type){case"space":{t+=this.renderer.space(e);continue}case"hr":{t+=this.renderer.hr(e);continue}case"heading":{t+=this.renderer.heading(e);continue}case"code":{t+=this.renderer.code(e);continue}case"table":{t+=this.renderer.table(e);continue}case"blockquote":{t+=this.renderer.blockquote(e);continue}case"list":{t+=this.renderer.list(e);continue}case"html":{t+=this.renderer.html(e);continue}case"def":{t+=this.renderer.def(e);continue}case"paragraph":{t+=this.renderer.paragraph(e);continue}case"text":{let h=e,a=this.renderer.text(h);for(;r+1<l.length&&l[r+1].type==="text";)h=l[++r],a+=`
73
- `+this.renderer.text(h);s?t+=this.renderer.paragraph({type:"paragraph",raw:a,text:a,tokens:[{type:"text",raw:a,text:a,escaped:!0}]}):t+=a;continue}default:{let h='Token with "'+e.type+'" type was not found.';if(this.options.silent)return console.error(h),"";throw Error(h)}}}return t}parseInline(l,s=this.renderer){let t="";for(let r=0;r<l.length;r++){let o=l[r];if(this.options.extensions?.renderers?.[o.type]){let h=this.options.extensions.renderers[o.type].call({parser:this},o);if(h!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(o.type)){t+=h||"";continue}}let e=o;switch(e.type){case"escape":{t+=s.text(e);break}case"html":{t+=s.html(e);break}case"link":{t+=s.link(e);break}case"image":{t+=s.image(e);break}case"strong":{t+=s.strong(e);break}case"em":{t+=s.em(e);break}case"codespan":{t+=s.codespan(e);break}case"br":{t+=s.br(e);break}case"del":{t+=s.del(e);break}case"text":{t+=s.text(e);break}default:{let h='Token with "'+e.type+'" type was not found.';if(this.options.silent)return console.error(h),"";throw Error(h)}}}return t}},P2=class{options;block;constructor(i){this.options=i||X1}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens","emStrongMask"]);static passThroughHooksRespectAsync=new Set(["preprocess","postprocess","processAllTokens"]);preprocess(i){return i}postprocess(i){return i}processAllTokens(i){return i}emStrongMask(i){return i}provideLexer(){return this.block?i1.lex:i1.lexInline}provideParser(){return this.block?l1.parse:l1.parseInline}},s9=class{defaults=Fi();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=l1;Renderer=a0;TextRenderer=Ji;Lexer=i1;Tokenizer=h0;Hooks=P2;constructor(...i){this.use(...i)}walkTokens(i,l){let s=[];for(let t of i)switch(s=s.concat(l.call(this,t)),t.type){case"table":{let r=t;for(let o of r.header)s=s.concat(this.walkTokens(o.tokens,l));for(let o of r.rows)for(let e of o)s=s.concat(this.walkTokens(e.tokens,l));break}case"list":{let r=t;s=s.concat(this.walkTokens(r.items,l));break}default:{let r=t;this.defaults.extensions?.childTokens?.[r.type]?this.defaults.extensions.childTokens[r.type].forEach((o)=>{let e=r[o].flat(1/0);s=s.concat(this.walkTokens(e,l))}):r.tokens&&(s=s.concat(this.walkTokens(r.tokens,l)))}}return s}use(...i){let l=this.defaults.extensions||{renderers:{},childTokens:{}};return i.forEach((s)=>{let t={...s};if(t.async=this.defaults.async||t.async||!1,s.extensions&&(s.extensions.forEach((r)=>{if(!r.name)throw Error("extension name required");if("renderer"in r){let o=l.renderers[r.name];o?l.renderers[r.name]=function(...e){let h=r.renderer.apply(this,e);return h===!1&&(h=o.apply(this,e)),h}:l.renderers[r.name]=r.renderer}if("tokenizer"in r){if(!r.level||r.level!=="block"&&r.level!=="inline")throw Error("extension level must be 'block' or 'inline'");let o=l[r.level];o?o.unshift(r.tokenizer):l[r.level]=[r.tokenizer],r.start&&(r.level==="block"?l.startBlock?l.startBlock.push(r.start):l.startBlock=[r.start]:r.level==="inline"&&(l.startInline?l.startInline.push(r.start):l.startInline=[r.start]))}"childTokens"in r&&r.childTokens&&(l.childTokens[r.name]=r.childTokens)}),t.extensions=l),s.renderer){let r=this.defaults.renderer||new a0(this.defaults);for(let o in s.renderer){if(!(o in r))throw Error(`renderer '${o}' does not exist`);if(["options","parser"].includes(o))continue;let e=o,h=s.renderer[e],a=r[e];r[e]=(...x)=>{let c=h.apply(r,x);return c===!1&&(c=a.apply(r,x)),c||""}}t.renderer=r}if(s.tokenizer){let r=this.defaults.tokenizer||new h0(this.defaults);for(let o in s.tokenizer){if(!(o in r))throw Error(`tokenizer '${o}' does not exist`);if(["options","rules","lexer"].includes(o))continue;let e=o,h=s.tokenizer[e],a=r[e];r[e]=(...x)=>{let c=h.apply(r,x);return c===!1&&(c=a.apply(r,x)),c}}t.tokenizer=r}if(s.hooks){let r=this.defaults.hooks||new P2;for(let o in s.hooks){if(!(o in r))throw Error(`hook '${o}' does not exist`);if(["options","block"].includes(o))continue;let e=o,h=s.hooks[e],a=r[e];P2.passThroughHooks.has(o)?r[e]=(x)=>{if(this.defaults.async&&P2.passThroughHooksRespectAsync.has(o))return(async()=>{let d=await h.call(r,x);return a.call(r,d)})();let c=h.call(r,x);return a.call(r,c)}:r[e]=(...x)=>{if(this.defaults.async)return(async()=>{let d=await h.apply(r,x);return d===!1&&(d=await a.apply(r,x)),d})();let c=h.apply(r,x);return c===!1&&(c=a.apply(r,x)),c}}t.hooks=r}if(s.walkTokens){let r=this.defaults.walkTokens,o=s.walkTokens;t.walkTokens=function(e){let h=[];return h.push(o.call(this,e)),r&&(h=h.concat(r.call(this,e))),h}}this.defaults={...this.defaults,...t}}),this}setOptions(i){return this.defaults={...this.defaults,...i},this}lexer(i,l){return i1.lex(i,l??this.defaults)}parser(i,l){return l1.parse(i,l??this.defaults)}parseMarkdown(i){return(l,s)=>{let t={...s},r={...this.defaults,...t},o=this.onError(!!r.silent,!!r.async);if(this.defaults.async===!0&&t.async===!1)return o(Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof l>"u"||l===null)return o(Error("marked(): input parameter is undefined or null"));if(typeof l!="string")return o(Error("marked(): input parameter is of type "+Object.prototype.toString.call(l)+", string expected"));if(r.hooks&&(r.hooks.options=r,r.hooks.block=i),r.async)return(async()=>{let e=r.hooks?await r.hooks.preprocess(l):l,h=await(r.hooks?await r.hooks.provideLexer():i?i1.lex:i1.lexInline)(e,r),a=r.hooks?await r.hooks.processAllTokens(h):h;r.walkTokens&&await Promise.all(this.walkTokens(a,r.walkTokens));let x=await(r.hooks?await r.hooks.provideParser():i?l1.parse:l1.parseInline)(a,r);return r.hooks?await r.hooks.postprocess(x):x})().catch(o);try{r.hooks&&(l=r.hooks.preprocess(l));let e=(r.hooks?r.hooks.provideLexer():i?i1.lex:i1.lexInline)(l,r);r.hooks&&(e=r.hooks.processAllTokens(e)),r.walkTokens&&this.walkTokens(e,r.walkTokens);let h=(r.hooks?r.hooks.provideParser():i?l1.parse:l1.parseInline)(e,r);return r.hooks&&(h=r.hooks.postprocess(h)),h}catch(e){return o(e)}}}onError(i,l){return(s)=>{if(s.message+=`
74
- Please report this to https://github.com/markedjs/marked.`,i){let t="<p>An error occurred:</p><pre>"+p1(s.message+"",!0)+"</pre>";return l?Promise.resolve(t):t}if(l)return Promise.reject(s);throw s}}},N1=new s9;function j(i,l){return N1.parse(i,l)}j.options=j.setOptions=function(i){return N1.setOptions(i),j.defaults=N1.defaults,$4(j.defaults),j};j.getDefaults=Fi;j.defaults=X1;j.use=function(...i){return N1.use(...i),j.defaults=N1.defaults,$4(j.defaults),j};j.walkTokens=function(i,l){return N1.walkTokens(i,l)};j.parseInline=N1.parseInline;j.Parser=l1;j.parser=l1.parse;j.Renderer=a0;j.TextRenderer=Ji;j.Lexer=i1;j.lexer=i1.lex;j.Tokenizer=h0;j.Hooks=P2;j.parse=j;var{options:ho,setOptions:ao,use:xo,walkTokens:yo,parseInline:co}=j;var po=l1.parse,go=i1.lex;function R4(i,l){if(l==null)l="";else if(typeof l!=="string")l=String(l);return l.replace(/\{\{([^}]+)\}\}/g,(s,t)=>{let r=Z[`${i}${t.startsWith("[")?t:"."+t}`];return r===void 0?s:R4(i,String(r))})}class Gi extends w{static initAttributes={src:"",elements:!1};context={};value="";content=null;options={};connectedCallback(){if(super.connectedCallback(),this.src!=="")(async()=>{let i=await fetch(this.src);this.value=await i.text()})();else if(this.value==="")if(this.elements)this.value=this.innerHTML;else this.value=this.textContent!=null?this.textContent:""}didRender=()=>{};render(){super.render(),Z[this.instanceId]=typeof this.context==="string"?JSON.parse(this.context):this.context;let i=R4(this.instanceId,this.value);if(this.elements){let l=i.split(`
72
+ `}strong({tokens:i}){return`<strong>${this.parser.parseInline(i)}</strong>`}em({tokens:i}){return`<em>${this.parser.parseInline(i)}</em>`}codespan({text:i}){return`<code>${p1(i,!0)}</code>`}br(i){return"<br>"}del({tokens:i}){return`<del>${this.parser.parseInline(i)}</del>`}link({href:i,title:l,tokens:s}){let t=this.parser.parseInline(s),r=q4(i);if(r===null)return t;i=r;let o='<a href="'+i+'"';return l&&(o+=' title="'+p1(l)+'"'),o+=">"+t+"</a>",o}image({href:i,title:l,text:s,tokens:t}){t&&(s=this.parser.parseInline(t,this.parser.textRenderer));let r=q4(i);if(r===null)return p1(s);i=r;let o=`<img src="${i}" alt="${s}"`;return l&&(o+=` title="${p1(l)}"`),o+=">",o}text(i){return"tokens"in i&&i.tokens?this.parser.parseInline(i.tokens):("escaped"in i)&&i.escaped?i.text:p1(i.text)}},Ji=class{strong({text:i}){return i}em({text:i}){return i}codespan({text:i}){return i}del({text:i}){return i}html({text:i}){return i}text({text:i}){return i}link({text:i}){return""+i}image({text:i}){return""+i}br(){return""}},s1=class i{options;renderer;textRenderer;constructor(l){this.options=l||m1,this.options.renderer=this.options.renderer||new a0,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new Ji}static parse(l,s){return new i(s).parse(l)}static parseInline(l,s){return new i(s).parseInline(l)}parse(l,s=!0){let t="";for(let r=0;r<l.length;r++){let o=l[r];if(this.options.extensions?.renderers?.[o.type]){let h=o,a=this.options.extensions.renderers[h.type].call({parser:this},h);if(a!==!1||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(h.type)){t+=a||"";continue}}let e=o;switch(e.type){case"space":{t+=this.renderer.space(e);continue}case"hr":{t+=this.renderer.hr(e);continue}case"heading":{t+=this.renderer.heading(e);continue}case"code":{t+=this.renderer.code(e);continue}case"table":{t+=this.renderer.table(e);continue}case"blockquote":{t+=this.renderer.blockquote(e);continue}case"list":{t+=this.renderer.list(e);continue}case"html":{t+=this.renderer.html(e);continue}case"def":{t+=this.renderer.def(e);continue}case"paragraph":{t+=this.renderer.paragraph(e);continue}case"text":{let h=e,a=this.renderer.text(h);for(;r+1<l.length&&l[r+1].type==="text";)h=l[++r],a+=`
73
+ `+this.renderer.text(h);s?t+=this.renderer.paragraph({type:"paragraph",raw:a,text:a,tokens:[{type:"text",raw:a,text:a,escaped:!0}]}):t+=a;continue}default:{let h='Token with "'+e.type+'" type was not found.';if(this.options.silent)return console.error(h),"";throw Error(h)}}}return t}parseInline(l,s=this.renderer){let t="";for(let r=0;r<l.length;r++){let o=l[r];if(this.options.extensions?.renderers?.[o.type]){let h=this.options.extensions.renderers[o.type].call({parser:this},o);if(h!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(o.type)){t+=h||"";continue}}let e=o;switch(e.type){case"escape":{t+=s.text(e);break}case"html":{t+=s.html(e);break}case"link":{t+=s.link(e);break}case"image":{t+=s.image(e);break}case"strong":{t+=s.strong(e);break}case"em":{t+=s.em(e);break}case"codespan":{t+=s.codespan(e);break}case"br":{t+=s.br(e);break}case"del":{t+=s.del(e);break}case"text":{t+=s.text(e);break}default:{let h='Token with "'+e.type+'" type was not found.';if(this.options.silent)return console.error(h),"";throw Error(h)}}}return t}},P2=class{options;block;constructor(i){this.options=i||m1}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens","emStrongMask"]);static passThroughHooksRespectAsync=new Set(["preprocess","postprocess","processAllTokens"]);preprocess(i){return i}postprocess(i){return i}processAllTokens(i){return i}emStrongMask(i){return i}provideLexer(){return this.block?l1.lex:l1.lexInline}provideParser(){return this.block?s1.parse:s1.parseInline}},r9=class{defaults=Fi();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=s1;Renderer=a0;TextRenderer=Ji;Lexer=l1;Tokenizer=h0;Hooks=P2;constructor(...i){this.use(...i)}walkTokens(i,l){let s=[];for(let t of i)switch(s=s.concat(l.call(this,t)),t.type){case"table":{let r=t;for(let o of r.header)s=s.concat(this.walkTokens(o.tokens,l));for(let o of r.rows)for(let e of o)s=s.concat(this.walkTokens(e.tokens,l));break}case"list":{let r=t;s=s.concat(this.walkTokens(r.items,l));break}default:{let r=t;this.defaults.extensions?.childTokens?.[r.type]?this.defaults.extensions.childTokens[r.type].forEach((o)=>{let e=r[o].flat(1/0);s=s.concat(this.walkTokens(e,l))}):r.tokens&&(s=s.concat(this.walkTokens(r.tokens,l)))}}return s}use(...i){let l=this.defaults.extensions||{renderers:{},childTokens:{}};return i.forEach((s)=>{let t={...s};if(t.async=this.defaults.async||t.async||!1,s.extensions&&(s.extensions.forEach((r)=>{if(!r.name)throw Error("extension name required");if("renderer"in r){let o=l.renderers[r.name];o?l.renderers[r.name]=function(...e){let h=r.renderer.apply(this,e);return h===!1&&(h=o.apply(this,e)),h}:l.renderers[r.name]=r.renderer}if("tokenizer"in r){if(!r.level||r.level!=="block"&&r.level!=="inline")throw Error("extension level must be 'block' or 'inline'");let o=l[r.level];o?o.unshift(r.tokenizer):l[r.level]=[r.tokenizer],r.start&&(r.level==="block"?l.startBlock?l.startBlock.push(r.start):l.startBlock=[r.start]:r.level==="inline"&&(l.startInline?l.startInline.push(r.start):l.startInline=[r.start]))}"childTokens"in r&&r.childTokens&&(l.childTokens[r.name]=r.childTokens)}),t.extensions=l),s.renderer){let r=this.defaults.renderer||new a0(this.defaults);for(let o in s.renderer){if(!(o in r))throw Error(`renderer '${o}' does not exist`);if(["options","parser"].includes(o))continue;let e=o,h=s.renderer[e],a=r[e];r[e]=(...x)=>{let c=h.apply(r,x);return c===!1&&(c=a.apply(r,x)),c||""}}t.renderer=r}if(s.tokenizer){let r=this.defaults.tokenizer||new h0(this.defaults);for(let o in s.tokenizer){if(!(o in r))throw Error(`tokenizer '${o}' does not exist`);if(["options","rules","lexer"].includes(o))continue;let e=o,h=s.tokenizer[e],a=r[e];r[e]=(...x)=>{let c=h.apply(r,x);return c===!1&&(c=a.apply(r,x)),c}}t.tokenizer=r}if(s.hooks){let r=this.defaults.hooks||new P2;for(let o in s.hooks){if(!(o in r))throw Error(`hook '${o}' does not exist`);if(["options","block"].includes(o))continue;let e=o,h=s.hooks[e],a=r[e];P2.passThroughHooks.has(o)?r[e]=(x)=>{if(this.defaults.async&&P2.passThroughHooksRespectAsync.has(o))return(async()=>{let d=await h.call(r,x);return a.call(r,d)})();let c=h.call(r,x);return a.call(r,c)}:r[e]=(...x)=>{if(this.defaults.async)return(async()=>{let d=await h.apply(r,x);return d===!1&&(d=await a.apply(r,x)),d})();let c=h.apply(r,x);return c===!1&&(c=a.apply(r,x)),c}}t.hooks=r}if(s.walkTokens){let r=this.defaults.walkTokens,o=s.walkTokens;t.walkTokens=function(e){let h=[];return h.push(o.call(this,e)),r&&(h=h.concat(r.call(this,e))),h}}this.defaults={...this.defaults,...t}}),this}setOptions(i){return this.defaults={...this.defaults,...i},this}lexer(i,l){return l1.lex(i,l??this.defaults)}parser(i,l){return s1.parse(i,l??this.defaults)}parseMarkdown(i){return(l,s)=>{let t={...s},r={...this.defaults,...t},o=this.onError(!!r.silent,!!r.async);if(this.defaults.async===!0&&t.async===!1)return o(Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof l>"u"||l===null)return o(Error("marked(): input parameter is undefined or null"));if(typeof l!="string")return o(Error("marked(): input parameter is of type "+Object.prototype.toString.call(l)+", string expected"));if(r.hooks&&(r.hooks.options=r,r.hooks.block=i),r.async)return(async()=>{let e=r.hooks?await r.hooks.preprocess(l):l,h=await(r.hooks?await r.hooks.provideLexer():i?l1.lex:l1.lexInline)(e,r),a=r.hooks?await r.hooks.processAllTokens(h):h;r.walkTokens&&await Promise.all(this.walkTokens(a,r.walkTokens));let x=await(r.hooks?await r.hooks.provideParser():i?s1.parse:s1.parseInline)(a,r);return r.hooks?await r.hooks.postprocess(x):x})().catch(o);try{r.hooks&&(l=r.hooks.preprocess(l));let e=(r.hooks?r.hooks.provideLexer():i?l1.lex:l1.lexInline)(l,r);r.hooks&&(e=r.hooks.processAllTokens(e)),r.walkTokens&&this.walkTokens(e,r.walkTokens);let h=(r.hooks?r.hooks.provideParser():i?s1.parse:s1.parseInline)(e,r);return r.hooks&&(h=r.hooks.postprocess(h)),h}catch(e){return o(e)}}}onError(i,l){return(s)=>{if(s.message+=`
74
+ Please report this to https://github.com/markedjs/marked.`,i){let t="<p>An error occurred:</p><pre>"+p1(s.message+"",!0)+"</pre>";return l?Promise.resolve(t):t}if(l)return Promise.reject(s);throw s}}},W1=new r9;function j(i,l){return W1.parse(i,l)}j.options=j.setOptions=function(i){return W1.setOptions(i),j.defaults=W1.defaults,$4(j.defaults),j};j.getDefaults=Fi;j.defaults=m1;j.use=function(...i){return W1.use(...i),j.defaults=W1.defaults,$4(j.defaults),j};j.walkTokens=function(i,l){return W1.walkTokens(i,l)};j.parseInline=W1.parseInline;j.Parser=s1;j.parser=s1.parse;j.Renderer=a0;j.TextRenderer=Ji;j.Lexer=l1;j.lexer=l1.lex;j.Tokenizer=h0;j.Hooks=P2;j.parse=j;var{options:co,setOptions:po,use:go,walkTokens:Co,parseInline:vo}=j;var ko=s1.parse,no=l1.lex;function R4(i,l){if(l==null)l="";else if(typeof l!=="string")l=String(l);return l.replace(/\{\{([^}]+)\}\}/g,(s,t)=>{let r=Z[`${i}${t.startsWith("[")?t:"."+t}`];return r===void 0?s:R4(i,String(r))})}class Gi extends w{static initAttributes={src:"",elements:!1};context={};value="";content=null;options={};connectedCallback(){if(super.connectedCallback(),this.src!=="")(async()=>{let i=await fetch(this.src);this.value=await i.text()})();else if(this.value==="")if(this.elements)this.value=this.innerHTML;else this.value=this.textContent!=null?this.textContent:""}didRender=()=>{};render(){super.render(),Z[this.instanceId]=typeof this.context==="string"?JSON.parse(this.context):this.context;let i=R4(this.instanceId,this.value);if(this.elements){let l=i.split(`
75
75
  `).reduce((s,t)=>{if(t.startsWith("<")||s.length===0)s.push(t);else{let r=s[s.length-1];if(!r.startsWith("<")||!r.endsWith(">"))s[s.length-1]+=`
76
- `+t;else s.push(t)}return s},[]);this.innerHTML=l.map((s)=>s.startsWith("<")&&s.endsWith(">")?s:j(s,this.options)).join("")}else this.innerHTML=j(i,this.options);this.didRender()}}var j2=Gi.elementCreator({tag:"tosi-md"}),t9=j2;var{div:Y1,slot:L4,span:r9,button:o9}=C;class Qi extends w{static initAttributes={localized:!1};value=0;makeTab(i,l,s){let t=l.getAttribute("name"),r=l.querySelector('template[role="tab"]')?.content.cloneNode(!0)||(this.localized?k1(t):r9(t));return Y1(r,{part:"tab",tabindex:0,role:"tab",ariaControls:s},l.hasAttribute("data-close")?o9({title:"close",class:"close"},v.x()):{})}static styleSpec={":host":{"--tosi-tabs-selected-color":"var(--xin-tabs-selected-color, var(--tosi-accent, currentColor))","--tosi-tabs-bar-color":"var(--xin-tabs-bar-color, #ccc)","--tosi-tabs-bar-height":"var(--xin-tabs-bar-height, 2px)",display:"flex",flexDirection:"column",position:"relative",overflow:"hidden",boxShadow:"none !important"},slot:{position:"relative",display:"block",flex:"1",overflow:"hidden",overflowY:"auto"},'slot[name="after-tabs"]':{flex:"0 0 auto"},"::slotted([hidden])":{display:"none !important"},":host::part(tabpanel)":{display:"flex",flexDirection:"column",overflowX:"auto"},":host::part(tabrow)":{display:"flex"},":host .tabs":{display:"flex",userSelect:"none",whiteSpace:"nowrap"},":host .tabs > div":{padding:`${y.spacing50} ${y.spacing}`,cursor:"default",display:"flex",alignItems:"baseline"},':host .tabs > [aria-selected="true"]':{"--text-color":y.tosiTabsSelectedColor,color:y.textColor},":host .elastic":{flex:"1"},":host .border":{background:y.tosiTabsBarColor},":host .border > .selected":{content:" ",width:0,height:y.tosiTabsBarHeight,background:y.tosiTabsSelectedColor,transition:"ease-out 0.2s"},":host button.close":{border:0,background:"transparent",textAlign:"center",marginLeft:y.spacing50,padding:0},":host button.close > svg":{height:"12px"}};onCloseTab=null;content=[Y1({role:"tabpanel",part:"tabpanel"},Y1({part:"tabrow"},Y1({class:"tabs",part:"tabs"}),Y1({class:"elastic"}),L4({name:"after-tabs"})),Y1({class:"border"},Y1({class:"selected",part:"selected"}))),L4()];addTabBody(i,l=!1){if(!i.hasAttribute("name"))throw console.error("element has no name attribute",i),Error("element has no name attribute");if(this.append(i),this.setupTabs(),l)this.value=this.bodies.length-1;this.queueRender()}removeTabBody(i){i.remove(),this.setupTabs(),this.queueRender()}keyTab=(i)=>{let{tabs:l}=this.parts,s=[...l.children].indexOf(i.target);switch(i.key){case"ArrowLeft":this.value=(s+Number(l.children.length)-1)%l.children.length,l.children[this.value].focus(),i.preventDefault();break;case"ArrowRight":this.value=(s+1)%l.children.length,l.children[this.value].focus(),i.preventDefault();break;case" ":this.pickTab(i),i.preventDefault();break;default:}};get bodies(){return[...this.children].filter((i)=>i.hasAttribute("name"))}pickTab=(i)=>{let{tabs:l}=this.parts,s=i.target,t=s.closest("button.close")!==null,r=s.closest(".tabs > div"),o=[...l.children].indexOf(r);if(t){let e=this.bodies[o];if(!this.onCloseTab||this.onCloseTab(e)!==!1)this.removeTabBody(this.bodies[o])}else if(o>-1)this.value=o};setupTabs=()=>{let{tabs:i}=this.parts,l=[...this.children].filter((s)=>!s.hasAttribute("slot")&&s.hasAttribute("name"));if(i.textContent="",this.value>=l.length)this.value=l.length-1;for(let s in l){let t=l[s],r=`${this.instanceId}-${s}`;t.id=r;let o=this.makeTab(this,t,r);i.append(o)}};connectedCallback(){super.connectedCallback();let{tabs:i}=this.parts;i.addEventListener("click",this.pickTab),i.addEventListener("keydown",this.keyTab),this.setupTabs(),I.allInstances.add(this)}disconnectedCallback(){super.disconnectedCallback(),I.allInstances.delete(this)}localeChanged=()=>{this.queueRender()};onResize(){this.queueRender()}render(){let{tabs:i,selected:l}=this.parts,s=this.bodies;for(let t=0;t<s.length;t++){let r=s[t],o=i.children[t];if(this.value===Number(t))o.setAttribute("aria-selected","true"),l.style.marginLeft=`${o.offsetLeft-i.offsetLeft}px`,l.style.width=`${o.offsetWidth}px`,r.toggleAttribute("hidden",!1);else o.toggleAttribute("aria-selected",!1),r.toggleAttribute("hidden",!0)}}}var c0=Qi.elementCreator({tag:"tosi-tabs"}),e9=c0;var h9=()=>"https://cdn.jsdelivr.net/npm/sucrase@3.35.0/+esm",_2=(async()=>{}).constructor;function H1(i,l){let s=i;for(let t of l)s=s.replace(new RegExp(`import \\{(.*)\\} from '${t}'`,"g"),`const {$1} = ${t.replace(/-/g,"")}`);return s}async function I4(i,l,s){let t=H1(i,Object.keys(l)),r=s(t,{transforms:["typescript"]}).code,o=Object.keys(l).map((a)=>a.replace(/-/g,"")),e=Object.values(l);await new _2(...o,r)(...e)}async function d0(){let{transform:i}=await import(h9());return i}var p0="live-example-payload";function D4(i,l,s){return s!==""?`${i}-${s}`:`${i}-${l}`}function Zi(i,l){localStorage.setItem(i,JSON.stringify(l))}function a9(i){if(i===null)return null;try{return JSON.parse(i)}catch{return null}}function T4(i,l,s,t,r){let o=location.href.split("?")[0]+`?${i}=${l}`;Zi(s,{remoteKey:t,sentAt:Date.now(),...r}),window.open(o)}function x9(i,l){Zi(i,{remoteKey:l,sentAt:Date.now(),css:"",html:"",js:"",close:!0})}class V2{storageKey;remoteKey;lastUpdate=0;interval;onReceive;constructor(i,l,s){this.storageKey=i,this.remoteKey=l,this.onReceive=s}handleChange=(i)=>{if(i instanceof StorageEvent&&i.key!==this.storageKey)return;let l=a9(localStorage.getItem(this.storageKey));if(!l)return;if(l.sentAt<=this.lastUpdate)return;if(l.remoteKey!==this.remoteKey)return;this.lastUpdate=l.sentAt,this.onReceive(l)};startListening(){addEventListener("storage",this.handleChange),this.interval=setInterval(this.handleChange,500)}stopListening(){if(removeEventListener("storage",this.handleChange),this.interval)clearInterval(this.interval)}send(i){Zi(this.storageKey,{remoteKey:this.remoteKey,sentAt:Date.now(),...i})}sendClose(){x9(this.storageKey,this.remoteKey)}}var{div:y9}=C;function c9(i,l){let s=i.customElements;if(!s)return;let t=l["tosijs-ui"];if(!t)return;for(let[,r]of Object.entries(t))if(typeof r==="function"&&"tagName"in r){let o=r.tagName;if(o&&!s.get(o)){let e=customElements.get(o);if(e)try{s.define(o,e)}catch{}}}}async function g0(i){let{html:l,css:s,js:t,context:r,transform:o,exampleElement:e,styleElement:h,widgetsElement:a,onError:x}=i,c=y9({class:"preview"});c.innerHTML=l,h.innerText=s;let d=e.querySelector(".preview");if(d)d.replaceWith(c);else e.insertBefore(c,a);let g={preview:c,...r};try{let B=H1(t,Object.keys(r)),k=o(B,{transforms:["typescript"]}).code,M=Object.keys(g).map((b)=>b.replace(/-/g,"")),A=Object.values(g);await new _2(...M,k)(...A)}catch(B){if(console.error(B),x)x(B);else window.alert(`Error: ${B}, the console may have more information…`)}return c}async function C0(i){let{html:l,css:s,js:t,context:r,transform:o,exampleElement:e,widgetsElement:h,onError:a}=i,x=e.querySelector("iframe.preview-iframe");if(!x){x=document.createElement("iframe"),x.className="preview-iframe",x.style.cssText="width: 100%; height: 100%; border: none;";let k=e.querySelector(".preview");if(k)k.replaceWith(x);else e.insertBefore(x,h)}let c=x.contentDocument;if(!c)return console.error("Could not access iframe document"),null;let d=x.contentWindow;if(r.tosijs)d.tosijs=r.tosijs;if(r["tosijs-ui"])d.tosijsui=r["tosijs-ui"];c.open(),c.write(`<!DOCTYPE html>
76
+ `+t;else s.push(t)}return s},[]);this.innerHTML=l.map((s)=>s.startsWith("<")&&s.endsWith(">")?s:j(s,this.options)).join("")}else this.innerHTML=j(i,this.options);this.didRender()}}var j2=Gi.elementCreator({tag:"tosi-md"}),o9=j2;var{div:R1,slot:L4,span:e9,button:h9}=C;class Qi extends w{static initAttributes={localized:!1};value=0;makeTab(i,l,s){let t=l.getAttribute("name"),r=l.querySelector('template[role="tab"]')?.content.cloneNode(!0)||(this.localized?k1(t):e9(t));return R1(r,{part:"tab",tabindex:0,role:"tab",ariaControls:s},l.hasAttribute("data-close")?h9({title:"close",class:"close"},v.x()):{})}static styleSpec={":host":{"--tosi-tabs-selected-color":"var(--xin-tabs-selected-color, var(--tosi-accent, currentColor))","--tosi-tabs-bar-color":"var(--xin-tabs-bar-color, #ccc)","--tosi-tabs-bar-height":"var(--xin-tabs-bar-height, 2px)",display:"flex",flexDirection:"column",position:"relative",overflow:"hidden",boxShadow:"none !important"},slot:{position:"relative",display:"block",flex:"1",overflow:"hidden",overflowY:"auto"},'slot[name="after-tabs"]':{flex:"0 0 auto"},"::slotted([hidden])":{display:"none !important"},":host::part(tabpanel)":{display:"flex",flexDirection:"column",overflowX:"auto"},":host::part(tabrow)":{display:"flex"},":host .tabs":{display:"flex",userSelect:"none",whiteSpace:"nowrap"},":host .tabs > div":{padding:`${y.spacing50} ${y.spacing}`,cursor:"default",display:"flex",alignItems:"baseline"},':host .tabs > [aria-selected="true"]':{"--text-color":y.tosiTabsSelectedColor,color:y.textColor},":host .elastic":{flex:"1"},":host .border":{background:y.tosiTabsBarColor},":host .border > .selected":{content:" ",width:0,height:y.tosiTabsBarHeight,background:y.tosiTabsSelectedColor,transition:"ease-out 0.2s"},":host button.close":{border:0,background:"transparent",textAlign:"center",marginLeft:y.spacing50,padding:0},":host button.close > svg":{height:"12px"}};onCloseTab=null;content=[R1({role:"tabpanel",part:"tabpanel"},R1({part:"tabrow"},R1({class:"tabs",part:"tabs"}),R1({class:"elastic"}),L4({name:"after-tabs"})),R1({class:"border"},R1({class:"selected",part:"selected"}))),L4()];addTabBody(i,l=!1){if(!i.hasAttribute("name"))throw console.error("element has no name attribute",i),Error("element has no name attribute");if(this.append(i),this.setupTabs(),l)this.value=this.bodies.length-1;this.queueRender()}removeTabBody(i){i.remove(),this.setupTabs(),this.queueRender()}keyTab=(i)=>{let{tabs:l}=this.parts,s=[...l.children].indexOf(i.target);switch(i.key){case"ArrowLeft":this.value=(s+Number(l.children.length)-1)%l.children.length,l.children[this.value].focus(),i.preventDefault();break;case"ArrowRight":this.value=(s+1)%l.children.length,l.children[this.value].focus(),i.preventDefault();break;case" ":this.pickTab(i),i.preventDefault();break;default:}};get bodies(){return[...this.children].filter((i)=>i.hasAttribute("name"))}pickTab=(i)=>{let{tabs:l}=this.parts,s=i.target,t=s.closest("button.close")!==null,r=s.closest(".tabs > div"),o=[...l.children].indexOf(r);if(t){let e=this.bodies[o];if(!this.onCloseTab||this.onCloseTab(e)!==!1)this.removeTabBody(this.bodies[o])}else if(o>-1)this.value=o};setupTabs=()=>{let{tabs:i}=this.parts,l=[...this.children].filter((s)=>!s.hasAttribute("slot")&&s.hasAttribute("name"));if(i.textContent="",this.value>=l.length)this.value=l.length-1;for(let s in l){let t=l[s],r=`${this.instanceId}-${s}`;t.id=r;let o=this.makeTab(this,t,r);i.append(o)}};connectedCallback(){super.connectedCallback();let{tabs:i}=this.parts;i.addEventListener("click",this.pickTab),i.addEventListener("keydown",this.keyTab),this.setupTabs(),S.allInstances.add(this)}disconnectedCallback(){super.disconnectedCallback(),S.allInstances.delete(this)}localeChanged=()=>{this.queueRender()};onResize(){this.queueRender()}render(){let{tabs:i,selected:l}=this.parts,s=this.bodies;for(let t=0;t<s.length;t++){let r=s[t],o=i.children[t];if(this.value===Number(t))o.setAttribute("aria-selected","true"),l.style.marginLeft=`${o.offsetLeft-i.offsetLeft}px`,l.style.width=`${o.offsetWidth}px`,r.toggleAttribute("hidden",!1);else o.toggleAttribute("aria-selected",!1),r.toggleAttribute("hidden",!0)}}}var c0=Qi.elementCreator({tag:"tosi-tabs"}),a9=c0;var x9=()=>"https://cdn.jsdelivr.net/npm/sucrase@3.35.0/+esm",_2=(async()=>{}).constructor;function j1(i,l){let s=i;for(let t of l)s=s.replace(new RegExp(`import \\{(.*)\\} from '${t}'`,"g"),`const {$1} = ${t.replace(/-/g,"")}`);return s}async function I4(i,l,s){let t=j1(i,Object.keys(l)),r=s(t,{transforms:["typescript"]}).code,o=Object.keys(l).map((a)=>a.replace(/-/g,"")),e=Object.values(l);await new _2(...o,r)(...e)}async function d0(){let{transform:i}=await import(x9());return i}var p0="live-example-payload";function D4(i,l,s){return s!==""?`${i}-${s}`:`${i}-${l}`}function Zi(i,l){try{localStorage.setItem(i,JSON.stringify(l))}catch(s){console.warn("live-example: failed to write to localStorage",s)}}function y9(i){if(i===null)return null;try{return JSON.parse(i)}catch{return null}}function S4(i,l,s,t,r){let o=location.href.split("?")[0]+`?${i}=${l}`;Zi(s,{remoteKey:t,sentAt:Date.now(),...r}),window.open(o)}var c9=typeof BroadcastChannel<"u";class V2{storageKey;remoteKey;lastUpdate=0;interval;channel;listening=!1;onReceive;constructor(i,l,s){this.storageKey=i,this.remoteKey=l,this.onReceive=s}handlePayload=(i)=>{if(i.sentAt<=this.lastUpdate)return;if(i.remoteKey!==this.remoteKey)return;this.lastUpdate=i.sentAt,this.onReceive(i)};handleMessage=(i)=>{let l=i.data;if(l)this.handlePayload(l)};handlePoll=()=>{let i=null;try{i=localStorage.getItem(this.storageKey)}catch{return}let l=y9(i);if(l)this.handlePayload(l)};startListening(){if(this.listening)return;if(this.listening=!0,c9)this.channel=new BroadcastChannel(this.storageKey),this.channel.onmessage=this.handleMessage;this.interval=setInterval(this.handlePoll,500)}stopListening(){if(!this.listening)return;if(this.listening=!1,this.channel)this.channel.close(),this.channel=void 0;if(this.interval)clearInterval(this.interval),this.interval=void 0}send(i){let l={remoteKey:this.remoteKey,sentAt:Date.now(),...i};if(Zi(this.storageKey,l),this.channel)this.channel.postMessage(l)}sendClose(){let i={remoteKey:this.remoteKey,sentAt:Date.now(),css:"",html:"",js:"",close:!0};if(Zi(this.storageKey,i),this.channel)this.channel.postMessage(i)}}var{div:d9}=C;function p9(i,l){let s=i.customElements;if(!s)return;let t=(o)=>{if(!o||s.get(o))return;let e=customElements.get(o);if(e)try{s.define(o,e)}catch{}};for(let o of Object.values(l))if(o&&typeof o==="object"){for(let e of Object.values(o))if(typeof e==="function"&&"tagName"in e)t(e.tagName)}let r=i.document;if(r){let o=r.querySelectorAll("*");for(let e of o){let h=e.tagName.toLowerCase();if(h.includes("-"))t(h)}}}async function g0(i){let{html:l,css:s,js:t,context:r,transform:o,exampleElement:e,styleElement:h,widgetsElement:a,onError:x}=i,c=d9({class:"preview"});c.innerHTML=l,h.innerText=s;let d=e.querySelector(".preview");if(d)d.replaceWith(c);else e.insertBefore(c,a);let g={preview:c,...r};try{let B=j1(t,Object.keys(r)),k=o(B,{transforms:["typescript"]}).code,M=Object.keys(g).map((b)=>b.replace(/-/g,"")),A=Object.values(g);await new _2(...M,k)(...A)}catch(B){if(console.error(B),x)x(B);else window.alert(`Error: ${B}, the console may have more information…`)}return c}async function C0(i){let{html:l,css:s,js:t,context:r,transform:o,exampleElement:e,widgetsElement:h,onError:a}=i,x=e.querySelector("iframe.preview-iframe");if(!x){x=document.createElement("iframe"),x.className="preview-iframe",x.style.cssText="width: 100%; height: 100%; border: none;";let k=e.querySelector(".preview");if(k)k.replaceWith(x);else e.insertBefore(x,h)}let c=x.contentDocument;if(!c)return console.error("Could not access iframe document"),null;let d=x.contentWindow;if(r.tosijs)d.tosijs=r.tosijs;if(r["tosijs-ui"])d.tosijsui=r["tosijs-ui"];c.open(),c.write(`<!DOCTYPE html>
77
77
  <html>
78
78
  <head>
79
79
  <style>
@@ -85,15 +85,15 @@ Please report this to https://github.com/markedjs/marked.`,i){let t="<p>An error
85
85
  <body>
86
86
  <div class="preview">${l}</div>
87
87
  </body>
88
- </html>`),c.close(),c9(d,r);let g=c.querySelector(".preview");if(!g)return console.error("Could not find preview element in iframe"),null;let B={preview:g,...r};try{let k=H1(t,Object.keys(r)),M=o(k,{transforms:["typescript"]}).code,A=d.eval("(async () => {}).constructor"),P=Object.keys(B).map((_)=>_.replace(/-/g,"")),b=Object.values(B);await new A(...P,M)(...b)}catch(k){if(console.error(k),a)a(k);else window.alert(`Error: ${k}, the console may have more information…`)}return g}function v0(i,l,s,t){let r=[...i.querySelectorAll(".language-html,.language-js,.language-css,.language-test")].filter((o)=>!o.closest(t)).map((o)=>({block:o.parentElement,language:o.classList[0].split("-").pop(),code:o.innerText}));for(let o=0;o<r.length;o+=1){let e=[r[o]];while(o<r.length-1&&r[o].block.nextElementSibling===r[o+1].block)e.push(r[o+1]),o+=1;let h=s({context:l});e[0].block.parentElement.insertBefore(h,e[0].block),e.forEach((x)=>{switch(x.language){case"js":h.js=x.code;break;case"html":h.html=x.code;break;case"css":h.css=x.code;break;case"test":h.test=x.code;break}x.block.remove()}),h.showDefaultTab()}}var S4={":host":{"--xin-example-height":"320px","--code-editors-bar-bg":"#777","--code-editors-bar-color":"#fff","--widget-bg":"#fff8","--widget-color":"#000",position:"relative",display:"flex",height:"var(--xin-example-height)",background:"var(--background)",boxSizing:"border-box"},":host.-maximize":{position:"fixed",left:"0",top:"0",height:"100vh",width:"100vw",margin:"0 !important"},".-maximize":{zIndex:101},":host.-vertical":{flexDirection:"column"},":host .layout-indicator":{transition:"0.5s ease-out",transform:"rotateZ(270deg)"},":host.-vertical .layout-indicator":{transform:"rotateZ(180deg)"},":host.-maximize .hide-if-maximized, :host:not(.-maximize) .show-if-maximized":{display:"none"},':host [part="example"]':{flex:"1 1 50%",height:"100%",position:"relative",overflowX:"auto"},":host .preview":{height:"100%",position:"relative",overflow:"hidden",boxShadow:"inset 0 0 0 2px #8883"},':host [part="editors"]':{flex:"1 1 200px",height:"100%",position:"relative"},':host [part="exampleWidgets"]':{position:"absolute",left:"5px",bottom:"5px","--widget-color":"var(--brand-color)",borderRadius:"5px",width:"44px",height:"44px",lineHeight:"44px",zIndex:"100"},':host [part="exampleWidgets"] svg':{stroke:"var(--widget-color)"},":host .code-editors":{overflow:"hidden",background:"white",position:"relative",top:"0",right:"0",flex:"1 1 50%",height:"100%",flexDirection:"column",zIndex:"10"},":host .code-editors:not([hidden])":{display:"flex"},":host .code-editors > h4":{padding:"5px",margin:"0",textAlign:"center",background:"var(--code-editors-bar-bg)",color:"var(--code-editors-bar-color)",cursor:"move"},":host button.transparent, :host .sizer":{width:"32px",height:"32px",lineHeight:"32px",textAlign:"center",padding:"0",margin:"0"},":host .sizer":{cursor:"nwse-resize"},':host [part="testIndicator"]':{position:"absolute",top:"8px",right:"8px",width:"12px",height:"12px",borderRadius:"50%",background:"#888",zIndex:"100",display:"none"},':host.-has-tests [part="testIndicator"]':{display:"block",opacity:"var(--tests-enabled, 1)"},':host.-test-running [part="testIndicator"]':{background:"#fa0",animation:"test-pulse 0.5s ease-in-out infinite"},':host.-test-passed [part="testIndicator"]':{background:"#0a0",animation:"test-fade 2s ease-out forwards"},':host.-test-failed [part="testIndicator"]':{background:"#c00",animation:"test-pulse 1s ease-in-out infinite"},"@keyframes test-pulse":{"0%, 100%":{opacity:"1"},"50%":{opacity:"0.4"}},"@keyframes test-fade":{"0%":{opacity:"1"},"50%":{opacity:"1"},"100%":{opacity:"0"}},':host.-test-passed [part="exampleWidgets"]':{"--widget-color":"#0a0"},':host.-test-failed [part="exampleWidgets"]':{"--widget-color":"#f00"},':host [part="testResults"]':{position:"absolute",bottom:"54px",left:"5px",background:"var(--widget-bg)",borderRadius:"5px",padding:"8px",fontSize:"14px",margin:"0",maxWidth:"400px",maxHeight:"200px",overflow:"auto",zIndex:"100"},':host [part="testResults"][hidden]':{display:"none"},":host .test-pass":{color:"#0a0"},":host .test-fail":{color:"#f00"}};class Ki extends Error{constructor(i){super(i);this.name="AssertionError"}}function E4(i,l){if(i===l)return!0;if(typeof i!==typeof l)return!1;if(i===null||l===null)return i===l;if(typeof i!=="object")return!1;let s=i,t=l;if(Array.isArray(s)!==Array.isArray(t))return!1;let r=Object.keys(s),o=Object.keys(t);if(r.length!==o.length)return!1;return r.every((e)=>E4(s[e],t[e]))}var d9={stringify(i){if(i instanceof Element)return`<${i.tagName.toLowerCase()}>`;try{return JSON.stringify(i)}catch{return String(i)}}},{stringify:g1}=d9;function i5(i,l=!1){let s=(r,o)=>{if(!(l?!r:r))throw new Ki(l?`not: ${o}`:o)};return{toBe(r){s(i===r,`Expected ${g1(i)} to be ${g1(r)}`)},toEqual(r){s(E4(i,r),`Expected ${g1(i)} to equal ${g1(r)}`)},toBeTruthy(){s(!!i,`Expected ${g1(i)} to be truthy`)},toBeFalsy(){s(!i,`Expected ${g1(i)} to be falsy`)},toBeNull(){s(i===null,`Expected ${g1(i)} to be null`)},toBeUndefined(){s(i===void 0,`Expected ${g1(i)} to be undefined`)},toBeDefined(){s(i!==void 0,`Expected ${g1(i)} to be defined`)},toContain(r){if(typeof i==="string")s(i.includes(r),`Expected "${i}" to contain "${r}"`);else if(Array.isArray(i))s(i.includes(r),`Expected array to contain ${g1(r)}`);else throw new Ki("toContain requires string or array")},toHaveLength(r){let o=i.length;s(o===r,`Expected length ${o} to be ${r}`)},toMatch(r){s(r.test(i),`Expected "${i}" to match ${r}`)},toBeGreaterThan(r){s(i>r,`Expected ${i} to be greater than ${r}`)},toBeLessThan(r){s(i<r,`Expected ${i} to be less than ${r}`)},toBeInstanceOf(r){s(i instanceof r,`Expected value to be instance of ${r.name}`)},get not(){return i5(i,!l)}}}function mi(i){return i5(i)}function p9(i){return new Promise((l)=>setTimeout(l,i))}function g9(i,l,s=1000){return new Promise((t,r)=>{let o=Date.now(),e=()=>{let h=i.querySelector(l);if(h){t(h);return}if(Date.now()-o>=s){r(Error(`Timeout waiting for "${l}" after ${s}ms`));return}requestAnimationFrame(e)};e()})}function Ni(i){let l="";return{expect:mi,test(s,t){let r=l?`${l} > ${s}`:s;try{let o=t();if(o instanceof Promise)o.then(()=>{i.push({name:r,passed:!0})}).catch((e)=>{i.push({name:r,passed:!1,error:e.message})});else i.push({name:r,passed:!0})}catch(o){i.push({name:r,passed:!1,error:o.message})}},describe(s,t){let r=l;l=l?`${l} > ${s}`:s,t(),l=r}}}async function k0(i,l,s,t){let r=[],o=Ni(r),e={preview:l,...s,expect:o.expect,test:o.test,describe:o.describe,waitMs:p9,waitFor:(h,a)=>g9(l,h,a)};try{let h=H1(i,Object.keys(s)),a=t(h,{transforms:["typescript"]}).code,x=Object.keys(e).map((g)=>g.replace(/-/g,"")),c=Object.values(e);await new _2(...x,a)(...c)}catch(h){r.push({name:"Test execution",passed:!1,error:h.message})}return await new Promise((h)=>setTimeout(h,0)),{passed:r.filter((h)=>h.passed).length,failed:r.filter((h)=>!h.passed).length,tests:r}}var{div:e2,xinSlot:C9,style:v9,button:W1,pre:l5,span:s5}=C,Xi="tosijs-ui-tests-enabled",k9=typeof window<"u"&&(window.location.hostname==="localhost"||window.location.hostname==="127.0.0.1");function n9(){if(typeof localStorage>"u")return!1;let i=localStorage.getItem(Xi);if(i!==null)return i==="true";return k9}var{testManager:D}=S({testManager:{enabled:n9()}});function n0(){document.body.classList.toggle("tests-enabled",D.enabled.value),document.body.style.setProperty("--tests-enabled",D.enabled.value?"1":"0")}if(typeof document<"u")if(document.body)n0();else document.addEventListener("DOMContentLoaded",n0);function Yi(){localStorage.setItem(Xi,"true"),D.enabled.value=!0,n0(),document.querySelectorAll("xin-example").forEach((i)=>{i.refresh()})}function Wi(){localStorage.setItem(Xi,"false"),D.enabled.value=!1,n0()}class F1 extends w{static initAttributes={persistToDom:!1,prettier:!1,iframe:!1};prefix="lx";storageKey=p0;context={};uuid=crypto.randomUUID();remoteId="";remoteSync;undoInterval;testResults;static insertExamples(i,l={}){v0(i,l,w0,F1.tagName)}get activeTab(){let{editors:i}=this.parts;return[...i.children].find((l)=>l.getAttribute("hidden")===null)}getEditorValue(i){return this.parts[i].value}setEditorValue(i,l){let s=this.parts[i];s.value=l}get css(){return this.getEditorValue("css")}set css(i){this.setEditorValue("css",i)}get html(){return this.getEditorValue("html")}set html(i){this.setEditorValue("html",i)}get js(){return this.getEditorValue("js")}set js(i){this.setEditorValue("js",i)}get test(){return this.getEditorValue("test")}set test(i){this.setEditorValue("test",i)}get remoteKey(){return D4(this.prefix,this.uuid,this.remoteId)}updateUndo=()=>{let{activeTab:i}=this,{undo:l,redo:s}=this.parts;if(i instanceof Z1&&i.editor!==void 0){let t=i.editor.session.getUndoManager();l.disabled=!t.hasUndo(),s.disabled=!t.hasRedo()}else l.disabled=!0,s.disabled=!0;this.updateTestResultsVisibility()};updateTestResultsVisibility(){let{testResults:i}=this.parts,l=this.testResults,s=this.activeTab?.getAttribute("name")==="test",t=l&&l.failed>0;i.hidden=!l||l.tests.length===0||!s&&!t}undo=()=>{let{activeTab:i}=this;if(i instanceof Z1)i.editor.undo()};redo=()=>{let{activeTab:i}=this;if(i instanceof Z1)i.editor.redo()};get isMaximized(){return this.classList.contains("-maximize")}flipLayout=()=>{this.classList.toggle("-vertical")};exampleMenu=()=>{let i=D.enabled.value;K({target:this.parts.exampleWidgets,width:"auto",menuItems:[{icon:"edit2",caption:"view/edit code",action:this.showCode},{icon:"edit",caption:"view/edit code in a new window",action:this.openEditorWindow},null,{icon:this.isMaximized?"minimize":"maximize",caption:this.isMaximized?"restore preview":"maximize preview",action:this.toggleMaximize},null,{icon:i?"check":"",caption:"Run tests",action:()=>{if(i)Wi();else Yi()}}]})};handleShortcuts=(i)=>{if(i.metaKey||i.ctrlKey){let l=!1;switch(i.key){case"s":case"r":this.refresh(),l=!0;break;case"/":this.flipLayout();break;case"c":if(i.shiftKey)this.copy(),l=!0;break}if(l)i.preventDefault(),i.stopPropagation()}};content=()=>[e2({part:"example"},v9({part:"style"}),e2({part:"testIndicator",title:"test status"}),l5({part:"testResults",hidden:!0}),W1({title:"example menu",part:"exampleWidgets",onClick:this.exampleMenu},v.code())),e2({class:"code-editors",part:"codeEditors",onKeydown:this.handleShortcuts,hidden:!0},c0({part:"editors",onChange:this.updateUndo},t2({name:"js",mode:"javascript",part:"js"}),t2({name:"html",mode:"html",part:"html"}),t2({name:"css",mode:"css",part:"css"}),t2({name:"test",mode:"javascript",part:"test"}),e2({slot:"after-tabs",class:"row"},W1({title:"undo",part:"undo",class:"transparent",onClick:this.undo},v.cornerUpLeft()),W1({title:"redo",part:"redo",class:"transparent",onClick:this.redo},v.cornerUpRight()),W1({title:"flip direction (⌘/ | ^/)",class:"transparent",onClick:this.flipLayout},v.columns({class:"layout-indicator"})),W1({title:"copy as markdown (⌘⇧C | ^⇧C)",class:"transparent",onClick:this.copy},v.copy()),W1({title:"reload (⌘R | ^R)",class:"transparent",onClick:this.refreshRemote},v.refreshCw()),W1({title:"close code",class:"transparent",onClick:this.closeCode},v.x())))),C9({part:"sources",hidden:!0})];connectedCallback(){super.connectedCallback();let{sources:i}=this.parts;this.initFromElements([...i.children]),this.remoteSync=new V2(this.storageKey,this.remoteKey,(l)=>{if(l.close){window.close();return}if(this.css=l.css,this.html=l.html,this.js=l.js,l.test)this.test=l.test;this.refresh()}),this.remoteSync.startListening(),this.undoInterval=setInterval(this.updateUndo,250)}disconnectedCallback(){if(super.disconnectedCallback(),this.remoteSync?.sendClose(),this.remoteSync?.stopListening(),this.undoInterval)clearInterval(this.undoInterval)}copy=()=>{let i=this.js!==""?"```js\n"+this.js.trim()+"\n```\n":"",l=this.html!==""?"```html\n"+this.html.trim()+"\n```\n":"",s=this.css!==""?"```css\n"+this.css.trim()+"\n```\n":"",t=this.test!==""?"```test\n"+this.test.trim()+"\n```\n":"";navigator.clipboard.writeText(i+l+s+t)};toggleMaximize=()=>{this.classList.toggle("-maximize")};showCode=()=>{this.classList.add("-maximize"),this.classList.toggle("-vertical",this.offsetHeight>this.offsetWidth),this.parts.codeEditors.hidden=!1};closeCode=()=>{if(this.remoteId!=="")window.close();else this.classList.remove("-maximize"),this.parts.codeEditors.hidden=!0};openEditorWindow=()=>{let{css:i,html:l,js:s,test:t}=this;T4(this.prefix,this.uuid,this.storageKey,this.remoteKey,{css:i,html:l,js:s,test:t})};refreshRemote=()=>{this.remoteSync?.send({css:this.css,html:this.html,js:this.js,test:this.test})};updateSources=()=>{if(this.persistToDom){let{sources:i}=this.parts;i.innerText="";for(let l of["js","css","html","test"])if(this[l])i.append(l5({class:`language-${l}`,innerHTML:this[l]}))}};refresh=async()=>{if(this.remoteId!=="")return;let i=await d0(),{example:l,style:s,exampleWidgets:t}=this.parts,r;if(this.iframe)r=await C0({html:this.html,css:this.css,js:this.js,context:this.context,transform:i,exampleElement:l,widgetsElement:t});else r=await g0({html:this.html,css:this.css,js:this.js,context:this.context,transform:i,exampleElement:l,styleElement:s,widgetsElement:t});if(this.persistToDom)this.updateSources();if(this.test&&r&&D.enabled.value)this.classList.add("-has-tests","-test-running"),this.classList.remove("-test-passed","-test-failed"),this.testResults=await k0(this.test,r,this.context,i),this.classList.remove("-test-running"),this.displayTestResults();else this.classList.remove("-has-tests","-test-running","-test-passed","-test-failed")};displayTestResults(){let{testResults:i,testIndicator:l}=this.parts,s=this.testResults;if(!s||s.tests.length===0){i.hidden=!0,this.classList.remove("-test-passed","-test-failed"),l.title="no tests";return}i.innerHTML="";let t=e2({style:{marginBottom:"8px",fontWeight:"bold"}},`${s.passed}/${s.tests.length} tests passed`);i.append(t);for(let r of s.tests){let o=r.passed?"✓":"✗",e=r.passed?"test-pass":"test-fail",h=e2({class:e},s5(o+" "),r.name,r.error?s5({style:{opacity:"0.7"}},` - ${r.error}`):"");i.append(h)}this.classList.toggle("-test-passed",s.failed===0),this.classList.toggle("-test-failed",s.failed>0),l.title=s.failed===0?`${s.passed} tests passed`:`${s.failed}/${s.tests.length} tests failed`,this.updateTestResultsVisibility(),this.dispatchEvent(new CustomEvent("testcomplete",{bubbles:!0,detail:{results:s,element:this}}))}initFromElements(i){for(let l of i){l.hidden=!0;let[s,...t]=l.innerHTML.split(`
88
+ </html>`),c.close(),p9(d,r);let g=c.querySelector(".preview");if(!g)return console.error("Could not find preview element in iframe"),null;let B={preview:g,...r};try{let k=j1(t,Object.keys(r)),M=o(k,{transforms:["typescript"]}).code,A=d.eval("(async () => {}).constructor"),P=Object.keys(B).map((_)=>_.replace(/-/g,"")),b=Object.values(B);await new A(...P,M)(...b)}catch(k){if(console.error(k),a)a(k);else window.alert(`Error: ${k}, the console may have more information…`)}return g}function v0(i,l,s,t){let r=[...i.querySelectorAll(".language-html,.language-js,.language-css,.language-test")].filter((o)=>!o.closest(t)).map((o)=>({block:o.parentElement,language:o.classList[0].split("-").pop(),code:o.innerText}));for(let o=0;o<r.length;o+=1){let e=[r[o]];while(o<r.length-1&&r[o].block.nextElementSibling===r[o+1].block)e.push(r[o+1]),o+=1;let h=s({context:l});e[0].block.parentElement.insertBefore(h,e[0].block),e.forEach((x)=>{switch(x.language){case"js":h.js=x.code;break;case"html":h.html=x.code;break;case"css":h.css=x.code;break;case"test":h.test=x.code;break}x.block.remove()}),h.showDefaultTab()}}var T4={":host":{"--xin-example-height":"320px","--code-editors-bar-bg":"#777","--code-editors-bar-color":"#fff","--widget-bg":"#fff8","--widget-color":"#000",position:"relative",display:"flex",height:"var(--xin-example-height)",background:"var(--background)",boxSizing:"border-box"},":host.-maximize":{position:"fixed",left:"0",top:"0",height:"100vh",width:"100vw",margin:"0 !important"},".-maximize":{zIndex:101},":host.-vertical":{flexDirection:"column"},":host .layout-indicator":{transition:"0.5s ease-out",transform:"rotateZ(270deg)"},":host.-vertical .layout-indicator":{transform:"rotateZ(180deg)"},":host.-maximize .hide-if-maximized, :host:not(.-maximize) .show-if-maximized":{display:"none"},':host [part="example"]':{flex:"1 1 50%",height:"100%",position:"relative",overflowX:"auto"},":host .preview":{height:"100%",position:"relative",overflow:"hidden",boxShadow:"inset 0 0 0 2px #8883"},':host [part="editors"]':{flex:"1 1 200px",height:"100%",position:"relative"},':host [part="exampleWidgets"]':{position:"absolute",left:"5px",bottom:"5px","--widget-color":"var(--brand-color)",borderRadius:"5px",width:"44px",height:"44px",lineHeight:"44px",zIndex:"100"},':host [part="exampleWidgets"] svg':{stroke:"var(--widget-color)"},":host .code-editors":{overflow:"hidden",background:"white",position:"relative",top:"0",right:"0",flex:"1 1 50%",height:"100%",flexDirection:"column",zIndex:"10"},":host .code-editors:not([hidden])":{display:"flex"},":host .code-editors > h4":{padding:"5px",margin:"0",textAlign:"center",background:"var(--code-editors-bar-bg)",color:"var(--code-editors-bar-color)",cursor:"move"},":host button.transparent, :host .sizer":{width:"32px",height:"32px",lineHeight:"32px",textAlign:"center",padding:"0",margin:"0"},":host .sizer":{cursor:"nwse-resize"},':host [part="testIndicator"]':{position:"absolute",top:"8px",right:"8px",width:"12px",height:"12px",borderRadius:"50%",background:"#888",zIndex:"100",display:"none"},':host.-has-tests [part="testIndicator"]':{display:"block",opacity:"var(--tests-enabled, 1)"},':host.-test-running [part="testIndicator"]':{background:"#fa0",animation:"test-pulse 0.5s ease-in-out infinite"},':host.-test-passed [part="testIndicator"]':{background:"#0a0",animation:"test-fade 2s ease-out forwards"},':host.-test-failed [part="testIndicator"]':{background:"#c00",animation:"test-pulse 1s ease-in-out infinite"},"@keyframes test-pulse":{"0%, 100%":{opacity:"1"},"50%":{opacity:"0.4"}},"@keyframes test-fade":{"0%":{opacity:"1"},"50%":{opacity:"1"},"100%":{opacity:"0"}},':host.-test-passed [part="exampleWidgets"]':{"--widget-color":"#0a0"},':host.-test-failed [part="exampleWidgets"]':{"--widget-color":"#f00"},':host [part="testResults"]':{position:"absolute",bottom:"54px",left:"5px",background:"var(--widget-bg)",borderRadius:"5px",padding:"8px",fontSize:"14px",margin:"0",maxWidth:"400px",maxHeight:"200px",overflow:"auto",zIndex:"100"},':host [part="testResults"][hidden]':{display:"none"},":host .test-pass":{color:"#0a0"},":host .test-fail":{color:"#f00"}};class Ki extends Error{constructor(i){super(i);this.name="AssertionError"}}function E4(i,l){if(i===l)return!0;if(typeof i!==typeof l)return!1;if(i===null||l===null)return i===l;if(typeof i!=="object")return!1;let s=i,t=l;if(Array.isArray(s)!==Array.isArray(t))return!1;let r=Object.keys(s),o=Object.keys(t);if(r.length!==o.length)return!1;return r.every((e)=>E4(s[e],t[e]))}var g9=5000,C9={stringify(i){if(typeof i>"u")return"undefined";if(i===null)return"null";if(typeof Element<"u"&&i instanceof Element)return`<${i.tagName.toLowerCase()}>`;if(typeof Node<"u"&&i instanceof Node)return`[${i.nodeName}]`;try{return JSON.stringify(i)}catch{return String(i)}}},{stringify:g1}=C9;function i5(i,l=!1){let s=(r,o)=>{if(!(l?!r:r))throw new Ki(l?`not: ${o}`:o)};return{toBe(r){s(i===r,`Expected ${g1(i)} to be ${g1(r)}`)},toEqual(r){s(E4(i,r),`Expected ${g1(i)} to equal ${g1(r)}`)},toBeTruthy(){s(!!i,`Expected ${g1(i)} to be truthy`)},toBeFalsy(){s(!i,`Expected ${g1(i)} to be falsy`)},toBeNull(){s(i===null,`Expected ${g1(i)} to be null`)},toBeUndefined(){s(i===void 0,`Expected ${g1(i)} to be undefined`)},toBeDefined(){s(i!==void 0,`Expected ${g1(i)} to be defined`)},toContain(r){if(typeof i==="string")s(i.includes(r),`Expected "${i}" to contain "${r}"`);else if(Array.isArray(i))s(i.includes(r),`Expected array to contain ${g1(r)}`);else throw new Ki("toContain requires string or array")},toHaveLength(r){let o=i.length;s(o===r,`Expected length ${o} to be ${r}`)},toMatch(r){s(r.test(i),`Expected "${i}" to match ${r}`)},toBeGreaterThan(r){s(i>r,`Expected ${i} to be greater than ${r}`)},toBeLessThan(r){s(i<r,`Expected ${i} to be less than ${r}`)},toBeInstanceOf(r){s(i instanceof r,`Expected value to be instance of ${r.name}`)},get not(){return i5(i,!l)}}}function Ni(i){return i5(i)}function v9(i){return new Promise((l)=>setTimeout(l,i))}function k9(i,l,s=1000){return new Promise((t,r)=>{let o=Date.now(),e=()=>{let h=i.querySelector(l);if(h){t(h);return}if(Date.now()-o>=s){r(Error(`Timeout waiting for "${l}" after ${s}ms`));return}requestAnimationFrame(e)};e()})}function n9(i,l,s){return Promise.race([i,new Promise((t,r)=>setTimeout(()=>r(Error(`Test "${s}" timed out after ${l}ms`)),l))])}function Xi(i,l=g9){let s="",t=[];return{pending:t,expect:Ni,test(r,o){let e=s?`${s} > ${r}`:r;try{let h=o();if(h instanceof Promise){let a=n9(h,l,e).then(()=>{i.push({name:e,passed:!0})}).catch((x)=>{i.push({name:e,passed:!1,error:x.message})});t.push(a)}else i.push({name:e,passed:!0})}catch(h){i.push({name:e,passed:!1,error:h.message})}},describe(r,o){let e=s;s=s?`${s} > ${r}`:r,o(),s=e}}}async function k0(i,l,s,t){let r=[],o=Xi(r),e={preview:l,...s,expect:o.expect,test:o.test,describe:o.describe,waitMs:v9,waitFor:(h,a)=>k9(l,h,a)};try{let h=j1(i,Object.keys(s)),a=t(h,{transforms:["typescript"]}).code,x=Object.keys(e).map((g)=>g.replace(/-/g,"")),c=Object.values(e);await new _2(...x,a)(...c)}catch(h){r.push({name:"Test execution",passed:!1,error:h.message})}if(o.pending.length>0)await Promise.all(o.pending);return{passed:r.filter((h)=>h.passed).length,failed:r.filter((h)=>!h.passed).length,tests:r}}var{div:a2,xinSlot:w9,style:B9,button:L1,pre:l5,span:s5}=C,Yi="tosijs-ui-tests-enabled",z9=typeof window<"u"&&(window.location.hostname==="localhost"||window.location.hostname==="127.0.0.1");function f9(){if(typeof localStorage>"u")return!1;let i=localStorage.getItem(Yi);if(i!==null)return i==="true";return z9}var{testManager:T}=E({testManager:{enabled:f9()}});function n0(){document.body.classList.toggle("tests-enabled",T.enabled.value),document.body.style.setProperty("--tests-enabled",T.enabled.value?"1":"0")}if(typeof document<"u")if(document.body)n0();else document.addEventListener("DOMContentLoaded",n0);function Wi(){localStorage.setItem(Yi,"true"),T.enabled.value=!0,n0(),document.querySelectorAll("xin-example").forEach((i)=>{i.refresh()})}function mi(){localStorage.setItem(Yi,"false"),T.enabled.value=!1,n0()}class _1 extends w{static initAttributes={persistToDom:!1,iframe:!1};prefix="lx";storageKey=p0;context={};uuid=crypto.randomUUID();remoteId="";remoteSync;undoInterval;testResults;pendingValues={};pendingShowDefaultTab=!1;beforeUnloadHandler;static insertExamples(i,l={}){v0(i,l,w0,_1.tagName)}get activeTab(){let{editors:i}=this.parts;return[...i.children].find((l)=>l.getAttribute("hidden")===null)}get hydrated(){try{return this.parts.js!==void 0}catch{return!1}}getEditorValue(i){if(!this.hydrated)return this.pendingValues[i]??"";return this.parts[i].value}setEditorValue(i,l){if(!this.hydrated){this.pendingValues[i]=l;return}let s=this.parts[i];s.value=l}flushPendingValues(){for(let[i,l]of Object.entries(this.pendingValues)){let s=this.parts[i];if(s)s.value=l}if(this.pendingValues={},this.pendingShowDefaultTab)this.pendingShowDefaultTab=!1,this.showDefaultTab()}get css(){return this.getEditorValue("css")}set css(i){this.setEditorValue("css",i)}get html(){return this.getEditorValue("html")}set html(i){this.setEditorValue("html",i)}get js(){return this.getEditorValue("js")}set js(i){this.setEditorValue("js",i)}get test(){return this.getEditorValue("test")}set test(i){this.setEditorValue("test",i)}get remoteKey(){return D4(this.prefix,this.uuid,this.remoteId)}updateUndo=()=>{let{activeTab:i}=this,{undo:l,redo:s}=this.parts;if(i instanceof N1&&i.editor!==void 0){let t=i.editor.session.getUndoManager();l.disabled=!t.hasUndo(),s.disabled=!t.hasRedo()}else l.disabled=!0,s.disabled=!0;this.updateTestResultsVisibility()};updateTestResultsVisibility(){let{testResults:i}=this.parts,l=this.testResults,s=this.activeTab?.getAttribute("name")==="test",t=l&&l.failed>0;i.hidden=!l||l.tests.length===0||!s&&!t}undo=()=>{let{activeTab:i}=this;if(i instanceof N1)i.editor.undo()};redo=()=>{let{activeTab:i}=this;if(i instanceof N1)i.editor.redo()};get isMaximized(){return this.classList.contains("-maximize")}flipLayout=()=>{this.classList.toggle("-vertical")};exampleMenu=()=>{let i=T.enabled.value;K({target:this.parts.exampleWidgets,width:"auto",menuItems:[{icon:"edit2",caption:"view/edit code",action:this.showCode},{icon:"edit",caption:"view/edit code in a new window",action:this.openEditorWindow},null,{icon:this.isMaximized?"minimize":"maximize",caption:this.isMaximized?"restore preview":"maximize preview",action:this.toggleMaximize},null,{icon:i?"check":"",caption:"Run tests",action:()=>{if(i)mi();else Wi()}}]})};handleShortcuts=(i)=>{if(i.metaKey||i.ctrlKey){let l=!1;switch(i.key){case"s":case"r":this.refresh(),l=!0;break;case"/":this.flipLayout();break;case"c":if(i.shiftKey)this.copy(),l=!0;break}if(l)i.preventDefault(),i.stopPropagation()}};content=()=>[a2({part:"example"},B9({part:"style"}),a2({part:"testIndicator",title:"test status"}),l5({part:"testResults",hidden:!0}),L1({title:"example menu",part:"exampleWidgets",onClick:this.exampleMenu},v.code())),a2({class:"code-editors",part:"codeEditors",onKeydown:this.handleShortcuts,hidden:!0},c0({part:"editors",onChange:this.updateUndo},o2({name:"js",mode:"javascript",part:"js"}),o2({name:"html",mode:"html",part:"html"}),o2({name:"css",mode:"css",part:"css"}),o2({name:"test",mode:"javascript",part:"test"}),a2({slot:"after-tabs",class:"row"},L1({title:"undo",part:"undo",class:"transparent",onClick:this.undo},v.cornerUpLeft()),L1({title:"redo",part:"redo",class:"transparent",onClick:this.redo},v.cornerUpRight()),L1({title:"flip direction (⌘/ | ^/)",class:"transparent",onClick:this.flipLayout},v.columns({class:"layout-indicator"})),L1({title:"copy as markdown (⌘⇧C | ^⇧C)",class:"transparent",onClick:this.copy},v.copy()),L1({title:"reload (⌘R | ^R)",class:"transparent",onClick:this.refreshRemote},v.refreshCw()),L1({title:"close code",class:"transparent",onClick:this.closeCode},v.x())))),w9({part:"sources",hidden:!0})];connectedCallback(){super.connectedCallback(),this.flushPendingValues();let{sources:i}=this.parts;this.initFromElements([...i.children]),this.remoteSync=new V2(this.storageKey,this.remoteKey,(s)=>{if(s.close){if(this.remoteId!=="")window.close();else this.classList.remove("-maximize"),this.parts.codeEditors.hidden=!0;return}if(this.css=s.css,this.html=s.html,this.js=s.js,s.test)this.test=s.test;this.refresh()}),this.remoteSync.startListening();let l=Math.random()*100;this.undoInterval=setInterval(()=>{if(!document.hidden)this.updateUndo()},250+l),this.beforeUnloadHandler=()=>this.remoteSync?.sendClose(),addEventListener("beforeunload",this.beforeUnloadHandler)}disconnectedCallback(){if(super.disconnectedCallback(),this.remoteSync?.sendClose(),this.remoteSync?.stopListening(),this.undoInterval)clearInterval(this.undoInterval),this.undoInterval=void 0;if(this.beforeUnloadHandler)removeEventListener("beforeunload",this.beforeUnloadHandler),this.beforeUnloadHandler=void 0}copy=()=>{let i=this.js!==""?"```js\n"+this.js.trim()+"\n```\n":"",l=this.html!==""?"```html\n"+this.html.trim()+"\n```\n":"",s=this.css!==""?"```css\n"+this.css.trim()+"\n```\n":"",t=this.test!==""?"```test\n"+this.test.trim()+"\n```\n":"";navigator.clipboard.writeText(i+l+s+t)};toggleMaximize=()=>{this.classList.toggle("-maximize")};showCode=()=>{this.classList.add("-maximize"),this.classList.toggle("-vertical",this.offsetHeight>this.offsetWidth),this.parts.codeEditors.hidden=!1};closeCode=()=>{if(this.remoteId!=="")this.remoteSync?.sendClose(),window.close();else this.remoteSync?.sendClose(),this.classList.remove("-maximize"),this.parts.codeEditors.hidden=!0};openEditorWindow=()=>{let{css:i,html:l,js:s,test:t}=this;S4(this.prefix,this.uuid,this.storageKey,this.remoteKey,{css:i,html:l,js:s,test:t}),this.classList.add("-maximize")};refreshRemote=()=>{this.remoteSync?.send({css:this.css,html:this.html,js:this.js,test:this.test})};updateSources=()=>{if(this.persistToDom){let{sources:i}=this.parts;i.innerText="";for(let l of["js","css","html","test"])if(this[l])i.append(l5({class:`language-${l}`,innerHTML:this[l]}))}};refresh=async()=>{if(this.remoteId!=="")return;let i=await d0(),{example:l,style:s,exampleWidgets:t}=this.parts,r;if(this.iframe)r=await C0({html:this.html,css:this.css,js:this.js,context:this.context,transform:i,exampleElement:l,widgetsElement:t});else r=await g0({html:this.html,css:this.css,js:this.js,context:this.context,transform:i,exampleElement:l,styleElement:s,widgetsElement:t});if(this.persistToDom)this.updateSources();if(this.test&&r&&T.enabled.value)this.classList.add("-has-tests","-test-running"),this.classList.remove("-test-passed","-test-failed"),this.testResults=await k0(this.test,r,this.context,i),this.classList.remove("-test-running"),this.displayTestResults();else this.classList.remove("-has-tests","-test-running","-test-passed","-test-failed")};displayTestResults(){let{testResults:i,testIndicator:l}=this.parts,s=this.testResults;if(!s||s.tests.length===0){i.hidden=!0,this.classList.remove("-test-passed","-test-failed"),l.title="no tests";return}i.innerHTML="";let t=a2({style:{marginBottom:"8px",fontWeight:"bold"}},`${s.passed}/${s.tests.length} tests passed`);i.append(t);for(let r of s.tests){let o=r.passed?"✓":"✗",e=r.passed?"test-pass":"test-fail",h=a2({class:e},s5(o+" "),r.name,r.error?s5({style:{opacity:"0.7"}},` - ${r.error}`):"");i.append(h)}this.classList.toggle("-test-passed",s.failed===0),this.classList.toggle("-test-failed",s.failed>0),l.title=s.failed===0?`${s.passed} tests passed`:`${s.failed}/${s.tests.length} tests failed`,this.updateTestResultsVisibility(),this.dispatchEvent(new CustomEvent("testcomplete",{bubbles:!0,detail:{results:s,element:this}}))}initFromElements(i){for(let l of i){l.hidden=!0;let[s,...t]=l.innerHTML.split(`
89
89
  `);if(["js","html","css","test"].includes(s)){let r=t.filter((e)=>e.trim()!=="").map((e)=>e.match(/^\s*/)[0].length).sort()[0],o=(r>0?t.map((e)=>e.substring(r)):t).join(`
90
- `);this.parts[s].value=o}else{let r=["js","html","css","test"].find((o)=>l.matches(`.language-${o}`));if(r)this.parts[r].value=r==="html"?l.innerHTML:l.innerText}}}showDefaultTab(){let{editors:i}=this.parts;if(this.js!=="")i.value=0;else if(this.html!=="")i.value=1;else if(this.css!=="")i.value=2;else if(this.test!=="")i.value=3}render(){if(super.render(),this.remoteId!==""){let i=localStorage.getItem(this.storageKey);if(i!==null){let l=JSON.parse(i);if(this.remoteKey!==l.remoteKey)return;if(this.css=l.css,this.html=l.html,this.js=l.js,l.test)this.test=l.test;this.parts.example.hidden=!0,this.parts.codeEditors.hidden=!1,this.classList.add("-maximize"),this.updateUndo()}}else this.refresh()}}var w0=F1.elementCreator({tag:"xin-example",styleSpec:S4}),w9=new URL(window.location.href).searchParams,t5=w9.get("lx");if(t5)document.title+=" [code editor]",document.body.textContent="",document.body.append(w0({remoteId:t5}));var{slot:r5}=C;class h2 extends w{static initAttributes={minSize:800,navSize:200,compact:!1,contentVisible:!1};value="normal";content=[r5({name:"nav",part:"nav"}),r5({part:"content"})];static styleSpec={":host":{display:"grid",gridTemplateColumns:`${p.navWidth("50%")} ${p.contentWidth("50%")}`,gridTemplateRows:"100%",position:"relative",margin:p.margin("0 0 0 -100%"),transition:p.sideNavTransition("0.25s ease-out")},":host slot":{position:"relative"},":host slot:not([name])":{display:"block"},':host slot[name="nav"]':{display:"block"}};onResize=()=>{let{content:i}=this.parts,l=this.offsetParent;if(l===null)return;let s=this.value;if(this.compact=l.offsetWidth<this.minSize,[...this.childNodes].find((r)=>r instanceof Element?r.getAttribute("slot")!=="nav":!0)===void 0)s="compact/nav",this.style.setProperty("--nav-width","100%"),this.style.setProperty("--content-width","0%");else if(!this.compact)s="normal",i.classList.add("-tosi-sidenav-visible"),this.style.setProperty("--nav-width",`${this.navSize}px`),this.style.setProperty("--content-width",`calc(100% - ${this.navSize}px)`),this.style.setProperty("--margin","0");else if(i.classList.remove("-tosi-sidenav-visible"),this.style.setProperty("--nav-width","50%"),this.style.setProperty("--content-width","50%"),this.contentVisible)s="compact/content",this.style.setProperty("--margin","0 0 0 -100%");else s="compact/nav",this.style.setProperty("--margin","0 -100% 0 0");if(this.value!==s)this.value=s};observer;connectedCallback(){super.connectedCallback(),this.contentVisible=this.parts.content.childNodes.length===0,globalThis.addEventListener("resize",this.onResize),this.observer=new MutationObserver(this.onResize),this.observer.observe(this,{childList:!0}),this.style.setProperty("--side-nav-transition","0s"),setTimeout(()=>{this.style.removeProperty("--side-nav-transition")},250)}disconnectedCallback(){super.disconnectedCallback(),this.observer.disconnect()}render(){super.render(),this.onResize()}}var B0=h2.elementCreator({tag:"tosi-sidenav"}),B9=B0;var{div:Ri,span:q2,a:j1,header:z9,button:o5,template:f9,input:M9,h2:b9}=C,a2={pass:p.testColorPass("#0a0"),fail:p.testColorFail("#c00"),running:p.testColorRunning("#fa0")},u9={"@keyframes test-pulse":{"0%, 100%":{opacity:"1"},"50%":{opacity:"0.7"}},"@keyframes test-appear":{from:{opacity:"0",transform:"scale(0.8)"},to:{opacity:"1",transform:"scale(1)"}},"@keyframes test-fade":{"0%, 20%":{opacity:"1",transform:"scale(1)"},"70%":{opacity:"1",transform:"scale(1.1)"},"100%":{opacity:"0",transform:"scale(0.9)",pointerEvents:"none"}},"body:not(.tests-enabled) .doc-link::after, body:not(.tests-enabled) .test-widget":{display:"none !important"},".doc-link.-test-passed::after, .doc-link.-test-failed::after":{content:"''",width:y.fontSize50,height:y.fontSize50,borderRadius:"50%",marginLeft:y.spacing50,display:"inline-block",verticalAlign:"middle"},".doc-link.-test-passed::after":{background:a2.pass},".doc-link.-test-failed::after":{background:a2.fail,animation:"test-pulse 2s ease-in-out infinite"},".test-widget":{_testBg:a2.running,position:"fixed",bottom:y.spacing,right:y.spacing,zIndex:"1000",background:y.testBg,color:"white"},".test-widget[hidden]":{display:"none"},".test-widget.-running":{_testBg:a2.running,animation:"test-appear 0.3s ease-out, test-pulse 2s ease-in-out 0.3s infinite"},".test-widget.-passed":{_testBg:a2.pass,animation:"test-fade 3s ease-out forwards"},".test-widget.-failed":{_testBg:a2.fail,animation:"test-pulse 2s ease-in-out infinite"},".test-widget .count":{background:"white",color:y.testBg,borderRadius:"50%",width:y.lineHeight,height:y.lineHeight,display:"flex",alignItems:"center",justifyContent:"center",fontWeight:"bold"}};function A9(i){let{docs:l,context:s={},projectName:t="",projectLinks:r={},navSize:o=200,minSize:e=600}=i;for(let n of l)n.testStatus=void 0;let h=document.location.search!==""?document.location.search.substring(1).split("&")[0]:l[0]?.filename||"README.md",a=l.find((n)=>n.filename===h)||l[0],{app:x}=S({app:{docs:l,currentDoc:a,compact:!1}}),c={},d,g=!1,B=0,k=0;window.__docTestResults=new Promise((n)=>{d=n});let M=(n)=>{let f=c[n],H=x.docs.find((V)=>V.filename===n);if(H)H.testStatus=f?f.passed?"passed":"failed":void 0},A=()=>{if(k>=B&&d){let n={passed:0,failed:0,pages:c};for(let f of Object.values(c))n.passed+=f.totalPassed,n.failed+=f.totalFailed;if(d(n),d=void 0,P)fetch("/report",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(n)}).catch(()=>{})}},P=window.location.hostname==="localhost"||window.location.hostname==="127.0.0.1",b=(n)=>{let{results:f}=n.detail,H=String(x.currentDoc.filename);c[H]={passed:f.failed===0,tests:[...f.tests],totalPassed:f.passed,totalFailed:f.failed},M(H)},u=(n)=>{k++,A(),H0()};v1.docLink={toDOM(n,f){n.setAttribute("href",`?${f}`)}},v1.current={toDOM(n,f){let H=n.getAttribute("href")||"";n.classList.toggle("current",f===H.substring(1))}},v1.testStatus={toDOM(n,f){if(n.classList.remove("-test-passed","-test-failed"),f==="passed")n.classList.add("-test-passed");else if(f==="failed")n.classList.add("-test-failed")}};let _=Y2(()=>{let n=Y.value.toLocaleLowerCase();x.docs.forEach((f)=>{f.hidden=!f.title.toLocaleLowerCase().includes(n)&&!f.text.toLocaleLowerCase().includes(n)}),B1(x.docs)}),Y=M9({slot:"nav",placeholder:"search",type:"search",style:{width:"calc(100% - 10px)",margin:"5px"},onInput:_});window.addEventListener("popstate",()=>{let n=window.location.search.substring(1);x.currentDoc=x.docs.find((f)=>f.filename===n)||x.docs[0]});let G=[o5({class:"iconic",style:{color:y.linkColor},title:"navigation",bind:{value:x.compact,binding:{toDOM(n,f){n.style.display=f?"":"none",n.nextSibling.style.display=f?"":"none"}}},onClick(){let n=document.querySelector(h2.tagName);n.contentVisible=!n.contentVisible}},v.menu()),q2({style:{flex:"0 0 10px"}})];if(t)G.push(j1({href:"/",style:{display:"flex",alignItems:"center",borderBottom:"none"}},r.tosijs?v.tosiUi({style:{_xinIconSize:40,marginRight:10}}):q2(),b9(t)));if(G.push(q2({class:"elastic"})),r.tosijs)G.push(j1({class:"iconic",title:"tosijs",target:"_blank"},v.tosi(),{href:r.tosijs}));if(r.discord)G.push(j1({class:"iconic",title:"discord",target:"_blank"},v.discord(),{href:r.discord}));if(r.blog)G.push(j1({class:"iconic",title:"blog",target:"_blank"},v.blog(),{href:r.blog}));if(r.github)G.push(j1({class:"iconic",title:"github",target:"_blank"},v.github(),{href:r.github}));if(r.npm)G.push(j1({class:"iconic",title:"npmjs",target:"_blank"},v.npm(),{href:r.npm}));let W=Ri({style:{display:"flex",flexDirection:"column",maxWidth:"100vw",height:"100vh",overflow:"hidden"}},z9(...G),B0({name:"Documentation",navSize:o,minSize:e,style:{flex:"1 1 auto",overflow:"hidden"},onChange(){let n=document.querySelector(h2.tagName);x.compact=n.compact}},Y,Ri({slot:"nav",style:{display:"flex",flexDirection:"column",width:"100%",height:"calc(100% - 44px)",overflowY:"scroll"},bindList:{idPath:"filename",hiddenProp:"hidden",value:x.docs}},f9(j1({class:"doc-link",bindCurrent:"app.currentDoc.filename",bindDocLink:"^.filename",bindTestStatus:"^.testStatus",onClick(n){let f=n.target,H=Q1(n.target),V=n.target.closest("xin-sidenav");V.contentVisible=!0;let{href:$}=f;window.history.pushState({href:$},"",$),x.currentDoc=H,n.preventDefault();let o1=String(H.filename),R=c[o1];if(R&&!R.passed)setTimeout(()=>{let J=document.querySelector("xin-example.-test-failed");if(J)J.scrollIntoView({behavior:"smooth",block:"center"})},100)}},k1({bindText:"^.title"})))),Ri({style:{position:"relative",overflowY:"scroll",height:"100%"}},j1({class:"view-source",target:"_blank",style:{display:r.github?"flex":"none",alignItems:"center",gap:"6px",position:"fixed",top:"calc(var(--xin-header-height, 60px) + 5px)",right:"5px",fontSize:"0.875em",color:"var(--brand-color, inherit)",opacity:"0.7",borderBottom:"none",transition:"opacity 0.2s ease"},onMouseenter(n){n.target.style.opacity="0.9"},onMouseleave(n){n.target.style.opacity="0.7"},bind:{value:x.currentDoc,binding(n,f){if(r.github&&f.path&&f.path!=="README.md")n.href=`${r.github}/blob/main/${f.path}`,n.style.display="flex";else n.style.display="none"}}},v.github({style:{_xinIconSize:16}}),"View source on GitHub"),j2({style:{display:"block",maxWidth:"44em",margin:"auto",padding:"0 1em",overflow:"hidden"},bindValue:"app.currentDoc.text",didRender(){F1.insertExamples(this,s)}}))));G1("test-indicators",u9);let N=o5({class:"test-widget",hidden:!0,onClick:_5},q2({part:"label"},"Tests"),q2({class:"count",part:"count"},"0"));W.appendChild(N);let J2=!1;function gl(){J2=!0,N.hidden=!1,N.classList.remove("-passed","-failed"),N.classList.add("-running"),Cl()}function Cl(){let n=N.querySelector('[part="label"]'),f=N.querySelector('[part="count"]'),H=Object.values(c).reduce(($,o1)=>$+o1.totalPassed,0),V=Object.values(c).reduce(($,o1)=>$+o1.totalFailed,0);if(n)if(J2)n.textContent="Running";else if(V>0)n.textContent="Failed";else if(H>0)n.textContent="Passed";else n.textContent="Tests";if(f)f.textContent=V>0?String(V):String(H)}function H0(){let n=Object.values(c).reduce((f,H)=>f+H.totalFailed,0);if(J2&&k>=B)if(J2=!1,N.classList.remove("-running"),n>0)N.classList.add("-failed"),N.classList.remove("-passed"),N.hidden=!1;else N.classList.add("-passed"),N.classList.remove("-failed"),N.hidden=!1;Cl()}function _5(){let n=Object.entries(c).filter(([,H])=>!H.passed),f=[];for(let[H,V]of n){let $=l.find((R)=>R.filename===H),o1=V.tests.filter((R)=>!R.passed);for(let R of o1)f.push({caption:`${$?.title||H}: ${R.name}`,action:()=>{let J=x.docs.find((T)=>String(T.filename)===H);if(J)window.history.pushState({href:`?${H}`},"",`?${H}`),x.currentDoc=J,setTimeout(()=>{let T=document.querySelector("xin-example.-test-failed");if(T)T.scrollIntoView({behavior:"smooth",block:"center"})},100)}})}if(f.length>0)f.push(null);f.push({icon:"copy",caption:"Copy test results to clipboard",action:()=>{let H=V5();navigator.clipboard.writeText(H)}}),K({target:N,menuItems:f})}function V5(){let n=["# Test Results",""],f=0,H=0;for(let[V,$]of Object.entries(c)){let R=l.find((J)=>J.filename===V)?.title||V;if(f+=$.totalPassed,H+=$.totalFailed,$.tests.length>0){n.push(`## ${R}`),n.push("");for(let J of $.tests){let T=J.passed?"✓":"✗",d2=J.error?`- ${T} ${J.name}: ${J.error}`:`- ${T} ${J.name}`;n.push(d2)}n.push("")}}return n.unshift(`**Summary: ${f} passed, ${H} failed**`,""),n.join(`
91
- `)}W.addEventListener("testcomplete",(n)=>{b(n),H0()});let q5=async()=>{if(g)return;if(!D.enabled.value)return;g=!0;let n=l.filter((V)=>V.text.includes("```test"));if(B=n.length,B>0)gl();if(B===0){if(d)d({passed:0,failed:0,pages:{}}),d=void 0;return}let f=document.createElement("iframe");f.style.cssText="position: fixed; left: -9999px; width: 800px; height: 600px; visibility: hidden;",document.body.appendChild(f);let H=String(x.currentDoc.filename);for(let V of n){if(V.filename===H)continue;c[V.filename]={passed:!0,tests:[],totalPassed:0,totalFailed:0};let $=document.createElement("div"),o1=j2({value:V.text,didRender(){F1.insertExamples(this,s)}});$.appendChild(o1);let R=(T)=>{let{results:d2}=T.detail,p2=c[V.filename];p2.tests.push(...d2.tests),p2.totalPassed+=d2.passed,p2.totalFailed+=d2.failed,p2.passed=p2.totalFailed===0,M(V.filename),H0()};$.addEventListener("testcomplete",R);let J=f.contentDocument;if(J)J.body.innerHTML="",J.body.appendChild($),await new Promise((T)=>setTimeout(T,500));u(V.filename)}if(f.remove(),n.some((V)=>V.filename===H))setTimeout(()=>{u(H)},1000)},vl=()=>{if(!D.enabled.value)return;if(P)setTimeout(q5,1000);else if(a.text.includes("```test"))B=1,gl(),setTimeout(()=>u(a.filename),2000);else if(d)d({passed:0,failed:0,pages:{}}),d=void 0};return vl(),D.enabled.observe(vl),W}var{div:s1,slot:P9}=C;class t1 extends w{static initAttributes={rotationSnap:0,positionSnap:0};static angleSize=15;static gridSize=8;static snapAngle=!1;static snapToGrid=!1;static styleSpec={":host":{"--handle-bg":"#fff4","--handle-color":"#2228","--handle-hover-bg":"#8ff8","--handle-hover-color":"#222","--handle-size":"20px","--handle-padding":"2px"},":host ::slotted(*)":{position:"absolute"},":host > :not(style,slot)":{boxSizing:"border-box",content:'" "',position:"absolute",display:"flex",height:y.handleSize,width:y.handleSize,padding:y.handlePadding,"--text-color":y.handleColor,background:y.handleBg},":host > .drag-size":{top:0,bottom:0,left:0,right:0,height:"auto",width:"auto",background:"transparent",cursor:"ew-resize"},':host > [part="rotate"]':{transform:`translateY(${y.handleSize_50})`},":host > [locked] > svg:first-child, :host > :not([locked]) > svg+svg":{display:"none"},":host .icon-unlock":{opacity:0.5},":host svg":{pointerEvents:"none"},":host > *:hover":{"--text-color":y.handleHoverColor,background:y.handleHoverBg}};static snappedCoords(i,l){let{gridSize:s}=t1;return t1.snapToGrid||i.shiftKey?l.map((t)=>Math.round(t/s)*s):l}static snappedAngle(i,l){let{angleSize:s}=t1;return t1.snapAngle||i.shiftKey?Math.round(l/s)*s:l}get locked(){let i=this.parentElement;if(i.style.inset)return{left:!0,top:!0,bottom:!0,right:!0};let l=i.style.right.match(/\d/)!==null,s=!l||i.style.left.match(/\d/)!==null,t=i.style.bottom.match(/\d/)!==null,r=!t||i.style.top.match(/\d/)!==null;return{left:s,top:r,bottom:t,right:l}}set locked(i){let{bottom:l,right:s}=i,{left:t,top:r}=i,o=this.parentElement,e=o.offsetLeft,h=o.offsetTop,a=o.offsetWidth,x=o.offsetHeight,c=o.offsetParent.offsetWidth-e-a,d=o.offsetParent.offsetHeight-h-x;if(Object.assign(o.style,{left:"",right:"",top:"",bottom:"",width:"",height:""}),!s)t=!0;if(!l)r=!0;if(t)o.style.left=e+"px";if(s)o.style.right=c+"px";if(t&&s)o.style.width="auto";else o.style.width=a+"px";if(r)o.style.top=h+"px";if(l)o.style.bottom=d+"px";if(r&&l)o.style.height="auto";else o.style.height=x+"px";this.queueRender()}get coords(){let{top:i,left:l,right:s,bottom:t}=this.parentElement.style;return{top:parseFloat(i),left:parseFloat(l),right:parseFloat(s),bottom:parseFloat(t)}}get left(){return this.parentElement.offsetLeft}get width(){return this.parentElement.offsetWidth}get right(){return this.parentElement.offsetParent.offsetWidth-(this.left+this.width)}get top(){return this.parentElement.offsetTop}get height(){return this.parentElement.offsetHeight}get bottom(){return this.parentElement.offsetParent.offsetHeight-(this.top+this.height)}triggerChange=()=>{this.parentElement.dispatchEvent(new Event("change",{bubbles:!0,composed:!0}))};adjustPosition=(i)=>{let{locked:l}=this;this.locked=l;let s=this.parentElement,{top:t,left:r,bottom:o,right:e}=this.coords;X(i,(h,a,x)=>{if([h,a]=t1.snappedCoords(x,[h,a]),!isNaN(t))s.style.top=t+a+"px";if(!isNaN(o))s.style.bottom=o-a+"px";if(!isNaN(r))s.style.left=r+h+"px";if(!isNaN(e))s.style.right=e-h+"px";if(x.type==="mouseup")return this.triggerChange(),!0})};resize=(i)=>{let l=this.parentElement,{locked:s}=this;this.locked=Object.assign({left:!0,top:!0,right:!0,bottom:!0});let[t,r]=[this.right,this.bottom];X(i,(o,e,h)=>{let a=t-o,x=r-e;if([a,x]=t1.snappedCoords(h,[a,x]),l.style.right=a+"px",l.style.bottom=x+"px",h.type==="mouseup")return this.locked=s,this.triggerChange(),!0})};adjustSize=(i)=>{let l=this.parentElement,{locked:s}=this,t=i.target.getAttribute("part");this.locked=Object.assign({left:!0,right:!0,top:!0,bottom:!0});let r=this[t];X(i,(o,e,h)=>{let[a]=t1.snappedCoords(h,[r+(["left","right"].includes(t)?o:e)*(["right","bottom"].includes(t)?-1:1)]);if(l.style[t]=a+"px",h.type==="mouseup")return this.locked=s,this.triggerChange(),!0})};get rect(){return this.parentElement.getBoundingClientRect()}get center(){let i=this.parentElement.getBoundingClientRect();return{x:i.x+i.width*0.5,y:i.y+i.height*0.5}}get element(){return this.parentElement}adjustRotation=(i)=>{let{center:l}=this,{transformOrigin:s}=this.element.style;if(!s)this.element.style.transformOrigin="50% 50%";X(i,(t,r,o)=>{let{clientX:e,clientY:h}=o,a=e-l.x,x=h-l.y,c=x>0?90:-90;if(a!==0)c=Math.atan2(x,a)*180/Math.PI;if(c=t1.snappedAngle(o,c),c===0)this.element.style.transformOrigin="",this.element.style.transform="";else this.element.style.transform=`rotate(${c}deg)`;return this.triggerChange(),o.type==="mouseup"})};toggleLock=(i)=>{let{locked:l}=this,s=i.target.title.split(" ")[1];l[s]=!l[s],this.locked=l,this.queueRender(),i.stopPropagation(),i.preventDefault()};content=()=>[s1({part:"move",style:{top:"50%",left:"50%",transform:"translate(-50%,-50%)"}},v.move()),s1({part:"left",title:"resize left",class:"drag-size",style:{left:"-6px",width:"8px"}}),s1({part:"right",title:"resize right",class:"drag-size",style:{left:"calc(100% - 2px)",width:"8px"}}),s1({part:"top",title:"resize top",class:"drag-size",style:{top:"-6px",height:"8px",cursor:"ns-resize"}}),s1({part:"bottom",title:"resize bottom",class:"drag-size",style:{top:"calc(100% - 2px)",height:"8px",cursor:"ns-resize"}}),s1({part:"resize",style:{top:"100%",left:"100%"}},v.resize()),s1({part:"rotate",style:{top:"50%",right:"0"}},v.refreshCw()),s1({part:"lockLeft",title:"lock left",style:{top:"50%",left:0,transform:"translate(-100%, -50%)"}},v.unlock(),v.lock()),s1({part:"lockRight",title:"lock right",style:{top:"50%",left:"100%",transform:"translate(0%, -50%)"}},v.unlock(),v.lock()),s1({part:"lockTop",title:"lock top",style:{top:0,left:"50%",transform:"translate(-50%, -100%)"}},v.unlock(),v.lock()),s1({part:"lockBottom",title:"lock bottom",style:{top:"100%",left:"50%",transform:"translate(-50%, 0%)"}},v.unlock(),v.lock()),P9()];connectedCallback(){super.connectedCallback();let{left:i,right:l,top:s,bottom:t,lockLeft:r,lockRight:o,lockTop:e,lockBottom:h,move:a,resize:x,rotate:c}=this.parts,d={passive:!0};[i,l,s,t].forEach((g)=>{g.addEventListener("mousedown",this.adjustSize,d),g.addEventListener("touchstart",this.adjustSize,d)}),[r,o,e,h].forEach((g)=>{g.addEventListener("click",this.toggleLock)}),x.addEventListener("mousedown",this.resize,d),a.addEventListener("mousedown",this.adjustPosition,d),c.addEventListener("mousedown",this.adjustRotation,d),x.addEventListener("touchstart",this.resize,d),a.addEventListener("touchstart",this.adjustPosition,d),c.addEventListener("touchstart",this.adjustRotation,d)}render(){if(super.render(),!this.parentElement)return;let{lockLeft:i,lockRight:l,lockTop:s,lockBottom:t}=this.parts,{left:r,right:o,top:e,bottom:h}=this.locked;i.toggleAttribute("locked",r),l.toggleAttribute("locked",o),s.toggleAttribute("locked",e),t.toggleAttribute("locked",h)}}var H9=t1.elementCreator({tag:"xin-editable"});var{div:F9,input:j9,button:Li,span:_9}=C,e5=(i)=>i,h5="null filter, everything matches",Ii={contains:{caption:"contains",negative:"does not contain",makeTest:(i)=>{return i=i.toLocaleLowerCase(),(l)=>String(l).toLocaleLowerCase().includes(i)}},hasTags:{caption:"has tags",makeTest:(i)=>{let l=i.split(/[\s,]/).map((s)=>s.trim().toLocaleLowerCase()).filter((s)=>s!=="");return(s)=>Array.isArray(s)&&l.find((t)=>!s.includes(t))===void 0}},doesNotHaveTags:{caption:"does not have tags",makeTest:(i)=>{let l=i.split(/[\s,]/).map((s)=>s.trim().toLocaleLowerCase()).filter((s)=>s!=="");return(s)=>Array.isArray(s)&&l.find((t)=>s.includes(t))===void 0}},equals:{caption:"=",negative:"≠",makeTest:(i)=>{if(isNaN(Number(i)))return i=String(i).toLocaleLowerCase(),(s)=>String(s).toLocaleLowerCase()===i;let l=Number(i);return(s)=>Number(s)===l}},after:{caption:"is after",negative:"is before",makeTest:(i)=>{let l=new Date(i);return(s)=>new Date(s)>l}},greaterThan:{caption:">",negative:"≤",makeTest:(i)=>{if(!isNaN(Number(i))){let l=Number(i);return(s)=>Number(s)>l}return i=i.toLocaleLowerCase(),(l)=>String(l).toLocaleLowerCase()>i}},truthy:{caption:"is true/non-empty/non-zero",negative:"is false/empty/zero",needsValue:!1,makeTest:()=>(i)=>!!i},isTrue:{caption:"= true",needsValue:!1,makeTest:()=>(i)=>i===!0},isFalse:{caption:"= false",needsValue:!1,makeTest:()=>(i)=>i===!1}},V9={description:"anything",test:()=>!0};function a5(i){return i.options[i.selectedIndex]?.caption||""}class Di extends w{static initAttributes={haystack:"*",condition:"contains",needle:""};fields=[];filters=Ii;content=()=>[d1({part:"haystack"}),d1({part:"condition"}),j9({part:"needle",type:"search"}),_9({part:"padding"}),Li({part:"remove",title:"delete"},v.trash())];filter=V9;get state(){let{haystack:i,needle:l,condition:s}=this.parts;return{haystack:i.value,needle:l.value,condition:s.value}}set state(i){Object.assign(this,i)}buildFilter=()=>{let{haystack:i,condition:l,needle:s}=this.parts,t=l.value.startsWith("~"),r=t?l.value.slice(1):l.value,o=this.filters[r];s.hidden=o.needsValue===!1;let e=o.needsValue===!1?o.makeTest(void 0):o.makeTest(s.value),h=i.value,a;if(h!=="*")a=t?(d)=>!e(d[h]):(d)=>e(d[h]);else a=t?(d)=>Object.values(d).find((g)=>!e(g))!==void 0:(d)=>Object.values(d).find((g)=>e(g))!==void 0;let x=o.needsValue!==!1?` "${s.value}"`:"",c=`${a5(i)} ${a5(l)}${x}`;this.filter={description:c,test:a},this.parentElement?.dispatchEvent(new Event("change"))};connectedCallback(){super.connectedCallback();let{haystack:i,condition:l,needle:s,remove:t}=this.parts;i.addEventListener("change",this.buildFilter),l.addEventListener("change",this.buildFilter),s.addEventListener("input",this.buildFilter),i.value=this.haystack,l.value=this.condition,s.value=this.needle,t.addEventListener("click",()=>{let{parentElement:r}=this;this.remove(),r?.dispatchEvent(new Event("change"))})}render(){super.render();let{haystack:i,condition:l,needle:s}=this.parts;if(i.options=[{caption:"any field",value:"*"},...this.fields.map((t)=>t.prop)],l.options=Object.keys(this.filters).map((t)=>{let r=this.filters[t];return r.negative!==void 0?[{caption:r.caption,value:t},{caption:r.negative,value:"~"+t}]:{caption:r.caption,value:t}}).flat(),this.haystack!=="")i.value=this.haystack;if(this.condition!=="")l.value=this.condition;if(this.needle!=="")s.value=this.needle;this.buildFilter()}}var z0=Di.elementCreator({tag:"xin-filter-part",styleSpec:{":host":{display:"flex"},":host .xin-icon:":{verticalAlign:"middle",pointerEvents:"none"},':host [part="haystack"], :host [part="condition"]':{flex:"1"},':host [part="needle"]':{flex:2},':host [hidden]+[part="padding"]':{display:"block",content:" ",flex:"1 1 auto"}}});class Ti extends w{_fields=[];get fields(){return this._fields}set fields(i){this._fields=i,this.queueRender()}get state(){let{filterContainer:i}=this.parts;return[...i.children].map((l)=>l.state)}set state(i){let{fields:l,filters:s}=this,{filterContainer:t}=this.parts;t.textContent="";for(let r of i)t.append(z0({fields:l,filters:s,...r}))}filter=e5;description=h5;addFilter=()=>{let{fields:i,filters:l}=this,{filterContainer:s}=this.parts;s.append(z0({fields:i,filters:l}))};content=()=>[Li({part:"add",title:"add filter condition",onClick:this.addFilter,class:"round"},v.plus()),F9({part:"filterContainer"}),Li({part:"reset",title:"reset filter",onClick:this.reset},v.x())];filters=Ii;reset=()=>{let{fields:i,filters:l}=this,{filterContainer:s}=this.parts;this.description=h5,this.filter=e5,s.textContent="",s.append(z0({fields:i,filters:l})),this.dispatchEvent(new Event("change"))};buildFilter=()=>{let{filterContainer:i}=this.parts;if(i.children.length===0){this.reset();return}let l=[...i.children].map((t)=>t.filter),s=l.map((t)=>t.test);this.description=l.map((t)=>t.description).join(", "),this.filter=(t)=>t.filter((r)=>s.find((o)=>o(r)===!1)===void 0),this.dispatchEvent(new Event("change"))};connectedCallback(){super.connectedCallback();let{filterContainer:i}=this.parts;i.addEventListener("change",this.buildFilter),this.reset()}render(){super.render()}}var q9=Ti.elementCreator({tag:"xin-filter",styleSpec:{":host":{height:"auto",display:"grid",gridTemplateColumns:"32px calc(100% - 64px) 32px",alignItems:"center"},':host [part="filterContainer"]':{display:"flex",flexDirection:"column",alignItems:"stretch",flex:"1 1 auto"},':host [part="haystack"]':{_fieldWidth:"100px"},':host [part="condition"]':{_fieldWidth:"60px"},':host [part="needle"]':{_fieldWidth:"80px"},':host [part="add"], :host [part="reset"]':{"--button-size":"var(--touch-size, 32px)",borderRadius:"999px",height:"var(--button-size)",lineHeight:"var(--button-size)",margin:"0",padding:"0",textAlign:"center",width:"var(--button-size)",flex:"0 0 var(--button-size)"}}});var{form:O9,slot:Si,xinSlot:x5,label:U9,input:$9,span:J9}=C;function _1(i,l,s){if(s!==""&&s!==!1)i.setAttribute(l,s);else i.removeAttribute(l)}function G9(i){switch(i.type){case"checkbox":return i.checked;case"radio":{let l=i.parentElement?.querySelector(`input[type="radio"][name="${i.name}"]:checked`);return l?l.value:null}case"range":case"number":return Number(i.value);default:return Array.isArray(i.value)&&i.value.length===0?null:i.value}}function y5(i,l){if(!(i instanceof HTMLElement));else if(i instanceof HTMLInputElement)switch(i.type){case"checkbox":i.checked=l;break;case"radio":i.checked=l===i.value;break;default:i.value=String(l||"")}else if(l!=null||i.value!=null)i.value=String(l||"")}class f0 extends w{static initAttributes={caption:"",key:"",type:"",optional:!1,pattern:"",placeholder:"",min:"",max:"",step:"",fixedPrecision:-1,prefix:"",suffix:""};value=null;content=U9(x5({part:"caption"}),J9({part:"field"},x5({part:"input",name:"input"}),$9({part:"valueHolder"})));valueChanged=!1;handleChange=()=>{let{input:i,valueHolder:l}=this.parts,s=i.children[0]||l;if(s!==l)l.value=s.value;this.value=G9(s),this.valueChanged=!0;let t=this.closest("tosi-form");if(t&&this.key!=="")switch(this.type){case"checkbox":t.fields[this.key]=s.checked;break;case"number":case"range":if(this.fixedPrecision>-1)s.value=Number(s.value).toFixed(this.fixedPrecision),t.fields[this.key]=Number(s.value);else t.fields[this.key]=Number(s.value);break;default:t.fields[this.key]=s.value}};connectedCallback(){super.connectedCallback();let{input:i,valueHolder:l}=this.parts;l.addEventListener("change",this.handleChange),i.addEventListener("change",this.handleChange,!0)}render(){if(this.valueChanged){this.valueChanged=!1;return}let{input:i,caption:l,valueHolder:s,field:t}=this.parts;if(l.textContent?.trim()==="")l.append(this.caption!==""?this.caption:this.key);if(this.type==="text"){i.textContent="";let r=C.textarea({value:this.value});if(this.placeholder)r.setAttribute("placeholder",this.placeholder);i.append(r)}else if(this.type==="color")i.textContent="",i.append(di({value:this.value}));else if(i.children.length===0){if(_1(s,"placeholder",this.placeholder),_1(s,"type",this.type),_1(s,"pattern",this.pattern),_1(s,"min",this.min),_1(s,"max",this.max),this.step)_1(s,"step",this.step);else if(this.fixedPrecision>0&&this.type==="number")_1(s,"step",Math.pow(10,-this.fixedPrecision))}if(y5(s,this.value),y5(i.children[0],this.value),this.prefix?t.setAttribute("prefix",this.prefix):t.removeAttribute("prefix"),this.suffix?t.setAttribute("suffix",this.suffix):t.removeAttribute("suffix"),s.classList.toggle("hidden",i.children.length>0),i.children.length>0)s.setAttribute("tabindex","-1");else s.removeAttribute("tabindex");i.style.display=i.children.length===0?"none":"",_1(s,"required",!this.optional)}}class M0 extends w{context={};value={};get isValid(){return[...this.querySelectorAll("*")].filter((l)=>l.required!==void 0).find((l)=>!l.reportValidity())===void 0}static styleSpec={":host":{display:"flex",flexDirection:"column"},":host::part(header), :host::part(footer)":{display:"flex"},":host::part(content)":{display:"flex",flexDirection:"column",overflow:"hidden auto",height:"100%",width:"100%",position:"relative",boxSizing:"border-box"},":host form":{display:"flex",flex:"1 1 auto",position:"relative",overflow:"hidden"}};content=[Si({part:"header",name:"header"}),O9({part:"form"},Si({part:"content"})),Si({part:"footer",name:"footer"})];getField=(i)=>{return this.querySelector(`tosi-field[key="${i}"]`)};get fields(){if(typeof this.value==="string")try{this.value=JSON.parse(this.value)}catch(s){console.log("<tosi-form> could not use its value, expects valid JSON"),this.value={}}let{getField:i}=this,l=this.dispatchEvent.bind(this);return new Proxy(this.value,{get(s,t){return s[t]},set(s,t,r){if(s[t]!==r){s[t]=r;let o=i(t);if(o)o.value=r;l(new Event("change"))}return!0}})}set fields(i){let l=[...this.querySelectorAll("tosi-field")];for(let s of l)s.value=i[s.key]}submit=()=>{this.parts.form.dispatchEvent(new Event("submit"))};handleSubmit=(i)=>{i.preventDefault(),i.stopPropagation();let l=this.fields;this.submitCallback(l,this.isValid)};submitCallback=(i,l)=>{console.log("override submitCallback to handle this data",{value:i,isValid:l})};connectedCallback(){super.connectedCallback();let{form:i}=this.parts;i.addEventListener("submit",this.handleSubmit),this.addEventListener("change",this.handleElementChange,!0),this.initializeNamedElements()}handleElementChange=(i)=>{let l=i.target,s=l.getAttribute("name");if(s&&"value"in l)this.fields[s]=l.value};initializeNamedElements(){let i=this.fields,l=this.querySelectorAll("[name], [key]");for(let s of l){let t=s.getAttribute("name")||s.getAttribute("key");if(t&&i[t]!==void 0)s.value=i[t]}}}var Q9=f0,Z9=M0,K9={':host [part="field"]':{position:"relative",display:"flex",alignItems:"center",gap:p.prefixSuffixGap("8px")},':host [part="field"][prefix]::before':{content:"attr(prefix)"},':host [part="field"][suffix]::after':{content:"attr(suffix)"},':host [part="field"] > *, :host [part="input"] > *':{width:"100%"},":host textarea":{resize:"none"},':host input[type="checkbox"]':{width:"fit-content"},":host .hidden":{position:"absolute",pointerEvents:"none",opacity:0}},c5=f0.elementCreator({tag:"tosi-field",styleSpec:K9}),d5=M0.elementCreator({tag:"tosi-form"}),m9=c5,N9=d5;function p5(){return navigator.getGamepads().filter((l)=>l!==null).map((l)=>{let{id:s,axes:t,buttons:r}=l;return{id:s,axes:t,buttons:r.map((o,e)=>{let{pressed:h,value:a}=o;return{index:e,pressed:h,value:a}}).filter((o)=>o.pressed||o.value!==0).reduce((o,e)=>{return o[e.index]=e.value,o},{})}})}function X9(){let i=p5();return i.length===0?"no active gamepads":i.map(({id:l,axes:s,buttons:t})=>{let r=s.map((e)=>e.toFixed(2)).join(" "),o=Object.keys(t).map((e)=>`[${e}](${t[Number(e)].toFixed(2)})`).join(" ");return`${l}
90
+ `);this.setEditorValue(s,o)}else{let r=["js","html","css","test"].find((o)=>l.matches(`.language-${o}`));if(r)this.setEditorValue(r,r==="html"?l.innerHTML:l.innerText)}}}showDefaultTab(){if(!this.hydrated){this.pendingShowDefaultTab=!0;return}let{editors:i}=this.parts;if(this.js!=="")i.value=0;else if(this.html!=="")i.value=1;else if(this.css!=="")i.value=2;else if(this.test!=="")i.value=3}render(){if(super.render(),this.remoteId!==""){let i=localStorage.getItem(this.storageKey);if(i!==null){let l=JSON.parse(i);if(this.remoteKey!==l.remoteKey)return;if(this.css=l.css,this.html=l.html,this.js=l.js,l.test)this.test=l.test;this.parts.example.hidden=!0,this.parts.codeEditors.hidden=!1,this.classList.add("-maximize"),this.updateUndo()}}else this.refresh()}}var w0=_1.elementCreator({tag:"xin-example",styleSpec:T4}),M9=new URL(window.location.href).searchParams,t5=M9.get("lx");if(t5)document.title+=" [code editor]",document.body.textContent="",document.body.append(w0({remoteId:t5}));var{slot:r5}=C;class x2 extends w{static initAttributes={minSize:800,navSize:200,compact:!1,contentVisible:!1};value="normal";content=[r5({name:"nav",part:"nav"}),r5({part:"content"})];static styleSpec={":host":{display:"grid",gridTemplateColumns:`${p.navWidth("50%")} ${p.contentWidth("50%")}`,gridTemplateRows:"100%",position:"relative",margin:p.margin("0 0 0 -100%"),transition:p.sideNavTransition("0.25s ease-out")},":host slot":{position:"relative"},":host slot:not([name])":{display:"block"},':host slot[name="nav"]':{display:"block"}};onResize=()=>{let{content:i}=this.parts,l=this.offsetParent;if(l===null)return;let s=this.value;if(this.compact=l.offsetWidth<this.minSize,[...this.childNodes].find((r)=>r instanceof Element?r.getAttribute("slot")!=="nav":!0)===void 0)s="compact/nav",this.style.setProperty("--nav-width","100%"),this.style.setProperty("--content-width","0%");else if(!this.compact)s="normal",i.classList.add("-tosi-sidenav-visible"),this.style.setProperty("--nav-width",`${this.navSize}px`),this.style.setProperty("--content-width",`calc(100% - ${this.navSize}px)`),this.style.setProperty("--margin","0");else if(i.classList.remove("-tosi-sidenav-visible"),this.style.setProperty("--nav-width","50%"),this.style.setProperty("--content-width","50%"),this.contentVisible)s="compact/content",this.style.setProperty("--margin","0 0 0 -100%");else s="compact/nav",this.style.setProperty("--margin","0 -100% 0 0");if(this.value!==s)this.value=s};observer;connectedCallback(){super.connectedCallback(),this.contentVisible=this.parts.content.childNodes.length===0,globalThis.addEventListener("resize",this.onResize),this.observer=new MutationObserver(this.onResize),this.observer.observe(this,{childList:!0}),this.style.setProperty("--side-nav-transition","0s"),setTimeout(()=>{this.style.removeProperty("--side-nav-transition")},250)}disconnectedCallback(){super.disconnectedCallback(),this.observer.disconnect()}render(){super.render(),this.onResize()}}var B0=x2.elementCreator({tag:"tosi-sidenav"}),b9=B0;var{div:Ri,span:q2,a:V1,header:u9,button:o5,template:A9,input:P9,h2:H9}=C,y2={pass:p.testColorPass("#0a0"),fail:p.testColorFail("#c00"),running:p.testColorRunning("#fa0")},F9={"@keyframes test-pulse":{"0%, 100%":{opacity:"1"},"50%":{opacity:"0.7"}},"@keyframes test-appear":{from:{opacity:"0",transform:"scale(0.8)"},to:{opacity:"1",transform:"scale(1)"}},"@keyframes test-fade":{"0%, 20%":{opacity:"1",transform:"scale(1)"},"70%":{opacity:"1",transform:"scale(1.1)"},"100%":{opacity:"0",transform:"scale(0.9)",pointerEvents:"none"}},"body:not(.tests-enabled) .doc-link::after, body:not(.tests-enabled) .test-widget":{display:"none !important"},".doc-link.-test-passed::after, .doc-link.-test-failed::after":{content:"''",width:y.fontSize50,height:y.fontSize50,borderRadius:"50%",marginLeft:y.spacing50,display:"inline-block",verticalAlign:"middle"},".doc-link.-test-passed::after":{background:y2.pass},".doc-link.-test-failed::after":{background:y2.fail,animation:"test-pulse 2s ease-in-out infinite"},".test-widget":{_testBg:y2.running,position:"fixed",bottom:y.spacing,right:y.spacing,zIndex:"1000",background:y.testBg,color:"white",gap:y.spacing50},".test-widget[hidden]":{display:"none"},".test-widget.-running":{_testBg:y2.running,animation:"test-appear 0.3s ease-out, test-pulse 2s ease-in-out 0.3s infinite"},".test-widget.-passed":{_testBg:y2.pass,animation:"test-fade 3s ease-out forwards"},".test-widget.-failed":{_testBg:y2.fail,animation:"test-pulse 2s ease-in-out infinite"},".test-widget .count":{background:"white",color:y.testBg,borderRadius:"50%",width:y.lineHeight,height:y.lineHeight,display:"flex",alignItems:"center",justifyContent:"center",fontWeight:"bold"}};function j9(i){let{docs:l,context:s={},projectName:t="",projectLinks:r={},navSize:o=200,minSize:e=600}=i;for(let n of l)n.testStatus=void 0;let h=document.location.search!==""?document.location.search.substring(1).split("&")[0]:l[0]?.filename||"README.md",a=l.find((n)=>n.filename===h)||l[0],{app:x}=E({app:{docs:l,currentDoc:a,compact:!1}}),c={},d,g=!1,B=0,k=0;window.__docTestResults=new Promise((n)=>{d=n});let M=(n)=>{let f=c[n],H=x.docs.find((V)=>V.filename===n);if(H)H.testStatus=f?f.passed?"passed":"failed":void 0},A=()=>{if(k>=B&&d){let n={passed:0,failed:0,pages:c};for(let f of Object.values(c))n.passed+=f.totalPassed,n.failed+=f.totalFailed;if(d(n),d=void 0,P)fetch("/report",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(n)}).catch(()=>{})}},P=window.location.hostname==="localhost"||window.location.hostname==="127.0.0.1",b=(n)=>{let{results:f}=n.detail,H=String(x.currentDoc.filename);c[H]={passed:f.failed===0,tests:[...f.tests],totalPassed:f.passed,totalFailed:f.failed},M(H)},u=(n)=>{k++,A(),H0()};v1.docLink={toDOM(n,f){n.setAttribute("href",`?${f}`)}},v1.current={toDOM(n,f){let H=n.getAttribute("href")||"";n.classList.toggle("current",f===H.substring(1))}},v1.testStatus={toDOM(n,f){if(n.classList.remove("-test-passed","-test-failed"),f==="passed")n.classList.add("-test-passed");else if(f==="failed")n.classList.add("-test-failed")}};let _=W2(()=>{let n=R.value.toLocaleLowerCase();x.docs.forEach((f)=>{f.hidden=!f.title.toLocaleLowerCase().includes(n)&&!f.text.toLocaleLowerCase().includes(n)}),f1(x.docs)}),R=P9({slot:"nav",placeholder:"search",type:"search",style:{width:"calc(100% - 10px)",margin:"5px"},onInput:_});window.addEventListener("popstate",()=>{let n=window.location.search.substring(1);x.currentDoc=x.docs.find((f)=>f.filename===n)||x.docs[0]});let G=[o5({class:"iconic",style:{color:y.linkColor},title:"navigation",bind:{value:x.compact,binding:{toDOM(n,f){n.style.display=f?"":"none",n.nextSibling.style.display=f?"":"none"}}},onClick(){let n=document.querySelector(x2.tagName);n.contentVisible=!n.contentVisible}},v.menu()),q2({style:{flex:"0 0 10px"}})];if(t)G.push(V1({href:"/",style:{display:"flex",alignItems:"center",borderBottom:"none"}},r.tosijs?v.tosiUi({style:{_xinIconSize:40,marginRight:10}}):q2(),H9(t)));if(G.push(q2({class:"elastic"})),r.tosijs)G.push(V1({class:"iconic",title:"tosijs",target:"_blank"},v.tosi(),{href:r.tosijs}));if(r.discord)G.push(V1({class:"iconic",title:"discord",target:"_blank"},v.discord(),{href:r.discord}));if(r.blog)G.push(V1({class:"iconic",title:"blog",target:"_blank"},v.blog(),{href:r.blog}));if(r.github)G.push(V1({class:"iconic",title:"github",target:"_blank"},v.github(),{href:r.github}));if(r.npm)G.push(V1({class:"iconic",title:"npmjs",target:"_blank"},v.npm(),{href:r.npm}));let L=Ri({style:{display:"flex",flexDirection:"column",maxWidth:"100vw",height:"100vh",overflow:"hidden"}},u9(...G),B0({name:"Documentation",navSize:o,minSize:e,style:{flex:"1 1 auto",overflow:"hidden"},onChange(){let n=document.querySelector(x2.tagName);x.compact=n.compact}},R,Ri({slot:"nav",style:{display:"flex",flexDirection:"column",width:"100%",height:"calc(100% - 44px)",overflowY:"scroll"},bindList:{idPath:"filename",hiddenProp:"hidden",value:x.docs}},A9(V1({class:"doc-link",bindCurrent:"app.currentDoc.filename",bindDocLink:"^.filename",bindTestStatus:"^.testStatus",onClick(n){let f=n.target,H=K1(n.target),V=n.target.closest("xin-sidenav");V.contentVisible=!0;let{href:q}=f;window.history.pushState({href:q},"",q),x.currentDoc=H,n.preventDefault();let I=String(H.filename),Y=c[I];if(Y&&!Y.passed)setTimeout(()=>{let J=document.querySelector("xin-example.-test-failed");if(J)J.scrollIntoView({behavior:"smooth",block:"center"})},100)}},k1({bindText:"^.title"})))),Ri({style:{position:"relative",overflowY:"scroll",height:"100%"}},V1({class:"view-source",target:"_blank",style:{display:r.github?"flex":"none",alignItems:"center",gap:"6px",position:"fixed",top:"calc(var(--xin-header-height, 60px) + 5px)",right:"5px",fontSize:"0.875em",color:"var(--brand-color, inherit)",opacity:"0.7",borderBottom:"none",transition:"opacity 0.2s ease"},onMouseenter(n){n.target.style.opacity="0.9"},onMouseleave(n){n.target.style.opacity="0.7"},bind:{value:x.currentDoc,binding(n,f){if(r.github&&f.path&&f.path!=="README.md")n.href=`${r.github}/blob/main/${f.path}`,n.style.display="flex";else n.style.display="none"}}},v.github({style:{_xinIconSize:16}}),"View source on GitHub"),j2({style:{display:"block",maxWidth:"44em",margin:"auto",padding:"0 1em",overflow:"hidden"},bindValue:"app.currentDoc.text",didRender(){_1.insertExamples(this,s)}}))));Z1("test-indicators",F9);let X=o5({class:"test-widget",hidden:!0,onClick:_5},q2({part:"label"},"Tests"),q2({class:"count",part:"count"},"0"));L.appendChild(X);let J2=!1;function gl(){J2=!0,X.hidden=!1,X.classList.remove("-passed","-failed"),X.classList.add("-running"),Cl()}function Cl(){let n=X.querySelector('[part="label"]'),f=X.querySelector('[part="count"]'),H=Object.values(c).reduce((q,I)=>q+I.totalPassed,0),V=Object.values(c).reduce((q,I)=>q+I.totalFailed,0);if(n)if(J2)n.textContent="Running";else if(V>0)n.textContent="Failed";else if(H>0)n.textContent="Passed";else n.textContent="Tests";if(f)f.textContent=V>0?String(V):String(H)}function H0(){let n=Object.values(c).reduce((f,H)=>f+H.totalFailed,0);if(J2&&k>=B)if(J2=!1,X.classList.remove("-running"),n>0)X.classList.add("-failed"),X.classList.remove("-passed"),X.hidden=!1;else X.classList.add("-passed"),X.classList.remove("-failed"),X.hidden=!1;Cl()}function _5(){let n=Object.entries(c).filter(([,H])=>!H.passed),f=[];for(let[H,V]of n){let q=l.find((Y)=>Y.filename===H),I=V.tests.filter((Y)=>!Y.passed);for(let Y of I)f.push({caption:`${q?.title||H}: ${Y.name}`,action:()=>{let J=x.docs.find((W)=>String(W.filename)===H);if(J)window.history.pushState({href:`?${H}`},"",`?${H}`),x.currentDoc=J,setTimeout(()=>{let W=document.querySelector("xin-example.-test-failed");if(W)W.scrollIntoView({behavior:"smooth",block:"center"})},100)}})}if(f.length>0)f.push(null);f.push({icon:"copy",caption:"Copy test results to clipboard",action:()=>{let H=V5();navigator.clipboard.writeText(H)}}),K({target:X,menuItems:f})}function V5(){let n=["# Test Results",""],f=0,H=0;for(let[V,q]of Object.entries(c)){let Y=l.find((J)=>J.filename===V)?.title||V;if(f+=q.totalPassed,H+=q.totalFailed,q.tests.length>0){n.push(`## ${Y}`),n.push("");for(let J of q.tests){let W=J.passed?"✓":"✗",n1=J.error?`- ${W} ${J.name}: ${J.error}`:`- ${W} ${J.name}`;n.push(n1)}n.push("")}}return n.unshift(`**Summary: ${f} passed, ${H} failed**`,""),n.join(`
91
+ `)}L.addEventListener("testcomplete",(n)=>{b(n),H0()});let q5=async()=>{if(g)return;if(!T.enabled.value)return;g=!0;let n=l.filter((V)=>V.text.includes("```test"));if(B=n.length,B>0)gl();if(B===0){if(d)d({passed:0,failed:0,pages:{}}),d=void 0;return}let f=document.createElement("iframe");f.style.cssText="position: fixed; left: -9999px; width: 800px; height: 600px; visibility: hidden;",document.body.appendChild(f);let H=String(x.currentDoc.filename);for(let V of n){if(V.filename===H)continue;c[V.filename]={passed:!0,tests:[],totalPassed:0,totalFailed:0};let q=document.createElement("div"),I=j2({value:V.text,didRender(){_1.insertExamples(this,s)}});q.appendChild(I);let Y=(W)=>{let{results:n1}=W.detail,w1=c[V.filename];w1.tests.push(...n1.tests),w1.totalPassed+=n1.passed,w1.totalFailed+=n1.failed,w1.passed=w1.totalFailed===0,M(V.filename),H0()};q.addEventListener("testcomplete",Y);let J=f.contentDocument;if(J){J.body.innerHTML="",J.body.appendChild(q);let W=q.querySelectorAll("xin-example");if(W.length>0)await new Promise((n1)=>{let w1=W.length,O5=()=>{if(w1--,w1<=0)n1()};for(let U5 of W)U5.addEventListener("testcomplete",O5,{once:!0});setTimeout(n1,5000)})}u(V.filename)}if(f.remove(),n.some((V)=>V.filename===H)){let V=document.querySelectorAll("xin-example");if(V.length>0){let q=V.length,I=()=>{if(q--,q<=0)u(H)};for(let Y of V)Y.addEventListener("testcomplete",I,{once:!0});setTimeout(()=>{if(q>0)u(H)},1e4)}else u(H)}},vl=()=>{if(!T.enabled.value)return;if(P)setTimeout(q5,1000);else if(a.text.includes("```test"))B=1,gl(),setTimeout(()=>u(a.filename),2000);else if(d)d({passed:0,failed:0,pages:{}}),d=void 0};return vl(),T.enabled.observe(vl),L}var{div:t1,slot:_9}=C;class r1 extends w{static initAttributes={rotationSnap:0,positionSnap:0};static angleSize=15;static gridSize=8;static snapAngle=!1;static snapToGrid=!1;static styleSpec={":host":{"--handle-bg":"#fff4","--handle-color":"#2228","--handle-hover-bg":"#8ff8","--handle-hover-color":"#222","--handle-size":"20px","--handle-padding":"2px"},":host ::slotted(*)":{position:"absolute"},":host > :not(style,slot)":{boxSizing:"border-box",content:'" "',position:"absolute",display:"flex",height:y.handleSize,width:y.handleSize,padding:y.handlePadding,"--text-color":y.handleColor,background:y.handleBg},":host > .drag-size":{top:0,bottom:0,left:0,right:0,height:"auto",width:"auto",background:"transparent",cursor:"ew-resize"},':host > [part="rotate"]':{transform:`translateY(${y.handleSize_50})`},":host > [locked] > svg:first-child, :host > :not([locked]) > svg+svg":{display:"none"},":host .icon-unlock":{opacity:0.5},":host svg":{pointerEvents:"none"},":host > *:hover":{"--text-color":y.handleHoverColor,background:y.handleHoverBg}};static snappedCoords(i,l){let{gridSize:s}=r1;return r1.snapToGrid||i.shiftKey?l.map((t)=>Math.round(t/s)*s):l}static snappedAngle(i,l){let{angleSize:s}=r1;return r1.snapAngle||i.shiftKey?Math.round(l/s)*s:l}get locked(){let i=this.parentElement;if(i.style.inset)return{left:!0,top:!0,bottom:!0,right:!0};let l=i.style.right.match(/\d/)!==null,s=!l||i.style.left.match(/\d/)!==null,t=i.style.bottom.match(/\d/)!==null,r=!t||i.style.top.match(/\d/)!==null;return{left:s,top:r,bottom:t,right:l}}set locked(i){let{bottom:l,right:s}=i,{left:t,top:r}=i,o=this.parentElement,e=o.offsetLeft,h=o.offsetTop,a=o.offsetWidth,x=o.offsetHeight,c=o.offsetParent.offsetWidth-e-a,d=o.offsetParent.offsetHeight-h-x;if(Object.assign(o.style,{left:"",right:"",top:"",bottom:"",width:"",height:""}),!s)t=!0;if(!l)r=!0;if(t)o.style.left=e+"px";if(s)o.style.right=c+"px";if(t&&s)o.style.width="auto";else o.style.width=a+"px";if(r)o.style.top=h+"px";if(l)o.style.bottom=d+"px";if(r&&l)o.style.height="auto";else o.style.height=x+"px";this.queueRender()}get coords(){let{top:i,left:l,right:s,bottom:t}=this.parentElement.style;return{top:parseFloat(i),left:parseFloat(l),right:parseFloat(s),bottom:parseFloat(t)}}get left(){return this.parentElement.offsetLeft}get width(){return this.parentElement.offsetWidth}get right(){return this.parentElement.offsetParent.offsetWidth-(this.left+this.width)}get top(){return this.parentElement.offsetTop}get height(){return this.parentElement.offsetHeight}get bottom(){return this.parentElement.offsetParent.offsetHeight-(this.top+this.height)}triggerChange=()=>{this.parentElement.dispatchEvent(new Event("change",{bubbles:!0,composed:!0}))};adjustPosition=(i)=>{let{locked:l}=this;this.locked=l;let s=this.parentElement,{top:t,left:r,bottom:o,right:e}=this.coords;m(i,(h,a,x)=>{if([h,a]=r1.snappedCoords(x,[h,a]),!isNaN(t))s.style.top=t+a+"px";if(!isNaN(o))s.style.bottom=o-a+"px";if(!isNaN(r))s.style.left=r+h+"px";if(!isNaN(e))s.style.right=e-h+"px";if(x.type==="mouseup")return this.triggerChange(),!0})};resize=(i)=>{let l=this.parentElement,{locked:s}=this;this.locked=Object.assign({left:!0,top:!0,right:!0,bottom:!0});let[t,r]=[this.right,this.bottom];m(i,(o,e,h)=>{let a=t-o,x=r-e;if([a,x]=r1.snappedCoords(h,[a,x]),l.style.right=a+"px",l.style.bottom=x+"px",h.type==="mouseup")return this.locked=s,this.triggerChange(),!0})};adjustSize=(i)=>{let l=this.parentElement,{locked:s}=this,t=i.target.getAttribute("part");this.locked=Object.assign({left:!0,right:!0,top:!0,bottom:!0});let r=this[t];m(i,(o,e,h)=>{let[a]=r1.snappedCoords(h,[r+(["left","right"].includes(t)?o:e)*(["right","bottom"].includes(t)?-1:1)]);if(l.style[t]=a+"px",h.type==="mouseup")return this.locked=s,this.triggerChange(),!0})};get rect(){return this.parentElement.getBoundingClientRect()}get center(){let i=this.parentElement.getBoundingClientRect();return{x:i.x+i.width*0.5,y:i.y+i.height*0.5}}get element(){return this.parentElement}adjustRotation=(i)=>{let{center:l}=this,{transformOrigin:s}=this.element.style;if(!s)this.element.style.transformOrigin="50% 50%";m(i,(t,r,o)=>{let{clientX:e,clientY:h}=o,a=e-l.x,x=h-l.y,c=x>0?90:-90;if(a!==0)c=Math.atan2(x,a)*180/Math.PI;if(c=r1.snappedAngle(o,c),c===0)this.element.style.transformOrigin="",this.element.style.transform="";else this.element.style.transform=`rotate(${c}deg)`;return this.triggerChange(),o.type==="mouseup"})};toggleLock=(i)=>{let{locked:l}=this,s=i.target.title.split(" ")[1];l[s]=!l[s],this.locked=l,this.queueRender(),i.stopPropagation(),i.preventDefault()};content=()=>[t1({part:"move",style:{top:"50%",left:"50%",transform:"translate(-50%,-50%)"}},v.move()),t1({part:"left",title:"resize left",class:"drag-size",style:{left:"-6px",width:"8px"}}),t1({part:"right",title:"resize right",class:"drag-size",style:{left:"calc(100% - 2px)",width:"8px"}}),t1({part:"top",title:"resize top",class:"drag-size",style:{top:"-6px",height:"8px",cursor:"ns-resize"}}),t1({part:"bottom",title:"resize bottom",class:"drag-size",style:{top:"calc(100% - 2px)",height:"8px",cursor:"ns-resize"}}),t1({part:"resize",style:{top:"100%",left:"100%"}},v.resize()),t1({part:"rotate",style:{top:"50%",right:"0"}},v.refreshCw()),t1({part:"lockLeft",title:"lock left",style:{top:"50%",left:0,transform:"translate(-100%, -50%)"}},v.unlock(),v.lock()),t1({part:"lockRight",title:"lock right",style:{top:"50%",left:"100%",transform:"translate(0%, -50%)"}},v.unlock(),v.lock()),t1({part:"lockTop",title:"lock top",style:{top:0,left:"50%",transform:"translate(-50%, -100%)"}},v.unlock(),v.lock()),t1({part:"lockBottom",title:"lock bottom",style:{top:"100%",left:"50%",transform:"translate(-50%, 0%)"}},v.unlock(),v.lock()),_9()];connectedCallback(){super.connectedCallback();let{left:i,right:l,top:s,bottom:t,lockLeft:r,lockRight:o,lockTop:e,lockBottom:h,move:a,resize:x,rotate:c}=this.parts,d={passive:!0};[i,l,s,t].forEach((g)=>{g.addEventListener("mousedown",this.adjustSize,d),g.addEventListener("touchstart",this.adjustSize,d)}),[r,o,e,h].forEach((g)=>{g.addEventListener("click",this.toggleLock)}),x.addEventListener("mousedown",this.resize,d),a.addEventListener("mousedown",this.adjustPosition,d),c.addEventListener("mousedown",this.adjustRotation,d),x.addEventListener("touchstart",this.resize,d),a.addEventListener("touchstart",this.adjustPosition,d),c.addEventListener("touchstart",this.adjustRotation,d)}render(){if(super.render(),!this.parentElement)return;let{lockLeft:i,lockRight:l,lockTop:s,lockBottom:t}=this.parts,{left:r,right:o,top:e,bottom:h}=this.locked;i.toggleAttribute("locked",r),l.toggleAttribute("locked",o),s.toggleAttribute("locked",e),t.toggleAttribute("locked",h)}}var V9=r1.elementCreator({tag:"xin-editable"});var{div:q9,input:O9,button:Li,span:U9}=C,e5=(i)=>i,h5="null filter, everything matches",Ii={contains:{caption:"contains",negative:"does not contain",makeTest:(i)=>{return i=i.toLocaleLowerCase(),(l)=>String(l).toLocaleLowerCase().includes(i)}},hasTags:{caption:"has tags",makeTest:(i)=>{let l=i.split(/[\s,]/).map((s)=>s.trim().toLocaleLowerCase()).filter((s)=>s!=="");return(s)=>Array.isArray(s)&&l.find((t)=>!s.includes(t))===void 0}},doesNotHaveTags:{caption:"does not have tags",makeTest:(i)=>{let l=i.split(/[\s,]/).map((s)=>s.trim().toLocaleLowerCase()).filter((s)=>s!=="");return(s)=>Array.isArray(s)&&l.find((t)=>s.includes(t))===void 0}},equals:{caption:"=",negative:"≠",makeTest:(i)=>{if(isNaN(Number(i)))return i=String(i).toLocaleLowerCase(),(s)=>String(s).toLocaleLowerCase()===i;let l=Number(i);return(s)=>Number(s)===l}},after:{caption:"is after",negative:"is before",makeTest:(i)=>{let l=new Date(i);return(s)=>new Date(s)>l}},greaterThan:{caption:">",negative:"≤",makeTest:(i)=>{if(!isNaN(Number(i))){let l=Number(i);return(s)=>Number(s)>l}return i=i.toLocaleLowerCase(),(l)=>String(l).toLocaleLowerCase()>i}},truthy:{caption:"is true/non-empty/non-zero",negative:"is false/empty/zero",needsValue:!1,makeTest:()=>(i)=>!!i},isTrue:{caption:"= true",needsValue:!1,makeTest:()=>(i)=>i===!0},isFalse:{caption:"= false",needsValue:!1,makeTest:()=>(i)=>i===!1}},$9={description:"anything",test:()=>!0};function a5(i){return i.options[i.selectedIndex]?.caption||""}class Di extends w{static initAttributes={haystack:"*",condition:"contains",needle:""};fields=[];filters=Ii;content=()=>[d1({part:"haystack"}),d1({part:"condition"}),O9({part:"needle",type:"search"}),U9({part:"padding"}),Li({part:"remove",title:"delete"},v.trash())];filter=$9;get state(){let{haystack:i,needle:l,condition:s}=this.parts;return{haystack:i.value,needle:l.value,condition:s.value}}set state(i){Object.assign(this,i)}buildFilter=()=>{let{haystack:i,condition:l,needle:s}=this.parts,t=l.value.startsWith("~"),r=t?l.value.slice(1):l.value,o=this.filters[r];s.hidden=o.needsValue===!1;let e=o.needsValue===!1?o.makeTest(void 0):o.makeTest(s.value),h=i.value,a;if(h!=="*")a=t?(d)=>!e(d[h]):(d)=>e(d[h]);else a=t?(d)=>Object.values(d).find((g)=>!e(g))!==void 0:(d)=>Object.values(d).find((g)=>e(g))!==void 0;let x=o.needsValue!==!1?` "${s.value}"`:"",c=`${a5(i)} ${a5(l)}${x}`;this.filter={description:c,test:a},this.parentElement?.dispatchEvent(new Event("change"))};connectedCallback(){super.connectedCallback();let{haystack:i,condition:l,needle:s,remove:t}=this.parts;i.addEventListener("change",this.buildFilter),l.addEventListener("change",this.buildFilter),s.addEventListener("input",this.buildFilter),i.value=this.haystack,l.value=this.condition,s.value=this.needle,t.addEventListener("click",()=>{let{parentElement:r}=this;this.remove(),r?.dispatchEvent(new Event("change"))})}render(){super.render();let{haystack:i,condition:l,needle:s}=this.parts;if(i.options=[{caption:"any field",value:"*"},...this.fields.map((t)=>t.prop)],l.options=Object.keys(this.filters).map((t)=>{let r=this.filters[t];return r.negative!==void 0?[{caption:r.caption,value:t},{caption:r.negative,value:"~"+t}]:{caption:r.caption,value:t}}).flat(),this.haystack!=="")i.value=this.haystack;if(this.condition!=="")l.value=this.condition;if(this.needle!=="")s.value=this.needle;this.buildFilter()}}var z0=Di.elementCreator({tag:"xin-filter-part",styleSpec:{":host":{display:"flex"},":host .xin-icon:":{verticalAlign:"middle",pointerEvents:"none"},':host [part="haystack"], :host [part="condition"]':{flex:"1"},':host [part="needle"]':{flex:2},':host [hidden]+[part="padding"]':{display:"block",content:" ",flex:"1 1 auto"}}});class Si extends w{_fields=[];get fields(){return this._fields}set fields(i){this._fields=i,this.queueRender()}get state(){let{filterContainer:i}=this.parts;return[...i.children].map((l)=>l.state)}set state(i){let{fields:l,filters:s}=this,{filterContainer:t}=this.parts;t.textContent="";for(let r of i)t.append(z0({fields:l,filters:s,...r}))}filter=e5;description=h5;addFilter=()=>{let{fields:i,filters:l}=this,{filterContainer:s}=this.parts;s.append(z0({fields:i,filters:l}))};content=()=>[Li({part:"add",title:"add filter condition",onClick:this.addFilter,class:"round"},v.plus()),q9({part:"filterContainer"}),Li({part:"reset",title:"reset filter",onClick:this.reset},v.x())];filters=Ii;reset=()=>{let{fields:i,filters:l}=this,{filterContainer:s}=this.parts;this.description=h5,this.filter=e5,s.textContent="",s.append(z0({fields:i,filters:l})),this.dispatchEvent(new Event("change"))};buildFilter=()=>{let{filterContainer:i}=this.parts;if(i.children.length===0){this.reset();return}let l=[...i.children].map((t)=>t.filter),s=l.map((t)=>t.test);this.description=l.map((t)=>t.description).join(", "),this.filter=(t)=>t.filter((r)=>s.find((o)=>o(r)===!1)===void 0),this.dispatchEvent(new Event("change"))};connectedCallback(){super.connectedCallback();let{filterContainer:i}=this.parts;i.addEventListener("change",this.buildFilter),this.reset()}render(){super.render()}}var J9=Si.elementCreator({tag:"xin-filter",styleSpec:{":host":{height:"auto",display:"grid",gridTemplateColumns:"32px calc(100% - 64px) 32px",alignItems:"center"},':host [part="filterContainer"]':{display:"flex",flexDirection:"column",alignItems:"stretch",flex:"1 1 auto"},':host [part="haystack"]':{_fieldWidth:"100px"},':host [part="condition"]':{_fieldWidth:"60px"},':host [part="needle"]':{_fieldWidth:"80px"},':host [part="add"], :host [part="reset"]':{"--button-size":"var(--touch-size, 32px)",borderRadius:"999px",height:"var(--button-size)",lineHeight:"var(--button-size)",margin:"0",padding:"0",textAlign:"center",width:"var(--button-size)",flex:"0 0 var(--button-size)"}}});var{form:G9,slot:Ti,xinSlot:x5,label:Q9,input:Z9,span:K9}=C;function q1(i,l,s){if(s!==""&&s!==!1)i.setAttribute(l,s);else i.removeAttribute(l)}function N9(i){switch(i.type){case"checkbox":return i.checked;case"radio":{let l=i.parentElement?.querySelector(`input[type="radio"][name="${i.name}"]:checked`);return l?l.value:null}case"range":case"number":return Number(i.value);default:return Array.isArray(i.value)&&i.value.length===0?null:i.value}}function y5(i,l){if(!(i instanceof HTMLElement));else if(i instanceof HTMLInputElement)switch(i.type){case"checkbox":i.checked=l;break;case"radio":i.checked=l===i.value;break;default:i.value=String(l||"")}else if(l!=null||i.value!=null)i.value=String(l||"")}class f0 extends w{static initAttributes={caption:"",key:"",type:"",optional:!1,pattern:"",placeholder:"",min:"",max:"",step:"",fixedPrecision:-1,prefix:"",suffix:""};value=null;content=Q9(x5({part:"caption"}),K9({part:"field"},x5({part:"input",name:"input"}),Z9({part:"valueHolder"})));valueChanged=!1;handleChange=()=>{let{input:i,valueHolder:l}=this.parts,s=i.children[0]||l;if(s!==l)l.value=s.value;this.value=N9(s),this.valueChanged=!0;let t=this.closest("tosi-form");if(t&&this.key!=="")switch(this.type){case"checkbox":t.fields[this.key]=s.checked;break;case"number":case"range":if(this.fixedPrecision>-1)s.value=Number(s.value).toFixed(this.fixedPrecision),t.fields[this.key]=Number(s.value);else t.fields[this.key]=Number(s.value);break;default:t.fields[this.key]=s.value}};connectedCallback(){super.connectedCallback();let{input:i,valueHolder:l}=this.parts;l.addEventListener("change",this.handleChange),i.addEventListener("change",this.handleChange,!0)}render(){if(this.valueChanged){this.valueChanged=!1;return}let{input:i,caption:l,valueHolder:s,field:t}=this.parts;if(l.textContent?.trim()==="")l.append(this.caption!==""?this.caption:this.key);if(this.type==="text"){i.textContent="";let r=C.textarea({value:this.value});if(this.placeholder)r.setAttribute("placeholder",this.placeholder);i.append(r)}else if(this.type==="color")i.textContent="",i.append(di({value:this.value}));else if(i.children.length===0){if(q1(s,"placeholder",this.placeholder),q1(s,"type",this.type),q1(s,"pattern",this.pattern),q1(s,"min",this.min),q1(s,"max",this.max),this.step)q1(s,"step",this.step);else if(this.fixedPrecision>0&&this.type==="number")q1(s,"step",Math.pow(10,-this.fixedPrecision))}if(y5(s,this.value),y5(i.children[0],this.value),this.prefix?t.setAttribute("prefix",this.prefix):t.removeAttribute("prefix"),this.suffix?t.setAttribute("suffix",this.suffix):t.removeAttribute("suffix"),s.classList.toggle("hidden",i.children.length>0),i.children.length>0)s.setAttribute("tabindex","-1");else s.removeAttribute("tabindex");i.style.display=i.children.length===0?"none":"",q1(s,"required",!this.optional)}}class M0 extends w{context={};value={};get isValid(){return[...this.querySelectorAll("*")].filter((l)=>l.required!==void 0).find((l)=>!l.reportValidity())===void 0}static styleSpec={":host":{display:"flex",flexDirection:"column"},":host::part(header), :host::part(footer)":{display:"flex"},":host::part(content)":{display:"flex",flexDirection:"column",overflow:"hidden auto",height:"100%",width:"100%",position:"relative",boxSizing:"border-box"},":host form":{display:"flex",flex:"1 1 auto",position:"relative",overflow:"hidden"}};content=[Ti({part:"header",name:"header"}),G9({part:"form"},Ti({part:"content"})),Ti({part:"footer",name:"footer"})];getField=(i)=>{return this.querySelector(`tosi-field[key="${i}"]`)};get fields(){if(typeof this.value==="string")try{this.value=JSON.parse(this.value)}catch(s){console.log("<tosi-form> could not use its value, expects valid JSON"),this.value={}}let{getField:i}=this,l=this.dispatchEvent.bind(this);return new Proxy(this.value,{get(s,t){return s[t]},set(s,t,r){if(s[t]!==r){s[t]=r;let o=i(t);if(o)o.value=r;l(new Event("change"))}return!0}})}set fields(i){let l=[...this.querySelectorAll("tosi-field")];for(let s of l)s.value=i[s.key]}submit=()=>{this.parts.form.dispatchEvent(new Event("submit"))};handleSubmit=(i)=>{i.preventDefault(),i.stopPropagation();let l=this.fields;this.submitCallback(l,this.isValid)};submitCallback=(i,l)=>{console.log("override submitCallback to handle this data",{value:i,isValid:l})};connectedCallback(){super.connectedCallback();let{form:i}=this.parts;i.addEventListener("submit",this.handleSubmit),this.addEventListener("change",this.handleElementChange,!0),this.initializeNamedElements()}handleElementChange=(i)=>{let l=i.target,s=l.getAttribute("name");if(s&&"value"in l)this.fields[s]=l.value};initializeNamedElements(){let i=this.fields,l=this.querySelectorAll("[name], [key]");for(let s of l){let t=s.getAttribute("name")||s.getAttribute("key");if(t&&i[t]!==void 0)s.value=i[t]}}}var X9=f0,Y9=M0,W9={':host [part="field"]':{position:"relative",display:"flex",alignItems:"center",gap:p.prefixSuffixGap("8px")},':host [part="field"][prefix]::before':{content:"attr(prefix)"},':host [part="field"][suffix]::after':{content:"attr(suffix)"},':host [part="field"] > *, :host [part="input"] > *':{width:"100%"},":host textarea":{resize:"none"},':host input[type="checkbox"]':{width:"fit-content"},":host .hidden":{position:"absolute",pointerEvents:"none",opacity:0}},c5=f0.elementCreator({tag:"tosi-field",styleSpec:W9}),d5=M0.elementCreator({tag:"tosi-form"}),m9=c5,R9=d5;function p5(){return navigator.getGamepads().filter((l)=>l!==null).map((l)=>{let{id:s,axes:t,buttons:r}=l;return{id:s,axes:t,buttons:r.map((o,e)=>{let{pressed:h,value:a}=o;return{index:e,pressed:h,value:a}}).filter((o)=>o.pressed||o.value!==0).reduce((o,e)=>{return o[e.index]=e.value,o},{})}})}function L9(){let i=p5();return i.length===0?"no active gamepads":i.map(({id:l,axes:s,buttons:t})=>{let r=s.map((e)=>e.toFixed(2)).join(" "),o=Object.keys(t).map((e)=>`[${e}](${t[Number(e)].toFixed(2)})`).join(" ");return`${l}
92
92
  ${r}
93
93
  ${o}`}).join(`
94
- `)}function Y9(i){let l={};return i.input.onControllerAddedObservable.add((s)=>{s.onMotionControllerInitObservable.add((t)=>{let r={};t.getComponentIds().forEach((e)=>{let h=t.getComponent(e);if(r[e]={pressed:h.pressed},h.onButtonStateChangedObservable.add(()=>{r[e].pressed=h.pressed}),h.onAxisValueChangedObservable)r[e].axes=[],h.onAxisValueChangedObservable.add((a)=>{r[e].axes=a})}),l[t.handedness]=r})}),l}function W9(i){if(i===void 0||Object.keys(i).length===0)return"no xr inputs";return Object.keys(i).map((l)=>{let s=i[l],t=Object.keys(s).filter((r)=>s[r].pressed).join(" ");return`${l}
94
+ `)}function I9(i){let l={};return i.input.onControllerAddedObservable.add((s)=>{s.onMotionControllerInitObservable.add((t)=>{let r={};t.getComponentIds().forEach((e)=>{let h=t.getComponent(e);if(r[e]={pressed:h.pressed},h.onButtonStateChangedObservable.add(()=>{r[e].pressed=h.pressed}),h.onAxisValueChangedObservable)r[e].axes=[],h.onAxisValueChangedObservable.add((a)=>{r[e].axes=a})}),l[t.handedness]=r})}),l}function D9(i){if(i===void 0||Object.keys(i).length===0)return"no xr inputs";return Object.keys(i).map((l)=>{let s=i[l],t=Object.keys(s).filter((r)=>s[r].pressed).join(" ");return`${l}
95
95
  ${t}`}).join(`
96
- `)}var{div:R9}=C;class R1 extends w{static formAssociated=!0;static initAttributes={coords:"65.01715565258993,25.48081004203459,12",token:"",mapStyle:"mapbox://styles/mapbox/streets-v12",name:""};value="";formDisabledCallback(i){}formResetCallback(){this.value="",this.coords="65.01715565258993,25.48081004203459,12"}content=R9({style:{width:"100%",height:"100%"}});get map(){return this._map}static mapboxCSSAvailable;static mapboxAvailable;_map;static styleSpec={":host":{display:"inline-block",position:"relative",width:"400px",height:"400px",textAlign:"left"}};constructor(){super();if(R1.mapboxCSSAvailable===void 0)R1.mapboxCSSAvailable=D2("https://api.mapbox.com/mapbox-gl-js/v3.15.0/mapbox-gl.css").catch((i)=>{console.error("failed to load mapbox-gl.css",i)}),R1.mapboxAvailable=L("https://api.mapbox.com/mapbox-gl-js/v3.15.0/mapbox-gl.js").catch((i)=>{console.error("failed to load mapbox-gl.js",i)})}connectedCallback(){if(super.connectedCallback(),!this.token)console.error("mapbox requires an access token which you can provide via the token attribute")}_lastCoords="";_lastStyle="";render(){if(super.render(),!this.token)return;if(this._map){if(this.coords!==this._lastCoords){let[r,o,e]=this.coords.split(",").map((h)=>Number(h));this._map.setCenter([o,r]),this._map.setZoom(e),this._lastCoords=this.coords}if(this.mapStyle!==this._lastStyle)this._map.setStyle(this.mapStyle),this._lastStyle=this.mapStyle;return}let{div:i}=this.parts,[l,s,t]=this.coords.split(",").map((r)=>Number(r));this._lastCoords=this.coords,this._lastStyle=this.mapStyle,R1.mapboxAvailable.then(({mapboxgl:r})=>{console.log("%cmapbox may complain about missing css -- don't panic!","background: orange; color: black; padding: 0 5px;"),r.accessToken=this.token,this._map=new r.Map({container:i,style:this.mapStyle,zoom:t,center:[s,l]}),this._map.on("render",()=>this._map.resize()),this._map.on("moveend",()=>{let o=this._map.getCenter(),e=this._map.getZoom(),h=`${o.lat.toFixed(6)},${o.lng.toFixed(6)},${e.toFixed(1)}`;if(h!==this.value){if(this.internals)this.internals.setFormValue(h)}})})}}var L9=R1.elementCreator({tag:"xin-map"});var{div:Ei,span:b0,button:il}=C,O2=86400000,I9=[0,1,2,3,4,5,6],D9=[1,2,3,4,5,6,7,8,9,10,11,12],ll=(i,l=2,s="0")=>String(i).padStart(l,s),U2=(i,l,s)=>new Date(`${i}-${ll(l)}-${ll(s)}`);class sl extends w{static formAssociated=!0;static initAttributes={month:NaN,year:NaN,weekStart:0,minDate:U2(new Date().getFullYear()-100,1,1).toISOString().split("T")[0],maxDate:U2(new Date().getFullYear()+10,12,31).toISOString().split("T")[0],selectable:!1,multiple:!1,range:!1,disabled:!1,readonly:!1,required:!1,name:""};selectedDays=[];value="";formDisabledCallback(i){this.disabled=i}formResetCallback(){this.value="",this.selectedDays=[]}get endDay(){return 1-this.weekStart}get months(){return D9.map((i)=>({caption:U2(2025,i,1).toString().split(" ")[1],value:String(i)}))}get years(){let i=Number(this.minDate.split("-")[0]),l=Number(this.maxDate.split("-")[0]),s=[];for(let t=i;t<=l;t++)s.push(String(t));return s}monthChanged=(i,l)=>{};gotoMonth(i,l){if(this.month!==l||this.year!==i)this.month=l,this.year=i,this.monthChanged(i,l)}setMonth=()=>{this.gotoMonth(Number(this.parts.year.value),Number(this.parts.month.value))};get to(){return this.selectedDays[1]||""}set to(i){this.selectedDays[1]=i,this.selectedDays.splice(2)}get from(){return this.selectedDays[0]||""}set from(i){this.selectedDays[0]=i,this.selectedDays.splice(2)}clickDate=(i)=>{let l=i.target.getAttribute("title");this.selectDate(l)};keyDate=(i)=>{let l=!1;switch(i.code){case"Space":{let s=i.target.getAttribute("title");this.selectDate(s),l=!0;break}case"Tab":break;default:console.log(i)}if(l)i.preventDefault(),i.stopPropagation()};#i="";selectDate=(i)=>{if(this.#i=i,this.range){if(!this.to)this.selectedDays=[i,i];else if(this.from===i&&this.to===i)this.selectedDays=[];else if(this.from===i)this.from=this.to;else if(this.to===i)this.to=this.from;else if(i<this.from)this.from=i;else if(i>this.to)this.to=i;else this.to=i;this.value=`${this.from},${this.to}`}else if(this.multiple){if(this.selectedDays.includes(i))this.selectedDays.splice(this.selectedDays.indexOf(i),1);else this.selectedDays.push(i),this.selectedDays.sort();this.value=this.selectedDays.join(",")}else if(this.selectable)if(this.selectedDays.includes(i))this.value="",this.selectedDays=[];else this.value=i,this.selectedDays=[i]};nextMonth=()=>{if(this.month<12)this.gotoMonth(this.year,this.month+1);else this.gotoMonth(this.year+1,1)};previousMonth=()=>{if(this.month>1)this.gotoMonth(this.year,this.month-1);else this.gotoMonth(this.year-1,12)};checkDay=(i)=>{if(!this.range)return this.selectedDays.includes(i);else if(this.range)return this.from&&i>=this.from&&i<=this.to;return!1};dateMenuItem=(i,l="")=>{return i=i.split("T")[0],{caption:l||i,enabled:()=>!i.startsWith(`${this.year}-${ll(this.month)}-`),action:()=>{this.gotoDate(i)}}};jumpMenu=()=>{K({target:this.parts.jump,menuItems:[this.dateMenuItem(new Date().toISOString(),"This Month"),...this.selectedDays.length===0?[]:[null],...this.selectedDays.map((i)=>this.dateMenuItem(i))]})};content=()=>[Ei({part:"header"},il({part:"previous",onClick:this.previousMonth},v.chevronLeft()),b0({style:{flex:"1"}}),il({part:"jump",onClick:this.jumpMenu},v.calendar()),d1({part:"month",options:this.months,onChange:this.setMonth}),d1({part:"year",options:[this.year],onChange:this.setMonth}),b0({style:{flex:"1"}}),il({part:"next",onClick:this.nextMonth},v.chevronRight())),Ei({part:"week"}),Ei({part:"days"})];gotoDate(i){let l=new Date(i);this.gotoMonth(l.getFullYear(),l.getMonth()+1)}connectedCallback(){super.connectedCallback();let i=new Date(this.value.split(",").pop()||Date.now());if(isNaN(this.month))this.month=i.getMonth()+1;if(isNaN(this.year))this.year=i.getFullYear()}days=[];render(){super.render();let{week:i,days:l,jump:s,month:t,year:r,previous:o,next:e}=this.parts;this.selectedDays=this.value?this.value.split(","):[];let h=U2(this.year,this.month,1),a=new Date(h.valueOf()-(7+h.getDay()-this.weekStart)%7*O2),x=this.month===12?1:this.month+1,c=new Date(U2(this.year+(this.month===12?1:0),x,1).valueOf()-O2),d=new Date(c.valueOf()+(this.weekStart*2+5+this.endDay-c.getDay())%7*O2),g=I9.map((P)=>new Date(a.valueOf()+P*O2).toString().split(" ")[0]);this.days=[];let B=new Date().toISOString().split("T")[0];for(let P=a.valueOf();P<=d.valueOf();P+=O2){let b=new Date(P),u=b.toISOString().split("T")[0];this.days.push({date:b,selected:!1,inMonth:b.getMonth()+1===this.month,isToday:u===B,isWeekend:b.getDay()%6===0,inRange:!!(this.from&&u>=this.from&&u<=this.to)})}t.value=String(this.month),r.value=String(this.year),t.disabled=r.disabled=s.disabled=o.disabled=e.disabled=this.disabled||this.readonly,r.options=this.years,i.textContent="",i.append(...g.map((P)=>b0({class:"day"},P))),l.textContent="";let k=null,{to:M,from:A}=this;l.append(...this.days.map((P)=>{let b=["date"];if(P.inMonth)b.push("in-month");if(P.isToday)b.push("today");let u=P.date.toISOString().split("T")[0];if(this.checkDay(u))b.push("checked");if(b.push(P.isWeekend?"weekend":"weekday"),this.range){if(M===u)b.push("range-end");if(A===u)b.push("range-start")}let _=b0({class:b.join(" "),title:u,onClick:this.clickDate,onKeydown:this.keyDate,tabindex:"0"},P.date.getDate());if(u===this.#i)k=_;return _})),k?.focus()}}var T9=sl.elementCreator({tag:"tosi-month",styleSpec:{":host":{display:"block"},":host [part=header]":{display:"flex",alignItems:"stretch",justifyContent:"stretch"},":host[disabled]":{pointerEvents:"none",opacity:p.disabledOpacity(0.6)},':host [part="month"], :host [part="year"]':{_fieldWidth:"4em",flex:"1"},":host [part=week], :host [part=days]":{display:"grid",gridTemplateColumns:"auto auto auto auto auto auto auto",justifyItems:"stretch"},":host .today":{background:p.monthTodayBackground("transparent"),boxShadow:p.monthTodayShadow("none"),backdropFilter:p.monthTodayBackdropFilter("brightness(0.9)"),fontWeight:p.monthTodayFontWeight("800")},":host .day, :host .date":{padding:5,display:"flex",justifyContent:"center",userSelect:"none"},":host .day":{color:p.monthDayColor("hotpink"),background:p.monthDayBackground("white"),fontWeight:p.monthDayFontWeight("800")},":host .date":{cursor:"default"},":host .weekend":{background:p.monthWeekendBackground("#eee")},":host .date:not(.in-month)":{opacity:0.5},":host .date.checked":{color:p.monthDateCheckedColor("white"),background:p.monthDateCheckedBackground("hotpink")},":host:not([range]) .date.checked":{borderRadius:p.monthDateCheckedBorderRadius("10px")},":host .range-start":{borderTopLeftRadius:p.monthDateCheckedBorderRadius("10px"),borderBottomLeftRadius:p.monthDateCheckedBorderRadius("10px")},":host .range-end":{borderTopRightRadius:p.monthDateCheckedBorderRadius("10px"),borderBottomRightRadius:p.monthDateCheckedBorderRadius("10px")}}});var{div:tl,button:S9}=C,E9={error:"red",warn:"orange",info:"royalblue",log:"gray",success:"green",progress:"royalblue"};class L1 extends w{static singleton;static styleSpec={":host":{_notificationSpacing:8,_notificationWidth:360,_notificationPadding:`${y.notificationSpacing} ${y.notificationSpacing50} ${y.notificationSpacing} ${y.notificationSpacing200}`,_notificationBg:"#fafafa",_notificationAccentColor:"#aaa",_notificationTextColor:"#444",_notificationIconSize:y.notificationSpacing300,_notificationButtonSize:48,_notificationBorderWidth:"3px 0 0",_notificationBorderRadius:y.notificationSpacing50,position:"fixed",left:0,right:0,bottom:0,paddingBottom:y.notificationSpacing,width:y.notificationWidth,display:"flex",flexDirection:"column-reverse",margin:"0 auto",gap:y.notificationSpacing,maxHeight:"50vh",overflow:"hidden auto",boxShadow:"none !important"},":host *":{color:y.notificationTextColor},":host .note":{display:"grid",background:y.notificationBg,padding:y.notificationPadding,gridTemplateColumns:`${y.notificationIconSize} 1fr ${y.notificationButtonSize}`,gap:y.notificationSpacing,alignItems:"center",borderRadius:y.notificationBorderRadius,boxShadow:`0 2px 8px #0006, inset 0 0 0 2px ${y.notificationAccentColor}`,borderColor:y.notificationAccentColor,borderWidth:y.notificationBorderWidth,borderStyle:"solid",transition:"0.5s ease-in",transitionProperty:"margin, opacity",zIndex:1},":host .note .icon":{stroke:y.notificationAccentColor},":host .note button":{display:"flex",lineHeight:y.notificationButtonSize,padding:0,margin:0,height:y.notificationButtonSize,width:y.notificationButtonSize,background:"transparent",alignItems:"center",justifyContent:"center",boxShadow:"none",border:"none",position:"relative"},":host .note button:hover svg":{stroke:y.notificationAccentColor},":host .note button:active svg":{borderRadius:99,stroke:y.notificationBg,background:y.notificationAccentColor,padding:y.spacing50},":host .note svg":{height:y.notificationIconSize,width:y.notificationIconSize,pointerEvents:"none"},":host .message":{display:"flex",flexDirection:"column",alignItems:"center",gap:y.notificationSpacing},":host .note.closing":{opacity:0,zIndex:0}};static removeNote(i){i.classList.add("closing"),i.style.marginBottom=-i.offsetHeight+"px";let l=()=>{i.remove()};i.addEventListener("transitionend",l),setTimeout(l,1000)}static post(i){let{message:l,duration:s,type:t,close:r,progress:o,icon:e,color:h}=Object.assign({type:"info",duration:-1},typeof i==="string"?{message:i}:i);if(!this.singleton)this.singleton=g5();let a=this.singleton;document.body.append(a),a.style.zIndex=String(K1()+1);let x=h||E9[t],c=o||t==="progress"?C.progress():{},d=()=>{if(r)r();L1.removeNote(k)},g=e instanceof SVGElement?e:e?v[e]({class:"icon"}):v.info({class:"icon"}),B=t==="error"||t==="warn",k=tl({class:`note ${t}`,role:B?"alert":"status",ariaLive:B?"assertive":"polite",style:{_notificationAccentColor:x}},g,tl({class:"message"},tl(l),c),S9({class:"close",title:"close",ariaLabel:"Close notification",apply(M){M.addEventListener("click",d)}},v.x()));if(a.shadowRoot.append(k),c instanceof HTMLProgressElement&&o instanceof Function){c.setAttribute("max",String(100)),c.value=o();let M=setInterval(()=>{if(!a.shadowRoot.contains(k)){clearInterval(M);return}let A=o();if(c.value=A,A>=100)L1.removeNote(k)},1000)}if(s>0)setTimeout(()=>{L1.removeNote(k)},s*1000);return k.scrollIntoView(),d}content=null}var g5=L1.elementCreator({tag:"xin-notification"});function it(i){return L1.post(i)}var C5=async(i,l="SHA-1")=>{let t=new TextEncoder().encode(i),r=await crypto.subtle.digest(l,t);return Array.from(new Uint8Array(r)).map((h)=>h.toString(16).padStart(2,"0")).join("")},v5=async(i)=>{let l=await C5(i),s=await fetch(`https://weakpass.com/api/v1/search/${l}`);if(s.ok){let t=await s.json();console.log("password found in weakpass database",t)}return s.status!==404},{span:rl,xinSlot:lt}=C;class ol extends w{static initAttributes={minLength:8,goodLength:12,indicatorColors:"#f00,#f40,#f80,#ef0,#8f0,#0a2"};descriptionColors="#000,#000,#000,#000,#000,#fff";issues={tooShort:!0,short:!0,noUpper:!0,noLower:!0,noNumber:!0,noSpecial:!0};issueDescriptions={tooShort:"too short",short:"short",noUpper:"no upper case",noLower:"no lower case",noNumber:"no digits",noSpecial:"no unusual characters"};value=0;strengthDescriptions=["unacceptable","very weak","weak","moderate","strong","very strong"];strength(i){return this.issues={tooShort:i.length<this.minLength,short:i.length<this.goodLength,noUpper:!i.match(/[A-Z]/),noLower:!i.match(/[a-z]/),noNumber:!i.match(/[0-9]/),noSpecial:!i.match(/[^a-zA-Z0-9]/)},this.issues.tooShort?0:Object.values(this.issues).filter((l)=>!l).length-1}async isBreached(){let i=this.querySelector("input")?.value;if(!i||typeof i!=="string")return!0;return await v5(i)}updateIndicator=(i)=>{let{level:l,description:s}=this.parts,t=this.indicatorColors.split(","),r=this.descriptionColors.split(","),o=this.strength(i);if(this.value!==o)this.value=o,this.dispatchEvent(new Event("change"));l.style.width=`${(o+1)*16.67}%`,this.style.setProperty("--indicator-color",t[o]),this.style.setProperty("--description-color",r[o]),s.textContent=this.strengthDescriptions[o]};update=(i)=>{let l=i.target.closest("input");this.updateIndicator(l?.value||"")};content=()=>[lt({onInput:this.update}),rl({part:"meter"},rl({part:"level"}),rl({part:"description"}))];render(){super.render();let i=this.querySelector("input");this.updateIndicator(i?.value)}}var st=ol.elementCreator({tag:"xin-password-strength",styleSpec:{":host":{display:"inline-flex",flexDirection:"column",gap:y.spacing50,position:"relative"},":host xin-slot":{display:"flex"},':host [part="meter"]':{display:"block",position:"relative",height:p.meterHeight("24px"),background:p.indicatorBg("white"),borderRadius:p.meterRadius("4px"),boxShadow:p.meterShadow(`inset 0 0 0 2px ${y.indicatorColor}`)},':host [part="level"]':{height:p.levelHeight("20px"),content:'" "',display:"inline-block",width:0,transition:"0.15s ease-out",background:y.indicatorColor,margin:p.levelMargin("2px"),borderRadius:p.levelRadius("2px")},':host [part="description"]':{position:"absolute",inset:"0",color:y.descriptionColor,height:p.meterHeight("24px"),lineHeight:p.meterHeight("24px"),textAlign:"center"}}});var{span:el}=C;class u0 extends w{static formAssociated=!0;static initAttributes={max:5,min:1,icon:"star",step:1,ratingStroke:"#e81",ratingFill:"#f91",emptyStroke:"none",emptyFill:"#ccc",readonly:!1,iconSize:24,hollow:!1,required:!1,name:""};value="";formDisabledCallback(i){this.readonly=i}formResetCallback(){this.value=""}static styleSpec={":host":{display:"inline-block",position:"relative",width:"fit-content"},":host::part(container)":{position:"relative",display:"inline-block"},":host::part(empty), :host::part(filled)":{height:"100%",whiteSpace:"nowrap",overflow:"hidden"},":host::part(empty)":{pointerEvents:"none"},":host::part(filled)":{position:"absolute",left:0,transition:"width 0.15s ease-out"},":host svg":{transform:"scale(0.9)",pointerEvents:"all !important",transition:"0.25s ease-in-out"},":host svg:hover":{transform:"scale(1)"},":host svg:active":{transform:"scale(1.1)"}};content=()=>el({part:"container"},el({part:"empty"}),el({part:"filled"}));displayValue(i){let{empty:l,filled:s}=this.parts,r=Math.round((typeof i==="string"?0:i||0)/this.step)*this.step;s.style.width=r/this.max*l.offsetWidth+"px"}update=(i)=>{if(this.readonly)return;let{empty:l}=this.parts,s=i instanceof MouseEvent?i.pageX-l.getBoundingClientRect().x:0,t=Math.min(Math.max(this.min,Math.round(s/l.offsetWidth*this.max/this.step+this.step*0.5)*this.step),this.max);if(i.type==="click")this.value=t;else if(i.type==="mousemove")this.displayValue(t);else this.displayValue(this.value||0)};handleKey=(i)=>{let l=this.value===""?NaN:Number(this.value);if(isNaN(l))l=Math.round((this.min+this.max)*0.5*this.step)*this.step;let s=!1;switch(i.key){case"ArrowUp":case"ArrowRight":l+=this.step,s=!0;break;case"ArrowDown":case"ArrowLeft":l-=this.step,s=!0;break}if(this.value=Math.max(Math.min(l,this.max),this.min),s)i.stopPropagation(),i.preventDefault()};connectedCallback(){super.connectedCallback();let{container:i}=this.parts;i.tabIndex=0,i.addEventListener("mousemove",this.update,!0),i.addEventListener("mouseleave",this.update),i.addEventListener("blur",this.update),i.addEventListener("click",this.update),i.addEventListener("keydown",this.handleKey)}_renderedIcon="";render(){super.render();let i=this.iconSize+"px";if(this.style.setProperty("--tosi-icon-size",i),this.readonly)this.role="image";else this.role="slider";this.ariaLabel=`rating ${this.value} out of ${this.max}`,this.ariaValueMax=String(this.max),this.ariaValueMin=String(this.min),this.ariaValueNow=this.value===""?String(-1):String(this.value);let{empty:l,filled:s}=this.parts;if(l.classList.toggle("hollow",this.hollow),l.style.setProperty("--tosi-icon-fill",this.emptyFill),l.style.setProperty("--tosi-icon-stroke",this.emptyStroke),s.style.setProperty("--tosi-icon-fill",this.ratingFill),s.style.setProperty("--tosi-icon-stroke",this.ratingStroke),this._renderedIcon!==this.icon){this._renderedIcon=this.icon;for(let t=0;t<this.max;t++)l.append(v[this.icon]()),s.append(v[this.icon]())}this.displayValue(this.value)}}var tt=u0,k5=u0.elementCreator({tag:"tosi-rating"}),rt=Q((...i)=>k5(...i),"xinRating is deprecated, use tosiRating instead (tag is now <tosi-rating>)");var{xinSlot:n5,div:ot,button:et,span:w5}=C,ht=[{caption:"Title",tagType:"H1"},{caption:"Heading",tagType:"H2"},{caption:"Subheading",tagType:"H3"},{caption:"Minor heading",tagType:"H4"},{caption:"Body",tagType:"P"},{caption:"Code Block",tagType:"PRE"}];function hl(i=ht){return d1({title:"paragraph style",slot:"toolbar",class:"block-style",options:i.map(({caption:l,tagType:s})=>({caption:l,value:`formatBlock,${s}`}))})}function x2(i="10px"){return w5({slot:"toolbar",style:{flex:`0 0 ${i}`,content:" "}})}function at(i="10px"){return w5({slot:"toolbar",style:{flex:`0 0 ${i}`,content:" "}})}function r1(i,l,s){return et({slot:"toolbar",dataCommand:l,title:i},s)}var xt=()=>[r1("left-justify","justifyLeft",v.alignLeft()),r1("center","justifyCenter",v.alignCenter()),r1("right-justify","justifyRight",v.alignRight()),x2(),r1("bullet list","insertUnorderedList",v.listBullet()),r1("numbered list","insertOrderedList",v.listNumber()),x2(),r1("indent","indent",v.indent()),r1("indent","outdent",v.outdent())],B5=()=>[r1("bold","bold",v.fontBold()),r1("italic","italic",v.fontItalic()),r1("underline","underline",v.fontUnderline())],yt=()=>[hl(),x2(),...B5()],z5=()=>[hl(),x2(),...xt(),x2(),...B5()];class A0 extends w{static formAssociated=!0;static initAttributes={widgets:"default",name:"",required:!1};isInitialized=!1;savedValue="";formDisabledCallback(i){if(this.isInitialized)this.parts.doc.contentEditable=i?"false":"true"}formResetCallback(){this.value=""}_value="";get value(){return this.isInitialized?this.parts.doc.innerHTML:this._value}set value(i){let l=this._value;if(this._value=i,this.isInitialized){if(this.parts.doc.innerHTML!==i)this.parts.doc.innerHTML=i}if(l!==i&&this.internals)this.internals.setFormValue(i)}blockElement(i){let{doc:l}=this.parts;while(i.parentElement!==null&&i.parentElement!==l)i=i.parentElement;return i.parentElement===l?i:void 0}get selectedBlocks(){let{doc:i}=this.parts,l=window.getSelection();if(l===null)return[];let s=[];for(let t=0;t<l.rangeCount;t++){let r=l.getRangeAt(t);if(!i.contains(r.commonAncestorContainer))continue;let o=this.blockElement(r.startContainer),e=this.blockElement(r.endContainer);s.push(o);while(o!==e&&o!==null)o=o.nextElementSibling,s.push(o)}return s}get selectedText(){let i=window.getSelection();if(i===null)return"";return this.selectedBlocks.length?i.toString():""}selectionChange=()=>{};_updatingBlockStyle=!1;handleSelectChange=(i)=>{if(this._updatingBlockStyle)return;let s=i.target?.closest(A1.tagName);if(s==null)return;this.doCommand(s.value)};handleButtonClick=(i)=>{let s=i.target?.closest("button");if(s==null)return;this.doCommand(s.dataset.command)};content=[n5({name:"toolbar",part:"toolbar",onClick:this.handleButtonClick,onChange:this.handleSelectChange}),ot({part:"doc",contenteditable:!0,style:{flex:"1 1 auto",outline:"none"}}),n5({part:"content"})];doCommand(i){if(i===void 0)return;let l=i.split(",");console.log("execCommand",l[0],!1,...l.slice(1)),document.execCommand(l[0],!1,...l.slice(1))}updateBlockStyle(){let i=this.parts.toolbar.querySelector(".block-style");if(i===null)return;let l=this.selectedBlocks.map((s)=>s.tagName);l=[...new Set(l)],this._updatingBlockStyle=!0,i.value=l.length===1?`formatBlock,${l[0]}`:"",this._updatingBlockStyle=!1}hasContent(){return(this.parts.doc.textContent||"").trim().length>0}handleInput=()=>{if(this.internals)this.internals.setFormValue(this.parts.doc.innerHTML),this.updateValidity()};updateValidity(){if(this.internals)if(this.required&&!this.hasContent())this.internals.setValidity({valueMissing:!0},"Please enter some content",this.parts.doc);else this.internals.setValidity({})}connectedCallback(){super.connectedCallback();let{doc:i,content:l}=this.parts;if(l.innerHTML!==""&&i.innerHTML==="")i.innerHTML=l.innerHTML,l.innerHTML="";this.isInitialized=!0,l.style.display="none",i.addEventListener("input",this.handleInput),this.updateValidity(),document.addEventListener("selectionchange",(s)=>{this.updateBlockStyle(),this.selectionChange(s,this)})}render(){let{toolbar:i}=this.parts;if(super.render(),i.children.length===0)switch(this.widgets){case"minimal":i.append(...yt());break;case"default":i.append(...z5());break}}}var ct=A0,f5=A0.elementCreator({tag:"tosi-rich-text",styleSpec:{":host":{display:"flex",flexDirection:"column",height:"100%"},':host [part="toolbar"]':{padding:4,display:"flex",gap:"0px",flex:"0 0 auto",flexWrap:"wrap"},':host [part="toolbar"] > button':{_xinIconSize:18}}}),dt=Q((...i)=>f5(...i),"richText is deprecated, use tosiRichText instead (tag is now <tosi-rich-text>)");var{div:pt,slot:gt,label:Ct,span:vt,input:M5}=C;class y2 extends w{static formAssociated=!0;static initAttributes={direction:"row",other:"",multiple:!1,name:"",placeholder:"Please specify…",localized:!1,required:!1};_choices=[];get choices(){return this._choices}set choices(i){if(typeof i==="string")this._choices=y2.parseChoicesString(i);else this._choices=i;this.queueRender()}static parseChoicesString(i){return i.split(",").filter((l)=>l.trim()!=="").map((l)=>{let[s,t]=l.split("=").map((h)=>h.trim()),[r,o]=(t||s).split(":").map((h)=>h.trim()),e=o?v[o]():"";return{value:s,icon:e,caption:r}})}value="";formDisabledCallback(i){}formResetCallback(){this.value=""}get values(){return(this.value||"").split(",").map((i)=>i.trim()).filter((i)=>i!=="")}content=()=>[gt(),pt({part:"options"},M5({part:"custom",hidden:!0}))];static styleSpec={":host":{display:"inline-flex",gap:p.segmentedOptionGap("8px"),alignItems:p.segmentedAlignItems("center")},":host, :host::part(options)":{flexDirection:p.segmentedDirection("row")},":host label":{display:"inline-grid",alignItems:"center",gap:p.segmentedOptionGap("8px"),gridTemplateColumns:p.segmentedOptionGridColumns("0px 24px 1fr"),padding:p.segmentedOptionPadding("4px 12px"),font:p.segmentedOptionFont("16px")},":host label:focus":{outline:"none",boxShadow:p.segmentedFocusShadow(`inset 0 0 0 2px ${p.segmentedOptionCurrentBackground("#44a")}`),borderRadius:p.segmentedOptionsBorderRadius("8px")},":host label:has(:checked)":{color:p.segmentedOptionCurrentColor("#eee"),background:p.segmentedOptionCurrentBackground("#44a")},":host label:has(:checked):focus":{boxShadow:p.segmentedCurrentFocusShadow(`inset 0 0 0 2px ${p.segmentedOptionCurrentColor("#eee")}`)},":host svg":{height:p.segmentOptionIconSize("16px"),stroke:p.segmentedOptionIconColor("currentColor")},":host label.no-icon":{gap:0,gridTemplateColumns:p.segmentedOptionGridColumns("0px 1fr")},':host input[type="radio"], :host input[type="checkbox"]':{visibility:p.segmentedInputVisibility("hidden")},":host::part(options)":{display:"flex",borderRadius:p.segmentedOptionsBorderRadius("8px"),background:p.segmentedOptionsBackground("#fff"),color:p.segmentedOptionColor("#222"),overflow:"hidden",alignItems:p.segmentedOptionAlignItems("stretch")},":host::part(custom)":{padding:p.segmentedOptionPadding("4px 12px"),color:p.segmentedOptionCurrentColor("#eee"),background:p.segmentedOptionCurrentBackground("#44a"),font:p.segmentedOptionFont("16px"),border:"0",outline:"none"},":host::part(custom)::placeholder":{color:p.segmentedOptionCurrentColor("#eee"),opacity:p.segmentedPlaceholderOpacity(0.75)}};valueChanged=!1;handleChange=()=>{let{options:i,custom:l}=this.parts;if(this.multiple){let s=[...i.querySelectorAll("input:checked")];this.value=s.map((t)=>t.value).join(",")}else{let s=i.querySelector("input:checked");if(!s)this.value="";else if(s.value)l.setAttribute("hidden",""),this.value=s.value;else l.removeAttribute("hidden"),l.focus(),l.select(),this.value=l.value}this.valueChanged=!0};handleKey=(i)=>{let l=!1;switch(i.code){case"Space":if(i.target instanceof HTMLLabelElement)i.target.click(),l=!0;break;case"Tab":if(!(i.target instanceof HTMLLabelElement))i.target.closest("label").focus();break;case"ArrowLeft":case"ArrowUp":{let s=i.target.closest("label");if(s.previousElementSibling instanceof HTMLLabelElement)s.previousElementSibling.focus()}l=!0;break;case"ArrowRight":case"ArrowDown":{let s=i.target.closest("label");if(s.nextElementSibling instanceof HTMLLabelElement)s.nextElementSibling.focus()}l=!0;break}if(l)i.preventDefault(),i.stopPropagation()};connectedCallback(){super.connectedCallback();let i=this.getAttribute("choices");if(i&&this._choices.length===0)this._choices=y2.parseChoicesString(i);let{options:l}=this.parts;if(this.name==="")this.name=this.instanceId;if(l.addEventListener("change",this.handleChange),l.addEventListener("keydown",this.handleKey),this.other&&this.multiple)console.warn(this,"is set to [other] and [multiple]; [other] will be ignored"),this.other=""}get _choicesWithOther(){let i=[...this.choices];if(this.other&&!this.multiple){let[l,s]=this.other.split(":");i.push({value:"",caption:l,icon:s})}return i}get isOtherValue(){return Boolean(this.value===""||this.value&&!this._choicesWithOther.find((i)=>i.value===this.value))}render(){if(super.render(),this.valueChanged){this.valueChanged=!1;return}let{options:i,custom:l}=this.parts;i.textContent="";let s=this.multiple?"checkbox":"radio",{values:t,isOtherValue:r}=this;if(i.append(...this._choicesWithOther.map((o)=>{return Ct({tabindex:0},M5({type:s,name:this.name,value:o.value,checked:t.includes(o.value)||o.value===""&&r,tabIndex:-1}),o.icon||{class:"no-icon"},this.localized?k1(o.caption):vt(o.caption))})),this.other&&!this.multiple)l.hidden=!r,l.value=r?this.value:"",l.placeholder=this.placeholder,i.append(l)}}var kt=y2,b5=y2.elementCreator({tag:"tosi-segmented"}),nt=Q((...i)=>b5(...i),"xinSegmented is deprecated, use tosiSegmented instead (tag is now <tosi-segmented>)");var{slot:u5}=C;class al extends w{static initAttributes={minWidth:0,minHeight:0};value="normal";content=[u5({part:"normal"}),u5({part:"small",name:"small"})];static styleSpec={":host":{display:"inline-block",position:"relative"}};onResize=()=>{let{normal:i,small:l}=this.parts,s=this.offsetParent;if(!(s instanceof HTMLElement))return;else if(s.offsetWidth<this.minWidth||s.offsetHeight<this.minHeight)i.hidden=!0,l.hidden=!1,this.value="small";else i.hidden=!1,l.hidden=!0,this.value="normal"};connectedCallback(){super.connectedCallback(),globalThis.addEventListener("resize",this.onResize)}disconnectedCallback(){super.disconnectedCallback(),globalThis.removeEventListener("resize",this.onResize)}}var wt=al.elementCreator({tag:"xin-sizebreak"});class xl extends w{target=null;static styleSpec={":host":{_resizeIconFill:"#222",display:"block",position:"absolute",bottom:-7,right:-7,padding:14,width:44,height:44,opacity:0.25,transition:"opacity 0.25s ease-out"},":host(:hover)":{opacity:0.5},":host svg":{width:16,height:16,stroke:y.resizeIconFill}};content=v.resize();get minSize(){let{minWidth:i,minHeight:l}=getComputedStyle(this.target);return{width:parseFloat(i)||32,height:parseFloat(l)||32}}resizeTarget=(i)=>{let{target:l}=this;if(!l)return;let{offsetWidth:s,offsetHeight:t}=l;l.style.left=l.offsetLeft+"px",l.style.top=l.offsetTop+"px",l.style.bottom="",l.style.right="";let{minSize:r}=this;X(i,(o,e,h)=>{if(l.style.width=Math.max(r.width,s+o)+"px",l.style.height=Math.max(r.height,t+e)+"px",h.type==="mouseup")return!0},"nwse-resize")};connectedCallback(){if(super.connectedCallback(),!this.target)this.target=this.parentElement;let i={passive:!0};this.addEventListener("mousedown",this.resizeTarget,i),this.addEventListener("touchstart",this.resizeTarget,i)}}var Bt=xl.elementCreator({tag:"xin-sizer"});var{div:zt,input:ft,span:Mt,button:yl}=C;class $2 extends w{static initAttributes={caption:"",removeable:!1};removeCallback=()=>{this.remove()};content=()=>[Mt({part:"caption"},this.caption),yl(v.x(),{type:"button",part:"remove",hidden:!this.removeable,ariaLabel:`Remove ${this.caption}`,onClick:this.removeCallback})]}var bt=$2,cl=$2.elementCreator({tag:"tosi-tag",styleSpec:{":host":{"--tag-close-button-color":"#000c","--tag-close-button-bg":"#fffc","--tag-button-opacity":"0.5","--tag-button-hover-opacity":"0.75","--tag-bg":p.brandColor("blue"),"--tag-text-color":p.brandTextColor("white"),display:"inline-flex",borderRadius:p.tagRoundedRadius(y.spacing50),color:y.tagTextColor,background:y.tagBg,padding:`0 ${y.spacing75} 0 ${y.spacing75}`,height:`calc(${y.lineHeight} + ${y.spacing50})`,lineHeight:`calc(${y.lineHeight} + ${y.spacing50})`},':host > [part="caption"]':{position:"relative",whiteSpace:"nowrap",overflow:"hidden",flex:"1 1 auto",fontSize:p.fontSize("16px"),color:y.tagTextColor,textOverflow:"ellipsis"},':host [part="remove"]':{boxShadow:"none",margin:`0 ${y.spacing_50} 0 ${y.spacing25}`,padding:0,display:"inline-flex",alignItems:"center",alignSelf:"center",justifyContent:"center",height:y.spacing150,width:y.spacing150,color:y.tagCloseButtonColor,background:y.tagCloseButtonBg,borderRadius:p.tagCloseButtonRadius("99px"),opacity:y.tagButtonOpacity},':host [part="remove"]:hover':{background:y.tagCloseButtonBg,opacity:y.tagButtonHoverOpacity}}}),ut=Q((...i)=>cl(...i),"xinTag is deprecated, use tosiTag instead (tag is now <tosi-tag>)");class c2 extends w{static formAssociated=!0;static initAttributes={name:"",textEntry:!1,editable:!1,placeholder:"enter tags",disabled:!1,required:!1};value="";get tags(){return this.value.split(",").map((i)=>i.trim()).filter((i)=>i!=="")}set tags(i){this.value=i.join(",")}_availableTags=[];get availableTags(){return this._availableTags}set availableTags(i){if(typeof i==="string")this._availableTags=c2.parseAvailableTagsString(i);else this._availableTags=i;this.queueRender()}static parseAvailableTagsString(i){return i.split(",").map((l)=>{let s=l.trim();return s===""?null:s})}connectedCallback(){super.connectedCallback();let i=this.getAttribute("available-tags");if(i&&this._availableTags.length===0)this._availableTags=c2.parseAvailableTagsString(i)}formDisabledCallback(i){this.disabled=i}formResetCallback(){this.value=""}addTag=(i)=>{let l=i.trim();if(l===""||this.tags.includes(l))return;this.tags=[...this.tags,l],this.queueRender(!0)};toggleTag=(i)=>{if(this.tags.includes(i))this.tags=this.tags.filter((l)=>l!==i),this.queueRender(!0);else this.addTag(i)};enterTag=(i)=>{let{tagInput:l}=this.parts;switch(i.key){case",":{let s=l.value.split(",")[0];this.addTag(s)}break;case"Enter":{let s=l.value.split(",")[0];this.addTag(s)}i.stopPropagation(),i.preventDefault();break;default:}};popSelectMenu=()=>{let{toggleTag:i}=this,{tagMenu:l}=this.parts,s=[...this.availableTags],t=this.tags.filter((o)=>!s.includes(o));if(t.length)s.push(null,...t);let r=s.map((o)=>{if(o===""||o===null)return null;else if(typeof o==="object")return{checked:()=>this.tags.includes(o.value),caption:o.caption,action(){i(o.value)}};else return{checked:()=>this.tags.includes(o),caption:o,action(){i(o)}}});K({target:l,width:"auto",menuItems:r})};content=()=>[yl({type:"button",style:{visibility:"hidden"},tabindex:-1}),zt({part:"tagContainer",class:"row",role:"list",ariaLabel:"Selected tags"}),ft({part:"tagInput",class:"elastic",ariaLabel:"Enter new tag",onKeydown:this.enterTag}),yl({type:"button",title:"add tag",ariaLabel:"Select tags from list",ariaHaspopup:"listbox",part:"tagMenu",onClick:this.popSelectMenu},v.chevronDown())];removeTag=(i)=>{if(this.editable&&!this.disabled){let l=i.target.closest($2.tagName);this.tags=this.tags.filter((s)=>s!==l.caption),l.remove(),this.queueRender(!0)}i.stopPropagation(),i.preventDefault()};render(){super.render();let{tagContainer:i,tagMenu:l,tagInput:s}=this.parts;if(l.disabled=this.disabled,s.value="",s.setAttribute("placeholder",this.placeholder),this.editable&&!this.disabled)l.toggleAttribute("hidden",!1),s.toggleAttribute("hidden",!this.textEntry);else l.toggleAttribute("hidden",!0),s.toggleAttribute("hidden",!0);i.textContent="";for(let t of this.tags)i.append(cl({caption:t,removeable:this.editable&&!this.disabled,removeCallback:this.removeTag}))}}var At=c2,A5=c2.elementCreator({tag:"tosi-tag-list",styleSpec:{":host":{"--tag-list-bg":"#f8f8f8","--touch-size":"44px","--spacing":"16px",display:"grid",gridTemplateColumns:"auto",alignItems:"center",background:y.tagListBg,gap:y.spacing25,borderRadius:p.taglistRoundedRadius(y.spacing50),overflow:"hidden"},":host[editable]":{gridTemplateColumns:`0px auto ${y.touchSize}`},":host[editable][text-entry]":{gridTemplateColumns:`0px 2fr 1fr ${y.touchSize}`},':host [part="tagContainer"]':{display:"flex",content:'" "',alignItems:"center",background:y.inputBg,borderRadius:p.tagContainerRadius(y.spacing50),boxShadow:y.borderShadow,flexWrap:"nowrap",overflow:"auto hidden",gap:y.spacing25,minHeight:`calc(${y.lineHeight} + ${y.spacing})`,padding:y.spacing25},':host [part="tagMenu"]':{width:y.touchSize,height:y.touchSize,lineHeight:y.touchSize,textAlign:"center",padding:0,margin:0},":host [hidden]":{display:"none !important"},':host button[part="tagMenu"]':{background:y.brandColor,color:y.brandTextColor}}}),Pt=Q((...i)=>A5(...i),"xinTagList is deprecated, use tosiTagList instead (tag is now <tosi-tag-list>)");var P5="1.2.2";var dl={accent:z.fromCss("#EE257B"),background:z.fromCss("#fafafa"),text:z.fromCss("#222222")},H5={_tosiSpacingXs:"4px",_tosiSpacingSm:"8px",_tosiSpacing:"12px",_tosiSpacingLg:"16px",_tosiSpacingXl:"24px",_tosiFontFamily:"system-ui, -apple-system, sans-serif",_tosiFontSize:"16px",_tosiLineHeight:"1.5",_tosiCodeFontFamily:"ui-monospace, monospace",_tosiCodeFontSize:"14px",_tosiTouchSize:"44px",_tosiBorderRadius:"4px",_tosiBorderRadiusLg:"8px",_tosiTransition:"0.15s ease-out"};function Ht(i){let{accent:l,background:s,text:t}=i,r=i.accentText??l.contrasting(),o=i.backgroundInset??s.darken(0.03),e=i.border??t.opacity(0.15),h=i.shadow??t.opacity(0.1),a=i.focus??l.opacity(0.5);return{_tosiAccent:l,_tosiAccentLight:l.brighten(0.15),_tosiAccentDark:l.darken(0.15),_tosiAccentText:r,_tosiBg:s,_tosiBgInset:o,_tosiBgHover:s.darken(0.05),_tosiBgActive:s.darken(0.1),_tosiText:t,_tosiTextMuted:t.opacity(0.6),_tosiTextDisabled:t.opacity(0.4),_tosiBorder:e,_tosiBorderFocus:l,_tosiShadow:h,_tosiShadowColor:h,_tosiFocusRing:`0 0 0 2px ${a}`,_tosiInputBg:s,_tosiInputBorder:e,_tosiInputBorderFocus:l,_tosiButtonBg:s,_tosiButtonText:t,_tosiButtonBorder:e,_tosiButtonHoverBg:s.darken(0.05),_tosiButtonActiveBg:l,_tosiButtonActiveText:r}}function P0(i){return{":root":{...H5,...Ht(i)}}}function F5(i){let s=P0(i)[":root"];return{":root":L0(s)}}function Ft(i,l="tosi-theme"){G1(l,i)}var jt=P0(dl),_t=F5(dl),j5={"--xin-icon-size":y.tosiIconSize,"--xin-icon-fill":y.tosiIconFill,"--xin-icon-stroke":y.tosiIconStroke,"--xin-tabs-bar-color":y.tosiTabsBarColor,"--xin-tabs-bar-height":y.tosiTabsBarHeight,"--xin-tabs-selected-color":y.tosiTabsSelectedColor,"--spacing":y.tosiSpacing,"--gap":y.tosiSpacingSm,"--touch-size":y.tosiTouchSize,"--background":y.tosiBg,"--text-color":y.tosiText,"--brand-color":y.tosiAccent,"--brand-text-color":y.tosiAccentText};function Vt(i){return{":root":{...P0(i)[":root"],...j5}}}function qt(i,l){let s={};for(let[t,r]of Object.entries(l)){let o=`--tosi-${i}-${t.replace(/([A-Z])/g,"-$1").toLowerCase()}`;s[t]=`var(${o}, ${r})`}return s}Object.assign(globalThis,{xinjs:M2,xinjsui:pl});})();
96
+ `)}var{div:S9}=C;class I1 extends w{static formAssociated=!0;static initAttributes={coords:"65.01715565258993,25.48081004203459,12",token:"",mapStyle:"mapbox://styles/mapbox/streets-v12",name:""};value="";formDisabledCallback(i){}formResetCallback(){this.value="",this.coords="65.01715565258993,25.48081004203459,12"}content=S9({style:{width:"100%",height:"100%"}});get map(){return this._map}static mapboxCSSAvailable;static mapboxAvailable;_map;static styleSpec={":host":{display:"inline-block",position:"relative",width:"400px",height:"400px",textAlign:"left"}};constructor(){super();if(I1.mapboxCSSAvailable===void 0)I1.mapboxCSSAvailable=D2("https://api.mapbox.com/mapbox-gl-js/v3.15.0/mapbox-gl.css").catch((i)=>{console.error("failed to load mapbox-gl.css",i)}),I1.mapboxAvailable=D("https://api.mapbox.com/mapbox-gl-js/v3.15.0/mapbox-gl.js").catch((i)=>{console.error("failed to load mapbox-gl.js",i)})}connectedCallback(){if(super.connectedCallback(),!this.token)console.error("mapbox requires an access token which you can provide via the token attribute")}_lastCoords="";_lastStyle="";render(){if(super.render(),!this.token)return;if(this._map){if(this.coords!==this._lastCoords){let[r,o,e]=this.coords.split(",").map((h)=>Number(h));this._map.setCenter([o,r]),this._map.setZoom(e),this._lastCoords=this.coords}if(this.mapStyle!==this._lastStyle)this._map.setStyle(this.mapStyle),this._lastStyle=this.mapStyle;return}let{div:i}=this.parts,[l,s,t]=this.coords.split(",").map((r)=>Number(r));this._lastCoords=this.coords,this._lastStyle=this.mapStyle,I1.mapboxAvailable.then(({mapboxgl:r})=>{console.log("%cmapbox may complain about missing css -- don't panic!","background: orange; color: black; padding: 0 5px;"),r.accessToken=this.token,this._map=new r.Map({container:i,style:this.mapStyle,zoom:t,center:[s,l]}),this._map.on("render",()=>this._map.resize()),this._map.on("moveend",()=>{let o=this._map.getCenter(),e=this._map.getZoom(),h=`${o.lat.toFixed(6)},${o.lng.toFixed(6)},${e.toFixed(1)}`;if(h!==this.value){if(this.internals)this.internals.setFormValue(h)}})})}}var T9=I1.elementCreator({tag:"xin-map"});var{div:Ei,span:b0,button:il}=C,O2=86400000,E9=[0,1,2,3,4,5,6],it=[1,2,3,4,5,6,7,8,9,10,11,12],ll=(i,l=2,s="0")=>String(i).padStart(l,s),U2=(i,l,s)=>new Date(`${i}-${ll(l)}-${ll(s)}`);class sl extends w{static formAssociated=!0;static initAttributes={month:NaN,year:NaN,weekStart:0,minDate:U2(new Date().getFullYear()-100,1,1).toISOString().split("T")[0],maxDate:U2(new Date().getFullYear()+10,12,31).toISOString().split("T")[0],selectable:!1,multiple:!1,range:!1,disabled:!1,readonly:!1,required:!1,name:""};selectedDays=[];value="";formDisabledCallback(i){this.disabled=i}formResetCallback(){this.value="",this.selectedDays=[]}get endDay(){return 1-this.weekStart}get months(){return it.map((i)=>({caption:U2(2025,i,1).toString().split(" ")[1],value:String(i)}))}get years(){let i=Number(this.minDate.split("-")[0]),l=Number(this.maxDate.split("-")[0]),s=[];for(let t=i;t<=l;t++)s.push(String(t));return s}monthChanged=(i,l)=>{};gotoMonth(i,l){if(this.month!==l||this.year!==i)this.month=l,this.year=i,this.monthChanged(i,l)}setMonth=()=>{this.gotoMonth(Number(this.parts.year.value),Number(this.parts.month.value))};get to(){return this.selectedDays[1]||""}set to(i){this.selectedDays[1]=i,this.selectedDays.splice(2)}get from(){return this.selectedDays[0]||""}set from(i){this.selectedDays[0]=i,this.selectedDays.splice(2)}clickDate=(i)=>{let l=i.target.getAttribute("title");this.selectDate(l)};keyDate=(i)=>{let l=!1;switch(i.code){case"Space":{let s=i.target.getAttribute("title");this.selectDate(s),l=!0;break}case"Tab":break;default:console.log(i)}if(l)i.preventDefault(),i.stopPropagation()};#i="";selectDate=(i)=>{if(this.#i=i,this.range){if(!this.to)this.selectedDays=[i,i];else if(this.from===i&&this.to===i)this.selectedDays=[];else if(this.from===i)this.from=this.to;else if(this.to===i)this.to=this.from;else if(i<this.from)this.from=i;else if(i>this.to)this.to=i;else this.to=i;this.value=`${this.from},${this.to}`}else if(this.multiple){if(this.selectedDays.includes(i))this.selectedDays.splice(this.selectedDays.indexOf(i),1);else this.selectedDays.push(i),this.selectedDays.sort();this.value=this.selectedDays.join(",")}else if(this.selectable)if(this.selectedDays.includes(i))this.value="",this.selectedDays=[];else this.value=i,this.selectedDays=[i]};nextMonth=()=>{if(this.month<12)this.gotoMonth(this.year,this.month+1);else this.gotoMonth(this.year+1,1)};previousMonth=()=>{if(this.month>1)this.gotoMonth(this.year,this.month-1);else this.gotoMonth(this.year-1,12)};checkDay=(i)=>{if(!this.range)return this.selectedDays.includes(i);else if(this.range)return this.from&&i>=this.from&&i<=this.to;return!1};dateMenuItem=(i,l="")=>{return i=i.split("T")[0],{caption:l||i,enabled:()=>!i.startsWith(`${this.year}-${ll(this.month)}-`),action:()=>{this.gotoDate(i)}}};jumpMenu=()=>{K({target:this.parts.jump,menuItems:[this.dateMenuItem(new Date().toISOString(),"This Month"),...this.selectedDays.length===0?[]:[null],...this.selectedDays.map((i)=>this.dateMenuItem(i))]})};content=()=>[Ei({part:"header"},il({part:"previous",onClick:this.previousMonth},v.chevronLeft()),b0({style:{flex:"1"}}),il({part:"jump",onClick:this.jumpMenu},v.calendar()),d1({part:"month",options:this.months,onChange:this.setMonth}),d1({part:"year",options:[this.year],onChange:this.setMonth}),b0({style:{flex:"1"}}),il({part:"next",onClick:this.nextMonth},v.chevronRight())),Ei({part:"week"}),Ei({part:"days"})];gotoDate(i){let l=new Date(i);this.gotoMonth(l.getFullYear(),l.getMonth()+1)}connectedCallback(){super.connectedCallback();let i=new Date(this.value.split(",").pop()||Date.now());if(isNaN(this.month))this.month=i.getMonth()+1;if(isNaN(this.year))this.year=i.getFullYear()}days=[];render(){super.render();let{week:i,days:l,jump:s,month:t,year:r,previous:o,next:e}=this.parts;this.selectedDays=this.value?this.value.split(","):[];let h=U2(this.year,this.month,1),a=new Date(h.valueOf()-(7+h.getDay()-this.weekStart)%7*O2),x=this.month===12?1:this.month+1,c=new Date(U2(this.year+(this.month===12?1:0),x,1).valueOf()-O2),d=new Date(c.valueOf()+(this.weekStart*2+5+this.endDay-c.getDay())%7*O2),g=E9.map((P)=>new Date(a.valueOf()+P*O2).toString().split(" ")[0]);this.days=[];let B=new Date().toISOString().split("T")[0];for(let P=a.valueOf();P<=d.valueOf();P+=O2){let b=new Date(P),u=b.toISOString().split("T")[0];this.days.push({date:b,selected:!1,inMonth:b.getMonth()+1===this.month,isToday:u===B,isWeekend:b.getDay()%6===0,inRange:!!(this.from&&u>=this.from&&u<=this.to)})}t.value=String(this.month),r.value=String(this.year),t.disabled=r.disabled=s.disabled=o.disabled=e.disabled=this.disabled||this.readonly,r.options=this.years,i.textContent="",i.append(...g.map((P)=>b0({class:"day"},P))),l.textContent="";let k=null,{to:M,from:A}=this;l.append(...this.days.map((P)=>{let b=["date"];if(P.inMonth)b.push("in-month");if(P.isToday)b.push("today");let u=P.date.toISOString().split("T")[0];if(this.checkDay(u))b.push("checked");if(b.push(P.isWeekend?"weekend":"weekday"),this.range){if(M===u)b.push("range-end");if(A===u)b.push("range-start")}let _=b0({class:b.join(" "),title:u,onClick:this.clickDate,onKeydown:this.keyDate,tabindex:"0"},P.date.getDate());if(u===this.#i)k=_;return _})),k?.focus()}}var lt=sl.elementCreator({tag:"tosi-month",styleSpec:{":host":{display:"block"},":host [part=header]":{display:"flex",alignItems:"stretch",justifyContent:"stretch"},":host[disabled]":{pointerEvents:"none",opacity:p.disabledOpacity(0.6)},':host [part="month"], :host [part="year"]':{_fieldWidth:"4em",flex:"1"},":host [part=week], :host [part=days]":{display:"grid",gridTemplateColumns:"auto auto auto auto auto auto auto",justifyItems:"stretch"},":host .today":{background:p.monthTodayBackground("transparent"),boxShadow:p.monthTodayShadow("none"),backdropFilter:p.monthTodayBackdropFilter("brightness(0.9)"),fontWeight:p.monthTodayFontWeight("800")},":host .day, :host .date":{padding:5,display:"flex",justifyContent:"center",userSelect:"none"},":host .day":{color:p.monthDayColor("hotpink"),background:p.monthDayBackground("white"),fontWeight:p.monthDayFontWeight("800")},":host .date":{cursor:"default"},":host .weekend":{background:p.monthWeekendBackground("#eee")},":host .date:not(.in-month)":{opacity:0.5},":host .date.checked":{color:p.monthDateCheckedColor("white"),background:p.monthDateCheckedBackground("hotpink")},":host:not([range]) .date.checked":{borderRadius:p.monthDateCheckedBorderRadius("10px")},":host .range-start":{borderTopLeftRadius:p.monthDateCheckedBorderRadius("10px"),borderBottomLeftRadius:p.monthDateCheckedBorderRadius("10px")},":host .range-end":{borderTopRightRadius:p.monthDateCheckedBorderRadius("10px"),borderBottomRightRadius:p.monthDateCheckedBorderRadius("10px")}}});var{div:tl,button:st}=C,tt={error:"red",warn:"orange",info:"royalblue",log:"gray",success:"green",progress:"royalblue"};class D1 extends w{static singleton;static styleSpec={":host":{_notificationSpacing:8,_notificationWidth:360,_notificationPadding:`${y.notificationSpacing} ${y.notificationSpacing50} ${y.notificationSpacing} ${y.notificationSpacing200}`,_notificationBg:"#fafafa",_notificationAccentColor:"#aaa",_notificationTextColor:"#444",_notificationIconSize:y.notificationSpacing300,_notificationButtonSize:48,_notificationBorderWidth:"3px 0 0",_notificationBorderRadius:y.notificationSpacing50,position:"fixed",left:0,right:0,bottom:0,paddingBottom:y.notificationSpacing,width:y.notificationWidth,display:"flex",flexDirection:"column-reverse",margin:"0 auto",gap:y.notificationSpacing,maxHeight:"50vh",overflow:"hidden auto",boxShadow:"none !important"},":host *":{color:y.notificationTextColor},":host .note":{display:"grid",background:y.notificationBg,padding:y.notificationPadding,gridTemplateColumns:`${y.notificationIconSize} 1fr ${y.notificationButtonSize}`,gap:y.notificationSpacing,alignItems:"center",borderRadius:y.notificationBorderRadius,boxShadow:`0 2px 8px #0006, inset 0 0 0 2px ${y.notificationAccentColor}`,borderColor:y.notificationAccentColor,borderWidth:y.notificationBorderWidth,borderStyle:"solid",transition:"0.5s ease-in",transitionProperty:"margin, opacity",zIndex:1},":host .note .icon":{stroke:y.notificationAccentColor},":host .note button":{display:"flex",lineHeight:y.notificationButtonSize,padding:0,margin:0,height:y.notificationButtonSize,width:y.notificationButtonSize,background:"transparent",alignItems:"center",justifyContent:"center",boxShadow:"none",border:"none",position:"relative"},":host .note button:hover svg":{stroke:y.notificationAccentColor},":host .note button:active svg":{borderRadius:99,stroke:y.notificationBg,background:y.notificationAccentColor,padding:y.spacing50},":host .note svg":{height:y.notificationIconSize,width:y.notificationIconSize,pointerEvents:"none"},":host .message":{display:"flex",flexDirection:"column",alignItems:"center",gap:y.notificationSpacing},":host .note.closing":{opacity:0,zIndex:0}};static removeNote(i){i.classList.add("closing"),i.style.marginBottom=-i.offsetHeight+"px";let l=()=>{i.remove()};i.addEventListener("transitionend",l),setTimeout(l,1000)}static post(i){let{message:l,duration:s,type:t,close:r,progress:o,icon:e,color:h}=Object.assign({type:"info",duration:-1},typeof i==="string"?{message:i}:i);if(!this.singleton)this.singleton=g5();let a=this.singleton;document.body.append(a),a.style.zIndex=String(X1()+1);let x=h||tt[t],c=o||t==="progress"?C.progress():{},d=()=>{if(r)r();D1.removeNote(k)},g=e instanceof SVGElement?e:e?v[e]({class:"icon"}):v.info({class:"icon"}),B=t==="error"||t==="warn",k=tl({class:`note ${t}`,role:B?"alert":"status",ariaLive:B?"assertive":"polite",style:{_notificationAccentColor:x}},g,tl({class:"message"},tl(l),c),st({class:"close",title:"close",ariaLabel:"Close notification",apply(M){M.addEventListener("click",d)}},v.x()));if(a.shadowRoot.append(k),c instanceof HTMLProgressElement&&o instanceof Function){c.setAttribute("max",String(100)),c.value=o();let M=setInterval(()=>{if(!a.shadowRoot.contains(k)){clearInterval(M);return}let A=o();if(c.value=A,A>=100)D1.removeNote(k)},1000)}if(s>0)setTimeout(()=>{D1.removeNote(k)},s*1000);return k.scrollIntoView(),d}content=null}var g5=D1.elementCreator({tag:"xin-notification"});function rt(i){return D1.post(i)}var C5=async(i,l="SHA-1")=>{let t=new TextEncoder().encode(i),r=await crypto.subtle.digest(l,t);return Array.from(new Uint8Array(r)).map((h)=>h.toString(16).padStart(2,"0")).join("")},v5=async(i)=>{let l=await C5(i),s=await fetch(`https://weakpass.com/api/v1/search/${l}`);if(s.ok){let t=await s.json();console.log("password found in weakpass database",t)}return s.status!==404},{span:rl,xinSlot:ot}=C;class ol extends w{static initAttributes={minLength:8,goodLength:12,indicatorColors:"#f00,#f40,#f80,#ef0,#8f0,#0a2"};descriptionColors="#000,#000,#000,#000,#000,#fff";issues={tooShort:!0,short:!0,noUpper:!0,noLower:!0,noNumber:!0,noSpecial:!0};issueDescriptions={tooShort:"too short",short:"short",noUpper:"no upper case",noLower:"no lower case",noNumber:"no digits",noSpecial:"no unusual characters"};value=0;strengthDescriptions=["unacceptable","very weak","weak","moderate","strong","very strong"];strength(i){return this.issues={tooShort:i.length<this.minLength,short:i.length<this.goodLength,noUpper:!i.match(/[A-Z]/),noLower:!i.match(/[a-z]/),noNumber:!i.match(/[0-9]/),noSpecial:!i.match(/[^a-zA-Z0-9]/)},this.issues.tooShort?0:Object.values(this.issues).filter((l)=>!l).length-1}async isBreached(){let i=this.querySelector("input")?.value;if(!i||typeof i!=="string")return!0;return await v5(i)}updateIndicator=(i)=>{let{level:l,description:s}=this.parts,t=this.indicatorColors.split(","),r=this.descriptionColors.split(","),o=this.strength(i);if(this.value!==o)this.value=o,this.dispatchEvent(new Event("change"));l.style.width=`${(o+1)*16.67}%`,this.style.setProperty("--indicator-color",t[o]),this.style.setProperty("--description-color",r[o]),s.textContent=this.strengthDescriptions[o]};update=(i)=>{let l=i.target.closest("input");this.updateIndicator(l?.value||"")};content=()=>[ot({onInput:this.update}),rl({part:"meter"},rl({part:"level"}),rl({part:"description"}))];render(){super.render();let i=this.querySelector("input");this.updateIndicator(i?.value)}}var et=ol.elementCreator({tag:"xin-password-strength",styleSpec:{":host":{display:"inline-flex",flexDirection:"column",gap:y.spacing50,position:"relative"},":host xin-slot":{display:"flex"},':host [part="meter"]':{display:"block",position:"relative",height:p.meterHeight("24px"),background:p.indicatorBg("white"),borderRadius:p.meterRadius("4px"),boxShadow:p.meterShadow(`inset 0 0 0 2px ${y.indicatorColor}`)},':host [part="level"]':{height:p.levelHeight("20px"),content:'" "',display:"inline-block",width:0,transition:"0.15s ease-out",background:y.indicatorColor,margin:p.levelMargin("2px"),borderRadius:p.levelRadius("2px")},':host [part="description"]':{position:"absolute",inset:"0",color:y.descriptionColor,height:p.meterHeight("24px"),lineHeight:p.meterHeight("24px"),textAlign:"center"}}});var{span:el}=C;class u0 extends w{static formAssociated=!0;static initAttributes={max:5,min:1,icon:"star",step:1,ratingStroke:"#e81",ratingFill:"#f91",emptyStroke:"none",emptyFill:"#ccc",readonly:!1,iconSize:24,hollow:!1,required:!1,name:""};value="";formDisabledCallback(i){this.readonly=i}formResetCallback(){this.value=""}static styleSpec={":host":{display:"inline-block",position:"relative",width:"fit-content"},":host::part(container)":{position:"relative",display:"inline-block"},":host::part(empty), :host::part(filled)":{height:"100%",whiteSpace:"nowrap",overflow:"hidden"},":host::part(empty)":{pointerEvents:"none"},":host::part(filled)":{position:"absolute",left:0,transition:"width 0.15s ease-out"},":host svg":{transform:"scale(0.9)",pointerEvents:"all !important",transition:"0.25s ease-in-out"},":host svg:hover":{transform:"scale(1)"},":host svg:active":{transform:"scale(1.1)"}};content=()=>el({part:"container"},el({part:"empty"}),el({part:"filled"}));displayValue(i){let{empty:l,filled:s}=this.parts,r=Math.round((typeof i==="string"?0:i||0)/this.step)*this.step;s.style.width=r/this.max*l.offsetWidth+"px"}update=(i)=>{if(this.readonly)return;let{empty:l}=this.parts,s=i instanceof MouseEvent?i.pageX-l.getBoundingClientRect().x:0,t=Math.min(Math.max(this.min,Math.round(s/l.offsetWidth*this.max/this.step+this.step*0.5)*this.step),this.max);if(i.type==="click")this.value=t;else if(i.type==="mousemove")this.displayValue(t);else this.displayValue(this.value||0)};handleKey=(i)=>{let l=this.value===""?NaN:Number(this.value);if(isNaN(l))l=Math.round((this.min+this.max)*0.5*this.step)*this.step;let s=!1;switch(i.key){case"ArrowUp":case"ArrowRight":l+=this.step,s=!0;break;case"ArrowDown":case"ArrowLeft":l-=this.step,s=!0;break}if(this.value=Math.max(Math.min(l,this.max),this.min),s)i.stopPropagation(),i.preventDefault()};connectedCallback(){super.connectedCallback();let{container:i}=this.parts;i.tabIndex=0,i.addEventListener("mousemove",this.update,!0),i.addEventListener("mouseleave",this.update),i.addEventListener("blur",this.update),i.addEventListener("click",this.update),i.addEventListener("keydown",this.handleKey)}_renderedIcon="";render(){super.render();let i=this.iconSize+"px";if(this.style.setProperty("--tosi-icon-size",i),this.readonly)this.role="image";else this.role="slider";this.ariaLabel=`rating ${this.value} out of ${this.max}`,this.ariaValueMax=String(this.max),this.ariaValueMin=String(this.min),this.ariaValueNow=this.value===""?String(-1):String(this.value);let{empty:l,filled:s}=this.parts;if(l.classList.toggle("hollow",this.hollow),l.style.setProperty("--tosi-icon-fill",this.emptyFill),l.style.setProperty("--tosi-icon-stroke",this.emptyStroke),s.style.setProperty("--tosi-icon-fill",this.ratingFill),s.style.setProperty("--tosi-icon-stroke",this.ratingStroke),this._renderedIcon!==this.icon){this._renderedIcon=this.icon;for(let t=0;t<this.max;t++)l.append(v[this.icon]()),s.append(v[this.icon]())}this.displayValue(this.value)}}var ht=u0,k5=u0.elementCreator({tag:"tosi-rating"}),at=Q((...i)=>k5(...i),"xinRating is deprecated, use tosiRating instead (tag is now <tosi-rating>)");var{xinSlot:n5,div:xt,button:yt,span:w5}=C,ct=[{caption:"Title",tagType:"H1"},{caption:"Heading",tagType:"H2"},{caption:"Subheading",tagType:"H3"},{caption:"Minor heading",tagType:"H4"},{caption:"Body",tagType:"P"},{caption:"Code Block",tagType:"PRE"}];function hl(i=ct){return d1({title:"paragraph style",slot:"toolbar",class:"block-style",options:i.map(({caption:l,tagType:s})=>({caption:l,value:`formatBlock,${s}`}))})}function c2(i="10px"){return w5({slot:"toolbar",style:{flex:`0 0 ${i}`,content:" "}})}function dt(i="10px"){return w5({slot:"toolbar",style:{flex:`0 0 ${i}`,content:" "}})}function o1(i,l,s){return yt({slot:"toolbar",dataCommand:l,title:i},s)}var pt=()=>[o1("left-justify","justifyLeft",v.alignLeft()),o1("center","justifyCenter",v.alignCenter()),o1("right-justify","justifyRight",v.alignRight()),c2(),o1("bullet list","insertUnorderedList",v.listBullet()),o1("numbered list","insertOrderedList",v.listNumber()),c2(),o1("indent","indent",v.indent()),o1("indent","outdent",v.outdent())],B5=()=>[o1("bold","bold",v.fontBold()),o1("italic","italic",v.fontItalic()),o1("underline","underline",v.fontUnderline())],gt=()=>[hl(),c2(),...B5()],z5=()=>[hl(),c2(),...pt(),c2(),...B5()];class A0 extends w{static formAssociated=!0;static initAttributes={widgets:"default",name:"",required:!1};isInitialized=!1;savedValue="";formDisabledCallback(i){if(this.isInitialized)this.parts.doc.contentEditable=i?"false":"true"}formResetCallback(){this.value=""}_value="";get value(){return this.isInitialized?this.parts.doc.innerHTML:this._value}set value(i){let l=this._value;if(this._value=i,this.isInitialized){if(this.parts.doc.innerHTML!==i)this.parts.doc.innerHTML=i}if(l!==i&&this.internals)this.internals.setFormValue(i)}blockElement(i){let{doc:l}=this.parts;while(i.parentElement!==null&&i.parentElement!==l)i=i.parentElement;return i.parentElement===l?i:void 0}get selectedBlocks(){let{doc:i}=this.parts,l=window.getSelection();if(l===null)return[];let s=[];for(let t=0;t<l.rangeCount;t++){let r=l.getRangeAt(t);if(!i.contains(r.commonAncestorContainer))continue;let o=this.blockElement(r.startContainer),e=this.blockElement(r.endContainer);s.push(o);while(o!==e&&o!==null)o=o.nextElementSibling,s.push(o)}return s}get selectedText(){let i=window.getSelection();if(i===null)return"";return this.selectedBlocks.length?i.toString():""}selectionChange=()=>{};_updatingBlockStyle=!1;handleSelectChange=(i)=>{if(this._updatingBlockStyle)return;let s=i.target?.closest(H1.tagName);if(s==null)return;this.doCommand(s.value)};handleButtonClick=(i)=>{let s=i.target?.closest("button");if(s==null)return;this.doCommand(s.dataset.command)};content=[n5({name:"toolbar",part:"toolbar",onClick:this.handleButtonClick,onChange:this.handleSelectChange}),xt({part:"doc",contenteditable:!0,style:{flex:"1 1 auto",outline:"none"}}),n5({part:"content"})];doCommand(i){if(i===void 0)return;let l=i.split(",");console.log("execCommand",l[0],!1,...l.slice(1)),document.execCommand(l[0],!1,...l.slice(1))}updateBlockStyle(){let i=this.parts.toolbar.querySelector(".block-style");if(i===null)return;let l=this.selectedBlocks.map((s)=>s.tagName);l=[...new Set(l)],this._updatingBlockStyle=!0,i.value=l.length===1?`formatBlock,${l[0]}`:"",this._updatingBlockStyle=!1}hasContent(){return(this.parts.doc.textContent||"").trim().length>0}handleInput=()=>{if(this.internals)this.internals.setFormValue(this.parts.doc.innerHTML),this.updateValidity()};updateValidity(){if(this.internals)if(this.required&&!this.hasContent())this.internals.setValidity({valueMissing:!0},"Please enter some content",this.parts.doc);else this.internals.setValidity({})}connectedCallback(){super.connectedCallback();let{doc:i,content:l}=this.parts;if(l.innerHTML!==""&&i.innerHTML==="")i.innerHTML=l.innerHTML,l.innerHTML="";this.isInitialized=!0,l.style.display="none",i.addEventListener("input",this.handleInput),this.updateValidity(),document.addEventListener("selectionchange",(s)=>{this.updateBlockStyle(),this.selectionChange(s,this)})}render(){let{toolbar:i}=this.parts;if(super.render(),i.children.length===0)switch(this.widgets){case"minimal":i.append(...gt());break;case"default":i.append(...z5());break}}}var Ct=A0,f5=A0.elementCreator({tag:"tosi-rich-text",styleSpec:{":host":{display:"flex",flexDirection:"column",height:"100%"},':host [part="toolbar"]':{padding:4,display:"flex",gap:"0px",flex:"0 0 auto",flexWrap:"wrap"},':host [part="toolbar"] > button':{_xinIconSize:18}}}),vt=Q((...i)=>f5(...i),"richText is deprecated, use tosiRichText instead (tag is now <tosi-rich-text>)");var{div:kt,slot:nt,label:wt,span:Bt,input:M5}=C;class d2 extends w{static formAssociated=!0;static initAttributes={direction:"row",other:"",multiple:!1,name:"",placeholder:"Please specify…",localized:!1,required:!1};_choices=[];get choices(){return this._choices}set choices(i){if(typeof i==="string")this._choices=d2.parseChoicesString(i);else this._choices=i;this.queueRender()}static parseChoicesString(i){return i.split(",").filter((l)=>l.trim()!=="").map((l)=>{let[s,t]=l.split("=").map((h)=>h.trim()),[r,o]=(t||s).split(":").map((h)=>h.trim()),e=o?v[o]():"";return{value:s,icon:e,caption:r}})}value="";formDisabledCallback(i){}formResetCallback(){this.value=""}get values(){return(this.value||"").split(",").map((i)=>i.trim()).filter((i)=>i!=="")}content=()=>[nt(),kt({part:"options"},M5({part:"custom",hidden:!0}))];static styleSpec={":host":{display:"inline-flex",gap:p.segmentedOptionGap("8px"),alignItems:p.segmentedAlignItems("center")},":host, :host::part(options)":{flexDirection:p.segmentedDirection("row")},":host label":{display:"inline-grid",alignItems:"center",gap:p.segmentedOptionGap("8px"),gridTemplateColumns:p.segmentedOptionGridColumns("0px 24px 1fr"),padding:p.segmentedOptionPadding("4px 12px"),font:p.segmentedOptionFont("16px")},":host label:focus":{outline:"none",boxShadow:p.segmentedFocusShadow(`inset 0 0 0 2px ${p.segmentedOptionCurrentBackground("#44a")}`),borderRadius:p.segmentedOptionsBorderRadius("8px")},":host label:has(:checked)":{color:p.segmentedOptionCurrentColor("#eee"),background:p.segmentedOptionCurrentBackground("#44a")},":host label:has(:checked):focus":{boxShadow:p.segmentedCurrentFocusShadow(`inset 0 0 0 2px ${p.segmentedOptionCurrentColor("#eee")}`)},":host svg":{height:p.segmentOptionIconSize("16px"),stroke:p.segmentedOptionIconColor("currentColor")},":host label.no-icon":{gap:0,gridTemplateColumns:p.segmentedOptionGridColumns("0px 1fr")},':host input[type="radio"], :host input[type="checkbox"]':{visibility:p.segmentedInputVisibility("hidden")},":host::part(options)":{display:"flex",borderRadius:p.segmentedOptionsBorderRadius("8px"),background:p.segmentedOptionsBackground("#fff"),color:p.segmentedOptionColor("#222"),overflow:"hidden",alignItems:p.segmentedOptionAlignItems("stretch")},":host::part(custom)":{padding:p.segmentedOptionPadding("4px 12px"),color:p.segmentedOptionCurrentColor("#eee"),background:p.segmentedOptionCurrentBackground("#44a"),font:p.segmentedOptionFont("16px"),border:"0",outline:"none"},":host::part(custom)::placeholder":{color:p.segmentedOptionCurrentColor("#eee"),opacity:p.segmentedPlaceholderOpacity(0.75)}};valueChanged=!1;handleChange=()=>{let{options:i,custom:l}=this.parts;if(this.multiple){let s=[...i.querySelectorAll("input:checked")];this.value=s.map((t)=>t.value).join(",")}else{let s=i.querySelector("input:checked");if(!s)this.value="";else if(s.value)l.setAttribute("hidden",""),this.value=s.value;else l.removeAttribute("hidden"),l.focus(),l.select(),this.value=l.value}this.valueChanged=!0};handleKey=(i)=>{let l=!1;switch(i.code){case"Space":if(i.target instanceof HTMLLabelElement)i.target.click(),l=!0;break;case"Tab":if(!(i.target instanceof HTMLLabelElement))i.target.closest("label").focus();break;case"ArrowLeft":case"ArrowUp":{let s=i.target.closest("label");if(s.previousElementSibling instanceof HTMLLabelElement)s.previousElementSibling.focus()}l=!0;break;case"ArrowRight":case"ArrowDown":{let s=i.target.closest("label");if(s.nextElementSibling instanceof HTMLLabelElement)s.nextElementSibling.focus()}l=!0;break}if(l)i.preventDefault(),i.stopPropagation()};connectedCallback(){super.connectedCallback();let i=this.getAttribute("choices");if(i&&this._choices.length===0)this._choices=d2.parseChoicesString(i);let{options:l}=this.parts;if(this.name==="")this.name=this.instanceId;if(l.addEventListener("change",this.handleChange),l.addEventListener("keydown",this.handleKey),this.other&&this.multiple)console.warn(this,"is set to [other] and [multiple]; [other] will be ignored"),this.other=""}get _choicesWithOther(){let i=[...this.choices];if(this.other&&!this.multiple){let[l,s]=this.other.split(":");i.push({value:"",caption:l,icon:s})}return i}get isOtherValue(){return Boolean(this.value===""||this.value&&!this._choicesWithOther.find((i)=>i.value===this.value))}render(){if(super.render(),this.valueChanged){this.valueChanged=!1;return}let{options:i,custom:l}=this.parts;i.textContent="";let s=this.multiple?"checkbox":"radio",{values:t,isOtherValue:r}=this;if(i.append(...this._choicesWithOther.map((o)=>{return wt({tabindex:0},M5({type:s,name:this.name,value:o.value,checked:t.includes(o.value)||o.value===""&&r,tabIndex:-1}),o.icon||{class:"no-icon"},this.localized?k1(o.caption):Bt(o.caption))})),this.other&&!this.multiple)l.hidden=!r,l.value=r?this.value:"",l.placeholder=this.placeholder,i.append(l)}}var zt=d2,b5=d2.elementCreator({tag:"tosi-segmented"}),ft=Q((...i)=>b5(...i),"xinSegmented is deprecated, use tosiSegmented instead (tag is now <tosi-segmented>)");var{slot:u5}=C;class al extends w{static initAttributes={minWidth:0,minHeight:0};value="normal";content=[u5({part:"normal"}),u5({part:"small",name:"small"})];static styleSpec={":host":{display:"inline-block",position:"relative"}};onResize=()=>{let{normal:i,small:l}=this.parts,s=this.offsetParent;if(!(s instanceof HTMLElement))return;else if(s.offsetWidth<this.minWidth||s.offsetHeight<this.minHeight)i.hidden=!0,l.hidden=!1,this.value="small";else i.hidden=!1,l.hidden=!0,this.value="normal"};connectedCallback(){super.connectedCallback(),globalThis.addEventListener("resize",this.onResize)}disconnectedCallback(){super.disconnectedCallback(),globalThis.removeEventListener("resize",this.onResize)}}var Mt=al.elementCreator({tag:"xin-sizebreak"});class xl extends w{target=null;static styleSpec={":host":{_resizeIconFill:"#222",display:"block",position:"absolute",bottom:-7,right:-7,padding:14,width:44,height:44,opacity:0.25,transition:"opacity 0.25s ease-out"},":host(:hover)":{opacity:0.5},":host svg":{width:16,height:16,stroke:y.resizeIconFill}};content=v.resize();get minSize(){let{minWidth:i,minHeight:l}=getComputedStyle(this.target);return{width:parseFloat(i)||32,height:parseFloat(l)||32}}resizeTarget=(i)=>{let{target:l}=this;if(!l)return;let{offsetWidth:s,offsetHeight:t}=l;l.style.left=l.offsetLeft+"px",l.style.top=l.offsetTop+"px",l.style.bottom="",l.style.right="";let{minSize:r}=this;m(i,(o,e,h)=>{if(l.style.width=Math.max(r.width,s+o)+"px",l.style.height=Math.max(r.height,t+e)+"px",h.type==="mouseup")return!0},"nwse-resize")};connectedCallback(){if(super.connectedCallback(),!this.target)this.target=this.parentElement;let i={passive:!0};this.addEventListener("mousedown",this.resizeTarget,i),this.addEventListener("touchstart",this.resizeTarget,i)}}var bt=xl.elementCreator({tag:"xin-sizer"});var{div:ut,input:At,span:Pt,button:yl}=C;class $2 extends w{static initAttributes={caption:"",removeable:!1};removeCallback=()=>{this.remove()};content=()=>[Pt({part:"caption"},this.caption),yl(v.x(),{type:"button",part:"remove",hidden:!this.removeable,ariaLabel:`Remove ${this.caption}`,onClick:this.removeCallback})]}var Ht=$2,cl=$2.elementCreator({tag:"tosi-tag",styleSpec:{":host":{"--tag-close-button-color":"#000c","--tag-close-button-bg":"#fffc","--tag-button-opacity":"0.5","--tag-button-hover-opacity":"0.75","--tag-bg":p.brandColor("blue"),"--tag-text-color":p.brandTextColor("white"),display:"inline-flex",borderRadius:p.tagRoundedRadius(y.spacing50),color:y.tagTextColor,background:y.tagBg,padding:`0 ${y.spacing75} 0 ${y.spacing75}`,height:`calc(${y.lineHeight} + ${y.spacing50})`,lineHeight:`calc(${y.lineHeight} + ${y.spacing50})`},':host > [part="caption"]':{position:"relative",whiteSpace:"nowrap",overflow:"hidden",flex:"1 1 auto",fontSize:p.fontSize("16px"),color:y.tagTextColor,textOverflow:"ellipsis"},':host [part="remove"]':{boxShadow:"none",margin:`0 ${y.spacing_50} 0 ${y.spacing25}`,padding:0,display:"inline-flex",alignItems:"center",alignSelf:"center",justifyContent:"center",height:y.spacing150,width:y.spacing150,color:y.tagCloseButtonColor,background:y.tagCloseButtonBg,borderRadius:p.tagCloseButtonRadius("99px"),opacity:y.tagButtonOpacity},':host [part="remove"]:hover':{background:y.tagCloseButtonBg,opacity:y.tagButtonHoverOpacity}}}),Ft=Q((...i)=>cl(...i),"xinTag is deprecated, use tosiTag instead (tag is now <tosi-tag>)");class p2 extends w{static formAssociated=!0;static initAttributes={name:"",textEntry:!1,editable:!1,placeholder:"enter tags",disabled:!1,required:!1};value="";get tags(){return this.value.split(",").map((i)=>i.trim()).filter((i)=>i!=="")}set tags(i){this.value=i.join(",")}_availableTags=[];get availableTags(){return this._availableTags}set availableTags(i){if(typeof i==="string")this._availableTags=p2.parseAvailableTagsString(i);else this._availableTags=i;this.queueRender()}static parseAvailableTagsString(i){return i.split(",").map((l)=>{let s=l.trim();return s===""?null:s})}connectedCallback(){super.connectedCallback();let i=this.getAttribute("available-tags");if(i&&this._availableTags.length===0)this._availableTags=p2.parseAvailableTagsString(i)}formDisabledCallback(i){this.disabled=i}formResetCallback(){this.value=""}addTag=(i)=>{let l=i.trim();if(l===""||this.tags.includes(l))return;this.tags=[...this.tags,l],this.queueRender(!0)};toggleTag=(i)=>{if(this.tags.includes(i))this.tags=this.tags.filter((l)=>l!==i),this.queueRender(!0);else this.addTag(i)};enterTag=(i)=>{let{tagInput:l}=this.parts;switch(i.key){case",":{let s=l.value.split(",")[0];this.addTag(s)}break;case"Enter":{let s=l.value.split(",")[0];this.addTag(s)}i.stopPropagation(),i.preventDefault();break;default:}};popSelectMenu=()=>{let{toggleTag:i}=this,{tagMenu:l}=this.parts,s=[...this.availableTags],t=this.tags.filter((o)=>!s.includes(o));if(t.length)s.push(null,...t);let r=s.map((o)=>{if(o===""||o===null)return null;else if(typeof o==="object")return{checked:()=>this.tags.includes(o.value),caption:o.caption,action(){i(o.value)}};else return{checked:()=>this.tags.includes(o),caption:o,action(){i(o)}}});K({target:l,width:"auto",menuItems:r})};content=()=>[yl({type:"button",style:{visibility:"hidden"},tabindex:-1}),ut({part:"tagContainer",class:"row",role:"list",ariaLabel:"Selected tags"}),At({part:"tagInput",class:"elastic",ariaLabel:"Enter new tag",onKeydown:this.enterTag}),yl({type:"button",title:"add tag",ariaLabel:"Select tags from list",ariaHaspopup:"listbox",part:"tagMenu",onClick:this.popSelectMenu},v.chevronDown())];removeTag=(i)=>{if(this.editable&&!this.disabled){let l=i.target.closest($2.tagName);this.tags=this.tags.filter((s)=>s!==l.caption),l.remove(),this.queueRender(!0)}i.stopPropagation(),i.preventDefault()};render(){super.render();let{tagContainer:i,tagMenu:l,tagInput:s}=this.parts;if(l.disabled=this.disabled,s.value="",s.setAttribute("placeholder",this.placeholder),this.editable&&!this.disabled)l.toggleAttribute("hidden",!1),s.toggleAttribute("hidden",!this.textEntry);else l.toggleAttribute("hidden",!0),s.toggleAttribute("hidden",!0);i.textContent="";for(let t of this.tags)i.append(cl({caption:t,removeable:this.editable&&!this.disabled,removeCallback:this.removeTag}))}}var jt=p2,A5=p2.elementCreator({tag:"tosi-tag-list",styleSpec:{":host":{"--tag-list-bg":"#f8f8f8","--touch-size":"44px","--spacing":"16px",display:"grid",gridTemplateColumns:"auto",alignItems:"center",background:y.tagListBg,gap:y.spacing25,borderRadius:p.taglistRoundedRadius(y.spacing50),overflow:"hidden"},":host[editable]":{gridTemplateColumns:`0px auto ${y.touchSize}`},":host[editable][text-entry]":{gridTemplateColumns:`0px 2fr 1fr ${y.touchSize}`},':host [part="tagContainer"]':{display:"flex",content:'" "',alignItems:"center",background:y.inputBg,borderRadius:p.tagContainerRadius(y.spacing50),boxShadow:y.borderShadow,flexWrap:"nowrap",overflow:"auto hidden",gap:y.spacing25,minHeight:`calc(${y.lineHeight} + ${y.spacing})`,padding:y.spacing25},':host [part="tagMenu"]':{width:y.touchSize,height:y.touchSize,lineHeight:y.touchSize,textAlign:"center",padding:0,margin:0},":host [hidden]":{display:"none !important"},':host button[part="tagMenu"]':{background:y.brandColor,color:y.brandTextColor}}}),_t=Q((...i)=>A5(...i),"xinTagList is deprecated, use tosiTagList instead (tag is now <tosi-tag-list>)");var P5="1.2.3";var dl={accent:z.fromCss("#EE257B"),background:z.fromCss("#fafafa"),text:z.fromCss("#222222")},H5={_tosiSpacingXs:"4px",_tosiSpacingSm:"8px",_tosiSpacing:"12px",_tosiSpacingLg:"16px",_tosiSpacingXl:"24px",_tosiFontFamily:"system-ui, -apple-system, sans-serif",_tosiFontSize:"16px",_tosiLineHeight:"1.5",_tosiCodeFontFamily:"ui-monospace, monospace",_tosiCodeFontSize:"14px",_tosiTouchSize:"44px",_tosiBorderRadius:"4px",_tosiBorderRadiusLg:"8px",_tosiTransition:"0.15s ease-out"};function Vt(i){let{accent:l,background:s,text:t}=i,r=i.accentText??l.contrasting(),o=i.backgroundInset??s.darken(0.03),e=i.border??t.opacity(0.15),h=i.shadow??t.opacity(0.1),a=i.focus??l.opacity(0.5);return{_tosiAccent:l,_tosiAccentLight:l.brighten(0.15),_tosiAccentDark:l.darken(0.15),_tosiAccentText:r,_tosiBg:s,_tosiBgInset:o,_tosiBgHover:s.darken(0.05),_tosiBgActive:s.darken(0.1),_tosiText:t,_tosiTextMuted:t.opacity(0.6),_tosiTextDisabled:t.opacity(0.4),_tosiBorder:e,_tosiBorderFocus:l,_tosiShadow:h,_tosiShadowColor:h,_tosiFocusRing:`0 0 0 2px ${a}`,_tosiInputBg:s,_tosiInputBorder:e,_tosiInputBorderFocus:l,_tosiButtonBg:s,_tosiButtonText:t,_tosiButtonBorder:e,_tosiButtonHoverBg:s.darken(0.05),_tosiButtonActiveBg:l,_tosiButtonActiveText:r}}function P0(i){return{":root":{...H5,...Vt(i)}}}function F5(i){let s=P0(i)[":root"];return{":root":L0(s)}}function qt(i,l="tosi-theme"){Z1(l,i)}var Ot=P0(dl),Ut=F5(dl),j5={"--xin-icon-size":y.tosiIconSize,"--xin-icon-fill":y.tosiIconFill,"--xin-icon-stroke":y.tosiIconStroke,"--xin-tabs-bar-color":y.tosiTabsBarColor,"--xin-tabs-bar-height":y.tosiTabsBarHeight,"--xin-tabs-selected-color":y.tosiTabsSelectedColor,"--spacing":y.tosiSpacing,"--gap":y.tosiSpacingSm,"--touch-size":y.tosiTouchSize,"--background":y.tosiBg,"--text-color":y.tosiText,"--brand-color":y.tosiAccent,"--brand-text-color":y.tosiAccentText};function $t(i){return{":root":{...P0(i)[":root"],...j5}}}function Jt(i,l){let s={};for(let[t,r]of Object.entries(l)){let o=`--tosi-${i}-${t.replace(/([A-Z])/g,"-$1").toLowerCase()}`;s[t]=`var(${o}, ${r})`}return s}Object.assign(globalThis,{xinjs:M2,xinjsui:pl});})();
97
97
 
98
- //# debugId=91FFA862E135486364756E2164756E21
98
+ //# debugId=4A512ABDE23E07E864756E2164756E21
99
99
  //# sourceMappingURL=iife.js.map