tosijs-ui 1.0.13 → 1.0.14

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,75 +1,75 @@
1
- (()=>{var i2=Object.defineProperty;var Ft=(e,t)=>{for(var i in t)i2(e,i,{get:t[i],enumerable:!0,configurable:!0,set:(s)=>t[i]=()=>s})};var yi={};Ft(yi,{xrControllersText:()=>$l,xrControllers:()=>Rl,xinTagList:()=>kn,xinTag:()=>Zs,xinSizer:()=>gn,xinSelect:()=>V,xinSegmented:()=>yn,xinRating:()=>tn,xinPasswordStrength:()=>en,xinNotification:()=>Ns,xinMenu:()=>uo,xinLocalized:()=>Q,xinForm:()=>ql,xinFloat:()=>gt,xinField:()=>_l,xinCarousel:()=>io,version:()=>Ys,updateLocalized:()=>u1,trackDrag:()=>T,tosijs:()=>We,tosiMonth:()=>Jl,tosiDialog:()=>kt,tabSelector:()=>q1,svgIcon:()=>Y2,svg2DataUrl:()=>a1,styleSheet:()=>xt,spacer:()=>Se,sizeBreak:()=>un,sideNav:()=>R1,setLocale:()=>ro,scriptTag:()=>F,richTextWidgets:()=>Ks,richText:()=>cn,removeLastMenu:()=>le,postNotification:()=>Yl,positionFloat:()=>Yi,popMenu:()=>S,popFloat:()=>y1,menu:()=>as,markdownViewer:()=>D1,mapBox:()=>Wl,makeSorter:()=>ft,localize:()=>L,localePicker:()=>ho,liveExample:()=>N1,legacyAliases:()=>t2,isBreached:()=>$s,initLocalization:()=>po,icons:()=>u,i18n:()=>E,gamepadText:()=>Nl,gamepadState:()=>qs,findHighestZ:()=>ye,filterPart:()=>Et,filterBuilder:()=>Sl,elastic:()=>nn,editableRect:()=>Hl,dragAndDrop:()=>vt,digest:()=>Rs,defineIcons:()=>Z2,defaultColors:()=>xi,dataTable:()=>Mo,createThemeWithLegacy:()=>Bn,createTheme:()=>jt,createSubMenu:()=>ls,createMenuItem:()=>ns,createMenuAction:()=>os,createDocBrowser:()=>Ll,createDarkTheme:()=>e2,componentVars:()=>zn,commandButton:()=>R,colorInput:()=>x1,codeEditor:()=>Ke,bringToFront:()=>se,bodymovinPlayer:()=>eo,blockStyle:()=>ni,baseVariables:()=>Xs,baseTheme:()=>bn,baseDarkTheme:()=>Mn,b3d:()=>X2,availableFilters:()=>G1,applyTheme:()=>wn,abTest:()=>Q2,XinTagList:()=>hi,XinTag:()=>Pt,XinSizer:()=>pi,XinSelect:()=>ue,XinSegmented:()=>ri,XinRating:()=>li,XinPasswordStrength:()=>si,XinNotification:()=>we,XinMenu:()=>m1,XinLocalized:()=>O,XinForm:()=>et,XinFloat:()=>oe,XinField:()=>Ht,XinCarousel:()=>d1,TosiMonth:()=>ei,TosiDialog:()=>L1,TabSelector:()=>_1,SvgIcon:()=>r1,SizeBreak:()=>ci,SideNav:()=>Te,RichText:()=>ai,MarkdownViewer:()=>I1,MapBox:()=>Ce,LocalePicker:()=>g1,LiveExample:()=>je,FilterPart:()=>K1,FilterBuilder:()=>J1,EditableRect:()=>N,DataTable:()=>w1,CodeEditor:()=>xe,BodymovinPlayer:()=>He,B3d:()=>c1,AbTest:()=>Ee});var We={};Ft(We,{xinValue:()=>j,xinProxy:()=>Wi,xinPath:()=>ze,xin:()=>H,version:()=>Ui,vars:()=>c,varDefault:()=>h,updates:()=>n2,unobserve:()=>at,touchElement:()=>e1,touch:()=>Be,tosi:()=>J,throttle:()=>qe,svgElements:()=>pt,settings:()=>ot,on:()=>Le,observe:()=>Ue,mathML:()=>$i,makeComponent:()=>s1,invertLuminance:()=>Qt,initVars:()=>H2,hotReload:()=>U2,getListItem:()=>he,getListInstance:()=>Jt,getListBinding:()=>Kt,getCssVar:()=>Ii,elements:()=>f,deleteListItem:()=>C2,debounce:()=>ct,css:()=>Ne,boxedProxy:()=>i1,boxed:()=>rt,blueprintLoader:()=>J2,blueprint:()=>K2,bindings:()=>ee,bind:()=>X,StyleSheet:()=>$e,MoreMath:()=>B2,Component:()=>m,Color:()=>k,BlueprintLoader:()=>o1,Blueprint:()=>dt});var ot={debug:!1,perf:!1};function pe(e){if(e==null||typeof e!=="object")return e;if(e instanceof Set)return new Set(e);else if(Array.isArray(e))return e.map(pe);let t={};for(let i in e){let s=e[i];if(e!=null&&typeof e==="object")t[i]=pe(s);else t[i]=s}return t}var zi="-xin-data",Me=`.${zi}`,Li="-xin-event",ui=`.${Li}`,K="xinPath",Ve="xinValue",s2="xinObserve",o2="xinBind",l2="xinOn",_t=Symbol("list-binding"),qt=Symbol("list-instance"),ze=(e)=>{return e&&e[K]||void 0};function j(e){return typeof e==="object"&&e!==null?e[Ve]||e:e}var Ie=new WeakMap,de=new WeakMap,De=(e)=>{let t=e.cloneNode();if(t instanceof Element){let i=de.get(e),s=Ie.get(e);if(i!=null)de.set(t,pe(i));if(s!=null)Ie.set(t,pe(s))}for(let i of Array.from(e instanceof HTMLTemplateElement?e.content.childNodes:e.childNodes))if(i instanceof Element||i instanceof DocumentFragment)t.appendChild(De(i));else t.appendChild(i.cloneNode());return t},gi=Symbol("observer should be removed"),lt=[],nt=[],Nt=!1,Rt,$t;class Ei{description;test;callback;constructor(e,t){let i=typeof t==="string"?`"${t}"`:`function ${t.name}`,s;if(typeof e==="string")this.test=(o)=>typeof o==="string"&&o!==""&&(e.startsWith(o)||o.startsWith(e)),s=`test = "${e}"`;else if(e instanceof RegExp)this.test=e.test.bind(e),s=`test = "${e.toString()}"`;else if(e instanceof Function)this.test=e,s=`test = function ${e.name}`;else throw Error("expect listener test to be a string, RegExp, or test function");if(this.description=`${s}, ${i}`,typeof t==="function")this.callback=t;else throw Error("expect callback to be a path or function");lt.push(this)}}var n2=async()=>{if(Rt===void 0)return;await Rt},a2=()=>{if(ot.perf)console.time("xin async update");let e=Array.from(nt);for(let t of e)lt.filter((i)=>{let s;try{s=i.test(t)}catch(o){throw Error(`Listener ${i.description} threw "${o}" at "${t}"`)}if(s===gi)return at(i),!1;return s}).forEach((i)=>{let s;try{s=i.callback(t)}catch(o){console.error(`Listener ${i.description} threw "${o}" handling "${t}"`)}if(s===gi)at(i)});if(nt.splice(0),Nt=!1,typeof $t==="function")$t();if(ot.perf)console.timeEnd("xin async update")},Be=(e)=>{let t=typeof e==="string"?e:ze(e);if(t===void 0)throw console.error("touch was called on an invalid target",e),Error("touch was called on an invalid target");if(Nt===!1)Rt=new Promise((i)=>{$t=i}),Nt=setTimeout(a2);if(nt.find((i)=>t.startsWith(i))==null)nt.push(t)},Hi=(e,t)=>{return new Ei(e,t)},at=(e)=>{let t=lt.indexOf(e);if(t>-1)lt.splice(t,1);else throw Error("unobserve failed, listener not found")},r2=(e)=>{try{return JSON.stringify(e)}catch(t){return"{has circular references}"}},Ai=(...e)=>Error(e.map(r2).join(" ")),c2=()=>new Date(parseInt("1000000000",36)+Date.now()).valueOf().toString(36).slice(1),p2=0,d2=()=>(parseInt("10000",36)+ ++p2).toString(36).slice(-5),h2=()=>c2()+d2(),Ut=Symbol("delete"),Pi=Symbol("new-object"),Ot=Symbol("automatic-index");function ji(e){if(e==="")return[];if(Array.isArray(e))return e;else{let t=[];while(e.length>0){let i=e.search(/\[[^\]]+\]/);if(i===-1){t.push(e.split("."));break}else{let s=e.slice(0,i);if(e=e.slice(i),s!=="")t.push(s.split("."));if(i=e.indexOf("]")+1,t.push(e.slice(1,i-1)),e.slice(i,i+1)===".")i+=1;e=e.slice(i)}}return t}}var G=new WeakMap;function Ti(e,t){if(G.get(e)===void 0)G.set(e,{});if(G.get(e)[t]===void 0)G.get(e)[t]={};let i=G.get(e)[t];if(t==="_auto_")e.forEach((s,o)=>{if(s[Ot]===void 0)s[Ot]=h2();i[s[Ot]+""]=o});else e.forEach((s,o)=>{i[_e(s,t)+""]=o});return i}function x2(e,t){if(G.get(e)===void 0||G.get(e)[t]===void 0)return Ti(e,t);else return G.get(e)[t]}function y2(e,t,i){i=i+"";let s=x2(e,t)[i];if(s===void 0||_e(e[s],t)+""!==i)s=Ti(e,t)[i];return s}function u2(e,t,i){if(e[t]===void 0&&i!==void 0)e[t]=i;return e[t]}function Si(e,t,i,s){let o=t!==""?y2(e,t,i):i;if(s===Ut)return e.splice(o,1),G.delete(e),Symbol("deleted");else if(s===Pi){if(t===""&&e[o]===void 0)e[o]={}}else if(s!==void 0)if(o!==void 0)e[o]=s;else if(t!==""&&_e(s,t)+""===i+"")e.push(s),o=e.length-1;else throw Error(`byIdPath insert failed at [${t}=${i}]`);return e[o]}function fi(e){if(!Array.isArray(e))throw Ai("setByPath failed: expected array, found",e)}function mi(e){if(e==null||!(e instanceof Object))throw Ai("setByPath failed: expected Object, found",e)}function _e(e,t){let i=ji(t),s=e,o,l,n,a;for(o=0,l=i.length;s!==void 0&&o<l;o++){let r=i[o];if(Array.isArray(r))for(n=0,a=r.length;s!==void 0&&n<a;n++){let p=r[n];s=s[p]}else if(s.length===0){if(s=s[Number(r.slice(1))],r[0]!=="=")return}else if(r.includes("=")){let[p,...d]=r.split("=");s=Si(s,p,d.join("="))}else n=parseInt(r,10),s=s[n]}return s}function g2(e,t,i){let s=e;if(t==="")throw Error("setByPath cannot be used to set the root object");let o=ji(t);while(s!=null&&o.length>0){let l=o.shift();if(typeof l==="string"){let n=l.indexOf("=");if(n>-1){if(n===0)mi(s);else fi(s);let a=l.slice(0,n),r=l.slice(n+1);if(s=Si(s,a,r,o.length>0?Pi:i),o.length===0)return!0}else{fi(s);let a=parseInt(l,10);if(o.length>0)s=s[a];else{if(i!==Ut){if(s[a]===i)return!1;s[a]=i}else s.splice(a,1);return!0}}}else if(Array.isArray(l)&&l.length>0){mi(s);while(l.length>0){let n=l.shift();if(l.length>0||o.length>0)s=u2(s,n,l.length>0?{}:[]);else{if(i!==Ut){if(s[n]===i)return!1;s[n]=i}else{if(!Object.prototype.hasOwnProperty.call(s,n))return!1;delete s[n]}return!0}}}else throw Error(`setByPath failed, bad path ${t}`)}throw Error(`setByPath(${e}, ${t}, ${i}) failed`)}var Fi=(e,t)=>{let i=new Event(t);e.dispatchEvent(i)},Oi=(e)=>{if(e instanceof HTMLInputElement)return e.type;else if(e instanceof HTMLSelectElement&&e.hasAttribute("multiple"))return"multi-select";else return"other"},f2=(e,t)=>{switch(Oi(e)){case"radio":e.checked=e.value===t;break;case"checkbox":e.checked=!!t;break;case"date":e.valueAsDate=new Date(t);break;case"multi-select":for(let i of Array.from(e.querySelectorAll("option")))i.selected=t[i.value];break;default:e.value=t}},m2=(e)=>{switch(Oi(e)){case"radio":{let t=e.parentElement?.querySelector(`[name="${e.name}"]:checked`);return t!=null?t.value:null}case"checkbox":return e.checked;case"date":return e.valueAsDate?.toISOString();case"multi-select":return Array.from(e.querySelectorAll("option")).reduce((t,i)=>{return t[i.value]=i.selected,t},{});default:return e.value}},{ResizeObserver:vi}=globalThis,Wt=vi!=null?new vi((e)=>{for(let t of e){let i=t.target;Fi(i,"resize")}}):{observe(){},unobserve(){}},ki=(e,t,i=!0)=>{if(e!=null&&t!=null)if(typeof t==="string")e.textContent=t;else if(Array.isArray(t))t.forEach((s)=>{e.append(s instanceof Node&&i?De(s):s)});else if(t instanceof Node)e.append(i?De(t):t);else throw Error("expect text content or document node")},ct=(e,t=250)=>{let i;return(...s)=>{if(i!==void 0)clearTimeout(i);i=setTimeout(()=>{e(...s)},t)}},qe=(e,t=250)=>{let i,s=Date.now()-t,o=!1;return(...l)=>{if(clearTimeout(i),i=setTimeout(()=>{e(...l),s=Date.now()},t),!o&&Date.now()-s>=t){o=!0;try{e(...l),s=Date.now()}finally{o=!1}}}},v2=16,k2=100;function Ci(e,t){let i=Array.from(e.querySelectorAll(Me));if(e.matches(Me))i.unshift(e);for(let s of i){let o=de.get(s);for(let l of o){if(l.path.startsWith("^"))l.path=`${t}${l.path.substring(1)}`;if(l.binding.toDOM!=null)l.binding.toDOM(s,H[l.path])}}}class Vi{boundElement;listTop;listBottom;template;options;itemToElement;array=[];_update;_previousSlice;static filterBoundObservers=new WeakMap;constructor(e,t,i={}){if(this.boundElement=e,this.itemToElement=new WeakMap,e.children.length!==1)throw Error("ListBinding expects an element with exactly one child element");if(e.children[0]instanceof HTMLTemplateElement){let s=e.children[0];if(s.content.children.length!==1)throw Error("ListBinding expects a template with exactly one child element");this.template=De(s.content.children[0])}else this.template=e.children[0],this.template.remove();if(this.options=i,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),i.virtual!=null)Wt.observe(this.boundElement),this._update=qe(()=>{this.update(this.array,!0)},v2),this.boundElement.addEventListener("scroll",this._update),this.boundElement.addEventListener("resize",this._update)}visibleSlice(){let{virtual:e,hiddenProp:t,visibleProp:i}=this.options,s=this.array;if(t!==void 0)s=s.filter((r)=>r[t]!==!0);if(i!==void 0)s=s.filter((r)=>r[i]===!0);if(this.options.filter&&this.needle!==void 0)s=this.options.filter(s,this.needle);let o=0,l=s.length-1,n=0,a=0;if(e!=null&&this.boundElement instanceof HTMLElement){let r=this.boundElement.offsetWidth,p=this.boundElement.offsetHeight;if(e.visibleColumns==null)e.visibleColumns=e.width!=null?Math.max(1,Math.floor(r/e.width)):1;let d=Math.ceil(p/e.height)+(e.rowChunkSize||1),x=Math.ceil(s.length/e.visibleColumns),g=e.visibleColumns*d,v=Math.floor(this.boundElement.scrollTop/e.height);if(v>x-d+1)v=Math.max(0,x-d+1);if(e.rowChunkSize)v-=v%e.rowChunkSize;o=v*e.visibleColumns,l=o+g-1,n=v*e.height,a=Math.max((x-d)*e.height-n,0)}return{items:s,firstItem:o,lastItem:l,topBuffer:n,bottomBuffer:a}}needle;filter=qe((e)=>{if(this.needle!==e)this.needle=e,this.update(this.array)},k2);update(e,t){if(e==null)e=[];this.array=e;let{hiddenProp:i,visibleProp:s}=this.options,o=ze(e),l=this.visibleSlice();this.boundElement.classList.toggle("-xin-empty-list",l.items.length===0);let n=this._previousSlice,{firstItem:a,lastItem:r,topBuffer:p,bottomBuffer:d}=l;if(i===void 0&&s===void 0&&t===!0&&n!=null&&a===n.firstItem&&r===n.lastItem)return;this._previousSlice=l;let x=0,g=0,v=0;for(let w of Array.from(this.boundElement.children)){if(w===this.listTop||w===this.listBottom)continue;let B=w[qt];if(B==null)w.remove();else{let z=l.items.indexOf(B);if(z<a||z>r)w.remove(),this.itemToElement.delete(B),x++}}this.listTop.style.height=String(p)+"px",this.listBottom.style.height=String(d)+"px";let y=[],{idPath:C}=this.options;for(let w=a;w<=r;w++){let B=l.items[w];if(B===void 0)continue;let z=this.itemToElement.get(j(B));if(z==null){if(v++,z=De(this.template),typeof B==="object")this.itemToElement.set(j(B),z),z[qt]=j(B);if(this.boundElement.insertBefore(z,this.listBottom),C!=null){let W=B[C],Tt=`${o}[${C}=${W}]`;Ci(z,Tt)}else{let W=`${o}[${w}]`;Ci(z,W)}}y.push(z)}let A=null;for(let w of y){if(w.previousElementSibling!==A)if(g++,A?.nextElementSibling!=null)this.boundElement.insertBefore(w,A.nextElementSibling);else this.boundElement.insertBefore(w,this.listBottom);A=w}if(ot.perf)console.log(o,"updated",{removed:x,created:v,moved:g})}}var Kt=(e,t,i)=>{let s=e[_t];if(t&&s===void 0)s=new Vi(e,t,i),e[_t]=s;return s},Jt=(e)=>{let t;while(!(t=e[qt])&&e&&e.parentElement)e=e.parentElement;return t?{element:e,item:t}:void 0},he=(e)=>{let t=Jt(e);return t?t.item:void 0},C2=(e)=>{let t=Jt(e);if(!t)return console.error("deleteListItem failed, element is not part of a list instance",e),!1;let i=Kt(t.element.parentElement);if(!i.options.idPath)return console.error("deleteListItem failed, list binding has no idPath",e.parentElement,i),!1;let s=i.array.indexOf(t.item);if(s>-1)return i.array.splice(s,1),!0;return!1},ee={value:{toDOM:f2,fromDOM(e){return m2(e)}},text:{toDOM(e,t){e.textContent=t}},enabled:{toDOM(e,t){e.disabled=!t}},disabled:{toDOM(e,t){e.disabled=Boolean(t)}},list:{toDOM(e,t,i){Kt(e,t,i).update(t)}}};function te(e){return e.replace(/[A-Z]/g,(t)=>{return`-${t.toLocaleLowerCase()}`})}function w2(e){return e.replace(/-([a-z])/g,(t,i)=>{return i.toLocaleUpperCase()})}var b2=180/Math.PI,M2=Math.PI/180;function $(e,t,i){return i<e?NaN:t<e?e:t>i?i:t}function Z(e,t,i,s=!0){if(s)i=$(0,i,1);return i*(t-e)+e}var B2={RADIANS_TO_DEGREES:b2,DEGREES_TO_RADIANS:M2,clamp:$,lerp:Z};function Ii(e,t=document.body){let i=getComputedStyle(t);if(e.endsWith(")")&&e.startsWith("var("))e=e.slice(4,-1);return i.getPropertyValue(e).trim()}var z2=(e,t,i)=>{return(0.299*e+0.587*t+0.114*i)/255},re=(e)=>("00"+Math.round(Number(e)).toString(16)).slice(-2);class Di{h;s;l;constructor(e,t,i){e/=255,t/=255,i/=255;let s=Math.max(e,t,i),o=s-Math.min(e,t,i),l=o!==0?s===e?(t-i)/o:s===t?2+(i-e)/o:4+(e-t)/o:0;this.h=60*l<0?60*l+360:60*l,this.s=o!==0?s<=0.5?o/(2*s-o):o/(2-(2*s-o)):0,this.l=(2*s-o)/2}}var be=globalThis.document!==void 0?globalThis.document.createElement("span"):void 0;class k{r;g;b;a;static fromVar(e,t=document.body){return k.fromCss(Ii(e,t))}static fromCss(e){let t=e;if(be instanceof HTMLSpanElement)be.style.color="black",be.style.color=e,document.body.appendChild(be),t=getComputedStyle(be).color,be.remove();let[i,s,o,l]=t.match(/[\d.]+/g)||["0","0","0","0"],n=t.startsWith("color(srgb")?255:1;return new k(Number(i)*n,Number(s)*n,Number(o)*n,l==null?1:Number(l))}static fromHsl(e,t,i,s=1){let o,l,n;if(t===0)o=l=n=i;else{let r=(g,v,y)=>{if(y<0)y+=1;if(y>1)y-=1;if(y<0.16666666666666666)return g+(v-g)*6*y;if(y<0.5)return v;if(y<0.6666666666666666)return g+(v-g)*(0.6666666666666666-y)*6;return g},p=i<0.5?i*(1+t):i+t-i*t,d=2*i-p,x=(e%360+360)%360/360;o=r(d,p,x+0.3333333333333333),l=r(d,p,x),n=r(d,p,x-0.3333333333333333)}let a=new k(o*255,l*255,n*255,s);return a.hslCached={h:(e%360+360)%360,s:t,l:i},a}static black=new k(0,0,0);static white=new k(255,255,255);constructor(e,t,i,s=1){this.r=$(0,e,255),this.g=$(0,t,255),this.b=$(0,i,255),this.a=$(0,s,1)}get inverse(){return new k(255-this.r,255-this.g,255-this.b,this.a)}get inverseLuminance(){let{h:e,s:t,l:i}=this._hsl;return k.fromHsl(e,t,1-i,this.a)}get opaque(){return this.a===1?this:new k(this.r,this.g,this.b,1)}contrasting(e=1){return this.opaque.blend(this.brightness>0.5?k.black:k.white,e)}get rgb(){let{r:e,g:t,b:i}=this;return`rgb(${e.toFixed(0)},${t.toFixed(0)},${i.toFixed(0)})`}get rgba(){let{r:e,g:t,b:i,a:s}=this;return`rgba(${e.toFixed(0)},${t.toFixed(0)},${i.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 Di(this.r,this.g,this.b);return this.hslCached}get hsl(){let{h:e,s:t,l:i}=this._hsl;return`hsl(${e.toFixed(0)}deg ${(t*100).toFixed(0)}% ${(i*100).toFixed(0)}%)`}get hsla(){let{h:e,s:t,l:i}=this._hsl;return`hsl(${e.toFixed(0)}deg ${(t*100).toFixed(0)}% ${(i*100).toFixed(0)}% / ${(this.a*100).toFixed(0)}%)`}get mono(){let e=this.brightness*255;return new k(e,e,e)}get brightness(){return z2(this.r,this.g,this.b)}get html(){return this.toString()}toString(){return this.a===1?"#"+re(this.r)+re(this.g)+re(this.b):"#"+re(this.r)+re(this.g)+re(this.b)+re(Math.floor(255*this.a))}brighten(e){let{h:t,s:i,l:s}=this._hsl,o=$(0,s+e*(1-s),1);return k.fromHsl(t,i,o,this.a)}darken(e){let{h:t,s:i,l:s}=this._hsl,o=$(0,s*(1-e),1);return k.fromHsl(t,i,o,this.a)}saturate(e){let{h:t,s:i,l:s}=this._hsl,o=$(0,i+e*(1-i),1);return k.fromHsl(t,o,s,this.a)}desaturate(e){let{h:t,s:i,l:s}=this._hsl,o=$(0,i*(1-e),1);return k.fromHsl(t,o,s,this.a)}rotate(e){let{h:t,s:i,l:s}=this._hsl,o=(t+360+e)%360;return k.fromHsl(o,i,s,this.a)}opacity(e){let{h:t,s:i,l:s}=this._hsl;return k.fromHsl(t,i,s,e)}swatch(){return console.log(`%c %c ${this.html}, ${this.rgba}`,`background-color: ${this.html}`,"background-color: transparent"),this}blend(e,t){return new k(Z(this.r,e.r,t),Z(this.g,e.g,t),Z(this.b,e.b,t),Z(this.a,e.a,t))}static blendHue(e,t,i){let s=(t-e+720)%360;if(s<180)return e+i*s;else return e-(360-s)*i}mix(e,t){let i=this._hsl,s=e._hsl;return k.fromHsl(i.s===0?s.h:s.s===0?i.h:k.blendHue(i.h,s.h,t),Z(i.s,s.s,t),Z(i.l,s.l,t),Z(this.a,e.a,t))}colorMix(e,t){return k.fromCss(`color-mix(in hsl, ${this.html}, ${e.html} ${(t*100).toFixed(0)}%)`)}}function $e(e,t){let i=f.style(Ne(t));i.id=e,document.head.append(i)}var L2=["animation-iteration-count","flex","flex-base","flex-grow","flex-shrink","opacity","order","tab-size","widows","z-index","zoom"],_i=(e,t)=>{if(typeof t==="number"&&!L2.includes(e))t=`${t}px`;if(e.startsWith("_"))if(e.startsWith("__"))e="--"+e.substring(2),t=`var(${e}-default, ${t})`;else e="--"+e.substring(1);return{prop:e,value:String(t)}},E2=(e,t,i)=>{if(i===void 0)return"";if(i instanceof k)i=i.html;let s=_i(t,i);return`${e} ${s.prop}: ${s.value};`},qi=(e,t,i="")=>{let s=te(e);if(typeof t==="object"&&!(t instanceof k)){let o=Object.keys(t).map((l)=>qi(l,t[l],`${i} `)).join(`
1
+ (()=>{var u2=Object.defineProperty;var It=(e,t)=>{for(var i in t)u2(e,i,{get:t[i],enumerable:!0,configurable:!0,set:(s)=>t[i]=()=>s})};var wi={};It(wi,{xrControllersText:()=>tn,xrControllers:()=>en,xinTagList:()=>Pn,xinTag:()=>d2,xinSizer:()=>Ln,xinSelect:()=>V,xinSegmented:()=>Bn,xinRating:()=>xn,xinPasswordStrength:()=>hn,xinNotification:()=>t2,xinMenu:()=>Bl,xinLocalized:()=>J,xinForm:()=>Xo,xinFloat:()=>vt,xinField:()=>Zo,xinCarousel:()=>xl,version:()=>p2,updateLocalized:()=>M1,trackDrag:()=>T,tosijs:()=>Qe,tosiMonth:()=>an,tosiDialog:()=>wt,tabSelector:()=>J1,svgIcon:()=>cl,svg2DataUrl:()=>g1,styleSheet:()=>gt,spacer:()=>Ie,sizeBreak:()=>zn,sideNav:()=>X1,setLocale:()=>vl,scriptTag:()=>F,richTextWidgets:()=>a2,richText:()=>kn,removeLastMenu:()=>ne,postNotification:()=>dn,positionFloat:()=>ps,popMenu:()=>S,popFloat:()=>w1,menu:()=>ks,markdownViewer:()=>K1,mapBox:()=>ln,makeSorter:()=>kt,localize:()=>L,localePicker:()=>bl,liveExample:()=>Z1,legacyAliases:()=>y2,isBreached:()=>s2,initLocalization:()=>Cl,icons:()=>u,i18n:()=>A,gamepadText:()=>Yo,gamepadState:()=>e2,findHighestZ:()=>ge,filterPart:()=>Pt,filterBuilder:()=>$o,elastic:()=>fn,editableRect:()=>_o,dragAndDrop:()=>bt,digest:()=>i2,defineIcons:()=>rl,defaultColors:()=>bi,dataTable:()=>Sl,createThemeWithLegacy:()=>On,createTheme:()=>Ft,createSubMenu:()=>ms,createMenuItem:()=>vs,createMenuAction:()=>fs,createDocBrowser:()=>Io,createDarkTheme:()=>x2,componentVars:()=>Vn,commandButton:()=>R,colorInput:()=>b1,codeEditor:()=>Ze,bringToFront:()=>le,bodymovinPlayer:()=>pl,blockStyle:()=>ui,baseVariables:()=>h2,baseTheme:()=>Sn,baseDarkTheme:()=>Fn,b3d:()=>dl,availableFilters:()=>ii,applyTheme:()=>Tn,abTest:()=>al,XinTagList:()=>Ci,XinTag:()=>St,XinSizer:()=>vi,XinSelect:()=>fe,XinSegmented:()=>fi,XinRating:()=>yi,XinPasswordStrength:()=>hi,XinNotification:()=>Me,XinMenu:()=>L1,XinLocalized:()=>O,XinForm:()=>st,XinFloat:()=>oe,XinField:()=>jt,XinCarousel:()=>k1,TosiMonth:()=>ci,TosiDialog:()=>O1,TabSelector:()=>Q1,SvgIcon:()=>f1,SizeBreak:()=>mi,SideNav:()=>Ve,RichText:()=>gi,MarkdownViewer:()=>G1,MapBox:()=>we,LocalePicker:()=>B1,LiveExample:()=>Oe,FilterPart:()=>si,FilterBuilder:()=>li,EditableRect:()=>N,DataTable:()=>P1,CodeEditor:()=>ue,BodymovinPlayer:()=>Te,B3d:()=>m1,AbTest:()=>je});var Qe={};It(Qe,{xinValue:()=>H,xinProxy:()=>os,xinPath:()=>He,xin:()=>P,version:()=>ls,vars:()=>c,varDefault:()=>h,updates:()=>g2,unobserve:()=>Le,touchElement:()=>c1,touch:()=>Ee,tosi:()=>Q,throttle:()=>Ue,svgElements:()=>ht,settings:()=>at,on:()=>Pe,observe:()=>xt,mathML:()=>is,makeComponent:()=>h1,invertLuminance:()=>l1,initVars:()=>I2,hotReload:()=>il,getListItem:()=>ye,getListInstance:()=>r1,getListBinding:()=>a1,getCssVar:()=>Ji,elements:()=>f,deleteListItem:()=>Z2,debounce:()=>pt,css:()=>We,boxedProxy:()=>p1,boxed:()=>dt,blueprintLoader:()=>nl,blueprint:()=>ol,bindings:()=>te,bind:()=>ee,StyleSheet:()=>Ke,MoreMath:()=>S2,Component:()=>m,Color:()=>C,BlueprintLoader:()=>x1,Blueprint:()=>yt});function he(e){if(e==null||typeof e!=="object")return e;if(e instanceof Set)return new Set(e);else if(Array.isArray(e))return e.map(he);let t={};for(let i in e){let s=e[i];if(e!=null&&typeof e==="object")t[i]=he(s);else t[i]=s}return t}var _i="-xin-data",Ae=`.${_i}`,qi="-xin-event",Mi=`.${qi}`,$="xinPath",ze="xinValue",Bi="xinObserve",zi="xinBind",Li="xinOn",Wt=Symbol("list-binding"),Gt=Symbol("list-instance"),He=(e)=>{return e&&e[$]||void 0};function H(e){if(typeof e==="object"&&e!==null){let t=e[ze];return t!==void 0?t:e}return e}var Ne=new WeakMap,xe=new WeakMap,Re=(e)=>{let t=e.cloneNode();if(t instanceof Element){let i=xe.get(e),s=Ne.get(e);if(i!=null)xe.set(t,he(i));if(s!=null)Ne.set(t,he(s))}for(let i of Array.from(e instanceof HTMLTemplateElement?e.content.childNodes:e.childNodes))if(i instanceof Element||i instanceof DocumentFragment)t.appendChild(Re(i));else t.appendChild(i.cloneNode());return t},at={debug:!1,perf:!1},Ai=Symbol("observer should be removed"),rt=[],ct=[],Kt=!1,Qt,Jt;class Ni{description;test;callback;constructor(e,t){let i=typeof t==="string"?`"${t}"`:`function ${t.name}`,s;if(typeof e==="string")this.test=(l)=>typeof l==="string"&&l!==""&&(e.startsWith(l)||l.startsWith(e)),s=`test = "${e}"`;else if(e instanceof RegExp)this.test=e.test.bind(e),s=`test = "${e.toString()}"`;else if(e instanceof Function)this.test=e,s=`test = function ${e.name}`;else throw Error("expect listener test to be a string, RegExp, or test function");if(this.description=`${s}, ${i}`,typeof t==="function")this.callback=t;else throw Error("expect callback to be a path or function");rt.push(this)}}var g2=async()=>{if(Qt===void 0)return;await Qt},f2=()=>{if(at.perf)console.time("xin async update");let e=Array.from(ct);for(let t of e)rt.filter((i)=>{let s;try{s=i.test(t)}catch(l){throw Error(`Listener ${i.description} threw "${l}" at "${t}"`)}if(s===Ai)return Le(i),!1;return s}).forEach((i)=>{let s;try{s=i.callback(t)}catch(l){console.error(`Listener ${i.description} threw "${l}" handling "${t}"`)}if(s===Ai)Le(i)});if(ct.splice(0),Kt=!1,typeof Jt==="function")Jt();if(at.perf)console.timeEnd("xin async update")},Ee=(e)=>{let t=typeof e==="string"?e:He(e);if(t===void 0)throw console.error("touch was called on an invalid target",e),Error("touch was called on an invalid target");if(Kt===!1)Qt=new Promise((i)=>{Jt=i}),Kt=setTimeout(f2);if(ct.find((i)=>t.startsWith(i))==null)ct.push(t)},_e=(e,t)=>{return new Ni(e,t)},Le=(e)=>{let t=rt.indexOf(e);if(t>-1)rt.splice(t,1);else throw Error("unobserve failed, listener not found")},i1={},Zt=null,m2=(e)=>{Zt=e},s1=()=>{if(Zt===null)throw Error("xin proxy not initialized");return Zt},Xt=null,Yt=null,v2=(e,t)=>{Xt=e,Yt=t},Dt=()=>{if(Xt===null)throw Error("bind not initialized");return Xt},_t=()=>{if(Yt===null)throw Error("on not initialized");return Yt},Ri=(e,t)=>{let i=new Event(t);e.dispatchEvent(i)},Ui=(e)=>{if(e instanceof HTMLInputElement)return e.type;else if(e instanceof HTMLSelectElement&&e.hasAttribute("multiple"))return"multi-select";else return"other"},k2=(e,t)=>{switch(Ui(e)){case"radio":e.checked=e.value===t;break;case"checkbox":e.checked=!!t;break;case"date":e.valueAsDate=new Date(t);break;case"multi-select":for(let i of Array.from(e.querySelectorAll("option")))i.selected=t[i.value];break;default:e.value=t}},C2=(e)=>{switch(Ui(e)){case"radio":{let t=e.parentElement?.querySelector(`[name="${e.name}"]:checked`);return t!=null?t.value:null}case"checkbox":return e.checked;case"date":return e.valueAsDate?.toISOString();case"multi-select":return Array.from(e.querySelectorAll("option")).reduce((t,i)=>{return t[i.value]=i.selected,t},{});default:return e.value}},{ResizeObserver:Ei}=globalThis,e1=Ei!=null?new Ei((e)=>{for(let t of e){let i=t.target;Ri(i,"resize")}}):{observe(){},unobserve(){}},Hi=(e,t,i=!0)=>{if(e!=null&&t!=null)if(typeof t==="string")e.textContent=t;else if(Array.isArray(t))t.forEach((s)=>{e.append(s instanceof Node&&i?Re(s):s)});else if(t instanceof Node)e.append(i?Re(t):t);else throw Error("expect text content or document node")},pt=(e,t=250)=>{let i;return(...s)=>{if(i!==void 0)clearTimeout(i);i=setTimeout(()=>{e(...s)},t)}},Ue=(e,t=250)=>{let i,s=Date.now()-t,l=!1;return(...o)=>{if(clearTimeout(i),i=setTimeout(()=>{e(...o),s=Date.now()},t),!l&&Date.now()-s>=t){l=!0;try{e(...o),s=Date.now()}finally{l=!1}}}},b2=(e)=>{try{return JSON.stringify(e)}catch(t){return"{has circular references}"}},$i=(...e)=>Error(e.map(b2).join(" ")),w2=()=>new Date(parseInt("1000000000",36)+Date.now()).valueOf().toString(36).slice(1),M2=0,B2=()=>(parseInt("10000",36)+ ++M2).toString(36).slice(-5),z2=()=>w2()+B2(),t1=Symbol("delete"),Wi=Symbol("new-object"),qt=Symbol("automatic-index");function Gi(e){if(e==="")return[];if(Array.isArray(e))return e;else{let t=[];while(e.length>0){let i=e.search(/\[[^\]]+\]/);if(i===-1){t.push(e.split("."));break}else{let s=e.slice(0,i);if(e=e.slice(i),s!=="")t.push(s.split("."));if(i=e.indexOf("]")+1,t.push(e.slice(1,i-1)),e.slice(i,i+1)===".")i+=1;e=e.slice(i)}}return t}}var K=new WeakMap;function Ki(e,t){if(K.get(e)===void 0)K.set(e,{});if(K.get(e)[t]===void 0)K.get(e)[t]={};let i=K.get(e)[t];if(t==="_auto_")e.forEach((s,l)=>{if(s[qt]===void 0)s[qt]=z2();i[s[qt]+""]=l});else e.forEach((s,l)=>{i[$e(s,t)+""]=l});return i}function L2(e,t){if(K.get(e)===void 0||K.get(e)[t]===void 0)return Ki(e,t);else return K.get(e)[t]}function A2(e,t,i){i=i+"";let s=L2(e,t)[i];if(s===void 0||$e(e[s],t)+""!==i)s=Ki(e,t)[i];return s}function E2(e,t,i){if(e[t]===void 0&&i!==void 0)e[t]=i;return e[t]}function Qi(e,t,i,s){let l=t!==""?A2(e,t,i):i;if(s===t1)return e.splice(l,1),K.delete(e),Symbol("deleted");else if(s===Wi){if(t===""&&e[l]===void 0)e[l]={}}else if(s!==void 0)if(l!==void 0)e[l]=s;else if(t!==""&&$e(s,t)+""===i+"")e.push(s),l=e.length-1;else throw Error(`byIdPath insert failed at [${t}=${i}]`);return e[l]}function Pi(e){if(!Array.isArray(e))throw $i("setByPath failed: expected array, found",e)}function ji(e){if(e==null||!(e instanceof Object))throw $i("setByPath failed: expected Object, found",e)}function $e(e,t){let i=Gi(t),s=e,l,o,n,a;for(l=0,o=i.length;s!==void 0&&l<o;l++){let r=i[l];if(Array.isArray(r))for(n=0,a=r.length;s!==void 0&&n<a;n++){let d=r[n];s=s[d]}else if(s.length===0){if(s=s[Number(r.slice(1))],r[0]!=="=")return}else if(r.includes("=")){let[d,...p]=r.split("=");s=Qi(s,d,p.join("="))}else n=parseInt(r,10),s=s[n]}return s}function H2(e,t,i){let s=e;if(t==="")throw Error("setByPath cannot be used to set the root object");let l=Gi(t);while(s!=null&&l.length>0){let o=l.shift();if(typeof o==="string"){let n=o.indexOf("=");if(n>-1){if(n===0)ji(s);else Pi(s);let a=o.slice(0,n),r=o.slice(n+1);if(s=Qi(s,a,r,l.length>0?Wi:i),l.length===0)return!0}else{Pi(s);let a=parseInt(o,10);if(l.length>0)s=s[a];else{if(i!==t1){if(s[a]===i)return!1;s[a]=i}else s.splice(a,1);return!0}}}else if(Array.isArray(o)&&o.length>0){ji(s);while(o.length>0){let n=o.shift();if(o.length>0||l.length>0)s=E2(s,n,o.length>0?{}:[]);else{if(i!==t1){if(s[n]===i)return!1;s[n]=i}else{if(!Object.prototype.hasOwnProperty.call(s,n))return!1;delete s[n]}return!0}}}else throw Error(`setByPath failed, bad path ${t}`)}throw Error(`setByPath(${e}, ${t}, ${i}) failed`)}var te={value:{toDOM:k2,fromDOM(e){return C2(e)}},text:{toDOM(e,t){e.textContent=t}},enabled:{toDOM(e,t){e.disabled=!t}},disabled:{toDOM(e,t){e.disabled=Boolean(t)}},list:{toDOM(e,t,i){a1(e,t,i).update(t)}}};function ie(e){return e.replace(/[A-Z]/g,(t)=>{return`-${t.toLocaleLowerCase()}`})}function P2(e){return e.replace(/-([a-z])/g,(t,i)=>{return i.toLocaleUpperCase()})}var j2=180/Math.PI,T2=Math.PI/180;function U(e,t,i){return i<e?NaN:t<e?e:t>i?i:t}function Z(e,t,i,s=!0){if(s)i=U(0,i,1);return i*(t-e)+e}var S2={RADIANS_TO_DEGREES:j2,DEGREES_TO_RADIANS:T2,clamp:U,lerp:Z};function Ji(e,t=document.body){let i=getComputedStyle(t);if(e.endsWith(")")&&e.startsWith("var("))e=e.slice(4,-1);return i.getPropertyValue(e).trim()}var F2=(e,t,i)=>{return(0.299*e+0.587*t+0.114*i)/255},ce=(e)=>("00"+Math.round(Number(e)).toString(16)).slice(-2);class Zi{h;s;l;constructor(e,t,i){e/=255,t/=255,i/=255;let s=Math.max(e,t,i),l=s-Math.min(e,t,i),o=l!==0?s===e?(t-i)/l:s===t?2+(i-e)/l:4+(e-t)/l:0;this.h=60*o<0?60*o+360:60*o,this.s=l!==0?s<=0.5?l/(2*s-l):l/(2-(2*s-l)):0,this.l=(2*s-l)/2}}var Be=globalThis.document!==void 0?globalThis.document.createElement("span"):void 0;class C{r;g;b;a;static fromVar(e,t=document.body){return C.fromCss(Ji(e,t))}static fromCss(e){let t=e;if(Be instanceof HTMLSpanElement)Be.style.color="black",Be.style.color=e,document.body.appendChild(Be),t=getComputedStyle(Be).color,Be.remove();let[i,s,l,o]=t.match(/[\d.]+/g)||["0","0","0","0"],n=t.startsWith("color(srgb")?255:1;return new C(Number(i)*n,Number(s)*n,Number(l)*n,o==null?1:Number(o))}static fromHsl(e,t,i,s=1){let l,o,n;if(t===0)l=o=n=i;else{let r=(g,k,y)=>{if(y<0)y+=1;if(y>1)y-=1;if(y<0.16666666666666666)return g+(k-g)*6*y;if(y<0.5)return k;if(y<0.6666666666666666)return g+(k-g)*(0.6666666666666666-y)*6;return g},d=i<0.5?i*(1+t):i+t-i*t,p=2*i-d,x=(e%360+360)%360/360;l=r(p,d,x+0.3333333333333333),o=r(p,d,x),n=r(p,d,x-0.3333333333333333)}let a=new C(l*255,o*255,n*255,s);return a.hslCached={h:(e%360+360)%360,s:t,l:i},a}static black=new C(0,0,0);static white=new C(255,255,255);constructor(e,t,i,s=1){this.r=U(0,e,255),this.g=U(0,t,255),this.b=U(0,i,255),this.a=U(0,s,1)}get inverse(){return new C(255-this.r,255-this.g,255-this.b,this.a)}get inverseLuminance(){let{h:e,s:t,l:i}=this._hsl;return C.fromHsl(e,t,1-i,this.a)}get opaque(){return this.a===1?this:new C(this.r,this.g,this.b,1)}contrasting(e=1){return this.opaque.blend(this.brightness>0.5?C.black:C.white,e)}get rgb(){let{r:e,g:t,b:i}=this;return`rgb(${e.toFixed(0)},${t.toFixed(0)},${i.toFixed(0)})`}get rgba(){let{r:e,g:t,b:i,a:s}=this;return`rgba(${e.toFixed(0)},${t.toFixed(0)},${i.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 Zi(this.r,this.g,this.b);return this.hslCached}get hsl(){let{h:e,s:t,l:i}=this._hsl;return`hsl(${e.toFixed(0)}deg ${(t*100).toFixed(0)}% ${(i*100).toFixed(0)}%)`}get hsla(){let{h:e,s:t,l:i}=this._hsl;return`hsl(${e.toFixed(0)}deg ${(t*100).toFixed(0)}% ${(i*100).toFixed(0)}% / ${(this.a*100).toFixed(0)}%)`}get mono(){let e=this.brightness*255;return new C(e,e,e)}get brightness(){return F2(this.r,this.g,this.b)}get html(){return this.toString()}toString(){return this.a===1?"#"+ce(this.r)+ce(this.g)+ce(this.b):"#"+ce(this.r)+ce(this.g)+ce(this.b)+ce(Math.floor(255*this.a))}brighten(e){let{h:t,s:i,l:s}=this._hsl,l=U(0,s+e*(1-s),1);return C.fromHsl(t,i,l,this.a)}darken(e){let{h:t,s:i,l:s}=this._hsl,l=U(0,s*(1-e),1);return C.fromHsl(t,i,l,this.a)}saturate(e){let{h:t,s:i,l:s}=this._hsl,l=U(0,i+e*(1-i),1);return C.fromHsl(t,l,s,this.a)}desaturate(e){let{h:t,s:i,l:s}=this._hsl,l=U(0,i*(1-e),1);return C.fromHsl(t,l,s,this.a)}rotate(e){let{h:t,s:i,l:s}=this._hsl,l=(t+360+e)%360;return C.fromHsl(l,i,s,this.a)}opacity(e){let{h:t,s:i,l:s}=this._hsl;return C.fromHsl(t,i,s,e)}swatch(){return console.log(`%c %c ${this.html}, ${this.rgba}`,`background-color: ${this.html}`,"background-color: transparent"),this}blend(e,t){return new C(Z(this.r,e.r,t),Z(this.g,e.g,t),Z(this.b,e.b,t),Z(this.a,e.a,t))}static blendHue(e,t,i){let s=(t-e+720)%360;if(s<180)return e+i*s;else return e-(360-s)*i}mix(e,t){let i=this._hsl,s=e._hsl;return C.fromHsl(i.s===0?s.h:s.s===0?i.h:C.blendHue(i.h,s.h,t),Z(i.s,s.s,t),Z(i.l,s.l,t),Z(this.a,e.a,t))}colorMix(e,t){return C.fromCss(`color-mix(in hsl, ${this.html}, ${e.html} ${(t*100).toFixed(0)}%)`)}}function Ke(e,t){let i=f.style(We(t));i.id=e,document.head.append(i)}var O2=["animation-iteration-count","flex","flex-base","flex-grow","flex-shrink","opacity","order","tab-size","widows","z-index","zoom"],Xi=(e,t)=>{if(typeof t==="number"&&!O2.includes(e))t=`${t}px`;if(e.startsWith("_"))if(e.startsWith("__"))e="--"+e.substring(2),t=`var(${e}-default, ${t})`;else e="--"+e.substring(1);return{prop:e,value:String(t)}},V2=(e,t,i)=>{if(i===void 0)return"";if(i instanceof C)i=i.html;let s=Xi(t,i);return`${e} ${s.prop}: ${s.value};`},Yi=(e,t,i="")=>{let s=ie(e);if(typeof t==="object"&&!(t instanceof C)){let l=Object.keys(t).map((o)=>Yi(o,t[o],`${i} `)).join(`
2
2
  `);return`${i} ${e} {
3
- ${o}
4
- ${i} }`}else return E2(i,s,t)},Ne=(e,t="")=>{return Object.keys(e).map((i)=>{let s=e[i];if(typeof s==="string"){if(i==="@import")return`@import url('${s}');`;throw Error("top-level string value only allowed for `@import`")}let o=Object.keys(s).map((l)=>qi(l,s[l])).join(`
3
+ ${l}
4
+ ${i} }`}else return V2(i,s,t)},We=(e,t="")=>{return Object.keys(e).map((i)=>{let s=e[i];if(typeof s==="string"){if(i==="@import")return`@import url('${s}');`;throw Error("top-level string value only allowed for `@import`")}let l=Object.keys(s).map((o)=>Yi(o,s[o])).join(`
5
5
  `);return`${t}${i} {
6
- ${o}
6
+ ${l}
7
7
  }`}).join(`
8
8
 
9
- `)},H2=(e)=>{console.warn("initVars is deprecated. Just use _ and __ prefixes instead.");let t={};for(let i of Object.keys(e)){let s=e[i],o=te(i);t[`--${o}`]=typeof s==="number"&&s!==0?String(s)+"px":s}return t},Qt=(e)=>{let t={};for(let i of Object.keys(e)){let s=e[i];if(s instanceof k)t[i]=s.inverseLuminance;else if(typeof s==="string"&&s.match(/^(#[0-9a-fA-F]{3}|rgba?\(|hsla?\()/))t[i]=k.fromCss(s).inverseLuminance}return t},h=new Proxy({},{get(e,t){if(e[t]===void 0){let i="--"+te(t);e[t]=(s)=>`var(${i}, ${s})`}return e[t]}}),c=new Proxy({},{get(e,t){if(t==="default")return h;if(e[t]==null){t=te(t);let[,i,,s,o,l]=t.match(/^([-\w]*?)((_)?(\d+)(\w?))?$/)||["",t],n=`--${i}`;if(o!=null){let a=s==null?Number(o)/100:-Number(o)/100;switch(l){case"b":{let r=k.fromVar(n);e[t]=a>0?r.brighten(a).rgba:r.darken(-a).rgba}break;case"s":{let r=k.fromVar(n);e[t]=a>0?r.saturate(a).rgba:r.desaturate(-a).rgba}break;case"h":{let r=k.fromVar(n);e[t]=r.rotate(a*100).rgba}break;case"o":{let r=k.fromVar(n);e[t]=r.opacity(a).rgba}break;case"":e[t]=`calc(var(${n}) * ${a})`;break;default:throw console.error(l),Error(`Unrecognized method ${l} for css variable ${n}`)}}else e[t]=`var(${n})`}return e[t]}}),A2="http://www.w3.org/1998/Math/MathML",P2="http://www.w3.org/2000/svg",st={},Ni=(e,t,i)=>{let s=_i(te(t),i);if(s.prop.startsWith("--"))e.style.setProperty(s.prop,s.value);else e.style[t]=s.value},j2=(e)=>{return{toDOM(t,i){Ni(t,e,i)}}},Ri=(e,t,i)=>{if(t==="style")if(typeof i==="object")for(let s of Object.keys(i))if(ze(i[s]))X(e,i[s],j2(s));else Ni(e,s,i[s]);else e.setAttribute("style",i);else if(e[t]!==void 0){let{MathMLElement:s}=globalThis;if(e instanceof SVGElement||s!==void 0&&e instanceof s)e.setAttribute(t,i);else e[t]=i}else{let s=te(t);if(s==="class")i.split(" ").forEach((o)=>{e.classList.add(o)});else if(e[s]!==void 0)e[s]=i;else if(typeof i==="boolean")i?e.setAttribute(s,""):e.removeAttribute(s);else e.setAttribute(s,i)}},T2=(e)=>{return{toDOM(t,i){Ri(t,e,i)}}},S2=(e,t,i)=>{if(t==="apply")i(e);else if(t.match(/^on[A-Z]/)!=null){let s=t.substring(2).toLowerCase();Le(e,s,i)}else if(t==="bind")if((typeof i.binding==="string"?ee[i.binding]:i.binding)!==void 0&&i.value!==void 0)X(e,i.value,i.binding instanceof Function?{toDOM:i.binding}:i.binding);else throw Error("bad binding");else if(t.match(/^bind[A-Z]/)!=null){let s=t.substring(4,5).toLowerCase()+t.substring(5),o=ee[s];if(o!==void 0)X(e,i,o);else throw Error(`${t} is not allowed, bindings.${s} is not defined`)}else if(ze(i))X(e,i,T2(t));else Ri(e,t,i)},Zt=(e,...t)=>{if(st[e]===void 0){let[o,l]=e.split("|");if(l===void 0)st[e]=globalThis.document.createElement(o);else st[e]=globalThis.document.createElementNS(l,o)}let i=st[e].cloneNode(),s={};for(let o of t)if(o instanceof Element||o instanceof DocumentFragment||typeof o==="string"||typeof o==="number")if(i instanceof HTMLTemplateElement)i.content.append(o);else i.append(o);else if(ze(o))i.append(f.span({bindText:o}));else Object.assign(s,o);for(let o of Object.keys(s)){let l=s[o];S2(i,o,l)}return i},Yt=(...e)=>{let t=globalThis.document.createDocumentFragment();for(let i of e)t.append(i);return t},f=new Proxy({fragment:Yt},{get(e,t){if(t=t.replace(/[A-Z]/g,(i)=>`-${i.toLocaleLowerCase()}`),e[t]===void 0)e[t]=(...i)=>Zt(t,...i);return e[t]},set(){throw Error("You may not add new properties to elements")}}),pt=new Proxy({fragment:Yt},{get(e,t){if(e[t]===void 0)e[t]=(...i)=>Zt(`${t}|${P2}`,...i);return e[t]},set(){throw Error("You may not add new properties to elements")}}),$i=new Proxy({fragment:Yt},{get(e,t){if(e[t]===void 0)e[t]=(...i)=>Zt(`${t}|${A2}`,...i);return e[t]},set(){throw Error("You may not add new properties to elements")}}),F2=["sort","splice","copyWithin","fill","pop","push","reverse","shift","unshift"],Xt={},O2=!0,V2=/^\.?([^.[\](),])+(\.[^.[\](),]+|\[\d+\]|\[[^=[\](),]*=[^[\]()]+\])*$/,I2=(e)=>V2.test(e),ce=(e="",t="")=>{if(e==="")return t;else if(t.match(/^\d+$/)!==null||t.includes("="))return`${e}[${t}]`;else return`${e}.${t}`},D2={string(e){return new String(e)},boolean(e){return new Boolean(e)},bigint(e){return e},symbol(e){return e},number(e){return new Number(e)}},Gt=Symbol("undefined");function Vt(e,t){if(e===void 0||e===null)return new Proxy({[Gt]:e===null?"null":"undefined"},Y(t,!0));let i=typeof e;if(i==="object"||i==="function")return e;else return new Proxy(D2[typeof e](e),Y(t,!0))}var _2=()=>new Proxy({},Y("^",!0)),Y=(e,t)=>({get(i,s){switch(s){case K:case"tosiPath":return e;case Ve:case"tosiValue":return i[Gt]?i[Gt]==="null"?null:void 0:i.valueOf?i.valueOf():i;case s2:case"tosiObserve":return(n)=>{let a=Hi(e,n);return()=>at(a)};case l2:case"tosiOn":return(n,a)=>Le(n,a,j(i));case o2:case"tosiBind":return(n,a,r)=>{X(n,e,a,r)};case"tosiBinding":return(n)=>({bind:{value:e,binding:n}});case"tosiListBinding":return(n=({span:r})=>r({bindText:"^"}),a={})=>[{bindList:{value:e,...a}},f.template(n(f,_2()))]}if(typeof s==="symbol")return i[s];let o=s,l=o.match(/^([^.[]+)\.(.+)$/)??o.match(/^([^\]]+)(\[.+)/)??o.match(/^(\[[^\]]+\])\.(.+)$/)??o.match(/^(\[[^\]]+\])\[(.+)$/);if(l!==null){let[,n,a]=l,r=ce(e,n),p=_e(i,n);return p!==null&&typeof p==="object"?new Proxy(p,Y(r,t))[a]:p}if(o.startsWith("[")&&o.endsWith("]"))o=o.substring(1,o.length-1);if(!Array.isArray(i)&&i[o]!==void 0||Array.isArray(i)&&o.includes("=")){let n;if(o.includes("=")){let[a,r]=o.split("=");n=i.find((p)=>`${_e(p,a)}`===r)}else n=i[o];if(n instanceof Object){let a=ce(e,o);return new Proxy(n instanceof Function?n.bind(i):n,Y(a,t))}else return t?Vt(n,ce(e,o)):n}else if(Array.isArray(i)){let n=i[o];return typeof n==="function"?(...a)=>{let r=n.apply(i,a);if(F2.includes(o))Be(e);return r}:typeof n==="object"?new Proxy(n,Y(ce(e,o),t)):t?Vt(n,ce(e,o)):n}else return t?Vt(i[o],ce(e,o)):i[o]},set(i,s,o){o=j(o);let l=s!==Ve?ce(e,s):e;if(O2&&!I2(l))throw Error(`setting invalid path ${l}`);if(j(H[l])!==o&&g2(Xt,l,o))Be(l);return!0}}),Ue=(e,t)=>{let i=typeof t==="function"?t:H[t];if(typeof i!=="function")throw Error(`observe expects a function or path to a function, ${t} is neither`);return Hi(e,i)},H=new Proxy(Xt,Y("",!1)),rt=new Proxy(Xt,Y("",!0)),{document:Re,MutationObserver:wi}=globalThis,e1=(e,t)=>{let i=de.get(e);if(i==null)return;for(let s of i){let{binding:o,options:l}=s,{path:n}=s,{toDOM:a}=o;if(a!=null){if(n.startsWith("^")){let r=he(e);if(r!=null&&r[K]!=null)n=s.path=`${r[K]}${n.substring(1)}`;else throw console.error(`Cannot resolve relative binding ${n}`,e,"is not part of a list"),Error(`Cannot resolve relative binding ${n}`)}if(t==null||n.startsWith(t))a(e,H[n],l)}}};if(wi!=null)new wi((e)=>{e.forEach((t)=>{Array.from(t.addedNodes).forEach((i)=>{if(i instanceof Element)Array.from(i.querySelectorAll(Me)).forEach((s)=>e1(s))})})}).observe(Re.body,{subtree:!0,childList:!0});Ue(()=>!0,(e)=>{let t=Array.from(Re.querySelectorAll(Me));for(let i of t)e1(i,e)});var bi=(e)=>{let t=e.target.closest(Me);while(t!=null){let i=de.get(t);for(let s of i){let{binding:o,path:l}=s,{fromDOM:n}=o;if(n!=null){let a;try{a=n(t,s.options)}catch(r){throw console.error("Cannot get value from",t,"via",s),Error("Cannot obtain value fromDOM")}if(a!=null){let r=H[l];if(r==null)H[l]=a;else{let p=r[K]!=null?r[Ve]:r,d=a[K]!=null?a[Ve]:a;if(p!==d)H[l]=d}}}}t=t.parentElement.closest(Me)}};if(globalThis.document!=null)Re.body.addEventListener("change",bi,!0),Re.body.addEventListener("input",bi,!0);function X(e,t,i,s){if(e instanceof DocumentFragment)throw Error("bind cannot bind to a DocumentFragment");let o;if(typeof t==="object"&&t[K]===void 0&&s===void 0){let{value:a}=t;o=typeof a==="string"?a:a[K],s=t,delete s.value}else o=typeof t==="string"?t:t[K];if(o==null)throw Error("bind requires a path or object with xin Proxy");let{toDOM:l}=i;e.classList?.add(zi);let n=de.get(e);if(n==null)n=[],de.set(e,n);if(n.push({path:o,binding:i,options:s}),l!=null&&!o.startsWith("^"))Be(o);if(s?.filter&&s?.needle)X(e,s.needle,{toDOM(a,r){console.log({needle:r}),a[_t]?.filter(r)}});return e}var Mi=new Set,q2=(e)=>{let t=e?.target.closest(ui),i=!1,s=new Proxy(e,{get(l,n){if(n==="stopPropagation")return()=>{e.stopPropagation(),i=!0};else{let a=l[n];return typeof a==="function"?a.bind(l):a}}}),o=new Set;while(!i&&t!=null){let l=Ie.get(t)[e.type]||o;for(let n of l){if(typeof n==="function")n(s);else{let a=H[n];if(typeof a==="function")a(s);else throw Error(`no event handler found at path ${n}`)}if(i)continue}t=t.parentElement!=null?t.parentElement.closest(ui):null}};function Le(e,t,i){let s=Ie.get(e);if(e.classList.add(Li),s==null)s={},Ie.set(e,s);if(!s[t])s[t]=new Set;if(s[t].add(i),!Mi.has(t))Mi.add(t),Re.body.addEventListener(t,q2,!0);return()=>{s[t].delete(i)}}var N2=0;function It(){return`custom-elt${(N2++).toString(36)}`}var Bi=0,Oe={};function R2(e,t){let i=Oe[e],s=Ne(t).replace(/:host\b/g,e);Oe[e]=i?i+`
10
- `+s:s}function $2(e){if(Oe[e])document.head.append(f.style({id:e+"-component"},Oe[e]));delete Oe[e]}class m extends HTMLElement{static elements=f;static _elementCreator;instanceId;styleNode;static styleSpec;static styleNode;content=f.slot();isSlotted;static _tagName=null;static get tagName(){return this._tagName}static StyleNode(e){return console.warn("StyleNode is deprecated, just assign static styleSpec: XinStyleSheet to the class directly"),f.style(Ne(e))}static elementCreator(e={}){let t=this;if(t._elementCreator==null){let{tag:i,styleSpec:s}=e,o=e!=null?i:null;if(o==null)if(typeof t.name==="string"&&t.name!==""){if(o=te(t.name),o.startsWith("-"))o=o.slice(1)}else o=It();if(customElements.get(o)!=null)console.warn(`${o} is already defined`);if(o.match(/\w+(-\w+)+/)==null)console.warn(`${o} is not a legal tag for a custom-element`),o=It();while(customElements.get(o)!==void 0)o=It();if(t._tagName=o,s!==void 0)R2(o,s);window.customElements.define(o,this,e),t._elementCreator=f[o]}return t._elementCreator}initAttributes(...e){let t={},i={};new MutationObserver((s)=>{let o=!1;if(s.forEach((l)=>{o=!!(l.attributeName&&e.includes(w2(l.attributeName)))}),o&&this.queueRender!==void 0)this.queueRender(!1)}).observe(this,{attributes:!0}),e.forEach((s)=>{t[s]=pe(this[s]);let o=te(s);Object.defineProperty(this,s,{enumerable:!1,get(){if(typeof t[s]==="boolean")return this.hasAttribute(o);else if(this.hasAttribute(o))return typeof t[s]==="number"?parseFloat(this.getAttribute(o)):this.getAttribute(o);else if(i[s]!==void 0)return i[s];else return t[s]},set(l){if(typeof t[s]==="boolean"){if(l!==this[s]){if(l)this.setAttribute(o,"");else this.removeAttribute(o);this.queueRender()}}else if(typeof t[s]==="number"){if(l!==parseFloat(this[s]))this.setAttribute(o,l),this.queueRender()}else if(typeof l==="object"||`${l}`!==`${this[s]}`){if(l===null||l===void 0||typeof l==="object")this.removeAttribute(o);else this.setAttribute(o,l);this.queueRender(),i[s]=l}}})})}initValue(){let e=Object.getOwnPropertyDescriptor(this,"value");if(e===void 0||e.get!==void 0||e.set!==void 0)return;let t=this.hasAttribute("value")?this.getAttribute("value"):pe(this.value);delete this.value,Object.defineProperty(this,"value",{enumerable:!1,get(){return t},set(i){if(t!==i)t=i,this.queueRender(!0)}})}_parts;get parts(){let e=this.shadowRoot!=null?this.shadowRoot:this;if(this._parts==null)this._parts=new Proxy({},{get(t,i){if(t[i]===void 0){let s=e.querySelector(`[part="${i}"]`);if(s==null)s=e.querySelector(i);if(s==null)throw Error(`elementRef "${i}" does not exist!`);s.removeAttribute("data-ref"),t[i]=s}return t[i]}});return this._parts}constructor(){super();Bi+=1,this.initAttributes("hidden"),this.instanceId=`${this.tagName.toLocaleLowerCase()}-${Bi}`,this._value=pe(this.defaultValue)}connectedCallback(){if($2(this.constructor.tagName),this.hydrate(),this.role!=null)this.setAttribute("role",this.role);if(this.onResize!==void 0){if(Wt.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");this.queueRender()}disconnectedCallback(){Wt.unobserve(this)}_changeQueued=!1;_renderQueued=!1;queueRender(e=!1){if(!this._hydrated)return;if(!this._changeQueued)this._changeQueued=e;if(!this._renderQueued)this._renderQueued=!0,requestAnimationFrame(()=>{if(this._changeQueued)Fi(this,"change");this._changeQueued=!1,this._renderQueued=!1,this.render()})}_hydrated=!1;hydrate(){if(!this._hydrated){this.initValue();let e=typeof this.content!=="function",t=typeof this.content==="function"?this.content(f):this.content,{styleSpec:i}=this.constructor,{styleNode:s}=this.constructor;if(i)s=this.constructor.styleNode=f.style(Ne(i)),delete this.constructor.styleNode;if(this.styleNode)console.warn(this,"styleNode is deprecrated, use static styleNode or statc styleSpec instead"),s=this.styleNode;if(s){let o=this.attachShadow({mode:"open"});o.appendChild(s.cloneNode(!0)),ki(o,t,e)}else if(t!==null){let o=Array.from(this.childNodes);ki(this,t,e),this.isSlotted=this.querySelector("slot,xin-slot")!==void 0;let l=Array.from(this.querySelectorAll("slot"));if(l.length>0)l.forEach(t1.replaceSlot);if(o.length>0){let n={"":this};Array.from(this.querySelectorAll("xin-slot")).forEach((a)=>{n[a.name]=a}),o.forEach((a)=>{let r=n[""],p=a instanceof Element?n[a.slot]:r;(p!==void 0?p:r).append(a)})}}this._hydrated=!0}}render(){}}class t1 extends m{name="";content=null;static replaceSlot(e){let t=document.createElement("xin-slot");if(e.name!=="")t.setAttribute("name",e.name);e.replaceWith(t)}constructor(){super();this.initAttributes("name")}}var En=t1.elementCreator({tag:"xin-slot"}),U2=(e=()=>!0)=>{let t=localStorage.getItem("xin-state");if(t!=null){let s=JSON.parse(t);for(let o of Object.keys(s).filter(e))if(H[o]!==void 0)Object.assign(H[o],s[o]);else H[o]=s[o]}let i=ct(()=>{let s={},o=j(H);for(let l of Object.keys(o).filter(e))s[l]=o[l];localStorage.setItem("xin-state",JSON.stringify(s)),console.log("xin state saved to localStorage")},500);Ue(e,i)},Ui="1.0.10";function J(e){return Object.assign(rt,e),rt}function i1(e){return console.warn("boxedProxy is deprecated, please use tosi() instead"),J(e)}function Wi(e,t=!1){if(t)return console.warn("xinProxy(..., true) is deprecated; use tosi(...) instead"),i1(e);return Object.keys(e).forEach((i)=>{H[i]=e[i]}),H}var W2={};async function s1(e,t){let{type:i,styleSpec:s}=await t(e,{Color:k,Component:m,elements:f,svgElements:pt,mathML:$i,varDefault:h,vars:c,xin:H,boxed:rt,xinProxy:Wi,boxedProxy:i1,tosi:J,makeComponent:s1,bind:X,on:Le,version:Ui}),o={type:i,creator:i.elementCreator({tag:e,styleSpec:s})};return W2[e]=o,o}var Dt={},G2=(e)=>import(e);class dt extends m{tag="anon-elt";src="";property="default";loaded;blueprintLoaded=(e)=>{};async packaged(){let{tag:e,src:t,property:i}=this,s=`${e}.${i}:${t}`;if(!this.loaded){if(Dt[s]===void 0)Dt[s]=G2(t).then((o)=>{let l=o[i];return s1(e,l)});else console.log(`using cached ${e} with signature ${s}`);this.loaded=await Dt[s],this.blueprintLoaded(this.loaded)}return this.loaded}constructor(){super();this.initAttributes("tag","src","property")}}var K2=dt.elementCreator({tag:"xin-blueprint",styleSpec:{":host":{display:"none"}}});class o1 extends m{allLoaded=()=>{};constructor(){super()}async load(){let e=Array.from(this.querySelectorAll(dt.tagName)).filter((t)=>t.src).map((t)=>t.packaged());await Promise.all(e),this.allLoaded()}connectedCallback(){super.connectedCallback(),this.load()}}var J2=o1.elementCreator({tag:"xin-loader",styleSpec:{":host":{display:"none"}}});var l1={};class Ee extends m{static set conditions(e){Object.assign(l1,e);for(let t of[...Ee.instances])t.queueRender()}condition="";not=!1;static instances=new Set;constructor(){super();this.initAttributes("condition","not")}connectedCallback(){super.connectedCallback(),Ee.instances.add(this)}disconnectedCallback(){super.disconnectedCallback(),Ee.instances.delete(this)}render(){if(this.condition!==""&&(this.not?l1[this.condition]!==!0:l1[this.condition]===!0))this.toggleAttribute("hidden",!1);else this.toggleAttribute("hidden",!0)}}var Q2=Ee.elementCreator({tag:"xin-ab"});var ht={};function F(e,t){if(ht[e]===void 0){if(t!==void 0){let s=globalThis[t];ht[e]=Promise.resolve({[t]:s})}let i=f.script({src:e});document.head.append(i),ht[e]=new Promise((s)=>{i.onload=()=>s(globalThis)})}return ht[e]}var n1={};function xt(e){if(n1[e]===void 0){let t=f.link({rel:"stylesheet",type:"text/css",href:e});document.head.append(t),n1[e]=new Promise((i)=>{t.onload=i})}return n1[e]}var Ge={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"><g></g><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"><g></g><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"><g></g><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"><g></g><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"><g></g><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 Z2=(e)=>{Object.assign(Ge,e)},a1=(e,t,i,s)=>{e.setAttribute("xmlns","http://www.w3.org/2000/svg");for(let n of[...e.querySelectorAll("path, polygon, line, circle, rect, ellipse, polyline")]){if(t!==void 0)n.setAttribute("fill",t);if(i!==void 0)n.setAttribute("stroke",i);if(s!==void 0)n.setAttribute("stroke-width",String(s))}let o=e.querySelectorAll("[style]");e.removeAttribute("style");for(let n of[...o]){let{fill:a,stroke:r,strokeWidth:p,strokeLinecap:d,strokeLinejoin:x}=n.style;if(a)n.setAttribute("fill",k.fromCss(a).html);if(r)n.setAttribute("stroke",k.fromCss(r).html);if(p)n.setAttribute("strokeWidth",p);if(d)n.setAttribute("strokeLinecap",d);if(x)n.setAttribute("strokeLinejoin",x);n.removeAttribute("style")}return`url(data:image/svg+xml;charset=UTF-8,${encodeURIComponent(e.outerHTML)})`},u=new Proxy(Ge,{get(e,t){let i=Ge[t];if(t&&!i)console.warn(`icon ${t} does not exist`);if(!i)i=Ge.square;return(...s)=>{let o=f.div();o.innerHTML=i;let l=o.querySelector("svg"),n=new Set(l.classList);n.add("xin-icon");let a=pt.svg({class:Array.from(n).join(" "),viewBox:l.getAttribute("viewBox")},...s,...l.children);return a.style.strokeWidth=h.tosiIconStrokeWidth("2px"),a.style.stroke=h.tosiIconStroke(n.has("filled")?"none":"currentColor"),a.style.fill=h.tosiIconFill(n.has("stroked")?"none":"currentColor"),a.style.height=h.tosiIconSize("16px"),a}}});class r1 extends m{icon="";size=0;fill="";stroke="";strokeWidth=1;constructor(){super();this.initAttributes("icon","size","fill","stroke","strokeWidth")}render(){super.render(),this.textContent="";let e={};if(this.size)e.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)e.stroke=this.stroke,e.strokeWidth=this.strokeWidth;e.fill=this.fill,this.append(u[this.icon]({style:e}))}}var Y2=r1.elementCreator({tag:"xin-icon",styleSpec:{":host":{"--tosi-icon-size":"16px","--tosi-icon-stroke-width":"2px","--tosi-icon-stroke-linejoin":"round","--tosi-icon-stroke-linecap":"round","--tosi-icon-fill":"none","--xin-icon-size":"var(--tosi-icon-size)","--icon-stroke-width":"var(--tosi-icon-stroke-width)","--icon-stroke-linejoin":"var(--tosi-icon-stroke-linejoin)","--icon-stroke-linecap":"var(--tosi-icon-stroke-linecap)","--icon-fill":"var(--tosi-icon-fill)",display:"inline-flex",stroke:"currentColor",strokeWidth:h.tosiIconStrokeWidth("2px"),strokeLinejoin:h.tosiIconStrokeLinejoin("round"),strokeLinecap:h.tosiIconStrokeLinecap("round"),fill:h.tosiIconFill("none")},":host, :host svg":{height:h.tosiIconSize("16px")}}});var Gi=()=>{};class c1 extends m{babylonReady;BABYLON;static styleSpec={":host":{display:"block",position:"relative"},":host canvas":{width:"100%",height:"100%"},":host .babylonVRicon":{height:50,width:80,backgroundColor:"transparent",filter:"drop-shadow(0 0 4px #000c)",backgroundImage:a1(u.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=f.canvas({part:"canvas"});constructor(){super();this.babylonReady=(async()=>{let{BABYLON:e}=await F("https://cdn.babylonjs.com/babylon.js","BABYLON");return e})()}scene;engine;sceneCreated=Gi;update=Gi;_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(e,t,i)=>{let{BABYLON:s}=await F("https://cdn.babylonjs.com/loaders/babylonjs.loaders.min.js","BABYLON");s.SceneLoader.Append(e,t,this.scene,i)};loadUI=async(e)=>{let{BABYLON:t}=await F("https://cdn.babylonjs.com/gui/babylon.gui.min.js","BABYLON"),i=t.GUI.AdvancedDynamicTexture.CreateFullscreenUI("GUI",!0,this.scene),{snippetId:s,jsonUrl:o,data:l,size:n}=e;if(n)i.idealWidth=n,i.renderAtIdealSize=!0;let a;if(s)a=await i.parseFromSnippetAsync(s);else if(o)a=await i.parseFromURLAsync(o);else if(l)a=i.parseContent(l);else return null;let r=i.getChildren()[0],p=r.children.reduce((d,x)=>{return d[x.name]=x,d},{});return{advancedTexture:i,gui:a,root:r,widgets:p}};connectedCallback(){super.connectedCallback();let{canvas:e}=this.parts;this.babylonReady.then(async(t)=>{if(this.BABYLON=t,this.engine=new t.Engine(e,!0),this.scene=new t.Scene(this.engine),this.sceneCreated)await this.sceneCreated(this,t);if(this.scene.activeCamera===void 0)new t.ArcRotateCamera("default-camera",-Math.PI/2,Math.PI/2.5,3,new t.Vector3(0,0,0)).attachControl(this.parts.canvas,!0);this.engine.runRenderLoop(this._update)})}}var X2=c1.elementCreator({tag:"xin-3d"});class He extends m{content=null;src="";json="";config={renderer:"svg",loop:!0,autoplay:!0};static bodymovinAvailable;animation;static styleSpec={":host":{width:400,height:400,display:"inline-block"}};_loading=!1;get loading(){return this._loading}constructor(){super();if(this.initAttributes("src","json"),He.bodymovinAvailable===void 0)He.bodymovinAvailable=F("https://cdnjs.cloudflare.com/ajax/libs/bodymovin/5.12.2/lottie.min.js","bodymovin")}doneLoading=()=>{this._loading=!1};load=({bodymovin:e})=>{if(this._loading=!0,this.config.container=this.shadowRoot!==null?this.shadowRoot:void 0,this.json!=="")this.config.animationData=this.json,delete this.config.path;else if(this.src!=="")delete this.config.animationData,this.config.path=this.src;else console.log("%c<xin-lottie>%c expected either %cjson%c (animation data) or %csrc% c(url) but found neither.","color: #44f; background: #fff; padding: 0 5px","color: default","color: #44f; background: #fff; padding: 0 5px","color: default","color: #44f; background: #fff; padding: 0 5px","color: default");if(this.animation){this.animation.destroy();let t=this.shadowRoot;if(t!==null)t.querySelector("svg")?.remove()}this.animation=e.loadAnimation(this.config),this.animation.addEventListener("DOMLoaded",this.doneLoading)};render(){super.render(),He.bodymovinAvailable.then(this.load).catch((e)=>{console.error(e)})}}var eo=He.elementCreator({tag:"xin-lottie"});var{button:p1,slot:to,div:yt}=f;class d1 extends m{arrows=!1;dots=!1;loop=!1;maxVisibleItems=1;snapDelay=0.1;snapDuration=0.25;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(e){let{scroller:t,back:i,forward:s}=this.parts;if(this.lastPage<=0)s.disabled=i.disabled=!0,e=0;else e=Math.max(0,Math.min(this.lastPage,e)),e=isNaN(e)?0:e;if(this._page!==e)this._page=isNaN(e)?0:e,this.animateScroll(this._page*t.offsetWidth),i.disabled=this.page<=0&&!this.loop,s.disabled=this.page>=this.lastPage&&!this.loop}get visibleItems(){return[...this.children].filter((e)=>getComputedStyle(e).display!=="none")}get lastPage(){return Math.max(Math.ceil(this.visibleItems.length/(this.maxVisibleItems||1))-1,0)}static styleSpec={":host":{display:"flex",flexDirection:"column",position:"relative"},":host svg":{height:c.carouselIconSize},":host button":{outline:"none",border:"none",boxShadow:"none",background:"transparent",color:c.carouselButtonColor,padding:0},":host::part(back), :host::part(forward)":{position:"absolute",top:0,bottom:0,width:c.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:c.carouselButtonHoverColor},":host button:active":{color:c.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:c.carouselButtonColor,borderRadius:c.carouselDotSize,height:c.carouselDotSize,width:c.carouselDotSize,transition:c.carouselDotTransition},":host .dot:not(.current):hover":{background:c.carouselButtonHoverColor,height:c.carouselDotSize150,width:c.carouselDotSize150,margin:c.carouselDotSize_25},":host .dot:not(.current):active":{background:c.carouselButtonActiveColor},":host .dot.current":{background:c.carouselDotCurrentColor},":host::part(progress)":{display:"flex",gap:c.carouselDotSpacing,justifyContent:"center",padding:c.carouselProgressPadding}};easing=(e)=>{return Math.sin(e*Math.PI*0.5)};indicateCurrent=()=>{let{scroller:e,progress:t}=this.parts,i=e.scrollLeft/e.offsetWidth;[...t.children].forEach((s,o)=>{s.classList.toggle("current",Math.floor(o/this.maxVisibleItems-i)===0)}),this.lastAutoAdvance=Date.now(),clearTimeout(this.snapTimer),this.snapTimer=setTimeout(this.snapPosition,this.snapDelay*1000)};snapPosition=()=>{let{scroller:e}=this.parts,t=Math.round(e.scrollLeft/e.offsetWidth);if(t!==this.page)this.page=t>this.page?Math.ceil(t):Math.floor(t);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=(e)=>{let{progress:t}=this.parts,i=[...t.children].indexOf(e.target);if(i>-1)this.page=Math.floor(i/this.maxVisibleItems)};snapTimer;animationFrame;animateScroll(e,t=-1,i=0){cancelAnimationFrame(this.animationFrame);let{scroller:s}=this.parts;if(t===-1){t=s.scrollLeft,i=Date.now(),this.animationFrame=requestAnimationFrame(()=>{this.animateScroll(e,t,i)});return}let o=(Date.now()-i)/1000;if(o>=this.snapDuration||Math.abs(s.scrollLeft-e)<2)s.scrollLeft=e,this.animationFrame=null;else s.scrollLeft=t+this.easing(o/this.snapDuration)*(e-t),this.animationFrame=requestAnimationFrame(()=>{this.animateScroll(e,t,i)})}content=()=>[yt({part:"pager"},p1({title:"previous slide",part:"back"},u.chevronLeft()),yt({title:"slides",role:"group",part:"scroller"},yt({part:"grid"},to())),p1({title:"next slide",part:"forward"},u.chevronRight())),yt({title:"choose slide to display",role:"group",part:"progress"})];constructor(){super();this.initAttributes("dots","arrows","maxVisibleItems","snapDuration","loop","auto")}connectedCallback(){super.connectedCallback(),this.ariaRoleDescription="carousel",this.ariaOrientation="horizontal",this.ariaReadOnly="true";let{back:e,forward:t,scroller:i,progress:s}=this.parts;e.addEventListener("click",this.back),t.addEventListener("click",this.forward),i.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:e,arrows:t,visibleItems:i,lastPage:s}=this,{progress:o,back:l,forward:n,grid:a}=this.parts;i.forEach((r)=>{r.role="group"}),a.style.gridTemplateColumns=`${100/this.maxVisibleItems/(1+this.lastPage)}% `.repeat(i.length).trim(),a.style.width=(1+this.lastPage)*100+"%",o.textContent="",o.append(...i.map((r,p)=>p1({title:`item ${p+1}`,class:"dot"}))),this.indicateCurrent(),o.style.display=e&&s>0?"":"none",l.hidden=n.hidden=!(t&&s>0)}}var io=d1.elementCreator({tag:"xin-carousel",styleSpec:{":host":{_carouselIconSize:24,_carouselButtonColor:"#0004",_carouselButtonHoverColor:"#0006",_carouselButtonActiveColor:"#000c",_carouseButtonWidth:48,_carouselDotCurrentColor:"#0008",_carouselDotSize:8,_carouselDotSpacing:c.carouselDotSize,_carouselProgressPadding:12,_carouselDotTransition:"0.125s ease-in-out"},":host:focus":{outline:"none",boxShadow:"none"}}});var Ki="https://cdnjs.cloudflare.com/ajax/libs/ace/1.23.2/",Ji="ace/theme/tomorrow",so=async()=>{let{ace:e}=await F(`${Ki}ace.min.js`);return e},oo=async(e,t="html",i={},s=Ji)=>{let o=await so();o.config.set("basePath",Ki);let l=o.edit(e,{mode:`ace/mode/${t}`,tabSize:2,useSoftTabs:!0,useWorker:!1,...i});return l.setTheme(s),{ace:o,editor:l}};class xe extends m{source="";get value(){return this.editor===void 0?this.source:this.editor.getValue()}set value(e){if(this.editor===void 0)this.source=e;else this.editor.setValue(e),this.editor.clearSelection(),this.editor.session.getUndoManager().reset()}mode="javascript";disabled=!1;role="code editor";_ace;_editor;_editorPromise;options={};theme=Ji;get ace(){return this._ace}get editor(){return this._editor}static styleSpec={":host":{display:"block",position:"relative",width:"100%",height:"100%"}};constructor(){super();this.initAttributes("mode","theme","disabled")}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=oo(this,this.mode,this.options,this.theme),this._editorPromise.then(({ace:e,editor:t})=>{this._ace=e,this._editor=t,t.setValue(this.source,1),t.clearSelection(),t.session.getUndoManager().reset()})}render(){if(super.render(),this._editorPromise!==void 0)this._editorPromise.then(({editor:e})=>e.setReadOnly(this.disabled))}}var Ke=xe.elementCreator({tag:"xin-code"});var{input:h1}=f,Qi=k.fromCss("#8888");class Zi extends m{value=Qi.rgba;color=Qi;static styleSpec={":host":{_gap:8,_swatchSize:32,_cssWidth:72,_alphaWidth:72,display:"inline-flex",gap:c.gap,alignItems:"center"},':host input[type="color"]':{border:0,width:c.swatchSize,height:c.swatchSize,background:"transparent"},":host::part(alpha)":{width:c.alphaWidth},":host::part(css)":{width:c.cssWidth,fontFamily:"monospace"}};content=[h1({title:"base color",type:"color",part:"rgb"}),h1({type:"range",title:"opacity",part:"alpha",min:0,max:1,step:0.05}),h1({title:"css color spec",part:"css"})];valueChanged=!1;update=(e)=>{let{rgb:t,alpha:i,css:s}=this.parts;if(e.type==="input")this.color=k.fromCss(t.value),this.color.a=Number(i.value),s.value=this.color.html;else this.color=k.fromCss(s.value),t.value=this.color.html.substring(0,7),i.value=String(this.color.a);t.style.opacity=String(this.color.a),this.value=this.color.rgba,this.valueChanged=!0};connectedCallback(){super.connectedCallback();let{rgb:e,alpha:t,css:i}=this.parts;e.addEventListener("input",this.update),t.addEventListener("input",this.update),i.addEventListener("change",this.update)}render(){if(this.valueChanged){this.valueChanged=!1;return}let{rgb:e,alpha:t,css:i}=this.parts;this.color=k.fromCss(this.value),e.value=this.color.html.substring(0,7),e.style.opacity=String(this.color.a),t.value=String(this.color.a),i.value=this.color.html}}var x1=Zi.elementCreator({tag:"xin-color"});var ie=f.div({style:{content:" ",position:"fixed",top:0,left:0,right:0,bottom:0}}),ut={passive:!0},T=(e,t,i="move")=>{if(!e.type.startsWith("touch")){let{clientX:o,clientY:l}=e;ie.style.cursor=i,se(ie),document.body.append(ie);let n=(a)=>{let r=a.clientX-o,p=a.clientY-l;if(t(r,p,a)===!0)ie.removeEventListener("mousemove",n),ie.removeEventListener("mouseup",n),ie.remove()};ie.addEventListener("mousemove",n,ut),ie.addEventListener("mouseup",n,ut)}else if(e instanceof TouchEvent){let o=e.changedTouches[0],l=o.identifier,n=o.clientX,a=o.clientY,r=e.target,p=0,d=0,x=(g)=>{let v=[...g.touches].find((y)=>y.identifier===l);if(v!==void 0)p=v.clientX-n,d=v.clientY-a;if(g.type==="touchmove")g.stopPropagation(),g.preventDefault();if(t(p,d,g)===!0||v===void 0)r.removeEventListener("touchmove",x),r.removeEventListener("touchend",x),r.removeEventListener("touchcancel",x)};r.addEventListener("touchmove",x),r.addEventListener("touchend",x,ut),r.addEventListener("touchcancel",x,ut)}},ye=(e="body *")=>[...document.querySelectorAll(e)].map((t)=>parseFloat(getComputedStyle(t).zIndex)).reduce((t,i)=>isNaN(t)||Number(t)<i?i:Number(t),0),se=(e,t="body *")=>{e.style.zIndex=String(ye(t)+1)};var{slot:lo}=f;class oe extends m{static floats=new Set;drag=!1;remainOnResize="remove";remainOnScroll="remain";content=lo();static styleSpec={":host":{position:"fixed"}};constructor(){super();this.initAttributes("drag","remainOnResize","remainOnScroll")}reposition=(e)=>{if(e.target?.closest(".no-drag"))return;if(this.drag){se(this);let i=this.offsetLeft,s=this.offsetTop;T(e,(o,l,n)=>{if(this.style.left=`${i+o}px`,this.style.top=`${s+l}px`,this.style.right="auto",this.style.bottom="auto",n.type==="mouseup")return!0})}};connectedCallback(){super.connectedCallback(),oe.floats.add(this);let e={passive:!0};this.addEventListener("touchstart",this.reposition,e),this.addEventListener("mousedown",this.reposition,e),se(this)}disconnectedCallback(){super.disconnectedCallback(),oe.floats.delete(this)}}var gt=oe.elementCreator({tag:"xin-float"});window.addEventListener("resize",()=>{Array.from(oe.floats).forEach((e)=>{if(e.remainOnResize==="hide")e.hidden=!0;else if(e.remainOnResize==="remove")e.remove()})},{passive:!0});document.addEventListener("scroll",(e)=>{if(e.target instanceof HTMLElement&&e.target.closest(oe.tagName))return;Array.from(oe.floats).forEach((t)=>{if(t.remainOnScroll==="hide")t.hidden=!0;else if(t.remainOnScroll==="remove")t.remove()})},{passive:!0,capture:!0});var y1=(e)=>{let{content:t,target:i,position:s,remainOnScroll:o,remainOnResize:l,draggable:n}=e,a=Array.isArray(t)?gt(...t):gt(t);if(Yi(a,i,s,o,l,n),e.class)a.setAttribute("class",e.class);return document.body.append(a),a},Yi=(e,t,i,s,o,l=!1)=>{{let{position:y}=getComputedStyle(e);if(y!=="fixed")e.style.position="fixed";if(o)e.remainOnResize=o;if(s)e.remainOnScroll=s;se(e)}e.drag=l;let{left:n,top:a,width:r,height:p}=t.getBoundingClientRect(),d=n+r*0.5,x=a+p*0.5,g=window.innerWidth,v=window.innerHeight;if(i==="side")i=(d<g*0.5?"e":"w")+(x<v*0.5?"s":"n");else if(i==="auto"||i===void 0)i=(x<v*0.5?"s":"n")+(d<g*0.5?"e":"w");if(e.style.top=e.style.left=e.style.right=e.style.bottom=e.style.transform="",i.length===2){let[y,C]=i;switch(y){case"n":e.style.bottom=(v-a).toFixed(2)+"px";break;case"e":e.style.left=(n+r).toFixed(2)+"px";break;case"s":e.style.top=(a+p).toFixed(2)+"px";break;case"w":e.style.right=(g-n).toFixed(2)+"px";break}switch(C){case"n":e.style.bottom=(v-a-p).toFixed(2)+"px";break;case"e":e.style.left=n.toFixed(2)+"px";break;case"s":e.style.top=a.toFixed(2)+"px";break;case"w":e.style.right=(g-n-r).toFixed(2)+"px";break}e.style.transform=""}else if(i==="n")e.style.bottom=(v-a).toFixed(2)+"px",e.style.left=d.toFixed(2)+"px",e.style.transform="translateX(-50%)";else if(i==="s")e.style.top=(a+p).toFixed(2)+"px",e.style.left=d.toFixed(2)+"px",e.style.transform="translateX(-50%)";else if(i==="e")e.style.left=(n+r).toFixed(2)+"px",e.style.top=x.toFixed(2)+"px",e.style.transform="translateY(-50%)";else if(i==="w")e.style.right=(g-n).toFixed(2)+"px",e.style.top=x.toFixed(2)+"px",e.style.transform="translateY(-50%)";e.style.setProperty("--max-height",`calc(100vh - ${e.style.top||e.style.bottom})`),e.style.setProperty("--max-width",`calc(100vw - ${e.style.left||e.style.right})`)};function ft(e,t=!0){return(i,s)=>{let o=e(i),l=e(s);for(let n in o)if(o[n]!==l[n])return(Array.isArray(t)?t[n]!==!1:t)?o[n]>l[n]?1:-1:o[n]>l[n]?-1:1;return 0}}var{button:no,span:Xi,input:ao}=f,es=(e,t)=>{return!!e.find((i)=>{if(i===null||t==null)return!1;else if(Array.isArray(i))return es(i,t);else if(i.value===t||i===t)return!0})};class ue extends m{editable=!1;showIcon=!1;hideCaption=!1;options="";value="";placeholder="";filter="";localized=!1;disabled=!1;isExpanded=!1;setValue=(e,t=!1)=>{if(this.value!==e)this.value=e;if(t)this.dispatchEvent(new Event("action"))};getValue=()=>this.value;get selectOptions(){return typeof this.options==="string"?this.options.split(",").map((e)=>e.trim()||null):this.options}buildOptionMenuItem=(e)=>{if(e===null)return null;let{setValue:t,getValue:i}=this,s,o,l;if(typeof e==="string")o=l=e;else({icon:s,caption:o,value:l}=e);if(this.localized)o=L(o);let{options:n}=e;if(n)return{icon:s,caption:o,checked:()=>es(n,i()),menuItems:n.map(this.buildOptionMenuItem)};return{icon:s,caption:o,checked:()=>i()===l,action:typeof l==="function"?async()=>{let a=await l();if(a!==void 0)t(a,!0)}:()=>{if(typeof l==="string")t(l,!0)}}};get optionsMenu(){let e=this.selectOptions.map(this.buildOptionMenuItem);if(this.filter==="")return e;let t=(i)=>{if(i===null)return!0;else if(i.menuItems)return i.menuItems=i.menuItems.filter(t),i.menuItems.length>0;else return i.caption.toLocaleLowerCase().includes(this.filter)};return e.filter(t)}handleChange=(e)=>{let{value:t}=this.parts,i=t.value||"";if(this.value!==String(i))this.value=i,this.dispatchEvent(new Event("change"));this.filter="",e.stopPropagation(),e.preventDefault()};handleKey=(e)=>{if(e.key==="Enter")e.preventDefault()};filterMenu=qe(()=>{this.filter=this.parts.value.value.toLocaleLowerCase(),le(0),this.popOptions()});popOptions=(e)=>{if(e&&e.type==="click")this.filter="";this.poppedOptions=this.optionsMenu,this.isExpanded=!0,this.updateAriaExpanded(),S({target:this,menuItems:this.poppedOptions,showChecked:!0,role:"listbox",onClose:()=>{this.isExpanded=!1,this.updateAriaExpanded()}})};updateAriaExpanded(){let{value:e}=this.parts;e.setAttribute("aria-expanded",String(this.isExpanded))}content=()=>[no({part:"button",onClick:this.popOptions},Xi(),ao({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}),u.chevronDown())];constructor(){super();this.initAttributes("options","editable","placeholder","showIcon","hideCaption","localized","disabled")}get allOptions(){let e=[];function t(i){for(let s of i)if(typeof s==="string")e.push({caption:s,value:s});else if(s?.value)e.push(s);else if(s?.options)t(s.options)}return t(this.selectOptions),e}findOption(){return this.allOptions.find((t)=>t.value===this.value)||{caption:this.value,value:this.value}}localeChanged=()=>{this.queueRender()};connectedCallback(){if(super.connectedCallback(),this.localized)O.allInstances.add(this)}disconnectedCallback(){if(super.disconnectedCallback(),this.localized)O.allInstances.delete(this)}render(){super.render();let{value:e,button:t}=this.parts;t.disabled=this.disabled;let i=e.previousElementSibling,s=this.findOption(),o=Xi();if(e.value=this.localized?L(s.caption):s.caption,s.icon)if(s.icon instanceof HTMLElement)o=s.icon.cloneNode(!0);else o=u[s.icon]();i.replaceWith(o),e.setAttribute("placeholder",this.localized?L(this.placeholder):this.placeholder),e.style.pointerEvents=this.editable?"":"none",e.readOnly=!this.editable}}var V=ue.elementCreator({tag:"xin-select",styleSpec:{":host":{"--tosi-select-gap":"var(--tosi-spacing-sm, 8px)","--tosi-select-touch-size":"var(--tosi-touch-size, 44px)","--tosi-select-padding":"0 var(--tosi-spacing-sm, 8px)","--tosi-select-value-padding":"0 var(--tosi-spacing-sm, 8px)","--tosi-select-icon-width":"24px","--tosi-select-field-width":"140px","--gap":"var(--tosi-select-gap)","--touch-size":"var(--tosi-select-touch-size)","--padding":"var(--tosi-select-padding)","--value-padding":"var(--tosi-select-value-padding)","--icon-width":"var(--tosi-select-icon-width)","--fieldWidth":"var(--tosi-select-field-width)",display:"inline-flex",position:"relative"},":host button":{display:"flex",alignItems:"center",justifyItems:"center",gap:c.tosiSelectGap,textAlign:"left",height:c.tosiSelectTouchSize,padding:c.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:c.tosiSelectFieldWidth,padding:c.tosiSelectValuePadding,height:c.tosiSelectTouchSize,lineHeight:c.tosiSelectTouchSize,boxShadow:"none",whiteSpace:"nowrap",outline:"none",background:"transparent",flex:"1"},':host [part="value"]:not(:focus)':{overflow:"hidden",textOverflow:"ellipsis",background:"transparent"}}});var{span:ts}=f,{i18n:E}=J({i18n:{locale:window.navigator.language,locales:[window.navigator.language],languages:[window.navigator.language],emoji:[""],stringMap:{},localeOptions:[{icon:ts(),caption:window.navigator.language,value:window.navigator.language}]}});ee.localeOptions={toDOM(e,t){if(e instanceof ue)e.options=t}};var ro=(e)=>{if(E.locales.xinValue.includes(e))E.locale.xinValue=e;else console.error(`language ${e} is not available`)},u1=()=>{let e=Array.from(O.allInstances);for(let t of e)t.localeChanged()};Ue(E.locale.xinPath,u1);var co=ft((e)=>[e.caption.toLocaleLowerCase()]);function po(e){let[t,,i,s,...o]=e.split(`
11
- `).map((l)=>l.split("\t"));if(t&&i&&s&&o){if(E.locales.xinValue=t,E.languages.xinValue=i,E.emoji.xinValue=s,E.stringMap.xinValue=o.reduce((l,n)=>{return l[n[0].toLocaleLowerCase()]=n,l},{}),E.localeOptions.xinValue=t.map((l,n)=>({icon:ts({title:t[n]},s[n]),caption:i[n],value:l})).sort(co),!E.locales.xinValue.includes(E.locale.xinValue)){let l=E.locale.substring(0,2);E.locale.xinValue=E.locales.xinValue.find((n)=>n.substring(0,2)===l)||E.locales.xinValue[0]}u1()}}function L(e){if(e.endsWith("…"))return L(e.substring(0,e.length-1))+"…";let t=E.locales.xinValue.indexOf(E.locale.xinValue);if(t>-1){let s=E.stringMap.xinValue[e.toLocaleLowerCase()],o=s&&s[t];if(o)e=e.toLocaleLowerCase()===e?o.toLocaleLowerCase():o}return e}class g1 extends m{hideCaption=!1;content=()=>{return V({part:"select",showIcon:!0,title:L("Language"),bindValue:E.locale,bindLocaleOptions:E.localeOptions})};constructor(){super();this.initAttributes("hideCaption")}render(){super.render(),this.parts.select.toggleAttribute("hide-caption",this.hideCaption)}}var ho=g1.elementCreator({tag:"xin-locale-picker"});class O extends m{static allInstances=new Set;contents=()=>f.xinSlot();refString="";constructor(){super();this.initAttributes("refString")}connectedCallback(){super.connectedCallback(),O.allInstances.add(this)}disconnectedCallback(){super.disconnectedCallback(),O.allInstances.delete(this)}localeChanged(){if(!this.refString)this.refString=this.textContent||"";this.textContent=this.refString?L(this.refString):""}render(){super.render(),this.localeChanged()}}var Q=O.elementCreator({tag:"xin-localized",styleSpec:{":host":{pointerEvents:"none"}}});var is=(e,t)=>{t=t.toLocaleLowerCase();let i=!!t.match(/\^|ctrl/),s=!!t.match(/⌘|meta/),o=!!t.match(/⌥|⎇|alt|option/),l=!!t.match(/⇧|shift/),n=t.slice(-1);return e.key===n&&e.metaKey===s&&e.ctrlKey===i&&e.altKey===o&&e.shiftKey===l};var{div:ss,button:f1,span:I,a:xo,xinSlot:yo}=f;$e("xin-menu-helper",{".xin-menu":{overflow:"hidden auto",maxHeight:`calc(${c.maxHeight} - ${h.menuInset("8px")})`,borderRadius:c.spacing50,background:h.menuBg("#fafafa"),boxShadow:h.menuShadow(`${c.spacing13} ${c.spacing50} ${c.spacing} #0004`)},".xin-menu > div":{width:h.menuWidth("auto")},".xin-menu-trigger":{paddingLeft:0,paddingRight:0,minWidth:h.touchSize("48px")},".xin-menu-separator":{display:"inline-block",content:" ",height:"1px",width:"100%",background:h.menuSeparatorColor("#2224"),margin:h.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:h.menuItemPadding("0 16px"),height:h.menuItemHeight("48px"),lineHeight:h.menuItemHeight("48px"),textAlign:"left"},".xin-menu-item, .xin-menu-item > span":{color:h.menuItemColor("#222")},".xin-menu-with-icons .xin-menu-item":{gridTemplateColumns:"30px 1fr 30px"},".xin-menu-item svg":{stroke:h.menuItemIconColor("#222")},".xin-menu-item.xin-menu-item-checked":{background:h.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:h.menuItemHoverBg("#eee")},".xin-menu-item:active":{boxShadow:"none !important",background:h.menuItemActiveBg("#aaa"),color:h.menuItemActiveColor("#000")},".xin-menu-item:active svg":{stroke:h.menuItemIconActiveColor("#000")}});var os=(e,t)=>{let i=e.checked&&e.checked()&&"check"||!1,s=e?.icon||i||I(" ");if(typeof s==="string")s=u[s]();let o=t.role==="listbox"?"option":"menuitem",l;if(typeof e?.action==="string")l=xo({class:"xin-menu-item",role:o,href:e.action},s,t.localized?I(L(e.caption)):I(e.caption),I(e.shortcut||" "));else l=f1({class:"xin-menu-item",role:o,onClick:e.action},s,t.localized?I(L(e.caption)):I(e.caption),I(e.shortcut||" "));if(l.classList.toggle("xin-menu-item-checked",i!==!1),t.role==="listbox"&&i)l.setAttribute("aria-selected","true");if(e?.enabled&&!e.enabled())l.setAttribute("disabled",""),l.setAttribute("aria-disabled","true");return l},ls=(e,t)=>{let i=e.checked&&e.checked()&&"check"||!1,s=e?.icon||i||I(" ");if(typeof s==="string")s=u[s]();let o=f1({class:"xin-menu-item",disabled:!(!e.enabled||e.enabled()),onClick(l){S(Object.assign({},t,{menuItems:e.menuItems,target:o,submenuDepth:(t.submenuDepth||0)+1,position:"side"})),l.stopPropagation(),l.preventDefault()}},s,t.localized?I(L(e.caption)):I(e.caption),u.chevronRight({style:{justifySelf:"flex-end"}}));return o},ns=(e,t)=>{if(e===null)return I({class:"xin-menu-separator"});else{let i=e?.action?os(e,t):ls(e,t);if(t.showChecked&&e.checked&&e.checked())requestAnimationFrame(()=>{i.scrollIntoView({block:"center"})});return i}},as=(e)=>{let{target:t,width:i,menuItems:s,role:o="menu"}=e,l=s.find((n)=>n?.icon||n?.checked);return ss({class:l?"xin-menu xin-menu-with-icons":"xin-menu",role:o,onClick(){le(0)}},ss({style:{minWidth:t.offsetWidth+"px",width:typeof i==="number"?`${i}px`:i},onMousedown(n){n.preventDefault(),n.stopPropagation()}},...s.map((n)=>ns(n,e))))},Ae,ge=[],le=(e=0)=>{let t=ge.splice(e);for(let i of t)if(i.menu.remove(),i.onClose)i.onClose();return Ae=t[0],e>0?ge[e-1]:void 0};document.body.addEventListener("mousedown",(e)=>{if(e.target&&!ge.find((t)=>t.target.contains(e.target)))le(0)});document.body.addEventListener("keydown",(e)=>{if(e.key==="Escape")le(0)});var S=(e)=>{e=Object.assign({submenuDepth:0},e);let{target:t,position:i,submenuDepth:s}=e;if(Ae&&!document.body.contains(Ae?.menu))Ae=void 0;if(ge.length&&!document.body.contains(ge[0].menu))ge.splice(0);if(s===0&&Ae?.target===t)return;let o=le(s);if(Ae?.target===t)return;if(o&&o.target===t){le();return}if(!e.menuItems?.length)return;let l=as(e),n=y1({content:l,target:t,position:i});n.remainOnScroll="remove",ge.push({target:t,menu:n,onClose:e.onClose})};function rs(e,t){for(let i of e){if(!i)continue;let{shortcut:s}=i,{menuItems:o}=i;if(s){if(is(t,s))return i}else if(o){let l=rs(o,t);if(l)return l}}return}class m1 extends m{menuItems=[];menuWidth="auto";localized=!1;showMenu=(e)=>{if(e.type==="click"||e.code==="Space")S({target:this.parts.trigger,width:this.menuWidth,localized:this.localized,menuItems:this.menuItems}),e.stopPropagation(),e.preventDefault()};content=()=>f1({tabindex:0,part:"trigger",onClick:this.showMenu},yo());handleShortcut=async(e)=>{let t=rs(this.menuItems,e);if(t){if(t.action instanceof Function)t.action()}};constructor(){super();this.initAttributes("menuWidth","localized","icon"),this.addEventListener("keydown",this.showMenu)}connectedCallback(){super.connectedCallback(),document.addEventListener("keydown",this.handleShortcut,!0)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("keydown",this.handleShortcut)}}var uo=m1.elementCreator({tag:"xin-menu",styleSpec:{":host":{display:"inline-block"},":host button > xin-slot":{display:"flex",alignItems:"center",gap:h.xinMenuTriggerGap("10px")}}});var vt={};Ft(vt,{init:()=>k1,draggedElement:()=>ko});var go=()=>!!document.querySelector(".drag-source"),ds=(e,t)=>{if(!e)return!1;for(let i of e)if(i==="special/any")return!0;else if(i.indexOf("*")>-1){let[s,o]=i.split("/"),[l,n]=t.split("/");if((s==="*"||s===l)&&(o==="*"||o===n))return!0}else if(i===t)return!0},mt=(e)=>{for(let t of[...document.querySelectorAll(`.${e}`)])t.classList.remove(e)},hs=()=>{mt("drag-over"),mt("drag-source"),mt("drag-target")},v1=(e,t=";")=>{return(e||"").split(t).map((i)=>i.trim()).filter((i)=>i!=="")},xs=(e)=>{if(!e)e=[];let t=[...document.querySelectorAll("[data-drop]")];for(let i of t){let s=v1(i.dataset.drop);if(e.find((o)=>ds(s,o)))i.classList.add("drag-target");else i.classList.remove("drag-target")}};function fo(e){let t=e.target?.closest('[draggable="true"],a[href]');if(!t)return;t.classList.add("drag-source");let i=t.matches('[draggable="true"]')?v1(t.dataset.drag||"text/html"):v1(t.dataset.drag||"url");for(let s of i){let o=t.dataset.dragContent||(s==="text/html"?t.innerHTML:t.textContent);e.dataTransfer?.setData(s,o||"")}xs(e.dataTransfer?.types),e.stopPropagation()}function cs(e){if(!go())xs(e.dataTransfer?.types);let t=e.target.closest(".drag-target");if(t&&e.dataTransfer)t.classList.add("drag-over"),e.dataTransfer.dropEffect="copy";else e.preventDefault(),e.stopPropagation()}function mo(){mt("drag-over")}function vo(e){let t=e.target.closest(".drag-target");if(t){let i=(t.dataset?.drop||"").split(";");for(let s of i)if(ds(e.dataTransfer?.types,s))if(s==="text/html")t.innerHTML=e.dataTransfer?.getData(s)||"";else t.textContent=e.dataTransfer?.getData(s)||""}hs()}var ko=()=>document.querySelector(".drag-source"),ps=!1,k1=()=>{if(ps)return;document.body.addEventListener("dragstart",fo),document.body.addEventListener("dragenter",cs),document.body.addEventListener("dragover",cs),document.body.addEventListener("drop",vo),document.body.addEventListener("dragleave",mo),document.body.addEventListener("dragend",hs),window.addEventListener("dragover",(e)=>e.preventDefault()),window.addEventListener("drop",(e)=>e.preventDefault()),ps=!0};function Co(e,t,i){let s=e.find((o)=>o[t]!==void 0&&o[t]!==null);if(s!==void 0){let o=s[t];switch(typeof o){case"string":if(o.match(/^\d+(\.\d+)?$/))return 6*i;else if(o.includes(" "))return 20*i;else return 12*i;case"number":return 6*i;case"boolean":return 5*i;case"object":return!1;default:return 8*i}}return!1}var{div:Pe,span:C1,button:wo,template:bo}=f,ys=(e)=>e;class w1 extends m{select=!1;multiple=!1;nosort=!1;nohide=!1;noreorder=!1;selectionChanged=()=>{};localized=!1;selectedKey=Symbol("selected");selectBinding=(e,t)=>{e.toggleAttribute("aria-selected",t[this.selectedKey]===!0)};pinnedTop=0;pinnedBottom=0;maxVisibleRows=1e4;get value(){return{array:this.array,filter:this.filter,columns:this.columns}}set value(e){let{array:t,columns:i,filter:s}=j(e);if(this._array!==t||this._columns!==i||this._filter!==s)this.queueRender();this._array=t||[],this._columns=i||null,this._filter=s||ys}rowData={visible:[],pinnedTop:[],pinnedBottom:[]};_array=[];_columns=null;_filter=ys;charWidth=15;rowHeight=30;minColumnWidth=30;get virtual(){return this.rowHeight>0?{height:this.rowHeight}:void 0}constructor(){super();this.rowData=J({[this.instanceId]:this.rowData})[this.instanceId],this.initAttributes("rowHeight","charWidth","minColumnWidth","select","multiple","pinnedTop","pinnedBottom","nosort","nohide","noreorder","localized")}get array(){return this._array}set array(e){this._array=j(e),this.queueRender()}get filter(){return this._filter}set filter(e){if(this._filter!==e)this._filter=e,this.queueRender()}get sort(){if(this._sort)return this._sort;let e=this._columns?.find((i)=>i.sort==="ascending"||i.sort==="descending");if(!e)return;let{prop:t}=e;return e.sort==="ascending"?(i,s)=>i[t]>s[t]?1:-1:(i,s)=>i[t]>s[t]?-1:1}set sort(e){if(this._sort!==e)this._sort=e,this.queueRender()}get columns(){if(!Array.isArray(this._columns)){let{_array:e}=this;this._columns=Object.keys(e[0]||{}).map((t)=>{let i=Co(e,t,this.charWidth);return{name:t.replace(/([a-z])([A-Z])/g,"$1 $2").toLocaleLowerCase(),prop:t,align:typeof e[0][t]==="number"||e[0][t]!==""&&!isNaN(e[0][t])?"right":"left",visible:i!==!1,width:i?i:0}})}return this._columns}set columns(e){this._columns=e,this.queueRender()}get visibleColumns(){return this.columns.filter((e)=>e.visible!==!1)}content=null;getColumn(e){let t=(e.touches!==void 0?e.touches[0].clientX:e.clientX)-this.getBoundingClientRect().x,i=e.touches!==void 0?20:5,s=0,o=[];return this.visibleColumns.find((n)=>{if(n.visible!==!1)return s+=n.width,o.push(s),Math.abs(t-s)<i})}setCursor=(e)=>{if(this.getColumn(e)!==void 0)this.style.cursor="col-resize";else this.style.cursor=""};resizeColumn=(e)=>{let t=this.getColumn(e);if(t!==void 0){let i=Number(t.width),s=e.touches!==void 0,o=s?e.touches[0].identifier:void 0;T(e,(l,n,a)=>{if((s?[...a.touches].find((d)=>d.identifier===o):!0)===void 0)return!0;let p=i+l;if(t.width=p>this.minColumnWidth?p:this.minColumnWidth,this.setColumnWidths(),a.type==="mouseup")return!0},"col-resize")}};selectRow(e,t=!0){if(t)e[this.selectedKey]=!0;else delete e[this.selectedKey]}selectRows(e,t=!0){for(let i of e||this.array)this.selectRow(i,t)}deSelect(e){this.selectRows(e,!1)}rangeStart;updateSelection=(e)=>{if(!this.select&&!this.multiple)return;let{target:t}=e;if(!(t instanceof HTMLElement))return;let i=t.closest(".tr");if(!(i instanceof HTMLElement))return;let s=he(i);if(s===!1)return;let o=e,l=window.getSelection();if(l!==null)l.removeAllRanges();let n=this.visibleRows;if(this.multiple&&o.shiftKey&&n.length>0&&this.rangeStart!==s){let a=this.rangeStart===void 0||this.rangeStart[this.selectedKey]===!0,[r,p]=[this.rangeStart!==void 0?n.indexOf(this.rangeStart):0,n.indexOf(s)].sort((d,x)=>d-x);if(r>-1)for(let d=r;d<=p;d++){let x=n[d];this.selectRow(x,a)}}else if(this.multiple&&o.metaKey){this.selectRow(s,!s[this.selectedKey]);let a=n.indexOf(s),r=n[a+1],p=a>0?n[a-1]:void 0;if(r!==void 0&&r[this.selectedKey]===!0)this.rangeStart=r;else if(p!==void 0&&p[this.selectedKey]===!0)this.rangeStart=p;else this.rangeStart=void 0}else this.rangeStart=s,this.deSelect(),this.selectRow(s,!0);this.selectionChanged(this.visibleSelectedRows);for(let a of Array.from(this.querySelectorAll(".tr"))){let r=he(a);this.selectBinding(a,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 e=this.visibleColumns.map((i)=>i.width+"px").join(" "),t=this.visibleColumns.reduce((i,s)=>i+s.width,0)+"px";this.style.setProperty("--tosi-table-grid-columns",e),this.style.setProperty("--tosi-table-grid-row-width",t),this.style.setProperty("--grid-columns",e),this.style.setProperty("--grid-row-width",t)}sortByColumn=(e,t="auto")=>{for(let i of this.columns.filter((s)=>j(s.sort)!==!1))if(j(i)===e){if(t==="auto")i.sort=i.sort==="ascending"?"descending":"ascending";else i.sort=t;this.queueRender()}else delete i.sort};popColumnMenu=(e,t)=>{let{sortByColumn:i}=this,s=this.columns.filter((n)=>n.visible===!1),o=this.queueRender.bind(this),l=[];if(!this.nosort&&t.sort!==!1)l.push({caption:this.localized?`${L("Sort")} ${L("Ascending")}`:"Sort Ascending",icon:"sortAscending",action(){i(t)}},{caption:this.localized?`${L("Sort")} ${L("Descending")}`:"Sort Descending",icon:"sortDescending",action(){i(t,"descending")}});if(!this.nohide){if(l.length)l.push(null);l.push({caption:this.localized?`${L("Hide")} ${L("Column")}`:"Hide Column",icon:"eyeOff",enabled:()=>t.visible!==!0,action(){t.visible=!1,o()}},{caption:this.localized?`${L("Show")} ${L("Column")}`:"Show Column",icon:"eye",enabled:()=>s.length>0,menuItems:s.map((n)=>{return{caption:n.name||n.prop,action(){delete n.visible,o()}}})})}S({target:e,localized:this.localized,menuItems:l})};get captionSpan(){return this.localized?Q:C1}headerCell=(e)=>{let{popColumnMenu:t}=this,i="none",s;switch(e.sort){case"ascending":s=u.sortAscending(),i="descending";break;case!1:break;default:break;case"descending":i="ascending",s=u.sortDescending()}let o=!(this.nosort&&this.nohide)?wo({class:"menu-trigger",onClick(l){t(l.target,e),l.stopPropagation()}},s||u.moreVertical()):{};return e.headerCell!==void 0?e.headerCell(e):C1({class:"th",role:"columnheader",ariaSort:i,style:{...this.cellStyle,justifyContent:e.align||"left"}},this.captionSpan({style:{flex:"1"}},typeof e.name==="string"?e.name:e.prop),o)};dataCell=(e)=>{if(e.dataCell!==void 0)return e.dataCell(e);return C1({class:"td",role:"cell",style:{...this.cellStyle,justifyContent:e.align||"left"},bindText:`^.${e.prop}`})};get visibleRows(){return j(this.rowData.visible)}get visibleSelectedRows(){return this.visibleRows.filter((e)=>e[this.selectedKey])}get selectedRows(){return this.array.filter((e)=>e[this.selectedKey])}rowTemplate(e){return bo(Pe({class:"tr",role:"row",bind:{value:"^",binding:{toDOM:this.selectBinding}}},...e.map(this.dataCell)))}draggedColumn;dropColumn=(e)=>{let t=e.target.closest(".drag-over"),i=Array.from(t.parentElement.children).indexOf(t),s=this.visibleColumns[i],o=this.columns.indexOf(this.draggedColumn),l=this.columns.indexOf(s);this.columns.splice(o,1),this.columns.splice(l,0,this.draggedColumn),console.log({event:e,target:t,targetIndex:i,draggedIndex:o,droppedIndex:l}),this.queueRender(),e.preventDefault(),e.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:e}=this;if(e)this.rowData.visible.sort(e);this.textContent="",this.style.display="flex",this.style.flexDirection="column";let{visibleColumns:t}=this;if(this.style.setProperty("--tosi-table-row-height",`${this.rowHeight}px`),this.style.setProperty("--row-height",`${this.rowHeight}px`),this.setColumnWidths(),!this.noreorder)k1();let i=this.instanceId+"-column-header",s=t.map((o)=>{let l=this.headerCell(o);if(!this.noreorder&&l.children[0]){let n=l.children[0];n.setAttribute("draggable","true"),n.style.pointerEvents="all",n.dataset.drag=i,l.dataset.drop=i,n.addEventListener("dragstart",()=>{this.draggedColumn=o}),l.addEventListener("drop",this.dropColumn)}return l});if(this.append(Pe({class:"thead",role:"rowgroup",style:{touchAction:"none"}},Pe({class:"tr",role:"row"},...s))),this.pinnedTop>0)this.append(Pe({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(t)));if(this.append(Pe({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(t))),this.pinnedBottom>0)this.append(Pe({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(t)))}}var Mo=w1.elementCreator({tag:"xin-table",styleSpec:{":host":{"--tosi-table-row-height":"32px","--tosi-table-touch-size":"var(--tosi-touch-size, 44px)","--tosi-table-dragged-header-bg":"#0004","--tosi-table-dragged-header-color":"#fff","--tosi-table-drop-header-bg":"#fff4","--row-height":"var(--tosi-table-row-height)","--touch-size":"var(--tosi-table-touch-size)","--dragged-header-bg":"var(--tosi-table-dragged-header-bg)","--dragged-header-color":"var(--tosi-table-dragged-header-color)","--drop-header-bg":"var(--tosi-table-drop-header-bg)",overflow:"auto hidden"},":host .thead, :host .tbody":{width:c.tosiTableGridRowWidth},":host .tr":{display:"grid",gridTemplateColumns:c.tosiTableGridColumns,height:c.tosiTableRowHeight,lineHeight:c.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:c.tosiTableTouchSize,height:c.tosiTableTouchSize,width:c.tosiTableTouchSize},':host [draggable="true"]':{cursor:"ew-resize"},':host [draggable="true"]:active':{background:c.tosiTableDraggedHeaderBg,color:c.tosiTableDraggedHeaderColor},":host .drag-over":{background:c.tosiTableDropHeaderBg}}});var{dialog:Bo,button:b1,header:zo,footer:Lo,xinSlot:M1,h3:B1,p:z1,label:Eo,input:Ho,div:Ao}=f;class L1 extends m{static async alert(e,t="Alert"){return new Promise((i)=>{let s=kt({removeOnClose:!0,closeOnBackgroundClick:!0,dialogWillClose(){i()}},B1({slot:"header"},t),z1(e));document.body.append(s),s.showModal()})}static async confirm(e,t="Confirm"){return new Promise((i)=>{let s=kt({removeOnClose:!0,dialogWillClose(o){i(o==="confirm")}},B1({slot:"header"},t),z1(e),b1({slot:"footer",onClick(){s.close()}},"Cancel"));document.body.append(s),s.showModal()})}static async prompt(e,t="Prompt",i=""){return new Promise((s)=>{let o=Ho({value:i}),l=kt({removeOnClose:!0,dialogWillClose(n){s(n==="confirm"?o.value:null)},initialFocus(){o.focus()}},B1({slot:"header"},t),z1(Eo({style:{display:"flex",flexDirection:"column",alignItems:"stretch",gap:5}},Ao(e),o)),b1({slot:"footer",onClick(){l.close()}},"Cancel"));document.body.append(l),l.showModal()})}removeOnClose=!1;closeOnBackgroundClick=!1;constructor(){super();this.initAttributes("removeOnClose","closeOnBackgroundClick"),Le(this,"click",()=>{if(this.closeOnBackgroundClick)this.close()})}dialogWillClose=(e="cancel")=>{console.log("dialog will close with",e)};initialFocus(){this.parts.ok.focus()}#e=(e)=>{};showModal=()=>{return this.style.zIndex=String(ye()),new Promise((e)=>{this.#e=e,this.parts.dialog.showModal(),requestAnimationFrame(()=>{this.initialFocus()})})};close=(e="cancel")=>{if(this.dialogWillClose(e),this.#e(e),this.parts.dialog.close(),this.removeOnClose)this.remove()};ok=()=>{this.close("confirm")};content=()=>Bo({part:"dialog"},zo(M1({name:"header"})),M1(),Lo(M1({name:"footer"}),b1({part:"ok",onClick:this.ok},"OK")))}var kt=L1.elementCreator({tag:"tosi-dialog",styleSpec:{":host > dialog::backdrop":{backdropFilter:"blur(8px)"},":host > dialog:not([open])":{display:"none"},":host > dialog[open]":{minWidth:300,border:0,borderRadius:10,overflow:"hidden",maxHeight:"calc(100% - 20px)",padding:0,display:"flex",flexDirection:"column",gap:5,_dialogShadow:h.menuShadow("0 5px 10px #0004"),_dialogBackground:h.background("#fafafa"),_dialogColor:h.textColor("#222"),boxShadow:c.dialogShadow,background:c.dialogBackground,color:c.dialogColor},":host > dialog > *":{padding:"0 20px"},":host > dialog > header":{display:"flex",justifyContent:"center",gap:10},":host > dialog > footer":{display:"flex",justifyContent:"flex-end",gap:10,paddingBottom:20}}});function H1(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var me=H1();function Cs(e){me=e}var Ye={exec:()=>null};function b(e,t=""){let i=typeof e=="string"?e:e.source,s={replace:(o,l)=>{let n=typeof l=="string"?l:l.source;return n=n.replace(P.caret,"$1"),i=i.replace(o,n),s},getRegex:()=>new RegExp(i,t)};return s}var Po=(()=>{try{return!!new RegExp("(?<=1)(?<!1)")}catch{return!1}})(),P={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:(e)=>new RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:(e)=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:(e)=>new RegExp(`^ {0,${Math.min(3,e-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:(e)=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:(e)=>new RegExp(`^ {0,${Math.min(3,e-1)}}#`),htmlBeginRegex:(e)=>new RegExp(`^ {0,${Math.min(3,e-1)}}<(?:[a-z].*>|!--)`,"i")},jo=/^(?:[ \t]*(?:\n|$))+/,To=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,So=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,Xe=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,Fo=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,A1=/(?:[*+-]|\d{1,9}[.)])/,ws=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,bs=b(ws).replace(/bull/g,A1).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(),Oo=b(ws).replace(/bull/g,A1).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(),P1=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,Vo=/^[^\n]+/,j1=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,Io=b(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",j1).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),Do=b(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,A1).getRegex(),Bt="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",T1=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,_o=b("^ {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",T1).replace("tag",Bt).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Ms=b(P1).replace("hr",Xe).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",Bt).getRegex(),qo=b(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",Ms).getRegex(),S1={blockquote:qo,code:To,def:Io,fences:So,heading:Fo,hr:Xe,html:_o,lheading:bs,list:Do,newline:jo,paragraph:Ms,table:Ye,text:Vo},us=b("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",Xe).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",Bt).getRegex(),No={...S1,lheading:Oo,table:us,paragraph:b(P1).replace("hr",Xe).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",us).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",Bt).getRegex()},Ro={...S1,html:b(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",T1).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:Ye,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:b(P1).replace("hr",Xe).replace("heading",` *#{1,6} *[^
12
- ]`).replace("lheading",bs).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},$o=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,Uo=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,Bs=/^( {2,}|\\)\n(?!\s*$)/,Wo=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,zt=/[\p{P}\p{S}]/u,F1=/[\s\p{P}\p{S}]/u,zs=/[^\s\p{P}\p{S}]/u,Go=b(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,F1).getRegex(),Ls=/(?!~)[\p{P}\p{S}]/u,Ko=/(?!~)[\s\p{P}\p{S}]/u,Jo=/(?:[^\s\p{P}\p{S}]|~)/u,Qo=b(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",Po?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),Es=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,Zo=b(Es,"u").replace(/punct/g,zt).getRegex(),Yo=b(Es,"u").replace(/punct/g,Ls).getRegex(),Hs="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",Xo=b(Hs,"gu").replace(/notPunctSpace/g,zs).replace(/punctSpace/g,F1).replace(/punct/g,zt).getRegex(),el=b(Hs,"gu").replace(/notPunctSpace/g,Jo).replace(/punctSpace/g,Ko).replace(/punct/g,Ls).getRegex(),tl=b("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,zs).replace(/punctSpace/g,F1).replace(/punct/g,zt).getRegex(),il=b(/\\(punct)/,"gu").replace(/punct/g,zt).getRegex(),sl=b(/^<(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(),ol=b(T1).replace("(?:-->|$)","-->").getRegex(),ll=b("^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",ol).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),wt=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/,nl=b(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",wt).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),As=b(/^!?\[(label)\]\[(ref)\]/).replace("label",wt).replace("ref",j1).getRegex(),Ps=b(/^!?\[(ref)\](?:\[\])?/).replace("ref",j1).getRegex(),al=b("reflink|nolink(?!\\()","g").replace("reflink",As).replace("nolink",Ps).getRegex(),gs=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,O1={_backpedal:Ye,anyPunctuation:il,autolink:sl,blockSkip:Qo,br:Bs,code:Uo,del:Ye,emStrongLDelim:Zo,emStrongRDelimAst:Xo,emStrongRDelimUnd:tl,escape:$o,link:nl,nolink:Ps,punctuation:Go,reflink:As,reflinkSearch:al,tag:ll,text:Wo,url:Ye},rl={...O1,link:b(/^!?\[(label)\]\((.*?)\)/).replace("label",wt).getRegex(),reflink:b(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",wt).getRegex()},E1={...O1,emStrongRDelimAst:el,emStrongLDelim:Yo,url:b(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",gs).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:b(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",gs).getRegex()},cl={...E1,br:b(Bs).replace("{2,}","*").getRegex(),text:b(E1.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},Ct={normal:S1,gfm:No,pedantic:Ro},Je={normal:O1,gfm:E1,breaks:cl,pedantic:rl},pl={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},fs=(e)=>pl[e];function U(e,t){if(t){if(P.escapeTest.test(e))return e.replace(P.escapeReplace,fs)}else if(P.escapeTestNoEncode.test(e))return e.replace(P.escapeReplaceNoEncode,fs);return e}function ms(e){try{e=encodeURI(e).replace(P.percentDecode,"%")}catch{return null}return e}function vs(e,t){let i=e.replace(P.findPipe,(l,n,a)=>{let r=!1,p=n;for(;--p>=0&&a[p]==="\\";)r=!r;return r?"|":" |"}),s=i.split(P.splitPipe),o=0;if(s[0].trim()||s.shift(),s.length>0&&!s.at(-1)?.trim()&&s.pop(),t)if(s.length>t)s.splice(t);else for(;s.length<t;)s.push("");for(;o<s.length;o++)s[o]=s[o].trim().replace(P.slashPipe,"|");return s}function Qe(e,t,i){let s=e.length;if(s===0)return"";let o=0;for(;o<s;){let l=e.charAt(s-o-1);if(l===t&&!i)o++;else if(l!==t&&i)o++;else break}return e.slice(0,s-o)}function dl(e,t){if(e.indexOf(t[1])===-1)return-1;let i=0;for(let s=0;s<e.length;s++)if(e[s]==="\\")s++;else if(e[s]===t[0])i++;else if(e[s]===t[1]&&(i--,i<0))return s;return i>0?-2:-1}function ks(e,t,i,s,o){let l=t.href,n=t.title||null,a=e[1].replace(o.other.outputLinkReplace,"$1");s.state.inLink=!0;let r={type:e[0].charAt(0)==="!"?"image":"link",raw:i,href:l,title:n,text:a,tokens:s.inlineTokens(a)};return s.state.inLink=!1,r}function hl(e,t,i){let s=e.match(i.other.indentCodeCompensation);if(s===null)return t;let o=s[1];return t.split(`
13
- `).map((l)=>{let n=l.match(i.other.beginningSpace);if(n===null)return l;let[a]=n;return a.length>=o.length?l.slice(o.length):l}).join(`
14
- `)}var bt=class{options;rules;lexer;constructor(e){this.options=e||me}space(e){let t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){let t=this.rules.block.code.exec(e);if(t){let i=t[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?i:Qe(i,`
15
- `)}}}fences(e){let t=this.rules.block.fences.exec(e);if(t){let i=t[0],s=hl(i,t[3]||"",this.rules);return{type:"code",raw:i,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):t[2],text:s}}}heading(e){let t=this.rules.block.heading.exec(e);if(t){let i=t[2].trim();if(this.rules.other.endingHash.test(i)){let s=Qe(i,"#");(this.options.pedantic||!s||this.rules.other.endingSpaceChar.test(s))&&(i=s.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:i,tokens:this.lexer.inline(i)}}}hr(e){let t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:Qe(t[0],`
16
- `)}}blockquote(e){let t=this.rules.block.blockquote.exec(e);if(t){let i=Qe(t[0],`
9
+ `)},I2=(e)=>{console.warn("initVars is deprecated. Just use _ and __ prefixes instead.");let t={};for(let i of Object.keys(e)){let s=e[i],l=ie(i);t[`--${l}`]=typeof s==="number"&&s!==0?String(s)+"px":s}return t},l1=(e)=>{let t={};for(let i of Object.keys(e)){let s=e[i];if(s instanceof C)t[i]=s.inverseLuminance;else if(typeof s==="string"&&s.match(/^(#[0-9a-fA-F]{3}|rgba?\(|hsla?\()/))t[i]=C.fromCss(s).inverseLuminance}return t},h=new Proxy({},{get(e,t){if(e[t]===void 0){let i="--"+ie(t);e[t]=(s)=>`var(${i}, ${s})`}return e[t]}}),c=new Proxy({},{get(e,t){if(t==="default")return h;if(e[t]==null){t=ie(t);let[,i,,s,l,o]=t.match(/^([-\w]*?)((_)?(\d+)(\w?))?$/)||["",t],n=`--${i}`;if(l!=null){let a=s==null?Number(l)/100:-Number(l)/100;switch(o){case"b":{let r=C.fromVar(n);e[t]=a>0?r.brighten(a).rgba:r.darken(-a).rgba}break;case"s":{let r=C.fromVar(n);e[t]=a>0?r.saturate(a).rgba:r.desaturate(-a).rgba}break;case"h":{let r=C.fromVar(n);e[t]=r.rotate(a*100).rgba}break;case"o":{let r=C.fromVar(n);e[t]=r.opacity(a).rgba}break;case"":e[t]=`calc(var(${n}) * ${a})`;break;default:throw console.error(o),Error(`Unrecognized method ${o} for css variable ${n}`)}}else e[t]=`var(${n})`}return e[t]}}),D2="http://www.w3.org/1998/Math/MathML",_2="http://www.w3.org/2000/svg",nt={},es=(e,t,i)=>{let s=Xi(ie(t),i);if(s.prop.startsWith("--"))e.style.setProperty(s.prop,s.value);else e.style[t]=s.value},q2=(e)=>{return{toDOM(t,i){es(t,e,i)}}},ts=(e,t,i)=>{if(t==="style")if(typeof i==="object")for(let s of Object.keys(i))if(He(i[s]))ee(e,i[s],q2(s));else es(e,s,i[s]);else e.setAttribute("style",i);else if(e[t]!==void 0){let{MathMLElement:s}=globalThis;if(e instanceof SVGElement||s!==void 0&&e instanceof s)e.setAttribute(t,i);else e[t]=i}else{let s=ie(t);if(s==="class")i.split(" ").forEach((l)=>{e.classList.add(l)});else if(e[s]!==void 0)e[s]=i;else if(typeof i==="boolean")i?e.setAttribute(s,""):e.removeAttribute(s);else e.setAttribute(s,i)}},N2=(e)=>{return{toDOM(t,i){ts(t,e,i)}}},R2=(e,t,i)=>{if(t==="apply")i(e);else if(t.match(/^on[A-Z]/)!=null){let s=t.substring(2).toLowerCase();Pe(e,s,i)}else if(t==="bind")if((typeof i.binding==="string"?te[i.binding]:i.binding)!==void 0&&i.value!==void 0)ee(e,i.value,i.binding instanceof Function?{toDOM:i.binding}:i.binding);else throw Error("bad binding");else if(t.match(/^bind[A-Z]/)!=null){let s=t.substring(4,5).toLowerCase()+t.substring(5),l=te[s];if(l!==void 0)ee(e,i,l);else throw Error(`${t} is not allowed, bindings.${s} is not defined`)}else if(He(i))ee(e,i,N2(t));else ts(e,t,i)},o1=(e,...t)=>{if(nt[e]===void 0){let[l,o]=e.split("|");if(o===void 0)nt[e]=globalThis.document.createElement(l);else nt[e]=globalThis.document.createElementNS(o,l)}let i=nt[e].cloneNode(),s={};for(let l of t)if(l instanceof Element||l instanceof DocumentFragment||typeof l==="string"||typeof l==="number")if(i instanceof HTMLTemplateElement)i.content.append(l);else i.append(l);else if(He(l))i.append(f.span({bindText:l}));else Object.assign(s,l);for(let l of Object.keys(s)){let o=s[l];R2(i,l,o)}return i},n1=(...e)=>{let t=globalThis.document.createDocumentFragment();for(let i of e)t.append(i);return t},f=new Proxy({fragment:n1},{get(e,t){if(t=t.replace(/[A-Z]/g,(i)=>`-${i.toLocaleLowerCase()}`),e[t]===void 0)e[t]=(...i)=>o1(t,...i);return e[t]},set(){throw Error("You may not add new properties to elements")}}),ht=new Proxy({fragment:n1},{get(e,t){if(e[t]===void 0)e[t]=(...i)=>o1(`${t}|${_2}`,...i);return e[t]},set(){throw Error("You may not add new properties to elements")}}),is=new Proxy({fragment:n1},{get(e,t){if(e[t]===void 0)e[t]=(...i)=>o1(`${t}|${D2}`,...i);return e[t]},set(){throw Error("You may not add new properties to elements")}}),U2=["sort","splice","copyWithin","fill","pop","push","reverse","shift","unshift"],$2=!0,W2=/^\.?([^.[\](),])+(\.[^.[\](),]+|\[\d+\]|\[[^=[\](),]*=[^[\]()]+\])*$/,G2=(e)=>W2.test(e),de=(e="",t="")=>{if(e==="")return t;else if(t.match(/^\d+$/)!==null||t.includes("="))return`${e}[${t}]`;else return`${e}.${t}`},K2={string(e){return new String(e)},boolean(e){return new Boolean(e)},bigint(e){return e},symbol(e){return e},number(e){return new Number(e)}},X=Symbol("undefined");function Nt(e,t){if(e===void 0||e===null)return new Proxy({[X]:e===null?"null":"undefined"},Y(t,!0));let i=typeof e;if(i==="object"||i==="function")return e;else return new Proxy(K2[typeof e](e),Y(t,!0))}var Rt=()=>new Proxy({},Y("^",!0)),Ti=!1;function pe(){if(!Ti)console.warn("xinValue, tosiValue, xinPath, tosiPath, etc. are deprecated. Use value, path, observe, bind, on, binding, listBinding instead."),Ti=!0}var Si=(e)=>{return e instanceof Number||e instanceof String||e instanceof Boolean||X in e},Y=(e,t)=>({get(i,s){if(Si(i))switch(s){case"path":return e;case"value":return i[X]?i[X]==="null"?null:void 0:i.valueOf?i.valueOf():i;case"observe":return(a)=>{let r=_e(e,a);return()=>Le(r)};case"on":return(a,r)=>_t()(a,r,H(i));case"bind":return(a,r,d)=>{Dt()(a,e,r,d)};case"binding":return(a)=>({bind:{value:e,binding:a}});case"listBinding":return(a=({span:d})=>d({bindText:"^"}),r={})=>[{bindList:{value:e,...r}},f.template(a(f,Rt()))];case ze:case"tosiValue":return pe(),i[X]?i[X]==="null"?null:void 0:i.valueOf?i.valueOf():i;case $:case"tosiPath":return pe(),e;case Bi:case"tosiObserve":return pe(),(a)=>{let r=_e(e,a);return()=>Le(r)};case Li:case"tosiOn":return pe(),(a,r)=>_t()(a,r,H(i));case zi:case"tosiBind":return pe(),(a,r,d)=>{Dt()(a,e,r,d)};case"tosiBinding":return pe(),(a)=>({bind:{value:e,binding:a}});case"tosiListBinding":return pe(),(a=({span:d})=>d({bindText:"^"}),r={})=>[{bindList:{value:e,...r}},f.template(a(f,Rt()))]}switch(s){case $:case"tosiPath":return e;case ze:case"tosiValue":return i[X]?i[X]==="null"?null:void 0:i.valueOf?i.valueOf():i;case Bi:case"tosiObserve":return(a)=>{let r=_e(e,a);return()=>Le(r)};case Li:case"tosiOn":return(a,r)=>_t()(a,r,H(i));case zi:case"tosiBind":return(a,r,d)=>{Dt()(a,e,r,d)};case"tosiBinding":return(a)=>({bind:{value:e,binding:a}});case"tosiListBinding":return(a=({span:d})=>d({bindText:"^"}),r={})=>[{bindList:{value:e,...r}},f.template(a(f,Rt()))]}if(typeof s==="symbol")return i[s];let l=Object.getOwnPropertyDescriptor(i,s);if(l&&!l.configurable&&!l.writable&&"value"in l)return l.value;let o=s,n=o.match(/^([^.[]+)\.(.+)$/)??o.match(/^([^\]]+)(\[.+)/)??o.match(/^(\[[^\]]+\])\.(.+)$/)??o.match(/^(\[[^\]]+\])\[(.+)$/);if(n!==null){let[,a,r]=n,d=de(e,a),p=$e(i,a);return p!==null&&typeof p==="object"?new Proxy(p,Y(d,t))[r]:p}if(o.startsWith("[")&&o.endsWith("]"))o=o.substring(1,o.length-1);if(!Array.isArray(i)&&i[o]!==void 0||Array.isArray(i)&&o.includes("=")){let a;if(o.includes("=")){let[r,d]=o.split("=");a=i.find((p)=>`${$e(p,r)}`===d)}else a=i[o];if(a instanceof Object){let r=de(e,o);return new Proxy(a instanceof Function?a.bind(i):a,Y(r,t))}else return t?Nt(a,de(e,o)):a}else if(Array.isArray(i)){let a=i[o];return typeof a==="function"?(...r)=>{let d=r.map((x)=>H(x)),p=a.apply(i,d);if(U2.includes(o))Ee(e);return p}:typeof a==="object"?new Proxy(a,Y(de(e,o),t)):t?Nt(a,de(e,o)):a}else return t?Nt(i[o],de(e,o)):i[o]},set(i,s,l){l=H(l);let o=s===ze||s==="value"&&Si(i)?e:de(e,s);if($2&&!G2(o))throw Error(`setting invalid path ${o}`);if(H(P[o])!==l&&H2(i1,o,l))Ee(o);return!0}}),xt=(e,t)=>{let i=typeof t==="function"?t:P[t];if(typeof i!=="function")throw Error(`observe expects a function or path to a function, ${t} is neither`);return _e(e,i)},P=new Proxy(i1,Y("",!1));m2(P);var dt=new Proxy(i1,Y("",!0)),Q2=16,J2=100;function Fi(e,t){let i=Array.from(e.querySelectorAll(Ae));if(e.matches(Ae))i.unshift(e);for(let s of i){let l=xe.get(s);for(let o of l){if(o.path.startsWith("^"))o.path=`${t}${o.path.substring(1)}`;if(o.binding.toDOM!=null)o.binding.toDOM(s,P[o.path])}}}class ss{boundElement;listTop;listBottom;template;options;itemToElement;array=[];_update;_previousSlice;static filterBoundObservers=new WeakMap;constructor(e,t,i={}){if(this.boundElement=e,this.itemToElement=new WeakMap,e.children.length!==1)throw Error("ListBinding expects an element with exactly one child element");if(e.children[0]instanceof HTMLTemplateElement){let s=e.children[0];if(s.content.children.length!==1)throw Error("ListBinding expects a template with exactly one child element");this.template=Re(s.content.children[0])}else this.template=e.children[0],this.template.remove();if(this.options=i,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),i.virtual!=null)if(e1.observe(this.boundElement),this._update=Ue(()=>{this.update(this.array,!0)},Q2),this.boundElement.addEventListener("resize",this._update),i.virtual.scrollContainer==="window")window.addEventListener("scroll",this._update),window.addEventListener("resize",this._update);else this.boundElement.addEventListener("scroll",this._update)}visibleSlice(){let{virtual:e,hiddenProp:t,visibleProp:i}=this.options,s=this.array;if(t!==void 0)s=s.filter((r)=>r[t]!==!0);if(i!==void 0)s=s.filter((r)=>r[i]===!0);if(this.options.filter&&this.needle!==void 0)s=this.options.filter(s,this.needle);let l=0,o=s.length-1,n=0,a=0;if(e!=null&&this.boundElement instanceof HTMLElement){let r=this.boundElement.offsetWidth,d=e.scrollContainer==="window",p,x;if(d){p=window.innerHeight;let E=this.boundElement.getBoundingClientRect();x=Math.max(0,-E.top)}else p=this.boundElement.offsetHeight,x=this.boundElement.scrollTop;if(e.visibleColumns==null)e.visibleColumns=e.width!=null?Math.max(1,Math.floor(r/e.width)):1;let g=Math.ceil(p/e.height)+(e.rowChunkSize||1),k=Math.ceil(s.length/e.visibleColumns),y=e.visibleColumns*g,v=Math.floor(x/e.height);if(v>k-g+1)v=Math.max(0,k-g+1);if(e.rowChunkSize)v-=v%e.rowChunkSize;l=v*e.visibleColumns,o=l+y-1,n=v*e.height,a=Math.max((k-g)*e.height-n,0)}return{items:s,firstItem:l,lastItem:o,topBuffer:n,bottomBuffer:a}}needle;filter=Ue((e)=>{if(this.needle!==e)this.needle=e,this.update(this.array)},J2);update(e,t){if(e==null)e=[];this.array=e;let{hiddenProp:i,visibleProp:s}=this.options,l=He(e),o=this.visibleSlice();this.boundElement.classList.toggle("-xin-empty-list",o.items.length===0);let n=this._previousSlice,{firstItem:a,lastItem:r,topBuffer:d,bottomBuffer:p}=o;if(i===void 0&&s===void 0&&t===!0&&n!=null&&a===n.firstItem&&r===n.lastItem)return;this._previousSlice=o;let x=0,g=0,k=0;for(let b of Array.from(this.boundElement.children)){if(b===this.listTop||b===this.listBottom)continue;let B=b[Gt];if(B==null)b.remove();else{let z=o.items.indexOf(B);if(z<a||z>r)b.remove(),this.itemToElement.delete(B),x++}}this.listTop.style.height=String(d)+"px",this.listBottom.style.height=String(p)+"px";let y=[],{idPath:v}=this.options;for(let b=a;b<=r;b++){let B=o.items[b];if(B===void 0)continue;let z=this.itemToElement.get(H(B));if(z==null){if(k++,z=Re(this.template),typeof B==="object")this.itemToElement.set(H(B),z),z[Gt]=H(B);if(this.boundElement.insertBefore(z,this.listBottom),v!=null){let G=B[v],Ot=`${l}[${v}=${G}]`;Fi(z,Ot)}else{let G=`${l}[${b}]`;Fi(z,G)}}y.push(z)}let E=null;for(let b of y){if(b.previousElementSibling!==E)if(g++,E?.nextElementSibling!=null)this.boundElement.insertBefore(b,E.nextElementSibling);else this.boundElement.insertBefore(b,this.listBottom);E=b}if(at.perf)console.log(l,"updated",{removed:x,created:k,moved:g})}}var a1=(e,t,i)=>{let s=e[Wt];if(t&&s===void 0)s=new ss(e,t,i),e[Wt]=s;return s},r1=(e)=>{let t;while(!(t=e[Gt])&&e&&e.parentElement)e=e.parentElement;return t?{element:e,item:t}:void 0},ye=(e)=>{let t=r1(e);return t?t.item:void 0},Z2=(e)=>{let t=r1(e);if(!t)return console.error("deleteListItem failed, element is not part of a list instance",e),!1;let i=a1(t.element.parentElement);if(!i.options.idPath)return console.error("deleteListItem failed, list binding has no idPath",e.parentElement,i),!1;let s=i.array.indexOf(t.item);if(s>-1)return i.array.splice(s,1),!0;return!1},{document:Ge,MutationObserver:Oi}=globalThis,c1=(e,t)=>{let i=xe.get(e);if(i==null)return;for(let s of i){let{binding:l,options:o}=s,{path:n}=s,{toDOM:a}=l;if(a!=null){if(n.startsWith("^")){let r=ye(e);if(r!=null&&r[$]!=null)n=s.path=`${r[$]}${n.substring(1)}`;else throw console.error(`Cannot resolve relative binding ${n}`,e,"is not part of a list"),Error(`Cannot resolve relative binding ${n}`)}if(t==null||n.startsWith(t))a(e,s1()[n],o)}}};if(Oi!=null)new Oi((e)=>{e.forEach((t)=>{Array.from(t.addedNodes).forEach((i)=>{if(i instanceof Element)Array.from(i.querySelectorAll(Ae)).forEach((s)=>c1(s))})})}).observe(Ge.body,{subtree:!0,childList:!0});_e(()=>!0,(e)=>{let t=Array.from(Ge.querySelectorAll(Ae));for(let i of t)c1(i,e)});var Vi=(e)=>{let t=e.target?.closest(Ae);while(t!=null){let i=xe.get(t);for(let s of i){let{binding:l,path:o}=s,{fromDOM:n}=l;if(n!=null){let a;try{a=n(t,s.options)}catch(r){throw console.error("Cannot get value from",t,"via",s),Error("Cannot obtain value fromDOM")}if(a!=null){let r=s1(),d=r[o];if(d==null)r[o]=a;else{let p=d[$]!=null?d[ze]:d,x=a[$]!=null?a[ze]:a;if(p!==x)r[o]=x}}}}t=t.parentElement.closest(Ae)}};if(globalThis.document!=null)Ge.body.addEventListener("change",Vi,!0),Ge.body.addEventListener("input",Vi,!0);function ee(e,t,i,s){if(e instanceof DocumentFragment)throw Error("bind cannot bind to a DocumentFragment");let l;if(typeof t==="object"&&t[$]===void 0&&s===void 0){let{value:a}=t;l=typeof a==="string"?a:a[$],s=t,delete s.value}else l=typeof t==="string"?t:t[$];if(l==null)throw Error("bind requires a path or object with xin Proxy");let{toDOM:o}=i;e.classList?.add(_i);let n=xe.get(e);if(n==null)n=[],xe.set(e,n);if(n.push({path:l,binding:i,options:s}),o!=null&&!l.startsWith("^"))Ee(l);if(s?.filter&&s?.needle)ee(e,s.needle,{toDOM(a,r){console.log({needle:r}),a[Wt]?.filter(r)}});return e}var Ii=new Set,X2=(e)=>{let t=e?.target?.closest(Mi),i=!1,s=new Proxy(e,{get(o,n){if(n==="stopPropagation")return()=>{e.stopPropagation(),i=!0};else{let a=o[n];return typeof a==="function"?a.bind(o):a}}}),l=new Set;while(!i&&t!=null){let o=Ne.get(t)[e.type]||l;for(let n of o){if(typeof n==="function")n(s);else{let a=s1()[n];if(typeof a==="function")a(s);else throw Error(`no event handler found at path ${n}`)}if(i)continue}t=t.parentElement!=null?t.parentElement.closest(Mi):null}};function Pe(e,t,i){let s=Ne.get(e);if(e.classList.add(qi),s==null)s={},Ne.set(e,s);if(!s[t])s[t]=new Set;if(s[t].add(i),!Ii.has(t))Ii.add(t),Ge.body.addEventListener(t,X2,!0);return()=>{s[t].delete(i)}}v2(ee,Pe);var Y2=0;function Ut(){return`custom-elt${(Y2++).toString(36)}`}var Di=0,qe={};function el(e,t){let i=qe[e],s=We(t).replace(/:host\b/g,e);qe[e]=i?i+`
10
+ `+s:s}function tl(e){if(qe[e])document.head.append(f.style({id:e+"-component"},qe[e]));delete qe[e]}class m extends HTMLElement{static elements=f;static _elementCreator;instanceId;styleNode;static styleSpec;static styleNode;content=f.slot();isSlotted;static _tagName=null;static get tagName(){return this._tagName}static StyleNode(e){return console.warn("StyleNode is deprecated, just assign static styleSpec: XinStyleSheet to the class directly"),f.style(We(e))}static elementCreator(e={}){let t=this;if(t._elementCreator==null){let{tag:i,styleSpec:s}=e,l=e!=null?i:null;if(l==null)if(typeof t.name==="string"&&t.name!==""){if(l=ie(t.name),l.startsWith("-"))l=l.slice(1)}else l=Ut();if(customElements.get(l)!=null)console.warn(`${l} is already defined`);if(l.match(/\w+(-\w+)+/)==null)console.warn(`${l} is not a legal tag for a custom-element`),l=Ut();while(customElements.get(l)!==void 0)l=Ut();if(t._tagName=l,s!==void 0)el(l,s);window.customElements.define(l,this,e),t._elementCreator=f[l]}return t._elementCreator}initAttributes(...e){let t={},i={};new MutationObserver((s)=>{let l=!1;if(s.forEach((o)=>{l=!!(o.attributeName&&e.includes(P2(o.attributeName)))}),l&&this.queueRender!==void 0)this.queueRender(!1)}).observe(this,{attributes:!0}),e.forEach((s)=>{t[s]=he(this[s]);let l=ie(s);Object.defineProperty(this,s,{enumerable:!1,get(){if(typeof t[s]==="boolean")return this.hasAttribute(l);else if(this.hasAttribute(l))return typeof t[s]==="number"?parseFloat(this.getAttribute(l)):this.getAttribute(l);else if(i[s]!==void 0)return i[s];else return t[s]},set(o){if(typeof t[s]==="boolean"){if(o!==this[s]){if(o)this.setAttribute(l,"");else this.removeAttribute(l);this.queueRender()}}else if(typeof t[s]==="number"){if(o!==parseFloat(this[s]))this.setAttribute(l,o),this.queueRender()}else if(typeof o==="object"||`${o}`!==`${this[s]}`){if(o===null||o===void 0||typeof o==="object")this.removeAttribute(l);else this.setAttribute(l,o);this.queueRender(),i[s]=o}}})})}initValue(){let e=Object.getOwnPropertyDescriptor(this,"value");if(e===void 0||e.get!==void 0||e.set!==void 0)return;let t=this.hasAttribute("value")?this.getAttribute("value"):he(this.value);delete this.value,Object.defineProperty(this,"value",{enumerable:!1,get(){return t},set(i){if(t!==i)t=i,this.queueRender(!0)}})}_parts;get parts(){let e=this.shadowRoot!=null?this.shadowRoot:this;if(this._parts==null)this._parts=new Proxy({},{get(t,i){if(t[i]===void 0){let s=e.querySelector(`[part="${i}"]`);if(s==null)s=e.querySelector(i);if(s==null)throw Error(`elementRef "${i}" does not exist!`);s.removeAttribute("data-ref"),t[i]=s}return t[i]}});return this._parts}constructor(){super();Di+=1,this.initAttributes("hidden"),this.instanceId=`${this.tagName.toLocaleLowerCase()}-${Di}`,this._value=he(this.defaultValue)}connectedCallback(){if(tl(this.constructor.tagName),this.hydrate(),this.role!=null)this.setAttribute("role",this.role);if(this.onResize!==void 0){if(e1.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");this.queueRender()}disconnectedCallback(){e1.unobserve(this)}_changeQueued=!1;_renderQueued=!1;queueRender(e=!1){if(!this._hydrated)return;if(!this._changeQueued)this._changeQueued=e;if(!this._renderQueued)this._renderQueued=!0,requestAnimationFrame(()=>{if(this._changeQueued)Ri(this,"change");this._changeQueued=!1,this._renderQueued=!1,this.render()})}_hydrated=!1;hydrate(){if(!this._hydrated){this.initValue();let e=typeof this.content!=="function",t=typeof this.content==="function"?this.content(f):this.content,{styleSpec:i}=this.constructor,{styleNode:s}=this.constructor;if(i)s=this.constructor.styleNode=f.style(We(i)),delete this.constructor.styleNode;if(this.styleNode)console.warn(this,"styleNode is deprecrated, use static styleNode or statc styleSpec instead"),s=this.styleNode;if(s){let l=this.attachShadow({mode:"open"});l.appendChild(s.cloneNode(!0)),Hi(l,t,e)}else if(t!==null){let l=Array.from(this.childNodes);Hi(this,t,e),this.isSlotted=this.querySelector("slot,xin-slot")!==void 0;let o=Array.from(this.querySelectorAll("slot"));if(o.length>0)o.forEach(d1.replaceSlot);if(l.length>0){let n={"":this};Array.from(this.querySelectorAll("xin-slot")).forEach((a)=>{n[a.name]=a}),l.forEach((a)=>{let r=n[""],d=a instanceof Element?n[a.slot]:r;(d!==void 0?d:r).append(a)})}}this._hydrated=!0}}render(){}}class d1 extends m{name="";content=null;static replaceSlot(e){let t=document.createElement("xin-slot");if(e.name!=="")t.setAttribute("name",e.name);e.replaceWith(t)}constructor(){super();this.initAttributes("name")}}var Dn=d1.elementCreator({tag:"xin-slot"}),il=(e=()=>!0)=>{let t=localStorage.getItem("xin-state");if(t!=null){let s=JSON.parse(t);for(let l of Object.keys(s).filter(e))if(P[l]!==void 0)Object.assign(P[l],s[l]);else P[l]=s[l]}let i=pt(()=>{let s={},l=H(P);for(let o of Object.keys(l).filter(e))s[o]=l[o];localStorage.setItem("xin-state",JSON.stringify(s)),console.log("xin state saved to localStorage")},500);xt(e,i)},ls="1.0.11";function Q(e){return Object.assign(dt,e),dt}function p1(e){return console.warn("boxedProxy is deprecated, please use tosi() instead"),Q(e)}function os(e,t=!1){if(t)return console.warn("xinProxy(..., true) is deprecated; use tosi(...) instead"),p1(e);return Object.keys(e).forEach((i)=>{P[i]=e[i]}),P}var sl={};async function h1(e,t){let{type:i,styleSpec:s}=await t(e,{Color:C,Component:m,elements:f,svgElements:ht,mathML:is,varDefault:h,vars:c,xin:P,boxed:dt,xinProxy:os,boxedProxy:p1,tosi:Q,makeComponent:h1,bind:ee,on:Pe,version:ls}),l={type:i,creator:i.elementCreator({tag:e,styleSpec:s})};return sl[e]=l,l}var $t={},ll=(e)=>import(e);class yt extends m{tag="anon-elt";src="";property="default";loaded;blueprintLoaded=(e)=>{};async packaged(){let{tag:e,src:t,property:i}=this,s=`${e}.${i}:${t}`;if(!this.loaded){if($t[s]===void 0)$t[s]=ll(t).then((l)=>{let o=l[i];return h1(e,o)});else console.log(`using cached ${e} with signature ${s}`);this.loaded=await $t[s],this.blueprintLoaded(this.loaded)}return this.loaded}constructor(){super();this.initAttributes("tag","src","property")}}var ol=yt.elementCreator({tag:"xin-blueprint",styleSpec:{":host":{display:"none"}}});class x1 extends m{allLoaded=()=>{};constructor(){super()}async load(){let e=Array.from(this.querySelectorAll(yt.tagName)).filter((t)=>t.src).map((t)=>t.packaged());await Promise.all(e),this.allLoaded()}connectedCallback(){super.connectedCallback(),this.load()}}var nl=x1.elementCreator({tag:"xin-loader",styleSpec:{":host":{display:"none"}}});var y1={};class je extends m{static set conditions(e){Object.assign(y1,e);for(let t of[...je.instances])t.queueRender()}condition="";not=!1;static instances=new Set;constructor(){super();this.initAttributes("condition","not")}connectedCallback(){super.connectedCallback(),je.instances.add(this)}disconnectedCallback(){super.disconnectedCallback(),je.instances.delete(this)}render(){if(this.condition!==""&&(this.not?y1[this.condition]!==!0:y1[this.condition]===!0))this.toggleAttribute("hidden",!1);else this.toggleAttribute("hidden",!0)}}var al=je.elementCreator({tag:"xin-ab"});var ut={};function F(e,t){if(ut[e]===void 0){if(t!==void 0){let s=globalThis[t];ut[e]=Promise.resolve({[t]:s})}let i=f.script({src:e});document.head.append(i),ut[e]=new Promise((s)=>{i.onload=()=>s(globalThis)})}return ut[e]}var u1={};function gt(e){if(u1[e]===void 0){let t=f.link({rel:"stylesheet",type:"text/css",href:e});document.head.append(t),u1[e]=new Promise((i)=>{t.onload=i})}return u1[e]}var Je={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"><g></g><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"><g></g><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"><g></g><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"><g></g><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"><g></g><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 rl=(e)=>{Object.assign(Je,e)},g1=(e,t,i,s)=>{e.setAttribute("xmlns","http://www.w3.org/2000/svg");for(let n of[...e.querySelectorAll("path, polygon, line, circle, rect, ellipse, polyline")]){if(t!==void 0)n.setAttribute("fill",t);if(i!==void 0)n.setAttribute("stroke",i);if(s!==void 0)n.setAttribute("stroke-width",String(s))}let l=e.querySelectorAll("[style]");e.removeAttribute("style");for(let n of[...l]){let{fill:a,stroke:r,strokeWidth:d,strokeLinecap:p,strokeLinejoin:x}=n.style;if(a)n.setAttribute("fill",C.fromCss(a).html);if(r)n.setAttribute("stroke",C.fromCss(r).html);if(d)n.setAttribute("strokeWidth",d);if(p)n.setAttribute("strokeLinecap",p);if(x)n.setAttribute("strokeLinejoin",x);n.removeAttribute("style")}return`url(data:image/svg+xml;charset=UTF-8,${encodeURIComponent(e.outerHTML)})`},u=new Proxy(Je,{get(e,t){let i=Je[t];if(t&&!i)console.warn(`icon ${t} does not exist`);if(!i)i=Je.square;return(...s)=>{let l=f.div();l.innerHTML=i;let o=l.querySelector("svg"),n=new Set(o.classList);n.add("xin-icon");let a=ht.svg({class:Array.from(n).join(" "),viewBox:o.getAttribute("viewBox")},...s,...o.children);return a.style.strokeWidth=h.tosiIconStrokeWidth("2px"),a.style.stroke=h.tosiIconStroke(n.has("filled")?"none":"currentColor"),a.style.fill=h.tosiIconFill(n.has("stroked")?"none":"currentColor"),a.style.height=h.tosiIconSize("16px"),a}}});class f1 extends m{icon="";size=0;fill="";stroke="";strokeWidth=1;constructor(){super();this.initAttributes("icon","size","fill","stroke","strokeWidth")}render(){super.render(),this.textContent="";let e={};if(this.size)e.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)e.stroke=this.stroke,e.strokeWidth=this.strokeWidth;e.fill=this.fill,this.append(u[this.icon]({style:e}))}}var cl=f1.elementCreator({tag:"xin-icon",styleSpec:{":host":{"--tosi-icon-size":"16px","--tosi-icon-stroke-width":"2px","--tosi-icon-stroke-linejoin":"round","--tosi-icon-stroke-linecap":"round","--tosi-icon-fill":"none","--xin-icon-size":"var(--tosi-icon-size)","--icon-stroke-width":"var(--tosi-icon-stroke-width)","--icon-stroke-linejoin":"var(--tosi-icon-stroke-linejoin)","--icon-stroke-linecap":"var(--tosi-icon-stroke-linecap)","--icon-fill":"var(--tosi-icon-fill)",display:"inline-flex",stroke:"currentColor",strokeWidth:h.tosiIconStrokeWidth("2px"),strokeLinejoin:h.tosiIconStrokeLinejoin("round"),strokeLinecap:h.tosiIconStrokeLinecap("round"),fill:h.tosiIconFill("none")},":host, :host svg":{height:h.tosiIconSize("16px")}}});var ns=()=>{};class m1 extends m{babylonReady;BABYLON;static styleSpec={":host":{display:"block",position:"relative"},":host canvas":{width:"100%",height:"100%"},":host .babylonVRicon":{height:50,width:80,backgroundColor:"transparent",filter:"drop-shadow(0 0 4px #000c)",backgroundImage:g1(u.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=f.canvas({part:"canvas"});constructor(){super();this.babylonReady=(async()=>{let{BABYLON:e}=await F("https://cdn.babylonjs.com/babylon.js","BABYLON");return e})()}scene;engine;sceneCreated=ns;update=ns;_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(e,t,i)=>{let{BABYLON:s}=await F("https://cdn.babylonjs.com/loaders/babylonjs.loaders.min.js","BABYLON");s.SceneLoader.Append(e,t,this.scene,i)};loadUI=async(e)=>{let{BABYLON:t}=await F("https://cdn.babylonjs.com/gui/babylon.gui.min.js","BABYLON"),i=t.GUI.AdvancedDynamicTexture.CreateFullscreenUI("GUI",!0,this.scene),{snippetId:s,jsonUrl:l,data:o,size:n}=e;if(n)i.idealWidth=n,i.renderAtIdealSize=!0;let a;if(s)a=await i.parseFromSnippetAsync(s);else if(l)a=await i.parseFromURLAsync(l);else if(o)a=i.parseContent(o);else return null;let r=i.getChildren()[0],d=r.children.reduce((p,x)=>{return p[x.name]=x,p},{});return{advancedTexture:i,gui:a,root:r,widgets:d}};connectedCallback(){super.connectedCallback();let{canvas:e}=this.parts;this.babylonReady.then(async(t)=>{if(this.BABYLON=t,this.engine=new t.Engine(e,!0),this.scene=new t.Scene(this.engine),this.sceneCreated)await this.sceneCreated(this,t);if(this.scene.activeCamera===void 0)new t.ArcRotateCamera("default-camera",-Math.PI/2,Math.PI/2.5,3,new t.Vector3(0,0,0)).attachControl(this.parts.canvas,!0);this.engine.runRenderLoop(this._update)})}}var dl=m1.elementCreator({tag:"xin-3d"});class Te extends m{content=null;src="";json="";config={renderer:"svg",loop:!0,autoplay:!0};static bodymovinAvailable;animation;static styleSpec={":host":{width:400,height:400,display:"inline-block"}};_loading=!1;get loading(){return this._loading}constructor(){super();if(this.initAttributes("src","json"),Te.bodymovinAvailable===void 0)Te.bodymovinAvailable=F("https://cdnjs.cloudflare.com/ajax/libs/bodymovin/5.12.2/lottie.min.js","bodymovin")}doneLoading=()=>{this._loading=!1};load=({bodymovin:e})=>{if(this._loading=!0,this.config.container=this.shadowRoot!==null?this.shadowRoot:void 0,this.json!=="")this.config.animationData=this.json,delete this.config.path;else if(this.src!=="")delete this.config.animationData,this.config.path=this.src;else console.log("%c<xin-lottie>%c expected either %cjson%c (animation data) or %csrc% c(url) but found neither.","color: #44f; background: #fff; padding: 0 5px","color: default","color: #44f; background: #fff; padding: 0 5px","color: default","color: #44f; background: #fff; padding: 0 5px","color: default");if(this.animation){this.animation.destroy();let t=this.shadowRoot;if(t!==null)t.querySelector("svg")?.remove()}this.animation=e.loadAnimation(this.config),this.animation.addEventListener("DOMLoaded",this.doneLoading)};render(){super.render(),Te.bodymovinAvailable.then(this.load).catch((e)=>{console.error(e)})}}var pl=Te.elementCreator({tag:"xin-lottie"});var{button:v1,slot:hl,div:ft}=f;class k1 extends m{arrows=!1;dots=!1;loop=!1;maxVisibleItems=1;snapDelay=0.1;snapDuration=0.25;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(e){let{scroller:t,back:i,forward:s}=this.parts;if(this.lastPage<=0)s.disabled=i.disabled=!0,e=0;else e=Math.max(0,Math.min(this.lastPage,e)),e=isNaN(e)?0:e;if(this._page!==e)this._page=isNaN(e)?0:e,this.animateScroll(this._page*t.offsetWidth),i.disabled=this.page<=0&&!this.loop,s.disabled=this.page>=this.lastPage&&!this.loop}get visibleItems(){return[...this.children].filter((e)=>getComputedStyle(e).display!=="none")}get lastPage(){return Math.max(Math.ceil(this.visibleItems.length/(this.maxVisibleItems||1))-1,0)}static styleSpec={":host":{display:"flex",flexDirection:"column",position:"relative"},":host svg":{height:c.carouselIconSize},":host button":{outline:"none",border:"none",boxShadow:"none",background:"transparent",color:c.carouselButtonColor,padding:0},":host::part(back), :host::part(forward)":{position:"absolute",top:0,bottom:0,width:c.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:c.carouselButtonHoverColor},":host button:active":{color:c.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:c.carouselButtonColor,borderRadius:c.carouselDotSize,height:c.carouselDotSize,width:c.carouselDotSize,transition:c.carouselDotTransition},":host .dot:not(.current):hover":{background:c.carouselButtonHoverColor,height:c.carouselDotSize150,width:c.carouselDotSize150,margin:c.carouselDotSize_25},":host .dot:not(.current):active":{background:c.carouselButtonActiveColor},":host .dot.current":{background:c.carouselDotCurrentColor},":host::part(progress)":{display:"flex",gap:c.carouselDotSpacing,justifyContent:"center",padding:c.carouselProgressPadding}};easing=(e)=>{return Math.sin(e*Math.PI*0.5)};indicateCurrent=()=>{let{scroller:e,progress:t}=this.parts,i=e.scrollLeft/e.offsetWidth;[...t.children].forEach((s,l)=>{s.classList.toggle("current",Math.floor(l/this.maxVisibleItems-i)===0)}),this.lastAutoAdvance=Date.now(),clearTimeout(this.snapTimer),this.snapTimer=setTimeout(this.snapPosition,this.snapDelay*1000)};snapPosition=()=>{let{scroller:e}=this.parts,t=Math.round(e.scrollLeft/e.offsetWidth);if(t!==this.page)this.page=t>this.page?Math.ceil(t):Math.floor(t);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=(e)=>{let{progress:t}=this.parts,i=[...t.children].indexOf(e.target);if(i>-1)this.page=Math.floor(i/this.maxVisibleItems)};snapTimer;animationFrame;animateScroll(e,t=-1,i=0){cancelAnimationFrame(this.animationFrame);let{scroller:s}=this.parts;if(t===-1){t=s.scrollLeft,i=Date.now(),this.animationFrame=requestAnimationFrame(()=>{this.animateScroll(e,t,i)});return}let l=(Date.now()-i)/1000;if(l>=this.snapDuration||Math.abs(s.scrollLeft-e)<2)s.scrollLeft=e,this.animationFrame=null;else s.scrollLeft=t+this.easing(l/this.snapDuration)*(e-t),this.animationFrame=requestAnimationFrame(()=>{this.animateScroll(e,t,i)})}content=()=>[ft({part:"pager"},v1({title:"previous slide",part:"back"},u.chevronLeft()),ft({title:"slides",role:"group",part:"scroller"},ft({part:"grid"},hl())),v1({title:"next slide",part:"forward"},u.chevronRight())),ft({title:"choose slide to display",role:"group",part:"progress"})];constructor(){super();this.initAttributes("dots","arrows","maxVisibleItems","snapDuration","loop","auto")}connectedCallback(){super.connectedCallback(),this.ariaRoleDescription="carousel",this.ariaOrientation="horizontal",this.ariaReadOnly="true";let{back:e,forward:t,scroller:i,progress:s}=this.parts;e.addEventListener("click",this.back),t.addEventListener("click",this.forward),i.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:e,arrows:t,visibleItems:i,lastPage:s}=this,{progress:l,back:o,forward:n,grid:a}=this.parts;i.forEach((r)=>{r.role="group"}),a.style.gridTemplateColumns=`${100/this.maxVisibleItems/(1+this.lastPage)}% `.repeat(i.length).trim(),a.style.width=(1+this.lastPage)*100+"%",l.textContent="",l.append(...i.map((r,d)=>v1({title:`item ${d+1}`,class:"dot"}))),this.indicateCurrent(),l.style.display=e&&s>0?"":"none",o.hidden=n.hidden=!(t&&s>0)}}var xl=k1.elementCreator({tag:"xin-carousel",styleSpec:{":host":{_carouselIconSize:24,_carouselButtonColor:"#0004",_carouselButtonHoverColor:"#0006",_carouselButtonActiveColor:"#000c",_carouseButtonWidth:48,_carouselDotCurrentColor:"#0008",_carouselDotSize:8,_carouselDotSpacing:c.carouselDotSize,_carouselProgressPadding:12,_carouselDotTransition:"0.125s ease-in-out"},":host:focus":{outline:"none",boxShadow:"none"}}});var as="https://cdnjs.cloudflare.com/ajax/libs/ace/1.23.2/",rs="ace/theme/tomorrow",yl=async()=>{let{ace:e}=await F(`${as}ace.min.js`);return e},ul=async(e,t="html",i={},s=rs)=>{let l=await yl();l.config.set("basePath",as);let o=l.edit(e,{mode:`ace/mode/${t}`,tabSize:2,useSoftTabs:!0,useWorker:!1,...i});return o.setTheme(s),{ace:l,editor:o}};class ue extends m{source="";get value(){return this.editor===void 0?this.source:this.editor.getValue()}set value(e){if(this.editor===void 0)this.source=e;else this.editor.setValue(e),this.editor.clearSelection(),this.editor.session.getUndoManager().reset()}mode="javascript";disabled=!1;role="code editor";_ace;_editor;_editorPromise;options={};theme=rs;get ace(){return this._ace}get editor(){return this._editor}static styleSpec={":host":{display:"block",position:"relative",width:"100%",height:"100%"}};constructor(){super();this.initAttributes("mode","theme","disabled")}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=ul(this,this.mode,this.options,this.theme),this._editorPromise.then(({ace:e,editor:t})=>{this._ace=e,this._editor=t,t.setValue(this.source,1),t.clearSelection(),t.session.getUndoManager().reset()})}render(){if(super.render(),this._editorPromise!==void 0)this._editorPromise.then(({editor:e})=>e.setReadOnly(this.disabled))}}var Ze=ue.elementCreator({tag:"xin-code"});var{input:C1}=f,cs=C.fromCss("#8888");class ds extends m{value=cs.rgba;color=cs;static styleSpec={":host":{_gap:8,_swatchSize:32,_cssWidth:72,_alphaWidth:72,display:"inline-flex",gap:c.gap,alignItems:"center"},':host input[type="color"]':{border:0,width:c.swatchSize,height:c.swatchSize,background:"transparent"},":host::part(alpha)":{width:c.alphaWidth},":host::part(css)":{width:c.cssWidth,fontFamily:"monospace"}};content=[C1({title:"base color",type:"color",part:"rgb"}),C1({type:"range",title:"opacity",part:"alpha",min:0,max:1,step:0.05}),C1({title:"css color spec",part:"css"})];valueChanged=!1;update=(e)=>{let{rgb:t,alpha:i,css:s}=this.parts;if(e.type==="input")this.color=C.fromCss(t.value),this.color.a=Number(i.value),s.value=this.color.html;else this.color=C.fromCss(s.value),t.value=this.color.html.substring(0,7),i.value=String(this.color.a);t.style.opacity=String(this.color.a),this.value=this.color.rgba,this.valueChanged=!0};connectedCallback(){super.connectedCallback();let{rgb:e,alpha:t,css:i}=this.parts;e.addEventListener("input",this.update),t.addEventListener("input",this.update),i.addEventListener("change",this.update)}render(){if(this.valueChanged){this.valueChanged=!1;return}let{rgb:e,alpha:t,css:i}=this.parts;this.color=C.fromCss(this.value),e.value=this.color.html.substring(0,7),e.style.opacity=String(this.color.a),t.value=String(this.color.a),i.value=this.color.html}}var b1=ds.elementCreator({tag:"xin-color"});var se=f.div({style:{content:" ",position:"fixed",top:0,left:0,right:0,bottom:0}}),mt={passive:!0},T=(e,t,i="move")=>{if(!e.type.startsWith("touch")){let{clientX:l,clientY:o}=e;se.style.cursor=i,le(se),document.body.append(se);let n=(a)=>{let r=a.clientX-l,d=a.clientY-o;if(t(r,d,a)===!0)se.removeEventListener("mousemove",n),se.removeEventListener("mouseup",n),se.remove()};se.addEventListener("mousemove",n,mt),se.addEventListener("mouseup",n,mt)}else if(e instanceof TouchEvent){let l=e.changedTouches[0],o=l.identifier,n=l.clientX,a=l.clientY,r=e.target,d=0,p=0,x=(g)=>{let k=[...g.touches].find((y)=>y.identifier===o);if(k!==void 0)d=k.clientX-n,p=k.clientY-a;if(g.type==="touchmove")g.stopPropagation(),g.preventDefault();if(t(d,p,g)===!0||k===void 0)r.removeEventListener("touchmove",x),r.removeEventListener("touchend",x),r.removeEventListener("touchcancel",x)};r.addEventListener("touchmove",x),r.addEventListener("touchend",x,mt),r.addEventListener("touchcancel",x,mt)}},ge=(e="body *")=>[...document.querySelectorAll(e)].map((t)=>parseFloat(getComputedStyle(t).zIndex)).reduce((t,i)=>isNaN(t)||Number(t)<i?i:Number(t),0),le=(e,t="body *")=>{e.style.zIndex=String(ge(t)+1)};var{slot:gl}=f;class oe extends m{static floats=new Set;drag=!1;remainOnResize="remove";remainOnScroll="remain";content=gl();static styleSpec={":host":{position:"fixed"}};constructor(){super();this.initAttributes("drag","remainOnResize","remainOnScroll")}reposition=(e)=>{if(e.target?.closest(".no-drag"))return;if(this.drag){le(this);let i=this.offsetLeft,s=this.offsetTop;T(e,(l,o,n)=>{if(this.style.left=`${i+l}px`,this.style.top=`${s+o}px`,this.style.right="auto",this.style.bottom="auto",n.type==="mouseup")return!0})}};connectedCallback(){super.connectedCallback(),oe.floats.add(this);let e={passive:!0};this.addEventListener("touchstart",this.reposition,e),this.addEventListener("mousedown",this.reposition,e),le(this)}disconnectedCallback(){super.disconnectedCallback(),oe.floats.delete(this)}}var vt=oe.elementCreator({tag:"xin-float"});window.addEventListener("resize",()=>{Array.from(oe.floats).forEach((e)=>{if(e.remainOnResize==="hide")e.hidden=!0;else if(e.remainOnResize==="remove")e.remove()})},{passive:!0});document.addEventListener("scroll",(e)=>{if(e.target instanceof HTMLElement&&e.target.closest(oe.tagName))return;Array.from(oe.floats).forEach((t)=>{if(t.remainOnScroll==="hide")t.hidden=!0;else if(t.remainOnScroll==="remove")t.remove()})},{passive:!0,capture:!0});var w1=(e)=>{let{content:t,target:i,position:s,remainOnScroll:l,remainOnResize:o,draggable:n}=e,a=Array.isArray(t)?vt(...t):vt(t);if(ps(a,i,s,l,o,n),e.class)a.setAttribute("class",e.class);return document.body.append(a),a},ps=(e,t,i,s,l,o=!1)=>{{let{position:y}=getComputedStyle(e);if(y!=="fixed")e.style.position="fixed";if(l)e.remainOnResize=l;if(s)e.remainOnScroll=s;le(e)}e.drag=o;let{left:n,top:a,width:r,height:d}=t.getBoundingClientRect(),p=n+r*0.5,x=a+d*0.5,g=window.innerWidth,k=window.innerHeight;if(i==="side")i=(p<g*0.5?"e":"w")+(x<k*0.5?"s":"n");else if(i==="auto"||i===void 0)i=(x<k*0.5?"s":"n")+(p<g*0.5?"e":"w");if(e.style.top=e.style.left=e.style.right=e.style.bottom=e.style.transform="",i.length===2){let[y,v]=i;switch(y){case"n":e.style.bottom=(k-a).toFixed(2)+"px";break;case"e":e.style.left=(n+r).toFixed(2)+"px";break;case"s":e.style.top=(a+d).toFixed(2)+"px";break;case"w":e.style.right=(g-n).toFixed(2)+"px";break}switch(v){case"n":e.style.bottom=(k-a-d).toFixed(2)+"px";break;case"e":e.style.left=n.toFixed(2)+"px";break;case"s":e.style.top=a.toFixed(2)+"px";break;case"w":e.style.right=(g-n-r).toFixed(2)+"px";break}e.style.transform=""}else if(i==="n")e.style.bottom=(k-a).toFixed(2)+"px",e.style.left=p.toFixed(2)+"px",e.style.transform="translateX(-50%)";else if(i==="s")e.style.top=(a+d).toFixed(2)+"px",e.style.left=p.toFixed(2)+"px",e.style.transform="translateX(-50%)";else if(i==="e")e.style.left=(n+r).toFixed(2)+"px",e.style.top=x.toFixed(2)+"px",e.style.transform="translateY(-50%)";else if(i==="w")e.style.right=(g-n).toFixed(2)+"px",e.style.top=x.toFixed(2)+"px",e.style.transform="translateY(-50%)";e.style.setProperty("--max-height",`calc(100vh - ${e.style.top||e.style.bottom})`),e.style.setProperty("--max-width",`calc(100vw - ${e.style.left||e.style.right})`)};function kt(e,t=!0){return(i,s)=>{let l=e(i),o=e(s);for(let n in l)if(l[n]!==o[n])return(Array.isArray(t)?t[n]!==!1:t)?l[n]>o[n]?1:-1:l[n]>o[n]?-1:1;return 0}}var{button:fl,span:hs,input:ml}=f,xs=(e,t)=>{return!!e.find((i)=>{if(i===null||t==null)return!1;else if(Array.isArray(i))return xs(i,t);else if(i.value===t||i===t)return!0})};class fe extends m{editable=!1;showIcon=!1;hideCaption=!1;options="";value="";placeholder="";filter="";localized=!1;disabled=!1;isExpanded=!1;setValue=(e,t=!1)=>{if(this.value!==e)this.value=e;if(t)this.dispatchEvent(new Event("action"))};getValue=()=>this.value;get selectOptions(){return typeof this.options==="string"?this.options.split(",").map((e)=>e.trim()||null):this.options}buildOptionMenuItem=(e)=>{if(e===null)return null;let{setValue:t,getValue:i}=this,s,l,o;if(typeof e==="string")l=o=e;else({icon:s,caption:l,value:o}=e);if(this.localized)l=L(l);let{options:n}=e;if(n)return{icon:s,caption:l,checked:()=>xs(n,i()),menuItems:n.map(this.buildOptionMenuItem)};return{icon:s,caption:l,checked:()=>i()===o,action:typeof o==="function"?async()=>{let a=await o();if(a!==void 0)t(a,!0)}:()=>{if(typeof o==="string")t(o,!0)}}};get optionsMenu(){let e=this.selectOptions.map(this.buildOptionMenuItem);if(this.filter==="")return e;let t=(i)=>{if(i===null)return!0;else if(i.menuItems)return i.menuItems=i.menuItems.filter(t),i.menuItems.length>0;else return i.caption.toLocaleLowerCase().includes(this.filter)};return e.filter(t)}handleChange=(e)=>{let{value:t}=this.parts,i=t.value||"";if(this.value!==String(i))this.value=i,this.dispatchEvent(new Event("change"));this.filter="",e.stopPropagation(),e.preventDefault()};handleKey=(e)=>{if(e.key==="Enter")e.preventDefault()};filterMenu=Ue(()=>{this.filter=this.parts.value.value.toLocaleLowerCase(),ne(0),this.popOptions()});popOptions=(e)=>{if(e&&e.type==="click")this.filter="";this.poppedOptions=this.optionsMenu,this.isExpanded=!0,this.updateAriaExpanded(),S({target:this,menuItems:this.poppedOptions,showChecked:!0,role:"listbox",onClose:()=>{this.isExpanded=!1,this.updateAriaExpanded()}})};updateAriaExpanded(){let{value:e}=this.parts;e.setAttribute("aria-expanded",String(this.isExpanded))}content=()=>[fl({part:"button",onClick:this.popOptions},hs(),ml({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}),u.chevronDown())];constructor(){super();this.initAttributes("options","editable","placeholder","showIcon","hideCaption","localized","disabled")}get allOptions(){let e=[];function t(i){for(let s of i)if(typeof s==="string")e.push({caption:s,value:s});else if(s?.value)e.push(s);else if(s?.options)t(s.options)}return t(this.selectOptions),e}findOption(){return this.allOptions.find((t)=>t.value===this.value)||{caption:this.value,value:this.value}}localeChanged=()=>{this.queueRender()};connectedCallback(){if(super.connectedCallback(),this.localized)O.allInstances.add(this)}disconnectedCallback(){if(super.disconnectedCallback(),this.localized)O.allInstances.delete(this)}render(){super.render();let{value:e,button:t}=this.parts;t.disabled=this.disabled;let i=e.previousElementSibling,s=this.findOption(),l=hs();if(e.value=this.localized?L(s.caption):s.caption,s.icon)if(s.icon instanceof HTMLElement)l=s.icon.cloneNode(!0);else l=u[s.icon]();i.replaceWith(l),e.setAttribute("placeholder",this.localized?L(this.placeholder):this.placeholder),e.style.pointerEvents=this.editable?"":"none",e.readOnly=!this.editable}}var V=fe.elementCreator({tag:"xin-select",styleSpec:{":host":{"--tosi-select-gap":"var(--tosi-spacing-sm, 8px)","--tosi-select-touch-size":"var(--tosi-touch-size, 44px)","--tosi-select-padding":"0 var(--tosi-spacing-sm, 8px)","--tosi-select-value-padding":"0 var(--tosi-spacing-sm, 8px)","--tosi-select-icon-width":"24px","--tosi-select-field-width":"140px","--gap":"var(--tosi-select-gap)","--touch-size":"var(--tosi-select-touch-size)","--padding":"var(--tosi-select-padding)","--value-padding":"var(--tosi-select-value-padding)","--icon-width":"var(--tosi-select-icon-width)","--fieldWidth":"var(--tosi-select-field-width)",display:"inline-flex",position:"relative"},":host button":{display:"flex",alignItems:"center",justifyItems:"center",gap:c.tosiSelectGap,textAlign:"left",height:c.tosiSelectTouchSize,padding:c.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:c.tosiSelectFieldWidth,padding:c.tosiSelectValuePadding,height:c.tosiSelectTouchSize,lineHeight:c.tosiSelectTouchSize,boxShadow:"none",whiteSpace:"nowrap",outline:"none",background:"transparent",flex:"1"},':host [part="value"]:not(:focus)':{overflow:"hidden",textOverflow:"ellipsis",background:"transparent"}}});var{span:ys}=f,{i18n:A}=Q({i18n:{locale:window.navigator.language,locales:[window.navigator.language],languages:[window.navigator.language],emoji:[""],stringMap:{},localeOptions:[{icon:ys(),caption:window.navigator.language,value:window.navigator.language}]}});te.localeOptions={toDOM(e,t){if(e instanceof fe)e.options=t}};var vl=(e)=>{if(A.locales.xinValue.includes(e))A.locale.xinValue=e;else console.error(`language ${e} is not available`)},M1=()=>{let e=Array.from(O.allInstances);for(let t of e)t.localeChanged()};xt(A.locale.xinPath,M1);var kl=kt((e)=>[e.caption.toLocaleLowerCase()]);function Cl(e){let[t,,i,s,...l]=e.split(`
11
+ `).map((o)=>o.split("\t"));if(t&&i&&s&&l){if(A.locales.xinValue=t,A.languages.xinValue=i,A.emoji.xinValue=s,A.stringMap.xinValue=l.reduce((o,n)=>{return o[n[0].toLocaleLowerCase()]=n,o},{}),A.localeOptions.xinValue=t.map((o,n)=>({icon:ys({title:t[n]},s[n]),caption:i[n],value:o})).sort(kl),!A.locales.xinValue.includes(A.locale.xinValue)){let o=A.locale.xinValue.substring(0,2);A.locale.xinValue=A.locales.xinValue.find((n)=>n.substring(0,2)===o)||A.locales.xinValue[0]}M1()}}function L(e){if(e.endsWith("…"))return L(e.substring(0,e.length-1))+"…";let t=A.locales.xinValue.indexOf(A.locale.xinValue);if(t>-1){let s=A.stringMap.xinValue[e.toLocaleLowerCase()],l=s&&s[t];if(l)e=e.toLocaleLowerCase()===e?l.toLocaleLowerCase():l}return e}class B1 extends m{hideCaption=!1;content=()=>{return V({part:"select",showIcon:!0,title:L("Language"),bindValue:A.locale,bindLocaleOptions:A.localeOptions})};constructor(){super();this.initAttributes("hideCaption")}render(){super.render(),this.parts.select.toggleAttribute("hide-caption",this.hideCaption)}}var bl=B1.elementCreator({tag:"xin-locale-picker"});class O extends m{static allInstances=new Set;contents=()=>f.xinSlot();refString="";constructor(){super();this.initAttributes("refString")}connectedCallback(){super.connectedCallback(),O.allInstances.add(this)}disconnectedCallback(){super.disconnectedCallback(),O.allInstances.delete(this)}localeChanged(){if(!this.refString)this.refString=this.textContent||"";this.textContent=this.refString?L(this.refString):""}render(){super.render(),this.localeChanged()}}var J=O.elementCreator({tag:"xin-localized",styleSpec:{":host":{pointerEvents:"none"}}});var us=(e,t)=>{t=t.toLocaleLowerCase();let i=!!t.match(/\^|ctrl/),s=!!t.match(/⌘|meta/),l=!!t.match(/⌥|⎇|alt|option/),o=!!t.match(/⇧|shift/),n=t.slice(-1);return e.key===n&&e.metaKey===s&&e.ctrlKey===i&&e.altKey===l&&e.shiftKey===o};var{div:gs,button:z1,span:I,a:wl,xinSlot:Ml}=f;Ke("xin-menu-helper",{".xin-menu":{overflow:"hidden auto",maxHeight:`calc(${c.maxHeight} - ${h.menuInset("8px")})`,borderRadius:c.spacing50,background:h.menuBg("#fafafa"),boxShadow:h.menuShadow(`${c.spacing13} ${c.spacing50} ${c.spacing} #0004`)},".xin-menu > div":{width:h.menuWidth("auto")},".xin-menu-trigger":{paddingLeft:0,paddingRight:0,minWidth:h.touchSize("48px")},".xin-menu-separator":{display:"inline-block",content:" ",height:"1px",width:"100%",background:h.menuSeparatorColor("#2224"),margin:h.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:h.menuItemPadding("0 16px"),height:h.menuItemHeight("48px"),lineHeight:h.menuItemHeight("48px"),textAlign:"left"},".xin-menu-item, .xin-menu-item > span":{color:h.menuItemColor("#222")},".xin-menu-with-icons .xin-menu-item":{gridTemplateColumns:"30px 1fr 30px"},".xin-menu-item svg":{stroke:h.menuItemIconColor("#222")},".xin-menu-item.xin-menu-item-checked":{background:h.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:h.menuItemHoverBg("#eee")},".xin-menu-item:active":{boxShadow:"none !important",background:h.menuItemActiveBg("#aaa"),color:h.menuItemActiveColor("#000")},".xin-menu-item:active svg":{stroke:h.menuItemIconActiveColor("#000")}});var fs=(e,t)=>{let i=e.checked&&e.checked()&&"check"||!1,s=e?.icon||i||I(" ");if(typeof s==="string")s=u[s]();let l=t.role==="listbox"?"option":"menuitem",o;if(typeof e?.action==="string")o=wl({class:"xin-menu-item",role:l,href:e.action},s,t.localized?I(L(e.caption)):I(e.caption),I(e.shortcut||" "));else o=z1({class:"xin-menu-item",role:l,onClick:e.action},s,t.localized?I(L(e.caption)):I(e.caption),I(e.shortcut||" "));if(o.classList.toggle("xin-menu-item-checked",i!==!1),t.role==="listbox"&&i)o.setAttribute("aria-selected","true");if(e?.enabled&&!e.enabled())o.setAttribute("disabled",""),o.setAttribute("aria-disabled","true");return o},ms=(e,t)=>{let i=e.checked&&e.checked()&&"check"||!1,s=e?.icon||i||I(" ");if(typeof s==="string")s=u[s]();let l=z1({class:"xin-menu-item",disabled:!(!e.enabled||e.enabled()),onClick(o){S(Object.assign({},t,{menuItems:e.menuItems,target:l,submenuDepth:(t.submenuDepth||0)+1,position:"side"})),o.stopPropagation(),o.preventDefault()}},s,t.localized?I(L(e.caption)):I(e.caption),u.chevronRight({style:{justifySelf:"flex-end"}}));return l},vs=(e,t)=>{if(e===null)return I({class:"xin-menu-separator"});else{let i=e?.action?fs(e,t):ms(e,t);if(t.showChecked&&e.checked&&e.checked())requestAnimationFrame(()=>{i.scrollIntoView({block:"center"})});return i}},ks=(e)=>{let{target:t,width:i,menuItems:s,role:l="menu"}=e,o=s.find((n)=>n?.icon||n?.checked);return gs({class:o?"xin-menu xin-menu-with-icons":"xin-menu",role:l,onClick(){ne(0)}},gs({style:{minWidth:t.offsetWidth+"px",width:typeof i==="number"?`${i}px`:i},onMousedown(n){n.preventDefault(),n.stopPropagation()}},...s.map((n)=>vs(n,e))))},Se,me=[],ne=(e=0)=>{let t=me.splice(e);for(let i of t)if(i.menu.remove(),i.onClose)i.onClose();return Se=t[0],e>0?me[e-1]:void 0};document.body.addEventListener("mousedown",(e)=>{if(e.target&&!me.find((t)=>t.target.contains(e.target)))ne(0)});document.body.addEventListener("keydown",(e)=>{if(e.key==="Escape")ne(0)});var S=(e)=>{e=Object.assign({submenuDepth:0},e);let{target:t,position:i,submenuDepth:s}=e;if(Se&&!document.body.contains(Se?.menu))Se=void 0;if(me.length&&!document.body.contains(me[0].menu))me.splice(0);if(s===0&&Se?.target===t)return;let l=ne(s);if(Se?.target===t)return;if(l&&l.target===t){ne();return}if(!e.menuItems?.length)return;let o=ks(e),n=w1({content:o,target:t,position:i});n.remainOnScroll="remove",me.push({target:t,menu:n,onClose:e.onClose})};function Cs(e,t){for(let i of e){if(!i)continue;let{shortcut:s}=i,{menuItems:l}=i;if(s){if(us(t,s))return i}else if(l){let o=Cs(l,t);if(o)return o}}return}class L1 extends m{menuItems=[];menuWidth="auto";localized=!1;showMenu=(e)=>{if(e.type==="click"||e.code==="Space")S({target:this.parts.trigger,width:this.menuWidth,localized:this.localized,menuItems:this.menuItems}),e.stopPropagation(),e.preventDefault()};content=()=>z1({tabindex:0,part:"trigger",onClick:this.showMenu},Ml());handleShortcut=async(e)=>{let t=Cs(this.menuItems,e);if(t){if(t.action instanceof Function)t.action()}};constructor(){super();this.initAttributes("menuWidth","localized","icon"),this.addEventListener("keydown",this.showMenu)}connectedCallback(){super.connectedCallback(),document.addEventListener("keydown",this.handleShortcut,!0)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("keydown",this.handleShortcut)}}var Bl=L1.elementCreator({tag:"xin-menu",styleSpec:{":host":{display:"inline-block"},":host button > xin-slot":{display:"flex",alignItems:"center",gap:h.xinMenuTriggerGap("10px")}}});var bt={};It(bt,{init:()=>E1,draggedElement:()=>Hl});var zl=()=>!!document.querySelector(".drag-source"),Ms=(e,t)=>{if(!e)return!1;for(let i of e)if(i==="special/any")return!0;else if(i.indexOf("*")>-1){let[s,l]=i.split("/"),[o,n]=t.split("/");if((s==="*"||s===o)&&(l==="*"||l===n))return!0}else if(i===t)return!0},Ct=(e)=>{for(let t of[...document.querySelectorAll(`.${e}`)])t.classList.remove(e)},Bs=()=>{Ct("drag-over"),Ct("drag-source"),Ct("drag-target")},A1=(e,t=";")=>{return(e||"").split(t).map((i)=>i.trim()).filter((i)=>i!=="")},zs=(e)=>{if(!e)e=[];let t=[...document.querySelectorAll("[data-drop]")];for(let i of t){let s=A1(i.dataset.drop);if(e.find((l)=>Ms(s,l)))i.classList.add("drag-target");else i.classList.remove("drag-target")}};function Ll(e){let t=e.target?.closest('[draggable="true"],a[href]');if(!t)return;t.classList.add("drag-source");let i=t.matches('[draggable="true"]')?A1(t.dataset.drag||"text/html"):A1(t.dataset.drag||"url");for(let s of i){let l=t.dataset.dragContent||(s==="text/html"?t.innerHTML:t.textContent);e.dataTransfer?.setData(s,l||"")}zs(e.dataTransfer?.types),e.stopPropagation()}function bs(e){if(!zl())zs(e.dataTransfer?.types);let t=e.target.closest(".drag-target");if(t&&e.dataTransfer)t.classList.add("drag-over"),e.dataTransfer.dropEffect="copy";else e.preventDefault(),e.stopPropagation()}function Al(){Ct("drag-over")}function El(e){let t=e.target.closest(".drag-target");if(t){let i=(t.dataset?.drop||"").split(";");for(let s of i)if(Ms(e.dataTransfer?.types,s))if(s==="text/html")t.innerHTML=e.dataTransfer?.getData(s)||"";else t.textContent=e.dataTransfer?.getData(s)||""}Bs()}var Hl=()=>document.querySelector(".drag-source"),ws=!1,E1=()=>{if(ws)return;document.body.addEventListener("dragstart",Ll),document.body.addEventListener("dragenter",bs),document.body.addEventListener("dragover",bs),document.body.addEventListener("drop",El),document.body.addEventListener("dragleave",Al),document.body.addEventListener("dragend",Bs),window.addEventListener("dragover",(e)=>e.preventDefault()),window.addEventListener("drop",(e)=>e.preventDefault()),ws=!0};function Pl(e,t,i){let s=e.find((l)=>l[t]!==void 0&&l[t]!==null);if(s!==void 0){let l=s[t];switch(typeof l){case"string":if(l.match(/^\d+(\.\d+)?$/))return 6*i;else if(l.includes(" "))return 20*i;else return 12*i;case"number":return 6*i;case"boolean":return 5*i;case"object":return!1;default:return 8*i}}return!1}var{div:Fe,span:H1,button:jl,template:Tl}=f,Ls=(e)=>e;class P1 extends m{select=!1;multiple=!1;nosort=!1;nohide=!1;noreorder=!1;selectionChanged=()=>{};localized=!1;selectedKey=Symbol("selected");selectBinding=(e,t)=>{e.toggleAttribute("aria-selected",t[this.selectedKey]===!0)};pinnedTop=0;pinnedBottom=0;maxVisibleRows=1e4;get value(){return{array:this.array,filter:this.filter,columns:this.columns}}set value(e){let{array:t,columns:i,filter:s}=H(e);if(this._array!==t||this._columns!==i||this._filter!==s)this.queueRender();this._array=t||[],this._columns=i||null,this._filter=s||Ls}rowData={visible:[],pinnedTop:[],pinnedBottom:[]};_array=[];_columns=null;_filter=Ls;charWidth=15;rowHeight=30;minColumnWidth=30;get virtual(){return this.rowHeight>0?{height:this.rowHeight}:void 0}constructor(){super();this.rowData=Q({[this.instanceId]:this.rowData})[this.instanceId],this.initAttributes("rowHeight","charWidth","minColumnWidth","select","multiple","pinnedTop","pinnedBottom","nosort","nohide","noreorder","localized")}get array(){return this._array}set array(e){this._array=H(e),this.queueRender()}get filter(){return this._filter}set filter(e){if(this._filter!==e)this._filter=e,this.queueRender()}get sort(){if(this._sort)return this._sort;let e=this._columns?.find((i)=>i.sort==="ascending"||i.sort==="descending");if(!e)return;let{prop:t}=e;return e.sort==="ascending"?(i,s)=>i[t]>s[t]?1:-1:(i,s)=>i[t]>s[t]?-1:1}set sort(e){if(this._sort!==e)this._sort=e,this.queueRender()}get columns(){if(!Array.isArray(this._columns)){let{_array:e}=this;this._columns=Object.keys(e[0]||{}).map((t)=>{let i=Pl(e,t,this.charWidth);return{name:t.replace(/([a-z])([A-Z])/g,"$1 $2").toLocaleLowerCase(),prop:t,align:typeof e[0][t]==="number"||e[0][t]!==""&&!isNaN(e[0][t])?"right":"left",visible:i!==!1,width:i?i:0}})}return this._columns}set columns(e){this._columns=e,this.queueRender()}get visibleColumns(){return this.columns.filter((e)=>e.visible!==!1)}content=null;getColumn(e){let t=(e.touches!==void 0?e.touches[0].clientX:e.clientX)-this.getBoundingClientRect().x,i=e.touches!==void 0?20:5,s=0,l=[];return this.visibleColumns.find((n)=>{if(n.visible!==!1)return s+=n.width,l.push(s),Math.abs(t-s)<i})}setCursor=(e)=>{if(this.getColumn(e)!==void 0)this.style.cursor="col-resize";else this.style.cursor=""};resizeColumn=(e)=>{let t=this.getColumn(e);if(t!==void 0){let i=Number(t.width),s=e.touches!==void 0,l=s?e.touches[0].identifier:void 0;T(e,(o,n,a)=>{if((s?[...a.touches].find((p)=>p.identifier===l):!0)===void 0)return!0;let d=i+o;if(t.width=d>this.minColumnWidth?d:this.minColumnWidth,this.setColumnWidths(),a.type==="mouseup")return!0},"col-resize")}};selectRow(e,t=!0){if(t)e[this.selectedKey]=!0;else delete e[this.selectedKey]}selectRows(e,t=!0){for(let i of e||this.array)this.selectRow(i,t)}deSelect(e){this.selectRows(e,!1)}rangeStart;updateSelection=(e)=>{if(!this.select&&!this.multiple)return;let{target:t}=e;if(!(t instanceof HTMLElement))return;let i=t.closest(".tr");if(!(i instanceof HTMLElement))return;let s=ye(i);if(s===!1)return;let l=e,o=window.getSelection();if(o!==null)o.removeAllRanges();let n=this.visibleRows;if(this.multiple&&l.shiftKey&&n.length>0&&this.rangeStart!==s){let a=this.rangeStart===void 0||this.rangeStart[this.selectedKey]===!0,[r,d]=[this.rangeStart!==void 0?n.indexOf(this.rangeStart):0,n.indexOf(s)].sort((p,x)=>p-x);if(r>-1)for(let p=r;p<=d;p++){let x=n[p];this.selectRow(x,a)}}else if(this.multiple&&l.metaKey){this.selectRow(s,!s[this.selectedKey]);let a=n.indexOf(s),r=n[a+1],d=a>0?n[a-1]:void 0;if(r!==void 0&&r[this.selectedKey]===!0)this.rangeStart=r;else if(d!==void 0&&d[this.selectedKey]===!0)this.rangeStart=d;else this.rangeStart=void 0}else this.rangeStart=s,this.deSelect(),this.selectRow(s,!0);this.selectionChanged(this.visibleSelectedRows);for(let a of Array.from(this.querySelectorAll(".tr"))){let r=ye(a);this.selectBinding(a,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 e=this.visibleColumns.map((i)=>i.width+"px").join(" "),t=this.visibleColumns.reduce((i,s)=>i+s.width,0)+"px";this.style.setProperty("--tosi-table-grid-columns",e),this.style.setProperty("--tosi-table-grid-row-width",t),this.style.setProperty("--grid-columns",e),this.style.setProperty("--grid-row-width",t)}sortByColumn=(e,t="auto")=>{for(let i of this.columns.filter((s)=>H(s.sort)!==!1))if(H(i)===e){if(t==="auto")i.sort=i.sort==="ascending"?"descending":"ascending";else i.sort=t;this.queueRender()}else delete i.sort};popColumnMenu=(e,t)=>{let{sortByColumn:i}=this,s=this.columns.filter((n)=>n.visible===!1),l=this.queueRender.bind(this),o=[];if(!this.nosort&&t.sort!==!1)o.push({caption:this.localized?`${L("Sort")} ${L("Ascending")}`:"Sort Ascending",icon:"sortAscending",action(){i(t)}},{caption:this.localized?`${L("Sort")} ${L("Descending")}`:"Sort Descending",icon:"sortDescending",action(){i(t,"descending")}});if(!this.nohide){if(o.length)o.push(null);o.push({caption:this.localized?`${L("Hide")} ${L("Column")}`:"Hide Column",icon:"eyeOff",enabled:()=>t.visible!==!0,action(){t.visible=!1,l()}},{caption:this.localized?`${L("Show")} ${L("Column")}`:"Show Column",icon:"eye",enabled:()=>s.length>0,menuItems:s.map((n)=>{return{caption:n.name||n.prop,action(){delete n.visible,l()}}})})}S({target:e,localized:this.localized,menuItems:o})};get captionSpan(){return this.localized?J:H1}headerCell=(e)=>{let{popColumnMenu:t}=this,i="none",s;switch(e.sort){case"ascending":s=u.sortAscending(),i="descending";break;case!1:break;default:break;case"descending":i="ascending",s=u.sortDescending()}let l=!(this.nosort&&this.nohide)?jl({class:"menu-trigger",onClick(o){t(o.target,e),o.stopPropagation()}},s||u.moreVertical()):{};return e.headerCell!==void 0?e.headerCell(e):H1({class:"th",role:"columnheader",ariaSort:i,style:{...this.cellStyle,justifyContent:e.align||"left"}},this.captionSpan({style:{flex:"1"}},typeof e.name==="string"?e.name:e.prop),l)};dataCell=(e)=>{if(e.dataCell!==void 0)return e.dataCell(e);return H1({class:"td",role:"cell",style:{...this.cellStyle,justifyContent:e.align||"left"},bindText:`^.${e.prop}`})};get visibleRows(){return H(this.rowData.visible)}get visibleSelectedRows(){return this.visibleRows.filter((e)=>e[this.selectedKey])}get selectedRows(){return this.array.filter((e)=>e[this.selectedKey])}rowTemplate(e){return Tl(Fe({class:"tr",role:"row",bind:{value:"^",binding:{toDOM:this.selectBinding}}},...e.map(this.dataCell)))}draggedColumn;dropColumn=(e)=>{let t=e.target.closest(".drag-over"),i=Array.from(t.parentElement.children).indexOf(t),s=this.visibleColumns[i],l=this.columns.indexOf(this.draggedColumn),o=this.columns.indexOf(s);this.columns.splice(l,1),this.columns.splice(o,0,this.draggedColumn),console.log({event:e,target:t,targetIndex:i,draggedIndex:l,droppedIndex:o}),this.queueRender(),e.preventDefault(),e.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:e}=this;if(e)this.rowData.visible.sort(e);this.textContent="",this.style.display="flex",this.style.flexDirection="column";let{visibleColumns:t}=this;if(this.style.setProperty("--tosi-table-row-height",`${this.rowHeight}px`),this.style.setProperty("--row-height",`${this.rowHeight}px`),this.setColumnWidths(),!this.noreorder)E1();let i=this.instanceId+"-column-header",s=t.map((l)=>{let o=this.headerCell(l);if(!this.noreorder&&o.children[0]){let n=o.children[0];n.setAttribute("draggable","true"),n.style.pointerEvents="all",n.dataset.drag=i,o.dataset.drop=i,n.addEventListener("dragstart",()=>{this.draggedColumn=l}),o.addEventListener("drop",this.dropColumn)}return o});if(this.append(Fe({class:"thead",role:"rowgroup",style:{touchAction:"none"}},Fe({class:"tr",role:"row"},...s))),this.pinnedTop>0)this.append(Fe({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(t)));if(this.append(Fe({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(t))),this.pinnedBottom>0)this.append(Fe({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(t)))}}var Sl=P1.elementCreator({tag:"xin-table",styleSpec:{":host":{"--tosi-table-row-height":"32px","--tosi-table-touch-size":"var(--tosi-touch-size, 44px)","--tosi-table-dragged-header-bg":"#0004","--tosi-table-dragged-header-color":"#fff","--tosi-table-drop-header-bg":"#fff4","--row-height":"var(--tosi-table-row-height)","--touch-size":"var(--tosi-table-touch-size)","--dragged-header-bg":"var(--tosi-table-dragged-header-bg)","--dragged-header-color":"var(--tosi-table-dragged-header-color)","--drop-header-bg":"var(--tosi-table-drop-header-bg)",overflow:"auto hidden"},":host .thead, :host .tbody":{width:c.tosiTableGridRowWidth},":host .tr":{display:"grid",gridTemplateColumns:c.tosiTableGridColumns,height:c.tosiTableRowHeight,lineHeight:c.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:c.tosiTableTouchSize,height:c.tosiTableTouchSize,width:c.tosiTableTouchSize},':host [draggable="true"]':{cursor:"ew-resize"},':host [draggable="true"]:active':{background:c.tosiTableDraggedHeaderBg,color:c.tosiTableDraggedHeaderColor},":host .drag-over":{background:c.tosiTableDropHeaderBg}}});var{dialog:Fl,button:j1,header:Ol,footer:Vl,xinSlot:T1,h3:S1,p:F1,label:Il,input:Dl,div:_l}=f;class O1 extends m{static async alert(e,t="Alert"){return new Promise((i)=>{let s=wt({removeOnClose:!0,closeOnBackgroundClick:!0,dialogWillClose(){i()}},S1({slot:"header"},t),F1(e));document.body.append(s),s.showModal()})}static async confirm(e,t="Confirm"){return new Promise((i)=>{let s=wt({removeOnClose:!0,dialogWillClose(l){i(l==="confirm")}},S1({slot:"header"},t),F1(e),j1({slot:"footer",onClick(){s.close()}},"Cancel"));document.body.append(s),s.showModal()})}static async prompt(e,t="Prompt",i=""){return new Promise((s)=>{let l=Dl({value:i}),o=wt({removeOnClose:!0,dialogWillClose(n){s(n==="confirm"?l.value:null)},initialFocus(){l.focus()}},S1({slot:"header"},t),F1(Il({style:{display:"flex",flexDirection:"column",alignItems:"stretch",gap:5}},_l(e),l)),j1({slot:"footer",onClick(){o.close()}},"Cancel"));document.body.append(o),o.showModal()})}removeOnClose=!1;closeOnBackgroundClick=!1;constructor(){super();this.initAttributes("removeOnClose","closeOnBackgroundClick"),Pe(this,"click",()=>{if(this.closeOnBackgroundClick)this.close()})}dialogWillClose=(e="cancel")=>{console.log("dialog will close with",e)};initialFocus(){this.parts.ok.focus()}#e=(e)=>{};showModal=()=>{return this.style.zIndex=String(ge()),new Promise((e)=>{this.#e=e,this.parts.dialog.showModal(),requestAnimationFrame(()=>{this.initialFocus()})})};close=(e="cancel")=>{if(this.dialogWillClose(e),this.#e(e),this.parts.dialog.close(),this.removeOnClose)this.remove()};ok=()=>{this.close("confirm")};content=()=>Fl({part:"dialog"},Ol(T1({name:"header"})),T1(),Vl(T1({name:"footer"}),j1({part:"ok",onClick:this.ok},"OK")))}var wt=O1.elementCreator({tag:"tosi-dialog",styleSpec:{":host > dialog::backdrop":{backdropFilter:"blur(8px)"},":host > dialog:not([open])":{display:"none"},":host > dialog[open]":{minWidth:300,border:0,borderRadius:10,overflow:"hidden",maxHeight:"calc(100% - 20px)",padding:0,display:"flex",flexDirection:"column",gap:5,_dialogShadow:h.menuShadow("0 5px 10px #0004"),_dialogBackground:h.background("#fafafa"),_dialogColor:h.textColor("#222"),boxShadow:c.dialogShadow,background:c.dialogBackground,color:c.dialogColor},":host > dialog > *":{padding:"0 20px"},":host > dialog > header":{display:"flex",justifyContent:"center",gap:10},":host > dialog > footer":{display:"flex",justifyContent:"flex-end",gap:10,paddingBottom:20}}});function I1(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var ke=I1();function Ss(e){ke=e}var tt={exec:()=>null};function w(e,t=""){let i=typeof e=="string"?e:e.source,s={replace:(l,o)=>{let n=typeof o=="string"?o:o.source;return n=n.replace(j.caret,"$1"),i=i.replace(l,n),s},getRegex:()=>new RegExp(i,t)};return s}var ql=(()=>{try{return!!new RegExp("(?<=1)(?<!1)")}catch{return!1}})(),j={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:(e)=>new RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:(e)=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:(e)=>new RegExp(`^ {0,${Math.min(3,e-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:(e)=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:(e)=>new RegExp(`^ {0,${Math.min(3,e-1)}}#`),htmlBeginRegex:(e)=>new RegExp(`^ {0,${Math.min(3,e-1)}}<(?:[a-z].*>|!--)`,"i")},Nl=/^(?:[ \t]*(?:\n|$))+/,Rl=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,Ul=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,it=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,$l=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,D1=/(?:[*+-]|\d{1,9}[.)])/,Fs=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,Os=w(Fs).replace(/bull/g,D1).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(),Wl=w(Fs).replace(/bull/g,D1).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(),_1=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,Gl=/^[^\n]+/,q1=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,Kl=w(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",q1).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),Ql=w(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,D1).getRegex(),At="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",N1=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,Jl=w("^ {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",N1).replace("tag",At).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Vs=w(_1).replace("hr",it).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",At).getRegex(),Zl=w(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",Vs).getRegex(),R1={blockquote:Zl,code:Rl,def:Kl,fences:Ul,heading:$l,hr:it,html:Jl,lheading:Os,list:Ql,newline:Nl,paragraph:Vs,table:tt,text:Gl},As=w("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",it).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",At).getRegex(),Xl={...R1,lheading:Wl,table:As,paragraph:w(_1).replace("hr",it).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",As).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",At).getRegex()},Yl={...R1,html:w(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",N1).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:tt,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:w(_1).replace("hr",it).replace("heading",` *#{1,6} *[^
12
+ ]`).replace("lheading",Os).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},eo=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,to=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,Is=/^( {2,}|\\)\n(?!\s*$)/,io=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,Et=/[\p{P}\p{S}]/u,U1=/[\s\p{P}\p{S}]/u,Ds=/[^\s\p{P}\p{S}]/u,so=w(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,U1).getRegex(),_s=/(?!~)[\p{P}\p{S}]/u,lo=/(?!~)[\s\p{P}\p{S}]/u,oo=/(?:[^\s\p{P}\p{S}]|~)/u,no=w(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",ql?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),qs=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,ao=w(qs,"u").replace(/punct/g,Et).getRegex(),ro=w(qs,"u").replace(/punct/g,_s).getRegex(),Ns="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",co=w(Ns,"gu").replace(/notPunctSpace/g,Ds).replace(/punctSpace/g,U1).replace(/punct/g,Et).getRegex(),po=w(Ns,"gu").replace(/notPunctSpace/g,oo).replace(/punctSpace/g,lo).replace(/punct/g,_s).getRegex(),ho=w("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,Ds).replace(/punctSpace/g,U1).replace(/punct/g,Et).getRegex(),xo=w(/\\(punct)/,"gu").replace(/punct/g,Et).getRegex(),yo=w(/^<(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(),uo=w(N1).replace("(?:-->|$)","-->").getRegex(),go=w("^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",uo).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),Bt=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/,fo=w(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",Bt).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Rs=w(/^!?\[(label)\]\[(ref)\]/).replace("label",Bt).replace("ref",q1).getRegex(),Us=w(/^!?\[(ref)\](?:\[\])?/).replace("ref",q1).getRegex(),mo=w("reflink|nolink(?!\\()","g").replace("reflink",Rs).replace("nolink",Us).getRegex(),Es=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,$1={_backpedal:tt,anyPunctuation:xo,autolink:yo,blockSkip:no,br:Is,code:to,del:tt,emStrongLDelim:ao,emStrongRDelimAst:co,emStrongRDelimUnd:ho,escape:eo,link:fo,nolink:Us,punctuation:so,reflink:Rs,reflinkSearch:mo,tag:go,text:io,url:tt},vo={...$1,link:w(/^!?\[(label)\]\((.*?)\)/).replace("label",Bt).getRegex(),reflink:w(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Bt).getRegex()},V1={...$1,emStrongRDelimAst:po,emStrongLDelim:ro,url:w(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",Es).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:w(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",Es).getRegex()},ko={...V1,br:w(Is).replace("{2,}","*").getRegex(),text:w(V1.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},Mt={normal:R1,gfm:Xl,pedantic:Yl},Xe={normal:$1,gfm:V1,breaks:ko,pedantic:vo},Co={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Hs=(e)=>Co[e];function W(e,t){if(t){if(j.escapeTest.test(e))return e.replace(j.escapeReplace,Hs)}else if(j.escapeTestNoEncode.test(e))return e.replace(j.escapeReplaceNoEncode,Hs);return e}function Ps(e){try{e=encodeURI(e).replace(j.percentDecode,"%")}catch{return null}return e}function js(e,t){let i=e.replace(j.findPipe,(o,n,a)=>{let r=!1,d=n;for(;--d>=0&&a[d]==="\\";)r=!r;return r?"|":" |"}),s=i.split(j.splitPipe),l=0;if(s[0].trim()||s.shift(),s.length>0&&!s.at(-1)?.trim()&&s.pop(),t)if(s.length>t)s.splice(t);else for(;s.length<t;)s.push("");for(;l<s.length;l++)s[l]=s[l].trim().replace(j.slashPipe,"|");return s}function Ye(e,t,i){let s=e.length;if(s===0)return"";let l=0;for(;l<s;){let o=e.charAt(s-l-1);if(o===t&&!i)l++;else if(o!==t&&i)l++;else break}return e.slice(0,s-l)}function bo(e,t){if(e.indexOf(t[1])===-1)return-1;let i=0;for(let s=0;s<e.length;s++)if(e[s]==="\\")s++;else if(e[s]===t[0])i++;else if(e[s]===t[1]&&(i--,i<0))return s;return i>0?-2:-1}function Ts(e,t,i,s,l){let o=t.href,n=t.title||null,a=e[1].replace(l.other.outputLinkReplace,"$1");s.state.inLink=!0;let r={type:e[0].charAt(0)==="!"?"image":"link",raw:i,href:o,title:n,text:a,tokens:s.inlineTokens(a)};return s.state.inLink=!1,r}function wo(e,t,i){let s=e.match(i.other.indentCodeCompensation);if(s===null)return t;let l=s[1];return t.split(`
13
+ `).map((o)=>{let n=o.match(i.other.beginningSpace);if(n===null)return o;let[a]=n;return a.length>=l.length?o.slice(l.length):o}).join(`
14
+ `)}var zt=class{options;rules;lexer;constructor(e){this.options=e||ke}space(e){let t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){let t=this.rules.block.code.exec(e);if(t){let i=t[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?i:Ye(i,`
15
+ `)}}}fences(e){let t=this.rules.block.fences.exec(e);if(t){let i=t[0],s=wo(i,t[3]||"",this.rules);return{type:"code",raw:i,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):t[2],text:s}}}heading(e){let t=this.rules.block.heading.exec(e);if(t){let i=t[2].trim();if(this.rules.other.endingHash.test(i)){let s=Ye(i,"#");(this.options.pedantic||!s||this.rules.other.endingSpaceChar.test(s))&&(i=s.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:i,tokens:this.lexer.inline(i)}}}hr(e){let t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:Ye(t[0],`
16
+ `)}}blockquote(e){let t=this.rules.block.blockquote.exec(e);if(t){let i=Ye(t[0],`
17
17
  `).split(`
18
- `),s="",o="",l=[];for(;i.length>0;){let n=!1,a=[],r;for(r=0;r<i.length;r++)if(this.rules.other.blockquoteStart.test(i[r]))a.push(i[r]),n=!0;else if(!n)a.push(i[r]);else break;i=i.slice(r);let p=a.join(`
19
- `),d=p.replace(this.rules.other.blockquoteSetextReplace,`
18
+ `),s="",l="",o=[];for(;i.length>0;){let n=!1,a=[],r;for(r=0;r<i.length;r++)if(this.rules.other.blockquoteStart.test(i[r]))a.push(i[r]),n=!0;else if(!n)a.push(i[r]);else break;i=i.slice(r);let d=a.join(`
19
+ `),p=d.replace(this.rules.other.blockquoteSetextReplace,`
20
20
  $1`).replace(this.rules.other.blockquoteSetextReplace2,"");s=s?`${s}
21
- ${p}`:p,o=o?`${o}
22
- ${d}`:d;let x=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(d,l,!0),this.lexer.state.top=x,i.length===0)break;let g=l.at(-1);if(g?.type==="code")break;if(g?.type==="blockquote"){let v=g,y=v.raw+`
21
+ ${d}`:d,l=l?`${l}
22
+ ${p}`:p;let x=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(p,o,!0),this.lexer.state.top=x,i.length===0)break;let g=o.at(-1);if(g?.type==="code")break;if(g?.type==="blockquote"){let k=g,y=k.raw+`
23
23
  `+i.join(`
24
- `),C=this.blockquote(y);l[l.length-1]=C,s=s.substring(0,s.length-v.raw.length)+C.raw,o=o.substring(0,o.length-v.text.length)+C.text;break}else if(g?.type==="list"){let v=g,y=v.raw+`
24
+ `),v=this.blockquote(y);o[o.length-1]=v,s=s.substring(0,s.length-k.raw.length)+v.raw,l=l.substring(0,l.length-k.text.length)+v.text;break}else if(g?.type==="list"){let k=g,y=k.raw+`
25
25
  `+i.join(`
26
- `),C=this.list(y);l[l.length-1]=C,s=s.substring(0,s.length-g.raw.length)+C.raw,o=o.substring(0,o.length-v.raw.length)+C.raw,i=y.substring(l.at(-1).raw.length).split(`
27
- `);continue}}return{type:"blockquote",raw:s,tokens:l,text:o}}}list(e){let t=this.rules.block.list.exec(e);if(t){let i=t[1].trim(),s=i.length>1,o={type:"list",raw:"",ordered:s,start:s?+i.slice(0,-1):"",loose:!1,items:[]};i=s?`\\d{1,9}\\${i.slice(-1)}`:`\\${i}`,this.options.pedantic&&(i=s?i:"[*+-]");let l=this.rules.other.listItemRegex(i),n=!1;for(;e;){let r=!1,p="",d="";if(!(t=l.exec(e))||this.rules.block.hr.test(e))break;p=t[0],e=e.substring(p.length);let x=t[2].split(`
28
- `,1)[0].replace(this.rules.other.listReplaceTabs,(w)=>" ".repeat(3*w.length)),g=e.split(`
29
- `,1)[0],v=!x.trim(),y=0;if(this.options.pedantic?(y=2,d=x.trimStart()):v?y=t[1].length+1:(y=t[2].search(this.rules.other.nonSpaceChar),y=y>4?1:y,d=x.slice(y),y+=t[1].length),v&&this.rules.other.blankLine.test(g)&&(p+=g+`
30
- `,e=e.substring(g.length+1),r=!0),!r){let w=this.rules.other.nextBulletRegex(y),B=this.rules.other.hrRegex(y),z=this.rules.other.fencesBeginRegex(y),W=this.rules.other.headingBeginRegex(y),Tt=this.rules.other.htmlBeginRegex(y);for(;e;){let St=e.split(`
31
- `,1)[0],Fe;if(g=St,this.options.pedantic?(g=g.replace(this.rules.other.listReplaceNesting," "),Fe=g):Fe=g.replace(this.rules.other.tabCharGlobal," "),z.test(g)||W.test(g)||Tt.test(g)||w.test(g)||B.test(g))break;if(Fe.search(this.rules.other.nonSpaceChar)>=y||!g.trim())d+=`
32
- `+Fe.slice(y);else{if(v||x.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||z.test(x)||W.test(x)||B.test(x))break;d+=`
33
- `+g}!v&&!g.trim()&&(v=!0),p+=St+`
34
- `,e=e.substring(St.length+1),x=Fe.slice(y)}}o.loose||(n?o.loose=!0:this.rules.other.doubleBlankLine.test(p)&&(n=!0));let C=null,A;this.options.gfm&&(C=this.rules.other.listIsTask.exec(d),C&&(A=C[0]!=="[ ] ",d=d.replace(this.rules.other.listReplaceTask,""))),o.items.push({type:"list_item",raw:p,task:!!C,checked:A,loose:!1,text:d,tokens:[]}),o.raw+=p}let a=o.items.at(-1);if(a)a.raw=a.raw.trimEnd(),a.text=a.text.trimEnd();else return;o.raw=o.raw.trimEnd();for(let r=0;r<o.items.length;r++)if(this.lexer.state.top=!1,o.items[r].tokens=this.lexer.blockTokens(o.items[r].text,[]),!o.loose){let p=o.items[r].tokens.filter((x)=>x.type==="space"),d=p.length>0&&p.some((x)=>this.rules.other.anyLine.test(x.raw));o.loose=d}if(o.loose)for(let r=0;r<o.items.length;r++)o.items[r].loose=!0;return o}}html(e){let t=this.rules.block.html.exec(e);if(t)return{type:"html",block:!0,raw:t[0],pre:t[1]==="pre"||t[1]==="script"||t[1]==="style",text:t[0]}}def(e){let t=this.rules.block.def.exec(e);if(t){let i=t[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),s=t[2]?t[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",o=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):t[3];return{type:"def",tag:i,raw:t[0],href:s,title:o}}}table(e){let t=this.rules.block.table.exec(e);if(!t||!this.rules.other.tableDelimiter.test(t[2]))return;let i=vs(t[1]),s=t[2].replace(this.rules.other.tableAlignChars,"").split("|"),o=t[3]?.trim()?t[3].replace(this.rules.other.tableRowBlankLine,"").split(`
35
- `):[],l={type:"table",raw:t[0],header:[],align:[],rows:[]};if(i.length===s.length){for(let n of s)this.rules.other.tableAlignRight.test(n)?l.align.push("right"):this.rules.other.tableAlignCenter.test(n)?l.align.push("center"):this.rules.other.tableAlignLeft.test(n)?l.align.push("left"):l.align.push(null);for(let n=0;n<i.length;n++)l.header.push({text:i[n],tokens:this.lexer.inline(i[n]),header:!0,align:l.align[n]});for(let n of o)l.rows.push(vs(n,l.header.length).map((a,r)=>({text:a,tokens:this.lexer.inline(a),header:!1,align:l.align[r]})));return l}}lheading(e){let t=this.rules.block.lheading.exec(e);if(t)return{type:"heading",raw:t[0],depth:t[2].charAt(0)==="="?1:2,text:t[1],tokens:this.lexer.inline(t[1])}}paragraph(e){let t=this.rules.block.paragraph.exec(e);if(t){let i=t[1].charAt(t[1].length-1)===`
36
- `?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:i,tokens:this.lexer.inline(i)}}}text(e){let t=this.rules.block.text.exec(e);if(t)return{type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){let t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:t[1]}}tag(e){let t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&this.rules.other.startATag.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(e){let t=this.rules.inline.link.exec(e);if(t){let i=t[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(i)){if(!this.rules.other.endAngleBracket.test(i))return;let l=Qe(i.slice(0,-1),"\\");if((i.length-l.length)%2===0)return}else{let l=dl(t[2],"()");if(l===-2)return;if(l>-1){let n=(t[0].indexOf("!")===0?5:4)+t[1].length+l;t[2]=t[2].substring(0,l),t[0]=t[0].substring(0,n).trim(),t[3]=""}}let s=t[2],o="";if(this.options.pedantic){let l=this.rules.other.pedanticHrefTitle.exec(s);l&&(s=l[1],o=l[3])}else o=t[3]?t[3].slice(1,-1):"";return s=s.trim(),this.rules.other.startAngleBracket.test(s)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(i)?s=s.slice(1):s=s.slice(1,-1)),ks(t,{href:s&&s.replace(this.rules.inline.anyPunctuation,"$1"),title:o&&o.replace(this.rules.inline.anyPunctuation,"$1")},t[0],this.lexer,this.rules)}}reflink(e,t){let i;if((i=this.rules.inline.reflink.exec(e))||(i=this.rules.inline.nolink.exec(e))){let s=(i[2]||i[1]).replace(this.rules.other.multipleSpaceGlobal," "),o=t[s.toLowerCase()];if(!o){let l=i[0].charAt(0);return{type:"text",raw:l,text:l}}return ks(i,o,i[0],this.lexer,this.rules)}}emStrong(e,t,i=""){let s=this.rules.inline.emStrongLDelim.exec(e);if(!s||s[3]&&i.match(this.rules.other.unicodeAlphaNumeric))return;if(!(s[1]||s[2])||!i||this.rules.inline.punctuation.exec(i)){let o=[...s[0]].length-1,l,n,a=o,r=0,p=s[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(p.lastIndex=0,t=t.slice(-1*e.length+o);(s=p.exec(t))!=null;){if(l=s[1]||s[2]||s[3]||s[4]||s[5]||s[6],!l)continue;if(n=[...l].length,s[3]||s[4]){a+=n;continue}else if((s[5]||s[6])&&o%3&&!((o+n)%3)){r+=n;continue}if(a-=n,a>0)continue;n=Math.min(n,n+a+r);let d=[...s[0]][0].length,x=e.slice(0,o+s.index+d+n);if(Math.min(o,n)%2){let v=x.slice(1,-1);return{type:"em",raw:x,text:v,tokens:this.lexer.inlineTokens(v)}}let g=x.slice(2,-2);return{type:"strong",raw:x,text:g,tokens:this.lexer.inlineTokens(g)}}}}codespan(e){let t=this.rules.inline.code.exec(e);if(t){let i=t[2].replace(this.rules.other.newLineCharGlobal," "),s=this.rules.other.nonSpaceChar.test(i),o=this.rules.other.startingSpaceChar.test(i)&&this.rules.other.endingSpaceChar.test(i);return s&&o&&(i=i.substring(1,i.length-1)),{type:"codespan",raw:t[0],text:i}}}br(e){let t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e){let t=this.rules.inline.del.exec(e);if(t)return{type:"del",raw:t[0],text:t[2],tokens:this.lexer.inlineTokens(t[2])}}autolink(e){let t=this.rules.inline.autolink.exec(e);if(t){let i,s;return t[2]==="@"?(i=t[1],s="mailto:"+i):(i=t[1],s=i),{type:"link",raw:t[0],text:i,href:s,tokens:[{type:"text",raw:i,text:i}]}}}url(e){let t;if(t=this.rules.inline.url.exec(e)){let i,s;if(t[2]==="@")i=t[0],s="mailto:"+i;else{let o;do o=t[0],t[0]=this.rules.inline._backpedal.exec(t[0])?.[0]??"";while(o!==t[0]);i=t[0],t[1]==="www."?s="http://"+t[0]:s=t[0]}return{type:"link",raw:t[0],text:i,href:s,tokens:[{type:"text",raw:i,text:i}]}}}inlineText(e){let t=this.rules.inline.text.exec(e);if(t){let i=this.lexer.state.inRawBlock;return{type:"text",raw:t[0],text:t[0],escaped:i}}}},D=class e{tokens;options;state;tokenizer;inlineQueue;constructor(t){this.tokens=[],this.tokens.links=Object.create(null),this.options=t||me,this.options.tokenizer=this.options.tokenizer||new bt,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 i={other:P,block:Ct.normal,inline:Je.normal};this.options.pedantic?(i.block=Ct.pedantic,i.inline=Je.pedantic):this.options.gfm&&(i.block=Ct.gfm,this.options.breaks?i.inline=Je.breaks:i.inline=Je.gfm),this.tokenizer.rules=i}static get rules(){return{block:Ct,inline:Je}}static lex(t,i){return new e(i).lex(t)}static lexInline(t,i){return new e(i).inlineTokens(t)}lex(t){t=t.replace(P.carriageReturn,`
37
- `),this.blockTokens(t,this.tokens);for(let i=0;i<this.inlineQueue.length;i++){let s=this.inlineQueue[i];this.inlineTokens(s.src,s.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(t,i=[],s=!1){for(this.options.pedantic&&(t=t.replace(P.tabCharGlobal," ").replace(P.spaceLine,""));t;){let o;if(this.options.extensions?.block?.some((n)=>(o=n.call({lexer:this},t,i))?(t=t.substring(o.raw.length),i.push(o),!0):!1))continue;if(o=this.tokenizer.space(t)){t=t.substring(o.raw.length);let n=i.at(-1);o.raw.length===1&&n!==void 0?n.raw+=`
38
- `:i.push(o);continue}if(o=this.tokenizer.code(t)){t=t.substring(o.raw.length);let n=i.at(-1);n?.type==="paragraph"||n?.type==="text"?(n.raw+=(n.raw.endsWith(`
26
+ `),v=this.list(y);o[o.length-1]=v,s=s.substring(0,s.length-g.raw.length)+v.raw,l=l.substring(0,l.length-k.raw.length)+v.raw,i=y.substring(o.at(-1).raw.length).split(`
27
+ `);continue}}return{type:"blockquote",raw:s,tokens:o,text:l}}}list(e){let t=this.rules.block.list.exec(e);if(t){let i=t[1].trim(),s=i.length>1,l={type:"list",raw:"",ordered:s,start:s?+i.slice(0,-1):"",loose:!1,items:[]};i=s?`\\d{1,9}\\${i.slice(-1)}`:`\\${i}`,this.options.pedantic&&(i=s?i:"[*+-]");let o=this.rules.other.listItemRegex(i),n=!1;for(;e;){let r=!1,d="",p="";if(!(t=o.exec(e))||this.rules.block.hr.test(e))break;d=t[0],e=e.substring(d.length);let x=t[2].split(`
28
+ `,1)[0].replace(this.rules.other.listReplaceTabs,(b)=>" ".repeat(3*b.length)),g=e.split(`
29
+ `,1)[0],k=!x.trim(),y=0;if(this.options.pedantic?(y=2,p=x.trimStart()):k?y=t[1].length+1:(y=t[2].search(this.rules.other.nonSpaceChar),y=y>4?1:y,p=x.slice(y),y+=t[1].length),k&&this.rules.other.blankLine.test(g)&&(d+=g+`
30
+ `,e=e.substring(g.length+1),r=!0),!r){let b=this.rules.other.nextBulletRegex(y),B=this.rules.other.hrRegex(y),z=this.rules.other.fencesBeginRegex(y),G=this.rules.other.headingBeginRegex(y),Ot=this.rules.other.htmlBeginRegex(y);for(;e;){let Vt=e.split(`
31
+ `,1)[0],De;if(g=Vt,this.options.pedantic?(g=g.replace(this.rules.other.listReplaceNesting," "),De=g):De=g.replace(this.rules.other.tabCharGlobal," "),z.test(g)||G.test(g)||Ot.test(g)||b.test(g)||B.test(g))break;if(De.search(this.rules.other.nonSpaceChar)>=y||!g.trim())p+=`
32
+ `+De.slice(y);else{if(k||x.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||z.test(x)||G.test(x)||B.test(x))break;p+=`
33
+ `+g}!k&&!g.trim()&&(k=!0),d+=Vt+`
34
+ `,e=e.substring(Vt.length+1),x=De.slice(y)}}l.loose||(n?l.loose=!0:this.rules.other.doubleBlankLine.test(d)&&(n=!0));let v=null,E;this.options.gfm&&(v=this.rules.other.listIsTask.exec(p),v&&(E=v[0]!=="[ ] ",p=p.replace(this.rules.other.listReplaceTask,""))),l.items.push({type:"list_item",raw:d,task:!!v,checked:E,loose:!1,text:p,tokens:[]}),l.raw+=d}let a=l.items.at(-1);if(a)a.raw=a.raw.trimEnd(),a.text=a.text.trimEnd();else return;l.raw=l.raw.trimEnd();for(let r=0;r<l.items.length;r++)if(this.lexer.state.top=!1,l.items[r].tokens=this.lexer.blockTokens(l.items[r].text,[]),!l.loose){let d=l.items[r].tokens.filter((x)=>x.type==="space"),p=d.length>0&&d.some((x)=>this.rules.other.anyLine.test(x.raw));l.loose=p}if(l.loose)for(let r=0;r<l.items.length;r++)l.items[r].loose=!0;return l}}html(e){let t=this.rules.block.html.exec(e);if(t)return{type:"html",block:!0,raw:t[0],pre:t[1]==="pre"||t[1]==="script"||t[1]==="style",text:t[0]}}def(e){let t=this.rules.block.def.exec(e);if(t){let i=t[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),s=t[2]?t[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",l=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):t[3];return{type:"def",tag:i,raw:t[0],href:s,title:l}}}table(e){let t=this.rules.block.table.exec(e);if(!t||!this.rules.other.tableDelimiter.test(t[2]))return;let i=js(t[1]),s=t[2].replace(this.rules.other.tableAlignChars,"").split("|"),l=t[3]?.trim()?t[3].replace(this.rules.other.tableRowBlankLine,"").split(`
35
+ `):[],o={type:"table",raw:t[0],header:[],align:[],rows:[]};if(i.length===s.length){for(let n of s)this.rules.other.tableAlignRight.test(n)?o.align.push("right"):this.rules.other.tableAlignCenter.test(n)?o.align.push("center"):this.rules.other.tableAlignLeft.test(n)?o.align.push("left"):o.align.push(null);for(let n=0;n<i.length;n++)o.header.push({text:i[n],tokens:this.lexer.inline(i[n]),header:!0,align:o.align[n]});for(let n of l)o.rows.push(js(n,o.header.length).map((a,r)=>({text:a,tokens:this.lexer.inline(a),header:!1,align:o.align[r]})));return o}}lheading(e){let t=this.rules.block.lheading.exec(e);if(t)return{type:"heading",raw:t[0],depth:t[2].charAt(0)==="="?1:2,text:t[1],tokens:this.lexer.inline(t[1])}}paragraph(e){let t=this.rules.block.paragraph.exec(e);if(t){let i=t[1].charAt(t[1].length-1)===`
36
+ `?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:i,tokens:this.lexer.inline(i)}}}text(e){let t=this.rules.block.text.exec(e);if(t)return{type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){let t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:t[1]}}tag(e){let t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&this.rules.other.startATag.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(e){let t=this.rules.inline.link.exec(e);if(t){let i=t[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(i)){if(!this.rules.other.endAngleBracket.test(i))return;let o=Ye(i.slice(0,-1),"\\");if((i.length-o.length)%2===0)return}else{let o=bo(t[2],"()");if(o===-2)return;if(o>-1){let n=(t[0].indexOf("!")===0?5:4)+t[1].length+o;t[2]=t[2].substring(0,o),t[0]=t[0].substring(0,n).trim(),t[3]=""}}let s=t[2],l="";if(this.options.pedantic){let o=this.rules.other.pedanticHrefTitle.exec(s);o&&(s=o[1],l=o[3])}else l=t[3]?t[3].slice(1,-1):"";return s=s.trim(),this.rules.other.startAngleBracket.test(s)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(i)?s=s.slice(1):s=s.slice(1,-1)),Ts(t,{href:s&&s.replace(this.rules.inline.anyPunctuation,"$1"),title:l&&l.replace(this.rules.inline.anyPunctuation,"$1")},t[0],this.lexer,this.rules)}}reflink(e,t){let i;if((i=this.rules.inline.reflink.exec(e))||(i=this.rules.inline.nolink.exec(e))){let s=(i[2]||i[1]).replace(this.rules.other.multipleSpaceGlobal," "),l=t[s.toLowerCase()];if(!l){let o=i[0].charAt(0);return{type:"text",raw:o,text:o}}return Ts(i,l,i[0],this.lexer,this.rules)}}emStrong(e,t,i=""){let s=this.rules.inline.emStrongLDelim.exec(e);if(!s||s[3]&&i.match(this.rules.other.unicodeAlphaNumeric))return;if(!(s[1]||s[2])||!i||this.rules.inline.punctuation.exec(i)){let l=[...s[0]].length-1,o,n,a=l,r=0,d=s[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(d.lastIndex=0,t=t.slice(-1*e.length+l);(s=d.exec(t))!=null;){if(o=s[1]||s[2]||s[3]||s[4]||s[5]||s[6],!o)continue;if(n=[...o].length,s[3]||s[4]){a+=n;continue}else if((s[5]||s[6])&&l%3&&!((l+n)%3)){r+=n;continue}if(a-=n,a>0)continue;n=Math.min(n,n+a+r);let p=[...s[0]][0].length,x=e.slice(0,l+s.index+p+n);if(Math.min(l,n)%2){let k=x.slice(1,-1);return{type:"em",raw:x,text:k,tokens:this.lexer.inlineTokens(k)}}let g=x.slice(2,-2);return{type:"strong",raw:x,text:g,tokens:this.lexer.inlineTokens(g)}}}}codespan(e){let t=this.rules.inline.code.exec(e);if(t){let i=t[2].replace(this.rules.other.newLineCharGlobal," "),s=this.rules.other.nonSpaceChar.test(i),l=this.rules.other.startingSpaceChar.test(i)&&this.rules.other.endingSpaceChar.test(i);return s&&l&&(i=i.substring(1,i.length-1)),{type:"codespan",raw:t[0],text:i}}}br(e){let t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e){let t=this.rules.inline.del.exec(e);if(t)return{type:"del",raw:t[0],text:t[2],tokens:this.lexer.inlineTokens(t[2])}}autolink(e){let t=this.rules.inline.autolink.exec(e);if(t){let i,s;return t[2]==="@"?(i=t[1],s="mailto:"+i):(i=t[1],s=i),{type:"link",raw:t[0],text:i,href:s,tokens:[{type:"text",raw:i,text:i}]}}}url(e){let t;if(t=this.rules.inline.url.exec(e)){let i,s;if(t[2]==="@")i=t[0],s="mailto:"+i;else{let l;do l=t[0],t[0]=this.rules.inline._backpedal.exec(t[0])?.[0]??"";while(l!==t[0]);i=t[0],t[1]==="www."?s="http://"+t[0]:s=t[0]}return{type:"link",raw:t[0],text:i,href:s,tokens:[{type:"text",raw:i,text:i}]}}}inlineText(e){let t=this.rules.inline.text.exec(e);if(t){let i=this.lexer.state.inRawBlock;return{type:"text",raw:t[0],text:t[0],escaped:i}}}},D=class e{tokens;options;state;tokenizer;inlineQueue;constructor(t){this.tokens=[],this.tokens.links=Object.create(null),this.options=t||ke,this.options.tokenizer=this.options.tokenizer||new zt,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 i={other:j,block:Mt.normal,inline:Xe.normal};this.options.pedantic?(i.block=Mt.pedantic,i.inline=Xe.pedantic):this.options.gfm&&(i.block=Mt.gfm,this.options.breaks?i.inline=Xe.breaks:i.inline=Xe.gfm),this.tokenizer.rules=i}static get rules(){return{block:Mt,inline:Xe}}static lex(t,i){return new e(i).lex(t)}static lexInline(t,i){return new e(i).inlineTokens(t)}lex(t){t=t.replace(j.carriageReturn,`
37
+ `),this.blockTokens(t,this.tokens);for(let i=0;i<this.inlineQueue.length;i++){let s=this.inlineQueue[i];this.inlineTokens(s.src,s.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(t,i=[],s=!1){for(this.options.pedantic&&(t=t.replace(j.tabCharGlobal," ").replace(j.spaceLine,""));t;){let l;if(this.options.extensions?.block?.some((n)=>(l=n.call({lexer:this},t,i))?(t=t.substring(l.raw.length),i.push(l),!0):!1))continue;if(l=this.tokenizer.space(t)){t=t.substring(l.raw.length);let n=i.at(-1);l.raw.length===1&&n!==void 0?n.raw+=`
38
+ `:i.push(l);continue}if(l=this.tokenizer.code(t)){t=t.substring(l.raw.length);let n=i.at(-1);n?.type==="paragraph"||n?.type==="text"?(n.raw+=(n.raw.endsWith(`
39
39
  `)?"":`
40
- `)+o.raw,n.text+=`
41
- `+o.text,this.inlineQueue.at(-1).src=n.text):i.push(o);continue}if(o=this.tokenizer.fences(t)){t=t.substring(o.raw.length),i.push(o);continue}if(o=this.tokenizer.heading(t)){t=t.substring(o.raw.length),i.push(o);continue}if(o=this.tokenizer.hr(t)){t=t.substring(o.raw.length),i.push(o);continue}if(o=this.tokenizer.blockquote(t)){t=t.substring(o.raw.length),i.push(o);continue}if(o=this.tokenizer.list(t)){t=t.substring(o.raw.length),i.push(o);continue}if(o=this.tokenizer.html(t)){t=t.substring(o.raw.length),i.push(o);continue}if(o=this.tokenizer.def(t)){t=t.substring(o.raw.length);let n=i.at(-1);n?.type==="paragraph"||n?.type==="text"?(n.raw+=(n.raw.endsWith(`
40
+ `)+l.raw,n.text+=`
41
+ `+l.text,this.inlineQueue.at(-1).src=n.text):i.push(l);continue}if(l=this.tokenizer.fences(t)){t=t.substring(l.raw.length),i.push(l);continue}if(l=this.tokenizer.heading(t)){t=t.substring(l.raw.length),i.push(l);continue}if(l=this.tokenizer.hr(t)){t=t.substring(l.raw.length),i.push(l);continue}if(l=this.tokenizer.blockquote(t)){t=t.substring(l.raw.length),i.push(l);continue}if(l=this.tokenizer.list(t)){t=t.substring(l.raw.length),i.push(l);continue}if(l=this.tokenizer.html(t)){t=t.substring(l.raw.length),i.push(l);continue}if(l=this.tokenizer.def(t)){t=t.substring(l.raw.length);let n=i.at(-1);n?.type==="paragraph"||n?.type==="text"?(n.raw+=(n.raw.endsWith(`
42
42
  `)?"":`
43
- `)+o.raw,n.text+=`
44
- `+o.raw,this.inlineQueue.at(-1).src=n.text):this.tokens.links[o.tag]||(this.tokens.links[o.tag]={href:o.href,title:o.title},i.push(o));continue}if(o=this.tokenizer.table(t)){t=t.substring(o.raw.length),i.push(o);continue}if(o=this.tokenizer.lheading(t)){t=t.substring(o.raw.length),i.push(o);continue}let l=t;if(this.options.extensions?.startBlock){let n=1/0,a=t.slice(1),r;this.options.extensions.startBlock.forEach((p)=>{r=p.call({lexer:this},a),typeof r=="number"&&r>=0&&(n=Math.min(n,r))}),n<1/0&&n>=0&&(l=t.substring(0,n+1))}if(this.state.top&&(o=this.tokenizer.paragraph(l))){let n=i.at(-1);s&&n?.type==="paragraph"?(n.raw+=(n.raw.endsWith(`
43
+ `)+l.raw,n.text+=`
44
+ `+l.raw,this.inlineQueue.at(-1).src=n.text):this.tokens.links[l.tag]||(this.tokens.links[l.tag]={href:l.href,title:l.title},i.push(l));continue}if(l=this.tokenizer.table(t)){t=t.substring(l.raw.length),i.push(l);continue}if(l=this.tokenizer.lheading(t)){t=t.substring(l.raw.length),i.push(l);continue}let o=t;if(this.options.extensions?.startBlock){let n=1/0,a=t.slice(1),r;this.options.extensions.startBlock.forEach((d)=>{r=d.call({lexer:this},a),typeof r=="number"&&r>=0&&(n=Math.min(n,r))}),n<1/0&&n>=0&&(o=t.substring(0,n+1))}if(this.state.top&&(l=this.tokenizer.paragraph(o))){let n=i.at(-1);s&&n?.type==="paragraph"?(n.raw+=(n.raw.endsWith(`
45
45
  `)?"":`
46
- `)+o.raw,n.text+=`
47
- `+o.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=n.text):i.push(o),s=l.length!==t.length,t=t.substring(o.raw.length);continue}if(o=this.tokenizer.text(t)){t=t.substring(o.raw.length);let n=i.at(-1);n?.type==="text"?(n.raw+=(n.raw.endsWith(`
46
+ `)+l.raw,n.text+=`
47
+ `+l.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=n.text):i.push(l),s=o.length!==t.length,t=t.substring(l.raw.length);continue}if(l=this.tokenizer.text(t)){t=t.substring(l.raw.length);let n=i.at(-1);n?.type==="text"?(n.raw+=(n.raw.endsWith(`
48
48
  `)?"":`
49
- `)+o.raw,n.text+=`
50
- `+o.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=n.text):i.push(o);continue}if(t){let n="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(n);break}else throw Error(n)}}return this.state.top=!0,i}inline(t,i=[]){return this.inlineQueue.push({src:t,tokens:i}),i}inlineTokens(t,i=[]){let s=t,o=null;if(this.tokens.links){let r=Object.keys(this.tokens.links);if(r.length>0)for(;(o=this.tokenizer.rules.inline.reflinkSearch.exec(s))!=null;)r.includes(o[0].slice(o[0].lastIndexOf("[")+1,-1))&&(s=s.slice(0,o.index)+"["+"a".repeat(o[0].length-2)+"]"+s.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(o=this.tokenizer.rules.inline.anyPunctuation.exec(s))!=null;)s=s.slice(0,o.index)+"++"+s.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);let l;for(;(o=this.tokenizer.rules.inline.blockSkip.exec(s))!=null;)l=o[2]?o[2].length:0,s=s.slice(0,o.index+l)+"["+"a".repeat(o[0].length-l-2)+"]"+s.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);s=this.options.hooks?.emStrongMask?.call({lexer:this},s)??s;let n=!1,a="";for(;t;){n||(a=""),n=!1;let r;if(this.options.extensions?.inline?.some((d)=>(r=d.call({lexer:this},t,i))?(t=t.substring(r.raw.length),i.push(r),!0):!1))continue;if(r=this.tokenizer.escape(t)){t=t.substring(r.raw.length),i.push(r);continue}if(r=this.tokenizer.tag(t)){t=t.substring(r.raw.length),i.push(r);continue}if(r=this.tokenizer.link(t)){t=t.substring(r.raw.length),i.push(r);continue}if(r=this.tokenizer.reflink(t,this.tokens.links)){t=t.substring(r.raw.length);let d=i.at(-1);r.type==="text"&&d?.type==="text"?(d.raw+=r.raw,d.text+=r.text):i.push(r);continue}if(r=this.tokenizer.emStrong(t,s,a)){t=t.substring(r.raw.length),i.push(r);continue}if(r=this.tokenizer.codespan(t)){t=t.substring(r.raw.length),i.push(r);continue}if(r=this.tokenizer.br(t)){t=t.substring(r.raw.length),i.push(r);continue}if(r=this.tokenizer.del(t)){t=t.substring(r.raw.length),i.push(r);continue}if(r=this.tokenizer.autolink(t)){t=t.substring(r.raw.length),i.push(r);continue}if(!this.state.inLink&&(r=this.tokenizer.url(t))){t=t.substring(r.raw.length),i.push(r);continue}let p=t;if(this.options.extensions?.startInline){let d=1/0,x=t.slice(1),g;this.options.extensions.startInline.forEach((v)=>{g=v.call({lexer:this},x),typeof g=="number"&&g>=0&&(d=Math.min(d,g))}),d<1/0&&d>=0&&(p=t.substring(0,d+1))}if(r=this.tokenizer.inlineText(p)){t=t.substring(r.raw.length),r.raw.slice(-1)!=="_"&&(a=r.raw.slice(-1)),n=!0;let d=i.at(-1);d?.type==="text"?(d.raw+=r.raw,d.text+=r.text):i.push(r);continue}if(t){let d="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(d);break}else throw Error(d)}}return i}},Mt=class{options;parser;constructor(e){this.options=e||me}space(e){return""}code({text:e,lang:t,escaped:i}){let s=(t||"").match(P.notSpaceStart)?.[0],o=e.replace(P.endingNewline,"")+`
51
- `;return s?'<pre><code class="language-'+U(s)+'">'+(i?o:U(o,!0))+`</code></pre>
52
- `:"<pre><code>"+(i?o:U(o,!0))+`</code></pre>
49
+ `)+l.raw,n.text+=`
50
+ `+l.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=n.text):i.push(l);continue}if(t){let n="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(n);break}else throw Error(n)}}return this.state.top=!0,i}inline(t,i=[]){return this.inlineQueue.push({src:t,tokens:i}),i}inlineTokens(t,i=[]){let s=t,l=null;if(this.tokens.links){let r=Object.keys(this.tokens.links);if(r.length>0)for(;(l=this.tokenizer.rules.inline.reflinkSearch.exec(s))!=null;)r.includes(l[0].slice(l[0].lastIndexOf("[")+1,-1))&&(s=s.slice(0,l.index)+"["+"a".repeat(l[0].length-2)+"]"+s.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(l=this.tokenizer.rules.inline.anyPunctuation.exec(s))!=null;)s=s.slice(0,l.index)+"++"+s.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);let o;for(;(l=this.tokenizer.rules.inline.blockSkip.exec(s))!=null;)o=l[2]?l[2].length:0,s=s.slice(0,l.index+o)+"["+"a".repeat(l[0].length-o-2)+"]"+s.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);s=this.options.hooks?.emStrongMask?.call({lexer:this},s)??s;let n=!1,a="";for(;t;){n||(a=""),n=!1;let r;if(this.options.extensions?.inline?.some((p)=>(r=p.call({lexer:this},t,i))?(t=t.substring(r.raw.length),i.push(r),!0):!1))continue;if(r=this.tokenizer.escape(t)){t=t.substring(r.raw.length),i.push(r);continue}if(r=this.tokenizer.tag(t)){t=t.substring(r.raw.length),i.push(r);continue}if(r=this.tokenizer.link(t)){t=t.substring(r.raw.length),i.push(r);continue}if(r=this.tokenizer.reflink(t,this.tokens.links)){t=t.substring(r.raw.length);let p=i.at(-1);r.type==="text"&&p?.type==="text"?(p.raw+=r.raw,p.text+=r.text):i.push(r);continue}if(r=this.tokenizer.emStrong(t,s,a)){t=t.substring(r.raw.length),i.push(r);continue}if(r=this.tokenizer.codespan(t)){t=t.substring(r.raw.length),i.push(r);continue}if(r=this.tokenizer.br(t)){t=t.substring(r.raw.length),i.push(r);continue}if(r=this.tokenizer.del(t)){t=t.substring(r.raw.length),i.push(r);continue}if(r=this.tokenizer.autolink(t)){t=t.substring(r.raw.length),i.push(r);continue}if(!this.state.inLink&&(r=this.tokenizer.url(t))){t=t.substring(r.raw.length),i.push(r);continue}let d=t;if(this.options.extensions?.startInline){let p=1/0,x=t.slice(1),g;this.options.extensions.startInline.forEach((k)=>{g=k.call({lexer:this},x),typeof g=="number"&&g>=0&&(p=Math.min(p,g))}),p<1/0&&p>=0&&(d=t.substring(0,p+1))}if(r=this.tokenizer.inlineText(d)){t=t.substring(r.raw.length),r.raw.slice(-1)!=="_"&&(a=r.raw.slice(-1)),n=!0;let p=i.at(-1);p?.type==="text"?(p.raw+=r.raw,p.text+=r.text):i.push(r);continue}if(t){let p="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(p);break}else throw Error(p)}}return i}},Lt=class{options;parser;constructor(e){this.options=e||ke}space(e){return""}code({text:e,lang:t,escaped:i}){let s=(t||"").match(j.notSpaceStart)?.[0],l=e.replace(j.endingNewline,"")+`
51
+ `;return s?'<pre><code class="language-'+W(s)+'">'+(i?l:W(l,!0))+`</code></pre>
52
+ `:"<pre><code>"+(i?l:W(l,!0))+`</code></pre>
53
53
  `}blockquote({tokens:e}){return`<blockquote>
54
54
  ${this.parser.parse(e)}</blockquote>
55
55
  `}html({text:e}){return e}def(e){return""}heading({tokens:e,depth:t}){return`<h${t}>${this.parser.parseInline(e)}</h${t}>
56
56
  `}hr(e){return`<hr>
57
- `}list(e){let{ordered:t,start:i}=e,s="";for(let n=0;n<e.items.length;n++){let a=e.items[n];s+=this.listitem(a)}let o=t?"ol":"ul",l=t&&i!==1?' start="'+i+'"':"";return"<"+o+l+`>
58
- `+s+"</"+o+`>
59
- `}listitem(e){let t="";if(e.task){let i=this.checkbox({checked:!!e.checked});e.loose?e.tokens[0]?.type==="paragraph"?(e.tokens[0].text=i+" "+e.tokens[0].text,e.tokens[0].tokens&&e.tokens[0].tokens.length>0&&e.tokens[0].tokens[0].type==="text"&&(e.tokens[0].tokens[0].text=i+" "+U(e.tokens[0].tokens[0].text),e.tokens[0].tokens[0].escaped=!0)):e.tokens.unshift({type:"text",raw:i+" ",text:i+" ",escaped:!0}):t+=i+" "}return t+=this.parser.parse(e.tokens,!!e.loose),`<li>${t}</li>
57
+ `}list(e){let{ordered:t,start:i}=e,s="";for(let n=0;n<e.items.length;n++){let a=e.items[n];s+=this.listitem(a)}let l=t?"ol":"ul",o=t&&i!==1?' start="'+i+'"':"";return"<"+l+o+`>
58
+ `+s+"</"+l+`>
59
+ `}listitem(e){let t="";if(e.task){let i=this.checkbox({checked:!!e.checked});e.loose?e.tokens[0]?.type==="paragraph"?(e.tokens[0].text=i+" "+e.tokens[0].text,e.tokens[0].tokens&&e.tokens[0].tokens.length>0&&e.tokens[0].tokens[0].type==="text"&&(e.tokens[0].tokens[0].text=i+" "+W(e.tokens[0].tokens[0].text),e.tokens[0].tokens[0].escaped=!0)):e.tokens.unshift({type:"text",raw:i+" ",text:i+" ",escaped:!0}):t+=i+" "}return t+=this.parser.parse(e.tokens,!!e.loose),`<li>${t}</li>
60
60
  `}checkbox({checked:e}){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph({tokens:e}){return`<p>${this.parser.parseInline(e)}</p>
61
- `}table(e){let t="",i="";for(let o=0;o<e.header.length;o++)i+=this.tablecell(e.header[o]);t+=this.tablerow({text:i});let s="";for(let o=0;o<e.rows.length;o++){let l=e.rows[o];i="";for(let n=0;n<l.length;n++)i+=this.tablecell(l[n]);s+=this.tablerow({text:i})}return s&&(s=`<tbody>${s}</tbody>`),`<table>
61
+ `}table(e){let t="",i="";for(let l=0;l<e.header.length;l++)i+=this.tablecell(e.header[l]);t+=this.tablerow({text:i});let s="";for(let l=0;l<e.rows.length;l++){let o=e.rows[l];i="";for(let n=0;n<o.length;n++)i+=this.tablecell(o[n]);s+=this.tablerow({text:i})}return s&&(s=`<tbody>${s}</tbody>`),`<table>
62
62
  <thead>
63
63
  `+t+`</thead>
64
64
  `+s+`</table>
65
65
  `}tablerow({text:e}){return`<tr>
66
66
  ${e}</tr>
67
67
  `}tablecell(e){let t=this.parser.parseInline(e.tokens),i=e.header?"th":"td";return(e.align?`<${i} align="${e.align}">`:`<${i}>`)+t+`</${i}>
68
- `}strong({tokens:e}){return`<strong>${this.parser.parseInline(e)}</strong>`}em({tokens:e}){return`<em>${this.parser.parseInline(e)}</em>`}codespan({text:e}){return`<code>${U(e,!0)}</code>`}br(e){return"<br>"}del({tokens:e}){return`<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:t,tokens:i}){let s=this.parser.parseInline(i),o=ms(e);if(o===null)return s;e=o;let l='<a href="'+e+'"';return t&&(l+=' title="'+U(t)+'"'),l+=">"+s+"</a>",l}image({href:e,title:t,text:i,tokens:s}){s&&(i=this.parser.parseInline(s,this.parser.textRenderer));let o=ms(e);if(o===null)return U(i);e=o;let l=`<img src="${e}" alt="${i}"`;return t&&(l+=` title="${U(t)}"`),l+=">",l}text(e){return"tokens"in e&&e.tokens?this.parser.parseInline(e.tokens):("escaped"in e)&&e.escaped?e.text:U(e.text)}},V1=class{strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return""+e}image({text:e}){return""+e}br(){return""}},_=class e{options;renderer;textRenderer;constructor(t){this.options=t||me,this.options.renderer=this.options.renderer||new Mt,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new V1}static parse(t,i){return new e(i).parse(t)}static parseInline(t,i){return new e(i).parseInline(t)}parse(t,i=!0){let s="";for(let o=0;o<t.length;o++){let l=t[o];if(this.options.extensions?.renderers?.[l.type]){let a=l,r=this.options.extensions.renderers[a.type].call({parser:this},a);if(r!==!1||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(a.type)){s+=r||"";continue}}let n=l;switch(n.type){case"space":{s+=this.renderer.space(n);continue}case"hr":{s+=this.renderer.hr(n);continue}case"heading":{s+=this.renderer.heading(n);continue}case"code":{s+=this.renderer.code(n);continue}case"table":{s+=this.renderer.table(n);continue}case"blockquote":{s+=this.renderer.blockquote(n);continue}case"list":{s+=this.renderer.list(n);continue}case"html":{s+=this.renderer.html(n);continue}case"def":{s+=this.renderer.def(n);continue}case"paragraph":{s+=this.renderer.paragraph(n);continue}case"text":{let a=n,r=this.renderer.text(a);for(;o+1<t.length&&t[o+1].type==="text";)a=t[++o],r+=`
69
- `+this.renderer.text(a);i?s+=this.renderer.paragraph({type:"paragraph",raw:r,text:r,tokens:[{type:"text",raw:r,text:r,escaped:!0}]}):s+=r;continue}default:{let a='Token with "'+n.type+'" type was not found.';if(this.options.silent)return console.error(a),"";throw Error(a)}}}return s}parseInline(t,i=this.renderer){let s="";for(let o=0;o<t.length;o++){let l=t[o];if(this.options.extensions?.renderers?.[l.type]){let a=this.options.extensions.renderers[l.type].call({parser:this},l);if(a!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(l.type)){s+=a||"";continue}}let n=l;switch(n.type){case"escape":{s+=i.text(n);break}case"html":{s+=i.html(n);break}case"link":{s+=i.link(n);break}case"image":{s+=i.image(n);break}case"strong":{s+=i.strong(n);break}case"em":{s+=i.em(n);break}case"codespan":{s+=i.codespan(n);break}case"br":{s+=i.br(n);break}case"del":{s+=i.del(n);break}case"text":{s+=i.text(n);break}default:{let a='Token with "'+n.type+'" type was not found.';if(this.options.silent)return console.error(a),"";throw Error(a)}}}return s}},Ze=class{options;block;constructor(e){this.options=e||me}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens","emStrongMask"]);static passThroughHooksRespectAsync=new Set(["preprocess","postprocess","processAllTokens"]);preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}emStrongMask(e){return e}provideLexer(){return this.block?D.lex:D.lexInline}provideParser(){return this.block?_.parse:_.parseInline}},xl=class{defaults=H1();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=_;Renderer=Mt;TextRenderer=V1;Lexer=D;Tokenizer=bt;Hooks=Ze;constructor(...e){this.use(...e)}walkTokens(e,t){let i=[];for(let s of e)switch(i=i.concat(t.call(this,s)),s.type){case"table":{let o=s;for(let l of o.header)i=i.concat(this.walkTokens(l.tokens,t));for(let l of o.rows)for(let n of l)i=i.concat(this.walkTokens(n.tokens,t));break}case"list":{let o=s;i=i.concat(this.walkTokens(o.items,t));break}default:{let o=s;this.defaults.extensions?.childTokens?.[o.type]?this.defaults.extensions.childTokens[o.type].forEach((l)=>{let n=o[l].flat(1/0);i=i.concat(this.walkTokens(n,t))}):o.tokens&&(i=i.concat(this.walkTokens(o.tokens,t)))}}return i}use(...e){let t=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach((i)=>{let s={...i};if(s.async=this.defaults.async||s.async||!1,i.extensions&&(i.extensions.forEach((o)=>{if(!o.name)throw Error("extension name required");if("renderer"in o){let l=t.renderers[o.name];l?t.renderers[o.name]=function(...n){let a=o.renderer.apply(this,n);return a===!1&&(a=l.apply(this,n)),a}:t.renderers[o.name]=o.renderer}if("tokenizer"in o){if(!o.level||o.level!=="block"&&o.level!=="inline")throw Error("extension level must be 'block' or 'inline'");let l=t[o.level];l?l.unshift(o.tokenizer):t[o.level]=[o.tokenizer],o.start&&(o.level==="block"?t.startBlock?t.startBlock.push(o.start):t.startBlock=[o.start]:o.level==="inline"&&(t.startInline?t.startInline.push(o.start):t.startInline=[o.start]))}"childTokens"in o&&o.childTokens&&(t.childTokens[o.name]=o.childTokens)}),s.extensions=t),i.renderer){let o=this.defaults.renderer||new Mt(this.defaults);for(let l in i.renderer){if(!(l in o))throw Error(`renderer '${l}' does not exist`);if(["options","parser"].includes(l))continue;let n=l,a=i.renderer[n],r=o[n];o[n]=(...p)=>{let d=a.apply(o,p);return d===!1&&(d=r.apply(o,p)),d||""}}s.renderer=o}if(i.tokenizer){let o=this.defaults.tokenizer||new bt(this.defaults);for(let l in i.tokenizer){if(!(l in o))throw Error(`tokenizer '${l}' does not exist`);if(["options","rules","lexer"].includes(l))continue;let n=l,a=i.tokenizer[n],r=o[n];o[n]=(...p)=>{let d=a.apply(o,p);return d===!1&&(d=r.apply(o,p)),d}}s.tokenizer=o}if(i.hooks){let o=this.defaults.hooks||new Ze;for(let l in i.hooks){if(!(l in o))throw Error(`hook '${l}' does not exist`);if(["options","block"].includes(l))continue;let n=l,a=i.hooks[n],r=o[n];Ze.passThroughHooks.has(l)?o[n]=(p)=>{if(this.defaults.async&&Ze.passThroughHooksRespectAsync.has(l))return(async()=>{let x=await a.call(o,p);return r.call(o,x)})();let d=a.call(o,p);return r.call(o,d)}:o[n]=(...p)=>{if(this.defaults.async)return(async()=>{let x=await a.apply(o,p);return x===!1&&(x=await r.apply(o,p)),x})();let d=a.apply(o,p);return d===!1&&(d=r.apply(o,p)),d}}s.hooks=o}if(i.walkTokens){let o=this.defaults.walkTokens,l=i.walkTokens;s.walkTokens=function(n){let a=[];return a.push(l.call(this,n)),o&&(a=a.concat(o.call(this,n))),a}}this.defaults={...this.defaults,...s}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return D.lex(e,t??this.defaults)}parser(e,t){return _.parse(e,t??this.defaults)}parseMarkdown(e){return(t,i)=>{let s={...i},o={...this.defaults,...s},l=this.onError(!!o.silent,!!o.async);if(this.defaults.async===!0&&s.async===!1)return l(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 t>"u"||t===null)return l(Error("marked(): input parameter is undefined or null"));if(typeof t!="string")return l(Error("marked(): input parameter is of type "+Object.prototype.toString.call(t)+", string expected"));if(o.hooks&&(o.hooks.options=o,o.hooks.block=e),o.async)return(async()=>{let n=o.hooks?await o.hooks.preprocess(t):t,a=await(o.hooks?await o.hooks.provideLexer():e?D.lex:D.lexInline)(n,o),r=o.hooks?await o.hooks.processAllTokens(a):a;o.walkTokens&&await Promise.all(this.walkTokens(r,o.walkTokens));let p=await(o.hooks?await o.hooks.provideParser():e?_.parse:_.parseInline)(r,o);return o.hooks?await o.hooks.postprocess(p):p})().catch(l);try{o.hooks&&(t=o.hooks.preprocess(t));let n=(o.hooks?o.hooks.provideLexer():e?D.lex:D.lexInline)(t,o);o.hooks&&(n=o.hooks.processAllTokens(n)),o.walkTokens&&this.walkTokens(n,o.walkTokens);let a=(o.hooks?o.hooks.provideParser():e?_.parse:_.parseInline)(n,o);return o.hooks&&(a=o.hooks.postprocess(a)),a}catch(n){return l(n)}}}onError(e,t){return(i)=>{if(i.message+=`
70
- Please report this to https://github.com/markedjs/marked.`,e){let s="<p>An error occurred:</p><pre>"+U(i.message+"",!0)+"</pre>";return t?Promise.resolve(s):s}if(t)return Promise.reject(i);throw i}}},fe=new xl;function M(e,t){return fe.parse(e,t)}M.options=M.setOptions=function(e){return fe.setOptions(e),M.defaults=fe.defaults,Cs(M.defaults),M};M.getDefaults=H1;M.defaults=me;M.use=function(...e){return fe.use(...e),M.defaults=fe.defaults,Cs(M.defaults),M};M.walkTokens=function(e,t){return fe.walkTokens(e,t)};M.parseInline=fe.parseInline;M.Parser=_;M.parser=_.parse;M.Renderer=Mt;M.TextRenderer=V1;M.Lexer=D;M.lexer=D.lex;M.Tokenizer=bt;M.Hooks=Ze;M.parse=M;var{options:Xa,setOptions:er,use:tr,walkTokens:ir,parseInline:sr}=M;var or=_.parse,lr=D.lex;function js(e,t){if(t==null)t="";else if(typeof t!=="string")t=String(t);return t.replace(/\{\{([^}]+)\}\}/g,(i,s)=>{let o=H[`${e}${s.startsWith("[")?s:"."+s}`];return o===void 0?i:js(e,String(o))})}class I1 extends m{src="";value="";content=null;elements=!1;context={};options={};constructor(){super();this.initAttributes("src","elements","context")}connectedCallback(){if(super.connectedCallback(),this.src!=="")(async()=>{let e=await fetch(this.src);this.value=await e.text()})();else if(this.value==="")if(this.elements)this.value=this.innerHTML;else this.value=this.textContent!=null?this.textContent:""}didRender=()=>{};render(){super.render(),H[this.instanceId]=typeof this.context==="string"?JSON.parse(this.context):this.context;let e=js(this.instanceId,this.value);if(this.elements){let t=e.split(`
71
- `).reduce((i,s)=>{if(s.startsWith("<")||i.length===0)i.push(s);else{let o=i[i.length-1];if(!o.startsWith("<")||!o.endsWith(">"))i[i.length-1]+=`
72
- `+s;else i.push(s)}return i},[]);this.innerHTML=t.map((i)=>i.startsWith("<")&&i.endsWith(">")?i:M(i,this.options)).join("")}else this.innerHTML=M(e,this.options);this.didRender()}}var D1=I1.elementCreator({tag:"xin-md"});var{div:ve,slot:Ts,span:yl,button:ul}=f;class _1 extends m{value=0;localized=!1;makeTab(e,t,i){let s=t.getAttribute("name"),o=t.querySelector('template[role="tab"]')?.content.cloneNode(!0)||(this.localized?Q(s):yl(s));return ve(o,{part:"tab",tabindex:0,role:"tab",ariaControls:i},t.hasAttribute("data-close")?ul({title:"close",class:"close"},u.x()):{})}static styleSpec={":host":{"--tosi-tabs-selected-color":"var(--tosi-accent, currentColor)","--tosi-tabs-bar-color":"#ccc","--tosi-tabs-bar-height":"2px","--xin-tabs-selected-color":"var(--tosi-tabs-selected-color)","--xin-tabs-bar-color":"var(--tosi-tabs-bar-color)","--xin-tabs-bar-height":"var(--tosi-tabs-bar-height)",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:`${c.spacing50} ${c.spacing}`,cursor:"default",display:"flex",alignItems:"baseline"},':host .tabs > [aria-selected="true"]':{"--text-color":c.tosiTabsSelectedColor,color:c.textColor},":host .elastic":{flex:"1"},":host .border":{background:c.tosiTabsBarColor},":host .border > .selected":{content:" ",width:0,height:c.tosiTabsBarHeight,background:c.tosiTabsSelectedColor,transition:"ease-out 0.2s"},":host button.close":{border:0,background:"transparent",textAlign:"center",marginLeft:c.spacing50,padding:0},":host button.close > svg":{height:"12px"}};onCloseTab=null;content=[ve({role:"tabpanel",part:"tabpanel"},ve({part:"tabrow"},ve({class:"tabs",part:"tabs"}),ve({class:"elastic"}),Ts({name:"after-tabs"})),ve({class:"border"},ve({class:"selected",part:"selected"}))),Ts()];constructor(){super();this.initAttributes("localized")}addTabBody(e,t=!1){if(!e.hasAttribute("name"))throw console.error("element has no name attribute",e),Error("element has no name attribute");if(this.append(e),this.setupTabs(),t)this.value=this.bodies.length-1;this.queueRender()}removeTabBody(e){e.remove(),this.setupTabs(),this.queueRender()}keyTab=(e)=>{let{tabs:t}=this.parts,i=[...t.children].indexOf(e.target);switch(e.key){case"ArrowLeft":this.value=(i+Number(t.children.length)-1)%t.children.length,t.children[this.value].focus(),e.preventDefault();break;case"ArrowRight":this.value=(i+1)%t.children.length,t.children[this.value].focus(),e.preventDefault();break;case" ":this.pickTab(e),e.preventDefault();break;default:}};get bodies(){return[...this.children].filter((e)=>e.hasAttribute("name"))}pickTab=(e)=>{let{tabs:t}=this.parts,i=e.target,s=i.closest("button.close")!==null,o=i.closest(".tabs > div"),l=[...t.children].indexOf(o);if(s){let n=this.bodies[l];if(!this.onCloseTab||this.onCloseTab(n)!==!1)this.removeTabBody(this.bodies[l])}else if(l>-1)this.value=l};setupTabs=()=>{let{tabs:e}=this.parts,t=[...this.children].filter((i)=>!i.hasAttribute("slot")&&i.hasAttribute("name"));if(e.textContent="",this.value>=t.length)this.value=t.length-1;for(let i in t){let s=t[i],o=`${this.instanceId}-${i}`;s.id=o;let l=this.makeTab(this,s,o);e.append(l)}};connectedCallback(){super.connectedCallback();let{tabs:e}=this.parts;e.addEventListener("click",this.pickTab),e.addEventListener("keydown",this.keyTab),this.setupTabs(),O.allInstances.add(this)}disconnectedCallback(){super.disconnectedCallback(),O.allInstances.delete(this)}localeChanged=()=>{this.queueRender()};onResize(){this.queueRender()}render(){let{tabs:e,selected:t}=this.parts,i=this.bodies;for(let s=0;s<i.length;s++){let o=i[s],l=e.children[s];if(this.value===Number(s))l.setAttribute("aria-selected","true"),t.style.marginLeft=`${l.offsetLeft-e.offsetLeft}px`,t.style.width=`${l.offsetWidth}px`,o.toggleAttribute("hidden",!1);else l.toggleAttribute("aria-selected",!1),o.toggleAttribute("hidden",!0)}}}var q1=_1.elementCreator({tag:"xin-tabs"});var{div:Lt,xinSlot:gl,style:fl,button:ke,pre:ml}=f,vl=()=>"https://cdn.jsdelivr.net/npm/sucrase@3.35.0/+esm",kl=(async()=>{}).constructor;class je extends m{persistToDom=!1;prettier=!1;iframe=!1;prefix="lx";storageKey="live-example-payload";context={};uuid=crypto.randomUUID();remoteId="";lastUpdate=0;interval;static insertExamples(e,t={}){let i=[...e.querySelectorAll(".language-html,.language-js,.language-css")].filter((s)=>!s.closest(je.tagName)).map((s)=>({block:s.parentElement,language:s.classList[0].split("-").pop(),code:s.innerText}));for(let s=0;s<i.length;s+=1){let o=[i[s]];while(s<i.length-1&&i[s].block.nextElementSibling===i[s+1].block)o.push(i[s+1]),s+=1;let l=N1({context:t});o[0].block.parentElement.insertBefore(l,o[0].block),o.forEach((n)=>{switch(n.language){case"js":l.js=n.code;break;case"html":l.html=n.code;break;case"css":l.css=n.code;break}n.block.remove()}),l.showDefaultTab()}}constructor(){super();this.initAttributes("persistToDom","prettier","iframe")}get activeTab(){let{editors:e}=this.parts;return[...e.children].find((t)=>t.getAttribute("hidden")===null)}getEditorValue(e){return this.parts[e].value}setEditorValue(e,t){let i=this.parts[e];i.value=t}get css(){return this.getEditorValue("css")}set css(e){this.setEditorValue("css",e)}get html(){return this.getEditorValue("html")}set html(e){this.setEditorValue("html",e)}get js(){return this.getEditorValue("js")}set js(e){this.setEditorValue("js",e)}updateUndo=()=>{let{activeTab:e}=this,{undo:t,redo:i}=this.parts;if(e instanceof xe&&e.editor!==void 0){let s=e.editor.session.getUndoManager();t.disabled=!s.hasUndo(),i.disabled=!s.hasRedo()}else t.disabled=!0,i.disabled=!0};undo=()=>{let{activeTab:e}=this;if(e instanceof xe)e.editor.undo()};redo=()=>{let{activeTab:e}=this;if(e instanceof xe)e.editor.redo()};get isMaximized(){return this.classList.contains("-maximize")}flipLayout=()=>{this.classList.toggle("-vertical")};exampleMenu=()=>{S({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}]})};handleShortcuts=(e)=>{if(e.metaKey||e.ctrlKey){let t=!1;switch(e.key){case"s":case"r":this.refresh(),t=!0;break;case"/":this.flipLayout();break;case"c":if(e.shiftKey)this.copy(),t=!0;break}if(t)e.preventDefault(),e.stopPropagation()}};content=()=>[Lt({part:"example"},fl({part:"style"}),ke({title:"example menu",part:"exampleWidgets",onClick:this.exampleMenu},u.code())),Lt({class:"code-editors",part:"codeEditors",onKeydown:this.handleShortcuts,hidden:!0},q1({part:"editors",onChange:this.updateUndo},Ke({name:"js",mode:"javascript",part:"js"}),Ke({name:"html",mode:"html",part:"html"}),Ke({name:"css",mode:"css",part:"css"}),Lt({slot:"after-tabs",class:"row"},ke({title:"undo",part:"undo",class:"transparent",onClick:this.undo},u.cornerUpLeft()),ke({title:"redo",part:"redo",class:"transparent",onClick:this.redo},u.cornerUpRight()),ke({title:"flip direction (⌘/ | ^/)",class:"transparent",onClick:this.flipLayout},u.columns({class:"layout-indicator"})),ke({title:"copy as markdown (⌘⇧C | ^⇧C)",class:"transparent",onClick:this.copy},u.copy()),ke({title:"reload (⌘R | ^R)",class:"transparent",onClick:this.refreshRemote},u.refreshCw()),ke({title:"close code",class:"transparent",onClick:this.closeCode},u.x())))),gl({part:"sources",hidden:!0})];connectedCallback(){super.connectedCallback();let{sources:e}=this.parts;this.initFromElements([...e.children]),addEventListener("storage",this.remoteChange),this.interval=setInterval(this.remoteChange,500),this.undoInterval=setInterval(this.updateUndo,250)}disconnectedCallback(){super.disconnectedCallback();let{storageKey:e,remoteKey:t}=this;clearInterval(this.interval),clearInterval(this.undoInterval),localStorage.setItem(e,JSON.stringify({remoteKey:t,sentAt:Date.now(),close:!0}))}copy=()=>{let e=this.js!==""?"```js\n"+this.js.trim()+"\n```\n":"",t=this.html!==""?"```html\n"+this.html.trim()+"\n```\n":"",i=this.css!==""?"```css\n"+this.css.trim()+"\n```\n":"";navigator.clipboard.writeText(e+t+i)};toggleMaximize=()=>{this.classList.toggle("-maximize")};get remoteKey(){return this.remoteId!==""?this.prefix+"-"+this.remoteId:this.prefix+"-"+this.uuid}remoteChange=(e)=>{let t=localStorage.getItem(this.storageKey);if(e instanceof StorageEvent&&e.key!==this.storageKey)return;if(t===null)return;let{remoteKey:i,sentAt:s,css:o,html:l,js:n,close:a}=JSON.parse(t);if(s<=this.lastUpdate)return;if(i!==this.remoteKey)return;if(a===!0)window.close();console.log("received new code",s,this.lastUpdate),this.lastUpdate=s,this.css=o,this.html=l,this.js=n,this.refresh()};showCode=()=>{this.classList.add("-maximize"),this.classList.toggle("-vertical",this.offsetHeight>this.offsetWidth),this.parts.codeEditors.hidden=!1};closeCode=()=>{if(this.remoteId!=="")window.close();else this.classList.remove("-maximize"),this.parts.codeEditors.hidden=!0};openEditorWindow=()=>{let{storageKey:e,remoteKey:t,css:i,html:s,js:o,uuid:l,prefix:n}=this,a=location.href.split("?")[0]+`?${n}=${l}`;localStorage.setItem(e,JSON.stringify({remoteKey:t,sentAt:Date.now(),css:i,html:s,js:o})),window.open(a)};refreshRemote=()=>{let{remoteKey:e,css:t,html:i,js:s}=this;localStorage.setItem(this.storageKey,JSON.stringify({remoteKey:e,sentAt:Date.now(),css:t,html:i,js:s}))};updateSources=()=>{if(this.persistToDom){let{sources:e}=this.parts;e.innerText="";for(let t of["js","css","html"])if(this[t])e.append(ml({class:`language-${t}`,innerHTML:this[t]}))}};refresh=async()=>{if(this.remoteId!=="")return;let{transform:e}=await import(vl()),{example:t,style:i}=this.parts;if(this.iframe)await this.refreshInIframe(e);else await this.refreshInline(e,t,i)};async refreshInline(e,t,i){let s=Lt({class:"preview"});s.innerHTML=this.html,i.innerText=this.css;let o=t.querySelector(".preview");if(o)o.replaceWith(s);else t.insertBefore(s,this.parts.exampleWidgets);let l={preview:s,...this.context};try{let n=this.js;for(let r of Object.keys(this.context))n=n.replace(new RegExp(`import \\{(.*)\\} from '${r}'`,"g"),`const {$1} = ${r.replace(/-/g,"")}`);if(new kl(...Object.keys(l).map((r)=>r.replace(/-/g,"")),e(n,{transforms:["typescript"]}).code)(...Object.values(l)).catch((r)=>console.error(r)),this.persistToDom)this.updateSources()}catch(n){console.error(n),window.alert(`Error: ${n}, the console may have more information…`)}}registerComponentsInIframe(e){let t=e.customElements;if(!t)return;let i=this.context["tosijs-ui"];if(!i)return;for(let[,s]of Object.entries(i))if(typeof s==="function"&&"tagName"in s){let o=s.tagName;if(o&&!t.get(o)){let l=customElements.get(o);if(l)try{t.define(o,l)}catch(n){}}}}async refreshInIframe(e){let{example:t}=this.parts,i=t.querySelector("iframe.preview-iframe");if(!i){i=document.createElement("iframe"),i.className="preview-iframe",i.style.cssText="width: 100%; height: 100%; border: none;";let a=t.querySelector(".preview");if(a)a.replaceWith(i);else t.insertBefore(i,this.parts.exampleWidgets)}let s=i.contentDocument;if(!s){console.error("Could not access iframe document");return}let o=i.contentWindow;if(this.context.tosijs)o.tosijs=this.context.tosijs;if(this.context["tosijs-ui"])o.tosijsui=this.context["tosijs-ui"];s.open(),s.write(`<!DOCTYPE html>
68
+ `}strong({tokens:e}){return`<strong>${this.parser.parseInline(e)}</strong>`}em({tokens:e}){return`<em>${this.parser.parseInline(e)}</em>`}codespan({text:e}){return`<code>${W(e,!0)}</code>`}br(e){return"<br>"}del({tokens:e}){return`<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:t,tokens:i}){let s=this.parser.parseInline(i),l=Ps(e);if(l===null)return s;e=l;let o='<a href="'+e+'"';return t&&(o+=' title="'+W(t)+'"'),o+=">"+s+"</a>",o}image({href:e,title:t,text:i,tokens:s}){s&&(i=this.parser.parseInline(s,this.parser.textRenderer));let l=Ps(e);if(l===null)return W(i);e=l;let o=`<img src="${e}" alt="${i}"`;return t&&(o+=` title="${W(t)}"`),o+=">",o}text(e){return"tokens"in e&&e.tokens?this.parser.parseInline(e.tokens):("escaped"in e)&&e.escaped?e.text:W(e.text)}},W1=class{strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return""+e}image({text:e}){return""+e}br(){return""}},_=class e{options;renderer;textRenderer;constructor(t){this.options=t||ke,this.options.renderer=this.options.renderer||new Lt,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new W1}static parse(t,i){return new e(i).parse(t)}static parseInline(t,i){return new e(i).parseInline(t)}parse(t,i=!0){let s="";for(let l=0;l<t.length;l++){let o=t[l];if(this.options.extensions?.renderers?.[o.type]){let a=o,r=this.options.extensions.renderers[a.type].call({parser:this},a);if(r!==!1||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(a.type)){s+=r||"";continue}}let n=o;switch(n.type){case"space":{s+=this.renderer.space(n);continue}case"hr":{s+=this.renderer.hr(n);continue}case"heading":{s+=this.renderer.heading(n);continue}case"code":{s+=this.renderer.code(n);continue}case"table":{s+=this.renderer.table(n);continue}case"blockquote":{s+=this.renderer.blockquote(n);continue}case"list":{s+=this.renderer.list(n);continue}case"html":{s+=this.renderer.html(n);continue}case"def":{s+=this.renderer.def(n);continue}case"paragraph":{s+=this.renderer.paragraph(n);continue}case"text":{let a=n,r=this.renderer.text(a);for(;l+1<t.length&&t[l+1].type==="text";)a=t[++l],r+=`
69
+ `+this.renderer.text(a);i?s+=this.renderer.paragraph({type:"paragraph",raw:r,text:r,tokens:[{type:"text",raw:r,text:r,escaped:!0}]}):s+=r;continue}default:{let a='Token with "'+n.type+'" type was not found.';if(this.options.silent)return console.error(a),"";throw Error(a)}}}return s}parseInline(t,i=this.renderer){let s="";for(let l=0;l<t.length;l++){let o=t[l];if(this.options.extensions?.renderers?.[o.type]){let a=this.options.extensions.renderers[o.type].call({parser:this},o);if(a!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(o.type)){s+=a||"";continue}}let n=o;switch(n.type){case"escape":{s+=i.text(n);break}case"html":{s+=i.html(n);break}case"link":{s+=i.link(n);break}case"image":{s+=i.image(n);break}case"strong":{s+=i.strong(n);break}case"em":{s+=i.em(n);break}case"codespan":{s+=i.codespan(n);break}case"br":{s+=i.br(n);break}case"del":{s+=i.del(n);break}case"text":{s+=i.text(n);break}default:{let a='Token with "'+n.type+'" type was not found.';if(this.options.silent)return console.error(a),"";throw Error(a)}}}return s}},et=class{options;block;constructor(e){this.options=e||ke}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens","emStrongMask"]);static passThroughHooksRespectAsync=new Set(["preprocess","postprocess","processAllTokens"]);preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}emStrongMask(e){return e}provideLexer(){return this.block?D.lex:D.lexInline}provideParser(){return this.block?_.parse:_.parseInline}},Mo=class{defaults=I1();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=_;Renderer=Lt;TextRenderer=W1;Lexer=D;Tokenizer=zt;Hooks=et;constructor(...e){this.use(...e)}walkTokens(e,t){let i=[];for(let s of e)switch(i=i.concat(t.call(this,s)),s.type){case"table":{let l=s;for(let o of l.header)i=i.concat(this.walkTokens(o.tokens,t));for(let o of l.rows)for(let n of o)i=i.concat(this.walkTokens(n.tokens,t));break}case"list":{let l=s;i=i.concat(this.walkTokens(l.items,t));break}default:{let l=s;this.defaults.extensions?.childTokens?.[l.type]?this.defaults.extensions.childTokens[l.type].forEach((o)=>{let n=l[o].flat(1/0);i=i.concat(this.walkTokens(n,t))}):l.tokens&&(i=i.concat(this.walkTokens(l.tokens,t)))}}return i}use(...e){let t=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach((i)=>{let s={...i};if(s.async=this.defaults.async||s.async||!1,i.extensions&&(i.extensions.forEach((l)=>{if(!l.name)throw Error("extension name required");if("renderer"in l){let o=t.renderers[l.name];o?t.renderers[l.name]=function(...n){let a=l.renderer.apply(this,n);return a===!1&&(a=o.apply(this,n)),a}:t.renderers[l.name]=l.renderer}if("tokenizer"in l){if(!l.level||l.level!=="block"&&l.level!=="inline")throw Error("extension level must be 'block' or 'inline'");let o=t[l.level];o?o.unshift(l.tokenizer):t[l.level]=[l.tokenizer],l.start&&(l.level==="block"?t.startBlock?t.startBlock.push(l.start):t.startBlock=[l.start]:l.level==="inline"&&(t.startInline?t.startInline.push(l.start):t.startInline=[l.start]))}"childTokens"in l&&l.childTokens&&(t.childTokens[l.name]=l.childTokens)}),s.extensions=t),i.renderer){let l=this.defaults.renderer||new Lt(this.defaults);for(let o in i.renderer){if(!(o in l))throw Error(`renderer '${o}' does not exist`);if(["options","parser"].includes(o))continue;let n=o,a=i.renderer[n],r=l[n];l[n]=(...d)=>{let p=a.apply(l,d);return p===!1&&(p=r.apply(l,d)),p||""}}s.renderer=l}if(i.tokenizer){let l=this.defaults.tokenizer||new zt(this.defaults);for(let o in i.tokenizer){if(!(o in l))throw Error(`tokenizer '${o}' does not exist`);if(["options","rules","lexer"].includes(o))continue;let n=o,a=i.tokenizer[n],r=l[n];l[n]=(...d)=>{let p=a.apply(l,d);return p===!1&&(p=r.apply(l,d)),p}}s.tokenizer=l}if(i.hooks){let l=this.defaults.hooks||new et;for(let o in i.hooks){if(!(o in l))throw Error(`hook '${o}' does not exist`);if(["options","block"].includes(o))continue;let n=o,a=i.hooks[n],r=l[n];et.passThroughHooks.has(o)?l[n]=(d)=>{if(this.defaults.async&&et.passThroughHooksRespectAsync.has(o))return(async()=>{let x=await a.call(l,d);return r.call(l,x)})();let p=a.call(l,d);return r.call(l,p)}:l[n]=(...d)=>{if(this.defaults.async)return(async()=>{let x=await a.apply(l,d);return x===!1&&(x=await r.apply(l,d)),x})();let p=a.apply(l,d);return p===!1&&(p=r.apply(l,d)),p}}s.hooks=l}if(i.walkTokens){let l=this.defaults.walkTokens,o=i.walkTokens;s.walkTokens=function(n){let a=[];return a.push(o.call(this,n)),l&&(a=a.concat(l.call(this,n))),a}}this.defaults={...this.defaults,...s}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return D.lex(e,t??this.defaults)}parser(e,t){return _.parse(e,t??this.defaults)}parseMarkdown(e){return(t,i)=>{let s={...i},l={...this.defaults,...s},o=this.onError(!!l.silent,!!l.async);if(this.defaults.async===!0&&s.async===!1)return o(Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof t>"u"||t===null)return o(Error("marked(): input parameter is undefined or null"));if(typeof t!="string")return o(Error("marked(): input parameter is of type "+Object.prototype.toString.call(t)+", string expected"));if(l.hooks&&(l.hooks.options=l,l.hooks.block=e),l.async)return(async()=>{let n=l.hooks?await l.hooks.preprocess(t):t,a=await(l.hooks?await l.hooks.provideLexer():e?D.lex:D.lexInline)(n,l),r=l.hooks?await l.hooks.processAllTokens(a):a;l.walkTokens&&await Promise.all(this.walkTokens(r,l.walkTokens));let d=await(l.hooks?await l.hooks.provideParser():e?_.parse:_.parseInline)(r,l);return l.hooks?await l.hooks.postprocess(d):d})().catch(o);try{l.hooks&&(t=l.hooks.preprocess(t));let n=(l.hooks?l.hooks.provideLexer():e?D.lex:D.lexInline)(t,l);l.hooks&&(n=l.hooks.processAllTokens(n)),l.walkTokens&&this.walkTokens(n,l.walkTokens);let a=(l.hooks?l.hooks.provideParser():e?_.parse:_.parseInline)(n,l);return l.hooks&&(a=l.hooks.postprocess(a)),a}catch(n){return o(n)}}}onError(e,t){return(i)=>{if(i.message+=`
70
+ Please report this to https://github.com/markedjs/marked.`,e){let s="<p>An error occurred:</p><pre>"+W(i.message+"",!0)+"</pre>";return t?Promise.resolve(s):s}if(t)return Promise.reject(i);throw i}}},ve=new Mo;function M(e,t){return ve.parse(e,t)}M.options=M.setOptions=function(e){return ve.setOptions(e),M.defaults=ve.defaults,Ss(M.defaults),M};M.getDefaults=I1;M.defaults=ke;M.use=function(...e){return ve.use(...e),M.defaults=ve.defaults,Ss(M.defaults),M};M.walkTokens=function(e,t){return ve.walkTokens(e,t)};M.parseInline=ve.parseInline;M.Parser=_;M.parser=_.parse;M.Renderer=Lt;M.TextRenderer=W1;M.Lexer=D;M.lexer=D.lex;M.Tokenizer=zt;M.Hooks=et;M.parse=M;var{options:dr,setOptions:pr,use:hr,walkTokens:xr,parseInline:yr}=M;var ur=_.parse,gr=D.lex;function $s(e,t){if(t==null)t="";else if(typeof t!=="string")t=String(t);return t.replace(/\{\{([^}]+)\}\}/g,(i,s)=>{let l=P[`${e}${s.startsWith("[")?s:"."+s}`];return l===void 0?i:$s(e,String(l))})}class G1 extends m{src="";value="";content=null;elements=!1;context={};options={};constructor(){super();this.initAttributes("src","elements","context")}connectedCallback(){if(super.connectedCallback(),this.src!=="")(async()=>{let e=await fetch(this.src);this.value=await e.text()})();else if(this.value==="")if(this.elements)this.value=this.innerHTML;else this.value=this.textContent!=null?this.textContent:""}didRender=()=>{};render(){super.render(),P[this.instanceId]=typeof this.context==="string"?JSON.parse(this.context):this.context;let e=$s(this.instanceId,this.value);if(this.elements){let t=e.split(`
71
+ `).reduce((i,s)=>{if(s.startsWith("<")||i.length===0)i.push(s);else{let l=i[i.length-1];if(!l.startsWith("<")||!l.endsWith(">"))i[i.length-1]+=`
72
+ `+s;else i.push(s)}return i},[]);this.innerHTML=t.map((i)=>i.startsWith("<")&&i.endsWith(">")?i:M(i,this.options)).join("")}else this.innerHTML=M(e,this.options);this.didRender()}}var K1=G1.elementCreator({tag:"xin-md"});var{div:Ce,slot:Ws,span:Bo,button:zo}=f;class Q1 extends m{value=0;localized=!1;makeTab(e,t,i){let s=t.getAttribute("name"),l=t.querySelector('template[role="tab"]')?.content.cloneNode(!0)||(this.localized?J(s):Bo(s));return Ce(l,{part:"tab",tabindex:0,role:"tab",ariaControls:i},t.hasAttribute("data-close")?zo({title:"close",class:"close"},u.x()):{})}static styleSpec={":host":{"--tosi-tabs-selected-color":"var(--tosi-accent, currentColor)","--tosi-tabs-bar-color":"#ccc","--tosi-tabs-bar-height":"2px","--xin-tabs-selected-color":"var(--tosi-tabs-selected-color)","--xin-tabs-bar-color":"var(--tosi-tabs-bar-color)","--xin-tabs-bar-height":"var(--tosi-tabs-bar-height)",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:`${c.spacing50} ${c.spacing}`,cursor:"default",display:"flex",alignItems:"baseline"},':host .tabs > [aria-selected="true"]':{"--text-color":c.tosiTabsSelectedColor,color:c.textColor},":host .elastic":{flex:"1"},":host .border":{background:c.tosiTabsBarColor},":host .border > .selected":{content:" ",width:0,height:c.tosiTabsBarHeight,background:c.tosiTabsSelectedColor,transition:"ease-out 0.2s"},":host button.close":{border:0,background:"transparent",textAlign:"center",marginLeft:c.spacing50,padding:0},":host button.close > svg":{height:"12px"}};onCloseTab=null;content=[Ce({role:"tabpanel",part:"tabpanel"},Ce({part:"tabrow"},Ce({class:"tabs",part:"tabs"}),Ce({class:"elastic"}),Ws({name:"after-tabs"})),Ce({class:"border"},Ce({class:"selected",part:"selected"}))),Ws()];constructor(){super();this.initAttributes("localized")}addTabBody(e,t=!1){if(!e.hasAttribute("name"))throw console.error("element has no name attribute",e),Error("element has no name attribute");if(this.append(e),this.setupTabs(),t)this.value=this.bodies.length-1;this.queueRender()}removeTabBody(e){e.remove(),this.setupTabs(),this.queueRender()}keyTab=(e)=>{let{tabs:t}=this.parts,i=[...t.children].indexOf(e.target);switch(e.key){case"ArrowLeft":this.value=(i+Number(t.children.length)-1)%t.children.length,t.children[this.value].focus(),e.preventDefault();break;case"ArrowRight":this.value=(i+1)%t.children.length,t.children[this.value].focus(),e.preventDefault();break;case" ":this.pickTab(e),e.preventDefault();break;default:}};get bodies(){return[...this.children].filter((e)=>e.hasAttribute("name"))}pickTab=(e)=>{let{tabs:t}=this.parts,i=e.target,s=i.closest("button.close")!==null,l=i.closest(".tabs > div"),o=[...t.children].indexOf(l);if(s){let n=this.bodies[o];if(!this.onCloseTab||this.onCloseTab(n)!==!1)this.removeTabBody(this.bodies[o])}else if(o>-1)this.value=o};setupTabs=()=>{let{tabs:e}=this.parts,t=[...this.children].filter((i)=>!i.hasAttribute("slot")&&i.hasAttribute("name"));if(e.textContent="",this.value>=t.length)this.value=t.length-1;for(let i in t){let s=t[i],l=`${this.instanceId}-${i}`;s.id=l;let o=this.makeTab(this,s,l);e.append(o)}};connectedCallback(){super.connectedCallback();let{tabs:e}=this.parts;e.addEventListener("click",this.pickTab),e.addEventListener("keydown",this.keyTab),this.setupTabs(),O.allInstances.add(this)}disconnectedCallback(){super.disconnectedCallback(),O.allInstances.delete(this)}localeChanged=()=>{this.queueRender()};onResize(){this.queueRender()}render(){let{tabs:e,selected:t}=this.parts,i=this.bodies;for(let s=0;s<i.length;s++){let l=i[s],o=e.children[s];if(this.value===Number(s))o.setAttribute("aria-selected","true"),t.style.marginLeft=`${o.offsetLeft-e.offsetLeft}px`,t.style.width=`${o.offsetWidth}px`,l.toggleAttribute("hidden",!1);else o.toggleAttribute("aria-selected",!1),l.toggleAttribute("hidden",!0)}}}var J1=Q1.elementCreator({tag:"xin-tabs"});var{div:Ht,xinSlot:Lo,style:Ao,button:be,pre:Eo}=f,Ho=()=>"https://cdn.jsdelivr.net/npm/sucrase@3.35.0/+esm",Po=(async()=>{}).constructor;class Oe extends m{persistToDom=!1;prettier=!1;iframe=!1;prefix="lx";storageKey="live-example-payload";context={};uuid=crypto.randomUUID();remoteId="";lastUpdate=0;interval;static insertExamples(e,t={}){let i=[...e.querySelectorAll(".language-html,.language-js,.language-css")].filter((s)=>!s.closest(Oe.tagName)).map((s)=>({block:s.parentElement,language:s.classList[0].split("-").pop(),code:s.innerText}));for(let s=0;s<i.length;s+=1){let l=[i[s]];while(s<i.length-1&&i[s].block.nextElementSibling===i[s+1].block)l.push(i[s+1]),s+=1;let o=Z1({context:t});l[0].block.parentElement.insertBefore(o,l[0].block),l.forEach((n)=>{switch(n.language){case"js":o.js=n.code;break;case"html":o.html=n.code;break;case"css":o.css=n.code;break}n.block.remove()}),o.showDefaultTab()}}constructor(){super();this.initAttributes("persistToDom","prettier","iframe")}get activeTab(){let{editors:e}=this.parts;return[...e.children].find((t)=>t.getAttribute("hidden")===null)}getEditorValue(e){return this.parts[e].value}setEditorValue(e,t){let i=this.parts[e];i.value=t}get css(){return this.getEditorValue("css")}set css(e){this.setEditorValue("css",e)}get html(){return this.getEditorValue("html")}set html(e){this.setEditorValue("html",e)}get js(){return this.getEditorValue("js")}set js(e){this.setEditorValue("js",e)}updateUndo=()=>{let{activeTab:e}=this,{undo:t,redo:i}=this.parts;if(e instanceof ue&&e.editor!==void 0){let s=e.editor.session.getUndoManager();t.disabled=!s.hasUndo(),i.disabled=!s.hasRedo()}else t.disabled=!0,i.disabled=!0};undo=()=>{let{activeTab:e}=this;if(e instanceof ue)e.editor.undo()};redo=()=>{let{activeTab:e}=this;if(e instanceof ue)e.editor.redo()};get isMaximized(){return this.classList.contains("-maximize")}flipLayout=()=>{this.classList.toggle("-vertical")};exampleMenu=()=>{S({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}]})};handleShortcuts=(e)=>{if(e.metaKey||e.ctrlKey){let t=!1;switch(e.key){case"s":case"r":this.refresh(),t=!0;break;case"/":this.flipLayout();break;case"c":if(e.shiftKey)this.copy(),t=!0;break}if(t)e.preventDefault(),e.stopPropagation()}};content=()=>[Ht({part:"example"},Ao({part:"style"}),be({title:"example menu",part:"exampleWidgets",onClick:this.exampleMenu},u.code())),Ht({class:"code-editors",part:"codeEditors",onKeydown:this.handleShortcuts,hidden:!0},J1({part:"editors",onChange:this.updateUndo},Ze({name:"js",mode:"javascript",part:"js"}),Ze({name:"html",mode:"html",part:"html"}),Ze({name:"css",mode:"css",part:"css"}),Ht({slot:"after-tabs",class:"row"},be({title:"undo",part:"undo",class:"transparent",onClick:this.undo},u.cornerUpLeft()),be({title:"redo",part:"redo",class:"transparent",onClick:this.redo},u.cornerUpRight()),be({title:"flip direction (⌘/ | ^/)",class:"transparent",onClick:this.flipLayout},u.columns({class:"layout-indicator"})),be({title:"copy as markdown (⌘⇧C | ^⇧C)",class:"transparent",onClick:this.copy},u.copy()),be({title:"reload (⌘R | ^R)",class:"transparent",onClick:this.refreshRemote},u.refreshCw()),be({title:"close code",class:"transparent",onClick:this.closeCode},u.x())))),Lo({part:"sources",hidden:!0})];connectedCallback(){super.connectedCallback();let{sources:e}=this.parts;this.initFromElements([...e.children]),addEventListener("storage",this.remoteChange),this.interval=setInterval(this.remoteChange,500),this.undoInterval=setInterval(this.updateUndo,250)}disconnectedCallback(){super.disconnectedCallback();let{storageKey:e,remoteKey:t}=this;clearInterval(this.interval),clearInterval(this.undoInterval),localStorage.setItem(e,JSON.stringify({remoteKey:t,sentAt:Date.now(),close:!0}))}copy=()=>{let e=this.js!==""?"```js\n"+this.js.trim()+"\n```\n":"",t=this.html!==""?"```html\n"+this.html.trim()+"\n```\n":"",i=this.css!==""?"```css\n"+this.css.trim()+"\n```\n":"";navigator.clipboard.writeText(e+t+i)};toggleMaximize=()=>{this.classList.toggle("-maximize")};get remoteKey(){return this.remoteId!==""?this.prefix+"-"+this.remoteId:this.prefix+"-"+this.uuid}remoteChange=(e)=>{let t=localStorage.getItem(this.storageKey);if(e instanceof StorageEvent&&e.key!==this.storageKey)return;if(t===null)return;let{remoteKey:i,sentAt:s,css:l,html:o,js:n,close:a}=JSON.parse(t);if(s<=this.lastUpdate)return;if(i!==this.remoteKey)return;if(a===!0)window.close();console.log("received new code",s,this.lastUpdate),this.lastUpdate=s,this.css=l,this.html=o,this.js=n,this.refresh()};showCode=()=>{this.classList.add("-maximize"),this.classList.toggle("-vertical",this.offsetHeight>this.offsetWidth),this.parts.codeEditors.hidden=!1};closeCode=()=>{if(this.remoteId!=="")window.close();else this.classList.remove("-maximize"),this.parts.codeEditors.hidden=!0};openEditorWindow=()=>{let{storageKey:e,remoteKey:t,css:i,html:s,js:l,uuid:o,prefix:n}=this,a=location.href.split("?")[0]+`?${n}=${o}`;localStorage.setItem(e,JSON.stringify({remoteKey:t,sentAt:Date.now(),css:i,html:s,js:l})),window.open(a)};refreshRemote=()=>{let{remoteKey:e,css:t,html:i,js:s}=this;localStorage.setItem(this.storageKey,JSON.stringify({remoteKey:e,sentAt:Date.now(),css:t,html:i,js:s}))};updateSources=()=>{if(this.persistToDom){let{sources:e}=this.parts;e.innerText="";for(let t of["js","css","html"])if(this[t])e.append(Eo({class:`language-${t}`,innerHTML:this[t]}))}};refresh=async()=>{if(this.remoteId!=="")return;let{transform:e}=await import(Ho()),{example:t,style:i}=this.parts;if(this.iframe)await this.refreshInIframe(e);else await this.refreshInline(e,t,i)};async refreshInline(e,t,i){let s=Ht({class:"preview"});s.innerHTML=this.html,i.innerText=this.css;let l=t.querySelector(".preview");if(l)l.replaceWith(s);else t.insertBefore(s,this.parts.exampleWidgets);let o={preview:s,...this.context};try{let n=this.js;for(let r of Object.keys(this.context))n=n.replace(new RegExp(`import \\{(.*)\\} from '${r}'`,"g"),`const {$1} = ${r.replace(/-/g,"")}`);if(new Po(...Object.keys(o).map((r)=>r.replace(/-/g,"")),e(n,{transforms:["typescript"]}).code)(...Object.values(o)).catch((r)=>console.error(r)),this.persistToDom)this.updateSources()}catch(n){console.error(n),window.alert(`Error: ${n}, the console may have more information…`)}}registerComponentsInIframe(e){let t=e.customElements;if(!t)return;let i=this.context["tosijs-ui"];if(!i)return;for(let[,s]of Object.entries(i))if(typeof s==="function"&&"tagName"in s){let l=s.tagName;if(l&&!t.get(l)){let o=customElements.get(l);if(o)try{t.define(l,o)}catch(n){}}}}async refreshInIframe(e){let{example:t}=this.parts,i=t.querySelector("iframe.preview-iframe");if(!i){i=document.createElement("iframe"),i.className="preview-iframe",i.style.cssText="width: 100%; height: 100%; border: none;";let a=t.querySelector(".preview");if(a)a.replaceWith(i);else t.insertBefore(i,this.parts.exampleWidgets)}let s=i.contentDocument;if(!s){console.error("Could not access iframe document");return}let l=i.contentWindow;if(this.context.tosijs)l.tosijs=this.context.tosijs;if(this.context["tosijs-ui"])l.tosijsui=this.context["tosijs-ui"];s.open(),s.write(`<!DOCTYPE html>
73
73
  <html>
74
74
  <head>
75
75
  <style>
@@ -81,14 +81,14 @@ Please report this to https://github.com/markedjs/marked.`,e){let s="<p>An error
81
81
  <body>
82
82
  <div class="preview">${this.html}</div>
83
83
  </body>
84
- </html>`),s.close(),this.registerComponentsInIframe(o);let l=s.querySelector(".preview");if(!l){console.error("Could not find preview element in iframe");return}let n={preview:l,...this.context};try{let a=this.js;for(let d of Object.keys(this.context))a=a.replace(new RegExp(`import \\{(.*)\\} from '${d}'`,"g"),`const {$1} = ${d.replace(/-/g,"")}`);if(new(o.eval("(async () => {}).constructor"))(...Object.keys(n).map((d)=>d.replace(/-/g,"")),e(a,{transforms:["typescript"]}).code)(...Object.values(n)).catch((d)=>console.error(d)),this.persistToDom)this.updateSources()}catch(a){console.error(a),window.alert(`Error: ${a}, the console may have more information…`)}}initFromElements(e){for(let t of e){t.hidden=!0;let[i,...s]=t.innerHTML.split(`
85
- `);if(["js","html","css"].includes(i)){let o=s.filter((n)=>n.trim()!=="").map((n)=>n.match(/^\s*/)[0].length).sort()[0],l=(o>0?s.map((n)=>n.substring(o)):s).join(`
86
- `);this.parts[i].value=l}else{let o=["js","html","css"].find((l)=>t.matches(`.language-${l}`));if(o)this.parts[o].value=o==="html"?t.innerHTML:t.innerText}}}showDefaultTab(){let{editors:e}=this.parts;if(this.js!=="")e.value=0;else if(this.html!=="")e.value=1;else if(this.css!=="")e.value=2}render(){if(super.render(),this.remoteId!==""){let e=localStorage.getItem(this.storageKey);if(e!==null){let{remoteKey:t,sentAt:i,css:s,html:o,js:l}=JSON.parse(e);if(this.remoteKey!==t)return;this.lastUpdate=i,this.css=s,this.html=o,this.js=l,this.parts.example.hidden=!0,this.parts.codeEditors.hidden=!1,this.classList.add("-maximize"),this.updateUndo()}}else this.refresh()}}var N1=je.elementCreator({tag:"xin-example",styleSpec:{":host":{"--xin-example-height":"320px","--code-editors-bar-bg":"#777","--code-editors-bar-color":"#fff","--widget-bg":"#fff8","--widget-color":"#000",position:"relative",display:"flex",height:"var(--xin-example-height)",background:"var(--background)",boxSizing:"border-box"},":host.-maximize":{position:"fixed",left:"0",top:"0",height:"100vh",width:"100vw",margin:"0 !important"},".-maximize":{zIndex:101},":host.-vertical":{flexDirection:"column"},":host .layout-indicator":{transition:"0.5s ease-out",transform:"rotateZ(270deg)"},":host.-vertical .layout-indicator":{transform:"rotateZ(180deg)"},":host.-maximize .hide-if-maximized, :host:not(.-maximize) .show-if-maximized":{display:"none"},':host [part="example"]':{flex:"1 1 50%",height:"100%",position:"relative",overflowX:"auto"},":host .preview":{height:"100%",position:"relative",overflow:"hidden",boxShadow:"inset 0 0 0 2px #8883"},':host [part="editors"]':{flex:"1 1 200px",height:"100%",position:"relative"},':host [part="exampleWidgets"]':{position:"absolute",left:"5px",bottom:"5px","--widget-color":"var(--brand-color)",borderRadius:"5px",width:"44px",height:"44px",lineHeight:"44px",zIndex:"100"},':host [part="exampleWidgets"] svg':{stroke:"var(--widget-color)"},":host .code-editors":{overflow:"hidden",background:"white",position:"relative",top:"0",right:"0",flex:"1 1 50%",height:"100%",flexDirection:"column",zIndex:"10"},":host .code-editors:not([hidden])":{display:"flex"},":host .code-editors > h4":{padding:"5px",margin:"0",textAlign:"center",background:"var(--code-editors-bar-bg)",color:"var(--code-editors-bar-color)",cursor:"move"},":host button.transparent, :host .sizer":{width:"32px",height:"32px",lineHeight:"32px",textAlign:"center",padding:"0",margin:"0"},":host .sizer":{cursor:"nwse-resize"}}}),Cl=new URL(window.location.href).searchParams,Ss=Cl.get("lx");if(Ss)document.title+=" [code editor]",document.body.textContent="",document.body.append(N1({remoteId:Ss}));var{slot:Fs}=f;class Te extends m{minSize=800;navSize=200;compact=!1;contentVisible=!1;value="normal";content=[Fs({name:"nav",part:"nav"}),Fs({part:"content"})];static styleSpec={":host":{display:"grid",gridTemplateColumns:`${h.navWidth("50%")} ${h.contentWidth("50%")}`,gridTemplateRows:"100%",position:"relative",margin:h.margin("0 0 0 -100%"),transition:h.sideNavTransition("0.25s ease-out")},":host slot":{position:"relative"},":host slot:not([name])":{display:"block"},':host slot[name="nav"]':{display:"block"}};onResize=()=>{let{content:e}=this.parts,t=this.offsetParent;if(t===null)return;let i=this.value;if(this.compact=t.offsetWidth<this.minSize,[...this.childNodes].find((o)=>o instanceof Element?o.getAttribute("slot")!=="nav":!0)===void 0)i="compact/nav",this.style.setProperty("--nav-width","100%"),this.style.setProperty("--content-width","0%");else if(!this.compact)i="normal",e.classList.add("-xin-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(e.classList.remove("-xin-sidenav-visible"),this.style.setProperty("--nav-width","50%"),this.style.setProperty("--content-width","50%"),this.contentVisible)i="compact/content",this.style.setProperty("--margin","0 0 0 -100%");else i="compact/nav",this.style.setProperty("--margin","0 -100% 0 0");if(this.value!==i)this.value=i};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()}constructor(){super();this.initAttributes("minSize","navSize","compact","contentVisible")}render(){super.render(),this.onResize()}}var R1=Te.elementCreator({tag:"xin-sidenav"});var{div:$1,span:U1,a:ne,header:wl,button:bl,template:Ml,input:Bl,h2:zl}=f;function Ll(e){let{docs:t,context:i={},projectName:s="",projectLinks:o={},navSize:l=200,minSize:n=600}=e,a=document.location.search!==""?document.location.search.substring(1).split("&")[0]:t[0]?.filename||"README.md",r=t.find((y)=>y.filename===a)||t[0],{app:p}=J({app:{docs:t,currentDoc:r,compact:!1}});ee.docLink={toDOM(y,C){y.setAttribute("href",`?${C}`)}},ee.current={toDOM(y,C){let A=y.getAttribute("href")||"";y.classList.toggle("current",C===A.substring(1))}};let d=ct(()=>{let y=x.value.toLocaleLowerCase();p.docs.forEach((C)=>{C.hidden=!C.title.toLocaleLowerCase().includes(y)&&!C.text.toLocaleLowerCase().includes(y)}),Be(p.docs)}),x=Bl({slot:"nav",placeholder:"search",type:"search",style:{width:"calc(100% - 10px)",margin:"5px"},onInput:d});window.addEventListener("popstate",()=>{let y=window.location.search.substring(1);p.currentDoc=p.docs.find((C)=>C.filename===y)||p.docs[0]});let g=[bl({class:"iconic",style:{color:c.linkColor},title:"navigation",bind:{value:p.compact,binding:{toDOM(y,C){y.style.display=C?"":"none",y.nextSibling.style.display=C?"":"none"}}},onClick(){let y=document.querySelector(Te.tagName);y.contentVisible=!y.contentVisible}},u.menu()),U1({style:{flex:"0 0 10px"}})];if(s)g.push(ne({href:"/",style:{display:"flex",alignItems:"center",borderBottom:"none"}},o.tosijs?u.tosiUi({style:{_xinIconSize:40,marginRight:10}}):U1(),zl(s)));if(g.push(U1({class:"elastic"})),o.tosijs)g.push(ne({class:"iconic",title:"tosijs",target:"_blank"},u.tosi(),{href:o.tosijs}));if(o.discord)g.push(ne({class:"iconic",title:"discord",target:"_blank"},u.discord(),{href:o.discord}));if(o.blog)g.push(ne({class:"iconic",title:"blog",target:"_blank"},u.blog(),{href:o.blog}));if(o.github)g.push(ne({class:"iconic",title:"github",target:"_blank"},u.github(),{href:o.github}));if(o.npm)g.push(ne({class:"iconic",title:"npmjs",target:"_blank"},u.npm(),{href:o.npm}));return $1({style:{display:"flex",flexDirection:"column",maxWidth:"100vw",height:"100vh",overflow:"hidden"}},wl(...g),R1({name:"Documentation",navSize:l,minSize:n,style:{flex:"1 1 auto",overflow:"hidden"},onChange(){let y=document.querySelector(Te.tagName);p.compact=y.compact}},x,$1({slot:"nav",style:{display:"flex",flexDirection:"column",width:"100%",height:"calc(100% - 44px)",overflowY:"scroll"},bindList:{hiddenProp:"hidden",value:p.docs}},Ml(ne({class:"doc-link",bindCurrent:"app.currentDoc.filename",bindDocLink:"^.filename",onClick(y){let C=y.target,A=he(y.target),w=y.target.closest("xin-sidenav");w.contentVisible=!0;let{href:B}=C;window.history.pushState({href:B},"",B),p.currentDoc=A,y.preventDefault()}},Q({bindText:"^.title"})))),$1({style:{position:"relative",overflowY:"scroll",height:"100%"}},ne({class:"view-source",target:"_blank",style:{display:o.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(y){y.target.style.opacity="0.9"},onMouseleave(y){y.target.style.opacity="0.7"},bind:{value:p.currentDoc,binding(y,C){if(o.github&&C.path&&C.path!=="README.md")y.href=`${o.github}/blob/main/${C.path}`,y.style.display="flex";else y.style.display="none"}}},u.github({style:{_xinIconSize:16}}),"View source on GitHub"),D1({style:{display:"block",maxWidth:"44em",margin:"auto",padding:"0 1em",overflow:"hidden"},bindValue:"app.currentDoc.text",didRender(){je.insertExamples(this,i)}}))))}var{div:q,slot:El}=f;class N extends m{static angleSize=15;static gridSize=8;static snapAngle=!1;static snapToGrid=!1;static styleSpec={":host":{"--handle-bg":"#fff4","--handle-color":"#2228","--handle-hover-bg":"#8ff8","--handle-hover-color":"#222","--handle-size":"20px","--handle-padding":"2px"},":host ::slotted(*)":{position:"absolute"},":host > :not(style,slot)":{boxSizing:"border-box",content:'" "',position:"absolute",display:"flex",height:c.handleSize,width:c.handleSize,padding:c.handlePadding,"--text-color":c.handleColor,background:c.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(${c.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":c.handleHoverColor,background:c.handleHoverBg}};static snappedCoords(e,t){let{gridSize:i}=N;return N.snapToGrid||e.shiftKey?t.map((s)=>Math.round(s/i)*i):t}static snappedAngle(e,t){let{angleSize:i}=N;return N.snapAngle||e.shiftKey?Math.round(t/i)*i:t}get locked(){let e=this.parentElement;if(e.style.inset)return{left:!0,top:!0,bottom:!0,right:!0};let t=e.style.right.match(/\d/)!==null,i=!t||e.style.left.match(/\d/)!==null,s=e.style.bottom.match(/\d/)!==null,o=!s||e.style.top.match(/\d/)!==null;return{left:i,top:o,bottom:s,right:t}}set locked(e){let{bottom:t,right:i}=e,{left:s,top:o}=e,l=this.parentElement,n=l.offsetLeft,a=l.offsetTop,r=l.offsetWidth,p=l.offsetHeight,d=l.offsetParent.offsetWidth-n-r,x=l.offsetParent.offsetHeight-a-p;if(Object.assign(l.style,{left:"",right:"",top:"",bottom:"",width:"",height:""}),!i)s=!0;if(!t)o=!0;if(s)l.style.left=n+"px";if(i)l.style.right=d+"px";if(s&&i)l.style.width="auto";else l.style.width=r+"px";if(o)l.style.top=a+"px";if(t)l.style.bottom=x+"px";if(o&&t)l.style.height="auto";else l.style.height=p+"px";this.queueRender()}get coords(){let{top:e,left:t,right:i,bottom:s}=this.parentElement.style;return{top:parseFloat(e),left:parseFloat(t),right:parseFloat(i),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=(e)=>{let{locked:t}=this;this.locked=t;let i=this.parentElement,{top:s,left:o,bottom:l,right:n}=this.coords;T(e,(a,r,p)=>{if([a,r]=N.snappedCoords(p,[a,r]),!isNaN(s))i.style.top=s+r+"px";if(!isNaN(l))i.style.bottom=l-r+"px";if(!isNaN(o))i.style.left=o+a+"px";if(!isNaN(n))i.style.right=n-a+"px";if(p.type==="mouseup")return this.triggerChange(),!0})};resize=(e)=>{let t=this.parentElement,{locked:i}=this;this.locked=Object.assign({left:!0,top:!0,right:!0,bottom:!0});let[s,o]=[this.right,this.bottom];T(e,(l,n,a)=>{let r=s-l,p=o-n;if([r,p]=N.snappedCoords(a,[r,p]),t.style.right=r+"px",t.style.bottom=p+"px",a.type==="mouseup")return this.locked=i,this.triggerChange(),!0})};adjustSize=(e)=>{let t=this.parentElement,{locked:i}=this,s=e.target.getAttribute("part");this.locked=Object.assign({left:!0,right:!0,top:!0,bottom:!0});let o=this[s];T(e,(l,n,a)=>{let[r]=N.snappedCoords(a,[o+(["left","right"].includes(s)?l:n)*(["right","bottom"].includes(s)?-1:1)]);if(t.style[s]=r+"px",a.type==="mouseup")return this.locked=i,this.triggerChange(),!0})};get rect(){return this.parentElement.getBoundingClientRect()}get center(){let e=this.parentElement.getBoundingClientRect();return{x:e.x+e.width*0.5,y:e.y+e.height*0.5}}get element(){return this.parentElement}adjustRotation=(e)=>{let{center:t}=this,{transformOrigin:i}=this.element.style;if(!i)this.element.style.transformOrigin="50% 50%";T(e,(s,o,l)=>{let{clientX:n,clientY:a}=l,r=n-t.x,p=a-t.y,d=p>0?90:-90;if(r!==0)d=Math.atan2(p,r)*180/Math.PI;if(d=N.snappedAngle(l,d),d===0)this.element.style.transformOrigin="",this.element.style.transform="";else this.element.style.transform=`rotate(${d}deg)`;return this.triggerChange(),l.type==="mouseup"})};toggleLock=(e)=>{let{locked:t}=this,i=e.target.title.split(" ")[1];t[i]=!t[i],this.locked=t,this.queueRender(),e.stopPropagation(),e.preventDefault()};content=()=>[q({part:"move",style:{top:"50%",left:"50%",transform:"translate(-50%,-50%)"}},u.move()),q({part:"left",title:"resize left",class:"drag-size",style:{left:"-6px",width:"8px"}}),q({part:"right",title:"resize right",class:"drag-size",style:{left:"calc(100% - 2px)",width:"8px"}}),q({part:"top",title:"resize top",class:"drag-size",style:{top:"-6px",height:"8px",cursor:"ns-resize"}}),q({part:"bottom",title:"resize bottom",class:"drag-size",style:{top:"calc(100% - 2px)",height:"8px",cursor:"ns-resize"}}),q({part:"resize",style:{top:"100%",left:"100%"}},u.resize()),q({part:"rotate",style:{top:"50%",right:"0"}},u.refreshCw()),q({part:"lockLeft",title:"lock left",style:{top:"50%",left:0,transform:"translate(-100%, -50%)"}},u.unlock(),u.lock()),q({part:"lockRight",title:"lock right",style:{top:"50%",left:"100%",transform:"translate(0%, -50%)"}},u.unlock(),u.lock()),q({part:"lockTop",title:"lock top",style:{top:0,left:"50%",transform:"translate(-50%, -100%)"}},u.unlock(),u.lock()),q({part:"lockBottom",title:"lock bottom",style:{top:"100%",left:"50%",transform:"translate(-50%, 0%)"}},u.unlock(),u.lock()),El()];constructor(){super();this.initAttributes("rotationSnap","positionSnap")}connectedCallback(){super.connectedCallback();let{left:e,right:t,top:i,bottom:s,lockLeft:o,lockRight:l,lockTop:n,lockBottom:a,move:r,resize:p,rotate:d}=this.parts,x={passive:!0};[e,t,i,s].forEach((g)=>{g.addEventListener("mousedown",this.adjustSize,x),g.addEventListener("touchstart",this.adjustSize,x)}),[o,l,n,a].forEach((g)=>{g.addEventListener("click",this.toggleLock)}),p.addEventListener("mousedown",this.resize,x),r.addEventListener("mousedown",this.adjustPosition,x),d.addEventListener("mousedown",this.adjustRotation,x),p.addEventListener("touchstart",this.resize,x),r.addEventListener("touchstart",this.adjustPosition,x),d.addEventListener("touchstart",this.adjustRotation,x)}render(){if(super.render(),!this.parentElement)return;let{lockLeft:e,lockRight:t,lockTop:i,lockBottom:s}=this.parts,{left:o,right:l,top:n,bottom:a}=this.locked;e.toggleAttribute("locked",o),t.toggleAttribute("locked",l),i.toggleAttribute("locked",n),s.toggleAttribute("locked",a)}}var Hl=N.elementCreator({tag:"xin-editable"});var{div:Al,input:Pl,button:W1,span:jl}=f,Os=(e)=>e,Vs="null filter, everything matches",G1={contains:{caption:"contains",negative:"does not contain",makeTest:(e)=>{return e=e.toLocaleLowerCase(),(t)=>String(t).toLocaleLowerCase().includes(e)}},hasTags:{caption:"has tags",makeTest:(e)=>{let t=e.split(/[\s,]/).map((i)=>i.trim().toLocaleLowerCase()).filter((i)=>i!=="");return(i)=>Array.isArray(i)&&t.find((s)=>!i.includes(s))===void 0}},doesNotHaveTags:{caption:"does not have tags",makeTest:(e)=>{let t=e.split(/[\s,]/).map((i)=>i.trim().toLocaleLowerCase()).filter((i)=>i!=="");return(i)=>Array.isArray(i)&&t.find((s)=>i.includes(s))===void 0}},equals:{caption:"=",negative:"≠",makeTest:(e)=>{if(isNaN(Number(e)))return e=String(e).toLocaleLowerCase(),(i)=>String(i).toLocaleLowerCase()===e;let t=Number(e);return(i)=>Number(i)===t}},after:{caption:"is after",negative:"is before",makeTest:(e)=>{let t=new Date(e);return(i)=>new Date(i)>t}},greaterThan:{caption:">",negative:"≤",makeTest:(e)=>{if(!isNaN(Number(e))){let t=Number(e);return(i)=>Number(i)>t}return e=e.toLocaleLowerCase(),(t)=>String(t).toLocaleLowerCase()>e}},truthy:{caption:"is true/non-empty/non-zero",negative:"is false/empty/zero",needsValue:!1,makeTest:()=>(e)=>!!e},isTrue:{caption:"= true",needsValue:!1,makeTest:()=>(e)=>e===!0},isFalse:{caption:"= false",needsValue:!1,makeTest:()=>(e)=>e===!1}},Tl={description:"anything",test:()=>!0};function Is(e){return e.options[e.selectedIndex]?.caption||""}class K1 extends m{fields=[];filters=G1;haystack="*";condition="contains";needle="";content=()=>[V({part:"haystack"}),V({part:"condition"}),Pl({part:"needle",type:"search"}),jl({part:"padding"}),W1({part:"remove",title:"delete"},u.trash())];filter=Tl;constructor(){super();this.initAttributes("haystack","condition","needle")}get state(){let{haystack:e,needle:t,condition:i}=this.parts;return{haystack:e.value,needle:t.value,condition:i.value}}set state(e){Object.assign(this,e)}buildFilter=()=>{let{haystack:e,condition:t,needle:i}=this.parts,s=t.value.startsWith("~"),o=s?t.value.slice(1):t.value,l=this.filters[o];i.hidden=l.needsValue===!1;let n=l.needsValue===!1?l.makeTest(void 0):l.makeTest(i.value),a=e.value,r;if(a!=="*")r=s?(x)=>!n(x[a]):(x)=>n(x[a]);else r=s?(x)=>Object.values(x).find((g)=>!n(g))!==void 0:(x)=>Object.values(x).find((g)=>n(g))!==void 0;let p=l.needsValue!==!1?` "${i.value}"`:"",d=`${Is(e)} ${Is(t)}${p}`;this.filter={description:d,test:r},this.parentElement?.dispatchEvent(new Event("change"))};connectedCallback(){super.connectedCallback();let{haystack:e,condition:t,needle:i,remove:s}=this.parts;e.addEventListener("change",this.buildFilter),t.addEventListener("change",this.buildFilter),i.addEventListener("input",this.buildFilter),e.value=this.haystack,t.value=this.condition,i.value=this.needle,s.addEventListener("click",()=>{let{parentElement:o}=this;this.remove(),o?.dispatchEvent(new Event("change"))})}render(){super.render();let{haystack:e,condition:t,needle:i}=this.parts;if(e.options=[{caption:"any field",value:"*"},...this.fields.map((s)=>s.prop)],t.options=Object.keys(this.filters).map((s)=>{let o=this.filters[s];return o.negative!==void 0?[{caption:o.caption,value:s},{caption:o.negative,value:"~"+s}]:{caption:o.caption,value:s}}).flat(),this.haystack!=="")e.value=this.haystack;if(this.condition!=="")t.value=this.condition;if(this.needle!=="")i.value=this.needle;this.buildFilter()}}var Et=K1.elementCreator({tag:"xin-filter-part",styleSpec:{":host":{display:"flex"},":host .xin-icon:":{verticalAlign:"middle",pointerEvents:"none"},':host [part="haystack"], :host [part="condition"]':{flex:"1"},':host [part="needle"]':{flex:2},':host [hidden]+[part="padding"]':{display:"block",content:" ",flex:"1 1 auto"}}});class J1 extends m{_fields=[];get fields(){return this._fields}set fields(e){this._fields=e,this.queueRender()}get state(){let{filterContainer:e}=this.parts;return[...e.children].map((t)=>t.state)}set state(e){let{fields:t,filters:i}=this,{filterContainer:s}=this.parts;s.textContent="";for(let o of e)s.append(Et({fields:t,filters:i,...o}))}filter=Os;description=Vs;addFilter=()=>{let{fields:e,filters:t}=this,{filterContainer:i}=this.parts;i.append(Et({fields:e,filters:t}))};content=()=>[W1({part:"add",title:"add filter condition",onClick:this.addFilter,class:"round"},u.plus()),Al({part:"filterContainer"}),W1({part:"reset",title:"reset filter",onClick:this.reset},u.x())];filters=G1;reset=()=>{let{fields:e,filters:t}=this,{filterContainer:i}=this.parts;this.description=Vs,this.filter=Os,i.textContent="",i.append(Et({fields:e,filters:t})),this.dispatchEvent(new Event("change"))};buildFilter=()=>{let{filterContainer:e}=this.parts;if(e.children.length===0){this.reset();return}let t=[...e.children].map((s)=>s.filter),i=t.map((s)=>s.test);this.description=t.map((s)=>s.description).join(", "),this.filter=(s)=>s.filter((o)=>i.find((l)=>l(o)===!1)===void 0),this.dispatchEvent(new Event("change"))};connectedCallback(){super.connectedCallback();let{filterContainer:e}=this.parts;e.addEventListener("change",this.buildFilter),this.reset()}render(){super.render()}}var Sl=J1.elementCreator({tag:"xin-filter",styleSpec:{":host":{height:"auto",display:"grid",gridTemplateColumns:"32px calc(100% - 64px) 32px",alignItems:"center"},':host [part="filterContainer"]':{display:"flex",flexDirection:"column",alignItems:"stretch",flex:"1 1 auto"},':host [part="haystack"]':{_fieldWidth:"100px"},':host [part="condition"]':{_fieldWidth:"60px"},':host [part="needle"]':{_fieldWidth:"80px"},':host [part="add"], :host [part="reset"]':{"--button-size":"var(--touch-size, 32px)",borderRadius:"999px",height:"var(--button-size)",lineHeight:"var(--button-size)",margin:"0",padding:"0",textAlign:"center",width:"var(--button-size)",flex:"0 0 var(--button-size)"}}});var{form:Fl,slot:Q1,xinSlot:Ds,label:Ol,input:Vl,span:Il}=f;function ae(e,t,i){if(i!==""&&i!==!1)e.setAttribute(t,i);else e.removeAttribute(t)}function Dl(e){switch(e.type){case"checkbox":return e.checked;case"radio":{let t=e.parentElement?.querySelector(`input[type="radio"][name="${e.name}"]:checked`);return t?t.value:null}case"range":case"number":return Number(e.value);default:return Array.isArray(e.value)&&e.value.length===0?null:e.value}}function _s(e,t){if(!(e instanceof HTMLElement));else if(e instanceof HTMLInputElement)switch(e.type){case"checkbox":e.checked=t;break;case"radio":e.checked=t===e.value;break;default:e.value=String(t||"")}else if(t!=null||e.value!=null)e.value=String(t||"")}class Ht extends m{caption="";key="";type="";optional=!1;pattern="";placeholder="";min="";max="";step="";fixedPrecision=-1;value=null;content=Ol(Ds({part:"caption"}),Il({part:"field"},Ds({part:"input",name:"input"}),Vl({part:"valueHolder"})));constructor(){super();this.initAttributes("caption","key","type","optional","pattern","placeholder","min","max","step","fixedPrecision","prefix","suffix")}valueChanged=!1;handleChange=()=>{let{input:e,valueHolder:t}=this.parts,i=e.children[0]||t;if(i!==t)t.value=i.value;this.value=Dl(i),this.valueChanged=!0;let s=this.closest("xin-form");if(s&&this.key!=="")switch(this.type){case"checkbox":s.fields[this.key]=i.checked;break;case"number":case"range":if(this.fixedPrecision>-1)i.value=Number(i.value).toFixed(this.fixedPrecision),s.fields[this.key]=Number(i.value);else s.fields[this.key]=Number(i.value);break;default:s.fields[this.key]=i.value}};initialize(e){let t=e.fields[this.key]!==void 0?e.fields[this.key]:this.value;if(t!=null&&t!==""){if(e.fields[this.key]==null)e.fields[this.key]=t;this.value=t}}connectedCallback(){super.connectedCallback();let{input:e,valueHolder:t}=this.parts,i=this.closest(et.tagName);if(i instanceof et)this.initialize(i);t.addEventListener("change",this.handleChange),e.addEventListener("change",this.handleChange,!0)}render(){if(this.valueChanged){this.valueChanged=!1;return}let{input:e,caption:t,valueHolder:i,field:s}=this.parts;if(t.textContent?.trim()==="")t.append(this.caption!==""?this.caption:this.key);if(this.type==="text"){e.textContent="";let o=f.textarea({value:this.value});if(this.placeholder)o.setAttribute("placeholder",this.placeholder);e.append(o)}else if(this.type==="color")e.textContent="",e.append(x1({value:this.value}));else if(e.children.length===0){if(ae(i,"placeholder",this.placeholder),ae(i,"type",this.type),ae(i,"pattern",this.pattern),ae(i,"min",this.min),ae(i,"max",this.max),this.step)ae(i,"step",this.step);else if(this.fixedPrecision>0&&this.type==="number")ae(i,"step",Math.pow(10,-this.fixedPrecision))}if(_s(i,this.value),_s(e.children[0],this.value),this.prefix?s.setAttribute("prefix",this.prefix):s.removeAttribute("prefix"),this.suffix?s.setAttribute("suffix",this.suffix):s.removeAttribute("suffix"),i.classList.toggle("hidden",e.children.length>0),e.children.length>0)i.setAttribute("tabindex","-1");else i.removeAttribute("tabindex");e.style.display=e.children.length===0?"none":"",ae(i,"required",!this.optional)}}class et extends m{context={};value={};get isValid(){return[...this.querySelectorAll("*")].filter((t)=>t.required!==void 0).find((t)=>!t.reportValidity())===void 0}static styleSpec={":host":{display:"flex",flexDirection:"column"},":host::part(header), :host::part(footer)":{display:"flex"},":host::part(content)":{display:"flex",flexDirection:"column",overflow:"hidden auto",height:"100%",width:"100%",position:"relative",boxSizing:"border-box"},":host form":{display:"flex",flex:"1 1 auto",position:"relative",overflow:"hidden"}};content=[Q1({part:"header",name:"header"}),Fl({part:"form"},Q1({part:"content"})),Q1({part:"footer",name:"footer"})];getField=(e)=>{return this.querySelector(`xin-field[key="${e}"]`)};get fields(){if(typeof this.value==="string")try{this.value=JSON.parse(this.value)}catch(i){console.log("<xin-form> could not use its value, expects valid JSON"),this.value={}}let{getField:e}=this,t=this.dispatchEvent.bind(this);return new Proxy(this.value,{get(i,s){return i[s]},set(i,s,o){if(i[s]!==o){i[s]=o;let l=e(s);if(l)l.value=o;t(new Event("change"))}return!0}})}set fields(e){let t=[...this.querySelectorAll(Ht.tagName)];for(let i of t)i.value=e[i.key]}submit=()=>{this.parts.form.dispatchEvent(new Event("submit"))};handleSubmit=(e)=>{e.preventDefault(),e.stopPropagation(),this.submitCallback(this.value,this.isValid)};submitCallback=(e,t)=>{console.log("override submitCallback to handle this data",{value:e,isValid:t})};connectedCallback(){super.connectedCallback();let{form:e}=this.parts;e.addEventListener("submit",this.handleSubmit)}}var _l=Ht.elementCreator({tag:"xin-field",styleSpec:{':host [part="field"]':{position:"relative",display:"flex",alignItems:"center",gap:h.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}}}),ql=et.elementCreator({tag:"xin-form"});function qs(){return navigator.getGamepads().filter((t)=>t!==null).map((t)=>{let{id:i,axes:s,buttons:o}=t;return{id:i,axes:s,buttons:o.map((l,n)=>{let{pressed:a,value:r}=l;return{index:n,pressed:a,value:r}}).filter((l)=>l.pressed||l.value!==0).reduce((l,n)=>{return l[n.index]=n.value,l},{})}})}function Nl(){let e=qs();return e.length===0?"no active gamepads":e.map(({id:t,axes:i,buttons:s})=>{let o=i.map((n)=>n.toFixed(2)).join(" "),l=Object.keys(s).map((n)=>`[${n}](${s[Number(n)].toFixed(2)})`).join(" ");return`${t}
87
- ${o}
88
- ${l}`}).join(`
89
- `)}function Rl(e){let t={};return e.input.onControllerAddedObservable.add((i)=>{i.onMotionControllerInitObservable.add((s)=>{let o={};s.getComponentIds().forEach((n)=>{let a=s.getComponent(n);if(o[n]={pressed:a.pressed},a.onButtonStateChangedObservable.add(()=>{o[n].pressed=a.pressed}),a.onAxisValueChangedObservable)o[n].axes=[],a.onAxisValueChangedObservable.add((r)=>{o[n].axes=r})}),t[s.handedness]=o})}),t}function $l(e){if(e===void 0||Object.keys(e).length===0)return"no xr inputs";return Object.keys(e).map((t)=>{let i=e[t],s=Object.keys(i).filter((o)=>i[o].pressed).join(" ");return`${t}
84
+ </html>`),s.close(),this.registerComponentsInIframe(l);let o=s.querySelector(".preview");if(!o){console.error("Could not find preview element in iframe");return}let n={preview:o,...this.context};try{let a=this.js;for(let p of Object.keys(this.context))a=a.replace(new RegExp(`import \\{(.*)\\} from '${p}'`,"g"),`const {$1} = ${p.replace(/-/g,"")}`);if(new(l.eval("(async () => {}).constructor"))(...Object.keys(n).map((p)=>p.replace(/-/g,"")),e(a,{transforms:["typescript"]}).code)(...Object.values(n)).catch((p)=>console.error(p)),this.persistToDom)this.updateSources()}catch(a){console.error(a),window.alert(`Error: ${a}, the console may have more information…`)}}initFromElements(e){for(let t of e){t.hidden=!0;let[i,...s]=t.innerHTML.split(`
85
+ `);if(["js","html","css"].includes(i)){let l=s.filter((n)=>n.trim()!=="").map((n)=>n.match(/^\s*/)[0].length).sort()[0],o=(l>0?s.map((n)=>n.substring(l)):s).join(`
86
+ `);this.parts[i].value=o}else{let l=["js","html","css"].find((o)=>t.matches(`.language-${o}`));if(l)this.parts[l].value=l==="html"?t.innerHTML:t.innerText}}}showDefaultTab(){let{editors:e}=this.parts;if(this.js!=="")e.value=0;else if(this.html!=="")e.value=1;else if(this.css!=="")e.value=2}render(){if(super.render(),this.remoteId!==""){let e=localStorage.getItem(this.storageKey);if(e!==null){let{remoteKey:t,sentAt:i,css:s,html:l,js:o}=JSON.parse(e);if(this.remoteKey!==t)return;this.lastUpdate=i,this.css=s,this.html=l,this.js=o,this.parts.example.hidden=!0,this.parts.codeEditors.hidden=!1,this.classList.add("-maximize"),this.updateUndo()}}else this.refresh()}}var Z1=Oe.elementCreator({tag:"xin-example",styleSpec:{":host":{"--xin-example-height":"320px","--code-editors-bar-bg":"#777","--code-editors-bar-color":"#fff","--widget-bg":"#fff8","--widget-color":"#000",position:"relative",display:"flex",height:"var(--xin-example-height)",background:"var(--background)",boxSizing:"border-box"},":host.-maximize":{position:"fixed",left:"0",top:"0",height:"100vh",width:"100vw",margin:"0 !important"},".-maximize":{zIndex:101},":host.-vertical":{flexDirection:"column"},":host .layout-indicator":{transition:"0.5s ease-out",transform:"rotateZ(270deg)"},":host.-vertical .layout-indicator":{transform:"rotateZ(180deg)"},":host.-maximize .hide-if-maximized, :host:not(.-maximize) .show-if-maximized":{display:"none"},':host [part="example"]':{flex:"1 1 50%",height:"100%",position:"relative",overflowX:"auto"},":host .preview":{height:"100%",position:"relative",overflow:"hidden",boxShadow:"inset 0 0 0 2px #8883"},':host [part="editors"]':{flex:"1 1 200px",height:"100%",position:"relative"},':host [part="exampleWidgets"]':{position:"absolute",left:"5px",bottom:"5px","--widget-color":"var(--brand-color)",borderRadius:"5px",width:"44px",height:"44px",lineHeight:"44px",zIndex:"100"},':host [part="exampleWidgets"] svg':{stroke:"var(--widget-color)"},":host .code-editors":{overflow:"hidden",background:"white",position:"relative",top:"0",right:"0",flex:"1 1 50%",height:"100%",flexDirection:"column",zIndex:"10"},":host .code-editors:not([hidden])":{display:"flex"},":host .code-editors > h4":{padding:"5px",margin:"0",textAlign:"center",background:"var(--code-editors-bar-bg)",color:"var(--code-editors-bar-color)",cursor:"move"},":host button.transparent, :host .sizer":{width:"32px",height:"32px",lineHeight:"32px",textAlign:"center",padding:"0",margin:"0"},":host .sizer":{cursor:"nwse-resize"}}}),jo=new URL(window.location.href).searchParams,Gs=jo.get("lx");if(Gs)document.title+=" [code editor]",document.body.textContent="",document.body.append(Z1({remoteId:Gs}));var{slot:Ks}=f;class Ve extends m{minSize=800;navSize=200;compact=!1;contentVisible=!1;value="normal";content=[Ks({name:"nav",part:"nav"}),Ks({part:"content"})];static styleSpec={":host":{display:"grid",gridTemplateColumns:`${h.navWidth("50%")} ${h.contentWidth("50%")}`,gridTemplateRows:"100%",position:"relative",margin:h.margin("0 0 0 -100%"),transition:h.sideNavTransition("0.25s ease-out")},":host slot":{position:"relative"},":host slot:not([name])":{display:"block"},':host slot[name="nav"]':{display:"block"}};onResize=()=>{let{content:e}=this.parts,t=this.offsetParent;if(t===null)return;let i=this.value;if(this.compact=t.offsetWidth<this.minSize,[...this.childNodes].find((l)=>l instanceof Element?l.getAttribute("slot")!=="nav":!0)===void 0)i="compact/nav",this.style.setProperty("--nav-width","100%"),this.style.setProperty("--content-width","0%");else if(!this.compact)i="normal",e.classList.add("-xin-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(e.classList.remove("-xin-sidenav-visible"),this.style.setProperty("--nav-width","50%"),this.style.setProperty("--content-width","50%"),this.contentVisible)i="compact/content",this.style.setProperty("--margin","0 0 0 -100%");else i="compact/nav",this.style.setProperty("--margin","0 -100% 0 0");if(this.value!==i)this.value=i};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()}constructor(){super();this.initAttributes("minSize","navSize","compact","contentVisible")}render(){super.render(),this.onResize()}}var X1=Ve.elementCreator({tag:"xin-sidenav"});var{div:Y1,span:ei,a:ae,header:To,button:So,template:Fo,input:Oo,h2:Vo}=f;function Io(e){let{docs:t,context:i={},projectName:s="",projectLinks:l={},navSize:o=200,minSize:n=600}=e,a=document.location.search!==""?document.location.search.substring(1).split("&")[0]:t[0]?.filename||"README.md",r=t.find((y)=>y.filename===a)||t[0],{app:d}=Q({app:{docs:t,currentDoc:r,compact:!1}});te.docLink={toDOM(y,v){y.setAttribute("href",`?${v}`)}},te.current={toDOM(y,v){let E=y.getAttribute("href")||"";y.classList.toggle("current",v===E.substring(1))}};let p=pt(()=>{let y=x.value.toLocaleLowerCase();d.docs.forEach((v)=>{v.hidden=!v.title.toLocaleLowerCase().includes(y)&&!v.text.toLocaleLowerCase().includes(y)}),Ee(d.docs)}),x=Oo({slot:"nav",placeholder:"search",type:"search",style:{width:"calc(100% - 10px)",margin:"5px"},onInput:p});window.addEventListener("popstate",()=>{let y=window.location.search.substring(1);d.currentDoc=d.docs.find((v)=>v.filename===y)||d.docs[0]});let g=[So({class:"iconic",style:{color:c.linkColor},title:"navigation",bind:{value:d.compact,binding:{toDOM(y,v){y.style.display=v?"":"none",y.nextSibling.style.display=v?"":"none"}}},onClick(){let y=document.querySelector(Ve.tagName);y.contentVisible=!y.contentVisible}},u.menu()),ei({style:{flex:"0 0 10px"}})];if(s)g.push(ae({href:"/",style:{display:"flex",alignItems:"center",borderBottom:"none"}},l.tosijs?u.tosiUi({style:{_xinIconSize:40,marginRight:10}}):ei(),Vo(s)));if(g.push(ei({class:"elastic"})),l.tosijs)g.push(ae({class:"iconic",title:"tosijs",target:"_blank"},u.tosi(),{href:l.tosijs}));if(l.discord)g.push(ae({class:"iconic",title:"discord",target:"_blank"},u.discord(),{href:l.discord}));if(l.blog)g.push(ae({class:"iconic",title:"blog",target:"_blank"},u.blog(),{href:l.blog}));if(l.github)g.push(ae({class:"iconic",title:"github",target:"_blank"},u.github(),{href:l.github}));if(l.npm)g.push(ae({class:"iconic",title:"npmjs",target:"_blank"},u.npm(),{href:l.npm}));return Y1({style:{display:"flex",flexDirection:"column",maxWidth:"100vw",height:"100vh",overflow:"hidden"}},To(...g),X1({name:"Documentation",navSize:o,minSize:n,style:{flex:"1 1 auto",overflow:"hidden"},onChange(){let y=document.querySelector(Ve.tagName);d.compact=y.compact}},x,Y1({slot:"nav",style:{display:"flex",flexDirection:"column",width:"100%",height:"calc(100% - 44px)",overflowY:"scroll"},bindList:{hiddenProp:"hidden",value:d.docs}},Fo(ae({class:"doc-link",bindCurrent:"app.currentDoc.filename",bindDocLink:"^.filename",onClick(y){let v=y.target,E=ye(y.target),b=y.target.closest("xin-sidenav");b.contentVisible=!0;let{href:B}=v;window.history.pushState({href:B},"",B),d.currentDoc=E,y.preventDefault()}},J({bindText:"^.title"})))),Y1({style:{position:"relative",overflowY:"scroll",height:"100%"}},ae({class:"view-source",target:"_blank",style:{display:l.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(y){y.target.style.opacity="0.9"},onMouseleave(y){y.target.style.opacity="0.7"},bind:{value:d.currentDoc,binding(y,v){if(l.github&&v.path&&v.path!=="README.md")y.href=`${l.github}/blob/main/${v.path}`,y.style.display="flex";else y.style.display="none"}}},u.github({style:{_xinIconSize:16}}),"View source on GitHub"),K1({style:{display:"block",maxWidth:"44em",margin:"auto",padding:"0 1em",overflow:"hidden"},bindValue:"app.currentDoc.text",didRender(){Oe.insertExamples(this,i)}}))))}var{div:q,slot:Do}=f;class N extends m{static angleSize=15;static gridSize=8;static snapAngle=!1;static snapToGrid=!1;static styleSpec={":host":{"--handle-bg":"#fff4","--handle-color":"#2228","--handle-hover-bg":"#8ff8","--handle-hover-color":"#222","--handle-size":"20px","--handle-padding":"2px"},":host ::slotted(*)":{position:"absolute"},":host > :not(style,slot)":{boxSizing:"border-box",content:'" "',position:"absolute",display:"flex",height:c.handleSize,width:c.handleSize,padding:c.handlePadding,"--text-color":c.handleColor,background:c.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(${c.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":c.handleHoverColor,background:c.handleHoverBg}};static snappedCoords(e,t){let{gridSize:i}=N;return N.snapToGrid||e.shiftKey?t.map((s)=>Math.round(s/i)*i):t}static snappedAngle(e,t){let{angleSize:i}=N;return N.snapAngle||e.shiftKey?Math.round(t/i)*i:t}get locked(){let e=this.parentElement;if(e.style.inset)return{left:!0,top:!0,bottom:!0,right:!0};let t=e.style.right.match(/\d/)!==null,i=!t||e.style.left.match(/\d/)!==null,s=e.style.bottom.match(/\d/)!==null,l=!s||e.style.top.match(/\d/)!==null;return{left:i,top:l,bottom:s,right:t}}set locked(e){let{bottom:t,right:i}=e,{left:s,top:l}=e,o=this.parentElement,n=o.offsetLeft,a=o.offsetTop,r=o.offsetWidth,d=o.offsetHeight,p=o.offsetParent.offsetWidth-n-r,x=o.offsetParent.offsetHeight-a-d;if(Object.assign(o.style,{left:"",right:"",top:"",bottom:"",width:"",height:""}),!i)s=!0;if(!t)l=!0;if(s)o.style.left=n+"px";if(i)o.style.right=p+"px";if(s&&i)o.style.width="auto";else o.style.width=r+"px";if(l)o.style.top=a+"px";if(t)o.style.bottom=x+"px";if(l&&t)o.style.height="auto";else o.style.height=d+"px";this.queueRender()}get coords(){let{top:e,left:t,right:i,bottom:s}=this.parentElement.style;return{top:parseFloat(e),left:parseFloat(t),right:parseFloat(i),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=(e)=>{let{locked:t}=this;this.locked=t;let i=this.parentElement,{top:s,left:l,bottom:o,right:n}=this.coords;T(e,(a,r,d)=>{if([a,r]=N.snappedCoords(d,[a,r]),!isNaN(s))i.style.top=s+r+"px";if(!isNaN(o))i.style.bottom=o-r+"px";if(!isNaN(l))i.style.left=l+a+"px";if(!isNaN(n))i.style.right=n-a+"px";if(d.type==="mouseup")return this.triggerChange(),!0})};resize=(e)=>{let t=this.parentElement,{locked:i}=this;this.locked=Object.assign({left:!0,top:!0,right:!0,bottom:!0});let[s,l]=[this.right,this.bottom];T(e,(o,n,a)=>{let r=s-o,d=l-n;if([r,d]=N.snappedCoords(a,[r,d]),t.style.right=r+"px",t.style.bottom=d+"px",a.type==="mouseup")return this.locked=i,this.triggerChange(),!0})};adjustSize=(e)=>{let t=this.parentElement,{locked:i}=this,s=e.target.getAttribute("part");this.locked=Object.assign({left:!0,right:!0,top:!0,bottom:!0});let l=this[s];T(e,(o,n,a)=>{let[r]=N.snappedCoords(a,[l+(["left","right"].includes(s)?o:n)*(["right","bottom"].includes(s)?-1:1)]);if(t.style[s]=r+"px",a.type==="mouseup")return this.locked=i,this.triggerChange(),!0})};get rect(){return this.parentElement.getBoundingClientRect()}get center(){let e=this.parentElement.getBoundingClientRect();return{x:e.x+e.width*0.5,y:e.y+e.height*0.5}}get element(){return this.parentElement}adjustRotation=(e)=>{let{center:t}=this,{transformOrigin:i}=this.element.style;if(!i)this.element.style.transformOrigin="50% 50%";T(e,(s,l,o)=>{let{clientX:n,clientY:a}=o,r=n-t.x,d=a-t.y,p=d>0?90:-90;if(r!==0)p=Math.atan2(d,r)*180/Math.PI;if(p=N.snappedAngle(o,p),p===0)this.element.style.transformOrigin="",this.element.style.transform="";else this.element.style.transform=`rotate(${p}deg)`;return this.triggerChange(),o.type==="mouseup"})};toggleLock=(e)=>{let{locked:t}=this,i=e.target.title.split(" ")[1];t[i]=!t[i],this.locked=t,this.queueRender(),e.stopPropagation(),e.preventDefault()};content=()=>[q({part:"move",style:{top:"50%",left:"50%",transform:"translate(-50%,-50%)"}},u.move()),q({part:"left",title:"resize left",class:"drag-size",style:{left:"-6px",width:"8px"}}),q({part:"right",title:"resize right",class:"drag-size",style:{left:"calc(100% - 2px)",width:"8px"}}),q({part:"top",title:"resize top",class:"drag-size",style:{top:"-6px",height:"8px",cursor:"ns-resize"}}),q({part:"bottom",title:"resize bottom",class:"drag-size",style:{top:"calc(100% - 2px)",height:"8px",cursor:"ns-resize"}}),q({part:"resize",style:{top:"100%",left:"100%"}},u.resize()),q({part:"rotate",style:{top:"50%",right:"0"}},u.refreshCw()),q({part:"lockLeft",title:"lock left",style:{top:"50%",left:0,transform:"translate(-100%, -50%)"}},u.unlock(),u.lock()),q({part:"lockRight",title:"lock right",style:{top:"50%",left:"100%",transform:"translate(0%, -50%)"}},u.unlock(),u.lock()),q({part:"lockTop",title:"lock top",style:{top:0,left:"50%",transform:"translate(-50%, -100%)"}},u.unlock(),u.lock()),q({part:"lockBottom",title:"lock bottom",style:{top:"100%",left:"50%",transform:"translate(-50%, 0%)"}},u.unlock(),u.lock()),Do()];constructor(){super();this.initAttributes("rotationSnap","positionSnap")}connectedCallback(){super.connectedCallback();let{left:e,right:t,top:i,bottom:s,lockLeft:l,lockRight:o,lockTop:n,lockBottom:a,move:r,resize:d,rotate:p}=this.parts,x={passive:!0};[e,t,i,s].forEach((g)=>{g.addEventListener("mousedown",this.adjustSize,x),g.addEventListener("touchstart",this.adjustSize,x)}),[l,o,n,a].forEach((g)=>{g.addEventListener("click",this.toggleLock)}),d.addEventListener("mousedown",this.resize,x),r.addEventListener("mousedown",this.adjustPosition,x),p.addEventListener("mousedown",this.adjustRotation,x),d.addEventListener("touchstart",this.resize,x),r.addEventListener("touchstart",this.adjustPosition,x),p.addEventListener("touchstart",this.adjustRotation,x)}render(){if(super.render(),!this.parentElement)return;let{lockLeft:e,lockRight:t,lockTop:i,lockBottom:s}=this.parts,{left:l,right:o,top:n,bottom:a}=this.locked;e.toggleAttribute("locked",l),t.toggleAttribute("locked",o),i.toggleAttribute("locked",n),s.toggleAttribute("locked",a)}}var _o=N.elementCreator({tag:"xin-editable"});var{div:qo,input:No,button:ti,span:Ro}=f,Qs=(e)=>e,Js="null filter, everything matches",ii={contains:{caption:"contains",negative:"does not contain",makeTest:(e)=>{return e=e.toLocaleLowerCase(),(t)=>String(t).toLocaleLowerCase().includes(e)}},hasTags:{caption:"has tags",makeTest:(e)=>{let t=e.split(/[\s,]/).map((i)=>i.trim().toLocaleLowerCase()).filter((i)=>i!=="");return(i)=>Array.isArray(i)&&t.find((s)=>!i.includes(s))===void 0}},doesNotHaveTags:{caption:"does not have tags",makeTest:(e)=>{let t=e.split(/[\s,]/).map((i)=>i.trim().toLocaleLowerCase()).filter((i)=>i!=="");return(i)=>Array.isArray(i)&&t.find((s)=>i.includes(s))===void 0}},equals:{caption:"=",negative:"≠",makeTest:(e)=>{if(isNaN(Number(e)))return e=String(e).toLocaleLowerCase(),(i)=>String(i).toLocaleLowerCase()===e;let t=Number(e);return(i)=>Number(i)===t}},after:{caption:"is after",negative:"is before",makeTest:(e)=>{let t=new Date(e);return(i)=>new Date(i)>t}},greaterThan:{caption:">",negative:"≤",makeTest:(e)=>{if(!isNaN(Number(e))){let t=Number(e);return(i)=>Number(i)>t}return e=e.toLocaleLowerCase(),(t)=>String(t).toLocaleLowerCase()>e}},truthy:{caption:"is true/non-empty/non-zero",negative:"is false/empty/zero",needsValue:!1,makeTest:()=>(e)=>!!e},isTrue:{caption:"= true",needsValue:!1,makeTest:()=>(e)=>e===!0},isFalse:{caption:"= false",needsValue:!1,makeTest:()=>(e)=>e===!1}},Uo={description:"anything",test:()=>!0};function Zs(e){return e.options[e.selectedIndex]?.caption||""}class si extends m{fields=[];filters=ii;haystack="*";condition="contains";needle="";content=()=>[V({part:"haystack"}),V({part:"condition"}),No({part:"needle",type:"search"}),Ro({part:"padding"}),ti({part:"remove",title:"delete"},u.trash())];filter=Uo;constructor(){super();this.initAttributes("haystack","condition","needle")}get state(){let{haystack:e,needle:t,condition:i}=this.parts;return{haystack:e.value,needle:t.value,condition:i.value}}set state(e){Object.assign(this,e)}buildFilter=()=>{let{haystack:e,condition:t,needle:i}=this.parts,s=t.value.startsWith("~"),l=s?t.value.slice(1):t.value,o=this.filters[l];i.hidden=o.needsValue===!1;let n=o.needsValue===!1?o.makeTest(void 0):o.makeTest(i.value),a=e.value,r;if(a!=="*")r=s?(x)=>!n(x[a]):(x)=>n(x[a]);else r=s?(x)=>Object.values(x).find((g)=>!n(g))!==void 0:(x)=>Object.values(x).find((g)=>n(g))!==void 0;let d=o.needsValue!==!1?` "${i.value}"`:"",p=`${Zs(e)} ${Zs(t)}${d}`;this.filter={description:p,test:r},this.parentElement?.dispatchEvent(new Event("change"))};connectedCallback(){super.connectedCallback();let{haystack:e,condition:t,needle:i,remove:s}=this.parts;e.addEventListener("change",this.buildFilter),t.addEventListener("change",this.buildFilter),i.addEventListener("input",this.buildFilter),e.value=this.haystack,t.value=this.condition,i.value=this.needle,s.addEventListener("click",()=>{let{parentElement:l}=this;this.remove(),l?.dispatchEvent(new Event("change"))})}render(){super.render();let{haystack:e,condition:t,needle:i}=this.parts;if(e.options=[{caption:"any field",value:"*"},...this.fields.map((s)=>s.prop)],t.options=Object.keys(this.filters).map((s)=>{let l=this.filters[s];return l.negative!==void 0?[{caption:l.caption,value:s},{caption:l.negative,value:"~"+s}]:{caption:l.caption,value:s}}).flat(),this.haystack!=="")e.value=this.haystack;if(this.condition!=="")t.value=this.condition;if(this.needle!=="")i.value=this.needle;this.buildFilter()}}var Pt=si.elementCreator({tag:"xin-filter-part",styleSpec:{":host":{display:"flex"},":host .xin-icon:":{verticalAlign:"middle",pointerEvents:"none"},':host [part="haystack"], :host [part="condition"]':{flex:"1"},':host [part="needle"]':{flex:2},':host [hidden]+[part="padding"]':{display:"block",content:" ",flex:"1 1 auto"}}});class li extends m{_fields=[];get fields(){return this._fields}set fields(e){this._fields=e,this.queueRender()}get state(){let{filterContainer:e}=this.parts;return[...e.children].map((t)=>t.state)}set state(e){let{fields:t,filters:i}=this,{filterContainer:s}=this.parts;s.textContent="";for(let l of e)s.append(Pt({fields:t,filters:i,...l}))}filter=Qs;description=Js;addFilter=()=>{let{fields:e,filters:t}=this,{filterContainer:i}=this.parts;i.append(Pt({fields:e,filters:t}))};content=()=>[ti({part:"add",title:"add filter condition",onClick:this.addFilter,class:"round"},u.plus()),qo({part:"filterContainer"}),ti({part:"reset",title:"reset filter",onClick:this.reset},u.x())];filters=ii;reset=()=>{let{fields:e,filters:t}=this,{filterContainer:i}=this.parts;this.description=Js,this.filter=Qs,i.textContent="",i.append(Pt({fields:e,filters:t})),this.dispatchEvent(new Event("change"))};buildFilter=()=>{let{filterContainer:e}=this.parts;if(e.children.length===0){this.reset();return}let t=[...e.children].map((s)=>s.filter),i=t.map((s)=>s.test);this.description=t.map((s)=>s.description).join(", "),this.filter=(s)=>s.filter((l)=>i.find((o)=>o(l)===!1)===void 0),this.dispatchEvent(new Event("change"))};connectedCallback(){super.connectedCallback();let{filterContainer:e}=this.parts;e.addEventListener("change",this.buildFilter),this.reset()}render(){super.render()}}var $o=li.elementCreator({tag:"xin-filter",styleSpec:{":host":{height:"auto",display:"grid",gridTemplateColumns:"32px calc(100% - 64px) 32px",alignItems:"center"},':host [part="filterContainer"]':{display:"flex",flexDirection:"column",alignItems:"stretch",flex:"1 1 auto"},':host [part="haystack"]':{_fieldWidth:"100px"},':host [part="condition"]':{_fieldWidth:"60px"},':host [part="needle"]':{_fieldWidth:"80px"},':host [part="add"], :host [part="reset"]':{"--button-size":"var(--touch-size, 32px)",borderRadius:"999px",height:"var(--button-size)",lineHeight:"var(--button-size)",margin:"0",padding:"0",textAlign:"center",width:"var(--button-size)",flex:"0 0 var(--button-size)"}}});var{form:Wo,slot:oi,xinSlot:Xs,label:Go,input:Ko,span:Qo}=f;function re(e,t,i){if(i!==""&&i!==!1)e.setAttribute(t,i);else e.removeAttribute(t)}function Jo(e){switch(e.type){case"checkbox":return e.checked;case"radio":{let t=e.parentElement?.querySelector(`input[type="radio"][name="${e.name}"]:checked`);return t?t.value:null}case"range":case"number":return Number(e.value);default:return Array.isArray(e.value)&&e.value.length===0?null:e.value}}function Ys(e,t){if(!(e instanceof HTMLElement));else if(e instanceof HTMLInputElement)switch(e.type){case"checkbox":e.checked=t;break;case"radio":e.checked=t===e.value;break;default:e.value=String(t||"")}else if(t!=null||e.value!=null)e.value=String(t||"")}class jt extends m{caption="";key="";type="";optional=!1;pattern="";placeholder="";min="";max="";step="";fixedPrecision=-1;value=null;content=Go(Xs({part:"caption"}),Qo({part:"field"},Xs({part:"input",name:"input"}),Ko({part:"valueHolder"})));constructor(){super();this.initAttributes("caption","key","type","optional","pattern","placeholder","min","max","step","fixedPrecision","prefix","suffix")}valueChanged=!1;handleChange=()=>{let{input:e,valueHolder:t}=this.parts,i=e.children[0]||t;if(i!==t)t.value=i.value;this.value=Jo(i),this.valueChanged=!0;let s=this.closest("xin-form");if(s&&this.key!=="")switch(this.type){case"checkbox":s.fields[this.key]=i.checked;break;case"number":case"range":if(this.fixedPrecision>-1)i.value=Number(i.value).toFixed(this.fixedPrecision),s.fields[this.key]=Number(i.value);else s.fields[this.key]=Number(i.value);break;default:s.fields[this.key]=i.value}};initialize(e){let t=e.fields[this.key]!==void 0?e.fields[this.key]:this.value;if(t!=null&&t!==""){if(e.fields[this.key]==null)e.fields[this.key]=t;this.value=t}}connectedCallback(){super.connectedCallback();let{input:e,valueHolder:t}=this.parts,i=this.closest(st.tagName);if(i instanceof st)this.initialize(i);t.addEventListener("change",this.handleChange),e.addEventListener("change",this.handleChange,!0)}render(){if(this.valueChanged){this.valueChanged=!1;return}let{input:e,caption:t,valueHolder:i,field:s}=this.parts;if(t.textContent?.trim()==="")t.append(this.caption!==""?this.caption:this.key);if(this.type==="text"){e.textContent="";let l=f.textarea({value:this.value});if(this.placeholder)l.setAttribute("placeholder",this.placeholder);e.append(l)}else if(this.type==="color")e.textContent="",e.append(b1({value:this.value}));else if(e.children.length===0){if(re(i,"placeholder",this.placeholder),re(i,"type",this.type),re(i,"pattern",this.pattern),re(i,"min",this.min),re(i,"max",this.max),this.step)re(i,"step",this.step);else if(this.fixedPrecision>0&&this.type==="number")re(i,"step",Math.pow(10,-this.fixedPrecision))}if(Ys(i,this.value),Ys(e.children[0],this.value),this.prefix?s.setAttribute("prefix",this.prefix):s.removeAttribute("prefix"),this.suffix?s.setAttribute("suffix",this.suffix):s.removeAttribute("suffix"),i.classList.toggle("hidden",e.children.length>0),e.children.length>0)i.setAttribute("tabindex","-1");else i.removeAttribute("tabindex");e.style.display=e.children.length===0?"none":"",re(i,"required",!this.optional)}}class st extends m{context={};value={};get isValid(){return[...this.querySelectorAll("*")].filter((t)=>t.required!==void 0).find((t)=>!t.reportValidity())===void 0}static styleSpec={":host":{display:"flex",flexDirection:"column"},":host::part(header), :host::part(footer)":{display:"flex"},":host::part(content)":{display:"flex",flexDirection:"column",overflow:"hidden auto",height:"100%",width:"100%",position:"relative",boxSizing:"border-box"},":host form":{display:"flex",flex:"1 1 auto",position:"relative",overflow:"hidden"}};content=[oi({part:"header",name:"header"}),Wo({part:"form"},oi({part:"content"})),oi({part:"footer",name:"footer"})];getField=(e)=>{return this.querySelector(`xin-field[key="${e}"]`)};get fields(){if(typeof this.value==="string")try{this.value=JSON.parse(this.value)}catch(i){console.log("<xin-form> could not use its value, expects valid JSON"),this.value={}}let{getField:e}=this,t=this.dispatchEvent.bind(this);return new Proxy(this.value,{get(i,s){return i[s]},set(i,s,l){if(i[s]!==l){i[s]=l;let o=e(s);if(o)o.value=l;t(new Event("change"))}return!0}})}set fields(e){let t=[...this.querySelectorAll(jt.tagName)];for(let i of t)i.value=e[i.key]}submit=()=>{this.parts.form.dispatchEvent(new Event("submit"))};handleSubmit=(e)=>{e.preventDefault(),e.stopPropagation(),this.submitCallback(this.value,this.isValid)};submitCallback=(e,t)=>{console.log("override submitCallback to handle this data",{value:e,isValid:t})};connectedCallback(){super.connectedCallback();let{form:e}=this.parts;e.addEventListener("submit",this.handleSubmit)}}var Zo=jt.elementCreator({tag:"xin-field",styleSpec:{':host [part="field"]':{position:"relative",display:"flex",alignItems:"center",gap:h.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}}}),Xo=st.elementCreator({tag:"xin-form"});function e2(){return navigator.getGamepads().filter((t)=>t!==null).map((t)=>{let{id:i,axes:s,buttons:l}=t;return{id:i,axes:s,buttons:l.map((o,n)=>{let{pressed:a,value:r}=o;return{index:n,pressed:a,value:r}}).filter((o)=>o.pressed||o.value!==0).reduce((o,n)=>{return o[n.index]=n.value,o},{})}})}function Yo(){let e=e2();return e.length===0?"no active gamepads":e.map(({id:t,axes:i,buttons:s})=>{let l=i.map((n)=>n.toFixed(2)).join(" "),o=Object.keys(s).map((n)=>`[${n}](${s[Number(n)].toFixed(2)})`).join(" ");return`${t}
87
+ ${l}
88
+ ${o}`}).join(`
89
+ `)}function en(e){let t={};return e.input.onControllerAddedObservable.add((i)=>{i.onMotionControllerInitObservable.add((s)=>{let l={};s.getComponentIds().forEach((n)=>{let a=s.getComponent(n);if(l[n]={pressed:a.pressed},a.onButtonStateChangedObservable.add(()=>{l[n].pressed=a.pressed}),a.onAxisValueChangedObservable)l[n].axes=[],a.onAxisValueChangedObservable.add((r)=>{l[n].axes=r})}),t[s.handedness]=l})}),t}function tn(e){if(e===void 0||Object.keys(e).length===0)return"no xr inputs";return Object.keys(e).map((t)=>{let i=e[t],s=Object.keys(i).filter((l)=>i[l].pressed).join(" ");return`${t}
90
90
  ${s}`}).join(`
91
- `)}var{div:Ul}=f;class Ce extends m{coords="65.01715565258993,25.48081004203459,12";content=Ul({style:{width:"100%",height:"100%"}});get map(){return this._map}mapStyle="mapbox://styles/mapbox/streets-v12";token="";static mapboxCSSAvailable;static mapboxAvailable;_map;static styleSpec={":host":{display:"inline-block",position:"relative",width:"400px",height:"400px",textAlign:"left"}};constructor(){super();if(this.initAttributes("coords","token","mapStyle"),Ce.mapboxCSSAvailable===void 0)Ce.mapboxCSSAvailable=xt("https://api.mapbox.com/mapbox-gl-js/v1.4.1/mapbox-gl.css").catch((e)=>{console.error("failed to load mapbox-gl.css",e)}),Ce.mapboxAvailable=F("https://api.mapbox.com/mapbox-gl-js/v1.4.1/mapbox-gl.js").catch((e)=>{console.error("failed to load mapbox-gl.js",e)})}connectedCallback(){if(super.connectedCallback(),!this.token)console.error("mapbox requires an access token which you can provide via the token attribute")}render(){if(super.render(),!this.token)return;let{div:e}=this.parts,[t,i,s]=this.coords.split(",").map((o)=>Number(o));if(this.map)this.map.remove();Ce.mapboxAvailable.then(({mapboxgl:o})=>{console.log("%cmapbox may complain about missing css -- don't panic!","background: orange; color: black; padding: 0 5px;"),o.accessToken=this.token,this._map=new o.Map({container:e,style:this.mapStyle,zoom:s,center:[i,t]}),this._map.on("render",()=>this._map.resize())})}}var Wl=Ce.elementCreator({tag:"xin-map"});var{div:Z1,span:At,button:Y1}=f,tt=86400000,Gl=[0,1,2,3,4,5,6],Kl=[1,2,3,4,5,6,7,8,9,10,11,12],X1=(e,t=2,i="0")=>String(e).padStart(t,i),it=(e,t,i)=>new Date(`${e}-${X1(t)}-${X1(i)}`);class ei extends m{month=NaN;year=NaN;minDate=it(new Date().getFullYear()-100,1,1).toISOString().split("T")[0];maxDate=it(new Date().getFullYear()+10,12,31).toISOString().split("T")[0];weekStart=0;selectable=!1;multiple=!1;range=!1;disabled=!1;readonly=!1;selectedDays=[];value="";get endDay(){return 1-this.weekStart}get months(){return Kl.map((e)=>({caption:it(2025,e,1).toString().split(" ")[1],value:String(e)}))}get years(){let e=Number(this.minDate.split("-")[0]),t=Number(this.maxDate.split("-")[0]),i=[];for(let s=e;s<=t;s++)i.push(String(s));return i}monthChanged=(e,t)=>{};gotoMonth(e,t){if(this.month!==t||this.year!==e)this.month=t,this.year=e,this.monthChanged(e,t)}setMonth=()=>{this.gotoMonth(Number(this.parts.year.value),Number(this.parts.month.value))};get to(){return this.selectedDays[1]||""}set to(e){this.selectedDays[1]=e,this.selectedDays.splice(2)}get from(){return this.selectedDays[0]||""}set from(e){this.selectedDays[0]=e,this.selectedDays.splice(2)}clickDate=(e)=>{let t=e.target.getAttribute("title");this.selectDate(t)};keyDate=(e)=>{let t=!1;switch(e.code){case"Space":{let i=e.target.getAttribute("title");this.selectDate(i),t=!0;break}case"Tab":break;default:console.log(e)}if(t)e.preventDefault(),e.stopPropagation()};#e="";selectDate=(e)=>{if(this.#e=e,this.range){if(!this.to)this.selectedDays=[e,e];else if(this.from===e&&this.to===e)this.selectedDays=[];else if(this.from===e)this.from=this.to;else if(this.to===e)this.to=this.from;else if(e<this.from)this.from=e;else if(e>this.to)this.to=e;else this.to=e;this.value=`${this.from},${this.to}`}else if(this.multiple){if(this.selectedDays.includes(e))this.selectedDays.splice(this.selectedDays.indexOf(e),1);else this.selectedDays.push(e),this.selectedDays.sort();this.value=this.selectedDays.join(",")}else if(this.selectable)if(this.selectedDays.includes(e))this.value="",this.selectedDays=[];else this.value=e,this.selectedDays=[e]};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=(e)=>{if(!this.range)return this.selectedDays.includes(e);else if(this.range)return this.from&&e>=this.from&&e<=this.to;return!1};dateMenuItem=(e,t="")=>{return e=e.split("T")[0],{caption:t||e,enabled:()=>!e.startsWith(`${this.year}-${X1(this.month)}-`),action:()=>{this.gotoDate(e)}}};jumpMenu=()=>{S({target:this.parts.jump,menuItems:[this.dateMenuItem(new Date().toISOString(),"This Month"),...this.selectedDays.length===0?[]:[null],...this.selectedDays.map((e)=>this.dateMenuItem(e))]})};content=()=>[Z1({part:"header"},Y1({part:"previous",onClick:this.previousMonth},u.chevronLeft()),At({style:{flex:"1"}}),Y1({part:"jump",onClick:this.jumpMenu},u.calendar()),V({part:"month",options:this.months,onChange:this.setMonth}),V({part:"year",options:[this.year],onChange:this.setMonth}),At({style:{flex:"1"}}),Y1({part:"next",onClick:this.nextMonth},u.chevronRight())),Z1({part:"week"}),Z1({part:"days"})];gotoDate(e){let t=new Date(e);this.gotoMonth(t.getFullYear(),t.getMonth()+1)}constructor(){super();this.initAttributes("month","year","weekStart","minDate","maxDate","selectable","multiple","range","disabled","readonly")}connectedCallback(){super.connectedCallback();let e=new Date(this.value.split(",").pop()||Date.now());if(isNaN(this.month))this.month=e.getMonth()+1;if(isNaN(this.year))this.year=e.getFullYear()}days=[];render(){let{week:e,days:t,jump:i,month:s,year:o,previous:l,next:n}=this.parts;this.selectedDays=this.value?this.value.split(","):[];let a=it(this.year,this.month,1),r=new Date(a.valueOf()-(7+a.getDay()-this.weekStart)%7*tt),p=this.month===12?1:this.month+1,d=new Date(it(this.year+(this.month===12?1:0),p,1).valueOf()-tt),x=new Date(d.valueOf()+(this.weekStart*2+5+this.endDay-d.getDay())%7*tt),g=Gl.map((w)=>new Date(r.valueOf()+w*tt).toString().split(" ")[0]);this.days=[];let v=new Date().toISOString().split("T")[0];for(let w=r.valueOf();w<=x.valueOf();w+=tt){let B=new Date(w),z=B.toISOString().split("T")[0];this.days.push({date:B,selected:!1,inMonth:B.getMonth()+1===this.month,isToday:z===v,isWeekend:B.getDay()%6===0,inRange:!!(this.from&&z>=this.from&&z<=this.to)})}s.value=String(this.month),o.value=String(this.year),s.disabled=o.disabled=i.disabled=l.disabled=n.disabled=this.disabled||this.readonly,o.options=this.years,e.textContent="",e.append(...g.map((w)=>At({class:"day"},w))),t.textContent="";let y=null,{to:C,from:A}=this;t.append(...this.days.map((w)=>{let B=["date"];if(w.inMonth)B.push("in-month");if(w.isToday)B.push("today");let z=w.date.toISOString().split("T")[0];if(this.checkDay(z))B.push("checked");if(B.push(w.isWeekend?"weekend":"weekday"),this.range){if(C===z)B.push("range-end");if(A===z)B.push("range-start")}let W=At({class:B.join(" "),title:z,onClick:this.clickDate,onKeydown:this.keyDate,tabindex:"0"},w.date.getDate());if(z===this.#e)y=W;return W})),y?.focus()}}var Jl=ei.elementCreator({tag:"tosi-month",styleSpec:{":host":{display:"block"},":host [part=header]":{display:"flex",alignItems:"stretch",justifyContent:"stretch"},":host[disabled]":{pointerEvents:"none",opacity:h.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:h.monthTodayBackground("transparent"),boxShadow:h.monthTodayShadow("none"),backdropFilter:h.monthTodayBackdropFilter("brightness(0.9)"),fontWeight:h.monthTodayFontWeight("800")},":host .day, :host .date":{padding:5,display:"flex",justifyContent:"center",userSelect:"none"},":host .day":{color:h.monthDayColor("hotpink"),background:h.monthDayBackground("white"),fontWeight:h.monthDayFontWeight("800")},":host .date":{cursor:"default"},":host .weekend":{background:h.monthWeekendBackground("#eee")},":host .date:not(.in-month)":{opacity:0.5},":host .date.checked":{color:h.monthDateCheckedColor("white"),background:h.monthDateCheckedBackground("hotpink")},":host:not([range]) .date.checked":{borderRadius:h.monthDateCheckedBorderRadius("10px")},":host .range-start":{borderTopLeftRadius:h.monthDateCheckedBorderRadius("10px"),borderBottomLeftRadius:h.monthDateCheckedBorderRadius("10px")},":host .range-end":{borderTopRightRadius:h.monthDateCheckedBorderRadius("10px"),borderBottomRightRadius:h.monthDateCheckedBorderRadius("10px")}}});var{div:ti,button:Ql}=f,Zl={error:"red",warn:"orange",info:"royalblue",log:"gray",success:"green",progress:"royalblue"};class we extends m{static singleton;static styleSpec={":host":{_notificationSpacing:8,_notificationWidth:360,_notificationPadding:`${c.notificationSpacing} ${c.notificationSpacing50} ${c.notificationSpacing} ${c.notificationSpacing200}`,_notificationBg:"#fafafa",_notificationAccentColor:"#aaa",_notificationTextColor:"#444",_notificationIconSize:c.notificationSpacing300,_notificationButtonSize:48,_notificationBorderWidth:"3px 0 0",_notificationBorderRadius:c.notificationSpacing50,position:"fixed",left:0,right:0,bottom:0,paddingBottom:c.notificationSpacing,width:c.notificationWidth,display:"flex",flexDirection:"column-reverse",margin:"0 auto",gap:c.notificationSpacing,maxHeight:"50vh",overflow:"hidden auto",boxShadow:"none !important"},":host *":{color:c.notificationTextColor},":host .note":{display:"grid",background:c.notificationBg,padding:c.notificationPadding,gridTemplateColumns:`${c.notificationIconSize} 1fr ${c.notificationButtonSize}`,gap:c.notificationSpacing,alignItems:"center",borderRadius:c.notificationBorderRadius,boxShadow:`0 2px 8px #0006, inset 0 0 0 2px ${c.notificationAccentColor}`,borderColor:c.notificationAccentColor,borderWidth:c.notificationBorderWidth,borderStyle:"solid",transition:"0.5s ease-in",transitionProperty:"margin, opacity",zIndex:1},":host .note .icon":{stroke:c.notificationAccentColor},":host .note button":{display:"flex",lineHeight:c.notificationButtonSize,padding:0,margin:0,height:c.notificationButtonSize,width:c.notificationButtonSize,background:"transparent",alignItems:"center",justifyContent:"center",boxShadow:"none",border:"none",position:"relative"},":host .note button:hover svg":{stroke:c.notificationAccentColor},":host .note button:active svg":{borderRadius:99,stroke:c.notificationBg,background:c.notificationAccentColor,padding:c.spacing50},":host .note svg":{height:c.notificationIconSize,width:c.notificationIconSize,pointerEvents:"none"},":host .message":{display:"flex",flexDirection:"column",alignItems:"center",gap:c.notificationSpacing},":host .note.closing":{opacity:0,zIndex:0}};static removeNote(e){e.classList.add("closing"),e.style.marginBottom=-e.offsetHeight+"px";let t=()=>{e.remove()};e.addEventListener("transitionend",t),setTimeout(t,1000)}static post(e){let{message:t,duration:i,type:s,close:o,progress:l,icon:n,color:a}=Object.assign({type:"info",duration:-1},typeof e==="string"?{message:e}:e);if(!this.singleton)this.singleton=Ns();let r=this.singleton;document.body.append(r),r.style.zIndex=String(ye()+1);let p=a||Zl[s],d=l||s==="progress"?f.progress():{},x=()=>{if(o)o();we.removeNote(y)},g=n instanceof SVGElement?n:n?u[n]({class:"icon"}):u.info({class:"icon"}),v=s==="error"||s==="warn",y=ti({class:`note ${s}`,role:v?"alert":"status",ariaLive:v?"assertive":"polite",style:{_notificationAccentColor:p}},g,ti({class:"message"},ti(t),d),Ql({class:"close",title:"close",ariaLabel:"Close notification",apply(C){C.addEventListener("click",x)}},u.x()));if(r.shadowRoot.append(y),d instanceof HTMLProgressElement&&l instanceof Function){d.setAttribute("max",String(100)),d.value=l();let C=setInterval(()=>{if(!r.shadowRoot.contains(y)){clearInterval(C);return}let A=l();if(d.value=A,A>=100)we.removeNote(y)},1000)}if(i>0)setTimeout(()=>{we.removeNote(y)},i*1000);return y.scrollIntoView(),x}content=null}var Ns=we.elementCreator({tag:"xin-notification"});function Yl(e){return we.post(e)}var Rs=async(e,t="SHA-1")=>{let s=new TextEncoder().encode(e),o=await crypto.subtle.digest(t,s);return Array.from(new Uint8Array(o)).map((a)=>a.toString(16).padStart(2,"0")).join("")},$s=async(e)=>{let t=await Rs(e),i=await fetch(`https://weakpass.com/api/v1/search/${t}`);if(i.ok){let s=await i.json();console.log("password found in weakpass database",s)}return i.status!==404},{span:ii,xinSlot:Xl}=f;class si extends m{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"];constructor(){super();this.initAttributes("minLength","goodLength","indicatorColors")}strength(e){return this.issues={tooShort:e.length<this.minLength,short:e.length<this.goodLength,noUpper:!e.match(/[A-Z]/),noLower:!e.match(/[a-z]/),noNumber:!e.match(/[0-9]/),noSpecial:!e.match(/[^a-zA-Z0-9]/)},this.issues.tooShort?0:Object.values(this.issues).filter((t)=>!t).length-1}async isBreached(){let e=this.querySelector("input")?.value;if(!e||typeof e!=="string")return!0;return await $s(e)}updateIndicator=(e)=>{let{level:t,description:i}=this.parts,s=this.indicatorColors.split(","),o=this.descriptionColors.split(","),l=this.strength(e);if(this.value!==l)this.value=l,this.dispatchEvent(new Event("change"));t.style.width=`${(l+1)*16.67}%`,this.style.setProperty("--indicator-color",s[l]),this.style.setProperty("--description-color",o[l]),i.textContent=this.strengthDescriptions[l]};update=(e)=>{let t=e.target.closest("input");this.updateIndicator(t?.value||"")};content=()=>[Xl({onInput:this.update}),ii({part:"meter"},ii({part:"level"}),ii({part:"description"}))];render(){super.render();let e=this.querySelector("input");this.updateIndicator(e?.value)}}var en=si.elementCreator({tag:"xin-password-strength",styleSpec:{":host":{display:"inline-flex",flexDirection:"column",gap:c.spacing50,position:"relative"},":host xin-slot":{display:"flex"},':host [part="meter"]':{display:"block",position:"relative",height:h.meterHeight("24px"),background:h.indicatorBg("white"),borderRadius:h.meterRadius("4px"),boxShadow:h.meterShadow(`inset 0 0 0 2px ${c.indicatorColor}`)},':host [part="level"]':{height:h.levelHeight("20px"),content:'" "',display:"inline-block",width:0,transition:"0.15s ease-out",background:c.indicatorColor,margin:h.levelMargin("2px"),borderRadius:h.levelRadius("2px")},':host [part="description"]':{position:"absolute",inset:"0",color:c.descriptionColor,height:h.meterHeight("24px"),lineHeight:h.meterHeight("24px"),textAlign:"center"}}});var{span:oi}=f;class li extends m{iconSize=24;min=1;max=5;step=1;value=null;icon="star";ratingFill="#f91";ratingStroke="#e81";emptyFill="#ccc";emptyStroke="none";readonly=!1;hollow=!1;static styleSpec={":host":{display:"inline-block",position:"relative",width:"fit-content"},":host::part(container)":{position:"relative",display:"inline-block"},":host::part(empty), :host::part(filled)":{height:"100%",whiteSpace:"nowrap",overflow:"hidden"},":host::part(empty)":{pointerEvents:"none",_xinIconFill:c.emptyFill,_xinIconStroke:c.emptyStroke},":host::part(filled)":{position:"absolute",left:0,_xinIconFill:c.ratingFill,_xinIconStroke:c.ratingStroke},":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)"}};constructor(){super();this.initAttributes("max","min","icon","step","ratingStroke","ratingColor","emptyStroke","emptyColor","readonly","iconSize","hollow")}content=()=>oi({part:"container"},oi({part:"empty"}),oi({part:"filled"}));displayValue(e){let{empty:t,filled:i}=this.parts,s=Math.round((e||0)/this.step)*this.step;i.style.width=s/this.max*t.offsetWidth+"px"}update=(e)=>{if(this.readonly)return;let{empty:t}=this.parts,i=e instanceof MouseEvent?e.pageX-t.getBoundingClientRect().x:0,s=Math.min(Math.max(this.min,Math.round(i/t.offsetWidth*this.max/this.step+this.step*0.5)*this.step),this.max);if(e.type==="click")this.value=s;else if(e.type==="mousemove")this.displayValue(s);else this.displayValue(this.value||0)};handleKey=(e)=>{let t=Number(this.value);if(t==null)t=Math.round((this.min+this.max)*0.5*this.step)*this.step;let i=!1;switch(e.key){case"ArrowUp":case"ArrowRight":t+=this.step,i=!0;break;case"ArrowDown":case"ArrowLeft":t-=this.step,i=!0;break}if(this.value=Math.max(Math.min(t,this.max),this.min),i)e.stopPropagation(),e.preventDefault()};connectedCallback(){super.connectedCallback();let{container:e}=this.parts;e.tabIndex=0,e.addEventListener("mousemove",this.update,!0),e.addEventListener("mouseleave",this.update),e.addEventListener("blur",this.update),e.addEventListener("click",this.update),e.addEventListener("keydown",this.handleKey)}_renderedIcon="";render(){super.render();let e=this.iconSize+"px";if(this.style.setProperty("--rating-fill",this.ratingFill),this.style.setProperty("--rating-stroke",this.ratingStroke),this.style.setProperty("--empty-fill",this.emptyFill),this.style.setProperty("--empty-stroke",this.emptyStroke),this.style.setProperty("--xin-icon-size",e),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===null?String(-1):String(this.value);let{empty:t,filled:i}=this.parts;if(t.classList.toggle("hollow",this.hollow),this._renderedIcon!==this.icon){this._renderedIcon=this.icon;for(let s=0;s<this.max;s++)t.append(u[this.icon]()),i.append(u[this.icon]())}this.displayValue(this.value)}}var tn=li.elementCreator({tag:"xin-rating"});var{xinSlot:Us,div:sn,button:on,span:Ws}=f,ln=[{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 ni(e=ln){return V({title:"paragraph style",slot:"toolbar",class:"block-style",options:e.map(({caption:t,tagType:i})=>({caption:t,value:`formatBlock,${i}`}))})}function Se(e="10px"){return Ws({slot:"toolbar",style:{flex:`0 0 ${e}`,content:" "}})}function nn(e="10px"){return Ws({slot:"toolbar",style:{flex:`0 0 ${e}`,content:" "}})}function R(e,t,i){return on({slot:"toolbar",dataCommand:t,title:e},i)}var an=()=>[R("left-justify","justifyLeft",u.alignLeft()),R("center","justifyCenter",u.alignCenter()),R("right-justify","justifyRight",u.alignRight()),Se(),R("bullet list","insertUnorderedList",u.listBullet()),R("numbered list","insertOrderedList",u.listNumber()),Se(),R("indent","indent",u.indent()),R("indent","outdent",u.outdent())],Gs=()=>[R("bold","bold",u.fontBold()),R("italic","italic",u.fontItalic()),R("underline","underline",u.fontUnderline())],rn=()=>[ni(),Se(),...Gs()],Ks=()=>[ni(),Se(),...an(),Se(),...Gs()];class ai extends m{widgets="default";isInitialized=!1;get value(){return this.isInitialized?this.parts.doc.innerHTML:this.savedValue||this.innerHTML}set value(e){if(this.isInitialized)this.parts.doc.innerHTML=e;else this.innerHTML=e}blockElement(e){let{doc:t}=this.parts;while(e.parentElement!==null&&e.parentElement!==t)e=e.parentElement;return e.parentElement===t?e:void 0}get selectedBlocks(){let{doc:e}=this.parts,t=window.getSelection();if(t===null)return[];let i=[];for(let s=0;s<t.rangeCount;s++){let o=t.getRangeAt(s);if(!e.contains(o.commonAncestorContainer))continue;let l=this.blockElement(o.startContainer),n=this.blockElement(o.endContainer);i.push(l);while(l!==n&&l!==null)l=l.nextElementSibling,i.push(l)}return i}get selectedText(){let e=window.getSelection();if(e===null)return"";return this.selectedBlocks.length?e.toString():""}selectionChange=()=>{};handleSelectChange=(e)=>{let i=e.target?.closest(ue.tagName);if(i==null)return;this.doCommand(i.value)};handleButtonClick=(e)=>{let i=e.target?.closest("button");if(i==null)return;this.doCommand(i.dataset.command)};content=[Us({name:"toolbar",part:"toolbar",onClick:this.handleButtonClick,onChange:this.handleSelectChange}),sn({part:"doc",contenteditable:!0,style:{flex:"1 1 auto",outline:"none"}}),Us({part:"content"})];constructor(){super();this.initAttributes("widgets")}doCommand(e){if(e===void 0)return;let t=e.split(",");console.log("execCommand",t[0],!1,...t.slice(1)),document.execCommand(t[0],!1,...t.slice(1))}updateBlockStyle(){let e=this.parts.toolbar.querySelector(".block-style");if(e===null)return;let t=this.selectedBlocks.map((i)=>i.tagName);t=[...new Set(t)],e.value=t.length===1?`formatBlock,${t[0]}`:""}connectedCallback(){super.connectedCallback();let{doc:e,content:t}=this.parts;if(t.innerHTML!==""&&e.innerHTML==="")e.innerHTML=t.innerHTML,t.innerHTML="";this.isInitialized=!0,t.style.display="none",document.addEventListener("selectionchange",(i)=>{this.updateBlockStyle(),this.selectionChange(i,this)})}render(){let{toolbar:e}=this.parts;if(super.render(),e.children.length===0)switch(this.widgets){case"minimal":e.append(...rn());break;case"default":e.append(...Ks());break}}}var cn=ai.elementCreator({tag:"xin-word",styleSpec:{":host":{display:"flex",flexDirection:"column",height:"100%"},':host [part="toolbar"]':{padding:4,display:"flex",gap:"0px",flex:"0 0 auto",flexWrap:"wrap"},':host [part="toolbar"] > button':{_xinIconSize:18}}});var{div:pn,slot:dn,label:hn,span:xn,input:Js}=f;class ri extends m{choices="";other="";multiple=!1;name="";placeholder="Please specify…";localized=!1;value=null;get values(){return(this.value||"").split(",").map((e)=>e.trim()).filter((e)=>e!=="")}content=()=>[dn(),pn({part:"options"},Js({part:"custom",hidden:!0}))];static styleSpec={":host":{display:"inline-flex",gap:h.segmentedOptionGap("8px"),alignItems:h.segmentedAlignItems("center")},":host, :host::part(options)":{flexDirection:h.segmentedDirection("row")},":host label":{display:"inline-grid",alignItems:"center",gap:h.segmentedOptionGap("8px"),gridTemplateColumns:h.segmentedOptionGridColumns("0px 24px 1fr"),padding:h.segmentedOptionPadding("4px 12px"),font:h.segmentedOptionFont("16px")},":host label:focus":{outline:"none",boxShadow:h.segmentedFocusShadow(`inset 0 0 0 2px ${h.segmentedOptionCurrentBackground("#44a")}`),borderRadius:h.segmentedOptionsBorderRadius("8px")},":host label:has(:checked)":{color:h.segmentedOptionCurrentColor("#eee"),background:h.segmentedOptionCurrentBackground("#44a")},":host label:has(:checked):focus":{boxShadow:h.segmentedCurrentFocusShadow(`inset 0 0 0 2px ${h.segmentedOptionCurrentColor("#eee")}`)},":host svg":{height:h.segmentOptionIconSize("16px"),stroke:h.segmentedOptionIconColor("currentColor")},":host label.no-icon":{gap:0,gridTemplateColumns:h.segmentedOptionGridColumns("0px 1fr")},':host input[type="radio"], :host input[type="checkbox"]':{visibility:h.segmentedInputVisibility("hidden")},":host::part(options)":{display:"flex",borderRadius:h.segmentedOptionsBorderRadius("8px"),background:h.segmentedOptionsBackground("#fff"),color:h.segmentedOptionColor("#222"),overflow:"hidden",alignItems:h.segmentedOptionAlignItems("stretch")},":host::part(custom)":{padding:h.segmentedOptionPadding("4px 12px"),color:h.segmentedOptionCurrentColor("#eee"),background:h.segmentedOptionCurrentBackground("#44a"),font:h.segmentedOptionFont("16px"),border:"0",outline:"none"},":host::part(custom)::placeholder":{color:h.segmentedOptionCurrentColor("#eee"),opacity:h.segmentedPlaceholderOpacity(0.75)}};constructor(){super();this.initAttributes("direction","choices","other","multiple","name","placeholder","localized")}valueChanged=!1;handleChange=()=>{let{options:e,custom:t}=this.parts;if(this.multiple){let i=[...e.querySelectorAll("input:checked")];this.value=i.map((s)=>s.value).join(",")}else{let i=e.querySelector("input:checked");if(!i)this.value=null;else if(i.value)t.setAttribute("hidden",""),this.value=i.value;else t.removeAttribute("hidden"),t.focus(),t.select(),this.value=t.value}this.valueChanged=!0};handleKey=(e)=>{let t=!1;switch(e.code){case"Space":if(e.target instanceof HTMLLabelElement)e.target.click(),t=!0;break;case"Tab":if(!(e.target instanceof HTMLLabelElement))e.target.closest("label").focus();break;case"ArrowLeft":case"ArrowUp":{let i=e.target.closest("label");if(i.previousElementSibling instanceof HTMLLabelElement)i.previousElementSibling.focus()}t=!0;break;case"ArrowRight":case"ArrowDown":{let i=e.target.closest("label");if(i.nextElementSibling instanceof HTMLLabelElement)i.nextElementSibling.focus()}t=!0;break}if(t)e.preventDefault(),e.stopPropagation()};connectedCallback(){super.connectedCallback();let{options:e}=this.parts;if(this.name==="")this.name=this.instanceId;if(e.addEventListener("change",this.handleChange),e.addEventListener("keydown",this.handleKey),this.other&&this.multiple)console.warn(this,"is set to [other] and [multiple]; [other] will be ignored"),this.other=""}get _choices(){let e=Array.isArray(this.choices)?this.choices:this.choices.split(",").filter((t)=>t.trim()!=="").map((t)=>{let[i,s]=t.split("=").map((r)=>r.trim()),[o,l]=(s||i).split(":").map((r)=>r.trim()),n=l?u[l]():"";return{value:i,icon:n,caption:o}});if(this.other&&!this.multiple){let[t,i]=this.other.split(":");e.push({value:"",caption:t,icon:i})}return e}get isOtherValue(){return Boolean(this.value===""||this.value&&!this._choices.find((e)=>e.value===this.value))}render(){if(super.render(),this.valueChanged){this.valueChanged=!1;return}let{options:e,custom:t}=this.parts;e.textContent="";let i=this.multiple?"checkbox":"radio",{values:s,isOtherValue:o}=this;if(e.append(...this._choices.map((l)=>{return hn({tabindex:0},Js({type:i,name:this.name,value:l.value,checked:s.includes(l.value)||l.value===""&&o,tabIndex:-1}),l.icon||{class:"no-icon"},this.localized?Q(l.caption):xn(l.caption))})),this.other&&!this.multiple)t.hidden=!o,t.value=o?this.value:"",t.placeholder=this.placeholder,e.append(t)}}var yn=ri.elementCreator({tag:"xin-segmented"});var{slot:Qs}=f;class ci extends m{minWidth=0;minHeight=0;value="normal";content=[Qs({part:"normal"}),Qs({part:"small",name:"small"})];static styleSpec={":host":{display:"inline-block",position:"relative"}};constructor(){super();this.initAttributes("minWidth","minHeight")}onResize=()=>{let{normal:e,small:t}=this.parts,i=this.offsetParent;if(!(i instanceof HTMLElement))return;else if(i.offsetWidth<this.minWidth||i.offsetHeight<this.minHeight)e.hidden=!0,t.hidden=!1,this.value="small";else e.hidden=!1,t.hidden=!0,this.value="normal"};connectedCallback(){super.connectedCallback(),globalThis.addEventListener("resize",this.onResize)}disconnectedCallback(){super.disconnectedCallback(),globalThis.removeEventListener("resize",this.onResize)}}var un=ci.elementCreator({tag:"xin-sizebreak"});class pi extends m{target=null;static styleSpec={":host":{_resizeIconFill:"#222",display:"block",position:"absolute",bottom:-7,right:-7,padding:14,width:44,height:44,opacity:0.25,transition:"opacity 0.25s ease-out"},":host(:hover)":{opacity:0.5},":host svg":{width:16,height:16,stroke:c.resizeIconFill}};content=u.resize();get minSize(){let{minWidth:e,minHeight:t}=getComputedStyle(this.target);return{width:parseFloat(e)||32,height:parseFloat(t)||32}}resizeTarget=(e)=>{let{target:t}=this;if(!t)return;let{offsetWidth:i,offsetHeight:s}=t;t.style.left=t.offsetLeft+"px",t.style.top=t.offsetTop+"px",t.style.bottom="",t.style.right="";let{minSize:o}=this;T(e,(l,n,a)=>{if(t.style.width=Math.max(o.width,i+l)+"px",t.style.height=Math.max(o.height,s+n)+"px",a.type==="mouseup")return!0},"nwse-resize")};connectedCallback(){if(super.connectedCallback(),!this.target)this.target=this.parentElement;let e={passive:!0};this.addEventListener("mousedown",this.resizeTarget,e),this.addEventListener("touchstart",this.resizeTarget,e)}}var gn=pi.elementCreator({tag:"xin-sizer"});var{div:fn,input:mn,span:vn,button:di}=f;class Pt extends m{caption="";removeable=!1;removeCallback=()=>{this.remove()};content=()=>[vn({part:"caption"},this.caption),di(u.x(),{part:"remove",hidden:!this.removeable,ariaLabel:`Remove ${this.caption}`,onClick:this.removeCallback})];constructor(){super();this.initAttributes("caption","removeable")}}var Zs=Pt.elementCreator({tag:"xin-tag",styleSpec:{":host":{"--tag-close-button-color":"#000c","--tag-close-button-bg":"#fffc","--tag-button-opacity":"0.5","--tag-button-hover-opacity":"0.75","--tag-bg":h.brandColor("blue"),"--tag-text-color":h.brandTextColor("white"),display:"inline-flex",borderRadius:h.tagRoundedRadius(c.spacing50),color:c.tagTextColor,background:c.tagBg,padding:`0 ${c.spacing75} 0 ${c.spacing75}`,height:`calc(${c.lineHeight} + ${c.spacing50})`,lineHeight:`calc(${c.lineHeight} + ${c.spacing50})`},':host > [part="caption"]':{position:"relative",whiteSpace:"nowrap",overflow:"hidden",flex:"1 1 auto",fontSize:h.fontSize("16px"),color:c.tagTextColor,textOverflow:"ellipsis"},':host [part="remove"]':{boxShadow:"none",margin:`0 ${c.spacing_50} 0 ${c.spacing25}`,padding:0,display:"inline-flex",alignItems:"center",alignSelf:"center",justifyContent:"center",height:c.spacing150,width:c.spacing150,color:c.tagCloseButtonColor,background:c.tagCloseButtonBg,borderRadius:h.tagCloseButtonRadius("99px"),opacity:c.tagButtonOpacity},':host [part="remove"]:hover':{background:c.tagCloseButtonBg,opacity:c.tagButtonHoverOpacity}}});class hi extends m{disabled=!1;name="";availableTags=[];value=[];textEntry=!1;editable=!1;placeholder="enter tags";get tags(){return typeof this.value==="string"?this.value.split(",").map((e)=>e.trim()).filter((e)=>e!==""):this.value}constructor(){super();this.initAttributes("name","value","textEntry","availableTags","editable","placeholder","disabled")}addTag=(e)=>{if(e.trim()==="")return;let{tags:t}=this;if(!t.includes(e))t.push(e);this.value=t,this.queueRender(!0)};toggleTag=(e)=>{if(this.tags.includes(e))this.value=this.tags.filter((t)=>t!==e);else this.addTag(e);this.queueRender(!0)};enterTag=(e)=>{let{tagInput:t}=this.parts;switch(e.key){case",":{let i=t.value.split(",")[0];this.addTag(i)}break;case"Enter":{let i=t.value.split(",")[0];this.addTag(i)}e.stopPropagation(),e.preventDefault();break;default:}};popSelectMenu=()=>{let{toggleTag:e}=this,{tagMenu:t}=this.parts,i=typeof this.availableTags==="string"?this.availableTags.split(","):this.availableTags,s=this.tags.filter((l)=>!i.includes(l));if(s.length)i.push(null,...s);let o=i.map((l)=>{if(l===""||l===null)return null;else if(typeof l==="object")return{checked:()=>this.tags.includes(l.value),caption:l.caption,action(){e(l.value)}};else return{checked:()=>this.tags.includes(l),caption:l,action(){e(l)}}});S({target:t,width:"auto",menuItems:o})};content=()=>[di({style:{visibility:"hidden"},tabindex:-1}),fn({part:"tagContainer",class:"row",role:"list",ariaLabel:"Selected tags"}),mn({part:"tagInput",class:"elastic",ariaLabel:"Enter new tag",onKeydown:this.enterTag}),di({title:"add tag",ariaLabel:"Select tags from list",ariaHaspopup:"listbox",part:"tagMenu",onClick:this.popSelectMenu},u.chevronDown())];removeTag=(e)=>{if(this.editable&&!this.disabled){let t=e.target.closest(Pt.tagName);this.value=this.tags.filter((i)=>i!==t.caption),t.remove(),this.queueRender(!0)}e.stopPropagation(),e.preventDefault()};render(){super.render();let{tagContainer:e,tagMenu:t,tagInput:i}=this.parts;if(t.disabled=this.disabled,i.value="",i.setAttribute("placeholder",this.placeholder),this.editable&&!this.disabled)t.toggleAttribute("hidden",!1),i.toggleAttribute("hidden",!this.textEntry);else t.toggleAttribute("hidden",!0),i.toggleAttribute("hidden",!0);e.textContent="";let{tags:s}=this;for(let o of s)e.append(Zs({caption:o,removeable:this.editable&&!this.disabled,removeCallback:this.removeTag}))}}var kn=hi.elementCreator({tag:"xin-tag-list",styleSpec:{":host":{"--tag-list-bg":"#f8f8f8","--touch-size":"44px","--spacing":"16px",display:"grid",gridTemplateColumns:"auto",alignItems:"center",background:c.tagListBg,gap:c.spacing25,borderRadius:h.taglistRoundedRadius(c.spacing50),overflow:"hidden"},":host[editable]":{gridTemplateColumns:`0px auto ${c.touchSize}`},":host[editable][text-entry]":{gridTemplateColumns:`0px 2fr 1fr ${c.touchSize}`},':host [part="tagContainer"]':{display:"flex",content:'" "',alignItems:"center",background:c.inputBg,borderRadius:h.tagContainerRadius(c.spacing50),boxShadow:c.borderShadow,flexWrap:"nowrap",overflow:"auto hidden",gap:c.spacing25,minHeight:`calc(${c.lineHeight} + ${c.spacing})`,padding:c.spacing25},':host [part="tagMenu"]':{width:c.touchSize,height:c.touchSize,lineHeight:c.touchSize,textAlign:"center",padding:0,margin:0},":host [hidden]":{display:"none !important"},':host button[part="tagMenu"]':{background:c.brandColor,color:c.brandTextColor}}});var Ys="1.0.13";var xi={accent:k.fromCss("#EE257B"),background:k.fromCss("#fafafa"),text:k.fromCss("#222222")},Xs={_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 Cn(e){let{accent:t,background:i,text:s}=e,o=e.accentText??t.contrasting(),l=e.backgroundInset??i.darken(0.03),n=e.border??s.opacity(0.15),a=e.shadow??s.opacity(0.1),r=e.focus??t.opacity(0.5);return{_tosiAccent:t,_tosiAccentLight:t.brighten(0.15),_tosiAccentDark:t.darken(0.15),_tosiAccentText:o,_tosiBg:i,_tosiBgInset:l,_tosiBgHover:i.darken(0.05),_tosiBgActive:i.darken(0.1),_tosiText:s,_tosiTextMuted:s.opacity(0.6),_tosiTextDisabled:s.opacity(0.4),_tosiBorder:n,_tosiBorderFocus:t,_tosiShadow:a,_tosiShadowColor:a,_tosiFocusRing:`0 0 0 2px ${r}`,_tosiInputBg:i,_tosiInputBorder:n,_tosiInputBorderFocus:t,_tosiButtonBg:i,_tosiButtonText:s,_tosiButtonBorder:n,_tosiButtonHoverBg:i.darken(0.05),_tosiButtonActiveBg:t,_tosiButtonActiveText:o}}function jt(e){return{":root":{...Xs,...Cn(e)}}}function e2(e){let i=jt(e)[":root"];return{":root":Qt(i)}}function wn(e,t="tosi-theme"){$e(t,e)}var bn=jt(xi),Mn=e2(xi),t2={"--xin-icon-size":c.tosiIconSize,"--xin-icon-fill":c.tosiIconFill,"--xin-icon-stroke":c.tosiIconStroke,"--xin-tabs-bar-color":c.tosiTabsBarColor,"--xin-tabs-bar-height":c.tosiTabsBarHeight,"--xin-tabs-selected-color":c.tosiTabsSelectedColor,"--spacing":c.tosiSpacing,"--gap":c.tosiSpacingSm,"--touch-size":c.tosiTouchSize,"--background":c.tosiBg,"--text-color":c.tosiText,"--brand-color":c.tosiAccent,"--brand-text-color":c.tosiAccentText};function Bn(e){return{":root":{...jt(e)[":root"],...t2}}}function zn(e,t){let i={};for(let[s,o]of Object.entries(t)){let l=`--tosi-${e}-${s.replace(/([A-Z])/g,"-$1").toLowerCase()}`;i[s]=`var(${l}, ${o})`}return i}Object.assign(globalThis,{xinjs:We,xinjsui:yi});})();
91
+ `)}var{div:sn}=f;class we extends m{coords="65.01715565258993,25.48081004203459,12";content=sn({style:{width:"100%",height:"100%"}});get map(){return this._map}mapStyle="mapbox://styles/mapbox/streets-v12";token="";static mapboxCSSAvailable;static mapboxAvailable;_map;static styleSpec={":host":{display:"inline-block",position:"relative",width:"400px",height:"400px",textAlign:"left"}};constructor(){super();if(this.initAttributes("coords","token","mapStyle"),we.mapboxCSSAvailable===void 0)we.mapboxCSSAvailable=gt("https://api.mapbox.com/mapbox-gl-js/v1.4.1/mapbox-gl.css").catch((e)=>{console.error("failed to load mapbox-gl.css",e)}),we.mapboxAvailable=F("https://api.mapbox.com/mapbox-gl-js/v1.4.1/mapbox-gl.js").catch((e)=>{console.error("failed to load mapbox-gl.js",e)})}connectedCallback(){if(super.connectedCallback(),!this.token)console.error("mapbox requires an access token which you can provide via the token attribute")}render(){if(super.render(),!this.token)return;let{div:e}=this.parts,[t,i,s]=this.coords.split(",").map((l)=>Number(l));if(this.map)this.map.remove();we.mapboxAvailable.then(({mapboxgl:l})=>{console.log("%cmapbox may complain about missing css -- don't panic!","background: orange; color: black; padding: 0 5px;"),l.accessToken=this.token,this._map=new l.Map({container:e,style:this.mapStyle,zoom:s,center:[i,t]}),this._map.on("render",()=>this._map.resize())})}}var ln=we.elementCreator({tag:"xin-map"});var{div:ni,span:Tt,button:ai}=f,lt=86400000,on=[0,1,2,3,4,5,6],nn=[1,2,3,4,5,6,7,8,9,10,11,12],ri=(e,t=2,i="0")=>String(e).padStart(t,i),ot=(e,t,i)=>new Date(`${e}-${ri(t)}-${ri(i)}`);class ci extends m{month=NaN;year=NaN;minDate=ot(new Date().getFullYear()-100,1,1).toISOString().split("T")[0];maxDate=ot(new Date().getFullYear()+10,12,31).toISOString().split("T")[0];weekStart=0;selectable=!1;multiple=!1;range=!1;disabled=!1;readonly=!1;selectedDays=[];value="";get endDay(){return 1-this.weekStart}get months(){return nn.map((e)=>({caption:ot(2025,e,1).toString().split(" ")[1],value:String(e)}))}get years(){let e=Number(this.minDate.split("-")[0]),t=Number(this.maxDate.split("-")[0]),i=[];for(let s=e;s<=t;s++)i.push(String(s));return i}monthChanged=(e,t)=>{};gotoMonth(e,t){if(this.month!==t||this.year!==e)this.month=t,this.year=e,this.monthChanged(e,t)}setMonth=()=>{this.gotoMonth(Number(this.parts.year.value),Number(this.parts.month.value))};get to(){return this.selectedDays[1]||""}set to(e){this.selectedDays[1]=e,this.selectedDays.splice(2)}get from(){return this.selectedDays[0]||""}set from(e){this.selectedDays[0]=e,this.selectedDays.splice(2)}clickDate=(e)=>{let t=e.target.getAttribute("title");this.selectDate(t)};keyDate=(e)=>{let t=!1;switch(e.code){case"Space":{let i=e.target.getAttribute("title");this.selectDate(i),t=!0;break}case"Tab":break;default:console.log(e)}if(t)e.preventDefault(),e.stopPropagation()};#e="";selectDate=(e)=>{if(this.#e=e,this.range){if(!this.to)this.selectedDays=[e,e];else if(this.from===e&&this.to===e)this.selectedDays=[];else if(this.from===e)this.from=this.to;else if(this.to===e)this.to=this.from;else if(e<this.from)this.from=e;else if(e>this.to)this.to=e;else this.to=e;this.value=`${this.from},${this.to}`}else if(this.multiple){if(this.selectedDays.includes(e))this.selectedDays.splice(this.selectedDays.indexOf(e),1);else this.selectedDays.push(e),this.selectedDays.sort();this.value=this.selectedDays.join(",")}else if(this.selectable)if(this.selectedDays.includes(e))this.value="",this.selectedDays=[];else this.value=e,this.selectedDays=[e]};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=(e)=>{if(!this.range)return this.selectedDays.includes(e);else if(this.range)return this.from&&e>=this.from&&e<=this.to;return!1};dateMenuItem=(e,t="")=>{return e=e.split("T")[0],{caption:t||e,enabled:()=>!e.startsWith(`${this.year}-${ri(this.month)}-`),action:()=>{this.gotoDate(e)}}};jumpMenu=()=>{S({target:this.parts.jump,menuItems:[this.dateMenuItem(new Date().toISOString(),"This Month"),...this.selectedDays.length===0?[]:[null],...this.selectedDays.map((e)=>this.dateMenuItem(e))]})};content=()=>[ni({part:"header"},ai({part:"previous",onClick:this.previousMonth},u.chevronLeft()),Tt({style:{flex:"1"}}),ai({part:"jump",onClick:this.jumpMenu},u.calendar()),V({part:"month",options:this.months,onChange:this.setMonth}),V({part:"year",options:[this.year],onChange:this.setMonth}),Tt({style:{flex:"1"}}),ai({part:"next",onClick:this.nextMonth},u.chevronRight())),ni({part:"week"}),ni({part:"days"})];gotoDate(e){let t=new Date(e);this.gotoMonth(t.getFullYear(),t.getMonth()+1)}constructor(){super();this.initAttributes("month","year","weekStart","minDate","maxDate","selectable","multiple","range","disabled","readonly")}connectedCallback(){super.connectedCallback();let e=new Date(this.value.split(",").pop()||Date.now());if(isNaN(this.month))this.month=e.getMonth()+1;if(isNaN(this.year))this.year=e.getFullYear()}days=[];render(){let{week:e,days:t,jump:i,month:s,year:l,previous:o,next:n}=this.parts;this.selectedDays=this.value?this.value.split(","):[];let a=ot(this.year,this.month,1),r=new Date(a.valueOf()-(7+a.getDay()-this.weekStart)%7*lt),d=this.month===12?1:this.month+1,p=new Date(ot(this.year+(this.month===12?1:0),d,1).valueOf()-lt),x=new Date(p.valueOf()+(this.weekStart*2+5+this.endDay-p.getDay())%7*lt),g=on.map((b)=>new Date(r.valueOf()+b*lt).toString().split(" ")[0]);this.days=[];let k=new Date().toISOString().split("T")[0];for(let b=r.valueOf();b<=x.valueOf();b+=lt){let B=new Date(b),z=B.toISOString().split("T")[0];this.days.push({date:B,selected:!1,inMonth:B.getMonth()+1===this.month,isToday:z===k,isWeekend:B.getDay()%6===0,inRange:!!(this.from&&z>=this.from&&z<=this.to)})}s.value=String(this.month),l.value=String(this.year),s.disabled=l.disabled=i.disabled=o.disabled=n.disabled=this.disabled||this.readonly,l.options=this.years,e.textContent="",e.append(...g.map((b)=>Tt({class:"day"},b))),t.textContent="";let y=null,{to:v,from:E}=this;t.append(...this.days.map((b)=>{let B=["date"];if(b.inMonth)B.push("in-month");if(b.isToday)B.push("today");let z=b.date.toISOString().split("T")[0];if(this.checkDay(z))B.push("checked");if(B.push(b.isWeekend?"weekend":"weekday"),this.range){if(v===z)B.push("range-end");if(E===z)B.push("range-start")}let G=Tt({class:B.join(" "),title:z,onClick:this.clickDate,onKeydown:this.keyDate,tabindex:"0"},b.date.getDate());if(z===this.#e)y=G;return G})),y?.focus()}}var an=ci.elementCreator({tag:"tosi-month",styleSpec:{":host":{display:"block"},":host [part=header]":{display:"flex",alignItems:"stretch",justifyContent:"stretch"},":host[disabled]":{pointerEvents:"none",opacity:h.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:h.monthTodayBackground("transparent"),boxShadow:h.monthTodayShadow("none"),backdropFilter:h.monthTodayBackdropFilter("brightness(0.9)"),fontWeight:h.monthTodayFontWeight("800")},":host .day, :host .date":{padding:5,display:"flex",justifyContent:"center",userSelect:"none"},":host .day":{color:h.monthDayColor("hotpink"),background:h.monthDayBackground("white"),fontWeight:h.monthDayFontWeight("800")},":host .date":{cursor:"default"},":host .weekend":{background:h.monthWeekendBackground("#eee")},":host .date:not(.in-month)":{opacity:0.5},":host .date.checked":{color:h.monthDateCheckedColor("white"),background:h.monthDateCheckedBackground("hotpink")},":host:not([range]) .date.checked":{borderRadius:h.monthDateCheckedBorderRadius("10px")},":host .range-start":{borderTopLeftRadius:h.monthDateCheckedBorderRadius("10px"),borderBottomLeftRadius:h.monthDateCheckedBorderRadius("10px")},":host .range-end":{borderTopRightRadius:h.monthDateCheckedBorderRadius("10px"),borderBottomRightRadius:h.monthDateCheckedBorderRadius("10px")}}});var{div:di,button:rn}=f,cn={error:"red",warn:"orange",info:"royalblue",log:"gray",success:"green",progress:"royalblue"};class Me extends m{static singleton;static styleSpec={":host":{_notificationSpacing:8,_notificationWidth:360,_notificationPadding:`${c.notificationSpacing} ${c.notificationSpacing50} ${c.notificationSpacing} ${c.notificationSpacing200}`,_notificationBg:"#fafafa",_notificationAccentColor:"#aaa",_notificationTextColor:"#444",_notificationIconSize:c.notificationSpacing300,_notificationButtonSize:48,_notificationBorderWidth:"3px 0 0",_notificationBorderRadius:c.notificationSpacing50,position:"fixed",left:0,right:0,bottom:0,paddingBottom:c.notificationSpacing,width:c.notificationWidth,display:"flex",flexDirection:"column-reverse",margin:"0 auto",gap:c.notificationSpacing,maxHeight:"50vh",overflow:"hidden auto",boxShadow:"none !important"},":host *":{color:c.notificationTextColor},":host .note":{display:"grid",background:c.notificationBg,padding:c.notificationPadding,gridTemplateColumns:`${c.notificationIconSize} 1fr ${c.notificationButtonSize}`,gap:c.notificationSpacing,alignItems:"center",borderRadius:c.notificationBorderRadius,boxShadow:`0 2px 8px #0006, inset 0 0 0 2px ${c.notificationAccentColor}`,borderColor:c.notificationAccentColor,borderWidth:c.notificationBorderWidth,borderStyle:"solid",transition:"0.5s ease-in",transitionProperty:"margin, opacity",zIndex:1},":host .note .icon":{stroke:c.notificationAccentColor},":host .note button":{display:"flex",lineHeight:c.notificationButtonSize,padding:0,margin:0,height:c.notificationButtonSize,width:c.notificationButtonSize,background:"transparent",alignItems:"center",justifyContent:"center",boxShadow:"none",border:"none",position:"relative"},":host .note button:hover svg":{stroke:c.notificationAccentColor},":host .note button:active svg":{borderRadius:99,stroke:c.notificationBg,background:c.notificationAccentColor,padding:c.spacing50},":host .note svg":{height:c.notificationIconSize,width:c.notificationIconSize,pointerEvents:"none"},":host .message":{display:"flex",flexDirection:"column",alignItems:"center",gap:c.notificationSpacing},":host .note.closing":{opacity:0,zIndex:0}};static removeNote(e){e.classList.add("closing"),e.style.marginBottom=-e.offsetHeight+"px";let t=()=>{e.remove()};e.addEventListener("transitionend",t),setTimeout(t,1000)}static post(e){let{message:t,duration:i,type:s,close:l,progress:o,icon:n,color:a}=Object.assign({type:"info",duration:-1},typeof e==="string"?{message:e}:e);if(!this.singleton)this.singleton=t2();let r=this.singleton;document.body.append(r),r.style.zIndex=String(ge()+1);let d=a||cn[s],p=o||s==="progress"?f.progress():{},x=()=>{if(l)l();Me.removeNote(y)},g=n instanceof SVGElement?n:n?u[n]({class:"icon"}):u.info({class:"icon"}),k=s==="error"||s==="warn",y=di({class:`note ${s}`,role:k?"alert":"status",ariaLive:k?"assertive":"polite",style:{_notificationAccentColor:d}},g,di({class:"message"},di(t),p),rn({class:"close",title:"close",ariaLabel:"Close notification",apply(v){v.addEventListener("click",x)}},u.x()));if(r.shadowRoot.append(y),p instanceof HTMLProgressElement&&o instanceof Function){p.setAttribute("max",String(100)),p.value=o();let v=setInterval(()=>{if(!r.shadowRoot.contains(y)){clearInterval(v);return}let E=o();if(p.value=E,E>=100)Me.removeNote(y)},1000)}if(i>0)setTimeout(()=>{Me.removeNote(y)},i*1000);return y.scrollIntoView(),x}content=null}var t2=Me.elementCreator({tag:"xin-notification"});function dn(e){return Me.post(e)}var i2=async(e,t="SHA-1")=>{let s=new TextEncoder().encode(e),l=await crypto.subtle.digest(t,s);return Array.from(new Uint8Array(l)).map((a)=>a.toString(16).padStart(2,"0")).join("")},s2=async(e)=>{let t=await i2(e),i=await fetch(`https://weakpass.com/api/v1/search/${t}`);if(i.ok){let s=await i.json();console.log("password found in weakpass database",s)}return i.status!==404},{span:pi,xinSlot:pn}=f;class hi extends m{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"];constructor(){super();this.initAttributes("minLength","goodLength","indicatorColors")}strength(e){return this.issues={tooShort:e.length<this.minLength,short:e.length<this.goodLength,noUpper:!e.match(/[A-Z]/),noLower:!e.match(/[a-z]/),noNumber:!e.match(/[0-9]/),noSpecial:!e.match(/[^a-zA-Z0-9]/)},this.issues.tooShort?0:Object.values(this.issues).filter((t)=>!t).length-1}async isBreached(){let e=this.querySelector("input")?.value;if(!e||typeof e!=="string")return!0;return await s2(e)}updateIndicator=(e)=>{let{level:t,description:i}=this.parts,s=this.indicatorColors.split(","),l=this.descriptionColors.split(","),o=this.strength(e);if(this.value!==o)this.value=o,this.dispatchEvent(new Event("change"));t.style.width=`${(o+1)*16.67}%`,this.style.setProperty("--indicator-color",s[o]),this.style.setProperty("--description-color",l[o]),i.textContent=this.strengthDescriptions[o]};update=(e)=>{let t=e.target.closest("input");this.updateIndicator(t?.value||"")};content=()=>[pn({onInput:this.update}),pi({part:"meter"},pi({part:"level"}),pi({part:"description"}))];render(){super.render();let e=this.querySelector("input");this.updateIndicator(e?.value)}}var hn=hi.elementCreator({tag:"xin-password-strength",styleSpec:{":host":{display:"inline-flex",flexDirection:"column",gap:c.spacing50,position:"relative"},":host xin-slot":{display:"flex"},':host [part="meter"]':{display:"block",position:"relative",height:h.meterHeight("24px"),background:h.indicatorBg("white"),borderRadius:h.meterRadius("4px"),boxShadow:h.meterShadow(`inset 0 0 0 2px ${c.indicatorColor}`)},':host [part="level"]':{height:h.levelHeight("20px"),content:'" "',display:"inline-block",width:0,transition:"0.15s ease-out",background:c.indicatorColor,margin:h.levelMargin("2px"),borderRadius:h.levelRadius("2px")},':host [part="description"]':{position:"absolute",inset:"0",color:c.descriptionColor,height:h.meterHeight("24px"),lineHeight:h.meterHeight("24px"),textAlign:"center"}}});var{span:xi}=f;class yi extends m{iconSize=24;min=1;max=5;step=1;value=null;icon="star";ratingFill="#f91";ratingStroke="#e81";emptyFill="#ccc";emptyStroke="none";readonly=!1;hollow=!1;static styleSpec={":host":{display:"inline-block",position:"relative",width:"fit-content"},":host::part(container)":{position:"relative",display:"inline-block"},":host::part(empty), :host::part(filled)":{height:"100%",whiteSpace:"nowrap",overflow:"hidden"},":host::part(empty)":{pointerEvents:"none",_xinIconFill:c.emptyFill,_xinIconStroke:c.emptyStroke},":host::part(filled)":{position:"absolute",left:0,_xinIconFill:c.ratingFill,_xinIconStroke:c.ratingStroke},":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)"}};constructor(){super();this.initAttributes("max","min","icon","step","ratingStroke","ratingColor","emptyStroke","emptyColor","readonly","iconSize","hollow")}content=()=>xi({part:"container"},xi({part:"empty"}),xi({part:"filled"}));displayValue(e){let{empty:t,filled:i}=this.parts,s=Math.round((e||0)/this.step)*this.step;i.style.width=s/this.max*t.offsetWidth+"px"}update=(e)=>{if(this.readonly)return;let{empty:t}=this.parts,i=e instanceof MouseEvent?e.pageX-t.getBoundingClientRect().x:0,s=Math.min(Math.max(this.min,Math.round(i/t.offsetWidth*this.max/this.step+this.step*0.5)*this.step),this.max);if(e.type==="click")this.value=s;else if(e.type==="mousemove")this.displayValue(s);else this.displayValue(this.value||0)};handleKey=(e)=>{let t=Number(this.value);if(t==null)t=Math.round((this.min+this.max)*0.5*this.step)*this.step;let i=!1;switch(e.key){case"ArrowUp":case"ArrowRight":t+=this.step,i=!0;break;case"ArrowDown":case"ArrowLeft":t-=this.step,i=!0;break}if(this.value=Math.max(Math.min(t,this.max),this.min),i)e.stopPropagation(),e.preventDefault()};connectedCallback(){super.connectedCallback();let{container:e}=this.parts;e.tabIndex=0,e.addEventListener("mousemove",this.update,!0),e.addEventListener("mouseleave",this.update),e.addEventListener("blur",this.update),e.addEventListener("click",this.update),e.addEventListener("keydown",this.handleKey)}_renderedIcon="";render(){super.render();let e=this.iconSize+"px";if(this.style.setProperty("--rating-fill",this.ratingFill),this.style.setProperty("--rating-stroke",this.ratingStroke),this.style.setProperty("--empty-fill",this.emptyFill),this.style.setProperty("--empty-stroke",this.emptyStroke),this.style.setProperty("--xin-icon-size",e),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===null?String(-1):String(this.value);let{empty:t,filled:i}=this.parts;if(t.classList.toggle("hollow",this.hollow),this._renderedIcon!==this.icon){this._renderedIcon=this.icon;for(let s=0;s<this.max;s++)t.append(u[this.icon]()),i.append(u[this.icon]())}this.displayValue(this.value)}}var xn=yi.elementCreator({tag:"xin-rating"});var{xinSlot:l2,div:yn,button:un,span:o2}=f,gn=[{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 ui(e=gn){return V({title:"paragraph style",slot:"toolbar",class:"block-style",options:e.map(({caption:t,tagType:i})=>({caption:t,value:`formatBlock,${i}`}))})}function Ie(e="10px"){return o2({slot:"toolbar",style:{flex:`0 0 ${e}`,content:" "}})}function fn(e="10px"){return o2({slot:"toolbar",style:{flex:`0 0 ${e}`,content:" "}})}function R(e,t,i){return un({slot:"toolbar",dataCommand:t,title:e},i)}var mn=()=>[R("left-justify","justifyLeft",u.alignLeft()),R("center","justifyCenter",u.alignCenter()),R("right-justify","justifyRight",u.alignRight()),Ie(),R("bullet list","insertUnorderedList",u.listBullet()),R("numbered list","insertOrderedList",u.listNumber()),Ie(),R("indent","indent",u.indent()),R("indent","outdent",u.outdent())],n2=()=>[R("bold","bold",u.fontBold()),R("italic","italic",u.fontItalic()),R("underline","underline",u.fontUnderline())],vn=()=>[ui(),Ie(),...n2()],a2=()=>[ui(),Ie(),...mn(),Ie(),...n2()];class gi extends m{widgets="default";isInitialized=!1;get value(){return this.isInitialized?this.parts.doc.innerHTML:this.savedValue||this.innerHTML}set value(e){if(this.isInitialized)this.parts.doc.innerHTML=e;else this.innerHTML=e}blockElement(e){let{doc:t}=this.parts;while(e.parentElement!==null&&e.parentElement!==t)e=e.parentElement;return e.parentElement===t?e:void 0}get selectedBlocks(){let{doc:e}=this.parts,t=window.getSelection();if(t===null)return[];let i=[];for(let s=0;s<t.rangeCount;s++){let l=t.getRangeAt(s);if(!e.contains(l.commonAncestorContainer))continue;let o=this.blockElement(l.startContainer),n=this.blockElement(l.endContainer);i.push(o);while(o!==n&&o!==null)o=o.nextElementSibling,i.push(o)}return i}get selectedText(){let e=window.getSelection();if(e===null)return"";return this.selectedBlocks.length?e.toString():""}selectionChange=()=>{};handleSelectChange=(e)=>{let i=e.target?.closest(fe.tagName);if(i==null)return;this.doCommand(i.value)};handleButtonClick=(e)=>{let i=e.target?.closest("button");if(i==null)return;this.doCommand(i.dataset.command)};content=[l2({name:"toolbar",part:"toolbar",onClick:this.handleButtonClick,onChange:this.handleSelectChange}),yn({part:"doc",contenteditable:!0,style:{flex:"1 1 auto",outline:"none"}}),l2({part:"content"})];constructor(){super();this.initAttributes("widgets")}doCommand(e){if(e===void 0)return;let t=e.split(",");console.log("execCommand",t[0],!1,...t.slice(1)),document.execCommand(t[0],!1,...t.slice(1))}updateBlockStyle(){let e=this.parts.toolbar.querySelector(".block-style");if(e===null)return;let t=this.selectedBlocks.map((i)=>i.tagName);t=[...new Set(t)],e.value=t.length===1?`formatBlock,${t[0]}`:""}connectedCallback(){super.connectedCallback();let{doc:e,content:t}=this.parts;if(t.innerHTML!==""&&e.innerHTML==="")e.innerHTML=t.innerHTML,t.innerHTML="";this.isInitialized=!0,t.style.display="none",document.addEventListener("selectionchange",(i)=>{this.updateBlockStyle(),this.selectionChange(i,this)})}render(){let{toolbar:e}=this.parts;if(super.render(),e.children.length===0)switch(this.widgets){case"minimal":e.append(...vn());break;case"default":e.append(...a2());break}}}var kn=gi.elementCreator({tag:"xin-word",styleSpec:{":host":{display:"flex",flexDirection:"column",height:"100%"},':host [part="toolbar"]':{padding:4,display:"flex",gap:"0px",flex:"0 0 auto",flexWrap:"wrap"},':host [part="toolbar"] > button':{_xinIconSize:18}}});var{div:Cn,slot:bn,label:wn,span:Mn,input:r2}=f;class fi extends m{choices="";other="";multiple=!1;name="";placeholder="Please specify…";localized=!1;value=null;get values(){return(this.value||"").split(",").map((e)=>e.trim()).filter((e)=>e!=="")}content=()=>[bn(),Cn({part:"options"},r2({part:"custom",hidden:!0}))];static styleSpec={":host":{display:"inline-flex",gap:h.segmentedOptionGap("8px"),alignItems:h.segmentedAlignItems("center")},":host, :host::part(options)":{flexDirection:h.segmentedDirection("row")},":host label":{display:"inline-grid",alignItems:"center",gap:h.segmentedOptionGap("8px"),gridTemplateColumns:h.segmentedOptionGridColumns("0px 24px 1fr"),padding:h.segmentedOptionPadding("4px 12px"),font:h.segmentedOptionFont("16px")},":host label:focus":{outline:"none",boxShadow:h.segmentedFocusShadow(`inset 0 0 0 2px ${h.segmentedOptionCurrentBackground("#44a")}`),borderRadius:h.segmentedOptionsBorderRadius("8px")},":host label:has(:checked)":{color:h.segmentedOptionCurrentColor("#eee"),background:h.segmentedOptionCurrentBackground("#44a")},":host label:has(:checked):focus":{boxShadow:h.segmentedCurrentFocusShadow(`inset 0 0 0 2px ${h.segmentedOptionCurrentColor("#eee")}`)},":host svg":{height:h.segmentOptionIconSize("16px"),stroke:h.segmentedOptionIconColor("currentColor")},":host label.no-icon":{gap:0,gridTemplateColumns:h.segmentedOptionGridColumns("0px 1fr")},':host input[type="radio"], :host input[type="checkbox"]':{visibility:h.segmentedInputVisibility("hidden")},":host::part(options)":{display:"flex",borderRadius:h.segmentedOptionsBorderRadius("8px"),background:h.segmentedOptionsBackground("#fff"),color:h.segmentedOptionColor("#222"),overflow:"hidden",alignItems:h.segmentedOptionAlignItems("stretch")},":host::part(custom)":{padding:h.segmentedOptionPadding("4px 12px"),color:h.segmentedOptionCurrentColor("#eee"),background:h.segmentedOptionCurrentBackground("#44a"),font:h.segmentedOptionFont("16px"),border:"0",outline:"none"},":host::part(custom)::placeholder":{color:h.segmentedOptionCurrentColor("#eee"),opacity:h.segmentedPlaceholderOpacity(0.75)}};constructor(){super();this.initAttributes("direction","choices","other","multiple","name","placeholder","localized")}valueChanged=!1;handleChange=()=>{let{options:e,custom:t}=this.parts;if(this.multiple){let i=[...e.querySelectorAll("input:checked")];this.value=i.map((s)=>s.value).join(",")}else{let i=e.querySelector("input:checked");if(!i)this.value=null;else if(i.value)t.setAttribute("hidden",""),this.value=i.value;else t.removeAttribute("hidden"),t.focus(),t.select(),this.value=t.value}this.valueChanged=!0};handleKey=(e)=>{let t=!1;switch(e.code){case"Space":if(e.target instanceof HTMLLabelElement)e.target.click(),t=!0;break;case"Tab":if(!(e.target instanceof HTMLLabelElement))e.target.closest("label").focus();break;case"ArrowLeft":case"ArrowUp":{let i=e.target.closest("label");if(i.previousElementSibling instanceof HTMLLabelElement)i.previousElementSibling.focus()}t=!0;break;case"ArrowRight":case"ArrowDown":{let i=e.target.closest("label");if(i.nextElementSibling instanceof HTMLLabelElement)i.nextElementSibling.focus()}t=!0;break}if(t)e.preventDefault(),e.stopPropagation()};connectedCallback(){super.connectedCallback();let{options:e}=this.parts;if(this.name==="")this.name=this.instanceId;if(e.addEventListener("change",this.handleChange),e.addEventListener("keydown",this.handleKey),this.other&&this.multiple)console.warn(this,"is set to [other] and [multiple]; [other] will be ignored"),this.other=""}get _choices(){let e=Array.isArray(this.choices)?this.choices:this.choices.split(",").filter((t)=>t.trim()!=="").map((t)=>{let[i,s]=t.split("=").map((r)=>r.trim()),[l,o]=(s||i).split(":").map((r)=>r.trim()),n=o?u[o]():"";return{value:i,icon:n,caption:l}});if(this.other&&!this.multiple){let[t,i]=this.other.split(":");e.push({value:"",caption:t,icon:i})}return e}get isOtherValue(){return Boolean(this.value===""||this.value&&!this._choices.find((e)=>e.value===this.value))}render(){if(super.render(),this.valueChanged){this.valueChanged=!1;return}let{options:e,custom:t}=this.parts;e.textContent="";let i=this.multiple?"checkbox":"radio",{values:s,isOtherValue:l}=this;if(e.append(...this._choices.map((o)=>{return wn({tabindex:0},r2({type:i,name:this.name,value:o.value,checked:s.includes(o.value)||o.value===""&&l,tabIndex:-1}),o.icon||{class:"no-icon"},this.localized?J(o.caption):Mn(o.caption))})),this.other&&!this.multiple)t.hidden=!l,t.value=l?this.value:"",t.placeholder=this.placeholder,e.append(t)}}var Bn=fi.elementCreator({tag:"xin-segmented"});var{slot:c2}=f;class mi extends m{minWidth=0;minHeight=0;value="normal";content=[c2({part:"normal"}),c2({part:"small",name:"small"})];static styleSpec={":host":{display:"inline-block",position:"relative"}};constructor(){super();this.initAttributes("minWidth","minHeight")}onResize=()=>{let{normal:e,small:t}=this.parts,i=this.offsetParent;if(!(i instanceof HTMLElement))return;else if(i.offsetWidth<this.minWidth||i.offsetHeight<this.minHeight)e.hidden=!0,t.hidden=!1,this.value="small";else e.hidden=!1,t.hidden=!0,this.value="normal"};connectedCallback(){super.connectedCallback(),globalThis.addEventListener("resize",this.onResize)}disconnectedCallback(){super.disconnectedCallback(),globalThis.removeEventListener("resize",this.onResize)}}var zn=mi.elementCreator({tag:"xin-sizebreak"});class vi extends m{target=null;static styleSpec={":host":{_resizeIconFill:"#222",display:"block",position:"absolute",bottom:-7,right:-7,padding:14,width:44,height:44,opacity:0.25,transition:"opacity 0.25s ease-out"},":host(:hover)":{opacity:0.5},":host svg":{width:16,height:16,stroke:c.resizeIconFill}};content=u.resize();get minSize(){let{minWidth:e,minHeight:t}=getComputedStyle(this.target);return{width:parseFloat(e)||32,height:parseFloat(t)||32}}resizeTarget=(e)=>{let{target:t}=this;if(!t)return;let{offsetWidth:i,offsetHeight:s}=t;t.style.left=t.offsetLeft+"px",t.style.top=t.offsetTop+"px",t.style.bottom="",t.style.right="";let{minSize:l}=this;T(e,(o,n,a)=>{if(t.style.width=Math.max(l.width,i+o)+"px",t.style.height=Math.max(l.height,s+n)+"px",a.type==="mouseup")return!0},"nwse-resize")};connectedCallback(){if(super.connectedCallback(),!this.target)this.target=this.parentElement;let e={passive:!0};this.addEventListener("mousedown",this.resizeTarget,e),this.addEventListener("touchstart",this.resizeTarget,e)}}var Ln=vi.elementCreator({tag:"xin-sizer"});var{div:An,input:En,span:Hn,button:ki}=f;class St extends m{caption="";removeable=!1;removeCallback=()=>{this.remove()};content=()=>[Hn({part:"caption"},this.caption),ki(u.x(),{part:"remove",hidden:!this.removeable,ariaLabel:`Remove ${this.caption}`,onClick:this.removeCallback})];constructor(){super();this.initAttributes("caption","removeable")}}var d2=St.elementCreator({tag:"xin-tag",styleSpec:{":host":{"--tag-close-button-color":"#000c","--tag-close-button-bg":"#fffc","--tag-button-opacity":"0.5","--tag-button-hover-opacity":"0.75","--tag-bg":h.brandColor("blue"),"--tag-text-color":h.brandTextColor("white"),display:"inline-flex",borderRadius:h.tagRoundedRadius(c.spacing50),color:c.tagTextColor,background:c.tagBg,padding:`0 ${c.spacing75} 0 ${c.spacing75}`,height:`calc(${c.lineHeight} + ${c.spacing50})`,lineHeight:`calc(${c.lineHeight} + ${c.spacing50})`},':host > [part="caption"]':{position:"relative",whiteSpace:"nowrap",overflow:"hidden",flex:"1 1 auto",fontSize:h.fontSize("16px"),color:c.tagTextColor,textOverflow:"ellipsis"},':host [part="remove"]':{boxShadow:"none",margin:`0 ${c.spacing_50} 0 ${c.spacing25}`,padding:0,display:"inline-flex",alignItems:"center",alignSelf:"center",justifyContent:"center",height:c.spacing150,width:c.spacing150,color:c.tagCloseButtonColor,background:c.tagCloseButtonBg,borderRadius:h.tagCloseButtonRadius("99px"),opacity:c.tagButtonOpacity},':host [part="remove"]:hover':{background:c.tagCloseButtonBg,opacity:c.tagButtonHoverOpacity}}});class Ci extends m{disabled=!1;name="";availableTags=[];value=[];textEntry=!1;editable=!1;placeholder="enter tags";get tags(){return typeof this.value==="string"?this.value.split(",").map((e)=>e.trim()).filter((e)=>e!==""):this.value}constructor(){super();this.initAttributes("name","value","textEntry","availableTags","editable","placeholder","disabled")}addTag=(e)=>{if(e.trim()==="")return;let{tags:t}=this;if(!t.includes(e))t.push(e);this.value=t,this.queueRender(!0)};toggleTag=(e)=>{if(this.tags.includes(e))this.value=this.tags.filter((t)=>t!==e);else this.addTag(e);this.queueRender(!0)};enterTag=(e)=>{let{tagInput:t}=this.parts;switch(e.key){case",":{let i=t.value.split(",")[0];this.addTag(i)}break;case"Enter":{let i=t.value.split(",")[0];this.addTag(i)}e.stopPropagation(),e.preventDefault();break;default:}};popSelectMenu=()=>{let{toggleTag:e}=this,{tagMenu:t}=this.parts,i=typeof this.availableTags==="string"?this.availableTags.split(","):this.availableTags,s=this.tags.filter((o)=>!i.includes(o));if(s.length)i.push(null,...s);let l=i.map((o)=>{if(o===""||o===null)return null;else if(typeof o==="object")return{checked:()=>this.tags.includes(o.value),caption:o.caption,action(){e(o.value)}};else return{checked:()=>this.tags.includes(o),caption:o,action(){e(o)}}});S({target:t,width:"auto",menuItems:l})};content=()=>[ki({style:{visibility:"hidden"},tabindex:-1}),An({part:"tagContainer",class:"row",role:"list",ariaLabel:"Selected tags"}),En({part:"tagInput",class:"elastic",ariaLabel:"Enter new tag",onKeydown:this.enterTag}),ki({title:"add tag",ariaLabel:"Select tags from list",ariaHaspopup:"listbox",part:"tagMenu",onClick:this.popSelectMenu},u.chevronDown())];removeTag=(e)=>{if(this.editable&&!this.disabled){let t=e.target.closest(St.tagName);this.value=this.tags.filter((i)=>i!==t.caption),t.remove(),this.queueRender(!0)}e.stopPropagation(),e.preventDefault()};render(){super.render();let{tagContainer:e,tagMenu:t,tagInput:i}=this.parts;if(t.disabled=this.disabled,i.value="",i.setAttribute("placeholder",this.placeholder),this.editable&&!this.disabled)t.toggleAttribute("hidden",!1),i.toggleAttribute("hidden",!this.textEntry);else t.toggleAttribute("hidden",!0),i.toggleAttribute("hidden",!0);e.textContent="";let{tags:s}=this;for(let l of s)e.append(d2({caption:l,removeable:this.editable&&!this.disabled,removeCallback:this.removeTag}))}}var Pn=Ci.elementCreator({tag:"xin-tag-list",styleSpec:{":host":{"--tag-list-bg":"#f8f8f8","--touch-size":"44px","--spacing":"16px",display:"grid",gridTemplateColumns:"auto",alignItems:"center",background:c.tagListBg,gap:c.spacing25,borderRadius:h.taglistRoundedRadius(c.spacing50),overflow:"hidden"},":host[editable]":{gridTemplateColumns:`0px auto ${c.touchSize}`},":host[editable][text-entry]":{gridTemplateColumns:`0px 2fr 1fr ${c.touchSize}`},':host [part="tagContainer"]':{display:"flex",content:'" "',alignItems:"center",background:c.inputBg,borderRadius:h.tagContainerRadius(c.spacing50),boxShadow:c.borderShadow,flexWrap:"nowrap",overflow:"auto hidden",gap:c.spacing25,minHeight:`calc(${c.lineHeight} + ${c.spacing})`,padding:c.spacing25},':host [part="tagMenu"]':{width:c.touchSize,height:c.touchSize,lineHeight:c.touchSize,textAlign:"center",padding:0,margin:0},":host [hidden]":{display:"none !important"},':host button[part="tagMenu"]':{background:c.brandColor,color:c.brandTextColor}}});var p2="1.0.13";var bi={accent:C.fromCss("#EE257B"),background:C.fromCss("#fafafa"),text:C.fromCss("#222222")},h2={_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 jn(e){let{accent:t,background:i,text:s}=e,l=e.accentText??t.contrasting(),o=e.backgroundInset??i.darken(0.03),n=e.border??s.opacity(0.15),a=e.shadow??s.opacity(0.1),r=e.focus??t.opacity(0.5);return{_tosiAccent:t,_tosiAccentLight:t.brighten(0.15),_tosiAccentDark:t.darken(0.15),_tosiAccentText:l,_tosiBg:i,_tosiBgInset:o,_tosiBgHover:i.darken(0.05),_tosiBgActive:i.darken(0.1),_tosiText:s,_tosiTextMuted:s.opacity(0.6),_tosiTextDisabled:s.opacity(0.4),_tosiBorder:n,_tosiBorderFocus:t,_tosiShadow:a,_tosiShadowColor:a,_tosiFocusRing:`0 0 0 2px ${r}`,_tosiInputBg:i,_tosiInputBorder:n,_tosiInputBorderFocus:t,_tosiButtonBg:i,_tosiButtonText:s,_tosiButtonBorder:n,_tosiButtonHoverBg:i.darken(0.05),_tosiButtonActiveBg:t,_tosiButtonActiveText:l}}function Ft(e){return{":root":{...h2,...jn(e)}}}function x2(e){let i=Ft(e)[":root"];return{":root":l1(i)}}function Tn(e,t="tosi-theme"){Ke(t,e)}var Sn=Ft(bi),Fn=x2(bi),y2={"--xin-icon-size":c.tosiIconSize,"--xin-icon-fill":c.tosiIconFill,"--xin-icon-stroke":c.tosiIconStroke,"--xin-tabs-bar-color":c.tosiTabsBarColor,"--xin-tabs-bar-height":c.tosiTabsBarHeight,"--xin-tabs-selected-color":c.tosiTabsSelectedColor,"--spacing":c.tosiSpacing,"--gap":c.tosiSpacingSm,"--touch-size":c.tosiTouchSize,"--background":c.tosiBg,"--text-color":c.tosiText,"--brand-color":c.tosiAccent,"--brand-text-color":c.tosiAccentText};function On(e){return{":root":{...Ft(e)[":root"],...y2}}}function Vn(e,t){let i={};for(let[s,l]of Object.entries(t)){let o=`--tosi-${e}-${s.replace(/([A-Z])/g,"-$1").toLowerCase()}`;i[s]=`var(${o}, ${l})`}return i}Object.assign(globalThis,{xinjs:Qe,xinjsui:wi});})();
92
92
 
93
- //# debugId=9C64D53C6982098F64756E2164756E21
93
+ //# debugId=1BA1458A6FE53AD164756E2164756E21
94
94
  //# sourceMappingURL=iife.js.map