tosijs-ui 1.3.8 → 1.3.10

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,44 +1,44 @@
1
- (()=>{var di=Object.defineProperty;var pi=(l)=>l;function wi(l,i){this[l]=pi.bind(null,i)}var m0=(l,i)=>{for(var y in i)di(l,y,{get:i[y],enumerable:!0,configurable:!0,set:wi.bind(i,y)})};var f5={};m0(f5,{xrControllersText:()=>s7,xrControllers:()=>y7,xinTagList:()=>$7,xinTag:()=>H7,xinTabs:()=>p8,xinTable:()=>v6,xinSizer:()=>b7,xinSidenav:()=>K8,xinSelect:()=>D9,xinSegmented:()=>K7,xinRating:()=>B7,xinPasswordStrength:()=>a7,xinNotification:()=>k7,xinMenu:()=>g6,xinMd:()=>C8,xinLocalized:()=>L9,xinForm:()=>l7,xinFloat:()=>$9,xinField:()=>E8,xinCarousel:()=>f9,version:()=>oi,updateLocalized:()=>H4,trackDrag:()=>T,tosijs:()=>K2,tosiTagList:()=>xi,tosiTag:()=>b5,tosiTabs:()=>I2,tosiTable:()=>M4,tosiSizer:()=>hi,tosiSidenav:()=>D2,tosiSelect:()=>E,tosiSegmented:()=>yi,tosiRichText:()=>li,tosiRating:()=>Ml,tosiPasswordStrength:()=>Tl,tosiNotification:()=>U5,tosiMonth:()=>r7,tosiMenu:()=>ol,tosiMd:()=>w2,tosiLocalized:()=>z1,tosiLocalePicker:()=>D3,tosiForm:()=>el,tosiFloat:()=>G2,tosiField:()=>Il,tosiDialog:()=>q0,tosiCarousel:()=>f3,testManager:()=>i1,tabSelector:()=>d8,svgIcon:()=>K9,svg2DataUrl:()=>Q4,styleSheet:()=>n0,spacer:()=>B2,sizeBreak:()=>Q7,sideNav:()=>N8,setLocale:()=>S9,scriptTag:()=>L,runTests:()=>R0,richTextWidgets:()=>El,richText:()=>P7,rewriteImports:()=>Q1,resolveMenuItems:()=>l1,removeLastMenu:()=>J,postNotification:()=>d7,positionFloat:()=>$3,popMenu:()=>W,popFloat:()=>Z4,popDropMenu:()=>xl,parseShortcut:()=>B0,modifierKeys:()=>E9,menu:()=>sl,matchShortcut:()=>J4,markdownViewer:()=>r8,mapBox:()=>x7,makeSorter:()=>w0,localize:()=>Q,localePicker:()=>m9,loadTransform:()=>Q0,liveExample:()=>H0,legacyAliases:()=>Ci,keystroke:()=>l6,keycode:()=>T3,isBreached:()=>Sl,insertExamples:()=>f0,initLocalization:()=>M9,icons:()=>w,i18n:()=>b,gamepadText:()=>i7,gamepadState:()=>Yl,findShortcutAction:()=>S4,findHighestZ:()=>M1,filterPart:()=>J0,filterForDrop:()=>W2,filterForClick:()=>Y4,filterBuilder:()=>Y8,expect:()=>d5,executeInline:()=>b0,executeInIframe:()=>W0,executeCode:()=>Fl,enableTests:()=>a5,elastic:()=>A7,editableRect:()=>H8,dragAndDrop:()=>j0,displayShortcut:()=>t0,disableTests:()=>v5,digest:()=>Dl,defineIcons:()=>N9,defaultColors:()=>W5,dataTable:()=>a6,createThemeWithLegacy:()=>S7,createTheme:()=>M0,createTestContext:()=>p5,createSubMenu:()=>D4,createMenuItem:()=>yl,createMenuAction:()=>ll,createDropMenuItem:()=>il,createDocBrowser:()=>R8,createDarkTheme:()=>ri,componentVars:()=>T7,commandButton:()=>g1,colorInput:()=>R4,codeEditor:()=>r2,canonicalShortcut:()=>y6,bringToFront:()=>K1,bodymovinPlayer:()=>G9,blockStyle:()=>K5,baseVariables:()=>ci,baseTheme:()=>Y7,baseDarkTheme:()=>D7,b3d:()=>Q9,availableFilters:()=>z5,applyTheme:()=>e7,abTest:()=>X9,XinWord:()=>_7,XinTagList:()=>J7,XinTag:()=>Z7,XinSizer:()=>G7,XinSelect:()=>Y9,XinSegmented:()=>N7,XinRating:()=>v7,XinPasswordStrength:()=>w7,XinNotification:()=>n7,XinMenu:()=>n6,XinLocalized:()=>a0,XinForm:()=>L8,XinFloat:()=>J9,XinField:()=>m8,XinCarousel:()=>W9,TosiTagList:()=>z2,TosiTag:()=>u2,TosiTabs:()=>K0,TosiTable:()=>V0,TosiSizer:()=>T0,TosiSidenav:()=>l2,TosiSelect:()=>B1,TosiSegmented:()=>t2,TosiRating:()=>D0,TosiPasswordStrength:()=>Y0,TosiNotification:()=>f1,TosiMonth:()=>F5,TosiMenu:()=>A0,TosiMd:()=>N0,TosiLocalized:()=>t1,TosiLocalePicker:()=>v0,TosiForm:()=>I0,TosiFloat:()=>_1,TosiField:()=>$0,TosiDialog:()=>l5,TosiCarousel:()=>d0,TabSelector:()=>k8,SvgIcon:()=>G4,SizeBreak:()=>Q5,SideNav:()=>X8,STORAGE_KEY:()=>G0,RichText:()=>S0,RemoteSyncManager:()=>Y2,MarkdownViewer:()=>c8,MapBox:()=>i2,LocalePicker:()=>u9,LiveExample:()=>G1,FilterPart:()=>j5,FilterBuilder:()=>A5,EditableRect:()=>C1,DataTable:()=>w6,CodeEditor:()=>T1,BodymovinPlayer:()=>c2,B3d:()=>b4,AbTest:()=>o2});var K2={};m0(K2,{xinValue:()=>zi,xinProxy:()=>Q3,xinPath:()=>ti,xin:()=>I,warnDeprecated:()=>s1,version:()=>K3,vars:()=>n,varDefault:()=>d,validateAgainstConstraints:()=>U3,updates:()=>w3,unobserve:()=>$1,touchElement:()=>P4,touch:()=>p1,tosiValue:()=>G,tosiSetValue:()=>Bi,tosiPath:()=>h1,tosiLoader:()=>F9,tosiBlueprint:()=>P9,tosi:()=>x1,throttle:()=>U2,svgElements:()=>o0,share:()=>V9,settings:()=>s0,scrollListItemIntoView:()=>x9,onThemePreferencesChange:()=>Yi,onStylesheetChange:()=>Hi,on:()=>x2,observe:()=>q4,mathML:()=>P3,makeComponent:()=>U4,invertLuminance:()=>j4,initVars:()=>ei,hotReload:()=>n9,getThemePreferences:()=>V3,getListItem:()=>S1,getListInstance:()=>_4,getListBinding:()=>c0,getCssVar:()=>t3,elements:()=>a,deprecated:()=>D,deleteListItem:()=>s9,debounce:()=>N2,css:()=>h2,boxedProxy:()=>O4,boxed:()=>d1,blueprintLoader:()=>U9,blueprint:()=>O9,bindings:()=>q1,bind:()=>X1,StyleSheet:()=>D1,MoreMath:()=>fi,Component:()=>t,Color:()=>j,BlueprintLoader:()=>X4,Blueprint:()=>C0});function I1(l){if(l==null||typeof l!=="object")return l;if(l instanceof Set)return new Set(l);else if(Array.isArray(l))return l.map(I1);let i={};for(let y in l){let s=l[y];if(l!=null&&typeof l==="object")i[y]=I1(s);else i[y]=s}return i}var c3="-xin-data",s2=`.${c3}`,r3="-xin-event",J5=`.${r3}`,a1=Symbol.for("xin-path"),e1=Symbol.for("xin-value"),$5="xinObserve",I5="xinBind",e5="xinOn",y0=Symbol("list-binding"),P2=Symbol("list-instance"),c4=new Map;function ai(l,i){let y=c4.get(l);if(y===void 0)y=new Set,c4.set(l,y);y.add(i)}function vi(l){return c4.get(l)}var Y5=new Set;function s1(l,i){if(!Y5.has(l))console.warn(i),Y5.add(l)}function D(l,i){let y=!1;return(...s)=>{if(!y)console.warn(i),y=!0;return l(...s)}}var h1=(l)=>{return l&&l[a1]||void 0};function G(l){if(typeof l==="object"&&l!==null){let i=l[e1];return i!==void 0?i:l}return l}function Bi(l,i){if(h1(l)===void 0)throw Error("tosiSetValue requires a xin or boxed proxy");l[e1]=i}var ti=D(h1,"xinPath is deprecated. Use tosiPath instead."),zi=D(G,"xinValue is deprecated. Use tosiValue instead."),F2=new WeakMap,Y1=new WeakMap,O2=(l)=>{let i=l.cloneNode();if(i instanceof Element){let y=Y1.get(l),s=F2.get(l);if(y!=null)Y1.set(i,I1(y));if(s!=null)F2.set(i,I1(s))}for(let y of Array.from(l instanceof HTMLTemplateElement?l.content.childNodes:l.childNodes))if(y instanceof Element||y instanceof DocumentFragment)i.appendChild(O2(y));else i.appendChild(y.cloneNode());return i},s0={debug:!1,perf:!1},ji=(l)=>{try{return JSON.stringify(l)}catch(i){return"{has circular references}"}},C3=(...l)=>Error(l.map(ji).join(" ")),Ai=()=>new Date(parseInt("1000000000",36)+Date.now()).valueOf().toString(36).slice(1),Vi=0,qi=()=>(parseInt("10000",36)+ ++Vi).toString(36).slice(-5),_i=()=>Ai()+qi(),r4=Symbol("delete"),g3=Symbol("new-object"),L0=Symbol("automatic-index");function n3(l){if(l==="")return[];if(Array.isArray(l))return l;else{let i=[];while(l.length>0){let y=l.search(/\[[^\]]+\]/);if(y===-1){i.push(l.split("."));break}else{let s=l.slice(0,y);if(l=l.slice(y),s!=="")i.push(s.split("."));if(y=l.indexOf("]")+1,i.push(l.slice(1,y-1)),l.slice(y,y+1)===".")y+=1;l=l.slice(y)}}return i}}var V1=new WeakMap;function k3(l,i){if(V1.get(l)===void 0)V1.set(l,{});if(V1.get(l)[i]===void 0)V1.get(l)[i]={};let y=V1.get(l)[i];if(i==="_auto_")l.forEach((s,h)=>{if(s[L0]===void 0)s[L0]=_i();y[s[L0]+""]=h});else l.forEach((s,h)=>{y[S(s,i)+""]=h});return y}function Pi(l,i){if(V1.get(l)===void 0||V1.get(l)[i]===void 0)return k3(l,i);else return V1.get(l)[i]}function Fi(l,i,y){y=y+"";let s=Pi(l,i)[y];if(s===void 0||S(l[s],i)+""!==y)s=k3(l,i)[y];return s}function Oi(l,i,y){if(l[i]===void 0&&y!==void 0)l[i]=y;return l[i]}function d3(l,i,y,s){let h=i!==""?Fi(l,i,y):y;if(s===r4)return l.splice(h,1),V1.delete(l),Symbol("deleted");else if(s===g3){if(i===""&&l[h]===void 0)l[h]={}}else if(s!==void 0)if(h!==void 0)l[h]=s;else if(i!==""&&S(s,i)+""===y+"")l.push(s),h=l.length-1;else throw Error(`byIdPath insert failed at [${i}=${y}]`);return l[h]}function D5(l){if(!Array.isArray(l))throw C3("setByPath failed: expected array, found",l)}function S5(l){if(l==null||!(l instanceof Object))throw C3("setByPath failed: expected Object, found",l)}function S(l,i){let y=n3(i),s=l,h,x,o,c;for(h=0,x=y.length;s!==void 0&&h<x;h++){let r=y[h];if(Array.isArray(r))for(o=0,c=r.length;s!==void 0&&o<c;o++){let C=r[o];s=s[C]}else if(s.length===0){if(s=s[Number(r.slice(1))],r[0]!=="=")return}else if(r.includes("=")){let[C,...g]=r.split("=");s=d3(s,C,g.join("="))}else o=parseInt(r,10),s=s[o]}return s}function t4(l,i,y){let s=l;if(i==="")throw Error("setByPath cannot be used to set the root object");let h=n3(i);while(s!=null&&h.length>0){let x=h.shift();if(typeof x==="string"){let o=x.indexOf("=");if(o>-1){if(o===0)S5(s);else D5(s);let c=x.slice(0,o),r=x.slice(o+1);if(s=d3(s,c,r,h.length>0?g3:y),h.length===0)return!0}else{D5(s);let c=parseInt(x,10);if(h.length>0)s=s[c];else{if(y!==r4){if(s[c]===y)return!1;s[c]=y}else s.splice(c,1);return!0}}}else if(Array.isArray(x)&&x.length>0){S5(s);while(x.length>0){let o=x.shift();if(x.length>0||h.length>0)s=Oi(s,o,x.length>0?{}:[]);else{if(y!==r4){if(s[o]===y)return!1;s[o]=y}else{if(!Object.prototype.hasOwnProperty.call(s,o))return!1;delete s[o]}return!0}}}else throw Error(`setByPath failed, bad path ${i}`)}throw Error(`setByPath(${l}, ${i}, ${y}) failed`)}var v1={},C4=null,Ui=(l)=>{C4=l},z4=()=>{if(C4===null)throw Error("xin proxy not initialized");return C4},g4=null,n4=null,Xi=(l,i)=>{g4=l,n4=i},L2=()=>{if(g4===null)throw Error("bind not initialized");return g4},E2=()=>{if(n4===null)throw Error("on not initialized");return n4},T5=Symbol("observer should be removed"),h0=[],y2=[],k4=!1,d4,p4;function Ni(l,i,y,s){let h=vi(l);if(h===void 0)return[];let x=[];for(let o of h){let c=S(y,o);if(c!==void 0)x.push(`${l}[${o}=${c}]${s}`)}return x}class p3{description;test;callback;constructor(l,i){let y=typeof i==="string"?`"${i}"`:`function ${i.name}`,s;if(typeof l==="string")this.test=(h)=>typeof h==="string"&&h!==""&&(l.startsWith(h)||h.startsWith(l)),s=`test = "${l}"`;else if(l instanceof RegExp)this.test=l.test.bind(l),s=`test = "${l.toString()}"`;else if(l instanceof Function)this.test=l,s=`test = function ${l.name}`;else throw Error("expect listener test to be a string, RegExp, or test function");if(this.description=`${s}, ${y}`,typeof i==="function")this.callback=i;else throw Error("expect callback to be a path or function");h0.push(this)}}var w3=async()=>{if(d4===void 0)return;await d4},Ki=()=>{if(s0.perf)console.time("xin async update");let l=Array.from(y2);y2.length=0,k4=!1;for(let i of l)h0.filter((y)=>{let s;try{s=y.test(i)}catch(h){throw Error(`Listener ${y.description} threw "${h}" at "${i}"`)}if(s===T5)return $1(y),!1;return s}).forEach((y)=>{let s;try{s=y.callback(i)}catch(h){console.error(`Listener ${y.description} threw "${h}" handling "${i}"`)}if(s===T5)$1(y)});if(typeof p4==="function")p4();if(s0.perf)console.timeEnd("xin async update")},p1=(l)=>{let i=typeof l==="string"?l:h1(l);if(i===void 0)throw console.error("touch was called on an invalid target",l),Error("touch was called on an invalid target");if(k4===!1)d4=new Promise((s)=>{p4=s}),k4=setTimeout(Ki);if(y2.find((s)=>i.startsWith(s))==null)y2.push(i);let y=i.match(/^(.+)\[(\d+)\](.*)$/);if(y!==null){let[,s,h,x]=y,o=parseInt(h,10),c=S(v1,`${s}[${o}]`);if(c!=null){let r=Ni(s,o,c,x);for(let C of r)if(y2.find((g)=>C.startsWith(g))==null)y2.push(C)}}},J1=(l,i)=>{return new p3(l,i)},$1=(l)=>{let i=h0.indexOf(l);if(i>-1)h0.splice(i,1);else throw Error("unobserve failed, listener not found")},a3=(l,i)=>{let y=new Event(i);l.dispatchEvent(y)},v3=(l)=>{if(l instanceof HTMLInputElement)return l.type;else if(l instanceof HTMLSelectElement&&l.hasAttribute("multiple"))return"multi-select";else return"other"},Qi=(l,i)=>{switch(v3(l)){case"radio":l.checked=l.value===i;break;case"checkbox":l.checked=!!i;break;case"date":l.valueAsDate=new Date(i);break;case"multi-select":for(let y of Array.from(l.querySelectorAll("option")))y.selected=i[y.value];break;default:l.value=i}},Gi=(l)=>{switch(v3(l)){case"radio":{let i=l.parentElement?.querySelector(`[name="${l.name}"]:checked`);return i!=null?i.value:null}case"checkbox":return l.checked;case"date":return l.valueAsDate?.toISOString();case"multi-select":return Array.from(l.querySelectorAll("option")).reduce((i,y)=>{return i[y.value]=y.selected,i},{});default:return l.value}},{ResizeObserver:M5}=globalThis,w4=M5!=null?new M5((l)=>{for(let i of l){let y=i.target;a3(y,"resize")}}):{observe(){},unobserve(){}},u5=(l,i,y=!0)=>{if(l!=null&&i!=null)if(typeof i==="string")l.textContent=i;else if(Array.isArray(i))i.forEach((s)=>{l.append(s instanceof Node&&y?O2(s):s)});else if(i instanceof Node)l.append(y?O2(i):i);else throw Error("expect text content or document node")},N2=(l,i=250)=>{let y;return(...s)=>{if(y!==void 0)clearTimeout(y);y=setTimeout(()=>{l(...s)},i)}},U2=(l,i=250)=>{let y,s=Date.now()-i,h=!1;return(...x)=>{if(clearTimeout(y),y=setTimeout(()=>{l(...x),s=Date.now()},i),!h&&Date.now()-s>=i){h=!0;try{l(...x),s=Date.now()}finally{h=!1}}}},q1={value:{toDOM:Qi,fromDOM(l){return Gi(l)}},text:{toDOM(l,i){l.textContent=i}},enabled:{toDOM(l,i){l.disabled=!i}},disabled:{toDOM(l,i){l.disabled=Boolean(i)}},list:{toDOM(l,i,y){c0(l,i,y).update(i)}}};function w1(l){return l.replace(/[A-Z]/g,(i)=>{return`-${i.toLocaleLowerCase()}`})}function B3(l){return l.replace(/-([a-z])/g,(i,y)=>{return y.toLocaleUpperCase()})}var bi=180/Math.PI,Wi=Math.PI/180;function k1(l,i,y){return y<l?NaN:i<l?l:i>y?y:i}function F1(l,i,y,s=!0){if(s)y=k1(0,y,1);return y*(i-l)+l}var fi={RADIANS_TO_DEGREES:bi,DEGREES_TO_RADIANS:Wi,clamp:k1,lerp:F1};function t3(l,i=document.body){let y=getComputedStyle(i);if(l.endsWith(")")&&l.startsWith("var("))l=l.slice(4,-1);return y.getPropertyValue(l).trim()}var Ri=(l,i,y)=>{return(0.299*l+0.587*i+0.114*y)/255},R1=(l)=>("00"+Math.round(Number(l)).toString(16)).slice(-2);class z3{h;s;l;constructor(l,i,y){l/=255,i/=255,y/=255;let s=Math.max(l,i,y),h=s-Math.min(l,i,y),x=h!==0?s===l?(i-y)/h:s===i?2+(y-l)/h:4+(l-i)/h:0;this.h=60*x<0?60*x+360:60*x,this.s=h!==0?s<=0.5?h/(2*s-h):h/(2-(2*s-h)):0,this.l=(2*s-h)/2}}var O1=globalThis.document!==void 0?globalThis.document.createElement("span"):void 0;if(O1)O1.style.display="none";class j{r;g;b;a;static fromVar(l,i=document.body){return j.fromCss(t3(l,i))}static fromCss(l){let i=l.match(/^#([0-9a-fA-F]+)$/);if(i){let r=i[1];if(r.length===3)return new j(parseInt(r[0]+r[0],16),parseInt(r[1]+r[1],16),parseInt(r[2]+r[2],16));if(r.length===4)return new j(parseInt(r[0]+r[0],16),parseInt(r[1]+r[1],16),parseInt(r[2]+r[2],16),parseInt(r[3]+r[3],16)/255);if(r.length===6)return new j(parseInt(r.slice(0,2),16),parseInt(r.slice(2,4),16),parseInt(r.slice(4,6),16));if(r.length===8)return new j(parseInt(r.slice(0,2),16),parseInt(r.slice(2,4),16),parseInt(r.slice(4,6),16),parseInt(r.slice(6,8),16)/255)}let y=l;if(O1 instanceof HTMLSpanElement)O1.style.color="black",O1.style.color=l,document.body.appendChild(O1),y=getComputedStyle(O1).color,O1.remove();let[s,h,x,o]=y.match(/[\d.]+/g)||["0","0","0","0"],c=y.startsWith("color(srgb")?255:1;return new j(Number(s)*c,Number(h)*c,Number(x)*c,o==null?1:Number(o))}static fromHsl(l,i,y,s=1){let h,x,o;if(i===0)h=x=o=y;else{let r=(p,z,v)=>{if(v<0)v+=1;if(v>1)v-=1;if(v<0.16666666666666666)return p+(z-p)*6*v;if(v<0.5)return z;if(v<0.6666666666666666)return p+(z-p)*(0.6666666666666666-v)*6;return p},C=y<0.5?y*(1+i):y+i-y*i,g=2*y-C,k=(l%360+360)%360/360;h=r(g,C,k+0.3333333333333333),x=r(g,C,k),o=r(g,C,k-0.3333333333333333)}let c=new j(h*255,x*255,o*255,s);return c.hslCached={h:(l%360+360)%360,s:i,l:y},c}static black=new j(0,0,0);static white=new j(255,255,255);constructor(l,i,y,s=1){this.r=k1(0,l,255),this.g=k1(0,i,255),this.b=k1(0,y,255),this.a=k1(0,s,1)}get inverse(){return new j(255-this.r,255-this.g,255-this.b,this.a)}get inverseLuminance(){let{h:l,s:i,l:y}=this._hsl;return j.fromHsl(l,i,1-y,this.a)}get opaque(){return this.a===1?this:new j(this.r,this.g,this.b,1)}contrasting(l=1){return this.opaque.blend(this.brightness>0.5?j.black:j.white,l)}get rgb(){let{r:l,g:i,b:y}=this;return`rgb(${l.toFixed(0)},${i.toFixed(0)},${y.toFixed(0)})`}get rgba(){let{r:l,g:i,b:y,a:s}=this;return`rgba(${l.toFixed(0)},${i.toFixed(0)},${y.toFixed(0)},${s.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 z3(this.r,this.g,this.b);return this.hslCached}get hsl(){let{h:l,s:i,l:y}=this._hsl;return`hsl(${l.toFixed(0)}deg ${(i*100).toFixed(0)}% ${(y*100).toFixed(0)}%)`}get hsla(){let{h:l,s:i,l:y}=this._hsl;return`hsl(${l.toFixed(0)}deg ${(i*100).toFixed(0)}% ${(y*100).toFixed(0)}% / ${(this.a*100).toFixed(0)}%)`}get mono(){let l=this.brightness*255;return new j(l,l,l)}get brightness(){return Ri(this.r,this.g,this.b)}get html(){return this.toString()}toString(){return this.a===1?"#"+R1(this.r)+R1(this.g)+R1(this.b):"#"+R1(this.r)+R1(this.g)+R1(this.b)+R1(Math.floor(255*this.a))}brighten(l){let{h:i,s:y,l:s}=this._hsl,h=k1(0,s+l*(1-s),1);return j.fromHsl(i,y,h,this.a)}darken(l){let{h:i,s:y,l:s}=this._hsl,h=k1(0,s*(1-l),1);return j.fromHsl(i,y,h,this.a)}saturate(l){let{h:i,s:y,l:s}=this._hsl,h=k1(0,y+l*(1-y),1);return j.fromHsl(i,h,s,this.a)}desaturate(l){let{h:i,s:y,l:s}=this._hsl,h=k1(0,y*(1-l),1);return j.fromHsl(i,h,s,this.a)}rotate(l){let{h:i,s:y,l:s}=this._hsl,h=(i+360+l)%360;return j.fromHsl(h,y,s,this.a)}opacity(l){let{h:i,s:y,l:s}=this._hsl;return j.fromHsl(i,y,s,l)}swatch(){return console.log(`%c %c ${this.html}, ${this.rgba}`,`background-color: ${this.html}`,"background-color: transparent"),this}blend(l,i){return new j(F1(this.r,l.r,i),F1(this.g,l.g,i),F1(this.b,l.b,i),F1(this.a,l.a,i))}static blendHue(l,i,y){let s=(i-l+720)%360;if(s<180)return l+y*s;else return l-(360-s)*y}mix(l,i){let y=this._hsl,s=l._hsl;return j.fromHsl(y.s===0?s.h:s.s===0?y.h:j.blendHue(y.h,s.h,i),F1(y.s,s.s,i),F1(y.l,s.l,i),F1(this.a,l.a,i))}colorMix(l,i){return j.fromCss(`color-mix(in hsl, ${this.html}, ${l.html} ${(i*100).toFixed(0)}%)`)}static computedColorStylesheet=null;static computedColors=new Map;static recomputeQueued=!1;static registerComputedColor(l,i,y,s){if(!j.computedColors.has(l))j.computedColors.set(l,{varName:i,scale:y,method:s}),j.queueRecompute()}static queueRecompute(){if(j.recomputeQueued)return;j.recomputeQueued=!0,queueMicrotask(()=>{j.recomputeQueued=!1,j.recomputeColors()})}static recomputeColors(){if(j.computedColors.size===0)return;let l=[];for(let[y,{varName:s,scale:h,method:x}]of j.computedColors)try{let o=j.fromVar(s),c;switch(x){case"b":c=h>0?o.brighten(h):o.darken(-h);break;case"s":c=h>0?o.saturate(h):o.desaturate(-h);break;case"h":c=o.rotate(h*100);break;case"o":c=o.opacity(h);break;default:continue}l.push(` ${y}: ${c.rgba};`)}catch(o){}if(l.length===0)return;let i=`:root {
1
+ (()=>{var pi=Object.defineProperty;var wi=(l)=>l;function ai(l,i){this[l]=wi.bind(null,i)}var m0=(l,i)=>{for(var y in i)pi(l,y,{get:i[y],enumerable:!0,configurable:!0,set:ai.bind(i,y)})};var f5={};m0(f5,{xrControllersText:()=>h7,xrControllers:()=>s7,xinTagList:()=>I7,xinTag:()=>J7,xinTabs:()=>w8,xinTable:()=>B6,xinSizer:()=>W7,xinSidenav:()=>Q8,xinSelect:()=>e9,xinSegmented:()=>Q7,xinRating:()=>t7,xinPasswordStrength:()=>v7,xinNotification:()=>d7,xinMenu:()=>k6,xinMd:()=>g8,xinLocalized:()=>E9,xinForm:()=>i7,xinFloat:()=>I9,xinField:()=>l7,xinCarousel:()=>R9,version:()=>ci,updateLocalized:()=>H4,trackDrag:()=>T,tosijs:()=>K2,tosiTagList:()=>oi,tosiTag:()=>b5,tosiTabs:()=>I2,tosiTable:()=>M4,tosiSizer:()=>xi,tosiSidenav:()=>S2,tosiSelect:()=>E,tosiSegmented:()=>si,tosiRichText:()=>ii,tosiRating:()=>ul,tosiPasswordStrength:()=>Ml,tosiNotification:()=>U5,tosiMonth:()=>C7,tosiMenu:()=>ol,tosiMd:()=>w2,tosiLocalized:()=>z1,tosiLocalePicker:()=>S3,tosiForm:()=>Dl,tosiFloat:()=>G2,tosiField:()=>Yl,tosiDialog:()=>q0,tosiCarousel:()=>f3,testManager:()=>i1,tabSelector:()=>p8,svgIcon:()=>Q9,svg2DataUrl:()=>Q4,styleSheet:()=>k0,spacer:()=>B2,sizeBreak:()=>G7,sideNav:()=>K8,setLocale:()=>T9,scriptTag:()=>L,runTests:()=>R0,richTextWidgets:()=>li,richText:()=>F7,rewriteImports:()=>Q1,resolveMenuItems:()=>l1,removeLastMenu:()=>J,postNotification:()=>p7,positionFloat:()=>$3,popMenu:()=>W,popFloat:()=>Z4,popDropMenu:()=>xl,parseShortcut:()=>B0,modifierKeys:()=>l6,menu:()=>sl,matchShortcut:()=>J4,markdownViewer:()=>C8,mapBox:()=>o7,makeSorter:()=>w0,localize:()=>Q,localePicker:()=>L9,loadTransform:()=>Q0,liveExample:()=>H0,legacyAliases:()=>gi,keystroke:()=>i6,keycode:()=>T3,isBreached:()=>Tl,insertExamples:()=>f0,initLocalization:()=>u9,icons:()=>w,i18n:()=>b,gamepadText:()=>y7,gamepadState:()=>Sl,findShortcutAction:()=>e4,findHighestZ:()=>M1,filterPart:()=>J0,filterForDrop:()=>W2,filterForClick:()=>D4,filterBuilder:()=>S8,expect:()=>d5,executeInline:()=>b0,executeInIframe:()=>W0,executeCode:()=>Fl,enableTests:()=>a5,elastic:()=>V7,editableRect:()=>J8,dragAndDrop:()=>j0,displayShortcut:()=>t0,disableTests:()=>v5,digest:()=>el,defineIcons:()=>K9,defaultColors:()=>W5,dataTable:()=>v6,createThemeWithLegacy:()=>T7,createTheme:()=>M0,createTestContext:()=>p5,createSubMenu:()=>S4,createMenuItem:()=>yl,createMenuAction:()=>ll,createDropMenuItem:()=>il,createDocBrowser:()=>Z8,createDarkTheme:()=>Ci,componentVars:()=>M7,commandButton:()=>g1,colorInput:()=>R4,codeEditor:()=>r2,canonicalShortcut:()=>s6,bringToFront:()=>K1,bodymovinPlayer:()=>b9,blockStyle:()=>K5,baseVariables:()=>ri,baseTheme:()=>S7,baseDarkTheme:()=>e7,b3d:()=>G9,availableFilters:()=>z5,applyTheme:()=>D7,abTest:()=>N9,XinWord:()=>P7,XinTagList:()=>$7,XinTag:()=>H7,XinSizer:()=>b7,XinSelect:()=>S9,XinSegmented:()=>K7,XinRating:()=>B7,XinPasswordStrength:()=>a7,XinNotification:()=>n7,XinMenu:()=>n6,XinLocalized:()=>a0,XinForm:()=>E8,XinFloat:()=>$9,XinField:()=>L8,XinCarousel:()=>f9,TosiTagList:()=>z2,TosiTag:()=>u2,TosiTabs:()=>K0,TosiTable:()=>V0,TosiSizer:()=>T0,TosiSidenav:()=>l2,TosiSelect:()=>B1,TosiSegmented:()=>t2,TosiRating:()=>S0,TosiPasswordStrength:()=>D0,TosiNotification:()=>f1,TosiMonth:()=>F5,TosiMenu:()=>A0,TosiMd:()=>N0,TosiLocalized:()=>t1,TosiLocalePicker:()=>v0,TosiForm:()=>I0,TosiFloat:()=>_1,TosiField:()=>$0,TosiDialog:()=>l5,TosiCarousel:()=>d0,TabSelector:()=>d8,SvgIcon:()=>G4,SizeBreak:()=>Q5,SideNav:()=>N8,STORAGE_KEY:()=>G0,RichText:()=>e0,RemoteSyncManager:()=>D2,MarkdownViewer:()=>r8,MapBox:()=>i2,LocalePicker:()=>m9,LiveExample:()=>G1,FilterPart:()=>j5,FilterBuilder:()=>A5,EditableRect:()=>C1,DataTable:()=>a6,CodeEditor:()=>T1,BodymovinPlayer:()=>c2,B3d:()=>b4,AbTest:()=>o2});var K2={};m0(K2,{xinValue:()=>ji,xinProxy:()=>Q3,xinPath:()=>zi,xin:()=>I,warnDeprecated:()=>s1,version:()=>K3,vars:()=>k,varDefault:()=>d,validateAgainstConstraints:()=>U3,updates:()=>w3,unobserve:()=>$1,touchElement:()=>P4,touch:()=>p1,tosiValue:()=>G,tosiSetValue:()=>ti,tosiPath:()=>h1,tosiLoader:()=>O9,tosiBlueprint:()=>F9,tosi:()=>x1,throttle:()=>U2,svgElements:()=>o0,share:()=>q9,settings:()=>s0,scrollListItemIntoView:()=>o9,onThemePreferencesChange:()=>Si,onStylesheetChange:()=>Ji,on:()=>x2,observe:()=>q4,mathML:()=>P3,makeComponent:()=>U4,invertLuminance:()=>j4,initVars:()=>Di,hotReload:()=>n9,getThemePreferences:()=>V3,getListItem:()=>e1,getListInstance:()=>_4,getListBinding:()=>c0,getCssVar:()=>t3,elements:()=>v,deprecated:()=>S,deleteListItem:()=>h9,debounce:()=>N2,css:()=>h2,boxedProxy:()=>O4,boxed:()=>d1,blueprintLoader:()=>X9,blueprint:()=>U9,bindings:()=>q1,bind:()=>X1,StyleSheet:()=>S1,MoreMath:()=>Ri,Component:()=>t,Color:()=>j,BlueprintLoader:()=>X4,Blueprint:()=>C0});function I1(l){if(l==null||typeof l!=="object")return l;if(l instanceof Set)return new Set(l);else if(Array.isArray(l))return l.map(I1);let i={};for(let y in l){let s=l[y];if(l!=null&&typeof l==="object")i[y]=I1(s);else i[y]=s}return i}var c3="-xin-data",s2=`.${c3}`,r3="-xin-event",J5=`.${r3}`,a1=Symbol.for("xin-path"),Y1=Symbol.for("xin-value"),$5="xinObserve",I5="xinBind",Y5="xinOn",y0=Symbol("list-binding"),P2=Symbol("list-instance"),c4=new Map;function vi(l,i){let y=c4.get(l);if(y===void 0)y=new Set,c4.set(l,y);y.add(i)}function Bi(l){return c4.get(l)}var D5=new Set;function s1(l,i){if(!D5.has(l))console.warn(i),D5.add(l)}function S(l,i){let y=!1;return(...s)=>{if(!y)console.warn(i),y=!0;return l(...s)}}var h1=(l)=>{return l&&l[a1]||void 0};function G(l){if(typeof l==="object"&&l!==null){let i=l[Y1];return i!==void 0?i:l}return l}function ti(l,i){if(h1(l)===void 0)throw Error("tosiSetValue requires a xin or boxed proxy");l[Y1]=i}var zi=S(h1,"xinPath is deprecated. Use tosiPath instead."),ji=S(G,"xinValue is deprecated. Use tosiValue instead."),F2=new WeakMap,D1=new WeakMap,O2=(l)=>{let i=l.cloneNode();if(i instanceof Element){let y=D1.get(l),s=F2.get(l);if(y!=null)D1.set(i,I1(y));if(s!=null)F2.set(i,I1(s))}for(let y of Array.from(l instanceof HTMLTemplateElement?l.content.childNodes:l.childNodes))if(y instanceof Element||y instanceof DocumentFragment)i.appendChild(O2(y));else i.appendChild(y.cloneNode());return i},s0={debug:!1,perf:!1},Ai=(l)=>{try{return JSON.stringify(l)}catch(i){return"{has circular references}"}},C3=(...l)=>Error(l.map(Ai).join(" ")),Vi=()=>new Date(parseInt("1000000000",36)+Date.now()).valueOf().toString(36).slice(1),qi=0,_i=()=>(parseInt("10000",36)+ ++qi).toString(36).slice(-5),Pi=()=>Vi()+_i(),r4=Symbol("delete"),g3=Symbol("new-object"),L0=Symbol("automatic-index");function k3(l){if(l==="")return[];if(Array.isArray(l))return l;else{let i=[];while(l.length>0){let y=l.search(/\[[^\]]+\]/);if(y===-1){i.push(l.split("."));break}else{let s=l.slice(0,y);if(l=l.slice(y),s!=="")i.push(s.split("."));if(y=l.indexOf("]")+1,i.push(l.slice(1,y-1)),l.slice(y,y+1)===".")y+=1;l=l.slice(y)}}return i}}var V1=new WeakMap;function n3(l,i){if(V1.get(l)===void 0)V1.set(l,{});if(V1.get(l)[i]===void 0)V1.get(l)[i]={};let y=V1.get(l)[i];if(i==="_auto_")l.forEach((s,h)=>{if(s[L0]===void 0)s[L0]=Pi();y[s[L0]+""]=h});else l.forEach((s,h)=>{y[e(s,i)+""]=h});return y}function Fi(l,i){if(V1.get(l)===void 0||V1.get(l)[i]===void 0)return n3(l,i);else return V1.get(l)[i]}function Oi(l,i,y){y=y+"";let s=Fi(l,i)[y];if(s===void 0||e(l[s],i)+""!==y)s=n3(l,i)[y];return s}function Ui(l,i,y){if(l[i]===void 0&&y!==void 0)l[i]=y;return l[i]}function d3(l,i,y,s){let h=i!==""?Oi(l,i,y):y;if(s===r4)return l.splice(h,1),V1.delete(l),Symbol("deleted");else if(s===g3){if(i===""&&l[h]===void 0)l[h]={}}else if(s!==void 0)if(h!==void 0)l[h]=s;else if(i!==""&&e(s,i)+""===y+"")l.push(s),h=l.length-1;else throw Error(`byIdPath insert failed at [${i}=${y}]`);return l[h]}function S5(l){if(!Array.isArray(l))throw C3("setByPath failed: expected array, found",l)}function e5(l){if(l==null||!(l instanceof Object))throw C3("setByPath failed: expected Object, found",l)}function e(l,i){let y=k3(i),s=l,h,x,o,c;for(h=0,x=y.length;s!==void 0&&h<x;h++){let r=y[h];if(Array.isArray(r))for(o=0,c=r.length;s!==void 0&&o<c;o++){let C=r[o];s=s[C]}else if(s.length===0){if(s=s[Number(r.slice(1))],r[0]!=="=")return}else if(r.includes("=")){let[C,...g]=r.split("=");s=d3(s,C,g.join("="))}else o=parseInt(r,10),s=s[o]}return s}function t4(l,i,y){let s=l;if(i==="")throw Error("setByPath cannot be used to set the root object");let h=k3(i);while(s!=null&&h.length>0){let x=h.shift();if(typeof x==="string"){let o=x.indexOf("=");if(o>-1){if(o===0)e5(s);else S5(s);let c=x.slice(0,o),r=x.slice(o+1);if(s=d3(s,c,r,h.length>0?g3:y),h.length===0)return!0}else{S5(s);let c=parseInt(x,10);if(h.length>0)s=s[c];else{if(y!==r4){if(s[c]===y)return!1;s[c]=y}else s.splice(c,1);return!0}}}else if(Array.isArray(x)&&x.length>0){e5(s);while(x.length>0){let o=x.shift();if(x.length>0||h.length>0)s=Ui(s,o,x.length>0?{}:[]);else{if(y!==r4){if(s[o]===y)return!1;s[o]=y}else{if(!Object.prototype.hasOwnProperty.call(s,o))return!1;delete s[o]}return!0}}}else throw Error(`setByPath failed, bad path ${i}`)}throw Error(`setByPath(${l}, ${i}, ${y}) failed`)}var v1={},C4=null,Xi=(l)=>{C4=l},z4=()=>{if(C4===null)throw Error("xin proxy not initialized");return C4},g4=null,k4=null,Ni=(l,i)=>{g4=l,k4=i},L2=()=>{if(g4===null)throw Error("bind not initialized");return g4},E2=()=>{if(k4===null)throw Error("on not initialized");return k4},T5=Symbol("observer should be removed"),h0=[],y2=[],n4=!1,d4,p4;function Ki(l,i,y,s){let h=Bi(l);if(h===void 0)return[];let x=[];for(let o of h){let c=e(y,o);if(c!==void 0)x.push(`${l}[${o}=${c}]${s}`)}return x}class p3{description;test;callback;constructor(l,i){let y=typeof i==="string"?`"${i}"`:`function ${i.name}`,s;if(typeof l==="string")this.test=(h)=>typeof h==="string"&&h!==""&&(l.startsWith(h)||h.startsWith(l)),s=`test = "${l}"`;else if(l instanceof RegExp)this.test=l.test.bind(l),s=`test = "${l.toString()}"`;else if(l instanceof Function)this.test=l,s=`test = function ${l.name}`;else throw Error("expect listener test to be a string, RegExp, or test function");if(this.description=`${s}, ${y}`,typeof i==="function")this.callback=i;else throw Error("expect callback to be a path or function");h0.push(this)}}var w3=async()=>{if(d4===void 0)return;await d4},Qi=()=>{if(s0.perf)console.time("xin async update");let l=Array.from(y2);y2.length=0,n4=!1;for(let i of l)h0.filter((y)=>{let s;try{s=y.test(i)}catch(h){throw Error(`Listener ${y.description} threw "${h}" at "${i}"`)}if(s===T5)return $1(y),!1;return s}).forEach((y)=>{let s;try{s=y.callback(i)}catch(h){console.error(`Listener ${y.description} threw "${h}" handling "${i}"`)}if(s===T5)$1(y)});if(typeof p4==="function")p4();if(s0.perf)console.timeEnd("xin async update")},p1=(l)=>{let i=typeof l==="string"?l:h1(l);if(i===void 0)throw console.error("touch was called on an invalid target",l),Error("touch was called on an invalid target");if(n4===!1)d4=new Promise((s)=>{p4=s}),n4=setTimeout(Qi);if(y2.find((s)=>i.startsWith(s))==null)y2.push(i);let y=i.match(/^(.+)\[(\d+)\](.*)$/);if(y!==null){let[,s,h,x]=y,o=parseInt(h,10),c=e(v1,`${s}[${o}]`);if(c!=null){let r=Ki(s,o,c,x);for(let C of r)if(y2.find((g)=>C.startsWith(g))==null)y2.push(C)}}},J1=(l,i)=>{return new p3(l,i)},$1=(l)=>{let i=h0.indexOf(l);if(i>-1)h0.splice(i,1);else throw Error("unobserve failed, listener not found")},a3=(l,i)=>{let y=new Event(i);l.dispatchEvent(y)},v3=(l)=>{if(l instanceof HTMLInputElement)return l.type;else if(l instanceof HTMLSelectElement&&l.hasAttribute("multiple"))return"multi-select";else return"other"},Gi=(l,i)=>{switch(v3(l)){case"radio":l.checked=l.value===i;break;case"checkbox":l.checked=!!i;break;case"date":l.valueAsDate=new Date(i);break;case"multi-select":for(let y of Array.from(l.querySelectorAll("option")))y.selected=i[y.value];break;default:l.value=i}},bi=(l)=>{switch(v3(l)){case"radio":{let i=l.parentElement?.querySelector(`[name="${l.name}"]:checked`);return i!=null?i.value:null}case"checkbox":return l.checked;case"date":return l.valueAsDate?.toISOString();case"multi-select":return Array.from(l.querySelectorAll("option")).reduce((i,y)=>{return i[y.value]=y.selected,i},{});default:return l.value}},{ResizeObserver:M5}=globalThis,w4=M5!=null?new M5((l)=>{for(let i of l){let y=i.target;a3(y,"resize")}}):{observe(){},unobserve(){}},u5=(l,i,y=!0)=>{if(l!=null&&i!=null)if(typeof i==="string")l.textContent=i;else if(Array.isArray(i))i.forEach((s)=>{l.append(s instanceof Node&&y?O2(s):s)});else if(i instanceof Node)l.append(y?O2(i):i);else throw Error("expect text content or document node")},N2=(l,i=250)=>{let y;return(...s)=>{if(y!==void 0)clearTimeout(y);y=setTimeout(()=>{l(...s)},i)}},U2=(l,i=250)=>{let y,s=Date.now()-i,h=!1;return(...x)=>{if(clearTimeout(y),y=setTimeout(()=>{l(...x),s=Date.now()},i),!h&&Date.now()-s>=i){h=!0;try{l(...x),s=Date.now()}finally{h=!1}}}},q1={value:{toDOM:Gi,fromDOM(l){return bi(l)}},text:{toDOM(l,i){l.textContent=i}},enabled:{toDOM(l,i){l.disabled=!i}},disabled:{toDOM(l,i){l.disabled=Boolean(i)}},list:{toDOM(l,i,y){c0(l,i,y).update(i)}}};function w1(l){return l.replace(/[A-Z]/g,(i)=>{return`-${i.toLocaleLowerCase()}`})}function B3(l){return l.replace(/-([a-z])/g,(i,y)=>{return y.toLocaleUpperCase()})}var Wi=180/Math.PI,fi=Math.PI/180;function n1(l,i,y){return y<l?NaN:i<l?l:i>y?y:i}function F1(l,i,y,s=!0){if(s)y=n1(0,y,1);return y*(i-l)+l}var Ri={RADIANS_TO_DEGREES:Wi,DEGREES_TO_RADIANS:fi,clamp:n1,lerp:F1};function t3(l,i=document.body){let y=getComputedStyle(i);if(l.endsWith(")")&&l.startsWith("var("))l=l.slice(4,-1);return y.getPropertyValue(l).trim()}var Zi=(l,i,y)=>{return(0.299*l+0.587*i+0.114*y)/255},R1=(l)=>("00"+Math.round(Number(l)).toString(16)).slice(-2);class z3{h;s;l;constructor(l,i,y){l/=255,i/=255,y/=255;let s=Math.max(l,i,y),h=s-Math.min(l,i,y),x=h!==0?s===l?(i-y)/h:s===i?2+(y-l)/h:4+(l-i)/h:0;this.h=60*x<0?60*x+360:60*x,this.s=h!==0?s<=0.5?h/(2*s-h):h/(2-(2*s-h)):0,this.l=(2*s-h)/2}}var O1=globalThis.document!==void 0?globalThis.document.createElement("span"):void 0;if(O1)O1.style.display="none";class j{r;g;b;a;static fromVar(l,i=document.body){return j.fromCss(t3(l,i))}static fromCss(l){let i=l.match(/^#([0-9a-fA-F]+)$/);if(i){let r=i[1];if(r.length===3)return new j(parseInt(r[0]+r[0],16),parseInt(r[1]+r[1],16),parseInt(r[2]+r[2],16));if(r.length===4)return new j(parseInt(r[0]+r[0],16),parseInt(r[1]+r[1],16),parseInt(r[2]+r[2],16),parseInt(r[3]+r[3],16)/255);if(r.length===6)return new j(parseInt(r.slice(0,2),16),parseInt(r.slice(2,4),16),parseInt(r.slice(4,6),16));if(r.length===8)return new j(parseInt(r.slice(0,2),16),parseInt(r.slice(2,4),16),parseInt(r.slice(4,6),16),parseInt(r.slice(6,8),16)/255)}let y=l;if(O1 instanceof HTMLSpanElement)O1.style.color="black",O1.style.color=l,document.body.appendChild(O1),y=getComputedStyle(O1).color,O1.remove();let[s,h,x,o]=y.match(/[\d.]+/g)||["0","0","0","0"],c=y.startsWith("color(srgb")?255:1;return new j(Number(s)*c,Number(h)*c,Number(x)*c,o==null?1:Number(o))}static fromHsl(l,i,y,s=1){let h,x,o;if(i===0)h=x=o=y;else{let r=(p,z,a)=>{if(a<0)a+=1;if(a>1)a-=1;if(a<0.16666666666666666)return p+(z-p)*6*a;if(a<0.5)return z;if(a<0.6666666666666666)return p+(z-p)*(0.6666666666666666-a)*6;return p},C=y<0.5?y*(1+i):y+i-y*i,g=2*y-C,n=(l%360+360)%360/360;h=r(g,C,n+0.3333333333333333),x=r(g,C,n),o=r(g,C,n-0.3333333333333333)}let c=new j(h*255,x*255,o*255,s);return c.hslCached={h:(l%360+360)%360,s:i,l:y},c}static black=new j(0,0,0);static white=new j(255,255,255);constructor(l,i,y,s=1){this.r=n1(0,l,255),this.g=n1(0,i,255),this.b=n1(0,y,255),this.a=n1(0,s,1)}get inverse(){return new j(255-this.r,255-this.g,255-this.b,this.a)}get inverseLuminance(){let{h:l,s:i,l:y}=this._hsl;return j.fromHsl(l,i,1-y,this.a)}get opaque(){return this.a===1?this:new j(this.r,this.g,this.b,1)}contrasting(l=1){return this.opaque.blend(this.brightness>0.5?j.black:j.white,l)}get rgb(){let{r:l,g:i,b:y}=this;return`rgb(${l.toFixed(0)},${i.toFixed(0)},${y.toFixed(0)})`}get rgba(){let{r:l,g:i,b:y,a:s}=this;return`rgba(${l.toFixed(0)},${i.toFixed(0)},${y.toFixed(0)},${s.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 z3(this.r,this.g,this.b);return this.hslCached}get hsl(){let{h:l,s:i,l:y}=this._hsl;return`hsl(${l.toFixed(0)}deg ${(i*100).toFixed(0)}% ${(y*100).toFixed(0)}%)`}get hsla(){let{h:l,s:i,l:y}=this._hsl;return`hsl(${l.toFixed(0)}deg ${(i*100).toFixed(0)}% ${(y*100).toFixed(0)}% / ${(this.a*100).toFixed(0)}%)`}get mono(){let l=this.brightness*255;return new j(l,l,l)}get brightness(){return Zi(this.r,this.g,this.b)}get html(){return this.toString()}toString(){return this.a===1?"#"+R1(this.r)+R1(this.g)+R1(this.b):"#"+R1(this.r)+R1(this.g)+R1(this.b)+R1(Math.floor(255*this.a))}brighten(l){let{h:i,s:y,l:s}=this._hsl,h=n1(0,s+l*(1-s),1);return j.fromHsl(i,y,h,this.a)}darken(l){let{h:i,s:y,l:s}=this._hsl,h=n1(0,s*(1-l),1);return j.fromHsl(i,y,h,this.a)}saturate(l){let{h:i,s:y,l:s}=this._hsl,h=n1(0,y+l*(1-y),1);return j.fromHsl(i,h,s,this.a)}desaturate(l){let{h:i,s:y,l:s}=this._hsl,h=n1(0,y*(1-l),1);return j.fromHsl(i,h,s,this.a)}rotate(l){let{h:i,s:y,l:s}=this._hsl,h=(i+360+l)%360;return j.fromHsl(h,y,s,this.a)}opacity(l){let{h:i,s:y,l:s}=this._hsl;return j.fromHsl(i,y,s,l)}swatch(){return console.log(`%c %c ${this.html}, ${this.rgba}`,`background-color: ${this.html}`,"background-color: transparent"),this}blend(l,i){return new j(F1(this.r,l.r,i),F1(this.g,l.g,i),F1(this.b,l.b,i),F1(this.a,l.a,i))}static blendHue(l,i,y){let s=(i-l+720)%360;if(s<180)return l+y*s;else return l-(360-s)*y}mix(l,i){let y=this._hsl,s=l._hsl;return j.fromHsl(y.s===0?s.h:s.s===0?y.h:j.blendHue(y.h,s.h,i),F1(y.s,s.s,i),F1(y.l,s.l,i),F1(this.a,l.a,i))}colorMix(l,i){return j.fromCss(`color-mix(in hsl, ${this.html}, ${l.html} ${(i*100).toFixed(0)}%)`)}static computedColorStylesheet=null;static computedColors=new Map;static recomputeQueued=!1;static registerComputedColor(l,i,y,s){if(!j.computedColors.has(l))j.computedColors.set(l,{varName:i,scale:y,method:s}),j.queueRecompute()}static queueRecompute(){if(j.recomputeQueued)return;j.recomputeQueued=!0,queueMicrotask(()=>{j.recomputeQueued=!1,j.recomputeColors()})}static recomputeColors(){if(j.computedColors.size===0)return;let l=[];for(let[y,{varName:s,scale:h,method:x}]of j.computedColors)try{let o=j.fromVar(s),c;switch(x){case"b":c=h>0?o.brighten(h):o.darken(-h);break;case"s":c=h>0?o.saturate(h):o.desaturate(-h);break;case"h":c=o.rotate(h*100);break;case"o":c=o.opacity(h);break;default:continue}l.push(` ${y}: ${c.rgba};`)}catch(o){}if(l.length===0)return;let i=`:root {
2
2
  ${l.join(`
3
3
  `)}
4
- }`;if(j.computedColorStylesheet===null)j.computedColorStylesheet=document.createElement("style"),j.computedColorStylesheet.id="tosijs-computed-colors",document.head.append(j.computedColorStylesheet);j.computedColorStylesheet.textContent=i}}var x0=new Set,m5=!1;function Zi(){if(!m5)m5=!0,x0.add(()=>j.queueRecompute())}function Hi(l){return x0.add(l),()=>x0.delete(l)}function Ji(){Zi();for(let l of x0)l()}function D1(l,i){let y=G(i),s=a.style(h2(y));s.id=l,document.head.append(s);let h=h1(i);if(h!==void 0)q4(h,()=>{s.textContent=h2(G(i)),Ji()})}var $i=/^(animation-iteration-count|column-count|flex(-grow|-shrink)?|font-weight|line-height|opacity|order|orphans|scale|tab-size|widows|z-index|zoom)$/,j3=(l,i)=>{if(typeof i==="number"&&!$i.test(l))i=`${i}px`;if(l.startsWith("_"))if(l.startsWith("__"))l="--"+l.substring(2),i=`var(${l}-default, ${i})`;else l="--"+l.substring(1);return{prop:l,value:String(i)}},Ii=(l,i,y)=>{if(y===void 0)return"";if(y instanceof j)y=y.html;let s=j3(i,y);return`${l} ${s.prop}: ${s.value};`},A3=(l,i,y="")=>{let s=w1(l);if(typeof i==="object"&&!(i instanceof j)){let h=Object.keys(i).map((x)=>A3(x,i[x],`${y} `)).join(`
4
+ }`;if(j.computedColorStylesheet===null)j.computedColorStylesheet=document.createElement("style"),j.computedColorStylesheet.id="tosijs-computed-colors",document.head.append(j.computedColorStylesheet);j.computedColorStylesheet.textContent=i}}var x0=new Set,m5=!1;function Hi(){if(!m5)m5=!0,x0.add(()=>j.queueRecompute())}function Ji(l){return x0.add(l),()=>x0.delete(l)}function $i(){Hi();for(let l of x0)l()}function S1(l,i){let y=G(i),s=v.style(h2(y));s.id=l,document.head.append(s);let h=h1(i);if(h!==void 0)q4(h,()=>{s.textContent=h2(G(i)),$i()})}var Ii=/^(animation-iteration-count|column-count|flex(-grow|-shrink)?|font-weight|line-height|opacity|order|orphans|scale|tab-size|widows|z-index|zoom)$/,j3=(l,i)=>{if(typeof i==="number"&&!Ii.test(l))i=`${i}px`;if(l.startsWith("_"))if(l.startsWith("__"))l="--"+l.substring(2),i=`var(${l}-default, ${i})`;else l="--"+l.substring(1);return{prop:l,value:String(i)}},Yi=(l,i,y)=>{if(y===void 0)return"";if(y instanceof j)y=y.html;let s=j3(i,y);return`${l} ${s.prop}: ${s.value};`},A3=(l,i,y="")=>{let s=w1(l);if(typeof i==="object"&&!(i instanceof j)){let h=Object.keys(i).map((x)=>A3(x,i[x],`${y} `)).join(`
5
5
  `);return`${y} ${l} {
6
6
  ${h}
7
- ${y} }`}else return Ii(y,s,i)},h2=(l,i="")=>{return Object.keys(l).map((y)=>{let s=l[y];if(typeof s==="string"){if(y==="@import")return`@import url('${s}');`;throw Error("top-level string value only allowed for `@import`")}let h=Object.keys(s).map((x)=>A3(x,s[x])).join(`
7
+ ${y} }`}else return Yi(y,s,i)},h2=(l,i="")=>{return Object.keys(l).map((y)=>{let s=l[y];if(typeof s==="string"){if(y==="@import")return`@import url('${s}');`;throw Error("top-level string value only allowed for `@import`")}let h=Object.keys(s).map((x)=>A3(x,s[x])).join(`
8
8
  `);return`${i}${y} {
9
9
  ${h}
10
10
  }`}).join(`
11
11
 
12
- `)},ei=(l)=>{s1("initVars","initVars is deprecated. Just use _ and __ prefixes instead.");let i={};for(let y of Object.keys(l)){let s=l[y],h=w1(y);i[`--${h}`]=typeof s==="number"&&s!==0?String(s)+"px":s}return i},j4=(l)=>{let i={};for(let y of Object.keys(l)){let s=l[y];if(s instanceof j)i[y]=s.inverseLuminance;else if(typeof s==="string"&&s.match(/^(#[0-9a-fA-F]{3}|rgba?\(|hsla?\()/))i[y]=j.fromCss(s).inverseLuminance}return i},d=new Proxy({},{get(l,i){if(l[i]===void 0){let y="--"+w1(i);l[i]=(s)=>`var(${y}, ${s})`}return l[i]}}),n=new Proxy({},{get(l,i){if(i==="default")return d;if(l[i]==null){i=w1(i);let[,y,,s,h,x]=i.match(/^([-\w]*?)((_)?(\d+)(\w?))?$/)||["",i],o=`--${y}`;if(h!=null){let c=s==null?Number(h)/100:-Number(h)/100;switch(x){case"b":case"s":case"h":case"o":{let r=`--${i}`;j.registerComputedColor(r,o,c,x),l[i]=`var(${r})`}break;case"":l[i]=`calc(var(${o}) * ${c})`;break;default:throw console.error(x),Error(`Unrecognized method ${x} for css variable ${o}`)}}else l[i]=`var(${o})`}return l[i]}});function V3(){let l=(i)=>typeof matchMedia<"u"&&matchMedia(i).matches;return{colorScheme:l("(prefers-color-scheme: dark)")?"dark":"light",contrast:l("(prefers-contrast: more)")?"more":l("(prefers-contrast: less)")?"less":l("(prefers-contrast: custom)")?"custom":"no-preference",reducedMotion:l("(prefers-reduced-motion: reduce)"),reducedTransparency:l("(prefers-reduced-transparency: reduce)"),forcedColors:l("(forced-colors: active)")}}function Yi(l){if(typeof matchMedia>"u")return()=>{};let i=["(prefers-color-scheme: dark)","(prefers-contrast: more)","(prefers-contrast: less)","(prefers-contrast: custom)","(prefers-reduced-motion: reduce)","(prefers-reduced-transparency: reduce)","(forced-colors: active)"],y=()=>l(V3()),s=i.map((h)=>matchMedia(h));for(let h of s)h.addEventListener("change",y);return()=>{for(let h of s)h.removeEventListener("change",y)}}var Di="http://www.w3.org/1998/Math/MathML",Si="http://www.w3.org/2000/svg",l0={},q3=(l,i,y)=>{let s=j3(w1(i),y);if(s.prop.startsWith("--"))l.style.setProperty(s.prop,s.value);else l.style[i]=s.value},Ti=(l)=>{return{toDOM(i,y){q3(i,l,y)}}},_3=(l,i,y)=>{if(i==="style")if(typeof y==="object")for(let s of Object.keys(y))if(h1(y[s]))X1(l,y[s],Ti(s));else q3(l,s,y[s]);else l.setAttribute("style",y);else{let s=w1(i),h=l.constructor.observedAttributes;if(h?.includes(i)||h?.includes(s))if(typeof y==="boolean")y?l.setAttribute(s,""):l.removeAttribute(s);else l.setAttribute(s,y);else if(l[i]!==void 0){let{MathMLElement:x}=globalThis;if(l instanceof SVGElement||x!==void 0&&l instanceof x)l.setAttribute(i,y);else l[i]=y}else if(s==="class")y.split(" ").forEach((x)=>{l.classList.add(x)});else if(l[s]!==void 0)l[s]=y;else if(typeof y==="boolean")y?l.setAttribute(s,""):l.removeAttribute(s);else l.setAttribute(s,y)}},E0={},Mi=(l)=>{if(!E0[l])E0[l]={toDOM(i,y){_3(i,l,y)}};return E0[l]},ui=(l,i,y)=>{if(i==="apply")y(l);else if(i.match(/^on[A-Z]/)!=null){let s=i.substring(2).toLowerCase();x2(l,s,y)}else if(i==="bind")if((typeof y.binding==="string"?q1[y.binding]:y.binding)!==void 0&&y.value!==void 0)X1(l,y.value,y.binding instanceof Function?{toDOM:y.binding}:y.binding);else throw Error("bad binding");else if(i.match(/^bind[A-Z]/)!=null){let s=i.substring(4,5).toLowerCase()+i.substring(5),h=q1[s];if(h!==void 0)X1(l,y,h);else throw Error(`${i} is not allowed, bindings.${s} is not defined`)}else if(h1(y))X1(l,y,Mi(i));else _3(l,i,y)},A4=(l,...i)=>{if(l0[l]===void 0){let[h,x]=l.split("|");if(x===void 0)l0[l]=globalThis.document.createElement(h);else l0[l]=globalThis.document.createElementNS(x,h)}let y=l0[l].cloneNode(),s={};for(let h of i)if(h instanceof Element||h instanceof DocumentFragment||typeof h==="string"||typeof h==="number")if(y instanceof HTMLTemplateElement)y.content.append(h);else y.append(h);else if(h1(h))y.append(a.span({bindText:h}));else Object.assign(s,h);for(let h of Object.keys(s)){let x=s[h];ui(y,h,x)}return y},V4=(...l)=>{let i=globalThis.document.createDocumentFragment();for(let y of l)i.append(y);return i},a=new Proxy({fragment:V4},{get(l,i){if(i=i.replace(/[A-Z]/g,(y)=>`-${y.toLocaleLowerCase()}`),l[i]===void 0)l[i]=(...y)=>A4(i,...y);return l[i]},set(){throw Error("You may not add new properties to elements")}}),o0=new Proxy({fragment:V4},{get(l,i){if(l[i]===void 0)l[i]=(...y)=>A4(`${i}|${Si}`,...y);return l[i]},set(){throw Error("You may not add new properties to elements")}}),P3=new Proxy({fragment:V4},{get(l,i){if(l[i]===void 0)l[i]=(...y)=>A4(`${i}|${Di}`,...y);return l[i]},set(){throw Error("You may not add new properties to elements")}}),mi=["sort","splice","copyWithin","fill","pop","push","reverse","shift","unshift"],Li=!0,Ei=/^\.?([^.[\](),])+(\.[^.[\](),]+|\[\d+\]|\[[^=[\](),]*=[^[\]()]+\])*$/,l9=(l)=>Ei.test(l),P1=(l="",i="")=>{if(l==="")return i;else if(i.match(/^\d+$/)!==null||i.includes("="))return`${l}[${i}]`;else return`${l}.${i}`},F3={};function l4(l,i){if(l!==null&&(typeof l==="object"||typeof l==="function"))return l;return new Proxy(F3,U1(i,!0))}var V2=()=>new Proxy({},U1("^",!0)),i4=(l)=>{let i=l(V2())?.path;if(!i?.startsWith("^."))throw Error("selector must return a property of the item");return i.substring(2)},y4=(l,i,y)=>{for(let s=0;s<l.length;s++)if(`${S(l[s],i)}`===`${y}`)return s;return-1},L5=(l,i)=>({listFind(y,s){if(y instanceof Element){let o=y;while(o&&!o[P2]&&o.parentElement)o=o.parentElement;let c=o?.[P2];if(c==null)return;let r=i.indexOf(c);return r!==-1?d1[l][r]:void 0}let h=i4(y),x=y4(i,h,s);return x!==-1?d1[l][x]:void 0},listUpdate(y,s){let h=i4(y),x=S(s,h),o=y4(i,h,x);if(o!==-1){let c=d1[l][o];for(let r of Object.keys(s))c[r]=s[r];return c}return d1[l].push(s),d1[l][i.length-1]},listRemove(y,s){let h=i4(y),x=y4(i,h,s);if(x===-1)return!1;return d1[l].splice(x,1),!0}}),E5=!1;function Z1(){if(!E5)console.warn("xinValue, tosiValue, xinPath, tosiPath, etc. are deprecated. Use value, path, observe, bind, on, binding, listBinding instead."),E5=!0}var l3=(l)=>{return l===F3},U1=(l,i)=>({get(y,s){if(l3(y)){let c=()=>S(v1,l);switch(s){case"path":return l;case"value":return c();case"valueOf":case"toJSON":return()=>c();case Symbol.toPrimitive:return(r)=>{let C=c();if(r==="number")return Number(C);if(r==="string")return String(C);return C};case"toString":return()=>String(c());case"touch":return()=>p1(l);case"observe":return(r)=>{let C=J1(l,r);return()=>$1(C)};case"on":return(r,C)=>E2()(r,C,c());case"bind":return(r,C,g)=>{L2()(r,l,C,g)};case"binding":return(r)=>({bind:{value:l,binding:r}});case"listBinding":return(r=({span:g})=>g({bindText:"^"}),C={})=>[{bindList:{value:l,...C}},a.template(r(a,V2()))];case"listFind":case"listUpdate":case"listRemove":return L5(l,y)[s];case e1:case"xinValue":case"tosiValue":return Z1(),c();case a1:case"xinPath":case"tosiPath":return Z1(),l;case $5:case"tosiObserve":return Z1(),(r)=>{let C=J1(l,r);return()=>$1(C)};case e5:case"tosiOn":return Z1(),(r,C)=>E2()(r,C,c());case I5:case"tosiBind":return Z1(),(r,C,g)=>{L2()(r,l,C,g)};case"tosiBinding":return Z1(),(r)=>({bind:{value:l,binding:r}});case"tosiListBinding":return Z1(),(r=({span:g})=>g({bindText:"^"}),C={})=>[{bindList:{value:l,...C}},a.template(r(a,V2()))]}if(typeof s==="string"&&/^\d+$/.test(s)){let r=c();if(typeof r==="string")return r[parseInt(s,10)]}if(s==="length"){let r=c();if(typeof r==="string")return r.length}return}if(i&&!(s in y))switch(s){case"path":return l;case"value":return y.valueOf?y.valueOf():y;case"valueOf":case"toJSON":return()=>y.valueOf?y.valueOf():y;case"touch":return()=>p1(l);case"observe":return(c)=>{let r=J1(l,c);return()=>$1(r)};case"on":return(c,r)=>E2()(c,r,G(y));case"bind":return(c,r,C)=>{L2()(c,l,r,C)};case"binding":return(c)=>({bind:{value:l,binding:c}});case"listBinding":return(c=({span:C})=>C({bindText:"^"}),r={})=>[{bindList:{value:l,...r}},a.template(c(a,V2()))];case"listFind":case"listUpdate":case"listRemove":return L5(l,y)[s]}switch(s){case a1:case"xinPath":case"tosiPath":return l;case e1:case"xinValue":case"tosiValue":return y.valueOf?y.valueOf():y;case $5:case"xinObserve":case"tosiObserve":return(c)=>{let r=J1(l,c);return()=>$1(r)};case e5:case"xinOn":case"tosiOn":return(c,r)=>E2()(c,r,G(y));case I5:case"xinBind":case"tosiBind":return(c,r,C)=>{L2()(c,l,r,C)};case"tosiBinding":return(c)=>({bind:{value:l,binding:c}});case"tosiListBinding":return(c=({span:C})=>C({bindText:"^"}),r={})=>[{bindList:{value:l,...r}},a.template(c(a,V2()))]}if(typeof s==="symbol")return y[s];let h=Object.getOwnPropertyDescriptor(y,s);if(h&&!h.configurable&&!h.writable&&"value"in h)return h.value;let x=s,o=x.match(/^([^.[]+)\.(.+)$/)??x.match(/^([^\]]+)(\[.+)/)??x.match(/^(\[[^\]]+\])\.(.+)$/)??x.match(/^(\[[^\]]+\])\[(.+)$/);if(o!==null){let[,c,r]=o,C=P1(l,c),g=S(y,c);return g!==null&&typeof g==="object"?new Proxy(g,U1(C,i))[r]:g}if(x.startsWith("[")&&x.endsWith("]"))x=x.substring(1,x.length-1);if(!Array.isArray(y)&&y[x]!==void 0||Array.isArray(y)&&x.includes("=")){let c;if(x.includes("=")){let[r,C]=x.split("=");c=y.find((g)=>`${S(g,r)}`===C)}else c=y[x];if(c instanceof Object){let r=P1(l,x);return new Proxy(c instanceof Function?c.bind(y):c,U1(r,i))}else return i?l4(c,P1(l,x)):c}else if(Array.isArray(y)){let c=y[x];return typeof c==="function"?(...r)=>{let C=r.map((k)=>G(k)),g=c.apply(y,C);if(mi.includes(x))p1(l);if(g!=null&&typeof g==="object"){if(x==="find"||x==="findLast"||x==="at"){let k=y.indexOf(g);if(k!==-1)return new Proxy(g,U1(P1(l,String(k)),i))}}return g}:typeof c==="object"?new Proxy(c,U1(P1(l,x),i)):i?l4(c,P1(l,x)):c}else return i?l4(y[x],P1(l,x)):y[x]},set(y,s,h){h=G(h);let x=s===e1||s==="xinValue"||s==="tosiValue"||s==="value"&&(l3(y)||i)?l:P1(l,s);if(Li&&!l9(x))throw Error(`setting invalid path ${x}`);if(G(I[x])!==h&&t4(v1,x,h))p1(x);return!0}}),q4=(l,i)=>{let y=typeof i==="function"?i:I[i];if(typeof y!=="function")throw Error(`observe expects a function or path to a function, ${i} is neither`);return J1(l,y)},I=new Proxy(v1,U1("",!1));Ui(I);var d1=new Proxy(v1,U1("",!0)),i9=16,y9=100;function i3(l,i){let y=Array.from(l.querySelectorAll(s2));if(l.matches(s2))y.unshift(l);for(let s of y){let h=Y1.get(s);for(let x of h){if(x.path.startsWith("^"))x.path=`${i}${x.path.substring(1)}`;if(x.binding.toDOM!=null)x.binding.toDOM(s,I[x.path])}}}class O3{boundElement;listTop;listBottom;template;options;itemToElement;array=[];_filteredCache;_update;_previousSlice;static filterBoundObservers=new WeakMap;constructor(l,i,y={}){if(this.boundElement=l,this.itemToElement=new WeakMap,y.idPath!=null){let s=h1(i);if(s!=null)ai(s,y.idPath)}if(l.children.length!==1)throw Error("ListBinding expects an element with exactly one child element");if(l.children[0]instanceof HTMLTemplateElement){let s=l.children[0];if(s.content.children.length!==1)throw Error("ListBinding expects a template with exactly one child element");this.template=O2(s.content.children[0])}else this.template=l.children[0],this.template.remove();if(this.options=y,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[y0]=this,y.virtual!=null)if(w4.observe(this.boundElement),this._update=U2(()=>{this.update(this.array,!0)},i9),this.boundElement.addEventListener("resize",this._update),y.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:l,visibleProp:i}=this.options,y=this.array;if(l!==void 0)y=y.filter((s)=>s[l]!==!0);if(i!==void 0)y=y.filter((s)=>s[i]===!0);if(this.options.filter&&this.needle!==void 0)y=this.options.filter(y,this.needle);return this._filteredCache=y,y}visibleSlice(){let{virtual:l}=this.options,i=this.filteredArray(),y=0,s=i.length-1,h=0,x=0;if(l!=null&&this.boundElement instanceof HTMLElement){let o=this.boundElement.offsetWidth,c=l.scrollContainer==="window",r,C;if(c){r=window.innerHeight;let p=this.boundElement.getBoundingClientRect();C=Math.max(0,-p.top)}else r=this.boundElement.offsetHeight,C=this.boundElement.scrollTop;let g=l.width!=null?Math.max(1,Math.floor(o/l.width)):l.visibleColumns??1,k=Math.ceil(i.length/g);if(l.minHeight!=null){let p=l.minHeight,z=Math.ceil(r/p)+(l.rowChunkSize||1),v=g*z,V=k*p,P=Math.max(0,V-r),F=P>0?Math.min(1,Math.max(0,C/P)):0,q=Math.max(0,k-z+1),_=F*q,N=Math.floor(_);if(l.rowChunkSize)N-=N%l.rowChunkSize;return y=N*g,s=y+v-1,h=C,x=Math.max(0,V-C-r),{items:i,firstItem:y,lastItem:s,topBuffer:h,bottomBuffer:x,interpolation:{t:F,position:_,scrollTop:C,viewportHeight:r,totalScrollHeight:V,rowHeight:l.height}}}else{let p=Math.ceil(r/l.height)+(l.rowChunkSize||1),z=g*p,v=Math.floor(C/l.height);if(v>k-p+1)v=Math.max(0,k-p+1);if(l.rowChunkSize)v-=v%l.rowChunkSize;y=v*g,s=y+z-1,h=v*l.height,x=Math.max((k-p)*l.height-h,0)}}return{items:i,firstItem:y,lastItem:s,topBuffer:h,bottomBuffer:x}}needle;filter=U2((l)=>{if(this.needle!==l)this.needle=l,this.update(this.array)},y9);update(l,i){if(l==null)l=[];if(this.array=l,!i)this._filteredCache=void 0;let{hiddenProp:y,visibleProp:s}=this.options,h=h1(l),x=this.visibleSlice();this.boundElement.classList.toggle("-xin-empty-list",x.items.length===0);let o=this._previousSlice,{firstItem:c,lastItem:r,topBuffer:C,bottomBuffer:g}=x,k=y===void 0&&s===void 0&&i===!0&&o!=null&&c===o.firstItem&&r===o.lastItem;if(k&&x.interpolation==null&&C===o.topBuffer&&g===o.bottomBuffer)return;if(k&&x.interpolation!=null){this._updateInterpolatedBuffers(x);return}this._previousSlice=x;let p=0,z=0,v=0;for(let q of Array.from(this.boundElement.children)){if(q===this.listTop||q===this.listBottom)continue;let _=q[P2];if(_==null)q.remove();else{let N=x.items.indexOf(_);if(N<c||N>r)q.remove(),this.itemToElement.delete(_),p++}}this.listTop.style.height=String(C)+"px",this.listBottom.style.height=String(g)+"px";let V=[],{idPath:P}=this.options;for(let q=c;q<=r;q++){let _=x.items[q];if(_===void 0)continue;let N=this.itemToElement.get(G(_));if(N==null){if(v++,N=O2(this.template),typeof _==="object")this.itemToElement.set(G(_),N),N[P2]=G(_);if(this.boundElement.insertBefore(N,this.listBottom),P!=null){let M=_[P],H=`${h}[${P}=${M}]`;i3(N,H)}else{let M=`${h}[${q}]`;i3(N,M)}}V.push(N)}let F=null;for(let q of V){if(q.previousElementSibling!==F)if(z++,F?.nextElementSibling!=null)this.boundElement.insertBefore(q,F.nextElementSibling);else this.boundElement.insertBefore(q,this.listBottom);F=q}if(x.interpolation!=null)this._updateInterpolatedBuffers(x);if(s0.perf)console.log(h,"updated",{removed:p,created:v,moved:z})}_updateInterpolatedBuffers(l){let{t:i,position:y,scrollTop:s,viewportHeight:h,totalScrollHeight:x,rowHeight:o}=l.interpolation,c=0;for(let k of Array.from(this.boundElement.children)){if(k===this.listTop||k===this.listBottom)continue;c+=k.offsetHeight||o}let r=s,C=s+h-c,g=Math.max(0,i*C+(1-i)*r-y%1*o);this.listTop.style.height=String(g)+"px",this.listBottom.style.height=String(Math.max(0,x-g-c))+"px"}}var c0=(l,i,y)=>{let s=l[y0];if(i&&s===void 0)s=new O3(l,i,y),l[y0]=s;return s},_4=(l)=>{let i;while(!(i=l[P2])&&l&&l.parentElement)l=l.parentElement;return i?{element:l,item:i}:void 0},S1=(l)=>{let i=_4(l);return i?i.item:void 0},s9=(l)=>{let i=_4(l);if(!i)return console.error("deleteListItem failed, element is not part of a list instance",l),!1;let y=c0(i.element.parentElement);if(!y.options.idPath)return console.error("deleteListItem failed, list binding has no idPath",l.parentElement,y),!1;let s=y.array.indexOf(i.item);if(s>-1)return y.array.splice(s,1),!0;return!1},h9={start:"start",middle:"center",end:"end",nearest:"nearest"},x9=(l,i,y={})=>{let s=c0(l);if(s==null)return console.error("scrollListItemIntoView failed, element has no list binding",l),!1;let{position:h="middle"}=y,x=s.filteredArray(),o=G(i)??i,c=x.indexOf(o);if(c===-1)return console.error("scrollListItemIntoView failed, item not found in list",i),!1;let{virtual:r}=s.options;if(r!=null&&l instanceof HTMLElement){let C=r.width!=null?Math.max(1,Math.floor(l.offsetWidth/r.width)):r.visibleColumns??1,g=Math.floor(c/C),k=r.minHeight??r.height,p=Math.ceil(x.length/C),z=r.scrollContainer==="window",v=z?window.innerHeight:l.offsetHeight,V;if(r.minHeight!=null){let P=Math.ceil(v/k)+(r.rowChunkSize||1),F=p*k,q=Math.max(0,F-v),_=Math.max(1,p-P+1),N=g/_;switch(h){case"start":V=N*q;break;case"end":V=Math.max(0,(g-P+1)/_*q);break;case"nearest":{let M=z?Math.max(0,-l.getBoundingClientRect().top):l.scrollTop,H=q>0?M/q:0,u=Math.floor(H*_);if(g<u)V=N*q;else if(g>=u+P)V=Math.max(0,(g-P+1)/_*q);else return!0;break}default:{let M=g-Math.floor(P/2);V=Math.max(0,M)/_*q}}}else{let P=g*r.height;switch(h){case"start":V=P;break;case"end":V=P-v+r.height;break;case"nearest":{let F=z?Math.max(0,-l.getBoundingClientRect().top):l.scrollTop;if(P<F)V=P;else if(P+r.height>F+v)V=P-v+r.height;else return!0;break}default:V=P-(v-r.height)/2}}if(V=Math.max(0,V),z){let P=l.getBoundingClientRect().top+window.scrollY;window.scrollTo({top:P+V,behavior:"smooth"})}else l.scrollTo({top:V,behavior:"smooth"})}else{let C=s.itemToElement.get(o);if(C==null)return console.error("scrollListItemIntoView failed, no DOM element found for item",i),!1;C.scrollIntoView({block:h9[h]??"center",behavior:"smooth"})}return!0},{document:X2,MutationObserver:y3}=globalThis,P4=(l,i)=>{let y=Y1.get(l);if(y==null)return;for(let s of y){let{binding:h,options:x}=s,{path:o}=s,{toDOM:c}=h;if(c!=null){if(o.startsWith("^")){let r=S1(l);if(r!=null&&r[a1]!=null)o=s.path=`${r[a1]}${o.substring(1)}`;else throw console.error(`Cannot resolve relative binding ${o}`,l,"is not part of a list"),Error(`Cannot resolve relative binding ${o}`)}if(i==null||o.startsWith(i))c(l,z4()[o],x)}}};if(y3!=null)new y3((l)=>{l.forEach((i)=>{Array.from(i.addedNodes).forEach((y)=>{if(y instanceof Element)Array.from(y.querySelectorAll(s2)).forEach((s)=>P4(s))})})}).observe(X2.body,{subtree:!0,childList:!0});J1(()=>!0,(l)=>{let i=Array.from(X2.querySelectorAll(s2));for(let y of i)P4(y,l)});var s3=(l)=>{let i=l.target?.closest(s2);while(i!=null){let y=Y1.get(i);for(let s of y){let{binding:h,path:x}=s,{fromDOM:o}=h;if(o!=null){let c;try{c=o(i,s.options)}catch(r){throw console.error("Cannot get value from",i,"via",s),Error("Cannot obtain value fromDOM")}if(c!=null){let r=z4(),C=r[x];if(C==null)r[x]=c;else{let g=C[a1]!=null?C[e1]:C,k=c[a1]!=null?c[e1]:c;if(g!==k)r[x]=k}}}}i=i.parentElement.closest(s2)}};if(globalThis.document!=null)X2.body.addEventListener("change",s3,!0),X2.body.addEventListener("input",s3,!0);function X1(l,i,y,s){if(l instanceof DocumentFragment)throw Error("bind cannot bind to a DocumentFragment");let h;if(typeof i==="object"&&i[a1]===void 0&&s===void 0){let{value:c}=i;h=typeof c==="string"?c:c[a1],s=i,delete s.value}else h=typeof i==="string"?i:i[a1];if(h==null)throw Error("bind requires a path or object with xin Proxy");let{toDOM:x}=y;l.classList?.add(c3);let o=Y1.get(l);if(o==null)o=[],Y1.set(l,o);if(o.push({path:h,binding:y,options:s}),x!=null&&!h.startsWith("^"))p1(h);if(s?.filter&&s?.needle)X1(l,s.needle,{toDOM(c,r){console.log({needle:r}),c[y0]?.filter(r)}});return l}var h3=new Set,o9=(l)=>{let i=l?.target?.closest(J5),y=!1,s=new Proxy(l,{get(x,o){if(o==="stopPropagation")return()=>{l.stopPropagation(),y=!0};else{let c=x[o];return typeof c==="function"?c.bind(x):c}}}),h=new Set;while(!y&&i!=null){let x=F2.get(i)[l.type]||h;for(let o of x){if(typeof o==="function")o(s);else{let c=z4()[o];if(typeof c==="function")c(s);else throw Error(`no event handler found at path ${o}`)}if(y)continue}i=i.parentElement!=null?i.parentElement.closest(J5):null}};function x2(l,i,y){let s=F2.get(l);if(l.classList.add(r3),s==null)s={},F2.set(l,s);if(!s[i])s[i]=new Set;if(s[i].add(y),!h3.has(i))h3.add(i),X2.body.addEventListener(i,o9,!0);return()=>{s[i].delete(y)}}Xi(X1,x2);function U3(l,i){if(!l.internals)return;let y={},s="";if(l.hasAttribute("required")&&i==="")y.valueMissing=!0,s="Please fill out this field.";let h=l.getAttribute("minlength");if(h&&i.length<parseInt(h,10))y.tooShort=!0,s=`Please use at least ${h} characters.`;let x=l.getAttribute("maxlength");if(x&&i.length>parseInt(x,10))y.tooLong=!0,s=`Please use no more than ${x} characters.`;let o=l.getAttribute("pattern");if(o&&i!=="")try{if(!new RegExp(`^(?:${o})$`).test(i))y.patternMismatch=!0,s="Please match the requested format."}catch{}if(Object.keys(y).length>0)l.internals.setValidity(y,s,l);else l.internals.setValidity({})}var c9=0;function s4(){return`custom-elt${(c9++).toString(36)}`}var x3=0,h4=null;function r9(){if(h4===null)h4=new MutationObserver((l)=>{let i=new Set;for(let y of l)if(y.type==="attributes"&&y.target instanceof t){let s=y.target,h=B3(y.attributeName);if(s._legacyTrackedAttrs?.has(h))i.add(s)}for(let y of i)y.queueRender(!1)});return h4}var _2={};function C9(l,i){let y=_2[l],s=h2(i).replace(/:host\(([^)]+)\)/g,`${l}$1`).replace(/:host\b/g,l);_2[l]=y?y+`
13
- `+s:s}function g9(l){if(_2[l])document.head.append(a.style({id:l+"-component"},_2[l]));delete _2[l]}class t extends HTMLElement{static elements=a;static _elementCreator;static initAttributes;static formAssociated;static preferredTagName;static shadowStyleSpec;static lightStyleSpec;static extends;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(l){if(this.internals)if(l)this.internals.setValidity({customError:!0},l);else this.internals.setValidity({})}setValidity(l,i,y){this.internals?.setValidity(l,i,y)}setFormValue(l,i){this.internals?.setFormValue(l,i)}static get observedAttributes(){let l=this.initAttributes;if(l)return["hidden",...Object.keys(l).map(w1)];return["hidden"]}instanceId;styleNode;static styleSpec;static styleNode;content=a.slot();isSlotted;static _tagName=null;static get tagName(){return this._tagName}_legacyTrackedAttrs;_attrValues;_valueChanged=!1;static StyleNode(l){return console.warn("StyleNode is deprecated, use static shadowStyleSpec instead"),a.style(h2(l))}static elementCreator(l={}){let i=this;if(!Object.prototype.hasOwnProperty.call(i,"_elementCreator")){if(l.tag!==void 0)s1("elementCreator-tag","Passing tag to elementCreator() is deprecated. Use static preferredTagName instead.");if(l.styleSpec!==void 0)s1("elementCreator-styleSpec","Passing styleSpec to elementCreator() is deprecated. Use static lightStyleSpec instead.");if(l.extends!==void 0)s1("elementCreator-extends","Passing extends to elementCreator() is deprecated. Use static extends instead.");let y=l.tag??i.preferredTagName;if(y==null)if(typeof i.name==="string"&&i.name!==""){if(y=w1(i.name),y.startsWith("-"))y=y.slice(1)}else y=s4();if(customElements.get(y)!=null)console.warn(`${y} is already defined`);if(y.match(/\w+(-\w+)+/)==null)console.warn(`${y} is not a legal tag for a custom-element`),y=s4();while(customElements.get(y)!==void 0)y=s4();i._tagName=y;let s=l.styleSpec??i.lightStyleSpec;if(s!==void 0)C9(y,s);let h=l.extends??i.extends,x=h?{extends:h}:void 0;window.customElements.define(y,this,x),i._elementCreator=a[y]}return i._elementCreator}initAttributes(...l){if(s1("initAttributes","initAttributes() is deprecated. Use static initAttributes = { ... } instead."),!this._legacyTrackedAttrs)this._legacyTrackedAttrs=new Set;for(let s of l)this._legacyTrackedAttrs.add(s);r9().observe(this,{attributes:!0});let i={},y={};l.forEach((s)=>{i[s]=I1(this[s]);let h=w1(s);Object.defineProperty(this,s,{enumerable:!1,get(){if(typeof i[s]==="boolean")return this.hasAttribute(h);else if(this.hasAttribute(h))return typeof i[s]==="number"?parseFloat(this.getAttribute(h)):this.getAttribute(h);else if(y[s]!==void 0)return y[s];else return i[s]},set(x){if(typeof i[s]==="boolean"){if(x!==this[s]){if(x)this.setAttribute(h,"");else this.removeAttribute(h);this.queueRender()}}else if(typeof i[s]==="number"){if(x!==parseFloat(this[s]))this.setAttribute(h,x),this.queueRender()}else if(typeof x==="object"||`${x}`!==`${this[s]}`){if(x===null||x===void 0||typeof x==="object")this.removeAttribute(h);else this.setAttribute(h,x);this.queueRender(),y[s]=x}}})})}initValue(){let l=Object.getOwnPropertyDescriptor(this,"value");if(l===void 0||l.get!==void 0||l.set!==void 0)return;let i=this.hasAttribute("value")?this.getAttribute("value"):I1(this.value);delete this.value,Object.defineProperty(this,"value",{enumerable:!1,get(){return i},set(y){if(i!==y)i=y,this._valueChanged=!0,this.queueRender(!0)}})}_parts;get parts(){let l=this.shadowRoot!=null?this.shadowRoot:this;if(this._parts==null)this._parts=new Proxy({},{get(i,y){if(i[y]===void 0){let s=l.querySelector(`[part="${y}"]`);if(s==null)s=l.querySelector(y);if(s==null)throw Error(`elementRef "${y}" does not exist!`);s.removeAttribute("data-ref"),i[y]=s}return i[y]}});return this._parts}attributeChangedCallback(l,i,y){let s=B3(l);if(!this._legacyTrackedAttrs?.has(s))this.queueRender(!1)}constructor(){super();if(x3+=1,this.constructor.formAssociated&&typeof this.attachInternals==="function"&&!this.internals)this.internals=this.attachInternals();let l=this.constructor.initAttributes;if(l)this._setupAttributeAccessors(l);this.instanceId=`${this.tagName.toLocaleLowerCase()}-${x3}`,this._value=I1(this.defaultValue)}_setupAttributeAccessors(l){if(!this._attrValues)this._attrValues=new Map;for(let i of Object.keys(l)){let y=w1(i),s=l[i];if(i==="value"){console.warn(`${this.tagName}: 'value' cannot be an attribute. Use the Component value property instead.`);continue}if(typeof s==="object"&&s!==null){console.warn(`${this.tagName}: initAttributes.${i} is an object. Use a regular property instead.`);continue}let h=this,x=!1;while(h){let o=Object.getOwnPropertyDescriptor(h,i);if(o){if(!o.configurable||o.get||o.set){x=!0;break}break}h=Object.getPrototypeOf(h)}if(x)continue;Object.defineProperty(this,i,{enumerable:!1,get:()=>{if(typeof s==="boolean")return this.hasAttribute(y);else if(this.hasAttribute(y))return typeof s==="number"?parseFloat(this.getAttribute(y)):this.getAttribute(y);else if(this._attrValues.has(i))return this._attrValues.get(i);else return s},set:(o)=>{if(typeof s==="boolean"){if(o!==this[i]){if(o)this.setAttribute(y,"");else this.removeAttribute(y);this.queueRender()}}else if(typeof s==="number"){if(o!==parseFloat(this[i]))this.setAttribute(y,o),this.queueRender()}else if(typeof o==="object"||`${o}`!==`${this[i]}`){if(o===null||o===void 0||typeof o==="object")this.removeAttribute(y);else this.setAttribute(y,o);this.queueRender(),this._attrValues.set(i,o)}}})}}connectedCallback(){if(g9(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(w4.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(){w4.unobserve(this)}formResetCallback(){if(this.value!==void 0)this.value=this.defaultValue??""}formDisabledCallback(l){if(l)this.setAttribute("disabled","");else this.removeAttribute("disabled")}formStateRestoreCallback(l){if(this.value!==void 0&&typeof l==="string")this.value=l}_changeQueued=!1;_renderQueued=!1;queueRender(l=!1){if(!this._hydrated)return;if(!this._changeQueued)this._changeQueued=l;if(!this._renderQueued)this._renderQueued=!0,requestAnimationFrame(()=>{if(this._changeQueued){if(a3(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 l=typeof this.content!=="function",i=typeof this.content==="function"?this.content(a):this.content,y=this.constructor,s=y.shadowStyleSpec??y.styleSpec;if(y.styleSpec&&!y.shadowStyleSpec)s1("static-styleSpec","static styleSpec is deprecated. Use static shadowStyleSpec instead.");let{styleNode:h}=y;if(s)h=y.styleNode=a.style(h2(s)),delete y.styleNode;if(this.styleNode)console.warn(this,"styleNode is deprecated, use static shadowStyleSpec instead"),h=this.styleNode;if(h){let x=this.attachShadow({mode:"open"});x.appendChild(h.cloneNode(!0)),u5(x,i,l)}else if(i!==null){let x=Array.from(this.childNodes);u5(this,i,l),this.isSlotted=this.querySelector("slot,xin-slot")!==void 0;let o=Array.from(this.querySelectorAll("slot"));if(o.length>0)o.forEach(F4.replaceSlot);if(x.length>0){let c={"":this};Array.from(this.querySelectorAll("xin-slot")).forEach((r)=>{c[r.name]=r}),x.forEach((r)=>{let C=c[""],g=r instanceof Element?c[r.slot]:C;(g!==void 0?g:C).append(r)})}}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 l=typeof this.value==="string"?this.value:String(this.value);U3(this,l)}}class F4 extends t{static preferredTagName="xin-slot";static initAttributes={name:""};content=null;static replaceSlot(l){let i=document.createElement("xin-slot");if(l.name!=="")i.setAttribute("name",l.name);l.replaceWith(i)}}var u7=F4.elementCreator(),n9=(l=()=>!0)=>{let i=localStorage.getItem("xin-state");if(i!=null){let s=JSON.parse(i);for(let h of Object.keys(s).filter(l))if(I[h]!==void 0)Object.assign(I[h],s[h]);else I[h]=s[h]}let y=N2(()=>{let s={},h=G(I);for(let x of Object.keys(h).filter(l))s[x]=h[x];localStorage.setItem("xin-state",JSON.stringify(s)),console.log("xin state saved to localStorage")},500);q4(l,y)},k9="tosijs-share",d9="tosijs-share",q2="shared",p9=1,a4=new Set,v4=new Set,x4=new Map,H1=null,B4="",i0=null,w9=null;function o3(){if(i0!=null)return Promise.resolve(i0);return new Promise((l,i)=>{let y=indexedDB.open(d9,p9);y.onupgradeneeded=()=>{y.result.createObjectStore(q2)},y.onsuccess=()=>{i0=y.result,l(i0)},y.onerror=()=>i(y.error)})}var a9={async get(l){let i=await o3();return new Promise((y,s)=>{let h=i.transaction(q2,"readonly").objectStore(q2).get(l);h.onsuccess=()=>y(h.result),h.onerror=()=>s(h.error)})},async set(l,i){let y=await o3();return new Promise((s,h)=>{let x=y.transaction(q2,"readwrite");x.objectStore(q2).put(i,l),x.oncomplete=()=>s(),x.onerror=()=>h(x.error)})}};function X3(){return w9??a9}function v9(l){return l!=null&&l.type==="tosijs-share"&&typeof l.path==="string"}function N3(l){for(let i of a4)if(l===i||l.startsWith(i+"."))return i;return}function B9(l){for(let i of v4)if(l===i||l.startsWith(i+"."))return!0;return!1}function t9(l,i){v4.add(l),t4(v1,l,i),p1(l),w3().then(()=>{v4.delete(l)})}function z9(){if(H1!=null)return H1;return B4=crypto.randomUUID(),H1=new BroadcastChannel(k9),H1.onmessage=(l)=>{let i=l.data;if(!v9(i))return;if(i.origin===B4)return;if(N3(i.path)===void 0)return;t9(i.path,i.value)},H1}function j9(l,i){if(H1==null)return;let y={type:"tosijs-share",path:l,value:i,origin:B4};H1.postMessage(y)}function A9(l){if(!x4.has(l))x4.set(l,N2(()=>{let i=S(v1,l);X3().set(l,i)},500));x4.get(l)()}async function V9(...l){if(typeof BroadcastChannel>"u")return{restored:[]};z9();let i=[],y=X3();for(let s of l){let h=typeof s==="string"?s:h1(s);if(h===void 0)throw Error("share() requires boxed proxies or string paths. Got a non-proxy value.");if(a4.has(h))continue;a4.add(h);let x=await y.get(h);if(x!==void 0)t4(v1,h,x),p1(h),i.push(s);else{let o=S(v1,h);await y.set(h,o)}J1((o)=>o===h||o.startsWith(h+"."),(o)=>{if(B9(o))return;let c=N3(o);if(c===void 0)return;let r=S(v1,o);j9(o,r),A9(c)})}return{restored:i}}var K3="1.4.3";function x1(l){return Object.assign(d1,l),d1}function O4(l){return s1("boxedProxy","boxedProxy is deprecated, please use tosi() instead"),x1(l)}function Q3(l,i=!1){if(i)return s1("xinProxy-boxed","xinProxy(..., true) is deprecated; use tosi(...) instead"),O4(l);return Object.keys(l).forEach((y)=>{I[y]=l[y]}),I}var q9={};async function U4(l,i){let y=await i(l,{Color:j,Component:t,elements:a,svgElements:o0,mathML:P3,varDefault:d,vars:n,xin:I,boxed:d1,xinProxy:Q3,boxedProxy:O4,tosi:x1,makeComponent:U4,bind:X1,on:x2,version:K3}),{type:s}=y;s.preferredTagName=l;let h=y.lightStyleSpec??y.styleSpec;if(h)s.lightStyleSpec=h;let x={type:s,creator:s.elementCreator()};return q9[l]=x,x}var r0={":host":{display:"none"}},o4={},_9=(l)=>import(l);class C0 extends t{static preferredTagName="tosi-blueprint";static lightStyleSpec=r0;static initAttributes={tag:"anon-elt",src:"",property:"default"};loaded;blueprintLoaded=(l)=>{};async packaged(){let{tag:l,src:i,property:y}=this,s=`${l}.${y}:${i}`;if(!this.loaded){if(o4[s]===void 0)o4[s]=_9(i).then((h)=>{let x=h[y];return U4(l,x)});else console.log(`using cached ${l} with signature ${s}`);this.loaded=await o4[s],this.blueprintLoaded(this.loaded)}return this.loaded}}var P9=C0.elementCreator();class X4 extends t{static preferredTagName="tosi-loader";static lightStyleSpec=r0;allLoaded=()=>{};async load(){let l=Array.from(this.querySelectorAll("tosi-blueprint, xin-blueprint")).filter((i)=>i.src).map((i)=>i.packaged());await Promise.all(l),this.allLoaded()}connectedCallback(){super.connectedCallback(),this.load()}}var F9=X4.elementCreator();class G3 extends C0{static preferredTagName="xin-blueprint";static lightStyleSpec=r0;constructor(){super();s1("xin-blueprint","<xin-blueprint> is deprecated. Use <tosi-blueprint> instead.")}}var O9=G3.elementCreator();class b3 extends t{static preferredTagName="xin-loader";static lightStyleSpec=r0;allLoaded=()=>{};constructor(){super();s1("xin-loader","<xin-loader> is deprecated. Use <tosi-loader> instead.")}async load(){let l=Array.from(this.querySelectorAll("xin-blueprint")).filter((i)=>i.src).map((i)=>i.packaged());await Promise.all(l),this.allLoaded()}connectedCallback(){super.connectedCallback(),this.load()}}var U9=b3.elementCreator();var N4={};class o2 extends t{static preferredTagName="tosi-ab";static set conditions(l){Object.assign(N4,l);for(let i of[...o2.instances])i.queueRender()}static initAttributes={condition:"",not:!1};static instances=new Set;connectedCallback(){super.connectedCallback(),o2.instances.add(this)}disconnectedCallback(){super.disconnectedCallback(),o2.instances.delete(this)}render(){if(this.condition!==""&&(this.not?N4[this.condition]!==!0:N4[this.condition]===!0))this.toggleAttribute("hidden",!1);else this.toggleAttribute("hidden",!0)}}var X9=o2.elementCreator();var g0={};function L(l,i){if(g0[l]===void 0){if(i!==void 0){let s=globalThis[i];g0[l]=Promise.resolve({[i]:s})}let y=a.script({src:l});document.head.append(y),g0[l]=new Promise((s)=>{y.onload=()=>s(globalThis)})}return g0[l]}var K4={};function n0(l){if(K4[l]===void 0){let i=a.link({rel:"stylesheet",type:"text/css",href:l});document.head.append(i),K4[l]=new Promise((y)=>{i.onload=y})}return K4[l]}var Q2={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 N9=(l)=>{Object.assign(Q2,l)},Q4=(l,i,y,s)=>{l.setAttribute("xmlns","http://www.w3.org/2000/svg");for(let o of[...l.querySelectorAll("path, polygon, line, circle, rect, ellipse, polyline")]){if(i!==void 0)o.setAttribute("fill",i);if(y!==void 0)o.setAttribute("stroke",y);if(s!==void 0)o.setAttribute("stroke-width",String(s))}let h=l.querySelectorAll("[style]");l.removeAttribute("style");for(let o of[...h]){let{fill:c,stroke:r,strokeWidth:C,strokeLinecap:g,strokeLinejoin:k}=o.style;if(c)o.setAttribute("fill",j.fromCss(c).html);if(r)o.setAttribute("stroke",j.fromCss(r).html);if(C)o.setAttribute("strokeWidth",C);if(g)o.setAttribute("strokeLinecap",g);if(k)o.setAttribute("strokeLinejoin",k);o.removeAttribute("style")}return`url(data:image/svg+xml;charset=UTF-8,${encodeURIComponent(l.outerHTML)})`},w=new Proxy(Q2,{get(l,i){let y=Q2[i];if(i&&!y)console.warn(`icon ${i} does not exist`);if(!y)y=Q2.square;return(...s)=>{let h=a.div();h.innerHTML=y;let x=h.querySelector("svg"),o=new Set(x.classList);o.add("tosi-icon");let c=o0.svg({class:Array.from(o).join(" "),viewBox:x.getAttribute("viewBox")},...s,...x.children);if(c.style.strokeWidth=d.tosiIconStrokeWidth("2px"),o.has("filled"))c.style.stroke="none",c.style.fill="currentColor";else if(o.has("stroked"))c.style.stroke=d.tosiIconStroke("currentColor"),c.style.fill="none";else c.style.stroke=d.tosiIconStroke("currentColor"),c.style.fill=d.tosiIconFill("currentColor");return c.style.height=d.tosiIconSize("16px"),c}}});class G4 extends t{static preferredTagName="tosi-icon";static lightStyleSpec={":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:d.tosiIconStrokeWidth("2px"),strokeLinejoin:d.tosiIconStrokeLinejoin("round"),strokeLinecap:d.tosiIconStrokeLinecap("round"),fill:d.tosiIconFill("none")},":host, :host svg":{height:d.tosiIconSize("16px")}};static initAttributes={icon:"",size:0,fill:"",stroke:"",strokeWidth:1};render(){super.render(),this.textContent="";let l={};if(this.size)l.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)l.stroke=this.stroke,l.strokeWidth=this.strokeWidth;if(this.fill)l.fill=this.fill;this.append(w[this.icon]({style:l}))}}var K9=G4.elementCreator();var W3=()=>{};class b4 extends t{static preferredTagName="tosi-3d";babylonReady;BABYLON;static shadowStyleSpec={":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:Q4(w.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=a.canvas({part:"canvas"});constructor(){super();this.babylonReady=(async()=>{let{BABYLON:l}=await L("https://cdn.babylonjs.com/babylon.js","BABYLON");return l})()}scene;engine;sceneCreated=W3;update=W3;_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(l,i,y)=>{let{BABYLON:s}=await L("https://cdn.babylonjs.com/loaders/babylonjs.loaders.min.js","BABYLON");s.SceneLoader.Append(l,i,this.scene,y)};loadUI=async(l)=>{let{BABYLON:i}=await L("https://cdn.babylonjs.com/gui/babylon.gui.min.js","BABYLON"),y=i.GUI.AdvancedDynamicTexture.CreateFullscreenUI("GUI",!0,this.scene),{snippetId:s,jsonUrl:h,data:x,size:o}=l;if(o)y.idealWidth=o,y.renderAtIdealSize=!0;let c;if(s)c=await y.parseFromSnippetAsync(s);else if(h)c=await y.parseFromURLAsync(h);else if(x)c=y.parseContent(x);else return null;let r=y.getChildren()[0],C=r.children.reduce((g,k)=>{return g[k.name]=k,g},{});return{advancedTexture:y,gui:c,root:r,widgets:C}};connectedCallback(){super.connectedCallback();let{canvas:l}=this.parts;this.babylonReady.then(async(i)=>{if(this.BABYLON=i,this.engine=new i.Engine(l,!0),this.scene=new i.Scene(this.engine),this.sceneCreated)await this.sceneCreated(this,i);if(this.scene.activeCamera===void 0)new i.ArcRotateCamera("default-camera",-Math.PI/2,Math.PI/2.5,3,new i.Vector3(0,0,0)).attachControl(this.parts.canvas,!0);this.engine.runRenderLoop(this._update)})}}var Q9=b4.elementCreator();class c2 extends t{static preferredTagName="tosi-lottie";static initAttributes={src:"",json:""};content=null;config={renderer:"svg",loop:!0,autoplay:!0};static bodymovinAvailable;animation;static shadowStyleSpec={":host":{width:400,height:400,display:"inline-block"}};_loading=!1;get loading(){return this._loading}constructor(){super();if(c2.bodymovinAvailable===void 0)c2.bodymovinAvailable=L("https://cdnjs.cloudflare.com/ajax/libs/bodymovin/5.12.2/lottie.min.js","bodymovin")}doneLoading=()=>{this._loading=!1};load=({bodymovin:l})=>{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<tosi-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 i=this.shadowRoot;if(i!==null)i.querySelector("svg")?.remove()}this.animation=l.loadAnimation(this.config),this.animation.addEventListener("DOMLoaded",this.doneLoading)};render(){super.render(),c2.bodymovinAvailable.then(this.load).catch((l)=>{console.error(l)})}}var G9=c2.elementCreator();var{button:W4,slot:b9,div:k0}=a;class d0 extends t{static preferredTagName="tosi-carousel";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(l){let{scroller:i,back:y,forward:s}=this.parts;if(this.lastPage<=0)s.disabled=y.disabled=!0,l=0;else l=Math.max(0,Math.min(this.lastPage,l)),l=isNaN(l)?0:l;if(this._page!==l)this._page=isNaN(l)?0:l,this.animateScroll(this._page*i.offsetWidth),y.disabled=this.page<=0&&!this.loop,s.disabled=this.page>=this.lastPage&&!this.loop}get visibleItems(){return[...this.children].filter((l)=>getComputedStyle(l).display!=="none")}get lastPage(){return Math.max(Math.ceil(this.visibleItems.length/(this.maxVisibleItems||1))-1,0)}static shadowStyleSpec={":host":{_carouselIconSize:24,_carouselButtonColor:"#0004",_carouselButtonHoverColor:"#0006",_carouselButtonActiveColor:"#000c",_carouseButtonWidth:48,_carouselDotCurrentColor:"#0008",_carouselDotSize:8,_carouselDotSpacing:n.carouselDotSize,_carouselProgressPadding:12,_carouselDotTransition:"0.125s ease-in-out",display:"flex",flexDirection:"column",position:"relative"},":host:focus":{outline:"none",boxShadow:"none"},":host svg":{height:n.carouselIconSize},":host button":{outline:"none",border:"none",boxShadow:"none",background:"transparent",color:n.carouselButtonColor,padding:0},":host::part(back), :host::part(forward)":{position:"absolute",top:0,bottom:0,width:n.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:n.carouselButtonHoverColor},":host button:active":{color:n.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:n.carouselButtonColor,borderRadius:n.carouselDotSize,height:n.carouselDotSize,width:n.carouselDotSize,transition:n.carouselDotTransition},":host .dot:not(.current):hover":{background:n.carouselButtonHoverColor,height:n.carouselDotSize150,width:n.carouselDotSize150,margin:n.carouselDotSize_25},":host .dot:not(.current):active":{background:n.carouselButtonActiveColor},":host .dot.current":{background:n.carouselDotCurrentColor},":host::part(progress)":{display:"flex",gap:n.carouselDotSpacing,justifyContent:"center",padding:n.carouselProgressPadding}};easing=(l)=>{return Math.sin(l*Math.PI*0.5)};indicateCurrent=()=>{let{scroller:l,progress:i}=this.parts,y=l.scrollLeft/l.offsetWidth;[...i.children].forEach((s,h)=>{s.classList.toggle("current",Math.floor(h/this.maxVisibleItems-y)===0)}),this.lastAutoAdvance=Date.now(),clearTimeout(this.snapTimer),this.snapTimer=setTimeout(this.snapPosition,this.snapDelay*1000)};snapPosition=()=>{let{scroller:l}=this.parts,i=Math.round(l.scrollLeft/l.offsetWidth);if(i!==this.page)this.page=i>this.page?Math.ceil(i):Math.floor(i);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=(l)=>{let{progress:i}=this.parts,y=[...i.children].indexOf(l.target);if(y>-1)this.page=Math.floor(y/this.maxVisibleItems)};snapTimer;animationFrame;animateScroll(l,i=-1,y=0){cancelAnimationFrame(this.animationFrame);let{scroller:s}=this.parts;if(i===-1){i=s.scrollLeft,y=Date.now(),this.animationFrame=requestAnimationFrame(()=>{this.animateScroll(l,i,y)});return}let h=(Date.now()-y)/1000;if(h>=this.snapDuration||Math.abs(s.scrollLeft-l)<2)s.scrollLeft=l,this.animationFrame=null;else s.scrollLeft=i+this.easing(h/this.snapDuration)*(l-i),this.animationFrame=requestAnimationFrame(()=>{this.animateScroll(l,i,y)})}content=()=>[k0({part:"pager"},W4({title:"previous slide",part:"back"},w.chevronLeft()),k0({title:"slides",role:"group",part:"scroller"},k0({part:"grid"},b9())),W4({title:"next slide",part:"forward"},w.chevronRight())),k0({title:"choose slide to display",role:"group",part:"progress"})];connectedCallback(){super.connectedCallback(),this.ariaRoleDescription="carousel",this.ariaOrientation="horizontal",this.ariaReadOnly="true";let{back:l,forward:i,scroller:y,progress:s}=this.parts;l.addEventListener("click",this.back),i.addEventListener("click",this.forward),y.addEventListener("scroll",this.indicateCurrent),s.addEventListener("click",this.handleDotClick),this.lastAutoAdvance=Date.now(),this.interval=setInterval(this.autoAdvance,100)}disconnectedCallback(){clearInterval(this.interval)}render(){super.render();let{dots:l,arrows:i,visibleItems:y,lastPage:s}=this,{progress:h,back:x,forward:o,grid:c}=this.parts;y.forEach((r)=>{r.role="group"}),c.style.gridTemplateColumns=`${100/this.maxVisibleItems/(1+this.lastPage)}% `.repeat(y.length).trim(),c.style.width=(1+this.lastPage)*100+"%",h.textContent="",h.append(...y.map((r,C)=>W4({title:`item ${C+1}`,class:"dot"}))),this.indicateCurrent(),h.style.display=l&&s>0?"":"none",x.hidden=o.hidden=!(i&&s>0)}}var W9=d0,f3=d0.elementCreator(),f9=f3;var R3="https://cdnjs.cloudflare.com/ajax/libs/ace/1.23.2/",Z3="ace/theme/tomorrow",R9=async()=>{let{ace:l}=await L(`${R3}ace.min.js`);return l},Z9=async(l,i="html",y={},s=Z3)=>{let h=await R9();h.config.set("basePath",R3);let x=h.edit(l,{mode:`ace/mode/${i}`,tabSize:2,useSoftTabs:!0,useWorker:!1,...y});return x.setTheme(s),{ace:h,editor:x}};class T1 extends t{static preferredTagName="tosi-code";source="";get value(){return this.editor===void 0?this.source:this.editor.getValue()}set value(l){if(this.editor===void 0)this.source=l;else this.editor.setValue(l),this.editor.clearSelection(),this.editor.session.getUndoManager().reset()}static initAttributes={mode:"javascript",theme:Z3,disabled:!1};role="code editor";_ace;_editor;_editorPromise;options={};get ace(){return this._ace}get editor(){return this._editor}static shadowStyleSpec={":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=Z9(this,this.mode,this.options,this.theme),this._editorPromise.then(({ace:l,editor:i})=>{this._ace=l,this._editor=i,i.setValue(this.source,1),i.clearSelection(),i.session.getUndoManager().reset()})}render(){if(super.render(),this._editorPromise!==void 0)this._editorPromise.then(({editor:l})=>l.setReadOnly(this.disabled))}}var r2=T1.elementCreator();var{input:f4}=a,H3=j.fromCss("#8888");class J3 extends t{static preferredTagName="tosi-color";value=H3.rgba;color=H3;static shadowStyleSpec={":host":{_gap:8,_swatchSize:32,_cssWidth:72,_alphaWidth:72,display:"inline-flex",gap:n.gap,alignItems:"center"},':host input[type="color"]':{border:0,width:n.swatchSize,height:n.swatchSize,background:"transparent"},":host::part(alpha)":{width:n.alphaWidth},":host::part(css)":{width:n.cssWidth,fontFamily:"monospace"}};content=[f4({title:"base color",type:"color",part:"rgb"}),f4({type:"range",title:"opacity",part:"alpha",min:0,max:1,step:0.05}),f4({title:"css color spec",part:"css"})];valueChanged=!1;update=(l)=>{let{rgb:i,alpha:y,css:s}=this.parts;if(l.type==="input")this.color=j.fromCss(i.value),this.color.a=Number(y.value),s.value=this.color.html;else this.color=j.fromCss(s.value),i.value=this.color.html.substring(0,7),y.value=String(this.color.a);i.style.opacity=String(this.color.a),this.value=this.color.rgba,this.valueChanged=!0};connectedCallback(){super.connectedCallback();let{rgb:l,alpha:i,css:y}=this.parts;l.addEventListener("input",this.update),i.addEventListener("input",this.update),y.addEventListener("change",this.update)}render(){if(this.valueChanged){this.valueChanged=!1;return}let{rgb:l,alpha:i,css:y}=this.parts;this.color=j.fromCss(this.value),l.value=this.color.html.substring(0,7),l.style.opacity=String(this.color.a),i.value=String(this.color.a),y.value=this.color.html}}var R4=J3.elementCreator();var N1=a.div({style:{content:" ",position:"fixed",top:0,left:0,right:0,bottom:0}}),p0={passive:!0},T=(l,i,y="move")=>{if(!l.type.startsWith("touch")){let{clientX:h,clientY:x}=l;N1.style.cursor=y,K1(N1),document.body.append(N1);let o=(c)=>{let r=c.clientX-h,C=c.clientY-x;if(i(r,C,c)===!0)N1.removeEventListener("mousemove",o),N1.removeEventListener("mouseup",o),N1.remove()};N1.addEventListener("mousemove",o,p0),N1.addEventListener("mouseup",o,p0)}else if(l instanceof TouchEvent){let h=l.changedTouches[0],x=h.identifier,o=h.clientX,c=h.clientY,r=l.target,C=0,g=0,k=(p)=>{let z=[...p.touches].find((v)=>v.identifier===x);if(z!==void 0)C=z.clientX-o,g=z.clientY-c;if(p.type==="touchmove")p.stopPropagation(),p.preventDefault();if(i(C,g,p)===!0||z===void 0)r.removeEventListener("touchmove",k),r.removeEventListener("touchend",k),r.removeEventListener("touchcancel",k)};r.addEventListener("touchmove",k),r.addEventListener("touchend",k,p0),r.addEventListener("touchcancel",k,p0)}},M1=(l="body *")=>[...document.querySelectorAll(l)].map((i)=>parseFloat(getComputedStyle(i).zIndex)).reduce((i,y)=>isNaN(i)||Number(i)<y?y:Number(i),0),K1=(l,i="body *")=>{l.style.zIndex=String(M1(i)+1)};var{slot:H9}=a;class _1 extends t{static preferredTagName="tosi-float";static floats=new Set;static initAttributes={drag:!1,remainOnResize:"remove",remainOnScroll:"remain"};content=H9();static shadowStyleSpec={":host":{position:"fixed"}};reposition=(l)=>{if(l.target?.closest(".no-drag"))return;if(this.drag){K1(this);let y=this.offsetLeft,s=this.offsetTop;T(l,(h,x,o)=>{if(this.style.left=`${y+h}px`,this.style.top=`${s+x}px`,this.style.right="auto",this.style.bottom="auto",o.type==="mouseup")return!0})}};connectedCallback(){super.connectedCallback(),_1.floats.add(this);let l={passive:!0};this.addEventListener("touchstart",this.reposition,l),this.addEventListener("mousedown",this.reposition,l),K1(this)}disconnectedCallback(){super.disconnectedCallback(),_1.floats.delete(this)}}var J9=_1,G2=_1.elementCreator(),$9=G2;window.addEventListener("resize",()=>{Array.from(_1.floats).forEach((l)=>{if(l.remainOnResize==="hide")l.hidden=!0;else if(l.remainOnResize==="remove")l.remove()})},{passive:!0});document.addEventListener("scroll",(l)=>{if(l.target instanceof HTMLElement&&l.target.closest(_1.tagName))return;Array.from(_1.floats).forEach((i)=>{if(i.remainOnScroll==="hide")i.hidden=!0;else if(i.remainOnScroll==="remove")i.remove()})},{passive:!0,capture:!0});var Z4=(l)=>{let{content:i,target:y,position:s,remainOnScroll:h,remainOnResize:x,draggable:o}=l,c=Array.isArray(i)?G2(...i):G2(i);if($3(c,y,s,h,x,o),l.class)c.setAttribute("class",l.class);return document.body.append(c),c},$3=(l,i,y,s,h,x=!1)=>{{let{position:v}=getComputedStyle(l);if(v!=="fixed")l.style.position="fixed";if(h)l.remainOnResize=h;if(s)l.remainOnScroll=s;K1(l)}l.drag=x;let{left:o,top:c,width:r,height:C}=i.getBoundingClientRect(),g=o+r*0.5,k=c+C*0.5,p=window.innerWidth,z=window.innerHeight;if(y==="side")y=(g<p*0.5?"e":"w")+(k<z*0.5?"s":"n");else if(y==="auto"||y===void 0)y=(k<z*0.5?"s":"n")+(g<p*0.5?"e":"w");if(l.style.top=l.style.left=l.style.right=l.style.bottom=l.style.transform="",y.length===2){let[v,V]=y;switch(v){case"n":l.style.bottom=(z-c).toFixed(2)+"px";break;case"e":l.style.left=(o+r).toFixed(2)+"px";break;case"s":l.style.top=(c+C).toFixed(2)+"px";break;case"w":l.style.right=(p-o).toFixed(2)+"px";break}switch(V){case"n":l.style.bottom=(z-c-C).toFixed(2)+"px";break;case"e":l.style.left=o.toFixed(2)+"px";break;case"s":l.style.top=c.toFixed(2)+"px";break;case"w":l.style.right=(p-o-r).toFixed(2)+"px";break}l.style.transform=""}else if(y==="n")l.style.bottom=(z-c).toFixed(2)+"px",l.style.left=g.toFixed(2)+"px",l.style.transform="translateX(-50%)";else if(y==="s")l.style.top=(c+C).toFixed(2)+"px",l.style.left=g.toFixed(2)+"px",l.style.transform="translateX(-50%)";else if(y==="e")l.style.left=(o+r).toFixed(2)+"px",l.style.top=k.toFixed(2)+"px",l.style.transform="translateY(-50%)";else if(y==="w")l.style.right=(p-o).toFixed(2)+"px",l.style.top=k.toFixed(2)+"px",l.style.transform="translateY(-50%)";l.style.setProperty("--max-height",`calc(100vh - ${l.style.top||l.style.bottom})`),l.style.setProperty("--max-width",`calc(100vw - ${l.style.left||l.style.right})`)};function w0(l,i=!0){return(y,s)=>{let h=l(y),x=l(s);for(let o in h)if(h[o]!==x[o])return(Array.isArray(i)?i[o]!==!1:i)?h[o]>x[o]?1:-1:h[o]>x[o]?-1:1;return 0}}var{button:I9,span:I3,input:e9}=a,e3=(l,i)=>{return!!l.find((y)=>{if(y===null||i==null)return!1;else if(Array.isArray(y))return e3(y,i);else if(y.value===i||y===i)return!0})};class B1 extends t{static preferredTagName="tosi-select";static formAssociated=!0;static lightStyleSpec={":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:n.tosiSelectGap,textAlign:"left",height:n.tosiSelectTouchSize,padding:n.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:n.tosiSelectFieldWidth,padding:n.tosiSelectValuePadding,height:n.tosiSelectTouchSize,lineHeight:n.tosiSelectTouchSize,boxShadow:"none",whiteSpace:"nowrap",outline:"none",background:"transparent",flex:"1"},':host [part="value"]:not(:focus)':{overflow:"hidden",textOverflow:"ellipsis",background:"transparent"}};static initAttributes={editable:!1,placeholder:"",showIcon:!1,hideCaption:!1,localized:!1,disabled:!1,required:!1,name:""};_options=[];get options(){return this._options}set options(l){if(typeof l==="string")this._options=B1.parseOptionsString(l);else this._options=l;this.queueRender()}static parseOptionsString(l){return l.split(",").map((i)=>{let y=i.trim();if(y==="")return null;let[s,h]=y.split("=").map((c)=>c.trim());if(!h)return{value:s,caption:s};let[x,o]=h.split(":").map((c)=>c.trim());return{value:s,caption:x||s,icon:o||void 0}})}value="";filter="";isExpanded=!1;formDisabledCallback(l){this.disabled=l}formResetCallback(){this.value=""}setValue=(l,i=!1)=>{if(this.value!==l)this.value=l,this.queueRender(!0);if(i)this.dispatchEvent(new Event("action"))};getValue=()=>this.value;get selectOptions(){return this.options}buildOptionMenuItem=(l)=>{if(l===null)return null;let{setValue:i,getValue:y}=this,s,h,x;if(typeof l==="string")h=x=l;else({icon:s,caption:h,value:x}=l);if(this.localized)h=Q(h);let{options:o}=l;if(o)return{icon:s,caption:h,checked:()=>e3(o,y()),menuItems:o.map(this.buildOptionMenuItem)};return{icon:s,caption:h,checked:()=>y()===x,action:typeof x==="function"?async()=>{let c=await x();if(c!==void 0)i(c,!0)}:()=>{if(typeof x==="string")i(x,!0)}}};poppedOptions=[];get optionsMenu(){let l=this.selectOptions.map(this.buildOptionMenuItem);if(this.filter==="")return l;let i=(y)=>{if(y===null)return!0;else if(y.menuItems){let s=l1(y.menuItems);return y.menuItems=s.filter(i),s.length>0}else return y.caption.toLocaleLowerCase().includes(this.filter)};return l.filter(i)}handleChange=(l)=>{let{value:i}=this.parts,y=i.value||"";if(this.value!==String(y))this.value=y,this.dispatchEvent(new Event("change"));this.filter="",l.stopPropagation(),l.preventDefault()};handleKey=(l)=>{if(l.key==="Enter")l.preventDefault()};filterMenu=U2(()=>{this.filter=this.parts.value.value.toLocaleLowerCase(),J(0),this.popOptions()});popOptions=(l)=>{if(l&&l.type==="click")this.filter="";this.poppedOptions=this.optionsMenu,this.isExpanded=!0,this.updateAriaExpanded(),W({target:this,menuItems:this.poppedOptions,showChecked:!0,role:"listbox",onClose:()=>{this.isExpanded=!1,this.updateAriaExpanded()}})};updateAriaExpanded(){let{value:l}=this.parts;l.setAttribute("aria-expanded",String(this.isExpanded))}content=()=>[I9({type:"button",part:"button",onClick:this.popOptions},I3(),e9({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}),w.chevronDown())];get allOptions(){let l=[];function i(y){for(let s of y)if(typeof s==="string")l.push({caption:s,value:s});else if(s?.value)l.push(s);else if(s?.options)i(s.options)}return i(this.selectOptions),l}findOption(){return this.allOptions.find((i)=>i.value===this.value)||{caption:this.value,value:this.value}}localeChanged=()=>{this.queueRender()};connectedCallback(){super.connectedCallback();let l=this.getAttribute("options");if(l&&this._options.length===0)this._options=B1.parseOptionsString(l);if(this.localized)a0.allInstances.add(this)}disconnectedCallback(){if(super.disconnectedCallback(),this.localized)a0.allInstances.delete(this)}render(){super.render();let{value:l,button:i}=this.parts;i.disabled=this.disabled;let y=l.previousElementSibling,s=this.findOption(),h=I3();if(l.value=this.localized?Q(s.caption):s.caption,s.icon)if(s.icon instanceof HTMLElement)h=s.icon.cloneNode(!0);else h=w[s.icon]();y.replaceWith(h),l.setAttribute("placeholder",this.localized?Q(this.placeholder):this.placeholder),l.style.pointerEvents=this.editable?"":"none",l.readOnly=!this.editable}}var Y9=B1,E=B1.elementCreator(),D9=D((...l)=>E(...l),"xinSelect is deprecated, use tosiSelect instead (tag is now <tosi-select>)");var{span:Y3}=a,{i18n:b}=x1({i18n:{locale:window.navigator.language,locales:[window.navigator.language],languages:[window.navigator.language],emoji:[""],stringMap:{},localeOptions:[{icon:Y3(),caption:window.navigator.language,value:window.navigator.language}]}});q1.localeOptions={toDOM(l,i){if(l instanceof B1)l.options=i}};var S9=(l)=>{if(b.locales.value.includes(l))b.locale.value=l;else console.error(`language ${l} is not available`)},H4=()=>{let l=Array.from(t1.allInstances);for(let i of l)i.localeChanged()};b.locale.observe(H4);var T9=w0((l)=>[l.caption.toLocaleLowerCase()]);function M9(l){let[i,,y,s,...h]=l.split(`
14
- `).map((x)=>x.split("\t"));if(i&&y&&s&&h){if(b.locales.value=i,b.languages.value=y,b.emoji.value=s,b.stringMap.value=h.reduce((x,o)=>{return x[o[0].toLocaleLowerCase()]=o,x},{}),b.localeOptions.value=i.map((x,o)=>({icon:Y3({title:i[o]},s[o]),caption:y[o],value:x})).sort(T9),!b.locales.value.includes(b.locale.value)){let x=b.locale.value.substring(0,2);b.locale.value=b.locales.value.find((o)=>o.substring(0,2)===x)||b.locales.value[0]}H4()}}function Q(l){if(l.endsWith("…"))return Q(l.substring(0,l.length-1))+"…";let i=b.locales.value.indexOf(b.locale.value);if(i>-1){let y=b.stringMap.value,s=l.toLocaleLowerCase(),h=y[s],x=h&&h[i];if((!x||x==='"')&&s.includes("#")){let o=y[s.substring(0,s.indexOf("#"))];x=o&&o[i]}if(x)x=x.split("#",2)[0],l=l.toLocaleLowerCase()===l?x.toLocaleLowerCase():x;else l=l.split("#",2)[0]}else l=l.split("#",2)[0];return l}class v0 extends t{static preferredTagName="tosi-locale-picker";static initAttributes={hideCaption:!1};content=()=>{return E({part:"select",showIcon:!0,title:Q("Language"),bindValue:b.locale,bindLocaleOptions:b.localeOptions})};render(){super.render(),this.parts.select.toggleAttribute("hide-caption",this.hideCaption)}}var u9=v0,D3=v0.elementCreator(),m9=D3;class t1 extends t{static preferredTagName="tosi-localized";static lightStyleSpec={":host":{pointerEvents:"none"}};static allInstances=new Set;static initAttributes={refString:""};contents=()=>a.xinSlot();connectedCallback(){super.connectedCallback(),t1.allInstances.add(this)}disconnectedCallback(){super.disconnectedCallback(),t1.allInstances.delete(this)}localeChanged(){if(!this.refString)this.refString=this.textContent||"";this.textContent=this.refString?Q(this.refString):""}render(){super.render(),this.localeChanged()}}var a0=t1,z1=t1.elementCreator(),L9=z1;var S3=typeof navigator<"u"&&/Mac|iPhone|iPad|iPod/.test(navigator.platform||""),E9=S3?{meta:"⌘",ctrl:"⌃",alt:"⌥",shift:"⇧",escape:"⎋"}:{meta:"Meta",ctrl:"Ctrl",alt:"Alt",shift:"Shift",escape:"Esc"},T3=(l)=>{if(l.code)return l.code.replace(/^Key|^Digit/,"");return l.key},l6=(l)=>{let i=[];if(l.altKey)i.push("alt");if(l.ctrlKey)i.push("ctrl");if(l.metaKey)i.push("meta");if(l.shiftKey)i.push("shift");return i.push(T3(l)),i.join("-")},i6=[[/\^|ctrl-?/i,"ctrlKey"],[/⌘|meta-?/i,"metaKey"],[/⌥|⎇|alt-?|option-?/i,"altKey"],[/⇧|shift-?/i,"shiftKey"]],B0=(l)=>{let i=l.trim(),y={ctrlKey:!1,metaKey:!1,altKey:!1,shiftKey:!1,key:""};for(let[s,h]of i6)if(s.test(i))y[h]=!0,i=i.replace(s,"");return i=i.replace(/^-+/,""),y.key=i.toLowerCase(),y},J4=(l,i)=>{let y=B0(i);return l.key.toLowerCase()===y.key&&l.metaKey===y.metaKey&&l.ctrlKey===y.ctrlKey&&l.altKey===y.altKey&&l.shiftKey===y.shiftKey},y6=(l)=>{let i=B0(l),y=[];if(i.altKey)y.push("alt");if(i.ctrlKey)y.push("ctrl");if(i.metaKey)y.push("meta");if(i.shiftKey)y.push("shift");return y.push(i.key),y.join("-")},t0=(l)=>{let i=B0(l);if(S3){let s=[];if(i.ctrlKey)s.push("⌃");if(i.altKey)s.push("⌥");if(i.shiftKey)s.push("⇧");if(i.metaKey)s.push("⌘");return s.push(i.key.toUpperCase()),s.join("")}let y=[];if(i.ctrlKey)y.push("Ctrl");if(i.altKey)y.push("Alt");if(i.shiftKey)y.push("Shift");if(i.metaKey)y.push("Meta");return y.push(i.key.toUpperCase()),y.join("+")};var j0={};m0(j0,{stringToTypes:()=>g2,isTypeAllowed:()=>n2,init:()=>e4,draggedElement:()=>c6});var s6=()=>!!document.querySelector(".drag-source"),n2=(l,i)=>{if(!l)return!1;for(let y of l)if(y==="special/any")return!0;else if(y.indexOf("*")>-1){let[s,h]=y.split("/"),[x,o]=i.split("/");if((s==="*"||s===x)&&(h==="*"||h===o))return!0}else if(y===i)return!0},z0=(l)=>{for(let i of[...document.querySelectorAll(`.${l}`)])i.classList.remove(l)},m3=()=>{if(C2)C2.disconnect(),C2=null;$4=[],z0("drag-over"),z0("drag-source"),z0("drag-target")},g2=(l,i=";")=>{return(l||"").split(i).map((y)=>y.trim()).filter((y)=>y!=="")},$4=[],C2=null,I4=(l)=>{if(!l)l=[];$4=l;let i=[...document.querySelectorAll("[data-drop]")];for(let y of i){let s=g2(y.dataset.drop);if(l.find((h)=>n2(s,h)))y.classList.add("drag-target");else y.classList.remove("drag-target")}if(!C2)C2=new MutationObserver(()=>I4($4)),C2.observe(document.body,{childList:!0,subtree:!0})};function h6(l){let i=l.target?.closest('[draggable="true"],a[href]');if(!i)return;i.classList.add("drag-source");let y=i.matches('[draggable="true"]')?g2(i.dataset.drag||"text/html"):g2(i.dataset.drag||"url");for(let s of y){let h=i.dataset.dragContent||(s==="text/html"?i.innerHTML:i.textContent);l.dataTransfer?.setData(s,h||"")}I4(l.dataTransfer?.types),l.stopPropagation()}function M3(l){if(!s6())I4(l.dataTransfer?.types);let i=l.target.closest(".drag-target");if(i&&l.dataTransfer)i.classList.add("drag-over"),l.dataTransfer.dropEffect="copy";else l.preventDefault(),l.stopPropagation()}function x6(){z0("drag-over")}function o6(l){let i=l.target.closest(".drag-target");if(i){let y=(i.dataset?.drop||"").split(";");for(let s of y)if(n2(l.dataTransfer?.types,s))if(s==="text/html")i.innerHTML=l.dataTransfer?.getData(s)||"";else i.textContent=l.dataTransfer?.getData(s)||""}m3()}var c6=()=>document.querySelector(".drag-source"),u3=!1,e4=()=>{if(u3)return;document.body.addEventListener("dragstart",h6),document.body.addEventListener("dragenter",M3),document.body.addEventListener("dragover",M3),document.body.addEventListener("drop",o6),document.body.addEventListener("dragleave",x6),document.body.addEventListener("dragend",m3),window.addEventListener("dragover",(l)=>l.preventDefault()),window.addEventListener("drop",(l)=>l.preventDefault()),u3=!0};var l1=(l)=>typeof l==="function"?l():l,{div:L3,button:f2,span:f,a:r6,xinSlot:C6}=a,E3=(l)=>{let i=[];for(let y of l)if(y===null){if(i.length>0&&i[i.length-1]!==null)i.push(y)}else i.push(y);while(i.length>0&&i[i.length-1]===null)i.pop();return i},W2=(l,i,y=!1)=>{let s=[];for(let h of l){if(h===null){s.push(h);continue}let{acceptsDrop:x}=h;if(!x){if(!y)s.push({...h,enabled:()=>!1});continue}if(!i.some((r)=>n2(x,r))){if(!y)s.push({...h,enabled:()=>!1});continue}let c=h;if(c.menuItems){let r=W2(l1(c.menuItems),i,!0);if(r.length>0||c.dropAction){let C=y?r:W2(l1(c.menuItems),i,!1);s.push({...c,menuItems:C})}else if(!y)s.push({...c,enabled:()=>!1})}else s.push(h)}return E3(s)},Y4=(l,i=!1)=>{let y=[];for(let s of l){if(s===null){y.push(s);continue}let{action:h,menuItems:x}=s;if(h||x)if(x){let o=Y4(l1(x),!0);if(o.length>0){let c=i?o:Y4(l1(x),!1);y.push({...s,menuItems:c})}else if(!i)y.push({...s,enabled:()=>!1})}else y.push(s);else if(!i)y.push({...s,enabled:()=>!1})}return E3(y)};D1("xin-menu-helper",{".xin-menu":{overflow:"hidden auto",maxHeight:`calc(${n.maxHeight} - ${d.menuInset("8px")})`,borderRadius:n.spacing50,background:d.menuBg("#fafafa"),boxShadow:d.menuShadow(`${n.spacing13} ${n.spacing50} ${n.spacing} #0004`)},".xin-menu > div":{width:d.menuWidth("auto")},".xin-menu-trigger":{paddingLeft:0,paddingRight:0,minWidth:d.touchSize("48px")},".xin-menu-separator":{display:"inline-block",content:" ",height:"1px",width:"100%",background:d.menuSeparatorColor("#2224"),margin:d.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:d.menuItemPadding("0 16px"),height:d.menuItemHeight("48px"),lineHeight:d.menuItemHeight("48px"),textAlign:"left"},".xin-menu-item, .xin-menu-item > span":{color:d.menuItemColor("#222")},".xin-menu-with-icons .xin-menu-item":{gridTemplateColumns:"30px 1fr 30px"},".xin-menu-item svg":{stroke:d.menuItemIconColor("#222")},".xin-menu-item.xin-menu-item-checked":{background:d.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:d.menuItemHoverBg("#eee")},".xin-menu-item.drag-target:hover":{boxShadow:`inset 0 0 0 2px color-mix(in srgb, ${d.menuDropOverBg("#2196F3")} 50%, transparent) !important`},".xin-menu-item:active":{boxShadow:"none !important",background:d.menuItemActiveBg("#aaa"),color:d.menuItemActiveColor("#000")},".xin-menu-item:active svg":{stroke:d.menuItemIconActiveColor("#000")},".xin-menu-item-highlight":{boxShadow:"none !important",background:d.menuItemActiveBg("#aaa"),color:d.menuItemActiveColor("#000")},".xin-menu-item-highlight svg":{stroke:d.menuItemIconActiveColor("#000")},".xin-drop-over":{background:`${d.menuDropOverBg("#2196F3")} !important`,color:`${d.menuDropOverColor("#fff")} !important`},".xin-drop-over > span":{color:`${d.menuDropOverColor("#fff")} !important`},".xin-drop-over svg":{stroke:`${d.menuDropOverColor("#fff")} !important`},".drag-target":{boxShadow:`inset 0 0 0 2px color-mix(in srgb, ${d.menuDropOverBg("#2196F3")} 50%, transparent) !important`}});var ll=(l,i)=>{let y=l.checked&&l.checked()&&"check"||!1,s=l?.icon||y||f(" ");if(typeof s==="string")s=w[s]();let h=i.role==="listbox"?"option":"menuitem",x;if(typeof l?.action==="string")x=r6({class:"xin-menu-item",role:h,href:l.action},s,i.localized?f(Q(l.caption)):f(l.caption),f(l.shortcut?t0(l.shortcut):" "));else x=f2({class:"xin-menu-item",role:h,onClick:l.action},s,i.localized?f(Q(l.caption)):f(l.caption),f(l.shortcut?t0(l.shortcut):" "));if(x.classList.toggle("xin-menu-item-checked",y!==!1),i.role==="listbox"&&y)x.setAttribute("aria-selected","true");if(l?.enabled&&!l.enabled())x.setAttribute("disabled",""),x.setAttribute("aria-disabled","true");return x},il=(l,i)=>{let y=l?.icon||f(" ");if(typeof y==="string")y=w[y]();let s=f2({class:"xin-menu-item",onDragenter(h){d2(),s.classList.add("xin-drop-over"),h.preventDefault()},onDragover(h){if(h.preventDefault(),h.dataTransfer)h.dataTransfer.dropEffect="copy"},onDragleave(h){let x=h.relatedTarget;if(x&&s.contains(x))return;s.classList.remove("xin-drop-over")},onDrop(h){if(h.preventDefault(),h.stopPropagation(),s.classList.remove("xin-drop-over"),l.dropAction&&h.dataTransfer)l.dropAction(h.dataTransfer);J(0)}},y,i.localized?f(Q(l.caption)):f(l.caption),f(" "));if(l.dropAction&&l.acceptsDrop)s.dataset.drop=l.acceptsDrop.join(";");if(l?.enabled&&!l.enabled())s.setAttribute("disabled",""),s.setAttribute("aria-disabled","true");return s},D4=(l,i)=>{let y=l.checked&&l.checked()&&"check"||!1,s=l?.icon||y||f(" ");if(typeof s==="string")s=w[s]();let h=null,x=!1,o=f2({class:"xin-menu-item",disabled:!(!l.enabled||l.enabled()),onClick(c){if(i._dropMode)return;W(Object.assign({},i,{menuItems:l1(l.menuItems),target:o,submenuDepth:(i.submenuDepth||0)+1,position:"side"})),c.stopPropagation(),c.preventDefault()},onDragenter(c){if(!i._dropMode)return;d2(),c.preventDefault(),c.stopPropagation();let r=c.relatedTarget;if(r&&o.contains(r))return;if(o.classList.add("xin-drop-over"),x){if(J((i.submenuDepth||0)+1),x=!1,h)clearTimeout(h);h=null;return}if(h)clearTimeout(h);h=setTimeout(()=>{x=!0;let C=l1(l.menuItems),g=i._dataTypes?W2(C,i._dataTypes,i.hideDisabled):C;if(g.length>0)W(Object.assign({},i,{menuItems:g,target:o,submenuDepth:(i.submenuDepth||0)+1,position:"side",_dropMode:!0,_dataTypes:i._dataTypes}))},i.disclosureDelay??200)},onDragover(c){if(!i._dropMode)return;if(c.preventDefault(),c.stopPropagation(),c.dataTransfer)c.dataTransfer.dropEffect=l.dropAction?"copy":"link"},onDragleave(c){if(!i._dropMode)return;let r=c.relatedTarget;if(r&&o.contains(r))return;if(x&&r&&$.some((C)=>C.menu.contains(r)||C.target.contains(r)))return;if(o.classList.remove("xin-drop-over"),h)clearTimeout(h),h=null},onDrop(c){if(!i._dropMode||!l.dropAction)return;if(c.preventDefault(),c.stopPropagation(),o.classList.remove("xin-drop-over"),c.dataTransfer)l.dropAction(c.dataTransfer);J(0)}},s,i.localized?f(Q(l.caption)):f(l.caption),w.chevronRight({style:{justifySelf:"flex-end"}}));if(i._dropMode&&l.dropAction&&l.acceptsDrop)o.dataset.drop=l.acceptsDrop.join(";");return o},yl=(l,i)=>{if(l===null)return f({class:"xin-menu-separator"});else if(i._dropMode){let y=l;if(y.menuItems&&l1(y.menuItems).length>0)return D4(y,i);else if(l.dropAction)return il(l,i);else{let h=l?.icon||f(" ");if(typeof h==="string")h=w[h]();return f2({class:"xin-menu-item",disabled:!0},h,i.localized?f(Q(l.caption)):f(l.caption),f(" "))}}else{let y=l?.action?ll(l,i):D4(l,i);if(i.showChecked&&l.checked&&l.checked())requestAnimationFrame(()=>{y.scrollIntoView({block:"center"})});return y}},sl=(l)=>{let{target:i,width:y,menuItems:s,role:h="menu"}=l,x=s.find((r)=>r?.icon||r?.checked),o=l.submenuDepth||0,c=L3({class:x?"xin-menu xin-menu-with-icons":"xin-menu",role:h,onClick(){if(!l._dropMode)J(0)},onDragover(r){if(!l._dropMode)return;r.preventDefault()},onDragenter(){if(!l._dropMode)return;d2()},onDragleave(r){if(!l._dropMode)return;let C=r.relatedTarget;if(C&&c.contains(C))return;if(C&&$.some((g)=>g.menu.contains(C)||g.target.contains(C)))return;hl(o)}},L3({style:{minWidth:i.offsetWidth+"px",width:typeof y==="number"?`${y}px`:y},onMousedown(r){r.preventDefault(),r.stopPropagation()}},...s.map((r)=>yl(r,l))));return c},k2,$=[],b2=null,d2=()=>{if(b2)clearTimeout(b2),b2=null},hl=(l)=>{d2(),b2=setTimeout(()=>{b2=null,J(l)},500)},J=(l=0)=>{if(d2(),l===0)document.querySelectorAll("tosi-menu.xin-drop-over").forEach((y)=>y.classList.remove("xin-drop-over"));let i=$.splice(l);for(let y of i)if(y.menu.remove(),y.onClose)y.onClose();return k2=i[0],l>0?$[l-1]:void 0};document.addEventListener("mousedown",(l)=>{if($.length===0)return;let i=l.composedPath();if(!$.find((y)=>i.includes(y.target)||i.includes(y.menu)))J(0)});document.body.addEventListener("keydown",(l)=>{if(l.key==="Escape")J(0)});var W=(l)=>{l=Object.assign({submenuDepth:0},l);let{target:i,position:y,submenuDepth:s}=l;if(k2&&!document.body.contains(k2?.menu))k2=void 0;if($.length&&!document.body.contains($[0].menu))$.splice(0);if(l._dropMode){if($.length>s&&$[s]?.target===i)return;J(s)}else{if(s===0&&k2?.target===i)return;let o=J(s);if(k2?.target===i)return;if(o&&o.target===i){J();return}}if(!l.menuItems?.length)return;let h=sl(l),x=Z4({content:h,target:i,position:y});x.remainOnScroll=l._dropMode?"remain":"remove",$.push({target:i,menu:x,onClose:l.onClose})},xl=(l)=>{let{dataTypes:i,...y}=l,s=W2(l.menuItems,i,l.hideDisabled);if(!s.length)return;W({...y,menuItems:s,_dropMode:!0,_dataTypes:i})};function S4(l,i,y=[]){for(let s of l){if(!s)continue;let{shortcut:h}=s,{menuItems:x}=s;if(h){if(J4(i,h)){let o=s;if(o.enabled&&!o.enabled())return;if(y.some((c)=>c.enabled&&!c.enabled()))return;return{action:o,path:y}}}else if(x){let o=S4(l1(x),i,[...y,s]);if(o)return o}}return}class A0 extends t{static preferredTagName="tosi-menu";static lightStyleSpec={":host":{display:"inline-block"},":host button > xin-slot":{display:"flex",alignItems:"center",gap:d.tosiMenuTriggerGap("10px")}};static initAttributes={menuWidth:"auto",localized:!1,icon:"",acceptsDrop:"",disclosureDelay:0,hideDisabled:!1};menuItems=[];dropAction=null;_dragMatches=!1;_matchesDrag(l){if(!this.acceptsDrop)return!1;let i=g2(this.acceptsDrop);return[...l.dataTransfer?.types||[]].some((s)=>i.some((h)=>n2([h],s)))}showMenu=(l)=>{if(l.type==="click"||l.code==="Space")W({target:this.parts.trigger,width:this.menuWidth,localized:this.localized,menuItems:this.menuItems}),l.stopPropagation(),l.preventDefault()};handleDragEnter=(l)=>{if(this._dragMatches=this._matchesDrag(l),!this._dragMatches)return;d2(),this.classList.add("xin-drop-over");let i=[...l.dataTransfer?.types||[]];if(this.menuItems.length)xl({target:this.parts.trigger,menuItems:this.menuItems,dataTypes:i,width:this.menuWidth,localized:this.localized,disclosureDelay:this.disclosureDelay||void 0,hideDisabled:this.hideDisabled});l.preventDefault()};handleDragOver=(l)=>{if(!this._dragMatches)return;if(l.preventDefault(),l.dataTransfer)l.dataTransfer.dropEffect=this.dropAction?"copy":"link"};handleDragLeave=(l)=>{if(!this._dragMatches)return;let i=l.relatedTarget;if(i&&this.contains(i))return;if(i&&$.some((y)=>y.menu.contains(i)||y.target.contains(i))){this.classList.remove("xin-drop-over");return}this.classList.remove("xin-drop-over"),hl(0)};handleDrop=(l)=>{if(!this._dragMatches||!this.dropAction)return;if(l.preventDefault(),l.stopPropagation(),this.classList.remove("xin-drop-over"),l.dataTransfer)this.dropAction(l.dataTransfer);J(0)};content=()=>f2({tabindex:0,part:"trigger",onClick:this.showMenu},C6());handleShortcut=async(l)=>{let i=S4(this.menuItems,l);if(!i)return;l.preventDefault(),l.stopImmediatePropagation();let{action:y,path:s}=i;if(this.isConnected&&document.body.contains(this))await this.animateShortcut(s,y);if(y.action instanceof Function)y.action()};findMenuItemByCaption(l,i){for(let y of l.querySelectorAll(".xin-menu-item")){let s=y.children[1];if(s&&s.textContent===i)return y}return null}async animateShortcut(l,i){J(0),W({target:this.parts.trigger,width:this.menuWidth,localized:this.localized,menuItems:this.menuItems}),await new Promise((s)=>setTimeout(s,80));for(let s=0;s<l.length;s++){let h=s+1,x=$[s]?.menu;if(!x)break;let o=this.findMenuItemByCaption(x,l[s].caption);if(!o)break;W({target:o,width:this.menuWidth,localized:this.localized,menuItems:l1(l[s].menuItems),submenuDepth:h,position:"side"}),await new Promise((c)=>setTimeout(c,80))}let y=$[$.length-1]?.menu;if(y){let s=this.findMenuItemByCaption(y,i.caption);if(s)s.classList.add("xin-menu-item-highlight")}await new Promise((s)=>setTimeout(s,300)),J(0)}constructor(){super();this.addEventListener("keydown",this.showMenu),this.addEventListener("dragenter",this.handleDragEnter),this.addEventListener("dragover",this.handleDragOver),this.addEventListener("dragleave",this.handleDragLeave),this.addEventListener("drop",this.handleDrop)}connectedCallback(){if(super.connectedCallback(),document.addEventListener("keydown",this.handleShortcut,!0),this.acceptsDrop)this.dataset.drop=this.acceptsDrop}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("keydown",this.handleShortcut)}}var ol=A0.elementCreator(),g6=ol,n6=A0;function k6(l,i,y){let s=l.find((h)=>h[i]!==void 0&&h[i]!==null);if(s!==void 0){let h=s[i];switch(typeof h){case"string":if(h.match(/^\d+(\.\d+)?$/))return 6*y;else if(h.includes(" "))return 20*y;else return 12*y;case"number":return 6*y;case"boolean":return 5*y;case"object":return!1;default:return 8*y}}return!1}var{div:p2,span:T4,button:d6,template:p6}=a,cl=(l)=>l;class V0 extends t{static preferredTagName="tosi-table";static lightStyleSpec={":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:n.tosiTableGridRowWidth},":host .tr":{display:"grid",gridTemplateColumns:n.tosiTableGridColumns,height:n.tosiTableRowHeight,lineHeight:n.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:n.tosiTableTouchSize,height:n.tosiTableTouchSize,width:n.tosiTableTouchSize},':host [draggable="true"]':{cursor:"ew-resize"},':host [draggable="true"]:active':{background:n.tosiTableDraggedHeaderBg,color:n.tosiTableDraggedHeaderColor},":host .drag-over":{background:n.tosiTableDropHeaderBg}};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=(l,i)=>{l.toggleAttribute("aria-selected",i[this.selectedKey]===!0)};maxVisibleRows=1e4;get value(){return{array:this.array,filter:this.filter,columns:this.columns}}set value(l){let{array:i,columns:y,filter:s}=G(l);if(this._array!==i||this._columns!==y||this._filter!==s)this.queueRender();this._array=i||[],this._columns=y||null,this._filter=s||cl}rowData={visible:[],pinnedTop:[],pinnedBottom:[]};_array=[];_columns=null;_filter=cl;get virtual(){return this.rowHeight>0?{height:this.rowHeight}:void 0}constructor(){super();this.rowData=x1({[this.instanceId]:this.rowData})[this.instanceId]}get array(){return this._array}set array(l){this._array=G(l),this.queueRender()}get filter(){return this._filter}set filter(l){if(this._filter!==l)this._filter=l,this.queueRender()}get sort(){if(this._sort)return this._sort;let l=this._columns?.find((y)=>y.sort==="ascending"||y.sort==="descending");if(!l)return;let{prop:i}=l;return l.sort==="ascending"?(y,s)=>y[i]>s[i]?1:-1:(y,s)=>y[i]>s[i]?-1:1}set sort(l){if(this._sort!==l)this._sort=l,this.queueRender()}get columns(){if(!Array.isArray(this._columns)){let{_array:l}=this;this._columns=Object.keys(l[0]||{}).map((i)=>{let y=k6(l,i,this.charWidth);return{name:i.replace(/([a-z])([A-Z])/g,"$1 $2").toLocaleLowerCase(),prop:i,align:typeof l[0][i]==="number"||l[0][i]!==""&&!isNaN(l[0][i])?"right":"left",visible:y!==!1,width:y?y:0}})}return this._columns}set columns(l){this._columns=l,this.queueRender()}get visibleColumns(){return this.columns.filter((l)=>l.visible!==!1)}content=null;getColumn(l){let i=(l.touches!==void 0?l.touches[0].clientX:l.clientX)-this.getBoundingClientRect().x,y=l.touches!==void 0?20:5,s=0,h=[];return this.visibleColumns.find((o)=>{if(o.visible!==!1)return s+=o.width,h.push(s),Math.abs(i-s)<y})}setCursor=(l)=>{if(this.getColumn(l)!==void 0)this.style.cursor="col-resize";else this.style.cursor=""};resizeColumn=(l)=>{let i=this.getColumn(l);if(i!==void 0){let y=Number(i.width),s=l.touches!==void 0,h=s?l.touches[0].identifier:void 0;T(l,(x,o,c)=>{if((s?[...c.touches].find((g)=>g.identifier===h):!0)===void 0)return!0;let C=y+x;if(i.width=C>this.minColumnWidth?C:this.minColumnWidth,this.setColumnWidths(),c.type==="mouseup")return!0},"col-resize")}};selectRow(l,i=!0){if(i)l[this.selectedKey]=!0;else delete l[this.selectedKey]}selectRows(l,i=!0){for(let y of l||this.array)this.selectRow(y,i)}deSelect(l){this.selectRows(l,!1)}rangeStart;updateSelection=(l)=>{if(!this.select&&!this.multiple)return;let{target:i}=l;if(!(i instanceof HTMLElement))return;let y=i.closest(".tr");if(!(y instanceof HTMLElement))return;let s=S1(y);if(s===!1)return;let h=l,x=window.getSelection();if(x!==null)x.removeAllRanges();let o=this.visibleRows;if(this.multiple&&h.shiftKey&&o.length>0&&this.rangeStart!==s){let c=this.rangeStart===void 0||this.rangeStart[this.selectedKey]===!0,[r,C]=[this.rangeStart!==void 0?o.indexOf(this.rangeStart):0,o.indexOf(s)].sort((g,k)=>g-k);if(r>-1)for(let g=r;g<=C;g++){let k=o[g];this.selectRow(k,c)}}else if(this.multiple&&h.metaKey){this.selectRow(s,!s[this.selectedKey]);let c=o.indexOf(s),r=o[c+1],C=c>0?o[c-1]:void 0;if(r!==void 0&&r[this.selectedKey]===!0)this.rangeStart=r;else if(C!==void 0&&C[this.selectedKey]===!0)this.rangeStart=C;else this.rangeStart=void 0}else this.rangeStart=s,this.deSelect(),this.selectRow(s,!0);this.selectionChanged(this.visibleSelectedRows);for(let c of Array.from(this.querySelectorAll(".tr"))){let r=S1(c);this.selectBinding(c,r)}};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 l=this.visibleColumns.map((y)=>y.width+"px").join(" "),i=this.visibleColumns.reduce((y,s)=>y+s.width,0)+"px";this.style.setProperty("--tosi-table-grid-columns",l),this.style.setProperty("--tosi-table-grid-row-width",i),this.style.setProperty("--grid-columns",l),this.style.setProperty("--grid-row-width",i)}sortByColumn=(l,i="auto")=>{for(let y of this.columns.filter((s)=>G(s.sort)!==!1))if(G(y)===l){if(i==="auto")y.sort=y.sort==="ascending"?"descending":"ascending";else y.sort=i;this.queueRender()}else delete y.sort};popColumnMenu=(l,i)=>{let{sortByColumn:y}=this,s=this.columns.filter((o)=>o.visible===!1),h=this.queueRender.bind(this),x=[];if(!this.nosort&&i.sort!==!1)x.push({caption:this.localized?`${Q("Sort")} ${Q("Ascending")}`:"Sort Ascending",icon:"sortAscending",action(){y(i)}},{caption:this.localized?`${Q("Sort")} ${Q("Descending")}`:"Sort Descending",icon:"sortDescending",action(){y(i,"descending")}});if(!this.nohide){if(x.length)x.push(null);x.push({caption:this.localized?`${Q("Hide")} ${Q("Column")}`:"Hide Column",icon:"eyeOff",enabled:()=>i.visible!==!0,action(){i.visible=!1,h()}},{caption:this.localized?`${Q("Show")} ${Q("Column")}`:"Show Column",icon:"eye",enabled:()=>s.length>0,menuItems:s.map((o)=>{return{caption:o.name||o.prop,action(){delete o.visible,h()}}})})}W({target:l,localized:this.localized,menuItems:x})};get captionSpan(){return this.localized?z1:T4}headerCell=(l)=>{let{popColumnMenu:i}=this,y="none",s;switch(l.sort){case"ascending":s=w.sortAscending(),y="descending";break;case!1:break;default:break;case"descending":y="ascending",s=w.sortDescending()}let h=!(this.nosort&&this.nohide)?d6({class:"menu-trigger",onClick(x){i(x.target,l),x.stopPropagation()}},s||w.moreVertical()):{};return l.headerCell!==void 0?l.headerCell(l):T4({class:"th",role:"columnheader",ariaSort:y,style:{...this.cellStyle,justifyContent:l.align||"left"}},this.captionSpan({style:{flex:"1"}},typeof l.name==="string"?l.name:l.prop),h)};dataCell=(l)=>{if(l.dataCell!==void 0)return l.dataCell(l);return T4({class:"td",role:"cell",style:{...this.cellStyle,justifyContent:l.align||"left"},bindText:`^.${l.prop}`})};get visibleRows(){return G(this.rowData.visible)}get visibleSelectedRows(){return this.visibleRows.filter((l)=>l[this.selectedKey])}get selectedRows(){return this.array.filter((l)=>l[this.selectedKey])}rowTemplate(l){return p6(p2({class:"tr",role:"row",bind:{value:"^",binding:{toDOM:this.selectBinding}}},...l.map(this.dataCell)))}draggedColumn;dropColumn=(l)=>{let i=l.target.closest(".drag-over"),y=Array.from(i.parentElement.children).indexOf(i),s=this.visibleColumns[y],h=this.columns.indexOf(this.draggedColumn),x=this.columns.indexOf(s);this.columns.splice(h,1),this.columns.splice(x,0,this.draggedColumn),console.log({event:l,target:i,targetIndex:y,draggedIndex:h,droppedIndex:x}),this.queueRender(),l.preventDefault(),l.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:l}=this;if(l)this.rowData.visible.sort(l);this.textContent="",this.style.display="flex",this.style.flexDirection="column";let{visibleColumns:i}=this;if(this.style.setProperty("--tosi-table-row-height",`${this.rowHeight}px`),this.style.setProperty("--row-height",`${this.rowHeight}px`),this.setColumnWidths(),!this.noreorder)e4();let y=this.instanceId+"-column-header",s=i.map((h)=>{let x=this.headerCell(h);if(!this.noreorder&&x.children[0]){let o=x.children[0];o.setAttribute("draggable","true"),o.style.pointerEvents="all",o.dataset.drag=y,x.dataset.drop=y,o.addEventListener("dragstart",()=>{this.draggedColumn=h}),x.addEventListener("drop",this.dropColumn)}return x});if(this.append(p2({class:"thead",role:"rowgroup",style:{touchAction:"none"}},p2({class:"tr",role:"row"},...s))),this.pinnedTop>0)this.append(p2({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(i)));if(this.append(p2({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(i))),this.pinnedBottom>0)this.append(p2({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(i)))}}var w6=V0,M4=V0.elementCreator(),a6=M4,v6=M4;var{dialog:B6,button:u4,header:t6,footer:z6,xinSlot:m4,h3:L4,p:E4,label:j6,input:A6,div:V6}=a;class l5 extends t{static preferredTagName="tosi-dialog";static lightStyleSpec={":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:d.menuShadow("0 5px 10px #0004"),_dialogBackground:d.background("#fafafa"),_dialogColor:d.textColor("#222"),boxShadow:n.dialogShadow,background:n.dialogBackground,color:n.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}};static async alert(l,i="Alert"){return new Promise((y)=>{let s=q0({removeOnClose:!0,closeOnBackgroundClick:!0,dialogWillClose(){y()}},L4({slot:"header"},i),l.includes(`
15
- `)?a.pre({style:{whiteSpace:"pre-wrap",margin:0}},l):E4(l));document.body.append(s),s.showModal()})}static async confirm(l,i="Confirm"){return new Promise((y)=>{let s=q0({removeOnClose:!0,dialogWillClose(h){y(h==="confirm")}},L4({slot:"header"},i),E4(l),u4({slot:"footer",onClick(){s.close()}},"Cancel"));document.body.append(s),s.showModal()})}static async prompt(l,i="Prompt",y=""){return new Promise((s)=>{let h=A6({value:y}),x=q0({removeOnClose:!0,dialogWillClose(o){s(o==="confirm"?h.value:null)},initialFocus(){h.focus()}},L4({slot:"header"},i),E4(j6({style:{display:"flex",flexDirection:"column",alignItems:"stretch",gap:5}},V6(l),h)),u4({slot:"footer",onClick(){x.close()}},"Cancel"));document.body.append(x),x.showModal()})}static initAttributes={removeOnClose:!1,closeOnBackgroundClick:!1};constructor(){super();x2(this,"click",()=>{if(this.closeOnBackgroundClick)this.close()})}dialogWillClose=(l="cancel")=>{console.log("dialog will close with",l)};initialFocus(){this.parts.ok.focus()}#l=(l)=>{};showModal=()=>{return this.style.zIndex=String(M1()),new Promise((l)=>{this.#l=l,this.parts.dialog.showModal(),requestAnimationFrame(()=>{this.initialFocus()})})};close=(l="cancel")=>{if(this.dialogWillClose(l),this.#l(l),this.parts.dialog.close(),this.removeOnClose)this.remove()};ok=()=>{this.close("confirm")};content=()=>B6({part:"dialog"},t6(m4({name:"header"})),m4(),z6(m4({name:"footer"}),u4({part:"ok",onClick:this.ok},"OK")))}var q0=l5.elementCreator();function y5(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var m1=y5();function pl(l){m1=l}var J2={exec:()=>null};function U(l,i=""){let y=typeof l=="string"?l:l.source,s={replace:(h,x)=>{let o=typeof x=="string"?x:x.source;return o=o.replace(e.caret,"$1"),y=y.replace(h,o),s},getRegex:()=>new RegExp(y,i)};return s}var q6=(()=>{try{return!!new RegExp("(?<=1)(?<!1)")}catch{return!1}})(),e={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:(l)=>new RegExp(`^( {0,3}${l})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:(l)=>new RegExp(`^ {0,${Math.min(3,l-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:(l)=>new RegExp(`^ {0,${Math.min(3,l-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:(l)=>new RegExp(`^ {0,${Math.min(3,l-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:(l)=>new RegExp(`^ {0,${Math.min(3,l-1)}}#`),htmlBeginRegex:(l)=>new RegExp(`^ {0,${Math.min(3,l-1)}}<(?:[a-z].*>|!--)`,"i")},_6=/^(?:[ \t]*(?:\n|$))+/,P6=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,F6=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,$2=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,O6=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,s5=/(?:[*+-]|\d{1,9}[.)])/,wl=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,al=U(wl).replace(/bull/g,s5).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(),U6=U(wl).replace(/bull/g,s5).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(),h5=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,X6=/^[^\n]+/,x5=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,N6=U(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",x5).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),K6=U(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,s5).getRegex(),U0="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",o5=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,Q6=U("^ {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",o5).replace("tag",U0).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),vl=U(h5).replace("hr",$2).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",U0).getRegex(),G6=U(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",vl).getRegex(),c5={blockquote:G6,code:P6,def:N6,fences:F6,heading:O6,hr:$2,html:Q6,lheading:al,list:K6,newline:_6,paragraph:vl,table:J2,text:X6},rl=U("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",$2).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",U0).getRegex(),b6={...c5,lheading:U6,table:rl,paragraph:U(h5).replace("hr",$2).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",rl).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",U0).getRegex()},W6={...c5,html:U(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",o5).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:J2,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:U(h5).replace("hr",$2).replace("heading",` *#{1,6} *[^
16
- ]`).replace("lheading",al).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},f6=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,R6=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,Bl=/^( {2,}|\\)\n(?!\s*$)/,Z6=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,X0=/[\p{P}\p{S}]/u,r5=/[\s\p{P}\p{S}]/u,tl=/[^\s\p{P}\p{S}]/u,H6=U(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,r5).getRegex(),zl=/(?!~)[\p{P}\p{S}]/u,J6=/(?!~)[\s\p{P}\p{S}]/u,$6=/(?:[^\s\p{P}\p{S}]|~)/u,I6=U(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",q6?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),jl=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,e6=U(jl,"u").replace(/punct/g,X0).getRegex(),Y6=U(jl,"u").replace(/punct/g,zl).getRegex(),Al="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",D6=U(Al,"gu").replace(/notPunctSpace/g,tl).replace(/punctSpace/g,r5).replace(/punct/g,X0).getRegex(),S6=U(Al,"gu").replace(/notPunctSpace/g,$6).replace(/punctSpace/g,J6).replace(/punct/g,zl).getRegex(),T6=U("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,tl).replace(/punctSpace/g,r5).replace(/punct/g,X0).getRegex(),M6=U(/\\(punct)/,"gu").replace(/punct/g,X0).getRegex(),u6=U(/^<(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(),m6=U(o5).replace("(?:-->|$)","-->").getRegex(),L6=U("^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",m6).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),P0=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/,E6=U(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",P0).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Vl=U(/^!?\[(label)\]\[(ref)\]/).replace("label",P0).replace("ref",x5).getRegex(),ql=U(/^!?\[(ref)\](?:\[\])?/).replace("ref",x5).getRegex(),l8=U("reflink|nolink(?!\\()","g").replace("reflink",Vl).replace("nolink",ql).getRegex(),Cl=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,C5={_backpedal:J2,anyPunctuation:M6,autolink:u6,blockSkip:I6,br:Bl,code:R6,del:J2,emStrongLDelim:e6,emStrongRDelimAst:D6,emStrongRDelimUnd:T6,escape:f6,link:E6,nolink:ql,punctuation:H6,reflink:Vl,reflinkSearch:l8,tag:L6,text:Z6,url:J2},i8={...C5,link:U(/^!?\[(label)\]\((.*?)\)/).replace("label",P0).getRegex(),reflink:U(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",P0).getRegex()},i5={...C5,emStrongRDelimAst:S6,emStrongLDelim:Y6,url:U(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",Cl).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:U(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",Cl).getRegex()},y8={...i5,br:U(Bl).replace("{2,}","*").getRegex(),text:U(i5.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},_0={normal:c5,gfm:b6,pedantic:W6},R2={normal:C5,gfm:i5,breaks:y8,pedantic:i8},s8={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},gl=(l)=>s8[l];function j1(l,i){if(i){if(e.escapeTest.test(l))return l.replace(e.escapeReplace,gl)}else if(e.escapeTestNoEncode.test(l))return l.replace(e.escapeReplaceNoEncode,gl);return l}function nl(l){try{l=encodeURI(l).replace(e.percentDecode,"%")}catch{return null}return l}function kl(l,i){let y=l.replace(e.findPipe,(x,o,c)=>{let r=!1,C=o;for(;--C>=0&&c[C]==="\\";)r=!r;return r?"|":" |"}),s=y.split(e.splitPipe),h=0;if(s[0].trim()||s.shift(),s.length>0&&!s.at(-1)?.trim()&&s.pop(),i)if(s.length>i)s.splice(i);else for(;s.length<i;)s.push("");for(;h<s.length;h++)s[h]=s[h].trim().replace(e.slashPipe,"|");return s}function Z2(l,i,y){let s=l.length;if(s===0)return"";let h=0;for(;h<s;){let x=l.charAt(s-h-1);if(x===i&&!y)h++;else if(x!==i&&y)h++;else break}return l.slice(0,s-h)}function h8(l,i){if(l.indexOf(i[1])===-1)return-1;let y=0;for(let s=0;s<l.length;s++)if(l[s]==="\\")s++;else if(l[s]===i[0])y++;else if(l[s]===i[1]&&(y--,y<0))return s;return y>0?-2:-1}function dl(l,i,y,s,h){let x=i.href,o=i.title||null,c=l[1].replace(h.other.outputLinkReplace,"$1");s.state.inLink=!0;let r={type:l[0].charAt(0)==="!"?"image":"link",raw:y,href:x,title:o,text:c,tokens:s.inlineTokens(c)};return s.state.inLink=!1,r}function x8(l,i,y){let s=l.match(y.other.indentCodeCompensation);if(s===null)return i;let h=s[1];return i.split(`
12
+ `)},Di=(l)=>{s1("initVars","initVars is deprecated. Just use _ and __ prefixes instead.");let i={};for(let y of Object.keys(l)){let s=l[y],h=w1(y);i[`--${h}`]=typeof s==="number"&&s!==0?String(s)+"px":s}return i},j4=(l)=>{let i={};for(let y of Object.keys(l)){let s=l[y];if(s instanceof j)i[y]=s.inverseLuminance;else if(typeof s==="string"&&s.match(/^(#[0-9a-fA-F]{3}|rgba?\(|hsla?\()/))i[y]=j.fromCss(s).inverseLuminance}return i},d=new Proxy({},{get(l,i){if(l[i]===void 0){let y="--"+w1(i);l[i]=(s)=>`var(${y}, ${s})`}return l[i]}}),k=new Proxy({},{get(l,i){if(i==="default")return d;if(l[i]==null){i=w1(i);let[,y,,s,h,x]=i.match(/^([-\w]*?)((_)?(\d+)(\w?))?$/)||["",i],o=`--${y}`;if(h!=null){let c=s==null?Number(h)/100:-Number(h)/100;switch(x){case"b":case"s":case"h":case"o":{let r=`--${i}`;j.registerComputedColor(r,o,c,x),l[i]=`var(${r})`}break;case"":l[i]=`calc(var(${o}) * ${c})`;break;default:throw console.error(x),Error(`Unrecognized method ${x} for css variable ${o}`)}}else l[i]=`var(${o})`}return l[i]}});function V3(){let l=(i)=>typeof matchMedia<"u"&&matchMedia(i).matches;return{colorScheme:l("(prefers-color-scheme: dark)")?"dark":"light",contrast:l("(prefers-contrast: more)")?"more":l("(prefers-contrast: less)")?"less":l("(prefers-contrast: custom)")?"custom":"no-preference",reducedMotion:l("(prefers-reduced-motion: reduce)"),reducedTransparency:l("(prefers-reduced-transparency: reduce)"),forcedColors:l("(forced-colors: active)")}}function Si(l){if(typeof matchMedia>"u")return()=>{};let i=["(prefers-color-scheme: dark)","(prefers-contrast: more)","(prefers-contrast: less)","(prefers-contrast: custom)","(prefers-reduced-motion: reduce)","(prefers-reduced-transparency: reduce)","(forced-colors: active)"],y=()=>l(V3()),s=i.map((h)=>matchMedia(h));for(let h of s)h.addEventListener("change",y);return()=>{for(let h of s)h.removeEventListener("change",y)}}var ei="http://www.w3.org/1998/Math/MathML",Ti="http://www.w3.org/2000/svg",l0={},q3=(l,i,y)=>{let s=j3(w1(i),y);if(s.prop.startsWith("--"))l.style.setProperty(s.prop,s.value);else l.style[i]=s.value},Mi=(l)=>{return{toDOM(i,y){q3(i,l,y)}}},_3=(l,i,y)=>{if(i==="style")if(typeof y==="object")for(let s of Object.keys(y))if(h1(y[s]))X1(l,y[s],Mi(s));else q3(l,s,y[s]);else l.setAttribute("style",y);else{let s=w1(i),h=l.constructor.observedAttributes;if(h?.includes(i)||h?.includes(s))if(typeof y==="boolean")y?l.setAttribute(s,""):l.removeAttribute(s);else l.setAttribute(s,y);else if(l[i]!==void 0){let{MathMLElement:x}=globalThis;if(l instanceof SVGElement||x!==void 0&&l instanceof x)l.setAttribute(i,y);else l[i]=y}else if(s==="class")y.split(" ").forEach((x)=>{l.classList.add(x)});else if(l[s]!==void 0)l[s]=y;else if(typeof y==="boolean")y?l.setAttribute(s,""):l.removeAttribute(s);else l.setAttribute(s,y)}},E0={},ui=(l)=>{if(!E0[l])E0[l]={toDOM(i,y){_3(i,l,y)}};return E0[l]},mi=(l,i,y)=>{if(i==="apply")y(l);else if(i.match(/^on[A-Z]/)!=null){let s=i.substring(2).toLowerCase();x2(l,s,y)}else if(i==="bind")if((typeof y.binding==="string"?q1[y.binding]:y.binding)!==void 0&&y.value!==void 0)X1(l,y.value,y.binding instanceof Function?{toDOM:y.binding}:y.binding);else throw Error("bad binding");else if(i.match(/^bind[A-Z]/)!=null){let s=i.substring(4,5).toLowerCase()+i.substring(5),h=q1[s];if(h!==void 0)X1(l,y,h);else throw Error(`${i} is not allowed, bindings.${s} is not defined`)}else if(h1(y))X1(l,y,ui(i));else _3(l,i,y)},A4=(l,...i)=>{if(l0[l]===void 0){let[h,x]=l.split("|");if(x===void 0)l0[l]=globalThis.document.createElement(h);else l0[l]=globalThis.document.createElementNS(x,h)}let y=l0[l].cloneNode(),s={};for(let h of i)if(h instanceof Element||h instanceof DocumentFragment||typeof h==="string"||typeof h==="number")if(y instanceof HTMLTemplateElement)y.content.append(h);else y.append(h);else if(h1(h))y.append(v.span({bindText:h}));else Object.assign(s,h);for(let h of Object.keys(s)){let x=s[h];mi(y,h,x)}return y},V4=(...l)=>{let i=globalThis.document.createDocumentFragment();for(let y of l)i.append(y);return i},v=new Proxy({fragment:V4},{get(l,i){if(i=i.replace(/[A-Z]/g,(y)=>`-${y.toLocaleLowerCase()}`),l[i]===void 0)l[i]=(...y)=>A4(i,...y);return l[i]},set(){throw Error("You may not add new properties to elements")}}),o0=new Proxy({fragment:V4},{get(l,i){if(l[i]===void 0)l[i]=(...y)=>A4(`${i}|${Ti}`,...y);return l[i]},set(){throw Error("You may not add new properties to elements")}}),P3=new Proxy({fragment:V4},{get(l,i){if(l[i]===void 0)l[i]=(...y)=>A4(`${i}|${ei}`,...y);return l[i]},set(){throw Error("You may not add new properties to elements")}}),Li=["sort","splice","copyWithin","fill","pop","push","reverse","shift","unshift"],Ei=!0,l9=/^\.?([^.[\](),])+(\.[^.[\](),]+|\[\d+\]|\[[^=[\](),]*=[^[\]()]+\])*$/,i9=(l)=>l9.test(l),P1=(l="",i="")=>{if(l==="")return i;else if(i.match(/^\d+$/)!==null||i.includes("="))return`${l}[${i}]`;else return`${l}.${i}`},F3={};function l4(l,i){if(l!==null&&(typeof l==="object"||typeof l==="function"))return l;return new Proxy(F3,U1(i,!0))}var V2=()=>new Proxy({},U1("^",!0)),i4=(l)=>{let i=l(V2())?.path;if(!i?.startsWith("^."))throw Error("selector must return a property of the item");return i.substring(2)},y4=(l,i,y)=>{for(let s=0;s<l.length;s++)if(`${e(l[s],i)}`===`${y}`)return s;return-1},L5=(l,i)=>({listFind(y,s){if(y instanceof Element){let o=y;while(o&&!o[P2]&&o.parentElement)o=o.parentElement;let c=o?.[P2];if(c==null)return;let r=i.indexOf(c);return r!==-1?d1[l][r]:void 0}let h=i4(y),x=y4(i,h,s);return x!==-1?d1[l][x]:void 0},listUpdate(y,s){let h=i4(y),x=e(s,h),o=y4(i,h,x);if(o!==-1){let c=d1[l][o];for(let r of Object.keys(s))c[r]=s[r];return c}return d1[l].push(s),d1[l][i.length-1]},listRemove(y,s){let h=i4(y),x=y4(i,h,s);if(x===-1)return!1;return d1[l].splice(x,1),!0}}),E5=!1;function Z1(){if(!E5)console.warn("xinValue, tosiValue, xinPath, tosiPath, etc. are deprecated. Use value, path, observe, bind, on, binding, listBinding instead."),E5=!0}var l3=(l)=>{return l===F3},U1=(l,i)=>({get(y,s){if(l3(y)){let c=()=>e(v1,l);switch(s){case"path":return l;case"value":return c();case"valueOf":case"toJSON":return()=>c();case Symbol.toPrimitive:return(r)=>{let C=c();if(r==="number")return Number(C);if(r==="string")return String(C);return C};case"toString":return()=>String(c());case"touch":return()=>p1(l);case"observe":return(r)=>{let C=J1(l,r);return()=>$1(C)};case"on":return(r,C)=>E2()(r,C,c());case"bind":return(r,C,g)=>{L2()(r,l,C,g)};case"binding":return(r)=>({bind:{value:l,binding:r}});case"listBinding":return(r=({span:g})=>g({bindText:"^"}),C={})=>[{bindList:{value:l,...C}},v.template(r(v,V2()))];case"listFind":case"listUpdate":case"listRemove":return L5(l,y)[s];case Y1:case"xinValue":case"tosiValue":return Z1(),c();case a1:case"xinPath":case"tosiPath":return Z1(),l;case $5:case"tosiObserve":return Z1(),(r)=>{let C=J1(l,r);return()=>$1(C)};case Y5:case"tosiOn":return Z1(),(r,C)=>E2()(r,C,c());case I5:case"tosiBind":return Z1(),(r,C,g)=>{L2()(r,l,C,g)};case"tosiBinding":return Z1(),(r)=>({bind:{value:l,binding:r}});case"tosiListBinding":return Z1(),(r=({span:g})=>g({bindText:"^"}),C={})=>[{bindList:{value:l,...C}},v.template(r(v,V2()))]}if(typeof s==="string"&&/^\d+$/.test(s)){let r=c();if(typeof r==="string")return r[parseInt(s,10)]}if(s==="length"){let r=c();if(typeof r==="string")return r.length}return}if(i&&!(s in y))switch(s){case"path":return l;case"value":return y.valueOf?y.valueOf():y;case"valueOf":case"toJSON":return()=>y.valueOf?y.valueOf():y;case"touch":return()=>p1(l);case"observe":return(c)=>{let r=J1(l,c);return()=>$1(r)};case"on":return(c,r)=>E2()(c,r,G(y));case"bind":return(c,r,C)=>{L2()(c,l,r,C)};case"binding":return(c)=>({bind:{value:l,binding:c}});case"listBinding":return(c=({span:C})=>C({bindText:"^"}),r={})=>[{bindList:{value:l,...r}},v.template(c(v,V2()))];case"listFind":case"listUpdate":case"listRemove":return L5(l,y)[s]}switch(s){case a1:case"xinPath":case"tosiPath":return l;case Y1:case"xinValue":case"tosiValue":return y.valueOf?y.valueOf():y;case $5:case"xinObserve":case"tosiObserve":return(c)=>{let r=J1(l,c);return()=>$1(r)};case Y5:case"xinOn":case"tosiOn":return(c,r)=>E2()(c,r,G(y));case I5:case"xinBind":case"tosiBind":return(c,r,C)=>{L2()(c,l,r,C)};case"tosiBinding":return(c)=>({bind:{value:l,binding:c}});case"tosiListBinding":return(c=({span:C})=>C({bindText:"^"}),r={})=>[{bindList:{value:l,...r}},v.template(c(v,V2()))]}if(typeof s==="symbol")return y[s];let h=Object.getOwnPropertyDescriptor(y,s);if(h&&!h.configurable&&!h.writable&&"value"in h)return h.value;let x=s,o=x.match(/^([^.[]+)\.(.+)$/)??x.match(/^([^\]]+)(\[.+)/)??x.match(/^(\[[^\]]+\])\.(.+)$/)??x.match(/^(\[[^\]]+\])\[(.+)$/);if(o!==null){let[,c,r]=o,C=P1(l,c),g=e(y,c);return g!==null&&typeof g==="object"?new Proxy(g,U1(C,i))[r]:g}if(x.startsWith("[")&&x.endsWith("]"))x=x.substring(1,x.length-1);if(!Array.isArray(y)&&y[x]!==void 0||Array.isArray(y)&&x.includes("=")){let c;if(x.includes("=")){let[r,C]=x.split("=");c=y.find((g)=>`${e(g,r)}`===C)}else c=y[x];if(c instanceof Object){let r=P1(l,x);return new Proxy(c instanceof Function?c.bind(y):c,U1(r,i))}else return i?l4(c,P1(l,x)):c}else if(Array.isArray(y)){let c=y[x];return typeof c==="function"?(...r)=>{let C=r.map((n)=>G(n)),g=c.apply(y,C);if(Li.includes(x))p1(l);if(g!=null&&typeof g==="object"){if(x==="find"||x==="findLast"||x==="at"){let n=y.indexOf(g);if(n!==-1)return new Proxy(g,U1(P1(l,String(n)),i))}}return g}:typeof c==="object"?new Proxy(c,U1(P1(l,x),i)):i?l4(c,P1(l,x)):c}else return i?l4(y[x],P1(l,x)):y[x]},set(y,s,h){h=G(h);let x=s===Y1||s==="xinValue"||s==="tosiValue"||s==="value"&&(l3(y)||i)?l:P1(l,s);if(Ei&&!i9(x))throw Error(`setting invalid path ${x}`);if(G(I[x])!==h&&t4(v1,x,h))p1(x);return!0}}),q4=(l,i)=>{let y=typeof i==="function"?i:I[i];if(typeof y!=="function")throw Error(`observe expects a function or path to a function, ${i} is neither`);return J1(l,y)},I=new Proxy(v1,U1("",!1));Xi(I);var d1=new Proxy(v1,U1("",!0)),y9=16,s9=100;function i3(l,i){let y=Array.from(l.querySelectorAll(s2));if(l.matches(s2))y.unshift(l);for(let s of y){let h=D1.get(s);for(let x of h){if(x.path.startsWith("^"))x.path=`${i}${x.path.substring(1)}`;if(x.binding.toDOM!=null)x.binding.toDOM(s,I[x.path])}}}class O3{boundElement;listTop;listBottom;template;options;itemToElement;array=[];_filteredCache;_update;_previousSlice;static filterBoundObservers=new WeakMap;constructor(l,i,y={}){if(this.boundElement=l,this.itemToElement=new WeakMap,y.idPath!=null){let s=h1(i);if(s!=null)vi(s,y.idPath)}if(l.children.length!==1)throw Error("ListBinding expects an element with exactly one child element");if(l.children[0]instanceof HTMLTemplateElement){let s=l.children[0];if(s.content.children.length!==1)throw Error("ListBinding expects a template with exactly one child element");this.template=O2(s.content.children[0])}else this.template=l.children[0],this.template.remove();if(this.options=y,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[y0]=this,y.virtual!=null)if(w4.observe(this.boundElement),this._update=U2(()=>{this.update(this.array,!0)},y9),this.boundElement.addEventListener("resize",this._update),y.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:l,visibleProp:i}=this.options,y=this.array;if(l!==void 0)y=y.filter((s)=>s[l]!==!0);if(i!==void 0)y=y.filter((s)=>s[i]===!0);if(this.options.filter&&this.needle!==void 0)y=this.options.filter(y,this.needle);return this._filteredCache=y,y}visibleSlice(){let{virtual:l}=this.options,i=this.filteredArray(),y=0,s=i.length-1,h=0,x=0;if(l!=null&&this.boundElement instanceof HTMLElement){let o=this.boundElement.offsetWidth,c=l.scrollContainer==="window",r,C;if(c){r=window.innerHeight;let p=this.boundElement.getBoundingClientRect();C=Math.max(0,-p.top)}else r=this.boundElement.offsetHeight,C=this.boundElement.scrollTop;let g=l.width!=null?Math.max(1,Math.floor(o/l.width)):l.visibleColumns??1,n=Math.ceil(i.length/g);if(l.minHeight!=null){let p=l.minHeight,z=Math.ceil(r/p)+(l.rowChunkSize||1),a=g*z,A=n*p,P=Math.max(0,A-r),F=P>0?Math.min(1,Math.max(0,C/P)):0,q=Math.max(0,n-z+1),_=F*q,N=Math.floor(_);if(l.rowChunkSize)N-=N%l.rowChunkSize;return y=N*g,s=y+a-1,h=C,x=Math.max(0,A-C-r),{items:i,firstItem:y,lastItem:s,topBuffer:h,bottomBuffer:x,interpolation:{t:F,position:_,scrollTop:C,viewportHeight:r,totalScrollHeight:A,rowHeight:l.height}}}else{let p=Math.ceil(r/l.height)+(l.rowChunkSize||1),z=g*p,a=Math.floor(C/l.height);if(a>n-p+1)a=Math.max(0,n-p+1);if(l.rowChunkSize)a-=a%l.rowChunkSize;y=a*g,s=y+z-1,h=a*l.height,x=Math.max((n-p)*l.height-h,0)}}return{items:i,firstItem:y,lastItem:s,topBuffer:h,bottomBuffer:x}}needle;filter=U2((l)=>{if(this.needle!==l)this.needle=l,this.update(this.array)},s9);update(l,i){if(l==null)l=[];if(this.array=l,!i)this._filteredCache=void 0;let{hiddenProp:y,visibleProp:s}=this.options,h=h1(l),x=this.visibleSlice();this.boundElement.classList.toggle("-xin-empty-list",x.items.length===0);let o=this._previousSlice,{firstItem:c,lastItem:r,topBuffer:C,bottomBuffer:g}=x,n=y===void 0&&s===void 0&&i===!0&&o!=null&&c===o.firstItem&&r===o.lastItem;if(n&&x.interpolation==null&&C===o.topBuffer&&g===o.bottomBuffer)return;if(n&&x.interpolation!=null){this._updateInterpolatedBuffers(x);return}this._previousSlice=x;let p=0,z=0,a=0;for(let q of Array.from(this.boundElement.children)){if(q===this.listTop||q===this.listBottom)continue;let _=q[P2];if(_==null)q.remove();else{let N=x.items.indexOf(_);if(N<c||N>r)q.remove(),this.itemToElement.delete(_),p++}}this.listTop.style.height=String(C)+"px",this.listBottom.style.height=String(g)+"px";let A=[],{idPath:P}=this.options;for(let q=c;q<=r;q++){let _=x.items[q];if(_===void 0)continue;let N=this.itemToElement.get(G(_));if(N==null){if(a++,N=O2(this.template),typeof _==="object")this.itemToElement.set(G(_),N),N[P2]=G(_);if(this.boundElement.insertBefore(N,this.listBottom),P!=null){let M=_[P],H=`${h}[${P}=${M}]`;i3(N,H)}else{let M=`${h}[${q}]`;i3(N,M)}}A.push(N)}let F=null;for(let q of A){if(q.previousElementSibling!==F)if(z++,F?.nextElementSibling!=null)this.boundElement.insertBefore(q,F.nextElementSibling);else this.boundElement.insertBefore(q,this.listBottom);F=q}if(x.interpolation!=null)this._updateInterpolatedBuffers(x);if(s0.perf)console.log(h,"updated",{removed:p,created:a,moved:z})}_updateInterpolatedBuffers(l){let{t:i,position:y,scrollTop:s,viewportHeight:h,totalScrollHeight:x,rowHeight:o}=l.interpolation,c=0;for(let n of Array.from(this.boundElement.children)){if(n===this.listTop||n===this.listBottom)continue;c+=n.offsetHeight||o}let r=s,C=s+h-c,g=Math.max(0,i*C+(1-i)*r-y%1*o);this.listTop.style.height=String(g)+"px",this.listBottom.style.height=String(Math.max(0,x-g-c))+"px"}}var c0=(l,i,y)=>{let s=l[y0];if(i&&s===void 0)s=new O3(l,i,y),l[y0]=s;return s},_4=(l)=>{let i;while(!(i=l[P2])&&l&&l.parentElement)l=l.parentElement;return i?{element:l,item:i}:void 0},e1=(l)=>{let i=_4(l);return i?i.item:void 0},h9=(l)=>{let i=_4(l);if(!i)return console.error("deleteListItem failed, element is not part of a list instance",l),!1;let y=c0(i.element.parentElement);if(!y.options.idPath)return console.error("deleteListItem failed, list binding has no idPath",l.parentElement,y),!1;let s=y.array.indexOf(i.item);if(s>-1)return y.array.splice(s,1),!0;return!1},x9={start:"start",middle:"center",end:"end",nearest:"nearest"},o9=(l,i,y={})=>{let s=c0(l);if(s==null)return console.error("scrollListItemIntoView failed, element has no list binding",l),!1;let{position:h="middle"}=y,x=s.filteredArray(),o=G(i)??i,c=x.indexOf(o);if(c===-1)return console.error("scrollListItemIntoView failed, item not found in list",i),!1;let{virtual:r}=s.options;if(r!=null&&l instanceof HTMLElement){let C=r.width!=null?Math.max(1,Math.floor(l.offsetWidth/r.width)):r.visibleColumns??1,g=Math.floor(c/C),n=r.minHeight??r.height,p=Math.ceil(x.length/C),z=r.scrollContainer==="window",a=z?window.innerHeight:l.offsetHeight,A;if(r.minHeight!=null){let P=Math.ceil(a/n)+(r.rowChunkSize||1),F=p*n,q=Math.max(0,F-a),_=Math.max(1,p-P+1),N=g/_;switch(h){case"start":A=N*q;break;case"end":A=Math.max(0,(g-P+1)/_*q);break;case"nearest":{let M=z?Math.max(0,-l.getBoundingClientRect().top):l.scrollTop,H=q>0?M/q:0,u=Math.floor(H*_);if(g<u)A=N*q;else if(g>=u+P)A=Math.max(0,(g-P+1)/_*q);else return!0;break}default:{let M=g-Math.floor(P/2);A=Math.max(0,M)/_*q}}}else{let P=g*r.height;switch(h){case"start":A=P;break;case"end":A=P-a+r.height;break;case"nearest":{let F=z?Math.max(0,-l.getBoundingClientRect().top):l.scrollTop;if(P<F)A=P;else if(P+r.height>F+a)A=P-a+r.height;else return!0;break}default:A=P-(a-r.height)/2}}if(A=Math.max(0,A),z){let P=l.getBoundingClientRect().top+window.scrollY;window.scrollTo({top:P+A,behavior:"smooth"})}else l.scrollTo({top:A,behavior:"smooth"})}else{let C=s.itemToElement.get(o);if(C==null)return console.error("scrollListItemIntoView failed, no DOM element found for item",i),!1;C.scrollIntoView({block:x9[h]??"center",behavior:"smooth"})}return!0},{document:X2,MutationObserver:y3}=globalThis,P4=(l,i)=>{let y=D1.get(l);if(y==null)return;for(let s of y){let{binding:h,options:x}=s,{path:o}=s,{toDOM:c}=h;if(c!=null){if(o.startsWith("^")){let r=e1(l);if(r!=null&&r[a1]!=null)o=s.path=`${r[a1]}${o.substring(1)}`;else throw console.error(`Cannot resolve relative binding ${o}`,l,"is not part of a list"),Error(`Cannot resolve relative binding ${o}`)}if(i==null||o.startsWith(i))c(l,z4()[o],x)}}};if(y3!=null)new y3((l)=>{l.forEach((i)=>{Array.from(i.addedNodes).forEach((y)=>{if(y instanceof Element)Array.from(y.querySelectorAll(s2)).forEach((s)=>P4(s))})})}).observe(X2.body,{subtree:!0,childList:!0});J1(()=>!0,(l)=>{let i=Array.from(X2.querySelectorAll(s2));for(let y of i)P4(y,l)});var s3=(l)=>{let i=l.target?.closest(s2);while(i!=null){let y=D1.get(i);for(let s of y){let{binding:h,path:x}=s,{fromDOM:o}=h;if(o!=null){let c;try{c=o(i,s.options)}catch(r){throw console.error("Cannot get value from",i,"via",s),Error("Cannot obtain value fromDOM")}if(c!=null){let r=z4(),C=r[x];if(C==null)r[x]=c;else{let g=C[a1]!=null?C[Y1]:C,n=c[a1]!=null?c[Y1]:c;if(g!==n)r[x]=n}}}}i=i.parentElement.closest(s2)}};if(globalThis.document!=null)X2.body.addEventListener("change",s3,!0),X2.body.addEventListener("input",s3,!0);function X1(l,i,y,s){if(l instanceof DocumentFragment)throw Error("bind cannot bind to a DocumentFragment");let h;if(typeof i==="object"&&i[a1]===void 0&&s===void 0){let{value:c}=i;h=typeof c==="string"?c:c[a1],s=i,delete s.value}else h=typeof i==="string"?i:i[a1];if(h==null)throw Error("bind requires a path or object with xin Proxy");let{toDOM:x}=y;l.classList?.add(c3);let o=D1.get(l);if(o==null)o=[],D1.set(l,o);if(o.push({path:h,binding:y,options:s}),x!=null&&!h.startsWith("^"))p1(h);if(s?.filter&&s?.needle)X1(l,s.needle,{toDOM(c,r){console.log({needle:r}),c[y0]?.filter(r)}});return l}var h3=new Set,c9=(l)=>{let i=l?.target?.closest(J5),y=!1,s=new Proxy(l,{get(x,o){if(o==="stopPropagation")return()=>{l.stopPropagation(),y=!0};else{let c=x[o];return typeof c==="function"?c.bind(x):c}}}),h=new Set;while(!y&&i!=null){let x=F2.get(i)[l.type]||h;for(let o of x){if(typeof o==="function")o(s);else{let c=z4()[o];if(typeof c==="function")c(s);else throw Error(`no event handler found at path ${o}`)}if(y)continue}i=i.parentElement!=null?i.parentElement.closest(J5):null}};function x2(l,i,y){let s=F2.get(l);if(l.classList.add(r3),s==null)s={},F2.set(l,s);if(!s[i])s[i]=new Set;if(s[i].add(y),!h3.has(i))h3.add(i),X2.body.addEventListener(i,c9,!0);return()=>{s[i].delete(y)}}Ni(X1,x2);function U3(l,i){if(!l.internals)return;let y={},s="";if(l.hasAttribute("required")&&i==="")y.valueMissing=!0,s="Please fill out this field.";let h=l.getAttribute("minlength");if(h&&i.length<parseInt(h,10))y.tooShort=!0,s=`Please use at least ${h} characters.`;let x=l.getAttribute("maxlength");if(x&&i.length>parseInt(x,10))y.tooLong=!0,s=`Please use no more than ${x} characters.`;let o=l.getAttribute("pattern");if(o&&i!=="")try{if(!new RegExp(`^(?:${o})$`).test(i))y.patternMismatch=!0,s="Please match the requested format."}catch{}if(Object.keys(y).length>0)l.internals.setValidity(y,s,l);else l.internals.setValidity({})}var r9=0;function s4(){return`custom-elt${(r9++).toString(36)}`}var x3=0,h4=null;function C9(){if(h4===null)h4=new MutationObserver((l)=>{let i=new Set;for(let y of l)if(y.type==="attributes"&&y.target instanceof t){let s=y.target,h=B3(y.attributeName);if(s._legacyTrackedAttrs?.has(h))i.add(s)}for(let y of i)y.queueRender(!1)});return h4}var _2={};function g9(l,i){let y=_2[l],s=h2(i).replace(/:host\(([^)]+)\)/g,`${l}$1`).replace(/:host\b/g,l);_2[l]=y?y+`
13
+ `+s:s}function k9(l){if(_2[l])document.head.append(v.style({id:l+"-component"},_2[l]));delete _2[l]}class t extends HTMLElement{static elements=v;static _elementCreator;static initAttributes;static formAssociated;static preferredTagName;static shadowStyleSpec;static lightStyleSpec;static extends;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(l){if(this.internals)if(l)this.internals.setValidity({customError:!0},l);else this.internals.setValidity({})}setValidity(l,i,y){this.internals?.setValidity(l,i,y)}setFormValue(l,i){this.internals?.setFormValue(l,i)}static get observedAttributes(){let l=this.initAttributes;if(l)return["hidden",...Object.keys(l).map(w1)];return["hidden"]}instanceId;styleNode;static styleSpec;static styleNode;content=v.slot();isSlotted;static _tagName=null;static get tagName(){return this._tagName}_legacyTrackedAttrs;_attrValues;_valueChanged=!1;static StyleNode(l){return console.warn("StyleNode is deprecated, use static shadowStyleSpec instead"),v.style(h2(l))}static elementCreator(l={}){let i=this;if(!Object.prototype.hasOwnProperty.call(i,"_elementCreator")){if(l.tag!==void 0)s1("elementCreator-tag","Passing tag to elementCreator() is deprecated. Use static preferredTagName instead.");if(l.styleSpec!==void 0)s1("elementCreator-styleSpec","Passing styleSpec to elementCreator() is deprecated. Use static lightStyleSpec instead.");if(l.extends!==void 0)s1("elementCreator-extends","Passing extends to elementCreator() is deprecated. Use static extends instead.");let y=l.tag??i.preferredTagName;if(y==null)if(typeof i.name==="string"&&i.name!==""){if(y=w1(i.name),y.startsWith("-"))y=y.slice(1)}else y=s4();if(customElements.get(y)!=null)console.warn(`${y} is already defined`);if(y.match(/\w+(-\w+)+/)==null)console.warn(`${y} is not a legal tag for a custom-element`),y=s4();while(customElements.get(y)!==void 0)y=s4();i._tagName=y;let s=l.styleSpec??i.lightStyleSpec;if(s!==void 0)g9(y,s);let h=l.extends??i.extends,x=h?{extends:h}:void 0;window.customElements.define(y,this,x),i._elementCreator=v[y]}return i._elementCreator}initAttributes(...l){if(s1("initAttributes","initAttributes() is deprecated. Use static initAttributes = { ... } instead."),!this._legacyTrackedAttrs)this._legacyTrackedAttrs=new Set;for(let s of l)this._legacyTrackedAttrs.add(s);C9().observe(this,{attributes:!0});let i={},y={};l.forEach((s)=>{i[s]=I1(this[s]);let h=w1(s);Object.defineProperty(this,s,{enumerable:!1,get(){if(typeof i[s]==="boolean")return this.hasAttribute(h);else if(this.hasAttribute(h))return typeof i[s]==="number"?parseFloat(this.getAttribute(h)):this.getAttribute(h);else if(y[s]!==void 0)return y[s];else return i[s]},set(x){if(typeof i[s]==="boolean"){if(x!==this[s]){if(x)this.setAttribute(h,"");else this.removeAttribute(h);this.queueRender()}}else if(typeof i[s]==="number"){if(x!==parseFloat(this[s]))this.setAttribute(h,x),this.queueRender()}else if(typeof x==="object"||`${x}`!==`${this[s]}`){if(x===null||x===void 0||typeof x==="object")this.removeAttribute(h);else this.setAttribute(h,x);this.queueRender(),y[s]=x}}})})}initValue(){let l=Object.getOwnPropertyDescriptor(this,"value");if(l===void 0||l.get!==void 0||l.set!==void 0)return;let i=this.hasAttribute("value")?this.getAttribute("value"):I1(this.value);delete this.value,Object.defineProperty(this,"value",{enumerable:!1,get(){return i},set(y){if(i!==y)i=y,this._valueChanged=!0,this.queueRender(!0)}})}_parts;get parts(){let l=this.shadowRoot!=null?this.shadowRoot:this;if(this._parts==null)this._parts=new Proxy({},{get(i,y){if(i[y]===void 0){let s=l.querySelector(`[part="${y}"]`);if(s==null)s=l.querySelector(y);if(s==null)throw Error(`elementRef "${y}" does not exist!`);s.removeAttribute("data-ref"),i[y]=s}return i[y]}});return this._parts}attributeChangedCallback(l,i,y){let s=B3(l);if(!this._legacyTrackedAttrs?.has(s))this.queueRender(!1)}constructor(){super();if(x3+=1,this.constructor.formAssociated&&typeof this.attachInternals==="function"&&!this.internals)this.internals=this.attachInternals();let l=this.constructor.initAttributes;if(l)this._setupAttributeAccessors(l);this.instanceId=`${this.tagName.toLocaleLowerCase()}-${x3}`,this._value=I1(this.defaultValue)}_setupAttributeAccessors(l){if(!this._attrValues)this._attrValues=new Map;for(let i of Object.keys(l)){let y=w1(i),s=l[i];if(i==="value"){console.warn(`${this.tagName}: 'value' cannot be an attribute. Use the Component value property instead.`);continue}if(typeof s==="object"&&s!==null){console.warn(`${this.tagName}: initAttributes.${i} is an object. Use a regular property instead.`);continue}let h=this,x=!1;while(h){let o=Object.getOwnPropertyDescriptor(h,i);if(o){if(!o.configurable||o.get||o.set){x=!0;break}break}h=Object.getPrototypeOf(h)}if(x)continue;Object.defineProperty(this,i,{enumerable:!1,get:()=>{if(typeof s==="boolean")return this.hasAttribute(y);else if(this.hasAttribute(y))return typeof s==="number"?parseFloat(this.getAttribute(y)):this.getAttribute(y);else if(this._attrValues.has(i))return this._attrValues.get(i);else return s},set:(o)=>{if(typeof s==="boolean"){if(o!==this[i]){if(o)this.setAttribute(y,"");else this.removeAttribute(y);this.queueRender()}}else if(typeof s==="number"){if(o!==parseFloat(this[i]))this.setAttribute(y,o),this.queueRender()}else if(typeof o==="object"||`${o}`!==`${this[i]}`){if(o===null||o===void 0||typeof o==="object")this.removeAttribute(y);else this.setAttribute(y,o);this.queueRender(),this._attrValues.set(i,o)}}})}}connectedCallback(){if(k9(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(w4.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(){w4.unobserve(this)}formResetCallback(){if(this.value!==void 0)this.value=this.defaultValue??""}formDisabledCallback(l){if(l)this.setAttribute("disabled","");else this.removeAttribute("disabled")}formStateRestoreCallback(l){if(this.value!==void 0&&typeof l==="string")this.value=l}_changeQueued=!1;_renderQueued=!1;queueRender(l=!1){if(!this._hydrated)return;if(!this._changeQueued)this._changeQueued=l;if(!this._renderQueued)this._renderQueued=!0,requestAnimationFrame(()=>{if(this._changeQueued){if(a3(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 l=typeof this.content!=="function",i=typeof this.content==="function"?this.content(v):this.content,y=this.constructor,s=y.shadowStyleSpec??y.styleSpec;if(y.styleSpec&&!y.shadowStyleSpec)s1("static-styleSpec","static styleSpec is deprecated. Use static shadowStyleSpec instead.");let{styleNode:h}=y;if(s)h=y.styleNode=v.style(h2(s)),delete y.styleNode;if(this.styleNode)console.warn(this,"styleNode is deprecated, use static shadowStyleSpec instead"),h=this.styleNode;if(h){let x=this.attachShadow({mode:"open"});x.appendChild(h.cloneNode(!0)),u5(x,i,l)}else if(i!==null){let x=Array.from(this.childNodes);u5(this,i,l),this.isSlotted=this.querySelector("slot,xin-slot")!==void 0;let o=Array.from(this.querySelectorAll("slot"));if(o.length>0)o.forEach(F4.replaceSlot);if(x.length>0){let c={"":this};Array.from(this.querySelectorAll("xin-slot")).forEach((r)=>{c[r.name]=r}),x.forEach((r)=>{let C=c[""],g=r instanceof Element?c[r.slot]:C;(g!==void 0?g:C).append(r)})}}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 l=typeof this.value==="string"?this.value:String(this.value);U3(this,l)}}class F4 extends t{static preferredTagName="xin-slot";static initAttributes={name:""};content=null;static replaceSlot(l){let i=document.createElement("xin-slot");if(l.name!=="")i.setAttribute("name",l.name);l.replaceWith(i)}}var m7=F4.elementCreator(),n9=(l=()=>!0)=>{let i=localStorage.getItem("xin-state");if(i!=null){let s=JSON.parse(i);for(let h of Object.keys(s).filter(l))if(I[h]!==void 0)Object.assign(I[h],s[h]);else I[h]=s[h]}let y=N2(()=>{let s={},h=G(I);for(let x of Object.keys(h).filter(l))s[x]=h[x];localStorage.setItem("xin-state",JSON.stringify(s)),console.log("xin state saved to localStorage")},500);q4(l,y)},d9="tosijs-share",p9="tosijs-share",q2="shared",w9=1,a4=new Set,v4=new Set,x4=new Map,H1=null,B4="",i0=null,a9=null;function o3(){if(i0!=null)return Promise.resolve(i0);return new Promise((l,i)=>{let y=indexedDB.open(p9,w9);y.onupgradeneeded=()=>{y.result.createObjectStore(q2)},y.onsuccess=()=>{i0=y.result,l(i0)},y.onerror=()=>i(y.error)})}var v9={async get(l){let i=await o3();return new Promise((y,s)=>{let h=i.transaction(q2,"readonly").objectStore(q2).get(l);h.onsuccess=()=>y(h.result),h.onerror=()=>s(h.error)})},async set(l,i){let y=await o3();return new Promise((s,h)=>{let x=y.transaction(q2,"readwrite");x.objectStore(q2).put(i,l),x.oncomplete=()=>s(),x.onerror=()=>h(x.error)})}};function X3(){return a9??v9}function B9(l){return l!=null&&l.type==="tosijs-share"&&typeof l.path==="string"}function N3(l){for(let i of a4)if(l===i||l.startsWith(i+"."))return i;return}function t9(l){for(let i of v4)if(l===i||l.startsWith(i+"."))return!0;return!1}function z9(l,i){v4.add(l),t4(v1,l,i),p1(l),w3().then(()=>{v4.delete(l)})}function j9(){if(H1!=null)return H1;return B4=crypto.randomUUID(),H1=new BroadcastChannel(d9),H1.onmessage=(l)=>{let i=l.data;if(!B9(i))return;if(i.origin===B4)return;if(N3(i.path)===void 0)return;z9(i.path,i.value)},H1}function A9(l,i){if(H1==null)return;let y={type:"tosijs-share",path:l,value:i,origin:B4};H1.postMessage(y)}function V9(l){if(!x4.has(l))x4.set(l,N2(()=>{let i=e(v1,l);X3().set(l,i)},500));x4.get(l)()}async function q9(...l){if(typeof BroadcastChannel>"u")return{restored:[]};j9();let i=[],y=X3();for(let s of l){let h=typeof s==="string"?s:h1(s);if(h===void 0)throw Error("share() requires boxed proxies or string paths. Got a non-proxy value.");if(a4.has(h))continue;a4.add(h);let x=await y.get(h);if(x!==void 0)t4(v1,h,x),p1(h),i.push(s);else{let o=e(v1,h);await y.set(h,o)}J1((o)=>o===h||o.startsWith(h+"."),(o)=>{if(t9(o))return;let c=N3(o);if(c===void 0)return;let r=e(v1,o);A9(o,r),V9(c)})}return{restored:i}}var K3="1.4.3";function x1(l){return Object.assign(d1,l),d1}function O4(l){return s1("boxedProxy","boxedProxy is deprecated, please use tosi() instead"),x1(l)}function Q3(l,i=!1){if(i)return s1("xinProxy-boxed","xinProxy(..., true) is deprecated; use tosi(...) instead"),O4(l);return Object.keys(l).forEach((y)=>{I[y]=l[y]}),I}var _9={};async function U4(l,i){let y=await i(l,{Color:j,Component:t,elements:v,svgElements:o0,mathML:P3,varDefault:d,vars:k,xin:I,boxed:d1,xinProxy:Q3,boxedProxy:O4,tosi:x1,makeComponent:U4,bind:X1,on:x2,version:K3}),{type:s}=y;s.preferredTagName=l;let h=y.lightStyleSpec??y.styleSpec;if(h)s.lightStyleSpec=h;let x={type:s,creator:s.elementCreator()};return _9[l]=x,x}var r0={":host":{display:"none"}},o4={},P9=(l)=>import(l);class C0 extends t{static preferredTagName="tosi-blueprint";static lightStyleSpec=r0;static initAttributes={tag:"anon-elt",src:"",property:"default"};loaded;blueprintLoaded=(l)=>{};async packaged(){let{tag:l,src:i,property:y}=this,s=`${l}.${y}:${i}`;if(!this.loaded){if(o4[s]===void 0)o4[s]=P9(i).then((h)=>{let x=h[y];return U4(l,x)});else console.log(`using cached ${l} with signature ${s}`);this.loaded=await o4[s],this.blueprintLoaded(this.loaded)}return this.loaded}}var F9=C0.elementCreator();class X4 extends t{static preferredTagName="tosi-loader";static lightStyleSpec=r0;allLoaded=()=>{};async load(){let l=Array.from(this.querySelectorAll("tosi-blueprint, xin-blueprint")).filter((i)=>i.src).map((i)=>i.packaged());await Promise.all(l),this.allLoaded()}connectedCallback(){super.connectedCallback(),this.load()}}var O9=X4.elementCreator();class G3 extends C0{static preferredTagName="xin-blueprint";static lightStyleSpec=r0;constructor(){super();s1("xin-blueprint","<xin-blueprint> is deprecated. Use <tosi-blueprint> instead.")}}var U9=G3.elementCreator();class b3 extends t{static preferredTagName="xin-loader";static lightStyleSpec=r0;allLoaded=()=>{};constructor(){super();s1("xin-loader","<xin-loader> is deprecated. Use <tosi-loader> instead.")}async load(){let l=Array.from(this.querySelectorAll("xin-blueprint")).filter((i)=>i.src).map((i)=>i.packaged());await Promise.all(l),this.allLoaded()}connectedCallback(){super.connectedCallback(),this.load()}}var X9=b3.elementCreator();var N4={};class o2 extends t{static preferredTagName="tosi-ab";static set conditions(l){Object.assign(N4,l);for(let i of[...o2.instances])i.queueRender()}static initAttributes={condition:"",not:!1};static instances=new Set;connectedCallback(){super.connectedCallback(),o2.instances.add(this)}disconnectedCallback(){super.disconnectedCallback(),o2.instances.delete(this)}render(){if(this.condition!==""&&(this.not?N4[this.condition]!==!0:N4[this.condition]===!0))this.toggleAttribute("hidden",!1);else this.toggleAttribute("hidden",!0)}}var N9=o2.elementCreator();var g0={};function L(l,i){if(g0[l]===void 0){if(i!==void 0){let s=globalThis[i];g0[l]=Promise.resolve({[i]:s})}let y=v.script({src:l});document.head.append(y),g0[l]=new Promise((s)=>{y.onload=()=>s(globalThis)})}return g0[l]}var K4={};function k0(l){if(K4[l]===void 0){let i=v.link({rel:"stylesheet",type:"text/css",href:l});document.head.append(i),K4[l]=new Promise((y)=>{i.onload=y})}return K4[l]}var Q2={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 K9=(l)=>{Object.assign(Q2,l)},Q4=(l,i,y,s)=>{l.setAttribute("xmlns","http://www.w3.org/2000/svg");for(let o of[...l.querySelectorAll("path, polygon, line, circle, rect, ellipse, polyline")]){if(i!==void 0)o.setAttribute("fill",i);if(y!==void 0)o.setAttribute("stroke",y);if(s!==void 0)o.setAttribute("stroke-width",String(s))}let h=l.querySelectorAll("[style]");l.removeAttribute("style");for(let o of[...h]){let{fill:c,stroke:r,strokeWidth:C,strokeLinecap:g,strokeLinejoin:n}=o.style;if(c)o.setAttribute("fill",j.fromCss(c).html);if(r)o.setAttribute("stroke",j.fromCss(r).html);if(C)o.setAttribute("strokeWidth",C);if(g)o.setAttribute("strokeLinecap",g);if(n)o.setAttribute("strokeLinejoin",n);o.removeAttribute("style")}return`url(data:image/svg+xml;charset=UTF-8,${encodeURIComponent(l.outerHTML)})`},w=new Proxy(Q2,{get(l,i){let y=Q2[i];if(i&&!y)console.warn(`icon ${i} does not exist`);if(!y)y=Q2.square;return(...s)=>{let h=v.div();h.innerHTML=y;let x=h.querySelector("svg"),o=new Set(x.classList);o.add("tosi-icon");let c=o0.svg({class:Array.from(o).join(" "),viewBox:x.getAttribute("viewBox")},...s,...x.children);if(c.style.strokeWidth=d.tosiIconStrokeWidth("2px"),o.has("filled"))c.style.stroke="none",c.style.fill="currentColor";else if(o.has("stroked"))c.style.stroke=d.tosiIconStroke("currentColor"),c.style.fill="none";else c.style.stroke=d.tosiIconStroke("currentColor"),c.style.fill=d.tosiIconFill("currentColor");return c.style.height=d.tosiIconSize("16px"),c}}});class G4 extends t{static preferredTagName="tosi-icon";static lightStyleSpec={":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:d.tosiIconStrokeWidth("2px"),strokeLinejoin:d.tosiIconStrokeLinejoin("round"),strokeLinecap:d.tosiIconStrokeLinecap("round"),fill:d.tosiIconFill("none")},":host, :host svg":{height:d.tosiIconSize("16px")}};static initAttributes={icon:"",size:0,fill:"",stroke:"",strokeWidth:1};render(){super.render(),this.textContent="";let l={};if(this.size)l.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)l.stroke=this.stroke,l.strokeWidth=this.strokeWidth;if(this.fill)l.fill=this.fill;this.append(w[this.icon]({style:l}))}}var Q9=G4.elementCreator();var W3=()=>{};class b4 extends t{static preferredTagName="tosi-3d";babylonReady;BABYLON;static shadowStyleSpec={":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:Q4(w.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=v.canvas({part:"canvas"});constructor(){super();this.babylonReady=(async()=>{let{BABYLON:l}=await L("https://cdn.babylonjs.com/babylon.js","BABYLON");return l})()}scene;engine;sceneCreated=W3;update=W3;_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(l,i,y)=>{let{BABYLON:s}=await L("https://cdn.babylonjs.com/loaders/babylonjs.loaders.min.js","BABYLON");s.SceneLoader.Append(l,i,this.scene,y)};loadUI=async(l)=>{let{BABYLON:i}=await L("https://cdn.babylonjs.com/gui/babylon.gui.min.js","BABYLON"),y=i.GUI.AdvancedDynamicTexture.CreateFullscreenUI("GUI",!0,this.scene),{snippetId:s,jsonUrl:h,data:x,size:o}=l;if(o)y.idealWidth=o,y.renderAtIdealSize=!0;let c;if(s)c=await y.parseFromSnippetAsync(s);else if(h)c=await y.parseFromURLAsync(h);else if(x)c=y.parseContent(x);else return null;let r=y.getChildren()[0],C=r.children.reduce((g,n)=>{return g[n.name]=n,g},{});return{advancedTexture:y,gui:c,root:r,widgets:C}};connectedCallback(){super.connectedCallback();let{canvas:l}=this.parts;this.babylonReady.then(async(i)=>{if(this.BABYLON=i,this.engine=new i.Engine(l,!0),this.scene=new i.Scene(this.engine),this.sceneCreated)await this.sceneCreated(this,i);if(this.scene.activeCamera===void 0)new i.ArcRotateCamera("default-camera",-Math.PI/2,Math.PI/2.5,3,new i.Vector3(0,0,0)).attachControl(this.parts.canvas,!0);this.engine.runRenderLoop(this._update)})}}var G9=b4.elementCreator();class c2 extends t{static preferredTagName="tosi-lottie";static initAttributes={src:"",json:""};content=null;config={renderer:"svg",loop:!0,autoplay:!0};static bodymovinAvailable;animation;static shadowStyleSpec={":host":{width:400,height:400,display:"inline-block"}};_loading=!1;get loading(){return this._loading}constructor(){super();if(c2.bodymovinAvailable===void 0)c2.bodymovinAvailable=L("https://cdnjs.cloudflare.com/ajax/libs/bodymovin/5.12.2/lottie.min.js","bodymovin")}doneLoading=()=>{this._loading=!1};load=({bodymovin:l})=>{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<tosi-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 i=this.shadowRoot;if(i!==null)i.querySelector("svg")?.remove()}this.animation=l.loadAnimation(this.config),this.animation.addEventListener("DOMLoaded",this.doneLoading)};render(){super.render(),c2.bodymovinAvailable.then(this.load).catch((l)=>{console.error(l)})}}var b9=c2.elementCreator();var{button:W4,slot:W9,div:n0}=v;class d0 extends t{static preferredTagName="tosi-carousel";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(l){let{scroller:i,back:y,forward:s}=this.parts;if(this.lastPage<=0)s.disabled=y.disabled=!0,l=0;else l=Math.max(0,Math.min(this.lastPage,l)),l=isNaN(l)?0:l;if(this._page!==l)this._page=isNaN(l)?0:l,this.animateScroll(this._page*i.offsetWidth),y.disabled=this.page<=0&&!this.loop,s.disabled=this.page>=this.lastPage&&!this.loop}get visibleItems(){return[...this.children].filter((l)=>getComputedStyle(l).display!=="none")}get lastPage(){return Math.max(Math.ceil(this.visibleItems.length/(this.maxVisibleItems||1))-1,0)}static shadowStyleSpec={":host":{_carouselIconSize:24,_carouselButtonColor:"#0004",_carouselButtonHoverColor:"#0006",_carouselButtonActiveColor:"#000c",_carouseButtonWidth:48,_carouselDotCurrentColor:"#0008",_carouselDotSize:8,_carouselDotSpacing:k.carouselDotSize,_carouselProgressPadding:12,_carouselDotTransition:"0.125s ease-in-out",display:"flex",flexDirection:"column",position:"relative"},":host:focus":{outline:"none",boxShadow:"none"},":host svg":{height:k.carouselIconSize},":host button":{outline:"none",border:"none",boxShadow:"none",background:"transparent",color:k.carouselButtonColor,padding:0},":host::part(back), :host::part(forward)":{position:"absolute",top:0,bottom:0,width:k.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:k.carouselButtonHoverColor},":host button:active":{color:k.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:k.carouselButtonColor,borderRadius:k.carouselDotSize,height:k.carouselDotSize,width:k.carouselDotSize,transition:k.carouselDotTransition},":host .dot:not(.current):hover":{background:k.carouselButtonHoverColor,height:k.carouselDotSize150,width:k.carouselDotSize150,margin:k.carouselDotSize_25},":host .dot:not(.current):active":{background:k.carouselButtonActiveColor},":host .dot.current":{background:k.carouselDotCurrentColor},":host::part(progress)":{display:"flex",gap:k.carouselDotSpacing,justifyContent:"center",padding:k.carouselProgressPadding}};easing=(l)=>{return Math.sin(l*Math.PI*0.5)};indicateCurrent=()=>{let{scroller:l,progress:i}=this.parts,y=l.scrollLeft/l.offsetWidth;[...i.children].forEach((s,h)=>{s.classList.toggle("current",Math.floor(h/this.maxVisibleItems-y)===0)}),this.lastAutoAdvance=Date.now(),clearTimeout(this.snapTimer),this.snapTimer=setTimeout(this.snapPosition,this.snapDelay*1000)};snapPosition=()=>{let{scroller:l}=this.parts,i=Math.round(l.scrollLeft/l.offsetWidth);if(i!==this.page)this.page=i>this.page?Math.ceil(i):Math.floor(i);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=(l)=>{let{progress:i}=this.parts,y=[...i.children].indexOf(l.target);if(y>-1)this.page=Math.floor(y/this.maxVisibleItems)};snapTimer;animationFrame;animateScroll(l,i=-1,y=0){cancelAnimationFrame(this.animationFrame);let{scroller:s}=this.parts;if(i===-1){i=s.scrollLeft,y=Date.now(),this.animationFrame=requestAnimationFrame(()=>{this.animateScroll(l,i,y)});return}let h=(Date.now()-y)/1000;if(h>=this.snapDuration||Math.abs(s.scrollLeft-l)<2)s.scrollLeft=l,this.animationFrame=null;else s.scrollLeft=i+this.easing(h/this.snapDuration)*(l-i),this.animationFrame=requestAnimationFrame(()=>{this.animateScroll(l,i,y)})}content=()=>[n0({part:"pager"},W4({title:"previous slide",part:"back"},w.chevronLeft()),n0({title:"slides",role:"group",part:"scroller"},n0({part:"grid"},W9())),W4({title:"next slide",part:"forward"},w.chevronRight())),n0({title:"choose slide to display",role:"group",part:"progress"})];connectedCallback(){super.connectedCallback(),this.ariaRoleDescription="carousel",this.ariaOrientation="horizontal",this.ariaReadOnly="true";let{back:l,forward:i,scroller:y,progress:s}=this.parts;l.addEventListener("click",this.back),i.addEventListener("click",this.forward),y.addEventListener("scroll",this.indicateCurrent),s.addEventListener("click",this.handleDotClick),this.lastAutoAdvance=Date.now(),this.interval=setInterval(this.autoAdvance,100)}disconnectedCallback(){clearInterval(this.interval)}render(){super.render();let{dots:l,arrows:i,visibleItems:y,lastPage:s}=this,{progress:h,back:x,forward:o,grid:c}=this.parts;y.forEach((r)=>{r.role="group"}),c.style.gridTemplateColumns=`${100/this.maxVisibleItems/(1+this.lastPage)}% `.repeat(y.length).trim(),c.style.width=(1+this.lastPage)*100+"%",h.textContent="",h.append(...y.map((r,C)=>W4({title:`item ${C+1}`,class:"dot"}))),this.indicateCurrent(),h.style.display=l&&s>0?"":"none",x.hidden=o.hidden=!(i&&s>0)}}var f9=d0,f3=d0.elementCreator(),R9=f3;var R3="https://cdnjs.cloudflare.com/ajax/libs/ace/1.23.2/",Z3="ace/theme/tomorrow",Z9=async()=>{let{ace:l}=await L(`${R3}ace.min.js`);return l},H9=async(l,i="html",y={},s=Z3)=>{let h=await Z9();h.config.set("basePath",R3);let x=h.edit(l,{mode:`ace/mode/${i}`,tabSize:2,useSoftTabs:!0,useWorker:!1,...y});return x.setTheme(s),{ace:h,editor:x}};class T1 extends t{static preferredTagName="tosi-code";source="";get value(){return this.editor===void 0?this.source:this.editor.getValue()}set value(l){if(this.editor===void 0)this.source=l;else this.editor.setValue(l),this.editor.clearSelection(),this.editor.session.getUndoManager().reset()}static initAttributes={mode:"javascript",theme:Z3,disabled:!1};role="code editor";_ace;_editor;_editorPromise;options={};get ace(){return this._ace}get editor(){return this._editor}static shadowStyleSpec={":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=H9(this,this.mode,this.options,this.theme),this._editorPromise.then(({ace:l,editor:i})=>{this._ace=l,this._editor=i,i.setValue(this.source,1),i.clearSelection(),i.session.getUndoManager().reset()})}render(){if(super.render(),this._editorPromise!==void 0)this._editorPromise.then(({editor:l})=>l.setReadOnly(this.disabled))}}var r2=T1.elementCreator();var{input:f4}=v,H3=j.fromCss("#8888");class J3 extends t{static preferredTagName="tosi-color";value=H3.rgba;color=H3;static shadowStyleSpec={":host":{_gap:8,_swatchSize:32,_cssWidth:72,_alphaWidth:72,display:"inline-flex",gap:k.gap,alignItems:"center"},':host input[type="color"]':{border:0,width:k.swatchSize,height:k.swatchSize,background:"transparent"},":host::part(alpha)":{width:k.alphaWidth},":host::part(css)":{width:k.cssWidth,fontFamily:"monospace"}};content=[f4({title:"base color",type:"color",part:"rgb"}),f4({type:"range",title:"opacity",part:"alpha",min:0,max:1,step:0.05}),f4({title:"css color spec",part:"css"})];valueChanged=!1;update=(l)=>{let{rgb:i,alpha:y,css:s}=this.parts;if(l.type==="input")this.color=j.fromCss(i.value),this.color.a=Number(y.value),s.value=this.color.html;else this.color=j.fromCss(s.value),i.value=this.color.html.substring(0,7),y.value=String(this.color.a);i.style.opacity=String(this.color.a),this.value=this.color.rgba,this.valueChanged=!0};connectedCallback(){super.connectedCallback();let{rgb:l,alpha:i,css:y}=this.parts;l.addEventListener("input",this.update),i.addEventListener("input",this.update),y.addEventListener("change",this.update)}render(){if(this.valueChanged){this.valueChanged=!1;return}let{rgb:l,alpha:i,css:y}=this.parts;this.color=j.fromCss(this.value),l.value=this.color.html.substring(0,7),l.style.opacity=String(this.color.a),i.value=String(this.color.a),y.value=this.color.html}}var R4=J3.elementCreator();var N1=v.div({style:{content:" ",position:"fixed",top:0,left:0,right:0,bottom:0}}),p0={passive:!0},T=(l,i,y="move")=>{if(!l.type.startsWith("touch")){let{clientX:h,clientY:x}=l;N1.style.cursor=y,K1(N1),document.body.append(N1);let o=(c)=>{let r=c.clientX-h,C=c.clientY-x;if(i(r,C,c)===!0)N1.removeEventListener("mousemove",o),N1.removeEventListener("mouseup",o),N1.remove()};N1.addEventListener("mousemove",o,p0),N1.addEventListener("mouseup",o,p0)}else if(l instanceof TouchEvent){let h=l.changedTouches[0],x=h.identifier,o=h.clientX,c=h.clientY,r=l.target,C=0,g=0,n=(p)=>{let z=[...p.touches].find((a)=>a.identifier===x);if(z!==void 0)C=z.clientX-o,g=z.clientY-c;if(p.type==="touchmove")p.stopPropagation(),p.preventDefault();if(i(C,g,p)===!0||z===void 0)r.removeEventListener("touchmove",n),r.removeEventListener("touchend",n),r.removeEventListener("touchcancel",n)};r.addEventListener("touchmove",n),r.addEventListener("touchend",n,p0),r.addEventListener("touchcancel",n,p0)}},M1=(l="body *")=>[...document.querySelectorAll(l)].map((i)=>parseFloat(getComputedStyle(i).zIndex)).reduce((i,y)=>isNaN(i)||Number(i)<y?y:Number(i),0),K1=(l,i="body *")=>{l.style.zIndex=String(M1(i)+1)};var{slot:J9}=v;class _1 extends t{static preferredTagName="tosi-float";static floats=new Set;static initAttributes={drag:!1,remainOnResize:"remove",remainOnScroll:"remain"};content=J9();static shadowStyleSpec={":host":{position:"fixed"}};reposition=(l)=>{if(l.target?.closest(".no-drag"))return;if(this.drag){K1(this);let y=this.offsetLeft,s=this.offsetTop;T(l,(h,x,o)=>{if(this.style.left=`${y+h}px`,this.style.top=`${s+x}px`,this.style.right="auto",this.style.bottom="auto",o.type==="mouseup")return!0})}};connectedCallback(){super.connectedCallback(),_1.floats.add(this);let l={passive:!0};this.addEventListener("touchstart",this.reposition,l),this.addEventListener("mousedown",this.reposition,l),K1(this)}disconnectedCallback(){super.disconnectedCallback(),_1.floats.delete(this)}}var $9=_1,G2=_1.elementCreator(),I9=G2;window.addEventListener("resize",()=>{Array.from(_1.floats).forEach((l)=>{if(l.remainOnResize==="hide")l.hidden=!0;else if(l.remainOnResize==="remove")l.remove()})},{passive:!0});document.addEventListener("scroll",(l)=>{if(l.target instanceof HTMLElement&&l.target.closest(_1.tagName))return;Array.from(_1.floats).forEach((i)=>{if(i.remainOnScroll==="hide")i.hidden=!0;else if(i.remainOnScroll==="remove")i.remove()})},{passive:!0,capture:!0});var Z4=(l)=>{let{content:i,target:y,position:s,remainOnScroll:h,remainOnResize:x,draggable:o}=l,c=Array.isArray(i)?G2(...i):G2(i);if($3(c,y,s,h,x,o),l.class)c.setAttribute("class",l.class);return document.body.append(c),c},$3=(l,i,y,s,h,x=!1)=>{{let{position:a}=getComputedStyle(l);if(a!=="fixed")l.style.position="fixed";if(h)l.remainOnResize=h;if(s)l.remainOnScroll=s;K1(l)}l.drag=x;let{left:o,top:c,width:r,height:C}=i.getBoundingClientRect(),g=o+r*0.5,n=c+C*0.5,p=window.innerWidth,z=window.innerHeight;if(y==="side")y=(g<p*0.5?"e":"w")+(n<z*0.5?"s":"n");else if(y==="auto"||y===void 0)y=(n<z*0.5?"s":"n")+(g<p*0.5?"e":"w");if(l.style.top=l.style.left=l.style.right=l.style.bottom=l.style.transform="",y.length===2){let[a,A]=y;switch(a){case"n":l.style.bottom=(z-c).toFixed(2)+"px";break;case"e":l.style.left=(o+r).toFixed(2)+"px";break;case"s":l.style.top=(c+C).toFixed(2)+"px";break;case"w":l.style.right=(p-o).toFixed(2)+"px";break}switch(A){case"n":l.style.bottom=(z-c-C).toFixed(2)+"px";break;case"e":l.style.left=o.toFixed(2)+"px";break;case"s":l.style.top=c.toFixed(2)+"px";break;case"w":l.style.right=(p-o-r).toFixed(2)+"px";break}l.style.transform=""}else if(y==="n")l.style.bottom=(z-c).toFixed(2)+"px",l.style.left=g.toFixed(2)+"px",l.style.transform="translateX(-50%)";else if(y==="s")l.style.top=(c+C).toFixed(2)+"px",l.style.left=g.toFixed(2)+"px",l.style.transform="translateX(-50%)";else if(y==="e")l.style.left=(o+r).toFixed(2)+"px",l.style.top=n.toFixed(2)+"px",l.style.transform="translateY(-50%)";else if(y==="w")l.style.right=(p-o).toFixed(2)+"px",l.style.top=n.toFixed(2)+"px",l.style.transform="translateY(-50%)";l.style.setProperty("--max-height",`calc(100vh - ${l.style.top||l.style.bottom})`),l.style.setProperty("--max-width",`calc(100vw - ${l.style.left||l.style.right})`)};function w0(l,i=!0){return(y,s)=>{let h=l(y),x=l(s);for(let o in h)if(h[o]!==x[o])return(Array.isArray(i)?i[o]!==!1:i)?h[o]>x[o]?1:-1:h[o]>x[o]?-1:1;return 0}}var{button:Y9,span:I3,input:D9}=v,Y3=(l,i)=>{return!!l.find((y)=>{if(y===null||i==null)return!1;else if(Array.isArray(y))return Y3(y,i);else if(y.value===i||y===i)return!0})};class B1 extends t{static preferredTagName="tosi-select";static formAssociated=!0;static lightStyleSpec={":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:k.tosiSelectGap,textAlign:"left",height:k.tosiSelectTouchSize,padding:k.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:k.tosiSelectFieldWidth,padding:k.tosiSelectValuePadding,height:k.tosiSelectTouchSize,lineHeight:k.tosiSelectTouchSize,boxShadow:"none",whiteSpace:"nowrap",outline:"none",background:"transparent",flex:"1"},':host [part="value"]:not(:focus)':{overflow:"hidden",textOverflow:"ellipsis",background:"transparent"}};static initAttributes={editable:!1,placeholder:"",showIcon:!1,hideCaption:!1,localized:!1,disabled:!1,required:!1,name:""};_options=[];get options(){return this._options}set options(l){if(typeof l==="string")this._options=B1.parseOptionsString(l);else this._options=l;this.queueRender()}static parseOptionsString(l){return l.split(",").map((i)=>{let y=i.trim();if(y==="")return null;let[s,h]=y.split("=").map((c)=>c.trim());if(!h)return{value:s,caption:s};let[x,o]=h.split(":").map((c)=>c.trim());return{value:s,caption:x||s,icon:o||void 0}})}value="";filter="";isExpanded=!1;formDisabledCallback(l){this.disabled=l}formResetCallback(){this.value=""}setValue=(l,i=!1)=>{if(this.value!==l)this.value=l,this.queueRender(!0);if(i)this.dispatchEvent(new Event("action"))};getValue=()=>this.value;get selectOptions(){return this.options}buildOptionMenuItem=(l)=>{if(l===null)return null;let{setValue:i,getValue:y}=this,s,h,x;if(typeof l==="string")h=x=l;else({icon:s,caption:h,value:x}=l);if(this.localized)h=Q(h);let{options:o}=l;if(o)return{icon:s,caption:h,checked:()=>Y3(o,y()),menuItems:o.map(this.buildOptionMenuItem)};return{icon:s,caption:h,checked:()=>y()===x,action:typeof x==="function"?async()=>{let c=await x();if(c!==void 0)i(c,!0)}:()=>{if(typeof x==="string")i(x,!0)}}};poppedOptions=[];get optionsMenu(){let l=this.selectOptions.map(this.buildOptionMenuItem);if(this.filter==="")return l;let i=(y)=>{if(y===null)return!0;else if(y.menuItems){let s=l1(y.menuItems);return y.menuItems=s.filter(i),s.length>0}else return y.caption.toLocaleLowerCase().includes(this.filter)};return l.filter(i)}handleChange=(l)=>{let{value:i}=this.parts,y=i.value||"";if(this.value!==String(y))this.value=y,this.dispatchEvent(new Event("change"));this.filter="",l.stopPropagation(),l.preventDefault()};handleKey=(l)=>{if(l.key==="Enter")l.preventDefault()};filterMenu=U2(()=>{this.filter=this.parts.value.value.toLocaleLowerCase(),J(0),this.popOptions()});popOptions=(l)=>{if(l&&l.type==="click")this.filter="";this.poppedOptions=this.optionsMenu,this.isExpanded=!0,this.updateAriaExpanded(),W({target:this,menuItems:this.poppedOptions,showChecked:!0,role:"listbox",onClose:()=>{this.isExpanded=!1,this.updateAriaExpanded()}})};updateAriaExpanded(){let{value:l}=this.parts;l.setAttribute("aria-expanded",String(this.isExpanded))}content=()=>[Y9({type:"button",part:"button",onClick:this.popOptions},I3(),D9({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}),w.chevronDown())];get allOptions(){let l=[];function i(y){for(let s of y)if(typeof s==="string")l.push({caption:s,value:s});else if(s?.value)l.push(s);else if(s?.options)i(s.options)}return i(this.selectOptions),l}findOption(){return this.allOptions.find((i)=>i.value===this.value)||{caption:this.value,value:this.value}}localeChanged=()=>{this.queueRender()};connectedCallback(){super.connectedCallback();let l=this.getAttribute("options");if(l&&this._options.length===0)this._options=B1.parseOptionsString(l);if(this.localized)a0.allInstances.add(this)}disconnectedCallback(){if(super.disconnectedCallback(),this.localized)a0.allInstances.delete(this)}render(){super.render();let{value:l,button:i}=this.parts;i.disabled=this.disabled;let y=l.previousElementSibling,s=this.findOption(),h=I3();if(l.value=this.localized?Q(s.caption):s.caption,s.icon)if(s.icon instanceof HTMLElement)h=s.icon.cloneNode(!0);else h=w[s.icon]();y.replaceWith(h),l.setAttribute("placeholder",this.localized?Q(this.placeholder):this.placeholder),l.style.pointerEvents=this.editable?"":"none",l.readOnly=!this.editable}}var S9=B1,E=B1.elementCreator(),e9=S((...l)=>E(...l),"xinSelect is deprecated, use tosiSelect instead (tag is now <tosi-select>)");var{span:D3}=v,{i18n:b}=x1({i18n:{locale:window.navigator.language,locales:[window.navigator.language],languages:[window.navigator.language],emoji:[""],stringMap:{},localeOptions:[{icon:D3(),caption:window.navigator.language,value:window.navigator.language}]}});q1.localeOptions={toDOM(l,i){if(l instanceof B1)l.options=i}};var T9=(l)=>{if(b.locales.value.includes(l))b.locale.value=l;else console.error(`language ${l} is not available`)},H4=()=>{let l=Array.from(t1.allInstances);for(let i of l)i.localeChanged()};b.locale.observe(H4);var M9=w0((l)=>[l.caption.toLocaleLowerCase()]);function u9(l){let[i,,y,s,...h]=l.split(`
14
+ `).map((x)=>x.split("\t"));if(i&&y&&s&&h){if(b.locales.value=i,b.languages.value=y,b.emoji.value=s,b.stringMap.value=h.reduce((x,o)=>{return x[o[0].toLocaleLowerCase()]=o,x},{}),b.localeOptions.value=i.map((x,o)=>({icon:D3({title:i[o]},s[o]),caption:y[o],value:x})).sort(M9),!b.locales.value.includes(b.locale.value)){let x=b.locale.value.substring(0,2);b.locale.value=b.locales.value.find((o)=>o.substring(0,2)===x)||b.locales.value[0]}H4()}}function Q(l){if(l.endsWith("…"))return Q(l.substring(0,l.length-1))+"…";let i=b.locales.value.indexOf(b.locale.value);if(i>-1){let y=b.stringMap.value,s=l.toLocaleLowerCase(),h=y[s],x=h&&h[i];if((!x||x==='"')&&s.includes("#")){let o=y[s.substring(0,s.indexOf("#"))];x=o&&o[i]}if(x)x=x.split("#",2)[0],l=l.toLocaleLowerCase()===l?x.toLocaleLowerCase():x;else l=l.split("#",2)[0]}else l=l.split("#",2)[0];return l}class v0 extends t{static preferredTagName="tosi-locale-picker";static initAttributes={hideCaption:!1};content=()=>{return E({part:"select",showIcon:!0,title:Q("Language"),bindValue:b.locale,bindLocaleOptions:b.localeOptions})};render(){super.render(),this.parts.select.toggleAttribute("hide-caption",this.hideCaption)}}var m9=v0,S3=v0.elementCreator(),L9=S3;class t1 extends t{static preferredTagName="tosi-localized";static lightStyleSpec={":host":{pointerEvents:"none"}};static allInstances=new Set;static initAttributes={refString:""};contents=()=>v.xinSlot();connectedCallback(){super.connectedCallback(),t1.allInstances.add(this)}disconnectedCallback(){super.disconnectedCallback(),t1.allInstances.delete(this)}localeChanged(){if(!this.refString)this.refString=this.textContent||"";this.textContent=this.refString?Q(this.refString):""}render(){super.render(),this.localeChanged()}}var a0=t1,z1=t1.elementCreator(),E9=z1;var e3=typeof navigator<"u"&&/Mac|iPhone|iPad|iPod/.test(navigator.platform||""),l6=e3?{meta:"⌘",ctrl:"⌃",alt:"⌥",shift:"⇧",escape:"⎋"}:{meta:"Meta",ctrl:"Ctrl",alt:"Alt",shift:"Shift",escape:"Esc"},T3=(l)=>{if(l.code)return l.code.replace(/^Key|^Digit/,"");return l.key},i6=(l)=>{let i=[];if(l.altKey)i.push("alt");if(l.ctrlKey)i.push("ctrl");if(l.metaKey)i.push("meta");if(l.shiftKey)i.push("shift");return i.push(T3(l)),i.join("-")},y6=[[/\^|ctrl-?/i,"ctrlKey"],[/⌘|meta-?/i,"metaKey"],[/⌥|⎇|alt-?|option-?/i,"altKey"],[/⇧|shift-?/i,"shiftKey"]],B0=(l)=>{let i=l.trim(),y={ctrlKey:!1,metaKey:!1,altKey:!1,shiftKey:!1,key:""};for(let[s,h]of y6)if(s.test(i))y[h]=!0,i=i.replace(s,"");return i=i.replace(/^-+/,""),y.key=i.toLowerCase(),y},J4=(l,i)=>{let y=B0(i);return l.key.toLowerCase()===y.key&&l.metaKey===y.metaKey&&l.ctrlKey===y.ctrlKey&&l.altKey===y.altKey&&l.shiftKey===y.shiftKey},s6=(l)=>{let i=B0(l),y=[];if(i.altKey)y.push("alt");if(i.ctrlKey)y.push("ctrl");if(i.metaKey)y.push("meta");if(i.shiftKey)y.push("shift");return y.push(i.key),y.join("-")},t0=(l)=>{let i=B0(l);if(e3){let s=[];if(i.ctrlKey)s.push("⌃");if(i.altKey)s.push("⌥");if(i.shiftKey)s.push("⇧");if(i.metaKey)s.push("⌘");return s.push(i.key.toUpperCase()),s.join("")}let y=[];if(i.ctrlKey)y.push("Ctrl");if(i.altKey)y.push("Alt");if(i.shiftKey)y.push("Shift");if(i.metaKey)y.push("Meta");return y.push(i.key.toUpperCase()),y.join("+")};var j0={};m0(j0,{stringToTypes:()=>g2,isTypeAllowed:()=>k2,init:()=>Y4,draggedElement:()=>r6});var h6=()=>!!document.querySelector(".drag-source"),k2=(l,i)=>{if(!l)return!1;for(let y of l)if(y==="special/any")return!0;else if(y.indexOf("*")>-1){let[s,h]=y.split("/"),[x,o]=i.split("/");if((s==="*"||s===x)&&(h==="*"||h===o))return!0}else if(y===i)return!0},z0=(l)=>{for(let i of[...document.querySelectorAll(`.${l}`)])i.classList.remove(l)},m3=()=>{if(C2)C2.disconnect(),C2=null;$4=[],z0("drag-over"),z0("drag-source"),z0("drag-target")},g2=(l,i=";")=>{return(l||"").split(i).map((y)=>y.trim()).filter((y)=>y!=="")},$4=[],C2=null,I4=(l)=>{if(!l)l=[];$4=l;let i=[...document.querySelectorAll("[data-drop]")];for(let y of i){let s=g2(y.dataset.drop);if(l.find((h)=>k2(s,h)))y.classList.add("drag-target");else y.classList.remove("drag-target")}if(!C2)C2=new MutationObserver(()=>I4($4)),C2.observe(document.body,{childList:!0,subtree:!0})};function x6(l){let i=l.target?.closest('[draggable="true"],a[href]');if(!i)return;i.classList.add("drag-source");let y=i.matches('[draggable="true"]')?g2(i.dataset.drag||"text/html"):g2(i.dataset.drag||"url");for(let s of y){let h=i.dataset.dragContent||(s==="text/html"?i.innerHTML:i.textContent);l.dataTransfer?.setData(s,h||"")}I4(l.dataTransfer?.types),l.stopPropagation()}function M3(l){if(!h6())I4(l.dataTransfer?.types);let i=l.target.closest(".drag-target");if(i&&l.dataTransfer)i.classList.add("drag-over"),l.dataTransfer.dropEffect="copy";else l.preventDefault(),l.stopPropagation()}function o6(){z0("drag-over")}function c6(l){let i=l.target.closest(".drag-target");if(i){let y=(i.dataset?.drop||"").split(";");for(let s of y)if(k2(l.dataTransfer?.types,s))if(s==="text/html")i.innerHTML=l.dataTransfer?.getData(s)||"";else i.textContent=l.dataTransfer?.getData(s)||""}m3()}var r6=()=>document.querySelector(".drag-source"),u3=!1,Y4=()=>{if(u3)return;document.body.addEventListener("dragstart",x6),document.body.addEventListener("dragenter",M3),document.body.addEventListener("dragover",M3),document.body.addEventListener("drop",c6),document.body.addEventListener("dragleave",o6),document.body.addEventListener("dragend",m3),window.addEventListener("dragover",(l)=>l.preventDefault()),window.addEventListener("drop",(l)=>l.preventDefault()),u3=!0};var l1=(l)=>typeof l==="function"?l():l,{div:L3,button:f2,span:f,a:C6,xinSlot:g6}=v,E3=(l)=>{let i=[];for(let y of l)if(y===null){if(i.length>0&&i[i.length-1]!==null)i.push(y)}else i.push(y);while(i.length>0&&i[i.length-1]===null)i.pop();return i},W2=(l,i,y=!1)=>{let s=[];for(let h of l){if(h===null){s.push(h);continue}let{acceptsDrop:x}=h;if(!x){if(!y)s.push({...h,enabled:()=>!1});continue}if(!i.some((r)=>k2(x,r))){if(!y)s.push({...h,enabled:()=>!1});continue}let c=h;if(c.menuItems){let r=W2(l1(c.menuItems),i,!0);if(r.length>0||c.dropAction){let C=y?r:W2(l1(c.menuItems),i,!1);s.push({...c,menuItems:C})}else if(!y)s.push({...c,enabled:()=>!1})}else s.push(h)}return E3(s)},D4=(l,i=!1)=>{let y=[];for(let s of l){if(s===null){y.push(s);continue}let{action:h,menuItems:x}=s;if(h||x)if(x){let o=D4(l1(x),!0);if(o.length>0){let c=i?o:D4(l1(x),!1);y.push({...s,menuItems:c})}else if(!i)y.push({...s,enabled:()=>!1})}else y.push(s);else if(!i)y.push({...s,enabled:()=>!1})}return E3(y)};S1("xin-menu-helper",{".xin-menu":{overflow:"hidden auto",maxHeight:`calc(${k.maxHeight} - ${d.menuInset("8px")})`,borderRadius:k.spacing50,background:d.menuBg("#fafafa"),boxShadow:d.menuShadow(`${k.spacing13} ${k.spacing50} ${k.spacing} #0004`)},".xin-menu > div":{width:d.menuWidth("auto")},".xin-menu-trigger":{paddingLeft:0,paddingRight:0,minWidth:d.touchSize("48px")},".xin-menu-separator":{display:"inline-block",content:" ",height:"1px",width:"100%",background:d.menuSeparatorColor("#2224"),margin:d.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:d.menuItemPadding("0 16px"),height:d.menuItemHeight("48px"),lineHeight:d.menuItemHeight("48px"),textAlign:"left"},".xin-menu-item, .xin-menu-item > span":{color:d.menuItemColor("#222")},".xin-menu-with-icons .xin-menu-item":{gridTemplateColumns:"30px 1fr 30px"},".xin-menu-item svg":{stroke:d.menuItemIconColor("#222")},".xin-menu-item.xin-menu-item-checked":{background:d.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:d.menuItemHoverBg("#eee")},".xin-menu-item.drag-target:hover":{boxShadow:`inset 0 0 0 2px color-mix(in srgb, ${d.menuDropOverBg("#2196F3")} 50%, transparent) !important`},".xin-menu-item:active":{boxShadow:"none !important",background:d.menuItemActiveBg("#aaa"),color:d.menuItemActiveColor("#000")},".xin-menu-item:active svg":{stroke:d.menuItemIconActiveColor("#000")},".xin-menu-item-highlight":{boxShadow:"none !important",background:d.menuItemActiveBg("#aaa"),color:d.menuItemActiveColor("#000")},".xin-menu-item-highlight svg":{stroke:d.menuItemIconActiveColor("#000")},".xin-drop-over":{background:`${d.menuDropOverBg("#2196F3")} !important`,color:`${d.menuDropOverColor("#fff")} !important`},".xin-drop-over > span":{color:`${d.menuDropOverColor("#fff")} !important`},".xin-drop-over svg":{stroke:`${d.menuDropOverColor("#fff")} !important`},".drag-target":{boxShadow:`inset 0 0 0 2px color-mix(in srgb, ${d.menuDropOverBg("#2196F3")} 50%, transparent) !important`}});var ll=(l,i)=>{let y=l.checked&&l.checked()&&"check"||!1,s=l?.icon||y||f(" ");if(typeof s==="string")s=w[s]();let h=i.role==="listbox"?"option":"menuitem",x;if(typeof l?.action==="string")x=C6({class:"xin-menu-item",role:h,href:l.action},s,i.localized?f(Q(l.caption)):f(l.caption),f(l.shortcut?t0(l.shortcut):" "));else x=f2({class:"xin-menu-item",role:h,onClick:l.action},s,i.localized?f(Q(l.caption)):f(l.caption),f(l.shortcut?t0(l.shortcut):" "));if(x.classList.toggle("xin-menu-item-checked",y!==!1),i.role==="listbox"&&y)x.setAttribute("aria-selected","true");if(l?.enabled&&!l.enabled())x.setAttribute("disabled",""),x.setAttribute("aria-disabled","true");return x},il=(l,i)=>{let y=l?.icon||f(" ");if(typeof y==="string")y=w[y]();let s=f2({class:"xin-menu-item",onDragenter(h){d2(),s.classList.add("xin-drop-over"),h.preventDefault()},onDragover(h){if(h.preventDefault(),h.dataTransfer)h.dataTransfer.dropEffect="copy"},onDragleave(h){let x=h.relatedTarget;if(x&&s.contains(x))return;s.classList.remove("xin-drop-over")},onDrop(h){if(h.preventDefault(),h.stopPropagation(),s.classList.remove("xin-drop-over"),l.dropAction&&h.dataTransfer)l.dropAction(h.dataTransfer);J(0)}},y,i.localized?f(Q(l.caption)):f(l.caption),f(" "));if(l.dropAction&&l.acceptsDrop)s.dataset.drop=l.acceptsDrop.join(";");if(l?.enabled&&!l.enabled())s.setAttribute("disabled",""),s.setAttribute("aria-disabled","true");return s},S4=(l,i)=>{let y=l.checked&&l.checked()&&"check"||!1,s=l?.icon||y||f(" ");if(typeof s==="string")s=w[s]();let h=null,x=!1,o=f2({class:"xin-menu-item",disabled:!(!l.enabled||l.enabled()),onClick(c){if(i._dropMode)return;W(Object.assign({},i,{menuItems:l1(l.menuItems),target:o,submenuDepth:(i.submenuDepth||0)+1,position:"side"})),c.stopPropagation(),c.preventDefault()},onDragenter(c){if(!i._dropMode)return;d2(),c.preventDefault(),c.stopPropagation();let r=c.relatedTarget;if(r&&o.contains(r))return;if(o.classList.add("xin-drop-over"),x){if(J((i.submenuDepth||0)+1),x=!1,h)clearTimeout(h);h=null;return}if(h)clearTimeout(h);h=setTimeout(()=>{x=!0;let C=l1(l.menuItems),g=i._dataTypes?W2(C,i._dataTypes,i.hideDisabled):C;if(g.length>0)W(Object.assign({},i,{menuItems:g,target:o,submenuDepth:(i.submenuDepth||0)+1,position:"side",_dropMode:!0,_dataTypes:i._dataTypes}))},i.disclosureDelay??200)},onDragover(c){if(!i._dropMode)return;if(c.preventDefault(),c.stopPropagation(),c.dataTransfer)c.dataTransfer.dropEffect=l.dropAction?"copy":"link"},onDragleave(c){if(!i._dropMode)return;let r=c.relatedTarget;if(r&&o.contains(r))return;if(x&&r&&$.some((C)=>C.menu.contains(r)||C.target.contains(r)))return;if(o.classList.remove("xin-drop-over"),h)clearTimeout(h),h=null},onDrop(c){if(!i._dropMode||!l.dropAction)return;if(c.preventDefault(),c.stopPropagation(),o.classList.remove("xin-drop-over"),c.dataTransfer)l.dropAction(c.dataTransfer);J(0)}},s,i.localized?f(Q(l.caption)):f(l.caption),w.chevronRight({style:{justifySelf:"flex-end"}}));if(i._dropMode&&l.dropAction&&l.acceptsDrop)o.dataset.drop=l.acceptsDrop.join(";");return o},yl=(l,i)=>{if(l===null)return f({class:"xin-menu-separator"});else if(i._dropMode){let y=l;if(y.menuItems&&l1(y.menuItems).length>0)return S4(y,i);else if(l.dropAction)return il(l,i);else{let h=l?.icon||f(" ");if(typeof h==="string")h=w[h]();return f2({class:"xin-menu-item",disabled:!0},h,i.localized?f(Q(l.caption)):f(l.caption),f(" "))}}else{let y=l?.action?ll(l,i):S4(l,i);if(i.showChecked&&l.checked&&l.checked())requestAnimationFrame(()=>{y.scrollIntoView({block:"center"})});return y}},sl=(l)=>{let{target:i,width:y,menuItems:s,role:h="menu"}=l,x=s.find((r)=>r?.icon||r?.checked),o=l.submenuDepth||0,c=L3({class:x?"xin-menu xin-menu-with-icons":"xin-menu",role:h,onClick(){if(!l._dropMode)J(0)},onDragover(r){if(!l._dropMode)return;r.preventDefault()},onDragenter(){if(!l._dropMode)return;d2()},onDragleave(r){if(!l._dropMode)return;let C=r.relatedTarget;if(C&&c.contains(C))return;if(C&&$.some((g)=>g.menu.contains(C)||g.target.contains(C)))return;hl(o)}},L3({style:{minWidth:i.offsetWidth+"px",width:typeof y==="number"?`${y}px`:y},onMousedown(r){r.preventDefault(),r.stopPropagation()}},...s.map((r)=>yl(r,l))));return c},n2,$=[],b2=null,d2=()=>{if(b2)clearTimeout(b2),b2=null},hl=(l)=>{d2(),b2=setTimeout(()=>{b2=null,J(l)},500)},J=(l=0)=>{if(d2(),l===0)document.querySelectorAll("tosi-menu.xin-drop-over").forEach((y)=>y.classList.remove("xin-drop-over"));let i=$.splice(l);for(let y of i)if(y.menu.remove(),y.onClose)y.onClose();return n2=i[0],l>0?$[l-1]:void 0};document.addEventListener("mousedown",(l)=>{if($.length===0)return;let i=l.composedPath();if(!$.find((y)=>i.includes(y.target)||i.includes(y.menu)))J(0)});document.body.addEventListener("keydown",(l)=>{if(l.key==="Escape")J(0)});var W=(l)=>{l=Object.assign({submenuDepth:0},l);let{target:i,position:y,submenuDepth:s}=l;if(n2&&!document.body.contains(n2?.menu))n2=void 0;if($.length&&!document.body.contains($[0].menu))$.splice(0);if(l._dropMode){if($.length>s&&$[s]?.target===i)return;J(s)}else{if(s===0&&n2?.target===i)return;let o=J(s);if(n2?.target===i)return;if(o&&o.target===i){J();return}}if(!l.menuItems?.length)return;let h=sl(l),x=Z4({content:h,target:i,position:y});x.remainOnScroll=l._dropMode?"remain":"remove",$.push({target:i,menu:x,onClose:l.onClose})},xl=(l)=>{let{dataTypes:i,...y}=l,s=W2(l.menuItems,i,l.hideDisabled);if(!s.length)return;W({...y,menuItems:s,_dropMode:!0,_dataTypes:i})};function e4(l,i,y=[]){for(let s of l){if(!s)continue;let{shortcut:h}=s,{menuItems:x}=s;if(h){if(J4(i,h)){let o=s;if(o.enabled&&!o.enabled())return;if(y.some((c)=>c.enabled&&!c.enabled()))return;return{action:o,path:y}}}else if(x){let o=e4(l1(x),i,[...y,s]);if(o)return o}}return}class A0 extends t{static preferredTagName="tosi-menu";static lightStyleSpec={":host":{display:"inline-block"},":host button > xin-slot":{display:"flex",alignItems:"center",gap:d.tosiMenuTriggerGap("10px")}};static initAttributes={menuWidth:"auto",localized:!1,icon:"",acceptsDrop:"",disclosureDelay:0,hideDisabled:!1};menuItems=[];dropAction=null;_dragMatches=!1;_matchesDrag(l){if(!this.acceptsDrop)return!1;let i=g2(this.acceptsDrop);return[...l.dataTransfer?.types||[]].some((s)=>i.some((h)=>k2([h],s)))}showMenu=(l)=>{if(l.type==="click"||l.code==="Space")W({target:this.parts.trigger,width:this.menuWidth,localized:this.localized,menuItems:this.menuItems}),l.stopPropagation(),l.preventDefault()};handleDragEnter=(l)=>{if(this._dragMatches=this._matchesDrag(l),!this._dragMatches)return;d2(),this.classList.add("xin-drop-over");let i=[...l.dataTransfer?.types||[]];if(this.menuItems.length)xl({target:this.parts.trigger,menuItems:this.menuItems,dataTypes:i,width:this.menuWidth,localized:this.localized,disclosureDelay:this.disclosureDelay||void 0,hideDisabled:this.hideDisabled});l.preventDefault()};handleDragOver=(l)=>{if(!this._dragMatches)return;if(l.preventDefault(),l.dataTransfer)l.dataTransfer.dropEffect=this.dropAction?"copy":"link"};handleDragLeave=(l)=>{if(!this._dragMatches)return;let i=l.relatedTarget;if(i&&this.contains(i))return;if(i&&$.some((y)=>y.menu.contains(i)||y.target.contains(i))){this.classList.remove("xin-drop-over");return}this.classList.remove("xin-drop-over"),hl(0)};handleDrop=(l)=>{if(!this._dragMatches||!this.dropAction)return;if(l.preventDefault(),l.stopPropagation(),this.classList.remove("xin-drop-over"),l.dataTransfer)this.dropAction(l.dataTransfer);J(0)};content=()=>f2({tabindex:0,part:"trigger",onClick:this.showMenu},g6());handleShortcut=async(l)=>{let i=e4(this.menuItems,l);if(!i)return;l.preventDefault(),l.stopImmediatePropagation();let{action:y,path:s}=i;if(this.isConnected&&document.body.contains(this))await this.animateShortcut(s,y);if(y.action instanceof Function)y.action()};findMenuItemByCaption(l,i){for(let y of l.querySelectorAll(".xin-menu-item")){let s=y.children[1];if(s&&s.textContent===i)return y}return null}async animateShortcut(l,i){J(0),W({target:this.parts.trigger,width:this.menuWidth,localized:this.localized,menuItems:this.menuItems}),await new Promise((s)=>setTimeout(s,80));for(let s=0;s<l.length;s++){let h=s+1,x=$[s]?.menu;if(!x)break;let o=this.findMenuItemByCaption(x,l[s].caption);if(!o)break;W({target:o,width:this.menuWidth,localized:this.localized,menuItems:l1(l[s].menuItems),submenuDepth:h,position:"side"}),await new Promise((c)=>setTimeout(c,80))}let y=$[$.length-1]?.menu;if(y){let s=this.findMenuItemByCaption(y,i.caption);if(s)s.classList.add("xin-menu-item-highlight")}await new Promise((s)=>setTimeout(s,300)),J(0)}constructor(){super();this.addEventListener("keydown",this.showMenu),this.addEventListener("dragenter",this.handleDragEnter),this.addEventListener("dragover",this.handleDragOver),this.addEventListener("dragleave",this.handleDragLeave),this.addEventListener("drop",this.handleDrop)}connectedCallback(){if(super.connectedCallback(),document.addEventListener("keydown",this.handleShortcut,!0),this.acceptsDrop)this.dataset.drop=this.acceptsDrop}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("keydown",this.handleShortcut)}}var ol=A0.elementCreator(),k6=ol,n6=A0;function d6(l,i,y){let s=l.find((h)=>h[i]!==void 0&&h[i]!==null);if(s!==void 0){let h=s[i];switch(typeof h){case"string":if(h.match(/^\d+(\.\d+)?$/))return 6*y;else if(h.includes(" "))return 20*y;else return 12*y;case"number":return 6*y;case"boolean":return 5*y;case"object":return!1;default:return 8*y}}return!1}var{div:p2,span:T4,button:p6,template:w6}=v,cl=(l)=>l;class V0 extends t{static preferredTagName="tosi-table";static lightStyleSpec={":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:k.tosiTableGridRowWidth},":host .tr":{display:"grid",gridTemplateColumns:k.tosiTableGridColumns,height:k.tosiTableRowHeight,lineHeight:k.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:k.tosiTableTouchSize,height:k.tosiTableTouchSize,width:k.tosiTableTouchSize},':host [draggable="true"]':{cursor:"ew-resize"},':host [draggable="true"]:active':{background:k.tosiTableDraggedHeaderBg,color:k.tosiTableDraggedHeaderColor},":host .drag-over":{background:k.tosiTableDropHeaderBg}};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=(l,i)=>{l.toggleAttribute("aria-selected",i[this.selectedKey]===!0)};maxVisibleRows=1e4;get value(){return{array:this.array,filter:this.filter,columns:this.columns}}set value(l){let{array:i,columns:y,filter:s}=G(l);if(this._array!==i||this._columns!==y||this._filter!==s)this.queueRender();this._array=i||[],this._columns=y||null,this._filter=s||cl}rowData={visible:[],pinnedTop:[],pinnedBottom:[]};_array=[];_columns=null;_filter=cl;get virtual(){return this.rowHeight>0?{height:this.rowHeight}:void 0}constructor(){super();this.rowData=x1({[this.instanceId]:this.rowData})[this.instanceId]}get array(){return this._array}set array(l){this._array=G(l),this.queueRender()}get filter(){return this._filter}set filter(l){if(this._filter!==l)this._filter=l,this.queueRender()}get sort(){if(this._sort)return this._sort;let l=this._columns?.find((y)=>y.sort==="ascending"||y.sort==="descending");if(!l)return;let{prop:i}=l;return l.sort==="ascending"?(y,s)=>y[i]>s[i]?1:-1:(y,s)=>y[i]>s[i]?-1:1}set sort(l){if(this._sort!==l)this._sort=l,this.queueRender()}get columns(){if(!Array.isArray(this._columns)){let{_array:l}=this;this._columns=Object.keys(l[0]||{}).map((i)=>{let y=d6(l,i,this.charWidth);return{name:i.replace(/([a-z])([A-Z])/g,"$1 $2").toLocaleLowerCase(),prop:i,align:typeof l[0][i]==="number"||l[0][i]!==""&&!isNaN(l[0][i])?"right":"left",visible:y!==!1,width:y?y:0}})}return this._columns}set columns(l){this._columns=l,this.queueRender()}get visibleColumns(){return this.columns.filter((l)=>l.visible!==!1)}content=null;getColumn(l){let i=(l.touches!==void 0?l.touches[0].clientX:l.clientX)-this.getBoundingClientRect().x,y=l.touches!==void 0?20:5,s=0,h=[];return this.visibleColumns.find((o)=>{if(o.visible!==!1)return s+=o.width,h.push(s),Math.abs(i-s)<y})}setCursor=(l)=>{if(this.getColumn(l)!==void 0)this.style.cursor="col-resize";else this.style.cursor=""};resizeColumn=(l)=>{let i=this.getColumn(l);if(i!==void 0){let y=Number(i.width),s=l.touches!==void 0,h=s?l.touches[0].identifier:void 0;T(l,(x,o,c)=>{if((s?[...c.touches].find((g)=>g.identifier===h):!0)===void 0)return!0;let C=y+x;if(i.width=C>this.minColumnWidth?C:this.minColumnWidth,this.setColumnWidths(),c.type==="mouseup")return!0},"col-resize")}};selectRow(l,i=!0){if(i)l[this.selectedKey]=!0;else delete l[this.selectedKey]}selectRows(l,i=!0){for(let y of l||this.array)this.selectRow(y,i)}deSelect(l){this.selectRows(l,!1)}rangeStart;updateSelection=(l)=>{if(!this.select&&!this.multiple)return;let{target:i}=l;if(!(i instanceof HTMLElement))return;let y=i.closest(".tr");if(!(y instanceof HTMLElement))return;let s=e1(y);if(s===!1)return;let h=l,x=window.getSelection();if(x!==null)x.removeAllRanges();let o=this.visibleRows;if(this.multiple&&h.shiftKey&&o.length>0&&this.rangeStart!==s){let c=this.rangeStart===void 0||this.rangeStart[this.selectedKey]===!0,[r,C]=[this.rangeStart!==void 0?o.indexOf(this.rangeStart):0,o.indexOf(s)].sort((g,n)=>g-n);if(r>-1)for(let g=r;g<=C;g++){let n=o[g];this.selectRow(n,c)}}else if(this.multiple&&h.metaKey){this.selectRow(s,!s[this.selectedKey]);let c=o.indexOf(s),r=o[c+1],C=c>0?o[c-1]:void 0;if(r!==void 0&&r[this.selectedKey]===!0)this.rangeStart=r;else if(C!==void 0&&C[this.selectedKey]===!0)this.rangeStart=C;else this.rangeStart=void 0}else this.rangeStart=s,this.deSelect(),this.selectRow(s,!0);this.selectionChanged(this.visibleSelectedRows);for(let c of Array.from(this.querySelectorAll(".tr"))){let r=e1(c);this.selectBinding(c,r)}};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 l=this.visibleColumns.map((y)=>y.width+"px").join(" "),i=this.visibleColumns.reduce((y,s)=>y+s.width,0)+"px";this.style.setProperty("--tosi-table-grid-columns",l),this.style.setProperty("--tosi-table-grid-row-width",i),this.style.setProperty("--grid-columns",l),this.style.setProperty("--grid-row-width",i)}sortByColumn=(l,i="auto")=>{for(let y of this.columns.filter((s)=>G(s.sort)!==!1))if(G(y)===l){if(i==="auto")y.sort=y.sort==="ascending"?"descending":"ascending";else y.sort=i;this.queueRender()}else delete y.sort};popColumnMenu=(l,i)=>{let{sortByColumn:y}=this,s=this.columns.filter((o)=>o.visible===!1),h=this.queueRender.bind(this),x=[];if(!this.nosort&&i.sort!==!1)x.push({caption:this.localized?`${Q("Sort")} ${Q("Ascending")}`:"Sort Ascending",icon:"sortAscending",action(){y(i)}},{caption:this.localized?`${Q("Sort")} ${Q("Descending")}`:"Sort Descending",icon:"sortDescending",action(){y(i,"descending")}});if(!this.nohide){if(x.length)x.push(null);x.push({caption:this.localized?`${Q("Hide")} ${Q("Column")}`:"Hide Column",icon:"eyeOff",enabled:()=>i.visible!==!0,action(){i.visible=!1,h()}},{caption:this.localized?`${Q("Show")} ${Q("Column")}`:"Show Column",icon:"eye",enabled:()=>s.length>0,menuItems:s.map((o)=>{return{caption:o.name||o.prop,action(){delete o.visible,h()}}})})}W({target:l,localized:this.localized,menuItems:x})};get captionSpan(){return this.localized?z1:T4}headerCell=(l)=>{let{popColumnMenu:i}=this,y="none",s;switch(l.sort){case"ascending":s=w.sortAscending(),y="descending";break;case!1:break;default:break;case"descending":y="ascending",s=w.sortDescending()}let h=!(this.nosort&&this.nohide)?p6({class:"menu-trigger",onClick(x){i(x.target,l),x.stopPropagation()}},s||w.moreVertical()):{};return l.headerCell!==void 0?l.headerCell(l):T4({class:"th",role:"columnheader",ariaSort:y,style:{...this.cellStyle,justifyContent:l.align||"left"}},this.captionSpan({style:{flex:"1"}},typeof l.name==="string"?l.name:l.prop),h)};dataCell=(l)=>{if(l.dataCell!==void 0)return l.dataCell(l);return T4({class:"td",role:"cell",style:{...this.cellStyle,justifyContent:l.align||"left"},bindText:`^.${l.prop}`})};get visibleRows(){return G(this.rowData.visible)}get visibleSelectedRows(){return this.visibleRows.filter((l)=>l[this.selectedKey])}get selectedRows(){return this.array.filter((l)=>l[this.selectedKey])}rowTemplate(l){return w6(p2({class:"tr",role:"row",bind:{value:"^",binding:{toDOM:this.selectBinding}}},...l.map(this.dataCell)))}draggedColumn;dropColumn=(l)=>{let i=l.target.closest(".drag-over"),y=Array.from(i.parentElement.children).indexOf(i),s=this.visibleColumns[y],h=this.columns.indexOf(this.draggedColumn),x=this.columns.indexOf(s);this.columns.splice(h,1),this.columns.splice(x,0,this.draggedColumn),console.log({event:l,target:i,targetIndex:y,draggedIndex:h,droppedIndex:x}),this.queueRender(),l.preventDefault(),l.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:l}=this;if(l)this.rowData.visible.sort(l);this.textContent="",this.style.display="flex",this.style.flexDirection="column";let{visibleColumns:i}=this;if(this.style.setProperty("--tosi-table-row-height",`${this.rowHeight}px`),this.style.setProperty("--row-height",`${this.rowHeight}px`),this.setColumnWidths(),!this.noreorder)Y4();let y=this.instanceId+"-column-header",s=i.map((h)=>{let x=this.headerCell(h);if(!this.noreorder&&x.children[0]){let o=x.children[0];o.setAttribute("draggable","true"),o.style.pointerEvents="all",o.dataset.drag=y,x.dataset.drop=y,o.addEventListener("dragstart",()=>{this.draggedColumn=h}),x.addEventListener("drop",this.dropColumn)}return x});if(this.append(p2({class:"thead",role:"rowgroup",style:{touchAction:"none"}},p2({class:"tr",role:"row"},...s))),this.pinnedTop>0)this.append(p2({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(i)));if(this.append(p2({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(i))),this.pinnedBottom>0)this.append(p2({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(i)))}}var a6=V0,M4=V0.elementCreator(),v6=M4,B6=M4;var{dialog:t6,button:u4,header:z6,footer:j6,xinSlot:m4,h3:L4,p:E4,label:A6,input:V6,div:q6}=v;class l5 extends t{static preferredTagName="tosi-dialog";static lightStyleSpec={":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:d.menuShadow("0 5px 10px #0004"),_dialogBackground:d.background("#fafafa"),_dialogColor:d.textColor("#222"),boxShadow:k.dialogShadow,background:k.dialogBackground,color:k.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}};static async alert(l,i="Alert"){return new Promise((y)=>{let s=q0({removeOnClose:!0,closeOnBackgroundClick:!0,dialogWillClose(){y()}},L4({slot:"header"},i),l.includes(`
15
+ `)?v.pre({style:{whiteSpace:"pre-wrap",margin:0}},l):E4(l));document.body.append(s),s.showModal()})}static async confirm(l,i="Confirm"){return new Promise((y)=>{let s=q0({removeOnClose:!0,dialogWillClose(h){y(h==="confirm")}},L4({slot:"header"},i),E4(l),u4({slot:"footer",onClick(){s.close()}},"Cancel"));document.body.append(s),s.showModal()})}static async prompt(l,i="Prompt",y=""){return new Promise((s)=>{let h=V6({value:y}),x=q0({removeOnClose:!0,dialogWillClose(o){s(o==="confirm"?h.value:null)},initialFocus(){h.focus()}},L4({slot:"header"},i),E4(A6({style:{display:"flex",flexDirection:"column",alignItems:"stretch",gap:5}},q6(l),h)),u4({slot:"footer",onClick(){x.close()}},"Cancel"));document.body.append(x),x.showModal()})}static initAttributes={removeOnClose:!1,closeOnBackgroundClick:!1};constructor(){super();x2(this,"click",()=>{if(this.closeOnBackgroundClick)this.close()})}dialogWillClose=(l="cancel")=>{console.log("dialog will close with",l)};initialFocus(){this.parts.ok.focus()}#l=(l)=>{};showModal=()=>{return this.style.zIndex=String(M1()),new Promise((l)=>{this.#l=l,this.parts.dialog.showModal(),requestAnimationFrame(()=>{this.initialFocus()})})};close=(l="cancel")=>{if(this.dialogWillClose(l),this.#l(l),this.parts.dialog.close(),this.removeOnClose)this.remove()};ok=()=>{this.close("confirm")};content=()=>t6({part:"dialog"},z6(m4({name:"header"})),m4(),j6(m4({name:"footer"}),u4({part:"ok",onClick:this.ok},"OK")))}var q0=l5.elementCreator();function y5(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var m1=y5();function pl(l){m1=l}var J2={exec:()=>null};function U(l,i=""){let y=typeof l=="string"?l:l.source,s={replace:(h,x)=>{let o=typeof x=="string"?x:x.source;return o=o.replace(Y.caret,"$1"),y=y.replace(h,o),s},getRegex:()=>new RegExp(y,i)};return s}var _6=(()=>{try{return!!new RegExp("(?<=1)(?<!1)")}catch{return!1}})(),Y={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:(l)=>new RegExp(`^( {0,3}${l})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:(l)=>new RegExp(`^ {0,${Math.min(3,l-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:(l)=>new RegExp(`^ {0,${Math.min(3,l-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:(l)=>new RegExp(`^ {0,${Math.min(3,l-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:(l)=>new RegExp(`^ {0,${Math.min(3,l-1)}}#`),htmlBeginRegex:(l)=>new RegExp(`^ {0,${Math.min(3,l-1)}}<(?:[a-z].*>|!--)`,"i")},P6=/^(?:[ \t]*(?:\n|$))+/,F6=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,O6=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,$2=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,U6=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,s5=/(?:[*+-]|\d{1,9}[.)])/,wl=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,al=U(wl).replace(/bull/g,s5).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(),X6=U(wl).replace(/bull/g,s5).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(),h5=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,N6=/^[^\n]+/,x5=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,K6=U(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",x5).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),Q6=U(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,s5).getRegex(),U0="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",o5=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,G6=U("^ {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",o5).replace("tag",U0).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),vl=U(h5).replace("hr",$2).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",U0).getRegex(),b6=U(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",vl).getRegex(),c5={blockquote:b6,code:F6,def:K6,fences:O6,heading:U6,hr:$2,html:G6,lheading:al,list:Q6,newline:P6,paragraph:vl,table:J2,text:N6},rl=U("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",$2).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",U0).getRegex(),W6={...c5,lheading:X6,table:rl,paragraph:U(h5).replace("hr",$2).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",rl).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",U0).getRegex()},f6={...c5,html:U(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",o5).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:J2,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:U(h5).replace("hr",$2).replace("heading",` *#{1,6} *[^
16
+ ]`).replace("lheading",al).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},R6=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,Z6=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,Bl=/^( {2,}|\\)\n(?!\s*$)/,H6=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,X0=/[\p{P}\p{S}]/u,r5=/[\s\p{P}\p{S}]/u,tl=/[^\s\p{P}\p{S}]/u,J6=U(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,r5).getRegex(),zl=/(?!~)[\p{P}\p{S}]/u,$6=/(?!~)[\s\p{P}\p{S}]/u,I6=/(?:[^\s\p{P}\p{S}]|~)/u,Y6=U(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",_6?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),jl=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,D6=U(jl,"u").replace(/punct/g,X0).getRegex(),S6=U(jl,"u").replace(/punct/g,zl).getRegex(),Al="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",e6=U(Al,"gu").replace(/notPunctSpace/g,tl).replace(/punctSpace/g,r5).replace(/punct/g,X0).getRegex(),T6=U(Al,"gu").replace(/notPunctSpace/g,I6).replace(/punctSpace/g,$6).replace(/punct/g,zl).getRegex(),M6=U("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,tl).replace(/punctSpace/g,r5).replace(/punct/g,X0).getRegex(),u6=U(/\\(punct)/,"gu").replace(/punct/g,X0).getRegex(),m6=U(/^<(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(),L6=U(o5).replace("(?:-->|$)","-->").getRegex(),E6=U("^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",L6).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),P0=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/,l8=U(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",P0).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Vl=U(/^!?\[(label)\]\[(ref)\]/).replace("label",P0).replace("ref",x5).getRegex(),ql=U(/^!?\[(ref)\](?:\[\])?/).replace("ref",x5).getRegex(),i8=U("reflink|nolink(?!\\()","g").replace("reflink",Vl).replace("nolink",ql).getRegex(),Cl=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,C5={_backpedal:J2,anyPunctuation:u6,autolink:m6,blockSkip:Y6,br:Bl,code:Z6,del:J2,emStrongLDelim:D6,emStrongRDelimAst:e6,emStrongRDelimUnd:M6,escape:R6,link:l8,nolink:ql,punctuation:J6,reflink:Vl,reflinkSearch:i8,tag:E6,text:H6,url:J2},y8={...C5,link:U(/^!?\[(label)\]\((.*?)\)/).replace("label",P0).getRegex(),reflink:U(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",P0).getRegex()},i5={...C5,emStrongRDelimAst:T6,emStrongLDelim:S6,url:U(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",Cl).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:U(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",Cl).getRegex()},s8={...i5,br:U(Bl).replace("{2,}","*").getRegex(),text:U(i5.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},_0={normal:c5,gfm:W6,pedantic:f6},R2={normal:C5,gfm:i5,breaks:s8,pedantic:y8},h8={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},gl=(l)=>h8[l];function j1(l,i){if(i){if(Y.escapeTest.test(l))return l.replace(Y.escapeReplace,gl)}else if(Y.escapeTestNoEncode.test(l))return l.replace(Y.escapeReplaceNoEncode,gl);return l}function kl(l){try{l=encodeURI(l).replace(Y.percentDecode,"%")}catch{return null}return l}function nl(l,i){let y=l.replace(Y.findPipe,(x,o,c)=>{let r=!1,C=o;for(;--C>=0&&c[C]==="\\";)r=!r;return r?"|":" |"}),s=y.split(Y.splitPipe),h=0;if(s[0].trim()||s.shift(),s.length>0&&!s.at(-1)?.trim()&&s.pop(),i)if(s.length>i)s.splice(i);else for(;s.length<i;)s.push("");for(;h<s.length;h++)s[h]=s[h].trim().replace(Y.slashPipe,"|");return s}function Z2(l,i,y){let s=l.length;if(s===0)return"";let h=0;for(;h<s;){let x=l.charAt(s-h-1);if(x===i&&!y)h++;else if(x!==i&&y)h++;else break}return l.slice(0,s-h)}function x8(l,i){if(l.indexOf(i[1])===-1)return-1;let y=0;for(let s=0;s<l.length;s++)if(l[s]==="\\")s++;else if(l[s]===i[0])y++;else if(l[s]===i[1]&&(y--,y<0))return s;return y>0?-2:-1}function dl(l,i,y,s,h){let x=i.href,o=i.title||null,c=l[1].replace(h.other.outputLinkReplace,"$1");s.state.inLink=!0;let r={type:l[0].charAt(0)==="!"?"image":"link",raw:y,href:x,title:o,text:c,tokens:s.inlineTokens(c)};return s.state.inLink=!1,r}function o8(l,i,y){let s=l.match(y.other.indentCodeCompensation);if(s===null)return i;let h=s[1];return i.split(`
17
17
  `).map((x)=>{let o=x.match(y.other.beginningSpace);if(o===null)return x;let[c]=o;return c.length>=h.length?x.slice(h.length):x}).join(`
18
18
  `)}var F0=class{options;rules;lexer;constructor(l){this.options=l||m1}space(l){let i=this.rules.block.newline.exec(l);if(i&&i[0].length>0)return{type:"space",raw:i[0]}}code(l){let i=this.rules.block.code.exec(l);if(i){let y=i[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:i[0],codeBlockStyle:"indented",text:this.options.pedantic?y:Z2(y,`
19
- `)}}}fences(l){let i=this.rules.block.fences.exec(l);if(i){let y=i[0],s=x8(y,i[3]||"",this.rules);return{type:"code",raw:y,lang:i[2]?i[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):i[2],text:s}}}heading(l){let i=this.rules.block.heading.exec(l);if(i){let y=i[2].trim();if(this.rules.other.endingHash.test(y)){let s=Z2(y,"#");(this.options.pedantic||!s||this.rules.other.endingSpaceChar.test(s))&&(y=s.trim())}return{type:"heading",raw:i[0],depth:i[1].length,text:y,tokens:this.lexer.inline(y)}}}hr(l){let i=this.rules.block.hr.exec(l);if(i)return{type:"hr",raw:Z2(i[0],`
19
+ `)}}}fences(l){let i=this.rules.block.fences.exec(l);if(i){let y=i[0],s=o8(y,i[3]||"",this.rules);return{type:"code",raw:y,lang:i[2]?i[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):i[2],text:s}}}heading(l){let i=this.rules.block.heading.exec(l);if(i){let y=i[2].trim();if(this.rules.other.endingHash.test(y)){let s=Z2(y,"#");(this.options.pedantic||!s||this.rules.other.endingSpaceChar.test(s))&&(y=s.trim())}return{type:"heading",raw:i[0],depth:i[1].length,text:y,tokens:this.lexer.inline(y)}}}hr(l){let i=this.rules.block.hr.exec(l);if(i)return{type:"hr",raw:Z2(i[0],`
20
20
  `)}}blockquote(l){let i=this.rules.block.blockquote.exec(l);if(i){let y=Z2(i[0],`
21
21
  `).split(`
22
22
  `),s="",h="",x=[];for(;y.length>0;){let o=!1,c=[],r;for(r=0;r<y.length;r++)if(this.rules.other.blockquoteStart.test(y[r]))c.push(y[r]),o=!0;else if(!o)c.push(y[r]);else break;y=y.slice(r);let C=c.join(`
23
23
  `),g=C.replace(this.rules.other.blockquoteSetextReplace,`
24
24
  $1`).replace(this.rules.other.blockquoteSetextReplace2,"");s=s?`${s}
25
25
  ${C}`:C,h=h?`${h}
26
- ${g}`:g;let k=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(g,x,!0),this.lexer.state.top=k,y.length===0)break;let p=x.at(-1);if(p?.type==="code")break;if(p?.type==="blockquote"){let z=p,v=z.raw+`
26
+ ${g}`:g;let n=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(g,x,!0),this.lexer.state.top=n,y.length===0)break;let p=x.at(-1);if(p?.type==="code")break;if(p?.type==="blockquote"){let z=p,a=z.raw+`
27
27
  `+y.join(`
28
- `),V=this.blockquote(v);x[x.length-1]=V,s=s.substring(0,s.length-z.raw.length)+V.raw,h=h.substring(0,h.length-z.text.length)+V.text;break}else if(p?.type==="list"){let z=p,v=z.raw+`
28
+ `),A=this.blockquote(a);x[x.length-1]=A,s=s.substring(0,s.length-z.raw.length)+A.raw,h=h.substring(0,h.length-z.text.length)+A.text;break}else if(p?.type==="list"){let z=p,a=z.raw+`
29
29
  `+y.join(`
30
- `),V=this.list(v);x[x.length-1]=V,s=s.substring(0,s.length-p.raw.length)+V.raw,h=h.substring(0,h.length-z.raw.length)+V.raw,y=v.substring(x.at(-1).raw.length).split(`
31
- `);continue}}return{type:"blockquote",raw:s,tokens:x,text:h}}}list(l){let i=this.rules.block.list.exec(l);if(i){let y=i[1].trim(),s=y.length>1,h={type:"list",raw:"",ordered:s,start:s?+y.slice(0,-1):"",loose:!1,items:[]};y=s?`\\d{1,9}\\${y.slice(-1)}`:`\\${y}`,this.options.pedantic&&(y=s?y:"[*+-]");let x=this.rules.other.listItemRegex(y),o=!1;for(;l;){let r=!1,C="",g="";if(!(i=x.exec(l))||this.rules.block.hr.test(l))break;C=i[0],l=l.substring(C.length);let k=i[2].split(`
30
+ `),A=this.list(a);x[x.length-1]=A,s=s.substring(0,s.length-p.raw.length)+A.raw,h=h.substring(0,h.length-z.raw.length)+A.raw,y=a.substring(x.at(-1).raw.length).split(`
31
+ `);continue}}return{type:"blockquote",raw:s,tokens:x,text:h}}}list(l){let i=this.rules.block.list.exec(l);if(i){let y=i[1].trim(),s=y.length>1,h={type:"list",raw:"",ordered:s,start:s?+y.slice(0,-1):"",loose:!1,items:[]};y=s?`\\d{1,9}\\${y.slice(-1)}`:`\\${y}`,this.options.pedantic&&(y=s?y:"[*+-]");let x=this.rules.other.listItemRegex(y),o=!1;for(;l;){let r=!1,C="",g="";if(!(i=x.exec(l))||this.rules.block.hr.test(l))break;C=i[0],l=l.substring(C.length);let n=i[2].split(`
32
32
  `,1)[0].replace(this.rules.other.listReplaceTabs,(F)=>" ".repeat(3*F.length)),p=l.split(`
33
- `,1)[0],z=!k.trim(),v=0;if(this.options.pedantic?(v=2,g=k.trimStart()):z?v=i[1].length+1:(v=i[2].search(this.rules.other.nonSpaceChar),v=v>4?1:v,g=k.slice(v),v+=i[1].length),z&&this.rules.other.blankLine.test(p)&&(C+=p+`
34
- `,l=l.substring(p.length+1),r=!0),!r){let F=this.rules.other.nextBulletRegex(v),q=this.rules.other.hrRegex(v),_=this.rules.other.fencesBeginRegex(v),N=this.rules.other.headingBeginRegex(v),M=this.rules.other.htmlBeginRegex(v);for(;l;){let H=l.split(`
35
- `,1)[0],u;if(p=H,this.options.pedantic?(p=p.replace(this.rules.other.listReplaceNesting," "),u=p):u=p.replace(this.rules.other.tabCharGlobal," "),_.test(p)||N.test(p)||M.test(p)||F.test(p)||q.test(p))break;if(u.search(this.rules.other.nonSpaceChar)>=v||!p.trim())g+=`
36
- `+u.slice(v);else{if(z||k.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||_.test(k)||N.test(k)||q.test(k))break;g+=`
33
+ `,1)[0],z=!n.trim(),a=0;if(this.options.pedantic?(a=2,g=n.trimStart()):z?a=i[1].length+1:(a=i[2].search(this.rules.other.nonSpaceChar),a=a>4?1:a,g=n.slice(a),a+=i[1].length),z&&this.rules.other.blankLine.test(p)&&(C+=p+`
34
+ `,l=l.substring(p.length+1),r=!0),!r){let F=this.rules.other.nextBulletRegex(a),q=this.rules.other.hrRegex(a),_=this.rules.other.fencesBeginRegex(a),N=this.rules.other.headingBeginRegex(a),M=this.rules.other.htmlBeginRegex(a);for(;l;){let H=l.split(`
35
+ `,1)[0],u;if(p=H,this.options.pedantic?(p=p.replace(this.rules.other.listReplaceNesting," "),u=p):u=p.replace(this.rules.other.tabCharGlobal," "),_.test(p)||N.test(p)||M.test(p)||F.test(p)||q.test(p))break;if(u.search(this.rules.other.nonSpaceChar)>=a||!p.trim())g+=`
36
+ `+u.slice(a);else{if(z||n.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||_.test(n)||N.test(n)||q.test(n))break;g+=`
37
37
  `+p}!z&&!p.trim()&&(z=!0),C+=H+`
38
- `,l=l.substring(H.length+1),k=u.slice(v)}}h.loose||(o?h.loose=!0:this.rules.other.doubleBlankLine.test(C)&&(o=!0));let V=null,P;this.options.gfm&&(V=this.rules.other.listIsTask.exec(g),V&&(P=V[0]!=="[ ] ",g=g.replace(this.rules.other.listReplaceTask,""))),h.items.push({type:"list_item",raw:C,task:!!V,checked:P,loose:!1,text:g,tokens:[]}),h.raw+=C}let c=h.items.at(-1);if(c)c.raw=c.raw.trimEnd(),c.text=c.text.trimEnd();else return;h.raw=h.raw.trimEnd();for(let r=0;r<h.items.length;r++)if(this.lexer.state.top=!1,h.items[r].tokens=this.lexer.blockTokens(h.items[r].text,[]),!h.loose){let C=h.items[r].tokens.filter((k)=>k.type==="space"),g=C.length>0&&C.some((k)=>this.rules.other.anyLine.test(k.raw));h.loose=g}if(h.loose)for(let r=0;r<h.items.length;r++)h.items[r].loose=!0;return h}}html(l){let i=this.rules.block.html.exec(l);if(i)return{type:"html",block:!0,raw:i[0],pre:i[1]==="pre"||i[1]==="script"||i[1]==="style",text:i[0]}}def(l){let i=this.rules.block.def.exec(l);if(i){let y=i[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),s=i[2]?i[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",h=i[3]?i[3].substring(1,i[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):i[3];return{type:"def",tag:y,raw:i[0],href:s,title:h}}}table(l){let i=this.rules.block.table.exec(l);if(!i||!this.rules.other.tableDelimiter.test(i[2]))return;let y=kl(i[1]),s=i[2].replace(this.rules.other.tableAlignChars,"").split("|"),h=i[3]?.trim()?i[3].replace(this.rules.other.tableRowBlankLine,"").split(`
39
- `):[],x={type:"table",raw:i[0],header:[],align:[],rows:[]};if(y.length===s.length){for(let o of s)this.rules.other.tableAlignRight.test(o)?x.align.push("right"):this.rules.other.tableAlignCenter.test(o)?x.align.push("center"):this.rules.other.tableAlignLeft.test(o)?x.align.push("left"):x.align.push(null);for(let o=0;o<y.length;o++)x.header.push({text:y[o],tokens:this.lexer.inline(y[o]),header:!0,align:x.align[o]});for(let o of h)x.rows.push(kl(o,x.header.length).map((c,r)=>({text:c,tokens:this.lexer.inline(c),header:!1,align:x.align[r]})));return x}}lheading(l){let i=this.rules.block.lheading.exec(l);if(i)return{type:"heading",raw:i[0],depth:i[2].charAt(0)==="="?1:2,text:i[1],tokens:this.lexer.inline(i[1])}}paragraph(l){let i=this.rules.block.paragraph.exec(l);if(i){let y=i[1].charAt(i[1].length-1)===`
40
- `?i[1].slice(0,-1):i[1];return{type:"paragraph",raw:i[0],text:y,tokens:this.lexer.inline(y)}}}text(l){let i=this.rules.block.text.exec(l);if(i)return{type:"text",raw:i[0],text:i[0],tokens:this.lexer.inline(i[0])}}escape(l){let i=this.rules.inline.escape.exec(l);if(i)return{type:"escape",raw:i[0],text:i[1]}}tag(l){let i=this.rules.inline.tag.exec(l);if(i)return!this.lexer.state.inLink&&this.rules.other.startATag.test(i[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(i[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(i[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(i[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:i[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:i[0]}}link(l){let i=this.rules.inline.link.exec(l);if(i){let y=i[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(y)){if(!this.rules.other.endAngleBracket.test(y))return;let x=Z2(y.slice(0,-1),"\\");if((y.length-x.length)%2===0)return}else{let x=h8(i[2],"()");if(x===-2)return;if(x>-1){let o=(i[0].indexOf("!")===0?5:4)+i[1].length+x;i[2]=i[2].substring(0,x),i[0]=i[0].substring(0,o).trim(),i[3]=""}}let s=i[2],h="";if(this.options.pedantic){let x=this.rules.other.pedanticHrefTitle.exec(s);x&&(s=x[1],h=x[3])}else h=i[3]?i[3].slice(1,-1):"";return s=s.trim(),this.rules.other.startAngleBracket.test(s)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(y)?s=s.slice(1):s=s.slice(1,-1)),dl(i,{href:s&&s.replace(this.rules.inline.anyPunctuation,"$1"),title:h&&h.replace(this.rules.inline.anyPunctuation,"$1")},i[0],this.lexer,this.rules)}}reflink(l,i){let y;if((y=this.rules.inline.reflink.exec(l))||(y=this.rules.inline.nolink.exec(l))){let s=(y[2]||y[1]).replace(this.rules.other.multipleSpaceGlobal," "),h=i[s.toLowerCase()];if(!h){let x=y[0].charAt(0);return{type:"text",raw:x,text:x}}return dl(y,h,y[0],this.lexer,this.rules)}}emStrong(l,i,y=""){let s=this.rules.inline.emStrongLDelim.exec(l);if(!s||s[3]&&y.match(this.rules.other.unicodeAlphaNumeric))return;if(!(s[1]||s[2])||!y||this.rules.inline.punctuation.exec(y)){let h=[...s[0]].length-1,x,o,c=h,r=0,C=s[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(C.lastIndex=0,i=i.slice(-1*l.length+h);(s=C.exec(i))!=null;){if(x=s[1]||s[2]||s[3]||s[4]||s[5]||s[6],!x)continue;if(o=[...x].length,s[3]||s[4]){c+=o;continue}else if((s[5]||s[6])&&h%3&&!((h+o)%3)){r+=o;continue}if(c-=o,c>0)continue;o=Math.min(o,o+c+r);let g=[...s[0]][0].length,k=l.slice(0,h+s.index+g+o);if(Math.min(h,o)%2){let z=k.slice(1,-1);return{type:"em",raw:k,text:z,tokens:this.lexer.inlineTokens(z)}}let p=k.slice(2,-2);return{type:"strong",raw:k,text:p,tokens:this.lexer.inlineTokens(p)}}}}codespan(l){let i=this.rules.inline.code.exec(l);if(i){let y=i[2].replace(this.rules.other.newLineCharGlobal," "),s=this.rules.other.nonSpaceChar.test(y),h=this.rules.other.startingSpaceChar.test(y)&&this.rules.other.endingSpaceChar.test(y);return s&&h&&(y=y.substring(1,y.length-1)),{type:"codespan",raw:i[0],text:y}}}br(l){let i=this.rules.inline.br.exec(l);if(i)return{type:"br",raw:i[0]}}del(l){let i=this.rules.inline.del.exec(l);if(i)return{type:"del",raw:i[0],text:i[2],tokens:this.lexer.inlineTokens(i[2])}}autolink(l){let i=this.rules.inline.autolink.exec(l);if(i){let y,s;return i[2]==="@"?(y=i[1],s="mailto:"+y):(y=i[1],s=y),{type:"link",raw:i[0],text:y,href:s,tokens:[{type:"text",raw:y,text:y}]}}}url(l){let i;if(i=this.rules.inline.url.exec(l)){let y,s;if(i[2]==="@")y=i[0],s="mailto:"+y;else{let h;do h=i[0],i[0]=this.rules.inline._backpedal.exec(i[0])?.[0]??"";while(h!==i[0]);y=i[0],i[1]==="www."?s="http://"+i[0]:s=i[0]}return{type:"link",raw:i[0],text:y,href:s,tokens:[{type:"text",raw:y,text:y}]}}}inlineText(l){let i=this.rules.inline.text.exec(l);if(i){let y=this.lexer.state.inRawBlock;return{type:"text",raw:i[0],text:i[0],escaped:y}}}},o1=class l{tokens;options;state;tokenizer;inlineQueue;constructor(i){this.tokens=[],this.tokens.links=Object.create(null),this.options=i||m1,this.options.tokenizer=this.options.tokenizer||new F0,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 y={other:e,block:_0.normal,inline:R2.normal};this.options.pedantic?(y.block=_0.pedantic,y.inline=R2.pedantic):this.options.gfm&&(y.block=_0.gfm,this.options.breaks?y.inline=R2.breaks:y.inline=R2.gfm),this.tokenizer.rules=y}static get rules(){return{block:_0,inline:R2}}static lex(i,y){return new l(y).lex(i)}static lexInline(i,y){return new l(y).inlineTokens(i)}lex(i){i=i.replace(e.carriageReturn,`
41
- `),this.blockTokens(i,this.tokens);for(let y=0;y<this.inlineQueue.length;y++){let s=this.inlineQueue[y];this.inlineTokens(s.src,s.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(i,y=[],s=!1){for(this.options.pedantic&&(i=i.replace(e.tabCharGlobal," ").replace(e.spaceLine,""));i;){let h;if(this.options.extensions?.block?.some((o)=>(h=o.call({lexer:this},i,y))?(i=i.substring(h.raw.length),y.push(h),!0):!1))continue;if(h=this.tokenizer.space(i)){i=i.substring(h.raw.length);let o=y.at(-1);h.raw.length===1&&o!==void 0?o.raw+=`
38
+ `,l=l.substring(H.length+1),n=u.slice(a)}}h.loose||(o?h.loose=!0:this.rules.other.doubleBlankLine.test(C)&&(o=!0));let A=null,P;this.options.gfm&&(A=this.rules.other.listIsTask.exec(g),A&&(P=A[0]!=="[ ] ",g=g.replace(this.rules.other.listReplaceTask,""))),h.items.push({type:"list_item",raw:C,task:!!A,checked:P,loose:!1,text:g,tokens:[]}),h.raw+=C}let c=h.items.at(-1);if(c)c.raw=c.raw.trimEnd(),c.text=c.text.trimEnd();else return;h.raw=h.raw.trimEnd();for(let r=0;r<h.items.length;r++)if(this.lexer.state.top=!1,h.items[r].tokens=this.lexer.blockTokens(h.items[r].text,[]),!h.loose){let C=h.items[r].tokens.filter((n)=>n.type==="space"),g=C.length>0&&C.some((n)=>this.rules.other.anyLine.test(n.raw));h.loose=g}if(h.loose)for(let r=0;r<h.items.length;r++)h.items[r].loose=!0;return h}}html(l){let i=this.rules.block.html.exec(l);if(i)return{type:"html",block:!0,raw:i[0],pre:i[1]==="pre"||i[1]==="script"||i[1]==="style",text:i[0]}}def(l){let i=this.rules.block.def.exec(l);if(i){let y=i[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),s=i[2]?i[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",h=i[3]?i[3].substring(1,i[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):i[3];return{type:"def",tag:y,raw:i[0],href:s,title:h}}}table(l){let i=this.rules.block.table.exec(l);if(!i||!this.rules.other.tableDelimiter.test(i[2]))return;let y=nl(i[1]),s=i[2].replace(this.rules.other.tableAlignChars,"").split("|"),h=i[3]?.trim()?i[3].replace(this.rules.other.tableRowBlankLine,"").split(`
39
+ `):[],x={type:"table",raw:i[0],header:[],align:[],rows:[]};if(y.length===s.length){for(let o of s)this.rules.other.tableAlignRight.test(o)?x.align.push("right"):this.rules.other.tableAlignCenter.test(o)?x.align.push("center"):this.rules.other.tableAlignLeft.test(o)?x.align.push("left"):x.align.push(null);for(let o=0;o<y.length;o++)x.header.push({text:y[o],tokens:this.lexer.inline(y[o]),header:!0,align:x.align[o]});for(let o of h)x.rows.push(nl(o,x.header.length).map((c,r)=>({text:c,tokens:this.lexer.inline(c),header:!1,align:x.align[r]})));return x}}lheading(l){let i=this.rules.block.lheading.exec(l);if(i)return{type:"heading",raw:i[0],depth:i[2].charAt(0)==="="?1:2,text:i[1],tokens:this.lexer.inline(i[1])}}paragraph(l){let i=this.rules.block.paragraph.exec(l);if(i){let y=i[1].charAt(i[1].length-1)===`
40
+ `?i[1].slice(0,-1):i[1];return{type:"paragraph",raw:i[0],text:y,tokens:this.lexer.inline(y)}}}text(l){let i=this.rules.block.text.exec(l);if(i)return{type:"text",raw:i[0],text:i[0],tokens:this.lexer.inline(i[0])}}escape(l){let i=this.rules.inline.escape.exec(l);if(i)return{type:"escape",raw:i[0],text:i[1]}}tag(l){let i=this.rules.inline.tag.exec(l);if(i)return!this.lexer.state.inLink&&this.rules.other.startATag.test(i[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(i[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(i[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(i[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:i[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:i[0]}}link(l){let i=this.rules.inline.link.exec(l);if(i){let y=i[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(y)){if(!this.rules.other.endAngleBracket.test(y))return;let x=Z2(y.slice(0,-1),"\\");if((y.length-x.length)%2===0)return}else{let x=x8(i[2],"()");if(x===-2)return;if(x>-1){let o=(i[0].indexOf("!")===0?5:4)+i[1].length+x;i[2]=i[2].substring(0,x),i[0]=i[0].substring(0,o).trim(),i[3]=""}}let s=i[2],h="";if(this.options.pedantic){let x=this.rules.other.pedanticHrefTitle.exec(s);x&&(s=x[1],h=x[3])}else h=i[3]?i[3].slice(1,-1):"";return s=s.trim(),this.rules.other.startAngleBracket.test(s)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(y)?s=s.slice(1):s=s.slice(1,-1)),dl(i,{href:s&&s.replace(this.rules.inline.anyPunctuation,"$1"),title:h&&h.replace(this.rules.inline.anyPunctuation,"$1")},i[0],this.lexer,this.rules)}}reflink(l,i){let y;if((y=this.rules.inline.reflink.exec(l))||(y=this.rules.inline.nolink.exec(l))){let s=(y[2]||y[1]).replace(this.rules.other.multipleSpaceGlobal," "),h=i[s.toLowerCase()];if(!h){let x=y[0].charAt(0);return{type:"text",raw:x,text:x}}return dl(y,h,y[0],this.lexer,this.rules)}}emStrong(l,i,y=""){let s=this.rules.inline.emStrongLDelim.exec(l);if(!s||s[3]&&y.match(this.rules.other.unicodeAlphaNumeric))return;if(!(s[1]||s[2])||!y||this.rules.inline.punctuation.exec(y)){let h=[...s[0]].length-1,x,o,c=h,r=0,C=s[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(C.lastIndex=0,i=i.slice(-1*l.length+h);(s=C.exec(i))!=null;){if(x=s[1]||s[2]||s[3]||s[4]||s[5]||s[6],!x)continue;if(o=[...x].length,s[3]||s[4]){c+=o;continue}else if((s[5]||s[6])&&h%3&&!((h+o)%3)){r+=o;continue}if(c-=o,c>0)continue;o=Math.min(o,o+c+r);let g=[...s[0]][0].length,n=l.slice(0,h+s.index+g+o);if(Math.min(h,o)%2){let z=n.slice(1,-1);return{type:"em",raw:n,text:z,tokens:this.lexer.inlineTokens(z)}}let p=n.slice(2,-2);return{type:"strong",raw:n,text:p,tokens:this.lexer.inlineTokens(p)}}}}codespan(l){let i=this.rules.inline.code.exec(l);if(i){let y=i[2].replace(this.rules.other.newLineCharGlobal," "),s=this.rules.other.nonSpaceChar.test(y),h=this.rules.other.startingSpaceChar.test(y)&&this.rules.other.endingSpaceChar.test(y);return s&&h&&(y=y.substring(1,y.length-1)),{type:"codespan",raw:i[0],text:y}}}br(l){let i=this.rules.inline.br.exec(l);if(i)return{type:"br",raw:i[0]}}del(l){let i=this.rules.inline.del.exec(l);if(i)return{type:"del",raw:i[0],text:i[2],tokens:this.lexer.inlineTokens(i[2])}}autolink(l){let i=this.rules.inline.autolink.exec(l);if(i){let y,s;return i[2]==="@"?(y=i[1],s="mailto:"+y):(y=i[1],s=y),{type:"link",raw:i[0],text:y,href:s,tokens:[{type:"text",raw:y,text:y}]}}}url(l){let i;if(i=this.rules.inline.url.exec(l)){let y,s;if(i[2]==="@")y=i[0],s="mailto:"+y;else{let h;do h=i[0],i[0]=this.rules.inline._backpedal.exec(i[0])?.[0]??"";while(h!==i[0]);y=i[0],i[1]==="www."?s="http://"+i[0]:s=i[0]}return{type:"link",raw:i[0],text:y,href:s,tokens:[{type:"text",raw:y,text:y}]}}}inlineText(l){let i=this.rules.inline.text.exec(l);if(i){let y=this.lexer.state.inRawBlock;return{type:"text",raw:i[0],text:i[0],escaped:y}}}},o1=class l{tokens;options;state;tokenizer;inlineQueue;constructor(i){this.tokens=[],this.tokens.links=Object.create(null),this.options=i||m1,this.options.tokenizer=this.options.tokenizer||new F0,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 y={other:Y,block:_0.normal,inline:R2.normal};this.options.pedantic?(y.block=_0.pedantic,y.inline=R2.pedantic):this.options.gfm&&(y.block=_0.gfm,this.options.breaks?y.inline=R2.breaks:y.inline=R2.gfm),this.tokenizer.rules=y}static get rules(){return{block:_0,inline:R2}}static lex(i,y){return new l(y).lex(i)}static lexInline(i,y){return new l(y).inlineTokens(i)}lex(i){i=i.replace(Y.carriageReturn,`
41
+ `),this.blockTokens(i,this.tokens);for(let y=0;y<this.inlineQueue.length;y++){let s=this.inlineQueue[y];this.inlineTokens(s.src,s.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(i,y=[],s=!1){for(this.options.pedantic&&(i=i.replace(Y.tabCharGlobal," ").replace(Y.spaceLine,""));i;){let h;if(this.options.extensions?.block?.some((o)=>(h=o.call({lexer:this},i,y))?(i=i.substring(h.raw.length),y.push(h),!0):!1))continue;if(h=this.tokenizer.space(i)){i=i.substring(h.raw.length);let o=y.at(-1);h.raw.length===1&&o!==void 0?o.raw+=`
42
42
  `:y.push(h);continue}if(h=this.tokenizer.code(i)){i=i.substring(h.raw.length);let o=y.at(-1);o?.type==="paragraph"||o?.type==="text"?(o.raw+=(o.raw.endsWith(`
43
43
  `)?"":`
44
44
  `)+h.raw,o.text+=`
@@ -51,7 +51,7 @@ ${g}`:g;let k=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTo
51
51
  `+h.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=o.text):y.push(h),s=x.length!==i.length,i=i.substring(h.raw.length);continue}if(h=this.tokenizer.text(i)){i=i.substring(h.raw.length);let o=y.at(-1);o?.type==="text"?(o.raw+=(o.raw.endsWith(`
52
52
  `)?"":`
53
53
  `)+h.raw,o.text+=`
54
- `+h.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=o.text):y.push(h);continue}if(i){let o="Infinite loop on byte: "+i.charCodeAt(0);if(this.options.silent){console.error(o);break}else throw Error(o)}}return this.state.top=!0,y}inline(i,y=[]){return this.inlineQueue.push({src:i,tokens:y}),y}inlineTokens(i,y=[]){let s=i,h=null;if(this.tokens.links){let r=Object.keys(this.tokens.links);if(r.length>0)for(;(h=this.tokenizer.rules.inline.reflinkSearch.exec(s))!=null;)r.includes(h[0].slice(h[0].lastIndexOf("[")+1,-1))&&(s=s.slice(0,h.index)+"["+"a".repeat(h[0].length-2)+"]"+s.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(h=this.tokenizer.rules.inline.anyPunctuation.exec(s))!=null;)s=s.slice(0,h.index)+"++"+s.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);let x;for(;(h=this.tokenizer.rules.inline.blockSkip.exec(s))!=null;)x=h[2]?h[2].length:0,s=s.slice(0,h.index+x)+"["+"a".repeat(h[0].length-x-2)+"]"+s.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);s=this.options.hooks?.emStrongMask?.call({lexer:this},s)??s;let o=!1,c="";for(;i;){o||(c=""),o=!1;let r;if(this.options.extensions?.inline?.some((g)=>(r=g.call({lexer:this},i,y))?(i=i.substring(r.raw.length),y.push(r),!0):!1))continue;if(r=this.tokenizer.escape(i)){i=i.substring(r.raw.length),y.push(r);continue}if(r=this.tokenizer.tag(i)){i=i.substring(r.raw.length),y.push(r);continue}if(r=this.tokenizer.link(i)){i=i.substring(r.raw.length),y.push(r);continue}if(r=this.tokenizer.reflink(i,this.tokens.links)){i=i.substring(r.raw.length);let g=y.at(-1);r.type==="text"&&g?.type==="text"?(g.raw+=r.raw,g.text+=r.text):y.push(r);continue}if(r=this.tokenizer.emStrong(i,s,c)){i=i.substring(r.raw.length),y.push(r);continue}if(r=this.tokenizer.codespan(i)){i=i.substring(r.raw.length),y.push(r);continue}if(r=this.tokenizer.br(i)){i=i.substring(r.raw.length),y.push(r);continue}if(r=this.tokenizer.del(i)){i=i.substring(r.raw.length),y.push(r);continue}if(r=this.tokenizer.autolink(i)){i=i.substring(r.raw.length),y.push(r);continue}if(!this.state.inLink&&(r=this.tokenizer.url(i))){i=i.substring(r.raw.length),y.push(r);continue}let C=i;if(this.options.extensions?.startInline){let g=1/0,k=i.slice(1),p;this.options.extensions.startInline.forEach((z)=>{p=z.call({lexer:this},k),typeof p=="number"&&p>=0&&(g=Math.min(g,p))}),g<1/0&&g>=0&&(C=i.substring(0,g+1))}if(r=this.tokenizer.inlineText(C)){i=i.substring(r.raw.length),r.raw.slice(-1)!=="_"&&(c=r.raw.slice(-1)),o=!0;let g=y.at(-1);g?.type==="text"?(g.raw+=r.raw,g.text+=r.text):y.push(r);continue}if(i){let g="Infinite loop on byte: "+i.charCodeAt(0);if(this.options.silent){console.error(g);break}else throw Error(g)}}return y}},O0=class{options;parser;constructor(l){this.options=l||m1}space(l){return""}code({text:l,lang:i,escaped:y}){let s=(i||"").match(e.notSpaceStart)?.[0],h=l.replace(e.endingNewline,"")+`
54
+ `+h.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=o.text):y.push(h);continue}if(i){let o="Infinite loop on byte: "+i.charCodeAt(0);if(this.options.silent){console.error(o);break}else throw Error(o)}}return this.state.top=!0,y}inline(i,y=[]){return this.inlineQueue.push({src:i,tokens:y}),y}inlineTokens(i,y=[]){let s=i,h=null;if(this.tokens.links){let r=Object.keys(this.tokens.links);if(r.length>0)for(;(h=this.tokenizer.rules.inline.reflinkSearch.exec(s))!=null;)r.includes(h[0].slice(h[0].lastIndexOf("[")+1,-1))&&(s=s.slice(0,h.index)+"["+"a".repeat(h[0].length-2)+"]"+s.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(h=this.tokenizer.rules.inline.anyPunctuation.exec(s))!=null;)s=s.slice(0,h.index)+"++"+s.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);let x;for(;(h=this.tokenizer.rules.inline.blockSkip.exec(s))!=null;)x=h[2]?h[2].length:0,s=s.slice(0,h.index+x)+"["+"a".repeat(h[0].length-x-2)+"]"+s.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);s=this.options.hooks?.emStrongMask?.call({lexer:this},s)??s;let o=!1,c="";for(;i;){o||(c=""),o=!1;let r;if(this.options.extensions?.inline?.some((g)=>(r=g.call({lexer:this},i,y))?(i=i.substring(r.raw.length),y.push(r),!0):!1))continue;if(r=this.tokenizer.escape(i)){i=i.substring(r.raw.length),y.push(r);continue}if(r=this.tokenizer.tag(i)){i=i.substring(r.raw.length),y.push(r);continue}if(r=this.tokenizer.link(i)){i=i.substring(r.raw.length),y.push(r);continue}if(r=this.tokenizer.reflink(i,this.tokens.links)){i=i.substring(r.raw.length);let g=y.at(-1);r.type==="text"&&g?.type==="text"?(g.raw+=r.raw,g.text+=r.text):y.push(r);continue}if(r=this.tokenizer.emStrong(i,s,c)){i=i.substring(r.raw.length),y.push(r);continue}if(r=this.tokenizer.codespan(i)){i=i.substring(r.raw.length),y.push(r);continue}if(r=this.tokenizer.br(i)){i=i.substring(r.raw.length),y.push(r);continue}if(r=this.tokenizer.del(i)){i=i.substring(r.raw.length),y.push(r);continue}if(r=this.tokenizer.autolink(i)){i=i.substring(r.raw.length),y.push(r);continue}if(!this.state.inLink&&(r=this.tokenizer.url(i))){i=i.substring(r.raw.length),y.push(r);continue}let C=i;if(this.options.extensions?.startInline){let g=1/0,n=i.slice(1),p;this.options.extensions.startInline.forEach((z)=>{p=z.call({lexer:this},n),typeof p=="number"&&p>=0&&(g=Math.min(g,p))}),g<1/0&&g>=0&&(C=i.substring(0,g+1))}if(r=this.tokenizer.inlineText(C)){i=i.substring(r.raw.length),r.raw.slice(-1)!=="_"&&(c=r.raw.slice(-1)),o=!0;let g=y.at(-1);g?.type==="text"?(g.raw+=r.raw,g.text+=r.text):y.push(r);continue}if(i){let g="Infinite loop on byte: "+i.charCodeAt(0);if(this.options.silent){console.error(g);break}else throw Error(g)}}return y}},O0=class{options;parser;constructor(l){this.options=l||m1}space(l){return""}code({text:l,lang:i,escaped:y}){let s=(i||"").match(Y.notSpaceStart)?.[0],h=l.replace(Y.endingNewline,"")+`
55
55
  `;return s?'<pre><code class="language-'+j1(s)+'">'+(y?h:j1(h,!0))+`</code></pre>
56
56
  `:"<pre><code>"+(y?h:j1(h,!0))+`</code></pre>
57
57
  `}blockquote({tokens:l}){return`<blockquote>
@@ -69,11 +69,11 @@ ${this.parser.parse(l)}</blockquote>
69
69
  `}tablerow({text:l}){return`<tr>
70
70
  ${l}</tr>
71
71
  `}tablecell(l){let i=this.parser.parseInline(l.tokens),y=l.header?"th":"td";return(l.align?`<${y} align="${l.align}">`:`<${y}>`)+i+`</${y}>
72
- `}strong({tokens:l}){return`<strong>${this.parser.parseInline(l)}</strong>`}em({tokens:l}){return`<em>${this.parser.parseInline(l)}</em>`}codespan({text:l}){return`<code>${j1(l,!0)}</code>`}br(l){return"<br>"}del({tokens:l}){return`<del>${this.parser.parseInline(l)}</del>`}link({href:l,title:i,tokens:y}){let s=this.parser.parseInline(y),h=nl(l);if(h===null)return s;l=h;let x='<a href="'+l+'"';return i&&(x+=' title="'+j1(i)+'"'),x+=">"+s+"</a>",x}image({href:l,title:i,text:y,tokens:s}){s&&(y=this.parser.parseInline(s,this.parser.textRenderer));let h=nl(l);if(h===null)return j1(y);l=h;let x=`<img src="${l}" alt="${y}"`;return i&&(x+=` title="${j1(i)}"`),x+=">",x}text(l){return"tokens"in l&&l.tokens?this.parser.parseInline(l.tokens):("escaped"in l)&&l.escaped?l.text:j1(l.text)}},g5=class{strong({text:l}){return l}em({text:l}){return l}codespan({text:l}){return l}del({text:l}){return l}html({text:l}){return l}text({text:l}){return l}link({text:l}){return""+l}image({text:l}){return""+l}br(){return""}},c1=class l{options;renderer;textRenderer;constructor(i){this.options=i||m1,this.options.renderer=this.options.renderer||new O0,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new g5}static parse(i,y){return new l(y).parse(i)}static parseInline(i,y){return new l(y).parseInline(i)}parse(i,y=!0){let s="";for(let h=0;h<i.length;h++){let x=i[h];if(this.options.extensions?.renderers?.[x.type]){let c=x,r=this.options.extensions.renderers[c.type].call({parser:this},c);if(r!==!1||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(c.type)){s+=r||"";continue}}let o=x;switch(o.type){case"space":{s+=this.renderer.space(o);continue}case"hr":{s+=this.renderer.hr(o);continue}case"heading":{s+=this.renderer.heading(o);continue}case"code":{s+=this.renderer.code(o);continue}case"table":{s+=this.renderer.table(o);continue}case"blockquote":{s+=this.renderer.blockquote(o);continue}case"list":{s+=this.renderer.list(o);continue}case"html":{s+=this.renderer.html(o);continue}case"def":{s+=this.renderer.def(o);continue}case"paragraph":{s+=this.renderer.paragraph(o);continue}case"text":{let c=o,r=this.renderer.text(c);for(;h+1<i.length&&i[h+1].type==="text";)c=i[++h],r+=`
73
- `+this.renderer.text(c);y?s+=this.renderer.paragraph({type:"paragraph",raw:r,text:r,tokens:[{type:"text",raw:r,text:r,escaped:!0}]}):s+=r;continue}default:{let c='Token with "'+o.type+'" type was not found.';if(this.options.silent)return console.error(c),"";throw Error(c)}}}return s}parseInline(i,y=this.renderer){let s="";for(let h=0;h<i.length;h++){let x=i[h];if(this.options.extensions?.renderers?.[x.type]){let c=this.options.extensions.renderers[x.type].call({parser:this},x);if(c!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(x.type)){s+=c||"";continue}}let o=x;switch(o.type){case"escape":{s+=y.text(o);break}case"html":{s+=y.html(o);break}case"link":{s+=y.link(o);break}case"image":{s+=y.image(o);break}case"strong":{s+=y.strong(o);break}case"em":{s+=y.em(o);break}case"codespan":{s+=y.codespan(o);break}case"br":{s+=y.br(o);break}case"del":{s+=y.del(o);break}case"text":{s+=y.text(o);break}default:{let c='Token with "'+o.type+'" type was not found.';if(this.options.silent)return console.error(c),"";throw Error(c)}}}return s}},H2=class{options;block;constructor(l){this.options=l||m1}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens","emStrongMask"]);static passThroughHooksRespectAsync=new Set(["preprocess","postprocess","processAllTokens"]);preprocess(l){return l}postprocess(l){return l}processAllTokens(l){return l}emStrongMask(l){return l}provideLexer(){return this.block?o1.lex:o1.lexInline}provideParser(){return this.block?c1.parse:c1.parseInline}},o8=class{defaults=y5();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=c1;Renderer=O0;TextRenderer=g5;Lexer=o1;Tokenizer=F0;Hooks=H2;constructor(...l){this.use(...l)}walkTokens(l,i){let y=[];for(let s of l)switch(y=y.concat(i.call(this,s)),s.type){case"table":{let h=s;for(let x of h.header)y=y.concat(this.walkTokens(x.tokens,i));for(let x of h.rows)for(let o of x)y=y.concat(this.walkTokens(o.tokens,i));break}case"list":{let h=s;y=y.concat(this.walkTokens(h.items,i));break}default:{let h=s;this.defaults.extensions?.childTokens?.[h.type]?this.defaults.extensions.childTokens[h.type].forEach((x)=>{let o=h[x].flat(1/0);y=y.concat(this.walkTokens(o,i))}):h.tokens&&(y=y.concat(this.walkTokens(h.tokens,i)))}}return y}use(...l){let i=this.defaults.extensions||{renderers:{},childTokens:{}};return l.forEach((y)=>{let s={...y};if(s.async=this.defaults.async||s.async||!1,y.extensions&&(y.extensions.forEach((h)=>{if(!h.name)throw Error("extension name required");if("renderer"in h){let x=i.renderers[h.name];x?i.renderers[h.name]=function(...o){let c=h.renderer.apply(this,o);return c===!1&&(c=x.apply(this,o)),c}:i.renderers[h.name]=h.renderer}if("tokenizer"in h){if(!h.level||h.level!=="block"&&h.level!=="inline")throw Error("extension level must be 'block' or 'inline'");let x=i[h.level];x?x.unshift(h.tokenizer):i[h.level]=[h.tokenizer],h.start&&(h.level==="block"?i.startBlock?i.startBlock.push(h.start):i.startBlock=[h.start]:h.level==="inline"&&(i.startInline?i.startInline.push(h.start):i.startInline=[h.start]))}"childTokens"in h&&h.childTokens&&(i.childTokens[h.name]=h.childTokens)}),s.extensions=i),y.renderer){let h=this.defaults.renderer||new O0(this.defaults);for(let x in y.renderer){if(!(x in h))throw Error(`renderer '${x}' does not exist`);if(["options","parser"].includes(x))continue;let o=x,c=y.renderer[o],r=h[o];h[o]=(...C)=>{let g=c.apply(h,C);return g===!1&&(g=r.apply(h,C)),g||""}}s.renderer=h}if(y.tokenizer){let h=this.defaults.tokenizer||new F0(this.defaults);for(let x in y.tokenizer){if(!(x in h))throw Error(`tokenizer '${x}' does not exist`);if(["options","rules","lexer"].includes(x))continue;let o=x,c=y.tokenizer[o],r=h[o];h[o]=(...C)=>{let g=c.apply(h,C);return g===!1&&(g=r.apply(h,C)),g}}s.tokenizer=h}if(y.hooks){let h=this.defaults.hooks||new H2;for(let x in y.hooks){if(!(x in h))throw Error(`hook '${x}' does not exist`);if(["options","block"].includes(x))continue;let o=x,c=y.hooks[o],r=h[o];H2.passThroughHooks.has(x)?h[o]=(C)=>{if(this.defaults.async&&H2.passThroughHooksRespectAsync.has(x))return(async()=>{let k=await c.call(h,C);return r.call(h,k)})();let g=c.call(h,C);return r.call(h,g)}:h[o]=(...C)=>{if(this.defaults.async)return(async()=>{let k=await c.apply(h,C);return k===!1&&(k=await r.apply(h,C)),k})();let g=c.apply(h,C);return g===!1&&(g=r.apply(h,C)),g}}s.hooks=h}if(y.walkTokens){let h=this.defaults.walkTokens,x=y.walkTokens;s.walkTokens=function(o){let c=[];return c.push(x.call(this,o)),h&&(c=c.concat(h.call(this,o))),c}}this.defaults={...this.defaults,...s}}),this}setOptions(l){return this.defaults={...this.defaults,...l},this}lexer(l,i){return o1.lex(l,i??this.defaults)}parser(l,i){return c1.parse(l,i??this.defaults)}parseMarkdown(l){return(i,y)=>{let s={...y},h={...this.defaults,...s},x=this.onError(!!h.silent,!!h.async);if(this.defaults.async===!0&&s.async===!1)return x(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 i>"u"||i===null)return x(Error("marked(): input parameter is undefined or null"));if(typeof i!="string")return x(Error("marked(): input parameter is of type "+Object.prototype.toString.call(i)+", string expected"));if(h.hooks&&(h.hooks.options=h,h.hooks.block=l),h.async)return(async()=>{let o=h.hooks?await h.hooks.preprocess(i):i,c=await(h.hooks?await h.hooks.provideLexer():l?o1.lex:o1.lexInline)(o,h),r=h.hooks?await h.hooks.processAllTokens(c):c;h.walkTokens&&await Promise.all(this.walkTokens(r,h.walkTokens));let C=await(h.hooks?await h.hooks.provideParser():l?c1.parse:c1.parseInline)(r,h);return h.hooks?await h.hooks.postprocess(C):C})().catch(x);try{h.hooks&&(i=h.hooks.preprocess(i));let o=(h.hooks?h.hooks.provideLexer():l?o1.lex:o1.lexInline)(i,h);h.hooks&&(o=h.hooks.processAllTokens(o)),h.walkTokens&&this.walkTokens(o,h.walkTokens);let c=(h.hooks?h.hooks.provideParser():l?c1.parse:c1.parseInline)(o,h);return h.hooks&&(c=h.hooks.postprocess(c)),c}catch(o){return x(o)}}}onError(l,i){return(y)=>{if(y.message+=`
74
- Please report this to https://github.com/markedjs/marked.`,l){let s="<p>An error occurred:</p><pre>"+j1(y.message+"",!0)+"</pre>";return i?Promise.resolve(s):s}if(i)return Promise.reject(y);throw y}}},u1=new o8;function X(l,i){return u1.parse(l,i)}X.options=X.setOptions=function(l){return u1.setOptions(l),X.defaults=u1.defaults,pl(X.defaults),X};X.getDefaults=y5;X.defaults=m1;X.use=function(...l){return u1.use(...l),X.defaults=u1.defaults,pl(X.defaults),X};X.walkTokens=function(l,i){return u1.walkTokens(l,i)};X.parseInline=u1.parseInline;X.Parser=c1;X.parser=c1.parse;X.Renderer=O0;X.TextRenderer=g5;X.Lexer=o1;X.lexer=o1.lex;X.Tokenizer=F0;X.Hooks=H2;X.parse=X;var{options:Vs,setOptions:qs,use:_s,walkTokens:Ps,parseInline:Fs}=X;var Os=c1.parse,Us=o1.lex;function _l(l,i){if(i==null)i="";else if(typeof i!=="string")i=String(i);return i.replace(/\{\{([^}]+)\}\}/g,(y,s)=>{let h=I[`${l}${s.startsWith("[")?s:"."+s}`];return h===void 0?y:_l(l,String(h))})}class N0 extends t{static preferredTagName="tosi-md";static initAttributes={src:"",elements:!1};context={};value="";content=null;options={};connectedCallback(){if(super.connectedCallback(),this.src!=="")(async()=>{let l=await fetch(this.src);this.value=await l.text()})();else if(this.value==="")if(this.elements)this.value=this.innerHTML;else this.value=this.textContent!=null?this.textContent:""}didRender=()=>{};render(){super.render(),I[this.instanceId]=typeof this.context==="string"?JSON.parse(this.context):this.context;let l=_l(this.instanceId,this.value);if(this.elements){let i=l.split(`
72
+ `}strong({tokens:l}){return`<strong>${this.parser.parseInline(l)}</strong>`}em({tokens:l}){return`<em>${this.parser.parseInline(l)}</em>`}codespan({text:l}){return`<code>${j1(l,!0)}</code>`}br(l){return"<br>"}del({tokens:l}){return`<del>${this.parser.parseInline(l)}</del>`}link({href:l,title:i,tokens:y}){let s=this.parser.parseInline(y),h=kl(l);if(h===null)return s;l=h;let x='<a href="'+l+'"';return i&&(x+=' title="'+j1(i)+'"'),x+=">"+s+"</a>",x}image({href:l,title:i,text:y,tokens:s}){s&&(y=this.parser.parseInline(s,this.parser.textRenderer));let h=kl(l);if(h===null)return j1(y);l=h;let x=`<img src="${l}" alt="${y}"`;return i&&(x+=` title="${j1(i)}"`),x+=">",x}text(l){return"tokens"in l&&l.tokens?this.parser.parseInline(l.tokens):("escaped"in l)&&l.escaped?l.text:j1(l.text)}},g5=class{strong({text:l}){return l}em({text:l}){return l}codespan({text:l}){return l}del({text:l}){return l}html({text:l}){return l}text({text:l}){return l}link({text:l}){return""+l}image({text:l}){return""+l}br(){return""}},c1=class l{options;renderer;textRenderer;constructor(i){this.options=i||m1,this.options.renderer=this.options.renderer||new O0,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new g5}static parse(i,y){return new l(y).parse(i)}static parseInline(i,y){return new l(y).parseInline(i)}parse(i,y=!0){let s="";for(let h=0;h<i.length;h++){let x=i[h];if(this.options.extensions?.renderers?.[x.type]){let c=x,r=this.options.extensions.renderers[c.type].call({parser:this},c);if(r!==!1||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(c.type)){s+=r||"";continue}}let o=x;switch(o.type){case"space":{s+=this.renderer.space(o);continue}case"hr":{s+=this.renderer.hr(o);continue}case"heading":{s+=this.renderer.heading(o);continue}case"code":{s+=this.renderer.code(o);continue}case"table":{s+=this.renderer.table(o);continue}case"blockquote":{s+=this.renderer.blockquote(o);continue}case"list":{s+=this.renderer.list(o);continue}case"html":{s+=this.renderer.html(o);continue}case"def":{s+=this.renderer.def(o);continue}case"paragraph":{s+=this.renderer.paragraph(o);continue}case"text":{let c=o,r=this.renderer.text(c);for(;h+1<i.length&&i[h+1].type==="text";)c=i[++h],r+=`
73
+ `+this.renderer.text(c);y?s+=this.renderer.paragraph({type:"paragraph",raw:r,text:r,tokens:[{type:"text",raw:r,text:r,escaped:!0}]}):s+=r;continue}default:{let c='Token with "'+o.type+'" type was not found.';if(this.options.silent)return console.error(c),"";throw Error(c)}}}return s}parseInline(i,y=this.renderer){let s="";for(let h=0;h<i.length;h++){let x=i[h];if(this.options.extensions?.renderers?.[x.type]){let c=this.options.extensions.renderers[x.type].call({parser:this},x);if(c!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(x.type)){s+=c||"";continue}}let o=x;switch(o.type){case"escape":{s+=y.text(o);break}case"html":{s+=y.html(o);break}case"link":{s+=y.link(o);break}case"image":{s+=y.image(o);break}case"strong":{s+=y.strong(o);break}case"em":{s+=y.em(o);break}case"codespan":{s+=y.codespan(o);break}case"br":{s+=y.br(o);break}case"del":{s+=y.del(o);break}case"text":{s+=y.text(o);break}default:{let c='Token with "'+o.type+'" type was not found.';if(this.options.silent)return console.error(c),"";throw Error(c)}}}return s}},H2=class{options;block;constructor(l){this.options=l||m1}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens","emStrongMask"]);static passThroughHooksRespectAsync=new Set(["preprocess","postprocess","processAllTokens"]);preprocess(l){return l}postprocess(l){return l}processAllTokens(l){return l}emStrongMask(l){return l}provideLexer(){return this.block?o1.lex:o1.lexInline}provideParser(){return this.block?c1.parse:c1.parseInline}},c8=class{defaults=y5();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=c1;Renderer=O0;TextRenderer=g5;Lexer=o1;Tokenizer=F0;Hooks=H2;constructor(...l){this.use(...l)}walkTokens(l,i){let y=[];for(let s of l)switch(y=y.concat(i.call(this,s)),s.type){case"table":{let h=s;for(let x of h.header)y=y.concat(this.walkTokens(x.tokens,i));for(let x of h.rows)for(let o of x)y=y.concat(this.walkTokens(o.tokens,i));break}case"list":{let h=s;y=y.concat(this.walkTokens(h.items,i));break}default:{let h=s;this.defaults.extensions?.childTokens?.[h.type]?this.defaults.extensions.childTokens[h.type].forEach((x)=>{let o=h[x].flat(1/0);y=y.concat(this.walkTokens(o,i))}):h.tokens&&(y=y.concat(this.walkTokens(h.tokens,i)))}}return y}use(...l){let i=this.defaults.extensions||{renderers:{},childTokens:{}};return l.forEach((y)=>{let s={...y};if(s.async=this.defaults.async||s.async||!1,y.extensions&&(y.extensions.forEach((h)=>{if(!h.name)throw Error("extension name required");if("renderer"in h){let x=i.renderers[h.name];x?i.renderers[h.name]=function(...o){let c=h.renderer.apply(this,o);return c===!1&&(c=x.apply(this,o)),c}:i.renderers[h.name]=h.renderer}if("tokenizer"in h){if(!h.level||h.level!=="block"&&h.level!=="inline")throw Error("extension level must be 'block' or 'inline'");let x=i[h.level];x?x.unshift(h.tokenizer):i[h.level]=[h.tokenizer],h.start&&(h.level==="block"?i.startBlock?i.startBlock.push(h.start):i.startBlock=[h.start]:h.level==="inline"&&(i.startInline?i.startInline.push(h.start):i.startInline=[h.start]))}"childTokens"in h&&h.childTokens&&(i.childTokens[h.name]=h.childTokens)}),s.extensions=i),y.renderer){let h=this.defaults.renderer||new O0(this.defaults);for(let x in y.renderer){if(!(x in h))throw Error(`renderer '${x}' does not exist`);if(["options","parser"].includes(x))continue;let o=x,c=y.renderer[o],r=h[o];h[o]=(...C)=>{let g=c.apply(h,C);return g===!1&&(g=r.apply(h,C)),g||""}}s.renderer=h}if(y.tokenizer){let h=this.defaults.tokenizer||new F0(this.defaults);for(let x in y.tokenizer){if(!(x in h))throw Error(`tokenizer '${x}' does not exist`);if(["options","rules","lexer"].includes(x))continue;let o=x,c=y.tokenizer[o],r=h[o];h[o]=(...C)=>{let g=c.apply(h,C);return g===!1&&(g=r.apply(h,C)),g}}s.tokenizer=h}if(y.hooks){let h=this.defaults.hooks||new H2;for(let x in y.hooks){if(!(x in h))throw Error(`hook '${x}' does not exist`);if(["options","block"].includes(x))continue;let o=x,c=y.hooks[o],r=h[o];H2.passThroughHooks.has(x)?h[o]=(C)=>{if(this.defaults.async&&H2.passThroughHooksRespectAsync.has(x))return(async()=>{let n=await c.call(h,C);return r.call(h,n)})();let g=c.call(h,C);return r.call(h,g)}:h[o]=(...C)=>{if(this.defaults.async)return(async()=>{let n=await c.apply(h,C);return n===!1&&(n=await r.apply(h,C)),n})();let g=c.apply(h,C);return g===!1&&(g=r.apply(h,C)),g}}s.hooks=h}if(y.walkTokens){let h=this.defaults.walkTokens,x=y.walkTokens;s.walkTokens=function(o){let c=[];return c.push(x.call(this,o)),h&&(c=c.concat(h.call(this,o))),c}}this.defaults={...this.defaults,...s}}),this}setOptions(l){return this.defaults={...this.defaults,...l},this}lexer(l,i){return o1.lex(l,i??this.defaults)}parser(l,i){return c1.parse(l,i??this.defaults)}parseMarkdown(l){return(i,y)=>{let s={...y},h={...this.defaults,...s},x=this.onError(!!h.silent,!!h.async);if(this.defaults.async===!0&&s.async===!1)return x(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 i>"u"||i===null)return x(Error("marked(): input parameter is undefined or null"));if(typeof i!="string")return x(Error("marked(): input parameter is of type "+Object.prototype.toString.call(i)+", string expected"));if(h.hooks&&(h.hooks.options=h,h.hooks.block=l),h.async)return(async()=>{let o=h.hooks?await h.hooks.preprocess(i):i,c=await(h.hooks?await h.hooks.provideLexer():l?o1.lex:o1.lexInline)(o,h),r=h.hooks?await h.hooks.processAllTokens(c):c;h.walkTokens&&await Promise.all(this.walkTokens(r,h.walkTokens));let C=await(h.hooks?await h.hooks.provideParser():l?c1.parse:c1.parseInline)(r,h);return h.hooks?await h.hooks.postprocess(C):C})().catch(x);try{h.hooks&&(i=h.hooks.preprocess(i));let o=(h.hooks?h.hooks.provideLexer():l?o1.lex:o1.lexInline)(i,h);h.hooks&&(o=h.hooks.processAllTokens(o)),h.walkTokens&&this.walkTokens(o,h.walkTokens);let c=(h.hooks?h.hooks.provideParser():l?c1.parse:c1.parseInline)(o,h);return h.hooks&&(c=h.hooks.postprocess(c)),c}catch(o){return x(o)}}}onError(l,i){return(y)=>{if(y.message+=`
74
+ Please report this to https://github.com/markedjs/marked.`,l){let s="<p>An error occurred:</p><pre>"+j1(y.message+"",!0)+"</pre>";return i?Promise.resolve(s):s}if(i)return Promise.reject(y);throw y}}},u1=new c8;function X(l,i){return u1.parse(l,i)}X.options=X.setOptions=function(l){return u1.setOptions(l),X.defaults=u1.defaults,pl(X.defaults),X};X.getDefaults=y5;X.defaults=m1;X.use=function(...l){return u1.use(...l),X.defaults=u1.defaults,pl(X.defaults),X};X.walkTokens=function(l,i){return u1.walkTokens(l,i)};X.parseInline=u1.parseInline;X.Parser=c1;X.parser=c1.parse;X.Renderer=O0;X.TextRenderer=g5;X.Lexer=o1;X.lexer=o1.lex;X.Tokenizer=F0;X.Hooks=H2;X.parse=X;var{options:qs,setOptions:_s,use:Ps,walkTokens:Fs,parseInline:Os}=X;var Us=c1.parse,Xs=o1.lex;function _l(l,i){if(i==null)i="";else if(typeof i!=="string")i=String(i);return i.replace(/\{\{([^}]+)\}\}/g,(y,s)=>{let h=I[`${l}${s.startsWith("[")?s:"."+s}`];return h===void 0?y:_l(l,String(h))})}class N0 extends t{static preferredTagName="tosi-md";static initAttributes={src:"",elements:!1};context={};value="";content=null;options={};connectedCallback(){if(super.connectedCallback(),this.src!=="")(async()=>{let l=await fetch(this.src);this.value=await l.text()})();else if(this.value==="")if(this.elements)this.value=this.innerHTML;else this.value=this.textContent!=null?this.textContent:""}didRender=()=>{};render(){super.render(),I[this.instanceId]=typeof this.context==="string"?JSON.parse(this.context):this.context;let l=_l(this.instanceId,this.value);if(this.elements){let i=l.split(`
75
75
  `).reduce((y,s)=>{if(s.startsWith("<")||y.length===0)y.push(s);else{let h=y[y.length-1];if(!h.startsWith("<")||!h.endsWith(">"))y[y.length-1]+=`
76
- `+s;else y.push(s)}return y},[]);this.innerHTML=i.map((y)=>y.startsWith("<")&&y.endsWith(">")?y:X(y,this.options)).join("")}else this.innerHTML=X(l,this.options);this.didRender()}}var c8=N0,w2=N0.elementCreator(),r8=w2,C8=w2;var{div:L1,slot:Pl,span:g8,button:n8}=a;class K0 extends t{static preferredTagName="tosi-tabs";static initAttributes={localized:!1};value=0;makeTab(l,i,y){let s=i.getAttribute("name"),h=i.querySelector('template[role="tab"]')?.content.cloneNode(!0)||(this.localized?z1(s):g8(s));return L1(h,{part:"tab",tabindex:0,role:"tab",ariaControls:y},i.hasAttribute("data-close")?n8({title:"close",class:"close"},w.x()):{})}static shadowStyleSpec={":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:`${n.spacing50} ${n.spacing}`,cursor:"default",display:"flex",alignItems:"baseline"},':host .tabs > [aria-selected="true"]':{"--text-color":n.tosiTabsSelectedColor,color:n.textColor},":host .elastic":{flex:"1"},":host .border":{background:n.tosiTabsBarColor},":host .border > .selected":{content:" ",width:0,height:n.tosiTabsBarHeight,background:n.tosiTabsSelectedColor,transition:"ease-out 0.2s"},":host button.close":{border:0,background:"transparent",textAlign:"center",marginLeft:n.spacing50,padding:0},":host button.close > svg":{height:"12px"}};onCloseTab=null;content=[L1({role:"tabpanel",part:"tabpanel"},L1({part:"tabrow"},L1({class:"tabs",part:"tabs"}),L1({class:"elastic"}),Pl({name:"after-tabs"})),L1({class:"border"},L1({class:"selected",part:"selected"}))),Pl()];addTabBody(l,i=!1){if(!l.hasAttribute("name"))throw console.error("element has no name attribute",l),Error("element has no name attribute");if(this.append(l),this.setupTabs(),i)this.value=this.bodies.length-1;this.queueRender()}removeTabBody(l){l.remove(),this.setupTabs(),this.queueRender()}keyTab=(l)=>{let{tabs:i}=this.parts,y=[...i.children].indexOf(l.target);switch(l.key){case"ArrowLeft":this.value=(y+Number(i.children.length)-1)%i.children.length,i.children[this.value].focus(),l.preventDefault();break;case"ArrowRight":this.value=(y+1)%i.children.length,i.children[this.value].focus(),l.preventDefault();break;case" ":this.pickTab(l),l.preventDefault();break;default:}};get bodies(){return[...this.children].filter((l)=>l.hasAttribute("name"))}pickTab=(l)=>{let{tabs:i}=this.parts,y=l.target,s=y.closest("button.close")!==null,h=y.closest(".tabs > div"),x=[...i.children].indexOf(h);if(s){let o=this.bodies[x];if(!this.onCloseTab||this.onCloseTab(o)!==!1)this.removeTabBody(this.bodies[x])}else if(x>-1)this.value=x};setupTabs=()=>{let{tabs:l}=this.parts,i=[...this.children].filter((y)=>!y.hasAttribute("slot")&&y.hasAttribute("name"));if(l.textContent="",this.value>=i.length)this.value=i.length-1;for(let y in i){let s=i[y],h=`${this.instanceId}-${y}`;s.id=h;let x=this.makeTab(this,s,h);l.append(x)}};connectedCallback(){super.connectedCallback();let{tabs:l}=this.parts;l.addEventListener("click",this.pickTab),l.addEventListener("keydown",this.keyTab),this.setupTabs(),t1.allInstances.add(this)}disconnectedCallback(){super.disconnectedCallback(),t1.allInstances.delete(this)}localeChanged=()=>{this.queueRender()};onResize(){this.queueRender()}render(){let{tabs:l,selected:i}=this.parts,y=this.bodies;for(let s=0;s<y.length;s++){let h=y[s],x=l.children[s];if(this.value===Number(s))x.setAttribute("aria-selected","true"),i.style.marginLeft=`${x.offsetLeft-l.offsetLeft}px`,i.style.width=`${x.offsetWidth}px`,h.toggleAttribute("hidden",!1);else x.toggleAttribute("aria-selected",!1),h.toggleAttribute("hidden",!0)}}}var k8=K0,I2=K0.elementCreator(),d8=I2,p8=I2;var w8=()=>"https://cdn.jsdelivr.net/npm/sucrase@3.35.0/+esm",e2=(async()=>{}).constructor;function Q1(l,i){let y=l;for(let s of i)y=y.replace(new RegExp(`import \\{([^}]*)\\} from '${s}'`,"g"),(h,x)=>{return`const { ${x.replace(/\s+/g," ").trim()} } = ${s.replace(/-/g,"")}`});return y}async function Fl(l,i,y){let s=Q1(l,Object.keys(i)),h=y(s,{transforms:["typescript"]}).code,x=Object.keys(i).map((r)=>r.replace(/-/g,"")),o=Object.values(i);await new e2(...x,h)(...o)}async function Q0(){let{transform:l}=await import(w8());return l}var G0="live-example-payload";function Ol(l,i,y){return y!==""?`${l}-${y}`:`${l}-${i}`}function n5(l,i){try{localStorage.setItem(l,JSON.stringify(i))}catch(y){console.warn("live-example: failed to write to localStorage",y)}}function a8(l){if(l===null)return null;try{return JSON.parse(l)}catch{return null}}function Ul(l,i,y,s,h){let x=location.href.split("?")[0]+`?${l}=${i}`;n5(y,{remoteKey:s,sentAt:Date.now(),...h}),window.open(x)}var v8=typeof BroadcastChannel<"u";class Y2{storageKey;remoteKey;lastUpdate=0;interval;channel;listening=!1;onReceive;constructor(l,i,y){this.storageKey=l,this.remoteKey=i,this.onReceive=y}handlePayload=(l)=>{if(l.sentAt<=this.lastUpdate)return;if(l.remoteKey!==this.remoteKey)return;this.lastUpdate=l.sentAt,this.onReceive(l)};handleMessage=(l)=>{let i=l.data;if(i)this.handlePayload(i)};handlePoll=()=>{let l=null;try{l=localStorage.getItem(this.storageKey)}catch{return}let i=a8(l);if(i)this.handlePayload(i)};startListening(){if(this.listening)return;if(this.listening=!0,v8)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(l){let i={remoteKey:this.remoteKey,sentAt:Date.now(),...l};if(n5(this.storageKey,i),this.channel)this.channel.postMessage(i)}sendClose(){let l={remoteKey:this.remoteKey,sentAt:Date.now(),css:"",html:"",js:"",close:!0};if(n5(this.storageKey,l),this.channel)this.channel.postMessage(l)}}var{div:B8}=a;function t8(l,i){let y=l.customElements;if(!y)return;let s=(x)=>{if(!x||y.get(x))return;let o=customElements.get(x);if(o)try{y.define(x,o)}catch{}};for(let x of Object.values(i))if(x&&typeof x==="object"){for(let o of Object.values(x))if(typeof o==="function"&&"tagName"in o)s(o.tagName)}let h=l.document;if(h){let x=h.querySelectorAll("*");for(let o of x){let c=o.tagName.toLowerCase();if(c.includes("-"))s(c)}}}async function b0(l){let{html:i,css:y,js:s,context:h,transform:x,exampleElement:o,styleElement:c,widgetsElement:r,onError:C}=l,g=B8({class:"preview"});g.innerHTML=i,c.innerText=y;let k=o.querySelector(".preview");if(k)k.replaceWith(g);else o.insertBefore(g,r);let p={preview:g,...h};try{let z=Q1(s,Object.keys(h)),v=x(z,{transforms:["typescript"]}).code,V=Object.keys(p).map((q)=>q.replace(/-/g,"")),P=Object.values(p);await new e2(...V,v)(...P)}catch(z){if(console.error(z),C)C(z);else window.alert(`Error: ${z}, the console may have more information…`)}return g}async function W0(l){let{html:i,css:y,js:s,context:h,transform:x,exampleElement:o,widgetsElement:c,onError:r}=l,C=o.querySelector("iframe.preview-iframe");if(!C){C=document.createElement("iframe"),C.className="preview-iframe",C.style.cssText="width: 100%; height: 100%; border: none;";let v=o.querySelector(".preview");if(v)v.replaceWith(C);else o.insertBefore(C,c)}let g=C.contentDocument;if(!g)return console.error("Could not access iframe document"),null;let k=C.contentWindow;if(h.tosijs)k.tosijs=h.tosijs;if(h["tosijs-ui"])k.tosijsui=h["tosijs-ui"];g.open(),g.write(`<!DOCTYPE html>
76
+ `+s;else y.push(s)}return y},[]);this.innerHTML=i.map((y)=>y.startsWith("<")&&y.endsWith(">")?y:X(y,this.options)).join("")}else this.innerHTML=X(l,this.options);this.didRender()}}var r8=N0,w2=N0.elementCreator(),C8=w2,g8=w2;var{div:L1,slot:Pl,span:k8,button:n8}=v;class K0 extends t{static preferredTagName="tosi-tabs";static initAttributes={localized:!1};value=0;makeTab(l,i,y){let s=i.getAttribute("name"),h=i.querySelector('template[role="tab"]')?.content.cloneNode(!0)||(this.localized?z1(s):k8(s));return L1(h,{part:"tab",tabindex:0,role:"tab",ariaControls:y},i.hasAttribute("data-close")?n8({title:"close",class:"close"},w.x()):{})}static shadowStyleSpec={":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:`${k.spacing50} ${k.spacing}`,cursor:"default",display:"flex",alignItems:"baseline"},':host .tabs > [aria-selected="true"]':{"--text-color":k.tosiTabsSelectedColor,color:k.textColor},":host .elastic":{flex:"1"},":host .border":{background:k.tosiTabsBarColor},":host .border > .selected":{content:" ",width:0,height:k.tosiTabsBarHeight,background:k.tosiTabsSelectedColor,transition:"ease-out 0.2s"},":host button.close":{border:0,background:"transparent",textAlign:"center",marginLeft:k.spacing50,padding:0},":host button.close > svg":{height:"12px"}};onCloseTab=null;content=[L1({role:"tabpanel",part:"tabpanel"},L1({part:"tabrow"},L1({class:"tabs",part:"tabs"}),L1({class:"elastic"}),Pl({name:"after-tabs"})),L1({class:"border"},L1({class:"selected",part:"selected"}))),Pl()];addTabBody(l,i=!1){if(!l.hasAttribute("name"))throw console.error("element has no name attribute",l),Error("element has no name attribute");if(this.append(l),this.setupTabs(),i)this.value=this.bodies.length-1;this.queueRender()}removeTabBody(l){l.remove(),this.setupTabs(),this.queueRender()}keyTab=(l)=>{let{tabs:i}=this.parts,y=[...i.children].indexOf(l.target);switch(l.key){case"ArrowLeft":this.value=(y+Number(i.children.length)-1)%i.children.length,i.children[this.value].focus(),l.preventDefault();break;case"ArrowRight":this.value=(y+1)%i.children.length,i.children[this.value].focus(),l.preventDefault();break;case" ":this.pickTab(l),l.preventDefault();break;default:}};get bodies(){return[...this.children].filter((l)=>l.hasAttribute("name"))}pickTab=(l)=>{let{tabs:i}=this.parts,y=l.target,s=y.closest("button.close")!==null,h=y.closest(".tabs > div"),x=[...i.children].indexOf(h);if(s){let o=this.bodies[x];if(!this.onCloseTab||this.onCloseTab(o)!==!1)this.removeTabBody(this.bodies[x])}else if(x>-1)this.value=x};setupTabs=()=>{let{tabs:l}=this.parts,i=[...this.children].filter((y)=>!y.hasAttribute("slot")&&y.hasAttribute("name"));if(l.textContent="",this.value>=i.length)this.value=i.length-1;for(let y in i){let s=i[y],h=`${this.instanceId}-${y}`;s.id=h;let x=this.makeTab(this,s,h);l.append(x)}};connectedCallback(){super.connectedCallback();let{tabs:l}=this.parts;l.addEventListener("click",this.pickTab),l.addEventListener("keydown",this.keyTab),this.setupTabs(),t1.allInstances.add(this)}disconnectedCallback(){super.disconnectedCallback(),t1.allInstances.delete(this)}localeChanged=()=>{this.queueRender()};onResize(){this.queueRender()}render(){let{tabs:l,selected:i}=this.parts,y=this.bodies;for(let s=0;s<y.length;s++){let h=y[s],x=l.children[s];if(this.value===Number(s))x.setAttribute("aria-selected","true"),i.style.marginLeft=`${x.offsetLeft-l.offsetLeft}px`,i.style.width=`${x.offsetWidth}px`,h.toggleAttribute("hidden",!1);else x.toggleAttribute("aria-selected",!1),h.toggleAttribute("hidden",!0)}}}var d8=K0,I2=K0.elementCreator(),p8=I2,w8=I2;var a8=()=>"https://cdn.jsdelivr.net/npm/sucrase@3.35.0/+esm",Y2=(async()=>{}).constructor;function Q1(l,i){let y=l;for(let s of i)y=y.replace(new RegExp(`import \\{([^}]*)\\} from '${s}'`,"g"),(h,x)=>{return`const { ${x.replace(/\s+/g," ").trim()} } = ${s.replace(/-/g,"")}`});return y}async function Fl(l,i,y){let s=Q1(l,Object.keys(i)),h=y(s,{transforms:["typescript"]}).code,x=Object.keys(i).map((r)=>r.replace(/-/g,"")),o=Object.values(i);await new Y2(...x,h)(...o)}var v8=(l,i)=>{if(i.transforms.includes("typescript"))throw Error("TypeScript code requires sucrase, which failed to load (possibly blocked by CSP or network). Use plain JavaScript or ensure sucrase is accessible.");return{code:l}};async function Q0(){try{let{transform:l}=await import(a8());return l}catch(l){return console.warn("Failed to load sucrase:",l),v8}}var G0="live-example-payload";function Ol(l,i,y){return y!==""?`${l}-${y}`:`${l}-${i}`}function k5(l,i){try{localStorage.setItem(l,JSON.stringify(i))}catch(y){console.warn("live-example: failed to write to localStorage",y)}}function B8(l){if(l===null)return null;try{return JSON.parse(l)}catch{return null}}function Ul(l,i,y,s,h){let x=location.href.split("?")[0]+`?${l}=${i}`;k5(y,{remoteKey:s,sentAt:Date.now(),...h}),window.open(x)}var t8=typeof BroadcastChannel<"u";class D2{storageKey;remoteKey;lastUpdate=0;interval;channel;listening=!1;onReceive;constructor(l,i,y){this.storageKey=l,this.remoteKey=i,this.onReceive=y}handlePayload=(l)=>{if(l.sentAt<=this.lastUpdate)return;if(l.remoteKey!==this.remoteKey)return;this.lastUpdate=l.sentAt,this.onReceive(l)};handleMessage=(l)=>{let i=l.data;if(i)this.handlePayload(i)};handlePoll=()=>{let l=null;try{l=localStorage.getItem(this.storageKey)}catch{return}let i=B8(l);if(i)this.handlePayload(i)};startListening(){if(this.listening)return;if(this.listening=!0,t8)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(l){let i={remoteKey:this.remoteKey,sentAt:Date.now(),...l};if(k5(this.storageKey,i),this.channel)this.channel.postMessage(i)}sendClose(){let l={remoteKey:this.remoteKey,sentAt:Date.now(),css:"",html:"",js:"",close:!0};if(k5(this.storageKey,l),this.channel)this.channel.postMessage(l)}}var{div:Xl}=v;function z8(l,i){let y=l.customElements;if(!y)return;let s=(x)=>{if(!x||y.get(x))return;let o=customElements.get(x);if(o)try{y.define(x,o)}catch{}};for(let x of Object.values(i))if(x&&typeof x==="object"){for(let o of Object.values(x))if(typeof o==="function"&&"tagName"in o)s(o.tagName)}let h=l.document;if(h){let x=h.querySelectorAll("*");for(let o of x){let c=o.tagName.toLowerCase();if(c.includes("-"))s(c)}}}async function b0(l){let{html:i,css:y,js:s,context:h,transform:x,exampleElement:o,styleElement:c,widgetsElement:r,onError:C}=l,g=Xl({class:"preview"});g.innerHTML=i,c.innerText=y;let n=o.querySelector(".preview");if(n)n.replaceWith(g);else o.insertBefore(g,r);let p={preview:g,...h};try{let z=Q1(s,Object.keys(h)),a=x(z,{transforms:["typescript"]}).code,A=Object.keys(p).map((q)=>q.replace(/-/g,"")),P=Object.values(p);await new Y2(...A,a)(...P)}catch(z){if(console.error(z),g.append(Xl({class:"preview-error"},String(z.message||z))),C)C(z);else window.alert(`Error: ${z}, the console may have more information…`)}return g}async function W0(l){let{html:i,css:y,js:s,context:h,transform:x,exampleElement:o,widgetsElement:c,onError:r}=l,C=o.querySelector("iframe.preview-iframe");if(!C){C=document.createElement("iframe"),C.className="preview-iframe",C.style.cssText="width: 100%; height: 100%; border: none;";let a=o.querySelector(".preview");if(a)a.replaceWith(C);else o.insertBefore(C,c)}let g=C.contentDocument;if(!g)return console.error("Could not access iframe document"),null;let n=C.contentWindow;if(h.tosijs)n.tosijs=h.tosijs;if(h["tosijs-ui"])n.tosijsui=h["tosijs-ui"];g.open(),g.write(`<!DOCTYPE html>
77
77
  <html>
78
78
  <head>
79
79
  <style>
@@ -85,16 +85,16 @@ Please report this to https://github.com/markedjs/marked.`,l){let s="<p>An error
85
85
  <body>
86
86
  <div class="preview">${i}</div>
87
87
  </body>
88
- </html>`),g.close(),t8(k,h);let p=g.querySelector(".preview");if(!p)return console.error("Could not find preview element in iframe"),null;let z={preview:p,...h};try{let v=Q1(s,Object.keys(h)),V=x(v,{transforms:["typescript"]}).code,P=k.eval("(async () => {}).constructor"),F=Object.keys(z).map((N)=>N.replace(/-/g,"")),q=Object.values(z);await new P(...F,V)(...q)}catch(v){if(console.error(v),r)r(v);else window.alert(`Error: ${v}, the console may have more information…`)}return p}function f0(l,i,y,s){let h=[...l.querySelectorAll(".language-html,.language-js,.language-css,.language-test")].filter((x)=>!x.closest(s)).map((x)=>({block:x.parentElement,language:x.classList[0].split("-").pop(),code:x.innerText}));for(let x=0;x<h.length;x+=1){let o=[h[x]];while(x<h.length-1&&h[x].block.nextElementSibling===h[x+1].block)o.push(h[x+1]),x+=1;let c=y({context:i});o[0].block.parentElement.insertBefore(c,o[0].block),o.forEach((C)=>{switch(C.language){case"js":c.js=C.code;break;case"html":c.html=C.code;break;case"css":c.css=C.code;break;case"test":c.test=C.code;break}C.block.remove()}),c.showDefaultTab()}}var Xl={":host":{"--tosi-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(--tosi-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 k5 extends Error{constructor(l){super(l);this.name="AssertionError"}}function Nl(l,i){if(l===i)return!0;if(typeof l!==typeof i)return!1;if(l===null||i===null)return l===i;if(typeof l!=="object")return!1;let y=l,s=i;if(Array.isArray(y)!==Array.isArray(s))return!1;let h=Object.keys(y),x=Object.keys(s);if(h.length!==x.length)return!1;return h.every((o)=>Nl(y[o],s[o]))}var z8=5000,j8={stringify(l){if(typeof l>"u")return"undefined";if(l===null)return"null";if(typeof Element<"u"&&l instanceof Element)return`<${l.tagName.toLowerCase()}>`;if(typeof Node<"u"&&l instanceof Node)return`[${l.nodeName}]`;try{return JSON.stringify(l)}catch{return String(l)}}},{stringify:A1}=j8;function Kl(l,i=!1){let y=(h,x)=>{if(!(i?!h:h))throw new k5(i?`not: ${x}`:x)};return{toBe(h){y(l===h,`Expected ${A1(l)} to be ${A1(h)}`)},toEqual(h){y(Nl(l,h),`Expected ${A1(l)} to equal ${A1(h)}`)},toBeTruthy(){y(!!l,`Expected ${A1(l)} to be truthy`)},toBeFalsy(){y(!l,`Expected ${A1(l)} to be falsy`)},toBeNull(){y(l===null,`Expected ${A1(l)} to be null`)},toBeUndefined(){y(l===void 0,`Expected ${A1(l)} to be undefined`)},toBeDefined(){y(l!==void 0,`Expected ${A1(l)} to be defined`)},toContain(h){if(typeof l==="string")y(l.includes(h),`Expected "${l}" to contain "${h}"`);else if(Array.isArray(l))y(l.includes(h),`Expected array to contain ${A1(h)}`);else throw new k5("toContain requires string or array")},toHaveLength(h){let x=l.length;y(x===h,`Expected length ${x} to be ${h}`)},toMatch(h){y(h.test(l),`Expected "${l}" to match ${h}`)},toBeGreaterThan(h){y(l>h,`Expected ${l} to be greater than ${h}`)},toBeLessThan(h){y(l<h,`Expected ${l} to be less than ${h}`)},toBeInstanceOf(h){y(l instanceof h,`Expected value to be instance of ${h.name}`)},get not(){return Kl(l,!i)}}}function d5(l){return Kl(l)}function A8(l){return new Promise((i)=>setTimeout(i,l))}function V8(l,i,y=1000){return new Promise((s,h)=>{let x=Date.now(),o=()=>{let c=l.querySelector(i);if(c){s(c);return}if(Date.now()-x>=y){h(Error(`Timeout waiting for "${i}" after ${y}ms`));return}requestAnimationFrame(o)};o()})}function q8(l,i,y){return Promise.race([l,new Promise((s,h)=>setTimeout(()=>h(Error(`Test "${y}" timed out after ${i}ms`)),i))])}function p5(l,i=z8){let y="",s=[];return{pending:s,expect:d5,test(h,x){let o=y?`${y} > ${h}`:h;try{let c=x();if(c instanceof Promise){let r=q8(c,i,o).then(()=>{l.push({name:o,passed:!0})}).catch((C)=>{l.push({name:o,passed:!1,error:C.message})});s.push(r)}else l.push({name:o,passed:!0})}catch(c){l.push({name:o,passed:!1,error:c.message})}},describe(h,x){let o=y;y=y?`${y} > ${h}`:h,x(),y=o}}}async function R0(l,i,y,s){let h=[],x=p5(h),o={preview:i,...y,expect:x.expect,test:x.test,describe:x.describe,waitMs:A8,waitFor:(c,r)=>V8(i,c,r)};try{let c=Q1(l,Object.keys(y)),r=s(c,{transforms:["typescript"]}).code,C=Object.keys(o).map((p)=>p.replace(/-/g,"")),g=Object.values(o);await new e2(...C,r)(...g)}catch(c){h.push({name:"Test execution",passed:!1,error:c.message})}if(x.pending.length>0)await Promise.all(x.pending);return{passed:h.filter((c)=>c.passed).length,failed:h.filter((c)=>!c.passed).length,tests:h}}var{div:a2,xinSlot:_8,style:P8,button:E1,pre:Ql,span:Gl}=a,w5="tosijs-ui-tests-enabled",F8=typeof window<"u"&&(window.location.hostname==="localhost"||window.location.hostname==="127.0.0.1");function O8(){if(typeof localStorage>"u")return!1;let l=localStorage.getItem(w5);if(l!==null)return l==="true";return F8}var{testManager:i1}=x1({testManager:{enabled:O8()}});function Z0(){document.body.classList.toggle("tests-enabled",i1.enabled.value),document.body.style.setProperty("--tests-enabled",i1.enabled.value?"1":"0")}if(typeof document<"u")if(document.body)Z0();else document.addEventListener("DOMContentLoaded",Z0);function a5(){localStorage.setItem(w5,"true"),i1.enabled.value=!0,Z0(),document.querySelectorAll("tosi-example").forEach((l)=>{l.refresh()})}function v5(){localStorage.setItem(w5,"false"),i1.enabled.value=!1,Z0()}class G1 extends t{static preferredTagName="tosi-example";static lightStyleSpec=Xl;static initAttributes={persistToDom:!1,iframe:!1};prefix="lx";storageKey=G0;context={};uuid=crypto.randomUUID();remoteId="";remoteSync;undoInterval;testResults;pendingValues={};pendingShowDefaultTab=!1;beforeUnloadHandler;static insertExamples(l,i={}){f0(l,i,H0,G1.tagName)}get activeTab(){let{editors:l}=this.parts;return[...l.children].find((i)=>i.getAttribute("hidden")===null)}get hydrated(){try{return this.parts.js!==void 0}catch{return!1}}getEditorValue(l){if(!this.hydrated)return this.pendingValues[l]??"";return this.parts[l].value}setEditorValue(l,i){if(!this.hydrated){this.pendingValues[l]=i;return}let y=this.parts[l];y.value=i}flushPendingValues(){for(let[l,i]of Object.entries(this.pendingValues)){let y=this.parts[l];if(y)y.value=i}if(this.pendingValues={},this.pendingShowDefaultTab)this.pendingShowDefaultTab=!1,this.showDefaultTab()}get css(){return this.getEditorValue("css")}set css(l){this.setEditorValue("css",l)}get html(){return this.getEditorValue("html")}set html(l){this.setEditorValue("html",l)}get js(){return this.getEditorValue("js")}set js(l){this.setEditorValue("js",l)}get test(){return this.getEditorValue("test")}set test(l){this.setEditorValue("test",l)}get remoteKey(){return Ol(this.prefix,this.uuid,this.remoteId)}updateUndo=()=>{let{activeTab:l}=this,{undo:i,redo:y}=this.parts;if(l instanceof T1&&l.editor!==void 0){let s=l.editor.session.getUndoManager();i.disabled=!s.hasUndo(),y.disabled=!s.hasRedo()}else i.disabled=!0,y.disabled=!0;this.updateTestResultsVisibility()};updateTestResultsVisibility(){let{testResults:l}=this.parts,i=this.testResults,y=this.activeTab?.getAttribute("name")==="test",s=i&&i.failed>0;l.hidden=!i||i.tests.length===0||!y&&!s}undo=()=>{let{activeTab:l}=this;if(l instanceof T1)l.editor.undo()};redo=()=>{let{activeTab:l}=this;if(l instanceof T1)l.editor.redo()};get isMaximized(){return this.classList.contains("-maximize")}flipLayout=()=>{this.classList.toggle("-vertical")};exampleMenu=()=>{let l=i1.enabled.value;W({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:l?"check":"",caption:"Run tests",action:()=>{if(l)v5();else a5()}}]})};handleShortcuts=(l)=>{if(l.metaKey||l.ctrlKey){let i=!1;switch(l.key){case"s":case"r":this.refresh(),i=!0;break;case"/":this.flipLayout();break;case"c":if(l.shiftKey)this.copy(),i=!0;break}if(i)l.preventDefault(),l.stopPropagation()}};content=()=>[a2({part:"example"},P8({part:"style"}),a2({part:"testIndicator",title:"test status"}),Ql({part:"testResults",hidden:!0}),E1({title:"example menu",part:"exampleWidgets",onClick:this.exampleMenu},w.code())),a2({class:"code-editors",part:"codeEditors",onKeydown:this.handleShortcuts,hidden:!0},I2({part:"editors",onChange:this.updateUndo},r2({name:"js",mode:"javascript",part:"js"}),r2({name:"html",mode:"html",part:"html"}),r2({name:"css",mode:"css",part:"css"}),r2({name:"test",mode:"javascript",part:"test"}),a2({slot:"after-tabs",class:"row"},E1({title:"undo",part:"undo",class:"transparent",onClick:this.undo},w.cornerUpLeft()),E1({title:"redo",part:"redo",class:"transparent",onClick:this.redo},w.cornerUpRight()),E1({title:"flip direction (⌘/ | ^/)",class:"transparent",onClick:this.flipLayout},w.columns({class:"layout-indicator"})),E1({title:"copy as markdown (⌘⇧C | ^⇧C)",class:"transparent",onClick:this.copy},w.copy()),E1({title:"reload (⌘R | ^R)",class:"transparent",onClick:this.refreshRemote},w.refreshCw()),E1({title:"close code",class:"transparent",onClick:this.closeCode},w.x())))),_8({part:"sources",hidden:!0})];connectedCallback(){super.connectedCallback(),this.flushPendingValues();let{sources:l}=this.parts;this.initFromElements([...l.children]),this.remoteSync=new Y2(this.storageKey,this.remoteKey,(y)=>{if(y.close){if(this.remoteId!=="")window.close();else this.classList.remove("-maximize"),this.parts.codeEditors.hidden=!0;return}if(this.css=y.css,this.html=y.html,this.js=y.js,y.test)this.test=y.test;this.refresh()}),this.remoteSync.startListening();let i=Math.random()*100;this.undoInterval=setInterval(()=>{if(!document.hidden)this.updateUndo()},250+i),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 l=this.js!==""?"```js\n"+this.js.trim()+"\n```\n":"",i=this.html!==""?"```html\n"+this.html.trim()+"\n```\n":"",y=this.css!==""?"```css\n"+this.css.trim()+"\n```\n":"",s=this.test!==""?"```test\n"+this.test.trim()+"\n```\n":"";navigator.clipboard.writeText(l+i+y+s)};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:l,html:i,js:y,test:s}=this;Ul(this.prefix,this.uuid,this.storageKey,this.remoteKey,{css:l,html:i,js:y,test:s}),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:l}=this.parts;l.innerText="";for(let i of["js","css","html","test"])if(this[i])l.append(Ql({class:`language-${i}`,innerHTML:this[i]}))}};refresh=async()=>{if(this.remoteId!=="")return;let l=await Q0(),{example:i,style:y,exampleWidgets:s}=this.parts,h,x,o=(c)=>{x=c};if(this.iframe)h=await W0({html:this.html,css:this.css,js:this.js,context:this.context,transform:l,exampleElement:i,widgetsElement:s,onError:o});else h=await b0({html:this.html,css:this.css,js:this.js,context:this.context,transform:l,exampleElement:i,styleElement:y,widgetsElement:s,onError:o});if(this.persistToDom)this.updateSources();if((this.test||x)&&h&&i1.enabled.value){if(this.classList.add("-has-tests","-test-running"),this.classList.remove("-test-passed","-test-failed"),this.testResults=this.test?await R0(this.test,h,this.context,l):{passed:0,failed:0,tests:[]},x)this.testResults.failed+=1,this.testResults.tests.unshift({name:"example loads without error",passed:!1,error:String(x)});this.classList.remove("-test-running"),this.displayTestResults()}else this.classList.remove("-has-tests","-test-running","-test-passed","-test-failed")};displayTestResults(){let{testResults:l,testIndicator:i}=this.parts,y=this.testResults;if(!y||y.tests.length===0){l.hidden=!0,this.classList.remove("-test-passed","-test-failed"),i.title="no tests";return}l.innerHTML="";let s=a2({style:{marginBottom:"8px",fontWeight:"bold"}},`${y.passed}/${y.tests.length} tests passed`);l.append(s);for(let h of y.tests){let x=h.passed?"✓":"✗",o=h.passed?"test-pass":"test-fail",c=a2({class:o},Gl(x+" "),h.name,h.error?Gl({style:{opacity:"0.7"}},` - ${h.error}`):"");l.append(c)}this.classList.toggle("-test-passed",y.failed===0),this.classList.toggle("-test-failed",y.failed>0),i.title=y.failed===0?`${y.passed} tests passed`:`${y.failed}/${y.tests.length} tests failed`,this.updateTestResultsVisibility(),this.dispatchEvent(new CustomEvent("testcomplete",{bubbles:!0,detail:{results:y,element:this}}))}initFromElements(l){for(let i of l){i.hidden=!0;let[y,...s]=i.innerHTML.split(`
88
+ </html>`),g.close(),z8(n,h);let p=g.querySelector(".preview");if(!p)return console.error("Could not find preview element in iframe"),null;let z={preview:p,...h};try{let a=Q1(s,Object.keys(h)),A=x(a,{transforms:["typescript"]}).code,P=n.eval("(async () => {}).constructor"),F=Object.keys(z).map((N)=>N.replace(/-/g,"")),q=Object.values(z);await new P(...F,A)(...q)}catch(a){console.error(a);let A=g.createElement("div");if(A.className="preview-error",A.textContent=String(a.message||a),p.append(A),r)r(a);else window.alert(`Error: ${a}, the console may have more information…`)}return p}function f0(l,i,y,s){let h=[...l.querySelectorAll(".language-html,.language-js,.language-css,.language-test")].filter((x)=>!x.closest(s)).map((x)=>({block:x.parentElement,language:x.classList[0].split("-").pop(),code:x.innerText}));for(let x=0;x<h.length;x+=1){let o=[h[x]];while(x<h.length-1&&h[x].block.nextElementSibling===h[x+1].block)o.push(h[x+1]),x+=1;let c=y({context:i});o[0].block.parentElement.insertBefore(c,o[0].block),o.forEach((C)=>{switch(C.language){case"js":c.js=C.code;break;case"html":c.html=C.code;break;case"css":c.css=C.code;break;case"test":c.test=C.code;break}C.block.remove()}),c.showDefaultTab()}}var Nl={":host":{"--tosi-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(--tosi-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 .preview-error":{padding:"8px 12px",margin:"8px",background:"#fee",color:"#900",borderRadius:"4px",fontSize:"13px",fontFamily:"system-ui, sans-serif",whiteSpace:"pre-wrap"},':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 n5 extends Error{constructor(l){super(l);this.name="AssertionError"}}function Kl(l,i){if(l===i)return!0;if(typeof l!==typeof i)return!1;if(l===null||i===null)return l===i;if(typeof l!=="object")return!1;let y=l,s=i;if(Array.isArray(y)!==Array.isArray(s))return!1;let h=Object.keys(y),x=Object.keys(s);if(h.length!==x.length)return!1;return h.every((o)=>Kl(y[o],s[o]))}var j8=5000,A8={stringify(l){if(typeof l>"u")return"undefined";if(l===null)return"null";if(typeof Element<"u"&&l instanceof Element)return`<${l.tagName.toLowerCase()}>`;if(typeof Node<"u"&&l instanceof Node)return`[${l.nodeName}]`;try{return JSON.stringify(l)}catch{return String(l)}}},{stringify:A1}=A8;function Ql(l,i=!1){let y=(h,x)=>{if(!(i?!h:h))throw new n5(i?`not: ${x}`:x)};return{toBe(h){y(l===h,`Expected ${A1(l)} to be ${A1(h)}`)},toEqual(h){y(Kl(l,h),`Expected ${A1(l)} to equal ${A1(h)}`)},toBeTruthy(){y(!!l,`Expected ${A1(l)} to be truthy`)},toBeFalsy(){y(!l,`Expected ${A1(l)} to be falsy`)},toBeNull(){y(l===null,`Expected ${A1(l)} to be null`)},toBeUndefined(){y(l===void 0,`Expected ${A1(l)} to be undefined`)},toBeDefined(){y(l!==void 0,`Expected ${A1(l)} to be defined`)},toContain(h){if(typeof l==="string")y(l.includes(h),`Expected "${l}" to contain "${h}"`);else if(Array.isArray(l))y(l.includes(h),`Expected array to contain ${A1(h)}`);else throw new n5("toContain requires string or array")},toHaveLength(h){let x=l.length;y(x===h,`Expected length ${x} to be ${h}`)},toMatch(h){y(h.test(l),`Expected "${l}" to match ${h}`)},toBeGreaterThan(h){y(l>h,`Expected ${l} to be greater than ${h}`)},toBeLessThan(h){y(l<h,`Expected ${l} to be less than ${h}`)},toBeInstanceOf(h){y(l instanceof h,`Expected value to be instance of ${h.name}`)},get not(){return Ql(l,!i)}}}function d5(l){return Ql(l)}function V8(l){return new Promise((i)=>setTimeout(i,l))}function q8(l,i,y=1000){return new Promise((s,h)=>{let x=Date.now(),o=()=>{let c=l.querySelector(i);if(c){s(c);return}if(Date.now()-x>=y){h(Error(`Timeout waiting for "${i}" after ${y}ms`));return}requestAnimationFrame(o)};o()})}function _8(l,i,y){return Promise.race([l,new Promise((s,h)=>setTimeout(()=>h(Error(`Test "${y}" timed out after ${i}ms`)),i))])}function p5(l,i=j8){let y="",s=[];return{pending:s,expect:d5,test(h,x){let o=y?`${y} > ${h}`:h;try{let c=x();if(c instanceof Promise){let r=_8(c,i,o).then(()=>{l.push({name:o,passed:!0})}).catch((C)=>{l.push({name:o,passed:!1,error:C.message})});s.push(r)}else l.push({name:o,passed:!0})}catch(c){l.push({name:o,passed:!1,error:c.message})}},describe(h,x){let o=y;y=y?`${y} > ${h}`:h,x(),y=o}}}async function R0(l,i,y,s){let h=[],x=p5(h),o={preview:i,...y,expect:x.expect,test:x.test,describe:x.describe,waitMs:V8,waitFor:(c,r)=>q8(i,c,r)};try{let c=Q1(l,Object.keys(y)),r=s(c,{transforms:["typescript"]}).code,C=Object.keys(o).map((p)=>p.replace(/-/g,"")),g=Object.values(o);await new Y2(...C,r)(...g)}catch(c){h.push({name:"Test execution",passed:!1,error:c.message})}if(x.pending.length>0)await Promise.all(x.pending);return{passed:h.filter((c)=>c.passed).length,failed:h.filter((c)=>!c.passed).length,tests:h}}var{div:a2,xinSlot:P8,style:F8,button:E1,pre:Gl,span:bl}=v,w5="tosijs-ui-tests-enabled",O8=typeof window<"u"&&(window.location.hostname==="localhost"||window.location.hostname==="127.0.0.1");function U8(){if(typeof localStorage>"u")return!1;let l=localStorage.getItem(w5);if(l!==null)return l==="true";return O8}var{testManager:i1}=x1({testManager:{enabled:U8()}});function Z0(){document.body.classList.toggle("tests-enabled",i1.enabled.value),document.body.style.setProperty("--tests-enabled",i1.enabled.value?"1":"0")}if(typeof document<"u")if(document.body)Z0();else document.addEventListener("DOMContentLoaded",Z0);function a5(){localStorage.setItem(w5,"true"),i1.enabled.value=!0,Z0(),document.querySelectorAll("tosi-example").forEach((l)=>{l.refresh()})}function v5(){localStorage.setItem(w5,"false"),i1.enabled.value=!1,Z0()}class G1 extends t{static preferredTagName="tosi-example";static lightStyleSpec=Nl;static initAttributes={persistToDom:!1,iframe:!1};prefix="lx";storageKey=G0;context={};uuid=crypto.randomUUID();remoteId="";remoteSync;undoInterval;testResults;pendingValues={};pendingShowDefaultTab=!1;beforeUnloadHandler;static insertExamples(l,i={}){f0(l,i,H0,G1.tagName)}get activeTab(){let{editors:l}=this.parts;return[...l.children].find((i)=>i.getAttribute("hidden")===null)}get hydrated(){try{return this.parts.js!==void 0}catch{return!1}}getEditorValue(l){if(!this.hydrated)return this.pendingValues[l]??"";return this.parts[l].value}setEditorValue(l,i){if(!this.hydrated){this.pendingValues[l]=i;return}let y=this.parts[l];y.value=i}flushPendingValues(){for(let[l,i]of Object.entries(this.pendingValues)){let y=this.parts[l];if(y)y.value=i}if(this.pendingValues={},this.pendingShowDefaultTab)this.pendingShowDefaultTab=!1,this.showDefaultTab()}get css(){return this.getEditorValue("css")}set css(l){this.setEditorValue("css",l)}get html(){return this.getEditorValue("html")}set html(l){this.setEditorValue("html",l)}get js(){return this.getEditorValue("js")}set js(l){this.setEditorValue("js",l)}get test(){return this.getEditorValue("test")}set test(l){this.setEditorValue("test",l)}get remoteKey(){return Ol(this.prefix,this.uuid,this.remoteId)}updateUndo=()=>{let{activeTab:l}=this,{undo:i,redo:y}=this.parts;if(l instanceof T1&&l.editor!==void 0){let s=l.editor.session.getUndoManager();i.disabled=!s.hasUndo(),y.disabled=!s.hasRedo()}else i.disabled=!0,y.disabled=!0;this.updateTestResultsVisibility()};updateTestResultsVisibility(){let{testResults:l}=this.parts,i=this.testResults,y=this.activeTab?.getAttribute("name")==="test",s=i&&i.failed>0;l.hidden=!i||i.tests.length===0||!y&&!s}undo=()=>{let{activeTab:l}=this;if(l instanceof T1)l.editor.undo()};redo=()=>{let{activeTab:l}=this;if(l instanceof T1)l.editor.redo()};get isMaximized(){return this.classList.contains("-maximize")}flipLayout=()=>{this.classList.toggle("-vertical")};exampleMenu=()=>{let l=i1.enabled.value;W({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:l?"check":"",caption:"Run tests",action:()=>{if(l)v5();else a5()}}]})};handleShortcuts=(l)=>{if(l.metaKey||l.ctrlKey){let i=!1;switch(l.key){case"s":case"r":this.refresh(),i=!0;break;case"/":this.flipLayout();break;case"c":if(l.shiftKey)this.copy(),i=!0;break}if(i)l.preventDefault(),l.stopPropagation()}};content=()=>[a2({part:"example"},F8({part:"style"}),a2({part:"testIndicator",title:"test status"}),Gl({part:"testResults",hidden:!0}),E1({title:"example menu",part:"exampleWidgets",onClick:this.exampleMenu},w.code())),a2({class:"code-editors",part:"codeEditors",onKeydown:this.handleShortcuts,hidden:!0},I2({part:"editors",onChange:this.updateUndo},r2({name:"js",mode:"javascript",part:"js"}),r2({name:"html",mode:"html",part:"html"}),r2({name:"css",mode:"css",part:"css"}),r2({name:"test",mode:"javascript",part:"test"}),a2({slot:"after-tabs",class:"row"},E1({title:"undo",part:"undo",class:"transparent",onClick:this.undo},w.cornerUpLeft()),E1({title:"redo",part:"redo",class:"transparent",onClick:this.redo},w.cornerUpRight()),E1({title:"flip direction (⌘/ | ^/)",class:"transparent",onClick:this.flipLayout},w.columns({class:"layout-indicator"})),E1({title:"copy as markdown (⌘⇧C | ^⇧C)",class:"transparent",onClick:this.copy},w.copy()),E1({title:"reload (⌘R | ^R)",class:"transparent",onClick:this.refreshRemote},w.refreshCw()),E1({title:"close code",class:"transparent",onClick:this.closeCode},w.x())))),P8({part:"sources",hidden:!0})];connectedCallback(){super.connectedCallback(),this.flushPendingValues();let{sources:l}=this.parts;this.initFromElements([...l.children]),this.remoteSync=new D2(this.storageKey,this.remoteKey,(y)=>{if(y.close){if(this.remoteId!=="")window.close();else this.classList.remove("-maximize"),this.parts.codeEditors.hidden=!0;return}if(this.css=y.css,this.html=y.html,this.js=y.js,y.test)this.test=y.test;this.refresh()}),this.remoteSync.startListening();let i=Math.random()*100;this.undoInterval=setInterval(()=>{if(!document.hidden)this.updateUndo()},250+i),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 l=this.js!==""?"```js\n"+this.js.trim()+"\n```\n":"",i=this.html!==""?"```html\n"+this.html.trim()+"\n```\n":"",y=this.css!==""?"```css\n"+this.css.trim()+"\n```\n":"",s=this.test!==""?"```test\n"+this.test.trim()+"\n```\n":"";navigator.clipboard.writeText(l+i+y+s)};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:l,html:i,js:y,test:s}=this;Ul(this.prefix,this.uuid,this.storageKey,this.remoteKey,{css:l,html:i,js:y,test:s}),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:l}=this.parts;l.innerText="";for(let i of["js","css","html","test"])if(this[i])l.append(Gl({class:`language-${i}`,innerHTML:this[i]}))}};refresh=async()=>{if(this.remoteId!=="")return;let l=await Q0(),{example:i,style:y,exampleWidgets:s}=this.parts,h,x,o=(c)=>{x=c};if(this.iframe)h=await W0({html:this.html,css:this.css,js:this.js,context:this.context,transform:l,exampleElement:i,widgetsElement:s,onError:o});else h=await b0({html:this.html,css:this.css,js:this.js,context:this.context,transform:l,exampleElement:i,styleElement:y,widgetsElement:s,onError:o});if(this.persistToDom)this.updateSources();if((this.test||x)&&h&&i1.enabled.value){if(this.classList.add("-has-tests","-test-running"),this.classList.remove("-test-passed","-test-failed"),this.testResults=this.test?await R0(this.test,h,this.context,l):{passed:0,failed:0,tests:[]},x)this.testResults.failed+=1,this.testResults.tests.unshift({name:"example loads without error",passed:!1,error:String(x)});this.classList.remove("-test-running"),this.displayTestResults()}else this.classList.remove("-has-tests","-test-running","-test-passed","-test-failed")};displayTestResults(){let{testResults:l,testIndicator:i}=this.parts,y=this.testResults;if(!y||y.tests.length===0){l.hidden=!0,this.classList.remove("-test-passed","-test-failed"),i.title="no tests";return}l.innerHTML="";let s=a2({style:{marginBottom:"8px",fontWeight:"bold"}},`${y.passed}/${y.tests.length} tests passed`);l.append(s);for(let h of y.tests){let x=h.passed?"✓":"✗",o=h.passed?"test-pass":"test-fail",c=a2({class:o},bl(x+" "),h.name,h.error?bl({style:{opacity:"0.7"}},` - ${h.error}`):"");l.append(c)}this.classList.toggle("-test-passed",y.failed===0),this.classList.toggle("-test-failed",y.failed>0),i.title=y.failed===0?`${y.passed} tests passed`:`${y.failed}/${y.tests.length} tests failed`,this.updateTestResultsVisibility(),this.dispatchEvent(new CustomEvent("testcomplete",{bubbles:!0,detail:{results:y,element:this}}))}initFromElements(l){for(let i of l){i.hidden=!0;let[y,...s]=i.innerHTML.split(`
89
89
  `);if(["js","html","css","test"].includes(y)){let h=s.filter((o)=>o.trim()!=="").map((o)=>o.match(/^\s*/)[0].length).sort()[0],x=(h>0?s.map((o)=>o.substring(h)):s).join(`
90
- `);this.setEditorValue(y,x)}else{let h=["js","html","css","test"].find((x)=>i.matches(`.language-${x}`));if(h)this.setEditorValue(h,h==="html"?i.innerHTML:i.innerText)}}}showDefaultTab(){if(!this.hydrated){this.pendingShowDefaultTab=!0;return}let{editors:l}=this.parts;if(this.js!=="")l.value=0;else if(this.html!=="")l.value=1;else if(this.css!=="")l.value=2;else if(this.test!=="")l.value=3}render(){if(super.render(),this.remoteId!==""){let l=localStorage.getItem(this.storageKey);if(l!==null){let i=JSON.parse(l);if(this.remoteKey!==i.remoteKey)return;if(this.css=i.css,this.html=i.html,this.js=i.js,i.test)this.test=i.test;this.parts.example.hidden=!0,this.parts.codeEditors.hidden=!1,this.classList.add("-maximize"),this.updateUndo()}}else this.refresh()}}var H0=G1.elementCreator(),U8=new URL(window.location.href).searchParams,bl=U8.get("lx");if(bl)document.title+=" [code editor]",document.body.textContent="",document.body.append(H0({remoteId:bl}));var{slot:Wl}=a;class l2 extends t{static preferredTagName="tosi-sidenav";static initAttributes={minSize:800,navSize:200,compact:!1,contentVisible:!1};value="normal";content=[Wl({name:"nav",part:"nav"}),Wl({part:"content"})];static shadowStyleSpec={":host":{display:"grid",gridTemplateColumns:`${d.navWidth("50%")} ${d.contentWidth("50%")}`,gridTemplateRows:"100%",position:"relative",margin:d.margin("0 0 0 -100%"),transition:d.sideNavTransition("0.25s ease-out")},":host slot":{position:"relative"},":host slot:not([name])":{display:"block"},':host slot[name="nav"]':{display:"block"}};onResize=()=>{let{content:l}=this.parts,i=this.offsetParent;if(i===null)return;let y=this.value;if(this.compact=i.offsetWidth<this.minSize,[...this.childNodes].find((h)=>h instanceof Element?h.getAttribute("slot")!=="nav":!0)===void 0)y="compact/nav",this.style.setProperty("--nav-width","100%"),this.style.setProperty("--content-width","0%");else if(!this.compact)y="normal",l.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(l.classList.remove("-tosi-sidenav-visible"),this.style.setProperty("--nav-width","50%"),this.style.setProperty("--content-width","50%"),this.contentVisible)y="compact/content",this.style.setProperty("--margin","0 0 0 -100%");else y="compact/nav",this.style.setProperty("--margin","0 -100% 0 0");if(this.value!==y)this.value=y};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 X8=l2,D2=l2.elementCreator(),N8=D2,K8=D2;var{div:B5,span:S2,a:b1,header:Q8,button:fl,template:G8,input:b8,h2:W8}=a,v2={pass:d.testColorPass("#0a0"),fail:d.testColorFail("#c00"),running:d.testColorRunning("#fa0")},f8={"@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:n.fontSize50,height:n.fontSize50,borderRadius:"50%",marginLeft:n.spacing50,display:"inline-block",verticalAlign:"middle"},".doc-link.-test-passed::after":{background:v2.pass},".doc-link.-test-failed::after":{background:v2.fail,animation:"test-pulse 2s ease-in-out infinite"},".test-widget":{_testBg:v2.running,position:"fixed",bottom:n.spacing,right:n.spacing,zIndex:"1000",background:n.testBg,color:"white",gap:n.spacing50},".test-widget[hidden]":{display:"none"},".test-widget.-running":{_testBg:v2.running,animation:"test-appear 0.3s ease-out, test-pulse 2s ease-in-out 0.3s infinite"},".test-widget.-passed":{_testBg:v2.pass,animation:"test-fade 3s ease-out forwards"},".test-widget.-failed":{_testBg:v2.fail,animation:"test-pulse 2s ease-in-out infinite"},".test-widget .count":{background:"white",color:n.testBg,borderRadius:"50%",width:n.lineHeight,height:n.lineHeight,display:"flex",alignItems:"center",justifyContent:"center",fontWeight:"bold"}};function R8(l){let{docs:i,context:y={},projectName:s="",projectLinks:h={},navSize:x=200,minSize:o=600}=l;for(let B of i)B.testStatus=void 0;let c=document.location.search!==""?document.location.search.substring(1).split("&")[0]:i[0]?.filename||"README.md",r=i.find((B)=>B.filename===c)||i[0],{app:C}=x1({app:{docs:i,currentDoc:r,compact:!1}}),g={},k,p=!1,z=0,v=0;window.__docTestResults=new Promise((B)=>{k=B});let V=(B)=>{let A=g[B],O=C.docs.find((K)=>K.filename===B);if(O)O.testStatus=A?A.passed?"passed":"failed":void 0},P=()=>{if(v>=z&&k){let B={passed:0,failed:0,pages:g};for(let A of Object.values(g))B.passed+=A.totalPassed,B.failed+=A.totalFailed;if(k(B),k=void 0,F)fetch("/report",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(B)}).catch(()=>{})}},F=window.location.hostname==="localhost"||window.location.hostname==="127.0.0.1",q=(B)=>{let{results:A}=B.detail,O=String(C.currentDoc.filename);g[O]={passed:A.failed===0,tests:[...A.tests],totalPassed:A.passed,totalFailed:A.failed},V(O)},_=(B)=>{v++,P(),u0()};q1.docLink={toDOM(B,A){B.setAttribute("href",`?${A}`)}},q1.current={toDOM(B,A){let O=B.getAttribute("href")||"";B.classList.toggle("current",A===O.substring(1))}},q1.testStatus={toDOM(B,A){if(B.classList.remove("-test-passed","-test-failed"),A==="passed")B.classList.add("-test-passed");else if(A==="failed")B.classList.add("-test-failed")}};let N=N2(()=>{let B=M.value.toLocaleLowerCase();C.docs.forEach((A)=>{A.hidden=!A.title.toLocaleLowerCase().includes(B)&&!A.text.toLocaleLowerCase().includes(B)}),p1(C.docs)}),M=b8({slot:"nav",placeholder:"search",type:"search",style:{width:"calc(100% - 10px)",margin:"5px"},onInput:N});window.addEventListener("popstate",()=>{let B=window.location.search.substring(1);C.currentDoc=C.docs.find((A)=>A.filename===B)||C.docs[0]});let H=[fl({class:"iconic",style:{color:n.linkColor},title:"navigation",bind:{value:C.compact,binding:{toDOM(B,A){B.style.display=A?"":"none",B.nextSibling.style.display=A?"":"none"}}},onClick(){let B=document.querySelector(l2.tagName);B.contentVisible=!B.contentVisible}},w.menu()),S2({style:{flex:"0 0 10px"}})];if(s)H.push(b1({href:"/",style:{display:"flex",alignItems:"center",borderBottom:"none"}},h.tosijs?w.tosiUi({style:{_xinIconSize:40,marginRight:10}}):S2(),W8(s)));if(H.push(S2({class:"elastic"})),h.tosijs)H.push(b1({class:"iconic",title:"tosijs",target:"_blank"},w.tosi(),{href:h.tosijs}));if(h.discord)H.push(b1({class:"iconic",title:"discord",target:"_blank"},w.discord(),{href:h.discord}));if(h.blog)H.push(b1({class:"iconic",title:"blog",target:"_blank"},w.blog(),{href:h.blog}));if(h.github)H.push(b1({class:"iconic",title:"github",target:"_blank"},w.github(),{href:h.github}));if(h.npm)H.push(b1({class:"iconic",title:"npmjs",target:"_blank"},w.npm(),{href:h.npm}));let u=B5({style:{display:"flex",flexDirection:"column",maxWidth:"100vw",height:"100vh",overflow:"hidden"}},Q8(...H),D2({name:"Documentation",navSize:x,minSize:o,style:{flex:"1 1 auto",overflow:"hidden"},onChange(){let B=document.querySelector(l2.tagName);C.compact=B.compact}},M,B5({slot:"nav",style:{display:"flex",flexDirection:"column",width:"100%",height:"calc(100% - 44px)",overflowY:"scroll"},bindList:{idPath:"filename",hiddenProp:"hidden",value:C.docs}},G8(b1({class:"doc-link",bindCurrent:"app.currentDoc.filename",bindDocLink:"^.filename",bindTestStatus:"^.testStatus",onClick(B){let A=B.target,O=S1(B.target),K=B.target.closest("tosi-sidenav");K.contentVisible=!0;let{href:R}=A;window.history.pushState({href:R},"",R),C.currentDoc=O,B.preventDefault();let n1=String(O.filename),m=g[n1];if(m&&!m.passed)setTimeout(()=>{let Z=document.querySelector("tosi-example.-test-failed");if(Z)Z.scrollIntoView({behavior:"smooth",block:"center"})},100)}},z1({bindText:"^.title"})))),B5({style:{position:"relative",overflowY:"scroll",height:"100%"}},b1({class:"view-source",target:"_blank",style:{display:h.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(B){B.target.style.opacity="0.9"},onMouseleave(B){B.target.style.opacity="0.7"},bind:{value:C.currentDoc,binding(B,A){if(h.github&&A.path&&A.path!=="README.md")B.href=`${h.github}/blob/main/${A.path}`,B.style.display="flex";else B.style.display="none"}}},w.github({style:{_xinIconSize:16}}),"View source on GitHub"),w2({style:{display:"block",maxWidth:"44em",margin:"auto",padding:"0 1em",overflow:"hidden"},bindValue:"app.currentDoc.text",didRender(){G1.insertExamples(this,y)}}))));D1("test-indicators",f8);let Y=fl({class:"test-widget",hidden:!0,onClick:gi},S2({part:"label"},"Tests"),S2({class:"count",part:"count"},"0"));u.appendChild(Y);let m2=!1;function R5(){m2=!0,Y.hidden=!1,Y.classList.remove("-passed","-failed"),Y.classList.add("-running"),Z5()}function Z5(){let B=Y.querySelector('[part="label"]'),A=Y.querySelector('[part="count"]'),O=Object.values(g).reduce((R,n1)=>R+n1.totalPassed,0),K=Object.values(g).reduce((R,n1)=>R+n1.totalFailed,0);if(B)if(m2)B.textContent="Running";else if(K>0)B.textContent="Failed";else if(O>0)B.textContent="Passed";else B.textContent="Tests";if(A)A.textContent=K>0?String(K):String(O)}function u0(){let B=Object.values(g).reduce((A,O)=>A+O.totalFailed,0);if(m2&&v>=z)if(m2=!1,Y.classList.remove("-running"),B>0)Y.classList.add("-failed"),Y.classList.remove("-passed"),Y.hidden=!1;else Y.classList.add("-passed"),Y.classList.remove("-failed"),Y.hidden=!1;Z5()}function gi(){let B=Object.entries(g).filter(([,O])=>!O.passed),A=[];for(let[O,K]of B){let R=i.find((m)=>m.filename===O),n1=K.tests.filter((m)=>!m.passed);for(let m of n1)A.push({caption:`${R?.title||O}: ${m.name}`,action:()=>{let Z=C.docs.find((y1)=>String(y1.filename)===O);if(Z)window.history.pushState({href:`?${O}`},"",`?${O}`),C.currentDoc=Z,setTimeout(()=>{let y1=document.querySelector("tosi-example.-test-failed");if(y1)y1.scrollIntoView({behavior:"smooth",block:"center"})},100)}})}if(A.length>0)A.push(null);A.push({icon:"copy",caption:"Copy test results to clipboard",action:()=>{let O=ni();navigator.clipboard.writeText(O)}}),W({target:Y,menuItems:A})}function ni(){let B=["# Test Results",""],A=0,O=0;for(let[K,R]of Object.entries(g)){let m=i.find((Z)=>Z.filename===K)?.title||K;if(A+=R.totalPassed,O+=R.totalFailed,R.tests.length>0){B.push(`## ${m}`),B.push("");for(let Z of R.tests){let y1=Z.passed?"✓":"✗",j2=Z.error?`- ${y1} ${Z.name}: ${Z.error}`:`- ${y1} ${Z.name}`;B.push(j2)}B.push("")}}return B.unshift(`**Summary: ${A} passed, ${O} failed**`,""),B.join(`
91
- `)}u.addEventListener("testcomplete",(B)=>{q(B),u0()});let ki=async()=>{if(p)return;if(!i1.enabled.value)return;p=!0;let B=i.filter((K)=>K.text.includes("```test"));if(z=B.length,z>0)R5();if(z===0){if(k)k({passed:0,failed:0,pages:{}}),k=void 0;return}let A=document.createElement("iframe");A.style.cssText="position: fixed; left: -9999px; width: 800px; height: 600px; visibility: hidden;",document.body.appendChild(A);let O=String(C.currentDoc.filename);for(let K of B){if(K.filename===O)continue;g[K.filename]={passed:!0,tests:[],totalPassed:0,totalFailed:0};let R=document.createElement("div"),n1=w2({value:K.text,didRender(){G1.insertExamples(this,y)}});R.appendChild(n1);let m=(y1)=>{let{results:j2}=y1.detail,A2=g[K.filename];A2.tests.push(...j2.tests),A2.totalPassed+=j2.passed,A2.totalFailed+=j2.failed,A2.passed=A2.totalFailed===0,V(K.filename),u0()};R.addEventListener("testcomplete",m);let Z=A.contentDocument;if(Z)Z.body.innerHTML="",Z.body.appendChild(R),await new Promise((y1)=>setTimeout(y1,500));_(K.filename)}if(A.remove(),B.some((K)=>K.filename===O))setTimeout(()=>{_(O)},1000)},H5=()=>{if(!i1.enabled.value)return;if(F)setTimeout(ki,1000);else if(r.text.includes("```test"))z=1,R5(),setTimeout(()=>_(r.filename),2000);else if(k)k({passed:0,failed:0,pages:{}}),k=void 0};return H5(),i1.enabled.observe(H5),u}var{div:r1,slot:Z8}=a;class C1 extends t{static preferredTagName="tosi-editable";static initAttributes={rotationSnap:0,positionSnap:0};static angleSize=15;static gridSize=8;static snapAngle=!1;static snapToGrid=!1;static shadowStyleSpec={":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:n.handleSize,width:n.handleSize,padding:n.handlePadding,"--text-color":n.handleColor,background:n.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(${n.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":n.handleHoverColor,background:n.handleHoverBg}};static snappedCoords(l,i){let{gridSize:y}=C1;return C1.snapToGrid||l.shiftKey?i.map((s)=>Math.round(s/y)*y):i}static snappedAngle(l,i){let{angleSize:y}=C1;return C1.snapAngle||l.shiftKey?Math.round(i/y)*y:i}get locked(){let l=this.parentElement;if(l.style.inset)return{left:!0,top:!0,bottom:!0,right:!0};let i=l.style.right.match(/\d/)!==null,y=!i||l.style.left.match(/\d/)!==null,s=l.style.bottom.match(/\d/)!==null,h=!s||l.style.top.match(/\d/)!==null;return{left:y,top:h,bottom:s,right:i}}set locked(l){let{bottom:i,right:y}=l,{left:s,top:h}=l,x=this.parentElement,o=x.offsetLeft,c=x.offsetTop,r=x.offsetWidth,C=x.offsetHeight,g=x.offsetParent.offsetWidth-o-r,k=x.offsetParent.offsetHeight-c-C;if(Object.assign(x.style,{left:"",right:"",top:"",bottom:"",width:"",height:""}),!y)s=!0;if(!i)h=!0;if(s)x.style.left=o+"px";if(y)x.style.right=g+"px";if(s&&y)x.style.width="auto";else x.style.width=r+"px";if(h)x.style.top=c+"px";if(i)x.style.bottom=k+"px";if(h&&i)x.style.height="auto";else x.style.height=C+"px";this.queueRender()}get coords(){let{top:l,left:i,right:y,bottom:s}=this.parentElement.style;return{top:parseFloat(l),left:parseFloat(i),right:parseFloat(y),bottom:parseFloat(s)}}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=(l)=>{let{locked:i}=this;this.locked=i;let y=this.parentElement,{top:s,left:h,bottom:x,right:o}=this.coords;T(l,(c,r,C)=>{if([c,r]=C1.snappedCoords(C,[c,r]),!isNaN(s))y.style.top=s+r+"px";if(!isNaN(x))y.style.bottom=x-r+"px";if(!isNaN(h))y.style.left=h+c+"px";if(!isNaN(o))y.style.right=o-c+"px";if(C.type==="mouseup")return this.triggerChange(),!0})};resize=(l)=>{let i=this.parentElement,{locked:y}=this;this.locked=Object.assign({left:!0,top:!0,right:!0,bottom:!0});let[s,h]=[this.right,this.bottom];T(l,(x,o,c)=>{let r=s-x,C=h-o;if([r,C]=C1.snappedCoords(c,[r,C]),i.style.right=r+"px",i.style.bottom=C+"px",c.type==="mouseup")return this.locked=y,this.triggerChange(),!0})};adjustSize=(l)=>{let i=this.parentElement,{locked:y}=this,s=l.target.getAttribute("part");this.locked=Object.assign({left:!0,right:!0,top:!0,bottom:!0});let h=this[s];T(l,(x,o,c)=>{let[r]=C1.snappedCoords(c,[h+(["left","right"].includes(s)?x:o)*(["right","bottom"].includes(s)?-1:1)]);if(i.style[s]=r+"px",c.type==="mouseup")return this.locked=y,this.triggerChange(),!0})};get rect(){return this.parentElement.getBoundingClientRect()}get center(){let l=this.parentElement.getBoundingClientRect();return{x:l.x+l.width*0.5,y:l.y+l.height*0.5}}get element(){return this.parentElement}adjustRotation=(l)=>{let{center:i}=this,{transformOrigin:y}=this.element.style;if(!y)this.element.style.transformOrigin="50% 50%";T(l,(s,h,x)=>{let{clientX:o,clientY:c}=x,r=o-i.x,C=c-i.y,g=C>0?90:-90;if(r!==0)g=Math.atan2(C,r)*180/Math.PI;if(g=C1.snappedAngle(x,g),g===0)this.element.style.transformOrigin="",this.element.style.transform="";else this.element.style.transform=`rotate(${g}deg)`;return this.triggerChange(),x.type==="mouseup"})};toggleLock=(l)=>{let{locked:i}=this,y=l.target.title.split(" ")[1];i[y]=!i[y],this.locked=i,this.queueRender(),l.stopPropagation(),l.preventDefault()};content=()=>[r1({part:"move",style:{top:"50%",left:"50%",transform:"translate(-50%,-50%)"}},w.move()),r1({part:"left",title:"resize left",class:"drag-size",style:{left:"-6px",width:"8px"}}),r1({part:"right",title:"resize right",class:"drag-size",style:{left:"calc(100% - 2px)",width:"8px"}}),r1({part:"top",title:"resize top",class:"drag-size",style:{top:"-6px",height:"8px",cursor:"ns-resize"}}),r1({part:"bottom",title:"resize bottom",class:"drag-size",style:{top:"calc(100% - 2px)",height:"8px",cursor:"ns-resize"}}),r1({part:"resize",style:{top:"100%",left:"100%"}},w.resize()),r1({part:"rotate",style:{top:"50%",right:"0"}},w.refreshCw()),r1({part:"lockLeft",title:"lock left",style:{top:"50%",left:0,transform:"translate(-100%, -50%)"}},w.unlock(),w.lock()),r1({part:"lockRight",title:"lock right",style:{top:"50%",left:"100%",transform:"translate(0%, -50%)"}},w.unlock(),w.lock()),r1({part:"lockTop",title:"lock top",style:{top:0,left:"50%",transform:"translate(-50%, -100%)"}},w.unlock(),w.lock()),r1({part:"lockBottom",title:"lock bottom",style:{top:"100%",left:"50%",transform:"translate(-50%, 0%)"}},w.unlock(),w.lock()),Z8()];connectedCallback(){super.connectedCallback();let{left:l,right:i,top:y,bottom:s,lockLeft:h,lockRight:x,lockTop:o,lockBottom:c,move:r,resize:C,rotate:g}=this.parts,k={passive:!0};[l,i,y,s].forEach((p)=>{p.addEventListener("mousedown",this.adjustSize,k),p.addEventListener("touchstart",this.adjustSize,k)}),[h,x,o,c].forEach((p)=>{p.addEventListener("click",this.toggleLock)}),C.addEventListener("mousedown",this.resize,k),r.addEventListener("mousedown",this.adjustPosition,k),g.addEventListener("mousedown",this.adjustRotation,k),C.addEventListener("touchstart",this.resize,k),r.addEventListener("touchstart",this.adjustPosition,k),g.addEventListener("touchstart",this.adjustRotation,k)}render(){if(super.render(),!this.parentElement)return;let{lockLeft:l,lockRight:i,lockTop:y,lockBottom:s}=this.parts,{left:h,right:x,top:o,bottom:c}=this.locked;l.toggleAttribute("locked",h),i.toggleAttribute("locked",x),y.toggleAttribute("locked",o),s.toggleAttribute("locked",c)}}var H8=C1.elementCreator();var{div:J8,input:$8,button:t5,span:I8}=a,Rl=(l)=>l,Zl="null filter, everything matches",z5={contains:{caption:"contains",negative:"does not contain",makeTest:(l)=>{return l=l.toLocaleLowerCase(),(i)=>String(i).toLocaleLowerCase().includes(l)}},hasTags:{caption:"has tags",makeTest:(l)=>{let i=l.split(/[\s,]/).map((y)=>y.trim().toLocaleLowerCase()).filter((y)=>y!=="");return(y)=>Array.isArray(y)&&i.find((s)=>!y.includes(s))===void 0}},doesNotHaveTags:{caption:"does not have tags",makeTest:(l)=>{let i=l.split(/[\s,]/).map((y)=>y.trim().toLocaleLowerCase()).filter((y)=>y!=="");return(y)=>Array.isArray(y)&&i.find((s)=>y.includes(s))===void 0}},equals:{caption:"=",negative:"≠",makeTest:(l)=>{if(isNaN(Number(l)))return l=String(l).toLocaleLowerCase(),(y)=>String(y).toLocaleLowerCase()===l;let i=Number(l);return(y)=>Number(y)===i}},after:{caption:"is after",negative:"is before",makeTest:(l)=>{let i=new Date(l);return(y)=>new Date(y)>i}},greaterThan:{caption:">",negative:"≤",makeTest:(l)=>{if(!isNaN(Number(l))){let i=Number(l);return(y)=>Number(y)>i}return l=l.toLocaleLowerCase(),(i)=>String(i).toLocaleLowerCase()>l}},truthy:{caption:"is true/non-empty/non-zero",negative:"is false/empty/zero",needsValue:!1,makeTest:()=>(l)=>!!l},isTrue:{caption:"= true",needsValue:!1,makeTest:()=>(l)=>l===!0},isFalse:{caption:"= false",needsValue:!1,makeTest:()=>(l)=>l===!1}},e8={description:"anything",test:()=>!0};function Hl(l){return l.options[l.selectedIndex]?.caption||""}class j5 extends t{static preferredTagName="tosi-filter-part";static lightStyleSpec={":host":{display:"flex"},":host .tosi-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"}};static initAttributes={haystack:"*",condition:"contains",needle:""};fields=[];filters=z5;content=()=>[E({part:"haystack"}),E({part:"condition"}),$8({part:"needle",type:"search"}),I8({part:"padding"}),t5({part:"remove",title:"delete"},w.trash())];filter=e8;get state(){let{haystack:l,needle:i,condition:y}=this.parts;return{haystack:l.value,needle:i.value,condition:y.value}}set state(l){Object.assign(this,l)}buildFilter=()=>{let{haystack:l,condition:i,needle:y}=this.parts,s=i.value.startsWith("~"),h=s?i.value.slice(1):i.value,x=this.filters[h];y.hidden=x.needsValue===!1;let o=x.needsValue===!1?x.makeTest(void 0):x.makeTest(y.value),c=l.value,r;if(c!=="*")r=s?(k)=>!o(k[c]):(k)=>o(k[c]);else r=s?(k)=>Object.values(k).find((p)=>!o(p))!==void 0:(k)=>Object.values(k).find((p)=>o(p))!==void 0;let C=x.needsValue!==!1?` "${y.value}"`:"",g=`${Hl(l)} ${Hl(i)}${C}`;this.filter={description:g,test:r},this.parentElement?.dispatchEvent(new Event("change"))};connectedCallback(){super.connectedCallback();let{haystack:l,condition:i,needle:y,remove:s}=this.parts;l.addEventListener("change",this.buildFilter),i.addEventListener("change",this.buildFilter),y.addEventListener("input",this.buildFilter),l.value=this.haystack,i.value=this.condition,y.value=this.needle,s.addEventListener("click",()=>{let{parentElement:h}=this;this.remove(),h?.dispatchEvent(new Event("change"))})}render(){super.render();let{haystack:l,condition:i,needle:y}=this.parts;if(l.options=[{caption:"any field",value:"*"},...this.fields.map((s)=>s.prop)],i.options=Object.keys(this.filters).map((s)=>{let h=this.filters[s];return h.negative!==void 0?[{caption:h.caption,value:s},{caption:h.negative,value:"~"+s}]:{caption:h.caption,value:s}}).flat(),this.haystack!=="")l.value=this.haystack;if(this.condition!=="")i.value=this.condition;if(this.needle!=="")y.value=this.needle;this.buildFilter()}}var J0=j5.elementCreator();class A5 extends t{static preferredTagName="tosi-filter";static lightStyleSpec={":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)"}};_fields=[];get fields(){return this._fields}set fields(l){this._fields=l,this.queueRender()}get state(){let{filterContainer:l}=this.parts;return[...l.children].map((i)=>i.state)}set state(l){let{fields:i,filters:y}=this,{filterContainer:s}=this.parts;s.textContent="";for(let h of l)s.append(J0({fields:i,filters:y,...h}))}filter=Rl;description=Zl;addFilter=()=>{let{fields:l,filters:i}=this,{filterContainer:y}=this.parts;y.append(J0({fields:l,filters:i}))};content=()=>[t5({part:"add",title:"add filter condition",onClick:this.addFilter,class:"round"},w.plus()),J8({part:"filterContainer"}),t5({part:"reset",title:"reset filter",onClick:this.reset},w.x())];filters=z5;reset=()=>{let{fields:l,filters:i}=this,{filterContainer:y}=this.parts;this.description=Zl,this.filter=Rl,y.textContent="",y.append(J0({fields:l,filters:i})),this.dispatchEvent(new Event("change"))};buildFilter=()=>{let{filterContainer:l}=this.parts;if(l.children.length===0){this.reset();return}let i=[...l.children].map((s)=>s.filter),y=i.map((s)=>s.test);this.description=i.map((s)=>s.description).join(", "),this.filter=(s)=>s.filter((h)=>y.find((x)=>x(h)===!1)===void 0),this.dispatchEvent(new Event("change"))};connectedCallback(){super.connectedCallback();let{filterContainer:l}=this.parts;l.addEventListener("change",this.buildFilter),this.reset()}render(){super.render()}}var Y8=A5.elementCreator();var{form:D8,slot:V5,xinSlot:Jl,label:S8,input:T8,span:M8}=a;function W1(l,i,y){if(y!==""&&y!==!1)l.setAttribute(i,y);else l.removeAttribute(i)}function u8(l){switch(l.type){case"checkbox":return l.checked;case"radio":{let i=l.parentElement?.querySelector(`input[type="radio"][name="${l.name}"]:checked`);return i?i.value:null}case"range":case"number":return Number(l.value);default:return Array.isArray(l.value)&&l.value.length===0?null:l.value}}function $l(l,i){if(!(l instanceof HTMLElement));else if(l instanceof HTMLInputElement)switch(l.type){case"checkbox":l.checked=i;break;case"radio":l.checked=i===l.value;break;default:l.value=String(i||"")}else if(i!=null||l.value!=null)l.value=String(i||"")}class $0 extends t{static preferredTagName="tosi-field";static lightStyleSpec={':host [part="field"]':{position:"relative",display:"flex",alignItems:"center",gap:d.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}};static initAttributes={caption:"",key:"",type:"",optional:!1,pattern:"",placeholder:"",min:"",max:"",step:"",fixedPrecision:-1,prefix:"",suffix:""};value=null;content=S8(Jl({part:"caption"}),M8({part:"field"},Jl({part:"input",name:"input"}),T8({part:"valueHolder"})));valueChanged=!1;handleChange=()=>{let{input:l,valueHolder:i}=this.parts,y=l.children[0]||i;if(y!==i)i.value=y.value;this.value=u8(y),this.valueChanged=!0;let s=this.closest("tosi-form");if(s&&this.key!=="")switch(this.type){case"checkbox":s.fields[this.key]=y.checked;break;case"number":case"range":if(this.fixedPrecision>-1)y.value=Number(y.value).toFixed(this.fixedPrecision),s.fields[this.key]=Number(y.value);else s.fields[this.key]=Number(y.value);break;default:s.fields[this.key]=y.value}};connectedCallback(){super.connectedCallback();let{input:l,valueHolder:i}=this.parts;i.addEventListener("change",this.handleChange),l.addEventListener("change",this.handleChange,!0)}render(){if(this.valueChanged){this.valueChanged=!1;return}let{input:l,caption:i,valueHolder:y,field:s}=this.parts;if(i.textContent?.trim()==="")i.append(this.caption!==""?this.caption:this.key);if(this.type==="text"){l.textContent="";let h=a.textarea({value:this.value});if(this.placeholder)h.setAttribute("placeholder",this.placeholder);l.append(h)}else if(this.type==="color")l.textContent="",l.append(R4({value:this.value}));else if(l.children.length===0){if(W1(y,"placeholder",this.placeholder),W1(y,"type",this.type),W1(y,"pattern",this.pattern),W1(y,"min",this.min),W1(y,"max",this.max),this.step)W1(y,"step",this.step);else if(this.fixedPrecision>0&&this.type==="number")W1(y,"step",Math.pow(10,-this.fixedPrecision))}if($l(y,this.value),$l(l.children[0],this.value),this.prefix?s.setAttribute("prefix",this.prefix):s.removeAttribute("prefix"),this.suffix?s.setAttribute("suffix",this.suffix):s.removeAttribute("suffix"),y.classList.toggle("hidden",l.children.length>0),l.children.length>0)y.setAttribute("tabindex","-1");else y.removeAttribute("tabindex");l.style.display=l.children.length===0?"none":"",W1(y,"required",!this.optional)}}class I0 extends t{static preferredTagName="tosi-form";context={};value={};get isValid(){return[...this.querySelectorAll("*")].filter((i)=>i.required!==void 0).find((i)=>!i.reportValidity())===void 0}static shadowStyleSpec={":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=[V5({part:"header",name:"header"}),D8({part:"form"},V5({part:"content"})),V5({part:"footer",name:"footer"})];getField=(l)=>{return this.querySelector(`tosi-field[key="${l}"]`)};get fields(){if(typeof this.value==="string")try{this.value=JSON.parse(this.value)}catch(y){console.log("<tosi-form> could not use its value, expects valid JSON"),this.value={}}let{getField:l}=this,i=this.dispatchEvent.bind(this);return new Proxy(this.value,{get(y,s){return y[s]},set(y,s,h){if(y[s]!==h){y[s]=h;let x=l(s);if(x)x.value=h;i(new Event("change"))}return!0}})}set fields(l){let i=[...this.querySelectorAll("tosi-field")];for(let y of i)y.value=l[y.key]}submit=()=>{this.parts.form.dispatchEvent(new Event("submit"))};handleSubmit=(l)=>{l.preventDefault(),l.stopPropagation();let i=this.fields;this.submitCallback(i,this.isValid)};submitCallback=(l,i)=>{console.log("override submitCallback to handle this data",{value:l,isValid:i})};connectedCallback(){super.connectedCallback();let{form:l}=this.parts;l.addEventListener("submit",this.handleSubmit),this.addEventListener("change",this.handleElementChange,!0),this.initializeNamedElements()}handleElementChange=(l)=>{let i=l.target,y=i.getAttribute("name");if(y&&"value"in i)this.fields[y]=i.value};initializeNamedElements(){let l=this.fields,i=this.querySelectorAll("[name], [key]");for(let y of i){let s=y.getAttribute("name")||y.getAttribute("key");if(s&&l[s]!==void 0)y.value=l[s]}}}var m8=$0,L8=I0,Il=$0.elementCreator(),el=I0.elementCreator(),E8=Il,l7=el;function Yl(){return navigator.getGamepads().filter((i)=>i!==null).map((i)=>{let{id:y,axes:s,buttons:h}=i;return{id:y,axes:s,buttons:h.map((x,o)=>{let{pressed:c,value:r}=x;return{index:o,pressed:c,value:r}}).filter((x)=>x.pressed||x.value!==0).reduce((x,o)=>{return x[o.index]=o.value,x},{})}})}function i7(){let l=Yl();return l.length===0?"no active gamepads":l.map(({id:i,axes:y,buttons:s})=>{let h=y.map((o)=>o.toFixed(2)).join(" "),x=Object.keys(s).map((o)=>`[${o}](${s[Number(o)].toFixed(2)})`).join(" ");return`${i}
90
+ `);this.setEditorValue(y,x)}else{let h=["js","html","css","test"].find((x)=>i.matches(`.language-${x}`));if(h)this.setEditorValue(h,h==="html"?i.innerHTML:i.innerText)}}}showDefaultTab(){if(!this.hydrated){this.pendingShowDefaultTab=!0;return}let{editors:l}=this.parts;if(this.js!=="")l.value=0;else if(this.html!=="")l.value=1;else if(this.css!=="")l.value=2;else if(this.test!=="")l.value=3}render(){if(super.render(),this.remoteId!==""){let l=localStorage.getItem(this.storageKey);if(l!==null){let i=JSON.parse(l);if(this.remoteKey!==i.remoteKey)return;if(this.css=i.css,this.html=i.html,this.js=i.js,i.test)this.test=i.test;this.parts.example.hidden=!0,this.parts.codeEditors.hidden=!1,this.classList.add("-maximize"),this.updateUndo()}}else this.refresh()}}var H0=G1.elementCreator(),X8=new URL(window.location.href).searchParams,Wl=X8.get("lx");if(Wl)document.title+=" [code editor]",document.body.textContent="",document.body.append(H0({remoteId:Wl}));var{slot:fl}=v;class l2 extends t{static preferredTagName="tosi-sidenav";static initAttributes={minSize:800,navSize:200,compact:!1,contentVisible:!1};value="normal";content=[fl({name:"nav",part:"nav"}),fl({part:"content"})];static shadowStyleSpec={":host":{display:"grid",gridTemplateColumns:`${d.navWidth("50%")} ${d.contentWidth("50%")}`,gridTemplateRows:"100%",position:"relative",margin:d.margin("0 0 0 -100%"),transition:d.sideNavTransition("0.25s ease-out")},":host slot":{position:"relative"},":host slot:not([name])":{display:"block"},':host slot[name="nav"]':{display:"block"}};onResize=()=>{let{content:l}=this.parts,i=this.offsetParent;if(i===null)return;let y=this.value;if(this.compact=i.offsetWidth<this.minSize,[...this.childNodes].find((h)=>h instanceof Element?h.getAttribute("slot")!=="nav":!0)===void 0)y="compact/nav",this.style.setProperty("--nav-width","100%"),this.style.setProperty("--content-width","0%");else if(!this.compact)y="normal",l.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(l.classList.remove("-tosi-sidenav-visible"),this.style.setProperty("--nav-width","50%"),this.style.setProperty("--content-width","50%"),this.contentVisible)y="compact/content",this.style.setProperty("--margin","0 0 0 -100%");else y="compact/nav",this.style.setProperty("--margin","0 -100% 0 0");if(this.value!==y)this.value=y};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 N8=l2,S2=l2.elementCreator(),K8=S2,Q8=S2;var{div:B5,span:e2,a:b1,header:G8,button:Rl,template:b8,input:W8,h2:f8}=v,v2={pass:d.testColorPass("#0a0"),fail:d.testColorFail("#c00"),running:d.testColorRunning("#fa0")},R8={"@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:k.fontSize50,height:k.fontSize50,borderRadius:"50%",marginLeft:k.spacing50,display:"inline-block",verticalAlign:"middle"},".doc-link.-test-passed::after":{background:v2.pass},".doc-link.-test-failed::after":{background:v2.fail,animation:"test-pulse 2s ease-in-out infinite"},".test-widget":{_testBg:v2.running,position:"fixed",bottom:k.spacing,right:k.spacing,zIndex:"1000",background:k.testBg,color:"white",gap:k.spacing50},".test-widget[hidden]":{display:"none"},".test-widget.-running":{_testBg:v2.running,animation:"test-appear 0.3s ease-out, test-pulse 2s ease-in-out 0.3s infinite"},".test-widget.-passed":{_testBg:v2.pass,animation:"test-fade 3s ease-out forwards"},".test-widget.-failed":{_testBg:v2.fail,animation:"test-pulse 2s ease-in-out infinite"},".test-widget .count":{background:"white",color:k.testBg,borderRadius:"50%",width:k.lineHeight,height:k.lineHeight,display:"flex",alignItems:"center",justifyContent:"center",fontWeight:"bold"}};function Z8(l){let{docs:i,context:y={},projectName:s="",projectLinks:h={},navSize:x=200,minSize:o=600}=l;for(let B of i)B.testStatus=void 0;let c=document.location.search!==""?document.location.search.substring(1).split("&")[0]:i[0]?.filename||"README.md",r=i.find((B)=>B.filename===c)||i[0],{app:C}=x1({app:{docs:i,currentDoc:r,compact:!1}}),g={},n,p=!1,z=0,a=0;window.__docTestResults=new Promise((B)=>{n=B});let A=(B)=>{let V=g[B],O=C.docs.find((K)=>K.filename===B);if(O)O.testStatus=V?V.passed?"passed":"failed":void 0},P=()=>{if(a>=z&&n){let B={passed:0,failed:0,pages:g};for(let V of Object.values(g))B.passed+=V.totalPassed,B.failed+=V.totalFailed;if(n(B),n=void 0,F)fetch("/report",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(B)}).catch(()=>{})}},F=window.location.hostname==="localhost"||window.location.hostname==="127.0.0.1",q=(B)=>{let{results:V}=B.detail,O=String(C.currentDoc.filename);g[O]={passed:V.failed===0,tests:[...V.tests],totalPassed:V.passed,totalFailed:V.failed},A(O)},_=(B)=>{a++,P(),u0()};q1.docLink={toDOM(B,V){B.setAttribute("href",`?${V}`)}},q1.current={toDOM(B,V){let O=B.getAttribute("href")||"";B.classList.toggle("current",V===O.substring(1))}},q1.testStatus={toDOM(B,V){if(B.classList.remove("-test-passed","-test-failed"),V==="passed")B.classList.add("-test-passed");else if(V==="failed")B.classList.add("-test-failed")}};let N=N2(()=>{let B=M.value.toLocaleLowerCase();C.docs.forEach((V)=>{V.hidden=!V.title.toLocaleLowerCase().includes(B)&&!V.text.toLocaleLowerCase().includes(B)}),p1(C.docs)}),M=W8({slot:"nav",placeholder:"search",type:"search",style:{width:"calc(100% - 10px)",margin:"5px"},onInput:N});window.addEventListener("popstate",()=>{let B=window.location.search.substring(1);C.currentDoc=C.docs.find((V)=>V.filename===B)||C.docs[0]});let H=[Rl({class:"iconic",style:{color:k.linkColor},title:"navigation",bind:{value:C.compact,binding:{toDOM(B,V){B.style.display=V?"":"none",B.nextSibling.style.display=V?"":"none"}}},onClick(){let B=document.querySelector(l2.tagName);B.contentVisible=!B.contentVisible}},w.menu()),e2({style:{flex:"0 0 10px"}})];if(s)H.push(b1({href:"/",style:{display:"flex",alignItems:"center",borderBottom:"none"}},h.tosijs?w.tosiUi({style:{_xinIconSize:40,marginRight:10}}):e2(),f8(s)));if(H.push(e2({class:"elastic"})),h.tosijs)H.push(b1({class:"iconic",title:"tosijs",target:"_blank"},w.tosi(),{href:h.tosijs}));if(h.discord)H.push(b1({class:"iconic",title:"discord",target:"_blank"},w.discord(),{href:h.discord}));if(h.blog)H.push(b1({class:"iconic",title:"blog",target:"_blank"},w.blog(),{href:h.blog}));if(h.github)H.push(b1({class:"iconic",title:"github",target:"_blank"},w.github(),{href:h.github}));if(h.npm)H.push(b1({class:"iconic",title:"npmjs",target:"_blank"},w.npm(),{href:h.npm}));let u=B5({style:{display:"flex",flexDirection:"column",maxWidth:"100vw",height:"100vh",overflow:"hidden"}},G8(...H),S2({name:"Documentation",navSize:x,minSize:o,style:{flex:"1 1 auto",overflow:"hidden"},onChange(){let B=document.querySelector(l2.tagName);C.compact=B.compact}},M,B5({slot:"nav",style:{display:"flex",flexDirection:"column",width:"100%",height:"calc(100% - 44px)",overflowY:"scroll"},bindList:{idPath:"filename",hiddenProp:"hidden",value:C.docs}},b8(b1({class:"doc-link",bindCurrent:"app.currentDoc.filename",bindDocLink:"^.filename",bindTestStatus:"^.testStatus",onClick(B){let V=B.target,O=e1(B.target),K=B.target.closest("tosi-sidenav");K.contentVisible=!0;let{href:R}=V;window.history.pushState({href:R},"",R),C.currentDoc=O,B.preventDefault();let k1=String(O.filename),m=g[k1];if(m&&!m.passed)setTimeout(()=>{let Z=document.querySelector("tosi-example.-test-failed");if(Z)Z.scrollIntoView({behavior:"smooth",block:"center"})},100)}},z1({bindText:"^.title"})))),B5({style:{position:"relative",overflowY:"scroll",height:"100%"}},b1({class:"view-source",target:"_blank",style:{display:h.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(B){B.target.style.opacity="0.9"},onMouseleave(B){B.target.style.opacity="0.7"},bind:{value:C.currentDoc,binding(B,V){if(h.github&&V.path&&V.path!=="README.md")B.href=`${h.github}/blob/main/${V.path}`,B.style.display="flex";else B.style.display="none"}}},w.github({style:{_xinIconSize:16}}),"View source on GitHub"),w2({style:{display:"block",maxWidth:"44em",margin:"auto",padding:"0 1em",overflow:"hidden"},bindValue:"app.currentDoc.text",didRender(){G1.insertExamples(this,y)}}))));S1("test-indicators",R8);let D=Rl({class:"test-widget",hidden:!0,onClick:ki},e2({part:"label"},"Tests"),e2({class:"count",part:"count"},"0"));u.appendChild(D);let m2=!1;function R5(){m2=!0,D.hidden=!1,D.classList.remove("-passed","-failed"),D.classList.add("-running"),Z5()}function Z5(){let B=D.querySelector('[part="label"]'),V=D.querySelector('[part="count"]'),O=Object.values(g).reduce((R,k1)=>R+k1.totalPassed,0),K=Object.values(g).reduce((R,k1)=>R+k1.totalFailed,0);if(B)if(m2)B.textContent="Running";else if(K>0)B.textContent="Failed";else if(O>0)B.textContent="Passed";else B.textContent="Tests";if(V)V.textContent=K>0?String(K):String(O)}function u0(){let B=Object.values(g).reduce((V,O)=>V+O.totalFailed,0);if(m2&&a>=z)if(m2=!1,D.classList.remove("-running"),B>0)D.classList.add("-failed"),D.classList.remove("-passed"),D.hidden=!1;else D.classList.add("-passed"),D.classList.remove("-failed"),D.hidden=!1;Z5()}function ki(){let B=Object.entries(g).filter(([,O])=>!O.passed),V=[];for(let[O,K]of B){let R=i.find((m)=>m.filename===O),k1=K.tests.filter((m)=>!m.passed);for(let m of k1)V.push({caption:`${R?.title||O}: ${m.name}`,action:()=>{let Z=C.docs.find((y1)=>String(y1.filename)===O);if(Z)window.history.pushState({href:`?${O}`},"",`?${O}`),C.currentDoc=Z,setTimeout(()=>{let y1=document.querySelector("tosi-example.-test-failed");if(y1)y1.scrollIntoView({behavior:"smooth",block:"center"})},100)}})}if(V.length>0)V.push(null);V.push({icon:"copy",caption:"Copy test results to clipboard",action:()=>{let O=ni();navigator.clipboard.writeText(O)}}),W({target:D,menuItems:V})}function ni(){let B=["# Test Results",""],V=0,O=0;for(let[K,R]of Object.entries(g)){let m=i.find((Z)=>Z.filename===K)?.title||K;if(V+=R.totalPassed,O+=R.totalFailed,R.tests.length>0){B.push(`## ${m}`),B.push("");for(let Z of R.tests){let y1=Z.passed?"✓":"✗",j2=Z.error?`- ${y1} ${Z.name}: ${Z.error}`:`- ${y1} ${Z.name}`;B.push(j2)}B.push("")}}return B.unshift(`**Summary: ${V} passed, ${O} failed**`,""),B.join(`
91
+ `)}u.addEventListener("testcomplete",(B)=>{q(B),u0()});let di=async()=>{if(p)return;if(!i1.enabled.value)return;p=!0;let B=i.filter((K)=>K.text.includes("```test"));if(z=B.length,z>0)R5();if(z===0){if(n)n({passed:0,failed:0,pages:{}}),n=void 0;return}let V=document.createElement("iframe");V.style.cssText="position: fixed; left: -9999px; width: 800px; height: 600px; visibility: hidden;",document.body.appendChild(V);let O=String(C.currentDoc.filename);for(let K of B){if(K.filename===O)continue;g[K.filename]={passed:!0,tests:[],totalPassed:0,totalFailed:0};let R=document.createElement("div"),k1=w2({value:K.text,didRender(){G1.insertExamples(this,y)}});R.appendChild(k1);let m=(y1)=>{let{results:j2}=y1.detail,A2=g[K.filename];A2.tests.push(...j2.tests),A2.totalPassed+=j2.passed,A2.totalFailed+=j2.failed,A2.passed=A2.totalFailed===0,A(K.filename),u0()};R.addEventListener("testcomplete",m);let Z=V.contentDocument;if(Z)Z.body.innerHTML="",Z.body.appendChild(R),await new Promise((y1)=>setTimeout(y1,500));_(K.filename)}if(V.remove(),B.some((K)=>K.filename===O))setTimeout(()=>{_(O)},1000)},H5=()=>{if(!i1.enabled.value)return;if(F)setTimeout(di,1000);else if(r.text.includes("```test"))z=1,R5(),setTimeout(()=>_(r.filename),2000);else if(n)n({passed:0,failed:0,pages:{}}),n=void 0};return H5(),i1.enabled.observe(H5),u}var{div:r1,slot:H8}=v;class C1 extends t{static preferredTagName="tosi-editable";static initAttributes={rotationSnap:0,positionSnap:0};static angleSize=15;static gridSize=8;static snapAngle=!1;static snapToGrid=!1;static shadowStyleSpec={":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:k.handleSize,width:k.handleSize,padding:k.handlePadding,"--text-color":k.handleColor,background:k.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(${k.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":k.handleHoverColor,background:k.handleHoverBg}};static snappedCoords(l,i){let{gridSize:y}=C1;return C1.snapToGrid||l.shiftKey?i.map((s)=>Math.round(s/y)*y):i}static snappedAngle(l,i){let{angleSize:y}=C1;return C1.snapAngle||l.shiftKey?Math.round(i/y)*y:i}get locked(){let l=this.parentElement;if(l.style.inset)return{left:!0,top:!0,bottom:!0,right:!0};let i=l.style.right.match(/\d/)!==null,y=!i||l.style.left.match(/\d/)!==null,s=l.style.bottom.match(/\d/)!==null,h=!s||l.style.top.match(/\d/)!==null;return{left:y,top:h,bottom:s,right:i}}set locked(l){let{bottom:i,right:y}=l,{left:s,top:h}=l,x=this.parentElement,o=x.offsetLeft,c=x.offsetTop,r=x.offsetWidth,C=x.offsetHeight,g=x.offsetParent.offsetWidth-o-r,n=x.offsetParent.offsetHeight-c-C;if(Object.assign(x.style,{left:"",right:"",top:"",bottom:"",width:"",height:""}),!y)s=!0;if(!i)h=!0;if(s)x.style.left=o+"px";if(y)x.style.right=g+"px";if(s&&y)x.style.width="auto";else x.style.width=r+"px";if(h)x.style.top=c+"px";if(i)x.style.bottom=n+"px";if(h&&i)x.style.height="auto";else x.style.height=C+"px";this.queueRender()}get coords(){let{top:l,left:i,right:y,bottom:s}=this.parentElement.style;return{top:parseFloat(l),left:parseFloat(i),right:parseFloat(y),bottom:parseFloat(s)}}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=(l)=>{let{locked:i}=this;this.locked=i;let y=this.parentElement,{top:s,left:h,bottom:x,right:o}=this.coords;T(l,(c,r,C)=>{if([c,r]=C1.snappedCoords(C,[c,r]),!isNaN(s))y.style.top=s+r+"px";if(!isNaN(x))y.style.bottom=x-r+"px";if(!isNaN(h))y.style.left=h+c+"px";if(!isNaN(o))y.style.right=o-c+"px";if(C.type==="mouseup")return this.triggerChange(),!0})};resize=(l)=>{let i=this.parentElement,{locked:y}=this;this.locked=Object.assign({left:!0,top:!0,right:!0,bottom:!0});let[s,h]=[this.right,this.bottom];T(l,(x,o,c)=>{let r=s-x,C=h-o;if([r,C]=C1.snappedCoords(c,[r,C]),i.style.right=r+"px",i.style.bottom=C+"px",c.type==="mouseup")return this.locked=y,this.triggerChange(),!0})};adjustSize=(l)=>{let i=this.parentElement,{locked:y}=this,s=l.target.getAttribute("part");this.locked=Object.assign({left:!0,right:!0,top:!0,bottom:!0});let h=this[s];T(l,(x,o,c)=>{let[r]=C1.snappedCoords(c,[h+(["left","right"].includes(s)?x:o)*(["right","bottom"].includes(s)?-1:1)]);if(i.style[s]=r+"px",c.type==="mouseup")return this.locked=y,this.triggerChange(),!0})};get rect(){return this.parentElement.getBoundingClientRect()}get center(){let l=this.parentElement.getBoundingClientRect();return{x:l.x+l.width*0.5,y:l.y+l.height*0.5}}get element(){return this.parentElement}adjustRotation=(l)=>{let{center:i}=this,{transformOrigin:y}=this.element.style;if(!y)this.element.style.transformOrigin="50% 50%";T(l,(s,h,x)=>{let{clientX:o,clientY:c}=x,r=o-i.x,C=c-i.y,g=C>0?90:-90;if(r!==0)g=Math.atan2(C,r)*180/Math.PI;if(g=C1.snappedAngle(x,g),g===0)this.element.style.transformOrigin="",this.element.style.transform="";else this.element.style.transform=`rotate(${g}deg)`;return this.triggerChange(),x.type==="mouseup"})};toggleLock=(l)=>{let{locked:i}=this,y=l.target.title.split(" ")[1];i[y]=!i[y],this.locked=i,this.queueRender(),l.stopPropagation(),l.preventDefault()};content=()=>[r1({part:"move",style:{top:"50%",left:"50%",transform:"translate(-50%,-50%)"}},w.move()),r1({part:"left",title:"resize left",class:"drag-size",style:{left:"-6px",width:"8px"}}),r1({part:"right",title:"resize right",class:"drag-size",style:{left:"calc(100% - 2px)",width:"8px"}}),r1({part:"top",title:"resize top",class:"drag-size",style:{top:"-6px",height:"8px",cursor:"ns-resize"}}),r1({part:"bottom",title:"resize bottom",class:"drag-size",style:{top:"calc(100% - 2px)",height:"8px",cursor:"ns-resize"}}),r1({part:"resize",style:{top:"100%",left:"100%"}},w.resize()),r1({part:"rotate",style:{top:"50%",right:"0"}},w.refreshCw()),r1({part:"lockLeft",title:"lock left",style:{top:"50%",left:0,transform:"translate(-100%, -50%)"}},w.unlock(),w.lock()),r1({part:"lockRight",title:"lock right",style:{top:"50%",left:"100%",transform:"translate(0%, -50%)"}},w.unlock(),w.lock()),r1({part:"lockTop",title:"lock top",style:{top:0,left:"50%",transform:"translate(-50%, -100%)"}},w.unlock(),w.lock()),r1({part:"lockBottom",title:"lock bottom",style:{top:"100%",left:"50%",transform:"translate(-50%, 0%)"}},w.unlock(),w.lock()),H8()];connectedCallback(){super.connectedCallback();let{left:l,right:i,top:y,bottom:s,lockLeft:h,lockRight:x,lockTop:o,lockBottom:c,move:r,resize:C,rotate:g}=this.parts,n={passive:!0};[l,i,y,s].forEach((p)=>{p.addEventListener("mousedown",this.adjustSize,n),p.addEventListener("touchstart",this.adjustSize,n)}),[h,x,o,c].forEach((p)=>{p.addEventListener("click",this.toggleLock)}),C.addEventListener("mousedown",this.resize,n),r.addEventListener("mousedown",this.adjustPosition,n),g.addEventListener("mousedown",this.adjustRotation,n),C.addEventListener("touchstart",this.resize,n),r.addEventListener("touchstart",this.adjustPosition,n),g.addEventListener("touchstart",this.adjustRotation,n)}render(){if(super.render(),!this.parentElement)return;let{lockLeft:l,lockRight:i,lockTop:y,lockBottom:s}=this.parts,{left:h,right:x,top:o,bottom:c}=this.locked;l.toggleAttribute("locked",h),i.toggleAttribute("locked",x),y.toggleAttribute("locked",o),s.toggleAttribute("locked",c)}}var J8=C1.elementCreator();var{div:$8,input:I8,button:t5,span:Y8}=v,Zl=(l)=>l,Hl="null filter, everything matches",z5={contains:{caption:"contains",negative:"does not contain",makeTest:(l)=>{return l=l.toLocaleLowerCase(),(i)=>String(i).toLocaleLowerCase().includes(l)}},hasTags:{caption:"has tags",makeTest:(l)=>{let i=l.split(/[\s,]/).map((y)=>y.trim().toLocaleLowerCase()).filter((y)=>y!=="");return(y)=>Array.isArray(y)&&i.find((s)=>!y.includes(s))===void 0}},doesNotHaveTags:{caption:"does not have tags",makeTest:(l)=>{let i=l.split(/[\s,]/).map((y)=>y.trim().toLocaleLowerCase()).filter((y)=>y!=="");return(y)=>Array.isArray(y)&&i.find((s)=>y.includes(s))===void 0}},equals:{caption:"=",negative:"≠",makeTest:(l)=>{if(isNaN(Number(l)))return l=String(l).toLocaleLowerCase(),(y)=>String(y).toLocaleLowerCase()===l;let i=Number(l);return(y)=>Number(y)===i}},after:{caption:"is after",negative:"is before",makeTest:(l)=>{let i=new Date(l);return(y)=>new Date(y)>i}},greaterThan:{caption:">",negative:"≤",makeTest:(l)=>{if(!isNaN(Number(l))){let i=Number(l);return(y)=>Number(y)>i}return l=l.toLocaleLowerCase(),(i)=>String(i).toLocaleLowerCase()>l}},truthy:{caption:"is true/non-empty/non-zero",negative:"is false/empty/zero",needsValue:!1,makeTest:()=>(l)=>!!l},isTrue:{caption:"= true",needsValue:!1,makeTest:()=>(l)=>l===!0},isFalse:{caption:"= false",needsValue:!1,makeTest:()=>(l)=>l===!1}},D8={description:"anything",test:()=>!0};function Jl(l){return l.options[l.selectedIndex]?.caption||""}class j5 extends t{static preferredTagName="tosi-filter-part";static lightStyleSpec={":host":{display:"flex"},":host .tosi-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"}};static initAttributes={haystack:"*",condition:"contains",needle:""};fields=[];filters=z5;content=()=>[E({part:"haystack"}),E({part:"condition"}),I8({part:"needle",type:"search"}),Y8({part:"padding"}),t5({part:"remove",title:"delete"},w.trash())];filter=D8;get state(){let{haystack:l,needle:i,condition:y}=this.parts;return{haystack:l.value,needle:i.value,condition:y.value}}set state(l){Object.assign(this,l)}buildFilter=()=>{let{haystack:l,condition:i,needle:y}=this.parts,s=i.value.startsWith("~"),h=s?i.value.slice(1):i.value,x=this.filters[h];y.hidden=x.needsValue===!1;let o=x.needsValue===!1?x.makeTest(void 0):x.makeTest(y.value),c=l.value,r;if(c!=="*")r=s?(n)=>!o(n[c]):(n)=>o(n[c]);else r=s?(n)=>Object.values(n).find((p)=>!o(p))!==void 0:(n)=>Object.values(n).find((p)=>o(p))!==void 0;let C=x.needsValue!==!1?` "${y.value}"`:"",g=`${Jl(l)} ${Jl(i)}${C}`;this.filter={description:g,test:r},this.parentElement?.dispatchEvent(new Event("change"))};connectedCallback(){super.connectedCallback();let{haystack:l,condition:i,needle:y,remove:s}=this.parts;l.addEventListener("change",this.buildFilter),i.addEventListener("change",this.buildFilter),y.addEventListener("input",this.buildFilter),l.value=this.haystack,i.value=this.condition,y.value=this.needle,s.addEventListener("click",()=>{let{parentElement:h}=this;this.remove(),h?.dispatchEvent(new Event("change"))})}render(){super.render();let{haystack:l,condition:i,needle:y}=this.parts;if(l.options=[{caption:"any field",value:"*"},...this.fields.map((s)=>s.prop)],i.options=Object.keys(this.filters).map((s)=>{let h=this.filters[s];return h.negative!==void 0?[{caption:h.caption,value:s},{caption:h.negative,value:"~"+s}]:{caption:h.caption,value:s}}).flat(),this.haystack!=="")l.value=this.haystack;if(this.condition!=="")i.value=this.condition;if(this.needle!=="")y.value=this.needle;this.buildFilter()}}var J0=j5.elementCreator();class A5 extends t{static preferredTagName="tosi-filter";static lightStyleSpec={":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)"}};_fields=[];get fields(){return this._fields}set fields(l){this._fields=l,this.queueRender()}get state(){let{filterContainer:l}=this.parts;return[...l.children].map((i)=>i.state)}set state(l){let{fields:i,filters:y}=this,{filterContainer:s}=this.parts;s.textContent="";for(let h of l)s.append(J0({fields:i,filters:y,...h}))}filter=Zl;description=Hl;addFilter=()=>{let{fields:l,filters:i}=this,{filterContainer:y}=this.parts;y.append(J0({fields:l,filters:i}))};content=()=>[t5({part:"add",title:"add filter condition",onClick:this.addFilter,class:"round"},w.plus()),$8({part:"filterContainer"}),t5({part:"reset",title:"reset filter",onClick:this.reset},w.x())];filters=z5;reset=()=>{let{fields:l,filters:i}=this,{filterContainer:y}=this.parts;this.description=Hl,this.filter=Zl,y.textContent="",y.append(J0({fields:l,filters:i})),this.dispatchEvent(new Event("change"))};buildFilter=()=>{let{filterContainer:l}=this.parts;if(l.children.length===0){this.reset();return}let i=[...l.children].map((s)=>s.filter),y=i.map((s)=>s.test);this.description=i.map((s)=>s.description).join(", "),this.filter=(s)=>s.filter((h)=>y.find((x)=>x(h)===!1)===void 0),this.dispatchEvent(new Event("change"))};connectedCallback(){super.connectedCallback();let{filterContainer:l}=this.parts;l.addEventListener("change",this.buildFilter),this.reset()}render(){super.render()}}var S8=A5.elementCreator();var{form:e8,slot:V5,xinSlot:$l,label:T8,input:M8,span:u8}=v;function W1(l,i,y){if(y!==""&&y!==!1)l.setAttribute(i,y);else l.removeAttribute(i)}function m8(l){switch(l.type){case"checkbox":return l.checked;case"radio":{let i=l.parentElement?.querySelector(`input[type="radio"][name="${l.name}"]:checked`);return i?i.value:null}case"range":case"number":return Number(l.value);default:return Array.isArray(l.value)&&l.value.length===0?null:l.value}}function Il(l,i){if(!(l instanceof HTMLElement));else if(l instanceof HTMLInputElement)switch(l.type){case"checkbox":l.checked=i;break;case"radio":l.checked=i===l.value;break;default:l.value=String(i||"")}else if(i!=null||l.value!=null)l.value=String(i||"")}class $0 extends t{static preferredTagName="tosi-field";static lightStyleSpec={':host [part="field"]':{position:"relative",display:"flex",alignItems:"center",gap:d.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}};static initAttributes={caption:"",key:"",type:"",optional:!1,pattern:"",placeholder:"",min:"",max:"",step:"",fixedPrecision:-1,prefix:"",suffix:""};value=null;content=T8($l({part:"caption"}),u8({part:"field"},$l({part:"input",name:"input"}),M8({part:"valueHolder"})));valueChanged=!1;handleChange=()=>{let{input:l,valueHolder:i}=this.parts,y=l.children[0]||i;if(y!==i)i.value=y.value;this.value=m8(y),this.valueChanged=!0;let s=this.closest("tosi-form");if(s&&this.key!=="")switch(this.type){case"checkbox":s.fields[this.key]=y.checked;break;case"number":case"range":if(this.fixedPrecision>-1)y.value=Number(y.value).toFixed(this.fixedPrecision),s.fields[this.key]=Number(y.value);else s.fields[this.key]=Number(y.value);break;default:s.fields[this.key]=y.value}};connectedCallback(){super.connectedCallback();let{input:l,valueHolder:i}=this.parts;i.addEventListener("change",this.handleChange),l.addEventListener("change",this.handleChange,!0)}render(){if(this.valueChanged){this.valueChanged=!1;return}let{input:l,caption:i,valueHolder:y,field:s}=this.parts;if(i.textContent?.trim()==="")i.append(this.caption!==""?this.caption:this.key);if(this.type==="text"){l.textContent="";let h=v.textarea({value:this.value});if(this.placeholder)h.setAttribute("placeholder",this.placeholder);l.append(h)}else if(this.type==="color")l.textContent="",l.append(R4({value:this.value}));else if(l.children.length===0){if(W1(y,"placeholder",this.placeholder),W1(y,"type",this.type),W1(y,"pattern",this.pattern),W1(y,"min",this.min),W1(y,"max",this.max),this.step)W1(y,"step",this.step);else if(this.fixedPrecision>0&&this.type==="number")W1(y,"step",Math.pow(10,-this.fixedPrecision))}if(Il(y,this.value),Il(l.children[0],this.value),this.prefix?s.setAttribute("prefix",this.prefix):s.removeAttribute("prefix"),this.suffix?s.setAttribute("suffix",this.suffix):s.removeAttribute("suffix"),y.classList.toggle("hidden",l.children.length>0),l.children.length>0)y.setAttribute("tabindex","-1");else y.removeAttribute("tabindex");l.style.display=l.children.length===0?"none":"",W1(y,"required",!this.optional)}}class I0 extends t{static preferredTagName="tosi-form";context={};value={};get isValid(){return[...this.querySelectorAll("*")].filter((i)=>i.required!==void 0).find((i)=>!i.reportValidity())===void 0}static shadowStyleSpec={":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=[V5({part:"header",name:"header"}),e8({part:"form"},V5({part:"content"})),V5({part:"footer",name:"footer"})];getField=(l)=>{return this.querySelector(`tosi-field[key="${l}"]`)};get fields(){if(typeof this.value==="string")try{this.value=JSON.parse(this.value)}catch(y){console.log("<tosi-form> could not use its value, expects valid JSON"),this.value={}}let{getField:l}=this,i=this.dispatchEvent.bind(this);return new Proxy(this.value,{get(y,s){return y[s]},set(y,s,h){if(y[s]!==h){y[s]=h;let x=l(s);if(x)x.value=h;i(new Event("change"))}return!0}})}set fields(l){let i=[...this.querySelectorAll("tosi-field")];for(let y of i)y.value=l[y.key]}submit=()=>{this.parts.form.dispatchEvent(new Event("submit"))};handleSubmit=(l)=>{l.preventDefault(),l.stopPropagation();let i=this.fields;this.submitCallback(i,this.isValid)};submitCallback=(l,i)=>{console.log("override submitCallback to handle this data",{value:l,isValid:i})};connectedCallback(){super.connectedCallback();let{form:l}=this.parts;l.addEventListener("submit",this.handleSubmit),this.addEventListener("change",this.handleElementChange,!0),this.initializeNamedElements()}handleElementChange=(l)=>{let i=l.target,y=i.getAttribute("name");if(y&&"value"in i)this.fields[y]=i.value};initializeNamedElements(){let l=this.fields,i=this.querySelectorAll("[name], [key]");for(let y of i){let s=y.getAttribute("name")||y.getAttribute("key");if(s&&l[s]!==void 0)y.value=l[s]}}}var L8=$0,E8=I0,Yl=$0.elementCreator(),Dl=I0.elementCreator(),l7=Yl,i7=Dl;function Sl(){return navigator.getGamepads().filter((i)=>i!==null).map((i)=>{let{id:y,axes:s,buttons:h}=i;return{id:y,axes:s,buttons:h.map((x,o)=>{let{pressed:c,value:r}=x;return{index:o,pressed:c,value:r}}).filter((x)=>x.pressed||x.value!==0).reduce((x,o)=>{return x[o.index]=o.value,x},{})}})}function y7(){let l=Sl();return l.length===0?"no active gamepads":l.map(({id:i,axes:y,buttons:s})=>{let h=y.map((o)=>o.toFixed(2)).join(" "),x=Object.keys(s).map((o)=>`[${o}](${s[Number(o)].toFixed(2)})`).join(" ");return`${i}
92
92
  ${h}
93
93
  ${x}`}).join(`
94
- `)}function y7(l){let i={};return l.input.onControllerAddedObservable.add((y)=>{y.onMotionControllerInitObservable.add((s)=>{let h={};s.getComponentIds().forEach((o)=>{let c=s.getComponent(o);if(h[o]={pressed:c.pressed,touched:c.touched,value:c.value,axes:{x:c.axes.x,y:c.axes.y}},c.onButtonStateChangedObservable.add((r)=>{h[o].pressed=r.pressed,h[o].touched=r.touched,h[o].value=r.value}),c.onAxisValueChangedObservable)c.onAxisValueChangedObservable.add((r)=>{h[o].axes={x:r.x,y:r.y}})}),i[s.handedness]=h})}),i}function s7(l){if(l===void 0||Object.keys(l).length===0)return"no xr inputs";return Object.keys(l).map((i)=>{let y=l[i],s=[];for(let[h,x]of Object.entries(y)){let o=[];if(x.pressed)o.push("P");if(x.touched)o.push("T");let c=x.value>0,r=x.axes.x!==0||x.axes.y!==0;if(o.length>0||c||r){let C=`${h}[${o.join("")}]`;if(c)C+=` v:${x.value.toFixed(2)}`;if(r)C+=` x:${x.axes.x.toFixed(2)} y:${x.axes.y.toFixed(2)}`;s.push(C)}}return`${i}
94
+ `)}function s7(l){let i={};return l.input.onControllerAddedObservable.add((y)=>{y.onMotionControllerInitObservable.add((s)=>{let h={};s.getComponentIds().forEach((o)=>{let c=s.getComponent(o);if(h[o]={pressed:c.pressed,touched:c.touched,value:c.value,axes:{x:c.axes.x,y:c.axes.y}},c.onButtonStateChangedObservable.add((r)=>{h[o].pressed=r.pressed,h[o].touched=r.touched,h[o].value=r.value}),c.onAxisValueChangedObservable)c.onAxisValueChangedObservable.add((r)=>{h[o].axes={x:r.x,y:r.y}})}),i[s.handedness]=h})}),i}function h7(l){if(l===void 0||Object.keys(l).length===0)return"no xr inputs";return Object.keys(l).map((i)=>{let y=l[i],s=[];for(let[h,x]of Object.entries(y)){let o=[];if(x.pressed)o.push("P");if(x.touched)o.push("T");let c=x.value>0,r=x.axes.x!==0||x.axes.y!==0;if(o.length>0||c||r){let C=`${h}[${o.join("")}]`;if(c)C+=` v:${x.value.toFixed(2)}`;if(r)C+=` x:${x.axes.x.toFixed(2)} y:${x.axes.y.toFixed(2)}`;s.push(C)}}return`${i}
95
95
  ${s.join(`
96
96
  `)||"(idle)"}`}).join(`
97
- `)}var{div:h7}=a;class i2 extends t{static preferredTagName="tosi-map";static formAssociated=!0;static initAttributes={coords:"65.01715565258993,25.48081004203459,12",token:"",mapStyle:"mapbox://styles/mapbox/streets-v12",name:""};value="";formDisabledCallback(l){}formResetCallback(){this.value="",this.coords="65.01715565258993,25.48081004203459,12"}content=h7({style:{width:"100%",height:"100%"}});get map(){return this._map}static mapboxCSSAvailable;static mapboxAvailable;_map;static shadowStyleSpec={":host":{display:"inline-block",position:"relative",width:"400px",height:"400px",textAlign:"left"}};constructor(){super();if(i2.mapboxCSSAvailable===void 0)i2.mapboxCSSAvailable=n0("https://api.mapbox.com/mapbox-gl-js/v3.15.0/mapbox-gl.css").catch((l)=>{console.error("failed to load mapbox-gl.css",l)}),i2.mapboxAvailable=L("https://api.mapbox.com/mapbox-gl-js/v3.15.0/mapbox-gl.js").catch((l)=>{console.error("failed to load mapbox-gl.js",l)})}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[h,x,o]=this.coords.split(",").map((c)=>Number(c));this._map.setCenter([x,h]),this._map.setZoom(o),this._lastCoords=this.coords}if(this.mapStyle!==this._lastStyle)this._map.setStyle(this.mapStyle),this._lastStyle=this.mapStyle;return}let{div:l}=this.parts,[i,y,s]=this.coords.split(",").map((h)=>Number(h));this._lastCoords=this.coords,this._lastStyle=this.mapStyle,i2.mapboxAvailable.then(({mapboxgl:h})=>{console.log("%cmapbox may complain about missing css -- don't panic!","background: orange; color: black; padding: 0 5px;"),h.accessToken=this.token,this._map=new h.Map({container:l,style:this.mapStyle,zoom:s,center:[y,i]}),this._map.on("render",()=>this._map.resize()),this._map.on("moveend",()=>{let x=this._map.getCenter(),o=this._map.getZoom(),c=`${x.lat.toFixed(6)},${x.lng.toFixed(6)},${o.toFixed(1)}`;if(c!==this.value){if(this.internals)this.internals.setFormValue(c)}})})}}var x7=i2.elementCreator();var{div:q5,span:e0,button:_5}=a,T2=86400000,o7=[0,1,2,3,4,5,6],c7=[1,2,3,4,5,6,7,8,9,10,11,12],P5=(l,i=2,y="0")=>String(l).padStart(i,y),M2=(l,i,y)=>new Date(`${l}-${P5(i)}-${P5(y)}`);class F5 extends t{static preferredTagName="tosi-month";static lightStyleSpec={":host":{display:"block"},":host [part=header]":{display:"flex",alignItems:"stretch",justifyContent:"stretch"},":host[disabled]":{pointerEvents:"none",opacity:d.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:d.monthTodayBackground("transparent"),boxShadow:d.monthTodayShadow("none"),backdropFilter:d.monthTodayBackdropFilter("brightness(0.9)"),fontWeight:d.monthTodayFontWeight("800")},":host .day, :host .date":{padding:5,display:"flex",justifyContent:"center",userSelect:"none"},":host .day":{color:d.monthDayColor("hotpink"),background:d.monthDayBackground("white"),fontWeight:d.monthDayFontWeight("800")},":host .date":{cursor:"default"},":host .weekend":{background:d.monthWeekendBackground("#eee")},":host .date:not(.in-month)":{opacity:0.5},":host .date.checked":{color:d.monthDateCheckedColor("white"),background:d.monthDateCheckedBackground("hotpink")},":host:not([range]) .date.checked":{borderRadius:d.monthDateCheckedBorderRadius("10px")},":host .range-start":{borderTopLeftRadius:d.monthDateCheckedBorderRadius("10px"),borderBottomLeftRadius:d.monthDateCheckedBorderRadius("10px")},":host .range-end":{borderTopRightRadius:d.monthDateCheckedBorderRadius("10px"),borderBottomRightRadius:d.monthDateCheckedBorderRadius("10px")}};static formAssociated=!0;static initAttributes={month:NaN,year:NaN,weekStart:0,minDate:M2(new Date().getFullYear()-100,1,1).toISOString().split("T")[0],maxDate:M2(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(l){this.disabled=l}formResetCallback(){this.value="",this.selectedDays=[]}get endDay(){return 1-this.weekStart}get months(){return c7.map((l)=>({caption:M2(2025,l,1).toString().split(" ")[1],value:String(l)}))}get years(){let l=Number(this.minDate.split("-")[0]),i=Number(this.maxDate.split("-")[0]),y=[];for(let s=l;s<=i;s++)y.push(String(s));return y}monthChanged=(l,i)=>{};gotoMonth(l,i){if(this.month!==i||this.year!==l)this.month=i,this.year=l,this.monthChanged(l,i)}setMonth=()=>{this.gotoMonth(Number(this.parts.year.value),Number(this.parts.month.value))};get to(){return this.selectedDays[1]||""}set to(l){this.selectedDays[1]=l,this.selectedDays.splice(2)}get from(){return this.selectedDays[0]||""}set from(l){this.selectedDays[0]=l,this.selectedDays.splice(2)}clickDate=(l)=>{let i=l.target.getAttribute("title");this.selectDate(i)};keyDate=(l)=>{let i=!1;switch(l.code){case"Space":{let y=l.target.getAttribute("title");this.selectDate(y),i=!0;break}case"Tab":break;default:console.log(l)}if(i)l.preventDefault(),l.stopPropagation()};#l="";selectDate=(l)=>{if(this.#l=l,this.range){if(!this.to)this.selectedDays=[l,l];else if(this.from===l&&this.to===l)this.selectedDays=[];else if(this.from===l)this.from=this.to;else if(this.to===l)this.to=this.from;else if(l<this.from)this.from=l;else if(l>this.to)this.to=l;else this.to=l;this.value=`${this.from},${this.to}`}else if(this.multiple){if(this.selectedDays.includes(l))this.selectedDays.splice(this.selectedDays.indexOf(l),1);else this.selectedDays.push(l),this.selectedDays.sort();this.value=this.selectedDays.join(",")}else if(this.selectable)if(this.selectedDays.includes(l))this.value="",this.selectedDays=[];else this.value=l,this.selectedDays=[l]};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=(l)=>{if(!this.range)return this.selectedDays.includes(l);else if(this.range)return this.from&&l>=this.from&&l<=this.to;return!1};dateMenuItem=(l,i="")=>{return l=l.split("T")[0],{caption:i||l,enabled:()=>!l.startsWith(`${this.year}-${P5(this.month)}-`),action:()=>{this.gotoDate(l)}}};jumpMenu=()=>{W({target:this.parts.jump,menuItems:[this.dateMenuItem(new Date().toISOString(),"This Month"),...this.selectedDays.length===0?[]:[null],...this.selectedDays.map((l)=>this.dateMenuItem(l))]})};content=()=>[q5({part:"header"},_5({part:"previous",onClick:this.previousMonth},w.chevronLeft()),e0({style:{flex:"1"}}),_5({part:"jump",onClick:this.jumpMenu},w.calendar()),E({part:"month",options:this.months,onChange:this.setMonth}),E({part:"year",options:[this.year],onChange:this.setMonth}),e0({style:{flex:"1"}}),_5({part:"next",onClick:this.nextMonth},w.chevronRight())),q5({part:"week"}),q5({part:"days"})];gotoDate(l){let i=new Date(l);this.gotoMonth(i.getFullYear(),i.getMonth()+1)}connectedCallback(){super.connectedCallback();let l=new Date(this.value.split(",").pop()||Date.now());if(isNaN(this.month))this.month=l.getMonth()+1;if(isNaN(this.year))this.year=l.getFullYear()}days=[];render(){super.render();let{week:l,days:i,jump:y,month:s,year:h,previous:x,next:o}=this.parts;this.selectedDays=this.value?this.value.split(","):[];let c=M2(this.year,this.month,1),r=new Date(c.valueOf()-(7+c.getDay()-this.weekStart)%7*T2),C=this.month===12?1:this.month+1,g=new Date(M2(this.year+(this.month===12?1:0),C,1).valueOf()-T2),k=new Date(g.valueOf()+(this.weekStart*2+5+this.endDay-g.getDay())%7*T2),p=o7.map((F)=>new Date(r.valueOf()+F*T2).toString().split(" ")[0]);this.days=[];let z=new Date().toISOString().split("T")[0];for(let F=r.valueOf();F<=k.valueOf();F+=T2){let q=new Date(F),_=q.toISOString().split("T")[0];this.days.push({date:q,selected:!1,inMonth:q.getMonth()+1===this.month,isToday:_===z,isWeekend:q.getDay()%6===0,inRange:!!(this.from&&_>=this.from&&_<=this.to)})}s.value=String(this.month),h.value=String(this.year),s.disabled=h.disabled=y.disabled=x.disabled=o.disabled=this.disabled||this.readonly,h.options=this.years,l.textContent="",l.append(...p.map((F)=>e0({class:"day"},F))),i.textContent="";let v=null,{to:V,from:P}=this;i.append(...this.days.map((F)=>{let q=["date"];if(F.inMonth)q.push("in-month");if(F.isToday)q.push("today");let _=F.date.toISOString().split("T")[0];if(this.checkDay(_))q.push("checked");if(q.push(F.isWeekend?"weekend":"weekday"),this.range){if(V===_)q.push("range-end");if(P===_)q.push("range-start")}let N=e0({class:q.join(" "),title:_,onClick:this.clickDate,onKeydown:this.keyDate,tabindex:"0"},F.date.getDate());if(_===this.#l)v=N;return N})),v?.focus()}}var r7=F5.elementCreator();var{div:O5,button:C7}=a,g7={error:"red",warn:"orange",info:"royalblue",log:"gray",success:"green",progress:"royalblue"};class f1 extends t{static preferredTagName="tosi-notification";static singleton;static shadowStyleSpec={":host":{_notificationSpacing:8,_notificationWidth:360,_notificationPadding:`${n.notificationSpacing} ${n.notificationSpacing50} ${n.notificationSpacing} ${n.notificationSpacing200}`,_notificationBg:"#fafafa",_notificationAccentColor:"#aaa",_notificationTextColor:"#444",_notificationIconSize:n.notificationSpacing300,_notificationButtonSize:48,_notificationBorderWidth:"3px 0 0",_notificationBorderRadius:n.notificationSpacing50,position:"fixed",left:0,right:0,bottom:0,paddingBottom:n.notificationSpacing,width:n.notificationWidth,display:"flex",flexDirection:"column-reverse",margin:"0 auto",gap:n.notificationSpacing,maxHeight:"50vh",overflow:"hidden auto",boxShadow:"none !important"},":host *":{color:n.notificationTextColor},":host .note":{display:"grid",background:n.notificationBg,padding:n.notificationPadding,gridTemplateColumns:`${n.notificationIconSize} 1fr ${n.notificationButtonSize}`,gap:n.notificationSpacing,alignItems:"center",borderRadius:n.notificationBorderRadius,boxShadow:`0 2px 8px #0006, inset 0 0 0 2px ${n.notificationAccentColor}`,borderColor:n.notificationAccentColor,borderWidth:n.notificationBorderWidth,borderStyle:"solid",transition:"0.5s ease-in",transitionProperty:"margin, opacity",zIndex:1},":host .note .icon":{stroke:n.notificationAccentColor},":host .note button":{display:"flex",lineHeight:n.notificationButtonSize,padding:0,margin:0,height:n.notificationButtonSize,width:n.notificationButtonSize,background:"transparent",alignItems:"center",justifyContent:"center",boxShadow:"none",border:"none",position:"relative"},":host .note button:hover svg":{stroke:n.notificationAccentColor},":host .note button:active svg":{borderRadius:99,stroke:n.notificationBg,background:n.notificationAccentColor,padding:n.spacing50},":host .note svg":{height:n.notificationIconSize,width:n.notificationIconSize,pointerEvents:"none"},":host .message":{display:"flex",flexDirection:"column",alignItems:"center",gap:n.notificationSpacing},":host .note.closing":{opacity:0,zIndex:0}};static removeNote(l){l.classList.add("closing"),l.style.marginBottom=-l.offsetHeight+"px";let i=()=>{l.remove()};l.addEventListener("transitionend",i),setTimeout(i,1000)}static post(l){let{message:i,duration:y,type:s,close:h,progress:x,icon:o,color:c}=Object.assign({type:"info",duration:-1},typeof l==="string"?{message:l}:l);if(!this.singleton)this.singleton=U5();let r=this.singleton;document.body.append(r),r.style.zIndex=String(M1()+1);let C=c||g7[s],g=x||s==="progress"?a.progress():{},k=()=>{if(h)h();f1.removeNote(v)},p=o instanceof SVGElement?o:o?w[o]({class:"icon"}):w.info({class:"icon"}),z=s==="error"||s==="warn",v=O5({class:`note ${s}`,role:z?"alert":"status",ariaLive:z?"assertive":"polite",style:{_notificationAccentColor:C}},p,O5({class:"message"},O5(i),g),C7({class:"close",title:"close",ariaLabel:"Close notification",apply(V){V.addEventListener("click",k)}},w.x()));if(r.shadowRoot.append(v),g instanceof HTMLProgressElement&&x instanceof Function){g.setAttribute("max",String(100)),g.value=x();let V=setInterval(()=>{if(!r.shadowRoot.contains(v)){clearInterval(V);return}let P=x();if(g.value=P,P>=100)f1.removeNote(v)},1000)}if(y>0)setTimeout(()=>{f1.removeNote(v)},y*1000);return v.scrollIntoView(),k}content=null}var n7=f1,U5=f1.elementCreator(),k7=U5;function d7(l){return f1.post(l)}var Dl=async(l,i="SHA-1")=>{let s=new TextEncoder().encode(l),h=await crypto.subtle.digest(i,s);return Array.from(new Uint8Array(h)).map((c)=>c.toString(16).padStart(2,"0")).join("")},Sl=async(l)=>{let i=await Dl(l),y=await fetch(`https://weakpass.com/api/v1/search/${i}`);if(y.ok){let s=await y.json();console.log("password found in weakpass database",s)}return y.status!==404},{span:X5,xinSlot:p7}=a;class Y0 extends t{static preferredTagName="tosi-password-strength";static lightStyleSpec={":host":{display:"inline-flex",flexDirection:"column",gap:n.spacing50,position:"relative"},":host xin-slot":{display:"flex"},':host [part="meter"]':{display:"block",position:"relative",height:d.meterHeight("24px"),background:d.indicatorBg("white"),borderRadius:d.meterRadius("4px"),boxShadow:d.meterShadow(`inset 0 0 0 2px ${n.indicatorColor}`)},':host [part="level"]':{height:d.levelHeight("20px"),content:'" "',display:"inline-block",width:0,transition:"0.15s ease-out",background:n.indicatorColor,margin:d.levelMargin("2px"),borderRadius:d.levelRadius("2px")},':host [part="description"]':{position:"absolute",inset:"0",color:n.descriptionColor,height:d.meterHeight("24px"),lineHeight:d.meterHeight("24px"),textAlign:"center"}};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(l){return this.issues={tooShort:l.length<this.minLength,short:l.length<this.goodLength,noUpper:!l.match(/[A-Z]/),noLower:!l.match(/[a-z]/),noNumber:!l.match(/[0-9]/),noSpecial:!l.match(/[^a-zA-Z0-9]/)},this.issues.tooShort?0:Object.values(this.issues).filter((i)=>!i).length-1}async isBreached(){let l=this.querySelector("input")?.value;if(!l||typeof l!=="string")return!0;return await Sl(l)}updateIndicator=(l)=>{let{level:i,description:y}=this.parts,s=this.indicatorColors.split(","),h=this.descriptionColors.split(","),x=this.strength(l);if(this.value!==x)this.value=x,this.dispatchEvent(new Event("change"));i.style.width=`${(x+1)*16.67}%`,this.style.setProperty("--indicator-color",s[x]),this.style.setProperty("--description-color",h[x]),y.textContent=this.strengthDescriptions[x]};update=(l)=>{let i=l.target.closest("input");this.updateIndicator(i?.value||"")};content=()=>[p7({onInput:this.update}),X5({part:"meter"},X5({part:"level"}),X5({part:"description"}))];render(){super.render();let l=this.querySelector("input");this.updateIndicator(l?.value)}}var w7=Y0,Tl=Y0.elementCreator(),a7=Tl;var{span:N5}=a;class D0 extends t{static preferredTagName="tosi-rating";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(l){this.readonly=l}formResetCallback(){this.value=""}static shadowStyleSpec={":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=()=>N5({part:"container"},N5({part:"empty"}),N5({part:"filled"}));displayValue(l){let{empty:i,filled:y}=this.parts,h=Math.round((typeof l==="string"?0:l||0)/this.step)*this.step;y.style.width=h/this.max*i.offsetWidth+"px"}update=(l)=>{if(this.readonly)return;let{empty:i}=this.parts,y=l instanceof MouseEvent?l.pageX-i.getBoundingClientRect().x:0,s=Math.min(Math.max(this.min,Math.round(y/i.offsetWidth*this.max/this.step+this.step*0.5)*this.step),this.max);if(l.type==="click")this.value=s;else if(l.type==="mousemove")this.displayValue(s);else this.displayValue(this.value||0)};handleKey=(l)=>{let i=this.value===""?NaN:Number(this.value);if(isNaN(i))i=Math.round((this.min+this.max)*0.5*this.step)*this.step;let y=!1;switch(l.key){case"ArrowUp":case"ArrowRight":i+=this.step,y=!0;break;case"ArrowDown":case"ArrowLeft":i-=this.step,y=!0;break}if(this.value=Math.max(Math.min(i,this.max),this.min),y)l.stopPropagation(),l.preventDefault()};connectedCallback(){super.connectedCallback();let{container:l}=this.parts;l.tabIndex=0,l.addEventListener("mousemove",this.update,!0),l.addEventListener("mouseleave",this.update),l.addEventListener("blur",this.update),l.addEventListener("click",this.update),l.addEventListener("keydown",this.handleKey)}_renderedIcon="";render(){super.render();let l=this.iconSize+"px";if(this.style.setProperty("--tosi-icon-size",l),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:i,filled:y}=this.parts;if(i.classList.toggle("hollow",this.hollow),i.style.setProperty("--tosi-icon-fill",this.emptyFill),i.style.setProperty("--tosi-icon-stroke",this.emptyStroke),y.style.setProperty("--tosi-icon-fill",this.ratingFill),y.style.setProperty("--tosi-icon-stroke",this.ratingStroke),this._renderedIcon!==this.icon){this._renderedIcon=this.icon;for(let s=0;s<this.max;s++)i.append(w[this.icon]()),y.append(w[this.icon]())}this.displayValue(this.value)}}var v7=D0,Ml=D0.elementCreator(),B7=D((...l)=>Ml(...l),"xinRating is deprecated, use tosiRating instead (tag is now <tosi-rating>)");var{xinSlot:ul,div:t7,button:z7,span:ml}=a,j7=[{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 K5(l=j7){return E({title:"paragraph style",slot:"toolbar",class:"block-style",options:l.map(({caption:i,tagType:y})=>({caption:i,value:`formatBlock,${y}`}))})}function B2(l="10px"){return ml({slot:"toolbar",style:{flex:`0 0 ${l}`,content:" "}})}function A7(l="10px"){return ml({slot:"toolbar",style:{flex:`0 0 ${l}`,content:" "}})}function g1(l,i,y){return z7({slot:"toolbar",dataCommand:i,title:l},y)}var V7=()=>[g1("left-justify","justifyLeft",w.alignLeft()),g1("center","justifyCenter",w.alignCenter()),g1("right-justify","justifyRight",w.alignRight()),B2(),g1("bullet list","insertUnorderedList",w.listBullet()),g1("numbered list","insertOrderedList",w.listNumber()),B2(),g1("indent","indent",w.indent()),g1("indent","outdent",w.outdent())],Ll=()=>[g1("bold","bold",w.fontBold()),g1("italic","italic",w.fontItalic()),g1("underline","underline",w.fontUnderline())],q7=()=>[K5(),B2(),...Ll()],El=()=>[K5(),B2(),...V7(),B2(),...Ll()];class S0 extends t{static preferredTagName="tosi-rich-text";static lightStyleSpec={":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}};static formAssociated=!0;static initAttributes={widgets:"default",name:"",required:!1};isInitialized=!1;savedValue="";formDisabledCallback(l){if(this.isInitialized)this.parts.doc.contentEditable=l?"false":"true"}formResetCallback(){this.value=""}_value="";get value(){return this.isInitialized?this.parts.doc.innerHTML:this._value}set value(l){let i=this._value;if(this._value=l,this.isInitialized){if(this.parts.doc.innerHTML!==l)this.parts.doc.innerHTML=l}if(i!==l&&this.internals)this.internals.setFormValue(l)}blockElement(l){let{doc:i}=this.parts;while(l.parentElement!==null&&l.parentElement!==i)l=l.parentElement;return l.parentElement===i?l:void 0}get selectedBlocks(){let{doc:l}=this.parts,i=window.getSelection();if(i===null)return[];let y=[];for(let s=0;s<i.rangeCount;s++){let h=i.getRangeAt(s);if(!l.contains(h.commonAncestorContainer))continue;let x=this.blockElement(h.startContainer),o=this.blockElement(h.endContainer);y.push(x);while(x!==o&&x!==null)x=x.nextElementSibling,y.push(x)}return y}get selectedText(){let l=window.getSelection();if(l===null)return"";return this.selectedBlocks.length?l.toString():""}selectionChange=()=>{};_updatingBlockStyle=!1;handleSelectChange=(l)=>{if(this._updatingBlockStyle)return;let y=l.target?.closest(B1.tagName);if(y==null)return;this.doCommand(y.value)};handleButtonClick=(l)=>{let y=l.target?.closest("button");if(y==null)return;this.doCommand(y.dataset.command)};content=[ul({name:"toolbar",part:"toolbar",onClick:this.handleButtonClick,onChange:this.handleSelectChange}),t7({part:"doc",contenteditable:!0,style:{flex:"1 1 auto",outline:"none"}}),ul({part:"content"})];doCommand(l){if(l===void 0)return;let i=l.split(",");console.log("execCommand",i[0],!1,...i.slice(1)),document.execCommand(i[0],!1,...i.slice(1))}updateBlockStyle(){let l=this.parts.toolbar.querySelector(".block-style");if(l===null)return;let i=this.selectedBlocks.map((y)=>y.tagName);i=[...new Set(i)],this._updatingBlockStyle=!0,l.value=i.length===1?`formatBlock,${i[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:l,content:i}=this.parts;if(i.innerHTML!==""&&l.innerHTML==="")l.innerHTML=i.innerHTML,i.innerHTML="";this.isInitialized=!0,i.style.display="none",l.addEventListener("input",this.handleInput),this.updateValidity(),document.addEventListener("selectionchange",(y)=>{this.updateBlockStyle(),this.selectionChange(y,this)})}render(){let{toolbar:l}=this.parts;if(super.render(),l.children.length===0)switch(this.widgets){case"minimal":l.append(...q7());break;case"default":l.append(...El());break}}}var _7=S0,li=S0.elementCreator(),P7=D((...l)=>li(...l),"richText is deprecated, use tosiRichText instead (tag is now <tosi-rich-text>)");var{div:F7,slot:O7,label:U7,span:X7,input:ii}=a;class t2 extends t{static preferredTagName="tosi-segmented";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(l){if(typeof l==="string")this._choices=t2.parseChoicesString(l);else this._choices=l;this.queueRender()}static parseChoicesString(l){return l.split(",").filter((i)=>i.trim()!=="").map((i)=>{let[y,s]=i.split("=").map((c)=>c.trim()),[h,x]=(s||y).split(":").map((c)=>c.trim()),o=x?w[x]():"";return{value:y,icon:o,caption:h}})}value="";formDisabledCallback(l){}formResetCallback(){this.value=""}get values(){return(this.value||"").split(",").map((l)=>l.trim()).filter((l)=>l!=="")}content=()=>[O7(),F7({part:"options"},ii({part:"custom",hidden:!0}))];static shadowStyleSpec={":host":{display:"inline-flex",gap:d.segmentedOptionGap("8px"),alignItems:d.segmentedAlignItems("center")},":host, :host::part(options)":{flexDirection:d.segmentedDirection("row")},":host label":{display:"inline-grid",alignItems:"center",gap:d.segmentedOptionGap("8px"),gridTemplateColumns:d.segmentedOptionGridColumns("0px 24px 1fr"),padding:d.segmentedOptionPadding("4px 12px"),font:d.segmentedOptionFont("16px")},":host label:focus":{outline:"none",boxShadow:d.segmentedFocusShadow(`inset 0 0 0 2px ${d.segmentedOptionCurrentBackground("#44a")}`),borderRadius:d.segmentedOptionsBorderRadius("8px")},":host label:has(:checked)":{color:d.segmentedOptionCurrentColor("#eee"),background:d.segmentedOptionCurrentBackground("#44a")},":host label:has(:checked):focus":{boxShadow:d.segmentedCurrentFocusShadow(`inset 0 0 0 2px ${d.segmentedOptionCurrentColor("#eee")}`)},":host svg":{height:d.segmentOptionIconSize("16px"),stroke:d.segmentedOptionIconColor("currentColor")},":host label.no-icon":{gap:0,gridTemplateColumns:d.segmentedOptionGridColumns("0px 1fr")},':host input[type="radio"], :host input[type="checkbox"]':{visibility:d.segmentedInputVisibility("hidden")},":host::part(options)":{display:"flex",borderRadius:d.segmentedOptionsBorderRadius("8px"),background:d.segmentedOptionsBackground("#fff"),color:d.segmentedOptionColor("#222"),overflow:"hidden",alignItems:d.segmentedOptionAlignItems("stretch")},":host::part(custom)":{padding:d.segmentedOptionPadding("4px 12px"),color:d.segmentedOptionCurrentColor("#eee"),background:d.segmentedOptionCurrentBackground("#44a"),font:d.segmentedOptionFont("16px"),border:"0",outline:"none"},":host::part(custom)::placeholder":{color:d.segmentedOptionCurrentColor("#eee"),opacity:d.segmentedPlaceholderOpacity(0.75)}};valueChanged=!1;handleChange=()=>{let{options:l,custom:i}=this.parts;if(this.multiple){let y=[...l.querySelectorAll("input:checked")];this.value=y.map((s)=>s.value).join(",")}else{let y=l.querySelector("input:checked");if(!y)this.value="";else if(y.value)i.setAttribute("hidden",""),this.value=y.value;else i.removeAttribute("hidden"),i.focus(),i.select(),this.value=i.value}this.valueChanged=!0};handleKey=(l)=>{let i=!1;switch(l.code){case"Space":if(l.target instanceof HTMLLabelElement)l.target.click(),i=!0;break;case"Tab":if(!(l.target instanceof HTMLLabelElement))l.target.closest("label").focus();break;case"ArrowLeft":case"ArrowUp":{let y=l.target.closest("label");if(y.previousElementSibling instanceof HTMLLabelElement)y.previousElementSibling.focus()}i=!0;break;case"ArrowRight":case"ArrowDown":{let y=l.target.closest("label");if(y.nextElementSibling instanceof HTMLLabelElement)y.nextElementSibling.focus()}i=!0;break}if(i)l.preventDefault(),l.stopPropagation()};connectedCallback(){super.connectedCallback();let l=this.getAttribute("choices");if(l&&this._choices.length===0)this._choices=t2.parseChoicesString(l);let{options:i}=this.parts;if(this.name==="")this.name=this.instanceId;if(i.addEventListener("change",this.handleChange),i.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 l=[...this.choices];if(this.other&&!this.multiple){let[i,y]=this.other.split(":");l.push({value:"",caption:i,icon:y})}return l}get isOtherValue(){return Boolean(this.value===""||this.value&&!this._choicesWithOther.find((l)=>l.value===this.value))}render(){if(super.render(),this.valueChanged){this.valueChanged=!1;return}let{options:l,custom:i}=this.parts;l.textContent="";let y=this.multiple?"checkbox":"radio",{values:s,isOtherValue:h}=this;if(l.append(...this._choicesWithOther.map((x)=>{return U7({tabindex:0},ii({type:y,name:this.name,value:x.value,checked:s.includes(x.value)||x.value===""&&h,tabIndex:-1}),x.icon||{class:"no-icon"},this.localized?z1(x.caption):X7(x.caption))})),this.other&&!this.multiple)i.hidden=!h,i.value=h?this.value:"",i.placeholder=this.placeholder,l.append(i)}}var N7=t2,yi=t2.elementCreator(),K7=D((...l)=>yi(...l),"xinSegmented is deprecated, use tosiSegmented instead (tag is now <tosi-segmented>)");var{slot:si}=a;class Q5 extends t{static preferredTagName="tosi-sizebreak";static initAttributes={minWidth:0,minHeight:0};value="normal";content=[si({part:"normal"}),si({part:"small",name:"small"})];static shadowStyleSpec={":host":{display:"inline-block",position:"relative"}};onResize=()=>{let{normal:l,small:i}=this.parts,y=this.offsetParent;if(!(y instanceof HTMLElement))return;else if(y.offsetWidth<this.minWidth||y.offsetHeight<this.minHeight)l.hidden=!0,i.hidden=!1,this.value="small";else l.hidden=!1,i.hidden=!0,this.value="normal"};connectedCallback(){super.connectedCallback(),globalThis.addEventListener("resize",this.onResize)}disconnectedCallback(){super.disconnectedCallback(),globalThis.removeEventListener("resize",this.onResize)}}var Q7=Q5.elementCreator();class T0 extends t{static preferredTagName="tosi-sizer";target=null;static shadowStyleSpec={":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:n.resizeIconFill}};content=w.resize();get minSize(){let{minWidth:l,minHeight:i}=getComputedStyle(this.target);return{width:parseFloat(l)||32,height:parseFloat(i)||32}}resizeTarget=(l)=>{let{target:i}=this;if(!i)return;let{offsetWidth:y,offsetHeight:s}=i;i.style.left=i.offsetLeft+"px",i.style.top=i.offsetTop+"px",i.style.bottom="",i.style.right="";let{minSize:h}=this;T(l,(x,o,c)=>{if(i.style.width=Math.max(h.width,y+x)+"px",i.style.height=Math.max(h.height,s+o)+"px",c.type==="mouseup")return!0},"nwse-resize")};connectedCallback(){if(super.connectedCallback(),!this.target)this.target=this.parentElement;let l={passive:!0};this.addEventListener("mousedown",this.resizeTarget,l),this.addEventListener("touchstart",this.resizeTarget,l)}}var G7=T0,hi=T0.elementCreator(),b7=hi;var{div:W7,input:f7,span:R7,button:G5}=a;class u2 extends t{static preferredTagName="tosi-tag";static lightStyleSpec={":host":{"--tag-close-button-color":"#000c","--tag-close-button-bg":"#fffc","--tag-button-opacity":"0.5","--tag-button-hover-opacity":"0.75","--tag-bg":d.brandColor("blue"),"--tag-text-color":d.brandTextColor("white"),display:"inline-flex",borderRadius:d.tagRoundedRadius(n.spacing50),color:n.tagTextColor,background:n.tagBg,padding:`0 ${n.spacing75} 0 ${n.spacing75}`,height:`calc(${n.lineHeight} + ${n.spacing50})`,lineHeight:`calc(${n.lineHeight} + ${n.spacing50})`},':host > [part="caption"]':{position:"relative",whiteSpace:"nowrap",overflow:"hidden",flex:"1 1 auto",fontSize:d.fontSize("16px"),color:n.tagTextColor,textOverflow:"ellipsis"},':host [part="remove"]':{boxShadow:"none",margin:`0 ${n.spacing_50} 0 ${n.spacing25}`,padding:0,display:"inline-flex",alignItems:"center",alignSelf:"center",justifyContent:"center",height:n.spacing150,width:n.spacing150,color:n.tagCloseButtonColor,background:n.tagCloseButtonBg,borderRadius:d.tagCloseButtonRadius("99px"),opacity:n.tagButtonOpacity},':host [part="remove"]:hover':{background:n.tagCloseButtonBg,opacity:n.tagButtonHoverOpacity}};static initAttributes={caption:"",removeable:!1};removeCallback=()=>{this.remove()};content=()=>[R7({part:"caption"},this.caption),G5(w.x(),{type:"button",part:"remove",hidden:!this.removeable,ariaLabel:`Remove ${this.caption}`,onClick:this.removeCallback})]}var Z7=u2,b5=u2.elementCreator(),H7=D((...l)=>b5(...l),"xinTag is deprecated, use tosiTag instead (tag is now <tosi-tag>)");class z2 extends t{static preferredTagName="tosi-tag-list";static lightStyleSpec={":host":{"--tag-list-bg":"#f8f8f8","--touch-size":"44px","--spacing":"16px",display:"grid",gridTemplateColumns:"auto",alignItems:"center",background:n.tagListBg,gap:n.spacing25,borderRadius:d.taglistRoundedRadius(n.spacing50),overflow:"hidden"},":host[editable]":{gridTemplateColumns:`0px auto ${n.touchSize}`},":host[editable][text-entry]":{gridTemplateColumns:`0px 2fr 1fr ${n.touchSize}`},':host [part="tagContainer"]':{display:"flex",content:'" "',alignItems:"center",background:n.inputBg,borderRadius:d.tagContainerRadius(n.spacing50),boxShadow:n.borderShadow,flexWrap:"nowrap",overflow:"auto hidden",gap:n.spacing25,minHeight:`calc(${n.lineHeight} + ${n.spacing})`,padding:n.spacing25},':host [part="tagMenu"]':{width:n.touchSize,height:n.touchSize,lineHeight:n.touchSize,textAlign:"center",padding:0,margin:0},":host [hidden]":{display:"none !important"},':host button[part="tagMenu"]':{background:n.brandColor,color:n.brandTextColor}};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((l)=>l.trim()).filter((l)=>l!=="")}set tags(l){this.value=l.join(",")}_availableTags=[];get availableTags(){return this._availableTags}set availableTags(l){if(typeof l==="string")this._availableTags=z2.parseAvailableTagsString(l);else this._availableTags=l;this.queueRender()}static parseAvailableTagsString(l){return l.split(",").map((i)=>{let y=i.trim();return y===""?null:y})}connectedCallback(){super.connectedCallback();let l=this.getAttribute("available-tags");if(l&&this._availableTags.length===0)this._availableTags=z2.parseAvailableTagsString(l)}formDisabledCallback(l){this.disabled=l}formResetCallback(){this.value=""}addTag=(l)=>{let i=l.trim();if(i===""||this.tags.includes(i))return;this.tags=[...this.tags,i],this.queueRender(!0)};toggleTag=(l)=>{if(this.tags.includes(l))this.tags=this.tags.filter((i)=>i!==l),this.queueRender(!0);else this.addTag(l)};enterTag=(l)=>{let{tagInput:i}=this.parts;switch(l.key){case",":{let y=i.value.split(",")[0];this.addTag(y)}break;case"Enter":{let y=i.value.split(",")[0];this.addTag(y)}l.stopPropagation(),l.preventDefault();break;default:}};popSelectMenu=()=>{let{toggleTag:l}=this,{tagMenu:i}=this.parts,y=[...this.availableTags],s=this.tags.filter((x)=>!y.includes(x));if(s.length)y.push(null,...s);let h=y.map((x)=>{if(x===""||x===null)return null;else if(typeof x==="object")return{checked:()=>this.tags.includes(x.value),caption:x.caption,action(){l(x.value)}};else return{checked:()=>this.tags.includes(x),caption:x,action(){l(x)}}});W({target:i,width:"auto",menuItems:h})};content=()=>[G5({type:"button",style:{visibility:"hidden"},tabindex:-1}),W7({part:"tagContainer",class:"row",role:"list",ariaLabel:"Selected tags"}),f7({part:"tagInput",class:"elastic",ariaLabel:"Enter new tag",onKeydown:this.enterTag}),G5({type:"button",title:"add tag",ariaLabel:"Select tags from list",ariaHaspopup:"listbox",part:"tagMenu",onClick:this.popSelectMenu},w.chevronDown())];removeTag=(l)=>{if(this.editable&&!this.disabled){let i=l.target.closest(u2.tagName);this.tags=this.tags.filter((y)=>y!==i.caption),i.remove(),this.queueRender(!0)}l.stopPropagation(),l.preventDefault()};render(){super.render();let{tagContainer:l,tagMenu:i,tagInput:y}=this.parts;if(i.disabled=this.disabled,y.value="",y.setAttribute("placeholder",this.placeholder),this.editable&&!this.disabled)i.toggleAttribute("hidden",!1),y.toggleAttribute("hidden",!this.textEntry);else i.toggleAttribute("hidden",!0),y.toggleAttribute("hidden",!0);l.textContent="";for(let s of this.tags)l.append(b5({caption:s,removeable:this.editable&&!this.disabled,removeCallback:this.removeTag}))}}var J7=z2,xi=z2.elementCreator(),$7=D((...l)=>xi(...l),"xinTagList is deprecated, use tosiTagList instead (tag is now <tosi-tag-list>)");var oi="1.3.8";var W5={accent:j.fromCss("#EE257B"),background:j.fromCss("#fafafa"),text:j.fromCss("#222222")},ci={_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 I7(l){let{accent:i,background:y,text:s}=l,h=l.accentText??i.contrasting(),x=l.backgroundInset??y.darken(0.03),o=l.border??s.opacity(0.15),c=l.shadow??s.opacity(0.1),r=l.focus??i.opacity(0.5);return{_tosiAccent:i,_tosiAccentLight:i.brighten(0.15),_tosiAccentDark:i.darken(0.15),_tosiAccentText:h,_tosiBg:y,_tosiBgInset:x,_tosiBgHover:y.darken(0.05),_tosiBgActive:y.darken(0.1),_tosiText:s,_tosiTextMuted:s.opacity(0.6),_tosiTextDisabled:s.opacity(0.4),_tosiBorder:o,_tosiBorderFocus:i,_tosiShadow:c,_tosiShadowColor:c,_tosiFocusRing:`0 0 0 2px ${r}`,_tosiInputBg:y,_tosiInputBorder:o,_tosiInputBorderFocus:i,_tosiButtonBg:y,_tosiButtonText:s,_tosiButtonBorder:o,_tosiButtonHoverBg:y.darken(0.05),_tosiButtonActiveBg:i,_tosiButtonActiveText:h}}function M0(l){return{":root":{...ci,...I7(l)}}}function ri(l){let y=M0(l)[":root"];return{":root":j4(y)}}function e7(l,i="tosi-theme"){D1(i,l)}var Y7=M0(W5),D7=ri(W5),Ci={"--xin-icon-size":n.tosiIconSize,"--xin-icon-fill":n.tosiIconFill,"--xin-icon-stroke":n.tosiIconStroke,"--xin-tabs-bar-color":n.tosiTabsBarColor,"--xin-tabs-bar-height":n.tosiTabsBarHeight,"--xin-tabs-selected-color":n.tosiTabsSelectedColor,"--spacing":n.tosiSpacing,"--gap":n.tosiSpacingSm,"--touch-size":n.tosiTouchSize,"--background":n.tosiBg,"--text-color":n.tosiText,"--brand-color":n.tosiAccent,"--brand-text-color":n.tosiAccentText};function S7(l){return{":root":{...M0(l)[":root"],...Ci}}}function T7(l,i){let y={};for(let[s,h]of Object.entries(i)){let x=`--tosi-${l}-${s.replace(/([A-Z])/g,"-$1").toLowerCase()}`;y[s]=`var(${x}, ${h})`}return y}Object.assign(globalThis,{xinjs:K2,xinjsui:f5});})();
97
+ `)}var{div:x7}=v;class i2 extends t{static preferredTagName="tosi-map";static formAssociated=!0;static initAttributes={coords:"65.01715565258993,25.48081004203459,12",token:"",mapStyle:"mapbox://styles/mapbox/streets-v12",name:""};value="";formDisabledCallback(l){}formResetCallback(){this.value="",this.coords="65.01715565258993,25.48081004203459,12"}content=x7({style:{width:"100%",height:"100%"}});get map(){return this._map}static mapboxCSSAvailable;static mapboxAvailable;_map;static shadowStyleSpec={":host":{display:"inline-block",position:"relative",width:"400px",height:"400px",textAlign:"left"}};constructor(){super();if(i2.mapboxCSSAvailable===void 0)i2.mapboxCSSAvailable=k0("https://api.mapbox.com/mapbox-gl-js/v3.15.0/mapbox-gl.css").catch((l)=>{console.error("failed to load mapbox-gl.css",l)}),i2.mapboxAvailable=L("https://api.mapbox.com/mapbox-gl-js/v3.15.0/mapbox-gl.js").catch((l)=>{console.error("failed to load mapbox-gl.js",l)})}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[h,x,o]=this.coords.split(",").map((c)=>Number(c));this._map.setCenter([x,h]),this._map.setZoom(o),this._lastCoords=this.coords}if(this.mapStyle!==this._lastStyle)this._map.setStyle(this.mapStyle),this._lastStyle=this.mapStyle;return}let{div:l}=this.parts,[i,y,s]=this.coords.split(",").map((h)=>Number(h));this._lastCoords=this.coords,this._lastStyle=this.mapStyle,i2.mapboxAvailable.then(({mapboxgl:h})=>{console.log("%cmapbox may complain about missing css -- don't panic!","background: orange; color: black; padding: 0 5px;"),h.accessToken=this.token,this._map=new h.Map({container:l,style:this.mapStyle,zoom:s,center:[y,i]}),this._map.on("render",()=>this._map.resize()),this._map.on("moveend",()=>{let x=this._map.getCenter(),o=this._map.getZoom(),c=`${x.lat.toFixed(6)},${x.lng.toFixed(6)},${o.toFixed(1)}`;if(c!==this.value){if(this.internals)this.internals.setFormValue(c)}})})}}var o7=i2.elementCreator();var{div:q5,span:Y0,button:_5}=v,T2=86400000,c7=[0,1,2,3,4,5,6],r7=[1,2,3,4,5,6,7,8,9,10,11,12],P5=(l,i=2,y="0")=>String(l).padStart(i,y),M2=(l,i,y)=>new Date(`${l}-${P5(i)}-${P5(y)}`);class F5 extends t{static preferredTagName="tosi-month";static lightStyleSpec={":host":{display:"block"},":host [part=header]":{display:"flex",alignItems:"stretch",justifyContent:"stretch"},":host[disabled]":{pointerEvents:"none",opacity:d.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:d.monthTodayBackground("transparent"),boxShadow:d.monthTodayShadow("none"),backdropFilter:d.monthTodayBackdropFilter("brightness(0.9)"),fontWeight:d.monthTodayFontWeight("800")},":host .day, :host .date":{padding:5,display:"flex",justifyContent:"center",userSelect:"none"},":host .day":{color:d.monthDayColor("hotpink"),background:d.monthDayBackground("white"),fontWeight:d.monthDayFontWeight("800")},":host .date":{cursor:"default"},":host .weekend":{background:d.monthWeekendBackground("#eee")},":host .date:not(.in-month)":{opacity:0.5},":host .date.checked":{color:d.monthDateCheckedColor("white"),background:d.monthDateCheckedBackground("hotpink")},":host:not([range]) .date.checked":{borderRadius:d.monthDateCheckedBorderRadius("10px")},":host .range-start":{borderTopLeftRadius:d.monthDateCheckedBorderRadius("10px"),borderBottomLeftRadius:d.monthDateCheckedBorderRadius("10px")},":host .range-end":{borderTopRightRadius:d.monthDateCheckedBorderRadius("10px"),borderBottomRightRadius:d.monthDateCheckedBorderRadius("10px")}};static formAssociated=!0;static initAttributes={month:NaN,year:NaN,weekStart:0,minDate:M2(new Date().getFullYear()-100,1,1).toISOString().split("T")[0],maxDate:M2(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(l){this.disabled=l}formResetCallback(){this.value="",this.selectedDays=[]}get endDay(){return 1-this.weekStart}get months(){return r7.map((l)=>({caption:M2(2025,l,1).toString().split(" ")[1],value:String(l)}))}get years(){let l=Number(this.minDate.split("-")[0]),i=Number(this.maxDate.split("-")[0]),y=[];for(let s=l;s<=i;s++)y.push(String(s));return y}monthChanged=(l,i)=>{};gotoMonth(l,i){if(this.month!==i||this.year!==l)this.month=i,this.year=l,this.monthChanged(l,i)}setMonth=()=>{this.gotoMonth(Number(this.parts.year.value),Number(this.parts.month.value))};get to(){return this.selectedDays[1]||""}set to(l){this.selectedDays[1]=l,this.selectedDays.splice(2)}get from(){return this.selectedDays[0]||""}set from(l){this.selectedDays[0]=l,this.selectedDays.splice(2)}clickDate=(l)=>{let i=l.target.getAttribute("title");this.selectDate(i)};keyDate=(l)=>{let i=!1;switch(l.code){case"Space":{let y=l.target.getAttribute("title");this.selectDate(y),i=!0;break}case"Tab":break;default:console.log(l)}if(i)l.preventDefault(),l.stopPropagation()};#l="";selectDate=(l)=>{if(this.#l=l,this.range){if(!this.to)this.selectedDays=[l,l];else if(this.from===l&&this.to===l)this.selectedDays=[];else if(this.from===l)this.from=this.to;else if(this.to===l)this.to=this.from;else if(l<this.from)this.from=l;else if(l>this.to)this.to=l;else this.to=l;this.value=`${this.from},${this.to}`}else if(this.multiple){if(this.selectedDays.includes(l))this.selectedDays.splice(this.selectedDays.indexOf(l),1);else this.selectedDays.push(l),this.selectedDays.sort();this.value=this.selectedDays.join(",")}else if(this.selectable)if(this.selectedDays.includes(l))this.value="",this.selectedDays=[];else this.value=l,this.selectedDays=[l]};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=(l)=>{if(!this.range)return this.selectedDays.includes(l);else if(this.range)return this.from&&l>=this.from&&l<=this.to;return!1};dateMenuItem=(l,i="")=>{return l=l.split("T")[0],{caption:i||l,enabled:()=>!l.startsWith(`${this.year}-${P5(this.month)}-`),action:()=>{this.gotoDate(l)}}};jumpMenu=()=>{W({target:this.parts.jump,menuItems:[this.dateMenuItem(new Date().toISOString(),"This Month"),...this.selectedDays.length===0?[]:[null],...this.selectedDays.map((l)=>this.dateMenuItem(l))]})};content=()=>[q5({part:"header"},_5({part:"previous",onClick:this.previousMonth},w.chevronLeft()),Y0({style:{flex:"1"}}),_5({part:"jump",onClick:this.jumpMenu},w.calendar()),E({part:"month",options:this.months,onChange:this.setMonth}),E({part:"year",options:[this.year],onChange:this.setMonth}),Y0({style:{flex:"1"}}),_5({part:"next",onClick:this.nextMonth},w.chevronRight())),q5({part:"week"}),q5({part:"days"})];gotoDate(l){let i=new Date(l);this.gotoMonth(i.getFullYear(),i.getMonth()+1)}connectedCallback(){super.connectedCallback();let l=new Date(this.value.split(",").pop()||Date.now());if(isNaN(this.month))this.month=l.getMonth()+1;if(isNaN(this.year))this.year=l.getFullYear()}days=[];render(){super.render();let{week:l,days:i,jump:y,month:s,year:h,previous:x,next:o}=this.parts;this.selectedDays=this.value?this.value.split(","):[];let c=M2(this.year,this.month,1),r=new Date(c.valueOf()-(7+c.getDay()-this.weekStart)%7*T2),C=this.month===12?1:this.month+1,g=new Date(M2(this.year+(this.month===12?1:0),C,1).valueOf()-T2),n=new Date(g.valueOf()+(this.weekStart*2+5+this.endDay-g.getDay())%7*T2),p=c7.map((F)=>new Date(r.valueOf()+F*T2).toString().split(" ")[0]);this.days=[];let z=new Date().toISOString().split("T")[0];for(let F=r.valueOf();F<=n.valueOf();F+=T2){let q=new Date(F),_=q.toISOString().split("T")[0];this.days.push({date:q,selected:!1,inMonth:q.getMonth()+1===this.month,isToday:_===z,isWeekend:q.getDay()%6===0,inRange:!!(this.from&&_>=this.from&&_<=this.to)})}s.value=String(this.month),h.value=String(this.year),s.disabled=h.disabled=y.disabled=x.disabled=o.disabled=this.disabled||this.readonly,h.options=this.years,l.textContent="",l.append(...p.map((F)=>Y0({class:"day"},F))),i.textContent="";let a=null,{to:A,from:P}=this;i.append(...this.days.map((F)=>{let q=["date"];if(F.inMonth)q.push("in-month");if(F.isToday)q.push("today");let _=F.date.toISOString().split("T")[0];if(this.checkDay(_))q.push("checked");if(q.push(F.isWeekend?"weekend":"weekday"),this.range){if(A===_)q.push("range-end");if(P===_)q.push("range-start")}let N=Y0({class:q.join(" "),title:_,onClick:this.clickDate,onKeydown:this.keyDate,tabindex:"0"},F.date.getDate());if(_===this.#l)a=N;return N})),a?.focus()}}var C7=F5.elementCreator();var{div:O5,button:g7}=v,k7={error:"red",warn:"orange",info:"royalblue",log:"gray",success:"green",progress:"royalblue"};class f1 extends t{static preferredTagName="tosi-notification";static singleton;static shadowStyleSpec={":host":{_notificationSpacing:8,_notificationWidth:360,_notificationPadding:`${k.notificationSpacing} ${k.notificationSpacing50} ${k.notificationSpacing} ${k.notificationSpacing200}`,_notificationBg:"#fafafa",_notificationAccentColor:"#aaa",_notificationTextColor:"#444",_notificationIconSize:k.notificationSpacing300,_notificationButtonSize:48,_notificationBorderWidth:"3px 0 0",_notificationBorderRadius:k.notificationSpacing50,position:"fixed",left:0,right:0,bottom:0,paddingBottom:k.notificationSpacing,width:k.notificationWidth,display:"flex",flexDirection:"column-reverse",margin:"0 auto",gap:k.notificationSpacing,maxHeight:"50vh",overflow:"hidden auto",boxShadow:"none !important"},":host *":{color:k.notificationTextColor},":host .note":{display:"grid",background:k.notificationBg,padding:k.notificationPadding,gridTemplateColumns:`${k.notificationIconSize} 1fr ${k.notificationButtonSize}`,gap:k.notificationSpacing,alignItems:"center",borderRadius:k.notificationBorderRadius,boxShadow:`0 2px 8px #0006, inset 0 0 0 2px ${k.notificationAccentColor}`,borderColor:k.notificationAccentColor,borderWidth:k.notificationBorderWidth,borderStyle:"solid",transition:"0.5s ease-in",transitionProperty:"margin, opacity",zIndex:1},":host .note .icon":{stroke:k.notificationAccentColor},":host .note button":{display:"flex",lineHeight:k.notificationButtonSize,padding:0,margin:0,height:k.notificationButtonSize,width:k.notificationButtonSize,background:"transparent",alignItems:"center",justifyContent:"center",boxShadow:"none",border:"none",position:"relative"},":host .note button:hover svg":{stroke:k.notificationAccentColor},":host .note button:active svg":{borderRadius:99,stroke:k.notificationBg,background:k.notificationAccentColor,padding:k.spacing50},":host .note svg":{height:k.notificationIconSize,width:k.notificationIconSize,pointerEvents:"none"},":host .message":{display:"flex",flexDirection:"column",alignItems:"center",gap:k.notificationSpacing},":host .note.closing":{opacity:0,zIndex:0}};static removeNote(l){l.classList.add("closing"),l.style.marginBottom=-l.offsetHeight+"px";let i=()=>{l.remove()};l.addEventListener("transitionend",i),setTimeout(i,1000)}static post(l){let{message:i,duration:y,type:s,close:h,progress:x,icon:o,color:c}=Object.assign({type:"info",duration:-1},typeof l==="string"?{message:l}:l);if(!this.singleton)this.singleton=U5();let r=this.singleton;document.body.append(r),r.style.zIndex=String(M1()+1);let C=c||k7[s],g=x||s==="progress"?v.progress():{},n=()=>{if(h)h();f1.removeNote(a)},p=o instanceof SVGElement?o:o?w[o]({class:"icon"}):w.info({class:"icon"}),z=s==="error"||s==="warn",a=O5({class:`note ${s}`,role:z?"alert":"status",ariaLive:z?"assertive":"polite",style:{_notificationAccentColor:C}},p,O5({class:"message"},O5(i),g),g7({class:"close",title:"close",ariaLabel:"Close notification",apply(A){A.addEventListener("click",n)}},w.x()));if(r.shadowRoot.append(a),g instanceof HTMLProgressElement&&x instanceof Function){g.setAttribute("max",String(100)),g.value=x();let A=setInterval(()=>{if(!r.shadowRoot.contains(a)){clearInterval(A);return}let P=x();if(g.value=P,P>=100)f1.removeNote(a)},1000)}if(y>0)setTimeout(()=>{f1.removeNote(a)},y*1000);return a.scrollIntoView(),n}content=null}var n7=f1,U5=f1.elementCreator(),d7=U5;function p7(l){return f1.post(l)}var el=async(l,i="SHA-1")=>{let s=new TextEncoder().encode(l),h=await crypto.subtle.digest(i,s);return Array.from(new Uint8Array(h)).map((c)=>c.toString(16).padStart(2,"0")).join("")},Tl=async(l)=>{let i=await el(l),y=await fetch(`https://weakpass.com/api/v1/search/${i}`);if(y.ok){let s=await y.json();console.log("password found in weakpass database",s)}return y.status!==404},{span:X5,xinSlot:w7}=v;class D0 extends t{static preferredTagName="tosi-password-strength";static lightStyleSpec={":host":{display:"inline-flex",flexDirection:"column",gap:k.spacing50,position:"relative"},":host xin-slot":{display:"flex"},':host [part="meter"]':{display:"block",position:"relative",height:d.meterHeight("24px"),background:d.indicatorBg("white"),borderRadius:d.meterRadius("4px"),boxShadow:d.meterShadow(`inset 0 0 0 2px ${k.indicatorColor}`)},':host [part="level"]':{height:d.levelHeight("20px"),content:'" "',display:"inline-block",width:0,transition:"0.15s ease-out",background:k.indicatorColor,margin:d.levelMargin("2px"),borderRadius:d.levelRadius("2px")},':host [part="description"]':{position:"absolute",inset:"0",color:k.descriptionColor,height:d.meterHeight("24px"),lineHeight:d.meterHeight("24px"),textAlign:"center"}};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(l){return this.issues={tooShort:l.length<this.minLength,short:l.length<this.goodLength,noUpper:!l.match(/[A-Z]/),noLower:!l.match(/[a-z]/),noNumber:!l.match(/[0-9]/),noSpecial:!l.match(/[^a-zA-Z0-9]/)},this.issues.tooShort?0:Object.values(this.issues).filter((i)=>!i).length-1}async isBreached(){let l=this.querySelector("input")?.value;if(!l||typeof l!=="string")return!0;return await Tl(l)}updateIndicator=(l)=>{let{level:i,description:y}=this.parts,s=this.indicatorColors.split(","),h=this.descriptionColors.split(","),x=this.strength(l);if(this.value!==x)this.value=x,this.dispatchEvent(new Event("change"));i.style.width=`${(x+1)*16.67}%`,this.style.setProperty("--indicator-color",s[x]),this.style.setProperty("--description-color",h[x]),y.textContent=this.strengthDescriptions[x]};update=(l)=>{let i=l.target.closest("input");this.updateIndicator(i?.value||"")};content=()=>[w7({onInput:this.update}),X5({part:"meter"},X5({part:"level"}),X5({part:"description"}))];render(){super.render();let l=this.querySelector("input");this.updateIndicator(l?.value)}}var a7=D0,Ml=D0.elementCreator(),v7=Ml;var{span:N5}=v;class S0 extends t{static preferredTagName="tosi-rating";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(l){this.readonly=l}formResetCallback(){this.value=""}static shadowStyleSpec={":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=()=>N5({part:"container"},N5({part:"empty"}),N5({part:"filled"}));displayValue(l){let{empty:i,filled:y}=this.parts,h=Math.round((typeof l==="string"?0:l||0)/this.step)*this.step;y.style.width=h/this.max*i.offsetWidth+"px"}update=(l)=>{if(this.readonly)return;let{empty:i}=this.parts,y=l instanceof MouseEvent?l.pageX-i.getBoundingClientRect().x:0,s=Math.min(Math.max(this.min,Math.round(y/i.offsetWidth*this.max/this.step+this.step*0.5)*this.step),this.max);if(l.type==="click")this.value=s;else if(l.type==="mousemove")this.displayValue(s);else this.displayValue(this.value||0)};handleKey=(l)=>{let i=this.value===""?NaN:Number(this.value);if(isNaN(i))i=Math.round((this.min+this.max)*0.5*this.step)*this.step;let y=!1;switch(l.key){case"ArrowUp":case"ArrowRight":i+=this.step,y=!0;break;case"ArrowDown":case"ArrowLeft":i-=this.step,y=!0;break}if(this.value=Math.max(Math.min(i,this.max),this.min),y)l.stopPropagation(),l.preventDefault()};connectedCallback(){super.connectedCallback();let{container:l}=this.parts;l.tabIndex=0,l.addEventListener("mousemove",this.update,!0),l.addEventListener("mouseleave",this.update),l.addEventListener("blur",this.update),l.addEventListener("click",this.update),l.addEventListener("keydown",this.handleKey)}_renderedIcon="";render(){super.render();let l=this.iconSize+"px";if(this.style.setProperty("--tosi-icon-size",l),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:i,filled:y}=this.parts;if(i.classList.toggle("hollow",this.hollow),i.style.setProperty("--tosi-icon-fill",this.emptyFill),i.style.setProperty("--tosi-icon-stroke",this.emptyStroke),y.style.setProperty("--tosi-icon-fill",this.ratingFill),y.style.setProperty("--tosi-icon-stroke",this.ratingStroke),this._renderedIcon!==this.icon){this._renderedIcon=this.icon;for(let s=0;s<this.max;s++)i.append(w[this.icon]()),y.append(w[this.icon]())}this.displayValue(this.value)}}var B7=S0,ul=S0.elementCreator(),t7=S((...l)=>ul(...l),"xinRating is deprecated, use tosiRating instead (tag is now <tosi-rating>)");var{xinSlot:ml,div:z7,button:j7,span:Ll}=v,A7=[{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 K5(l=A7){return E({title:"paragraph style",slot:"toolbar",class:"block-style",options:l.map(({caption:i,tagType:y})=>({caption:i,value:`formatBlock,${y}`}))})}function B2(l="10px"){return Ll({slot:"toolbar",style:{flex:`0 0 ${l}`,content:" "}})}function V7(l="10px"){return Ll({slot:"toolbar",style:{flex:`0 0 ${l}`,content:" "}})}function g1(l,i,y){return j7({slot:"toolbar",dataCommand:i,title:l},y)}var q7=()=>[g1("left-justify","justifyLeft",w.alignLeft()),g1("center","justifyCenter",w.alignCenter()),g1("right-justify","justifyRight",w.alignRight()),B2(),g1("bullet list","insertUnorderedList",w.listBullet()),g1("numbered list","insertOrderedList",w.listNumber()),B2(),g1("indent","indent",w.indent()),g1("indent","outdent",w.outdent())],El=()=>[g1("bold","bold",w.fontBold()),g1("italic","italic",w.fontItalic()),g1("underline","underline",w.fontUnderline())],_7=()=>[K5(),B2(),...El()],li=()=>[K5(),B2(),...q7(),B2(),...El()];class e0 extends t{static preferredTagName="tosi-rich-text";static lightStyleSpec={":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}};static formAssociated=!0;static initAttributes={widgets:"default",name:"",required:!1};isInitialized=!1;savedValue="";formDisabledCallback(l){if(this.isInitialized)this.parts.doc.contentEditable=l?"false":"true"}formResetCallback(){this.value=""}_value="";get value(){return this.isInitialized?this.parts.doc.innerHTML:this._value}set value(l){let i=this._value;if(this._value=l,this.isInitialized){if(this.parts.doc.innerHTML!==l)this.parts.doc.innerHTML=l}if(i!==l&&this.internals)this.internals.setFormValue(l)}blockElement(l){let{doc:i}=this.parts;while(l.parentElement!==null&&l.parentElement!==i)l=l.parentElement;return l.parentElement===i?l:void 0}get selectedBlocks(){let{doc:l}=this.parts,i=window.getSelection();if(i===null)return[];let y=[];for(let s=0;s<i.rangeCount;s++){let h=i.getRangeAt(s);if(!l.contains(h.commonAncestorContainer))continue;let x=this.blockElement(h.startContainer),o=this.blockElement(h.endContainer);y.push(x);while(x!==o&&x!==null)x=x.nextElementSibling,y.push(x)}return y}get selectedText(){let l=window.getSelection();if(l===null)return"";return this.selectedBlocks.length?l.toString():""}selectionChange=()=>{};_updatingBlockStyle=!1;handleSelectChange=(l)=>{if(this._updatingBlockStyle)return;let y=l.target?.closest(B1.tagName);if(y==null)return;this.doCommand(y.value)};handleButtonClick=(l)=>{let y=l.target?.closest("button");if(y==null)return;this.doCommand(y.dataset.command)};content=[ml({name:"toolbar",part:"toolbar",onClick:this.handleButtonClick,onChange:this.handleSelectChange}),z7({part:"doc",contenteditable:!0,style:{flex:"1 1 auto",outline:"none"}}),ml({part:"content"})];doCommand(l){if(l===void 0)return;let i=l.split(",");console.log("execCommand",i[0],!1,...i.slice(1)),document.execCommand(i[0],!1,...i.slice(1))}updateBlockStyle(){let l=this.parts.toolbar.querySelector(".block-style");if(l===null)return;let i=this.selectedBlocks.map((y)=>y.tagName);i=[...new Set(i)],this._updatingBlockStyle=!0,l.value=i.length===1?`formatBlock,${i[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:l,content:i}=this.parts;if(i.innerHTML!==""&&l.innerHTML==="")l.innerHTML=i.innerHTML,i.innerHTML="";this.isInitialized=!0,i.style.display="none",l.addEventListener("input",this.handleInput),this.updateValidity(),document.addEventListener("selectionchange",(y)=>{this.updateBlockStyle(),this.selectionChange(y,this)})}render(){let{toolbar:l}=this.parts;if(super.render(),l.children.length===0)switch(this.widgets){case"minimal":l.append(..._7());break;case"default":l.append(...li());break}}}var P7=e0,ii=e0.elementCreator(),F7=S((...l)=>ii(...l),"richText is deprecated, use tosiRichText instead (tag is now <tosi-rich-text>)");var{div:O7,slot:U7,label:X7,span:N7,input:yi}=v;class t2 extends t{static preferredTagName="tosi-segmented";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(l){if(typeof l==="string")this._choices=t2.parseChoicesString(l);else this._choices=l;this.queueRender()}static parseChoicesString(l){return l.split(",").filter((i)=>i.trim()!=="").map((i)=>{let[y,s]=i.split("=").map((c)=>c.trim()),[h,x]=(s||y).split(":").map((c)=>c.trim()),o=x?w[x]():"";return{value:y,icon:o,caption:h}})}value="";formDisabledCallback(l){}formResetCallback(){this.value=""}get values(){return(this.value||"").split(",").map((l)=>l.trim()).filter((l)=>l!=="")}content=()=>[U7(),O7({part:"options"},yi({part:"custom",hidden:!0}))];static shadowStyleSpec={":host":{display:"inline-flex",gap:d.segmentedOptionGap("8px"),alignItems:d.segmentedAlignItems("center")},":host, :host::part(options)":{flexDirection:d.segmentedDirection("row")},":host label":{display:"inline-grid",alignItems:"center",gap:d.segmentedOptionGap("8px"),gridTemplateColumns:d.segmentedOptionGridColumns("0px 24px 1fr"),padding:d.segmentedOptionPadding("4px 12px"),font:d.segmentedOptionFont("16px")},":host label:focus":{outline:"none",boxShadow:d.segmentedFocusShadow(`inset 0 0 0 2px ${d.segmentedOptionCurrentBackground("#44a")}`),borderRadius:d.segmentedOptionsBorderRadius("8px")},":host label:has(:checked)":{color:d.segmentedOptionCurrentColor("#eee"),background:d.segmentedOptionCurrentBackground("#44a")},":host label:has(:checked):focus":{boxShadow:d.segmentedCurrentFocusShadow(`inset 0 0 0 2px ${d.segmentedOptionCurrentColor("#eee")}`)},":host svg":{height:d.segmentOptionIconSize("16px"),stroke:d.segmentedOptionIconColor("currentColor")},":host label.no-icon":{gap:0,gridTemplateColumns:d.segmentedOptionGridColumns("0px 1fr")},':host input[type="radio"], :host input[type="checkbox"]':{visibility:d.segmentedInputVisibility("hidden")},":host::part(options)":{display:"flex",borderRadius:d.segmentedOptionsBorderRadius("8px"),background:d.segmentedOptionsBackground("#fff"),color:d.segmentedOptionColor("#222"),overflow:"hidden",alignItems:d.segmentedOptionAlignItems("stretch")},":host::part(custom)":{padding:d.segmentedOptionPadding("4px 12px"),color:d.segmentedOptionCurrentColor("#eee"),background:d.segmentedOptionCurrentBackground("#44a"),font:d.segmentedOptionFont("16px"),border:"0",outline:"none"},":host::part(custom)::placeholder":{color:d.segmentedOptionCurrentColor("#eee"),opacity:d.segmentedPlaceholderOpacity(0.75)}};valueChanged=!1;handleChange=()=>{let{options:l,custom:i}=this.parts;if(this.multiple){let y=[...l.querySelectorAll("input:checked")];this.value=y.map((s)=>s.value).join(",")}else{let y=l.querySelector("input:checked");if(!y)this.value="";else if(y.value)i.setAttribute("hidden",""),this.value=y.value;else i.removeAttribute("hidden"),i.focus(),i.select(),this.value=i.value}this.valueChanged=!0};handleKey=(l)=>{let i=!1;switch(l.code){case"Space":if(l.target instanceof HTMLLabelElement)l.target.click(),i=!0;break;case"Tab":if(!(l.target instanceof HTMLLabelElement))l.target.closest("label").focus();break;case"ArrowLeft":case"ArrowUp":{let y=l.target.closest("label");if(y.previousElementSibling instanceof HTMLLabelElement)y.previousElementSibling.focus()}i=!0;break;case"ArrowRight":case"ArrowDown":{let y=l.target.closest("label");if(y.nextElementSibling instanceof HTMLLabelElement)y.nextElementSibling.focus()}i=!0;break}if(i)l.preventDefault(),l.stopPropagation()};connectedCallback(){super.connectedCallback();let l=this.getAttribute("choices");if(l&&this._choices.length===0)this._choices=t2.parseChoicesString(l);let{options:i}=this.parts;if(this.name==="")this.name=this.instanceId;if(i.addEventListener("change",this.handleChange),i.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 l=[...this.choices];if(this.other&&!this.multiple){let[i,y]=this.other.split(":");l.push({value:"",caption:i,icon:y})}return l}get isOtherValue(){return Boolean(this.value===""||this.value&&!this._choicesWithOther.find((l)=>l.value===this.value))}render(){if(super.render(),this.valueChanged){this.valueChanged=!1;return}let{options:l,custom:i}=this.parts;l.textContent="";let y=this.multiple?"checkbox":"radio",{values:s,isOtherValue:h}=this;if(l.append(...this._choicesWithOther.map((x)=>{return X7({tabindex:0},yi({type:y,name:this.name,value:x.value,checked:s.includes(x.value)||x.value===""&&h,tabIndex:-1}),x.icon||{class:"no-icon"},this.localized?z1(x.caption):N7(x.caption))})),this.other&&!this.multiple)i.hidden=!h,i.value=h?this.value:"",i.placeholder=this.placeholder,l.append(i)}}var K7=t2,si=t2.elementCreator(),Q7=S((...l)=>si(...l),"xinSegmented is deprecated, use tosiSegmented instead (tag is now <tosi-segmented>)");var{slot:hi}=v;class Q5 extends t{static preferredTagName="tosi-sizebreak";static initAttributes={minWidth:0,minHeight:0};value="normal";content=[hi({part:"normal"}),hi({part:"small",name:"small"})];static shadowStyleSpec={":host":{display:"inline-block",position:"relative"}};onResize=()=>{let{normal:l,small:i}=this.parts,y=this.offsetParent;if(!(y instanceof HTMLElement))return;else if(y.offsetWidth<this.minWidth||y.offsetHeight<this.minHeight)l.hidden=!0,i.hidden=!1,this.value="small";else l.hidden=!1,i.hidden=!0,this.value="normal"};connectedCallback(){super.connectedCallback(),globalThis.addEventListener("resize",this.onResize)}disconnectedCallback(){super.disconnectedCallback(),globalThis.removeEventListener("resize",this.onResize)}}var G7=Q5.elementCreator();class T0 extends t{static preferredTagName="tosi-sizer";target=null;static shadowStyleSpec={":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:k.resizeIconFill}};content=w.resize();get minSize(){let{minWidth:l,minHeight:i}=getComputedStyle(this.target);return{width:parseFloat(l)||32,height:parseFloat(i)||32}}resizeTarget=(l)=>{let{target:i}=this;if(!i)return;let{offsetWidth:y,offsetHeight:s}=i;i.style.left=i.offsetLeft+"px",i.style.top=i.offsetTop+"px",i.style.bottom="",i.style.right="";let{minSize:h}=this;T(l,(x,o,c)=>{if(i.style.width=Math.max(h.width,y+x)+"px",i.style.height=Math.max(h.height,s+o)+"px",c.type==="mouseup")return!0},"nwse-resize")};connectedCallback(){if(super.connectedCallback(),!this.target)this.target=this.parentElement;let l={passive:!0};this.addEventListener("mousedown",this.resizeTarget,l),this.addEventListener("touchstart",this.resizeTarget,l)}}var b7=T0,xi=T0.elementCreator(),W7=xi;var{div:f7,input:R7,span:Z7,button:G5}=v;class u2 extends t{static preferredTagName="tosi-tag";static lightStyleSpec={":host":{"--tag-close-button-color":"#000c","--tag-close-button-bg":"#fffc","--tag-button-opacity":"0.5","--tag-button-hover-opacity":"0.75","--tag-bg":d.brandColor("blue"),"--tag-text-color":d.brandTextColor("white"),display:"inline-flex",borderRadius:d.tagRoundedRadius(k.spacing50),color:k.tagTextColor,background:k.tagBg,padding:`0 ${k.spacing75} 0 ${k.spacing75}`,height:`calc(${k.lineHeight} + ${k.spacing50})`,lineHeight:`calc(${k.lineHeight} + ${k.spacing50})`},':host > [part="caption"]':{position:"relative",whiteSpace:"nowrap",overflow:"hidden",flex:"1 1 auto",fontSize:d.fontSize("16px"),color:k.tagTextColor,textOverflow:"ellipsis"},':host [part="remove"]':{boxShadow:"none",margin:`0 ${k.spacing_50} 0 ${k.spacing25}`,padding:0,display:"inline-flex",alignItems:"center",alignSelf:"center",justifyContent:"center",height:k.spacing150,width:k.spacing150,color:k.tagCloseButtonColor,background:k.tagCloseButtonBg,borderRadius:d.tagCloseButtonRadius("99px"),opacity:k.tagButtonOpacity},':host [part="remove"]:hover':{background:k.tagCloseButtonBg,opacity:k.tagButtonHoverOpacity}};static initAttributes={caption:"",removeable:!1};removeCallback=()=>{this.remove()};content=()=>[Z7({part:"caption"},this.caption),G5(w.x(),{type:"button",part:"remove",hidden:!this.removeable,ariaLabel:`Remove ${this.caption}`,onClick:this.removeCallback})]}var H7=u2,b5=u2.elementCreator(),J7=S((...l)=>b5(...l),"xinTag is deprecated, use tosiTag instead (tag is now <tosi-tag>)");class z2 extends t{static preferredTagName="tosi-tag-list";static lightStyleSpec={":host":{"--tag-list-bg":"#f8f8f8","--touch-size":"44px","--spacing":"16px",display:"grid",gridTemplateColumns:"auto",alignItems:"center",background:k.tagListBg,gap:k.spacing25,borderRadius:d.taglistRoundedRadius(k.spacing50),overflow:"hidden"},":host[editable]":{gridTemplateColumns:`0px auto ${k.touchSize}`},":host[editable][text-entry]":{gridTemplateColumns:`0px 2fr 1fr ${k.touchSize}`},':host [part="tagContainer"]':{display:"flex",content:'" "',alignItems:"center",background:k.inputBg,borderRadius:d.tagContainerRadius(k.spacing50),boxShadow:k.borderShadow,flexWrap:"nowrap",overflow:"auto hidden",gap:k.spacing25,minHeight:`calc(${k.lineHeight} + ${k.spacing})`,padding:k.spacing25},':host [part="tagMenu"]':{width:k.touchSize,height:k.touchSize,lineHeight:k.touchSize,textAlign:"center",padding:0,margin:0},":host [hidden]":{display:"none !important"},':host button[part="tagMenu"]':{background:k.brandColor,color:k.brandTextColor}};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((l)=>l.trim()).filter((l)=>l!=="")}set tags(l){this.value=l.join(",")}_availableTags=[];get availableTags(){return this._availableTags}set availableTags(l){if(typeof l==="string")this._availableTags=z2.parseAvailableTagsString(l);else this._availableTags=l;this.queueRender()}static parseAvailableTagsString(l){return l.split(",").map((i)=>{let y=i.trim();return y===""?null:y})}connectedCallback(){super.connectedCallback();let l=this.getAttribute("available-tags");if(l&&this._availableTags.length===0)this._availableTags=z2.parseAvailableTagsString(l)}formDisabledCallback(l){this.disabled=l}formResetCallback(){this.value=""}addTag=(l)=>{let i=l.trim();if(i===""||this.tags.includes(i))return;this.tags=[...this.tags,i],this.queueRender(!0)};toggleTag=(l)=>{if(this.tags.includes(l))this.tags=this.tags.filter((i)=>i!==l),this.queueRender(!0);else this.addTag(l)};enterTag=(l)=>{let{tagInput:i}=this.parts;switch(l.key){case",":{let y=i.value.split(",")[0];this.addTag(y)}break;case"Enter":{let y=i.value.split(",")[0];this.addTag(y)}l.stopPropagation(),l.preventDefault();break;default:}};popSelectMenu=()=>{let{toggleTag:l}=this,{tagMenu:i}=this.parts,y=[...this.availableTags],s=this.tags.filter((x)=>!y.includes(x));if(s.length)y.push(null,...s);let h=y.map((x)=>{if(x===""||x===null)return null;else if(typeof x==="object")return{checked:()=>this.tags.includes(x.value),caption:x.caption,action(){l(x.value)}};else return{checked:()=>this.tags.includes(x),caption:x,action(){l(x)}}});W({target:i,width:"auto",menuItems:h})};content=()=>[G5({type:"button",style:{visibility:"hidden"},tabindex:-1}),f7({part:"tagContainer",class:"row",role:"list",ariaLabel:"Selected tags"}),R7({part:"tagInput",class:"elastic",ariaLabel:"Enter new tag",onKeydown:this.enterTag}),G5({type:"button",title:"add tag",ariaLabel:"Select tags from list",ariaHaspopup:"listbox",part:"tagMenu",onClick:this.popSelectMenu},w.chevronDown())];removeTag=(l)=>{if(this.editable&&!this.disabled){let i=l.target.closest(u2.tagName);this.tags=this.tags.filter((y)=>y!==i.caption),i.remove(),this.queueRender(!0)}l.stopPropagation(),l.preventDefault()};render(){super.render();let{tagContainer:l,tagMenu:i,tagInput:y}=this.parts;if(i.disabled=this.disabled,y.value="",y.setAttribute("placeholder",this.placeholder),this.editable&&!this.disabled)i.toggleAttribute("hidden",!1),y.toggleAttribute("hidden",!this.textEntry);else i.toggleAttribute("hidden",!0),y.toggleAttribute("hidden",!0);l.textContent="";for(let s of this.tags)l.append(b5({caption:s,removeable:this.editable&&!this.disabled,removeCallback:this.removeTag}))}}var $7=z2,oi=z2.elementCreator(),I7=S((...l)=>oi(...l),"xinTagList is deprecated, use tosiTagList instead (tag is now <tosi-tag-list>)");var ci="1.3.10";var W5={accent:j.fromCss("#EE257B"),background:j.fromCss("#fafafa"),text:j.fromCss("#222222")},ri={_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 Y7(l){let{accent:i,background:y,text:s}=l,h=l.accentText??i.contrasting(),x=l.backgroundInset??y.darken(0.03),o=l.border??s.opacity(0.15),c=l.shadow??s.opacity(0.1),r=l.focus??i.opacity(0.5);return{_tosiAccent:i,_tosiAccentLight:i.brighten(0.15),_tosiAccentDark:i.darken(0.15),_tosiAccentText:h,_tosiBg:y,_tosiBgInset:x,_tosiBgHover:y.darken(0.05),_tosiBgActive:y.darken(0.1),_tosiText:s,_tosiTextMuted:s.opacity(0.6),_tosiTextDisabled:s.opacity(0.4),_tosiBorder:o,_tosiBorderFocus:i,_tosiShadow:c,_tosiShadowColor:c,_tosiFocusRing:`0 0 0 2px ${r}`,_tosiInputBg:y,_tosiInputBorder:o,_tosiInputBorderFocus:i,_tosiButtonBg:y,_tosiButtonText:s,_tosiButtonBorder:o,_tosiButtonHoverBg:y.darken(0.05),_tosiButtonActiveBg:i,_tosiButtonActiveText:h}}function M0(l){return{":root":{...ri,...Y7(l)}}}function Ci(l){let y=M0(l)[":root"];return{":root":j4(y)}}function D7(l,i="tosi-theme"){S1(i,l)}var S7=M0(W5),e7=Ci(W5),gi={"--xin-icon-size":k.tosiIconSize,"--xin-icon-fill":k.tosiIconFill,"--xin-icon-stroke":k.tosiIconStroke,"--xin-tabs-bar-color":k.tosiTabsBarColor,"--xin-tabs-bar-height":k.tosiTabsBarHeight,"--xin-tabs-selected-color":k.tosiTabsSelectedColor,"--spacing":k.tosiSpacing,"--gap":k.tosiSpacingSm,"--touch-size":k.tosiTouchSize,"--background":k.tosiBg,"--text-color":k.tosiText,"--brand-color":k.tosiAccent,"--brand-text-color":k.tosiAccentText};function T7(l){return{":root":{...M0(l)[":root"],...gi}}}function M7(l,i){let y={};for(let[s,h]of Object.entries(i)){let x=`--tosi-${l}-${s.replace(/([A-Z])/g,"-$1").toLowerCase()}`;y[s]=`var(${x}, ${h})`}return y}Object.assign(globalThis,{xinjs:K2,xinjsui:f5});})();
98
98
 
99
- //# debugId=AB7284301FF0EE5964756E2164756E21
99
+ //# debugId=5131ADFBE051C00464756E2164756E21
100
100
  //# sourceMappingURL=iife.js.map