{"size": 25346, "ext": "js", "max_stars_repo_path": "dist/mandala-js.umd.js", "max_stars_repo_name": "auzmartist/mandala", "max_stars_repo_stars_event_min_datetime": "2018-12-17T10:16:44.000Z", "max_stars_repo_stars_event_max_datetime": "2022-02-13T02:16:21.000Z", "max_issues_repo_path": "dist/mandala-js.umd.js", "max_issues_repo_name": "auzmartist/pythagoras", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "dist/mandala-js.umd.js", "max_forks_repo_name": "auzmartist/pythagoras", "max_forks_repo_forks_event_min_datetime": "2021-08-01T18:30:42.000Z", "max_forks_repo_forks_event_max_datetime": "2021-08-01T18:30:42.000Z"}
{"max_stars_count": 5, "max_issues_count": null, "max_forks_count": 1, "avg_line_length": 563.2444444444, "max_line_length": 14505, "alphanum_fraction": 0.6849206975}
var on=Object.defineProperty;var tt=Object.getOwnPropertySymbols;var an=Object.prototype.hasOwnProperty,fn=Object.prototype.propertyIsEnumerable;var nt=(b,y,m)=>y in b?on(b,y,{enumerable:!0,configurable:!0,writable:!0,value:m}):b[y]=m,rt=(b,y)=>{for(var m in y||(y={}))an.call(y,m)&&nt(b,m,y[m]);if(tt)for(var m of tt(y))fn.call(y,m)&&nt(b,m,y[m]);return b};(function(b,y){typeof exports=="object"&&typeof module!="undefined"?y(exports):typeof define=="function"&&define.amd?define(["exports"],y):(b=typeof globalThis!="undefined"?globalThis:b||self,y(b.mandala={}))})(this,function(b){"use strict";var y=new Map;function m(e){var t=y.get(e);return t===void 0&&(t=e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),y.set(e,t)),t}function ot(e){return m(e.replace(/((?!([A-Z]{2}|^))[A-Z])/g,"-$1"))}function me(e,t){var n=window.ShadyCSS;return n&&!n.nativeShadow?e(n):t}function it(e){return"<".concat(String(e.tagName).toLowerCase(),">")}var j="ActiveXObject"in window;Promise.resolve();var at=new WeakMap;function L(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?L=function(n){return typeof n}:L=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},L(e)}var ft=function(t){return t},ct=function(t){if(L(t)!=="object")throw TypeError("Assigned value must be an object: ".concat(L(t)));return t&&Object.freeze(t)};function ut(e,t){var n=L(e),r=ft;switch(n){case"string":r=String;break;case"number":r=Number;break;case"boolean":r=Boolean;break;case"function":r=e,e=r();break;case"object":e&&Object.freeze(e),r=ct;break}return{get:function(i){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e;return a},set:function(i,a,f){return r(a,f)},connect:n!=="object"&&n!=="undefined"?function(o,i,a){if(o[i]===e){var f=m(i);if(o.hasAttribute(f)){var c=o.getAttribute(f);o[i]=c===""&&r===Boolean?!0:c}}return t&&t(o,i,a)}:t}}function ge(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function st(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ge(Object(n),!0).forEach(function(r){lt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ge(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function lt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function X(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?X=function(n){return typeof n}:X=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},X(e)}function pt(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(typeof e!="function")throw TypeError("The first argument must be a function: ".concat(X(e)));var n=st({shadowRoot:!0},t),r={mode:"open"};return X(n.shadowRoot)==="object"&&Object.assign(r,n.shadowRoot),{get:function(i){var a=e(i),f=i;return n.shadowRoot&&(i.shadowRoot||i.attachShadow(r),f=i.shadowRoot),function(){return a(i,f),f}},observe:function(i,a){a()}}}var ae=new WeakMap,$=new Set;function we(){try{$.forEach(function(e){try{ae.get(e)(),$.delete(e)}catch(t){throw $.delete(e),t}})}catch(e){throw $.size&&we(),e}}function Se(e){$.size||requestAnimationFrame(we),$.add(e)}function dt(e,t){return ae.set(e,t),Se(e),function(){$.delete(e),ae.delete(e)}}var fe=new WeakMap;function K(e,t){var n=fe.get(e);n||(n=new Map,fe.set(e,n));var r=n.get(t);return r||(r={target:e,key:t,value:void 0,contexts:void 0,deps:void 0,state:0,checksum:0,observed:!1},n.set(t,r)),r}function Ee(e){var t=e.state;return e.deps&&e.deps.forEach(function(n){t+=n.state}),t}function U(e){e.observed&&Se(e),e.contexts&&e.contexts.forEach(U)}function Oe(e,t){t&&t.forEach(function(n){e.deps.add(n),e.observed&&(n.contexts||(n.contexts=new Set),n.contexts.add(e)),Oe(e,n.deps)})}var P=new Set;function _e(e,t,n,r){var o=K(e,t);if(P.size&&P.has(o))throw Error("Circular get invocation is forbidden: '".concat(t,"'"));if(P.forEach(function(a){a.deps||(a.deps=new Set),a.deps.add(o),a.observed&&(o.contexts||(o.contexts=new Set),o.contexts.add(a))}),(r&&r(o.value)||!r)&&o.checksum&&o.checksum===Ee(o))return o.value;try{P.add(o),o.observed&&o.deps&&o.deps.size&&o.deps.forEach(function(a){a.contexts&&a.contexts.delete(o)}),o.deps=void 0;var i=n(e,o.value);o.deps&&o.deps.forEach(function(a){Oe(o,a.deps)}),i!==o.value&&(o.state+=1,o.value=i,U(o)),o.checksum=Ee(o),P.delete(o)}catch(a){throw o.checksum=0,P.delete(o),P.forEach(function(f){f.deps.delete(o),f.observed&&o.contexts.delete(f)}),a}return o.value}function vt(e,t,n,r){var o=K(e,t),i=n(e,r,o.value);i!==o.value&&(o.checksum=0,o.state+=1,o.value=i,U(o))}var J=new Set;function yt(e){J.size||requestAnimationFrame(function(){J.forEach(function(t){if(!t.contexts||t.contexts&&t.contexts.size===0){var n=fe.get(t.target);n.delete(t.key)}}),J.clear()}),J.add(e)}function ht(e,t,n){e.checksum=0,e.state+=1,U(e),n&&yt(e),t&&(e.value=void 0)}function bt(e,t,n,r){if(P.size)throw Error("Invalidating property in chain of get calls is forbidden: '".concat(t,"'"));var o=K(e,t);ht(o,n,r)}function mt(e,t,n,r){var o=K(e,t);o.observed=!0;var i,a=dt(o,function(){var f=_e(e,t,n);f!==i&&(r(e,f,i),i=f)});return o.deps&&o.deps.forEach(function(f){f.contexts||(f.contexts=new Set),f.contexts.add(o)}),function(){a(),o.observed=!1,o.deps&&o.deps.size&&o.deps.forEach(function(c){c.contexts&&c.contexts.delete(o)})}}function gt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Te(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function wt(e,t,n){return t&&Te(e.prototype,t),n&&Te(e,n),e}function St(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&F(e,t)}function Et(e){return function(){var t=H(e),n;if(Ae()){var r=H(this).constructor;n=Reflect.construct(t,arguments,r)}else n=t.apply(this,arguments);return Ot(this,n)}}function Ot(e,t){return t&&(x(t)==="object"||typeof t=="function")?t:Me(e)}function Me(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ce(e){var t=typeof Map=="function"?new Map:void 0;return ce=function(r){if(r===null||!_t(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t!="undefined"){if(t.has(r))return t.get(r);t.set(r,o)}function o(){return Q(r,arguments,H(this).constructor)}return o.prototype=Object.create(r.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),F(o,r)},ce(e)}function Q(e,t,n){return Ae()?Q=Reflect.construct:Q=function(o,i,a){var f=[null];f.push.apply(f,i);var c=Function.bind.apply(o,f),d=new c;return a&&F(d,a.prototype),d},Q.apply(null,arguments)}function Ae(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function _t(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function F(e,t){return F=Object.setPrototypeOf||function(r,o){return r.__proto__=o,r},F(e,t)}function H(e){return H=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},H(e)}function x(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?x=function(n){return typeof n}:x=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},x(e)}try{}catch{}var Ne=function(t,n){return n},Pe=new WeakMap,$e=new WeakMap;function Tt(e,t){e.hybrids=t;var n=[],r=Object.keys(t);Pe.set(e,n),$e.set(e,r),r.forEach(function(o){var i=t[o],a=x(i),f;a==="function"?f=o==="render"?pt(i):{get:i}:a!=="object"||i===null||Array.isArray(i)?f=ut(i):f={get:i.get||Ne,set:i.set||!i.get&&Ne||void 0,connect:i.connect,observe:i.observe},Object.defineProperty(e.prototype,o,{get:function(){return _e(this,o,f.get)},set:f.set&&function(d){vt(this,o,f.set,d)},enumerable:!0,configurable:!1}),f.observe&&n.unshift(function(c){return mt(c,o,f.get,f.observe)}),f.connect&&n.push(function(c){return f.connect(c,o,function(){bt(c,o)})})})}var xe=new WeakMap;function je(e,t){var n=x(t);if(n!=="object"&&n!=="function")throw TypeError("Second argument must be an object or a function: ".concat(n));if(e!==null){var r=window.customElements.get(e);if(n==="function")return r!==t?window.customElements.define(e,t):r;if(r){if(r.hybrids===t)return r;throw Error("Element '".concat(e,"' already defined"))}}var o=function(i){St(f,i);var a=Et(f);function f(){var c;gt(this,f),c=a.call(this);for(var d=$e.get(f),v=0;v<d.length;v+=1){var u=d[v];if(Object.prototype.hasOwnProperty.call(Me(c),u)){var l=c[u];delete c[u],c[u]=l}}return c}return wt(f,[{key:"connectedCallback",value:function(){for(var d=Pe.get(f),v=[],u=0;u<d.length;u+=1){var l=d[u](this);l&&v.push(l)}xe.set(this,v)}},{key:"disconnectedCallback",value:function(){for(var d=xe.get(this),v=0;v<d.length;v+=1)d[v]()}}]),f}(ce(HTMLElement));return Tt(o,t),e!==null&&(Object.defineProperty(o,"name",{get:function(){return e}}),customElements.define(e,o)),o}function Mt(e){return Object.keys(e).reduce(function(t,n){var r=ot(n);return t[n]=je(r,e[n]),t},{})}function Le(){return x(arguments.length<=0?void 0:arguments[0])==="object"&&(arguments.length<=0?void 0:arguments[0])!==null?Mt(arguments.length<=0?void 0:arguments[0]):je.apply(void 0,arguments)}var ue=new WeakMap,M={get:function(t,n){var r=ue.get(t);return r||(n&&ue.set(t,n),n)},set:function(t,n){return ue.set(t,n),n}};function se(e){for(var t;e&&(t=M.get(e))&&t.endNode;)e=t.endNode;return e}function Y(e){if(e.nodeType!==Node.TEXT_NODE)for(var t=e.childNodes[0];t;)e.removeChild(t),t=e.childNodes[0];else{var n=M.get(e);if(n.startNode)for(var r=se(n.endNode),o=n.startNode,i=r.nextSibling;o;){var a=o.nextSibling;o.parentNode.removeChild(o),o=a!==i&&a}}}var le=new WeakMap;function At(e,t){var n=M.get(e),r=n.startNode,o=se(n.endNode);t.parentNode.insertBefore(e,t.nextSibling);for(var i=e,a=r;a;){var f=a.nextSibling;i.parentNode.insertBefore(a,i.nextSibling),i=a,a=f!==o.nextSibling&&f}}function Nt(e,t,n,r){var o=le.get(t),i=n.map(function(s,h){return{id:Object.prototype.hasOwnProperty.call(s,"id")?s.id:h,value:s,placeholder:null,available:!0}});if(le.set(t,i),o){var a=new Set;i.forEach(function(s){return a.add(s.id)}),o=o.filter(function(s){return a.has(s.id)?!0:(Y(s.placeholder),s.placeholder.parentNode.removeChild(s.placeholder),!1)})}for(var f=t,c=n.length-1,d=M.get(t),v=0;v<i.length;v+=1){var u=i[v],l=void 0;if(o){for(var g=0;g<o.length;g+=1)if(o[g].available&&o[g].id===u.id){l=o[g];break}}l?(l.available=!1,u.placeholder=l.placeholder,u.placeholder.previousSibling!==f&&At(u.placeholder,f),l.value!==u.value&&r(e,u.placeholder,u.value)):(u.placeholder=document.createTextNode(""),f.parentNode.insertBefore(u.placeholder,f.nextSibling),r(e,u.placeholder,u.value)),f=se(M.get(u.placeholder).endNode||u.placeholder),v===0&&(d.startNode=u.placeholder),v===c&&(d.endNode=f)}o&&o.forEach(function(s){s.available&&(Y(s.placeholder),s.placeholder.parentNode.removeChild(s.placeholder))})}function V(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?V=function(n){return typeof n}:V=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},V(e)}function ke(e,t,n){var r=Array.isArray(n)?"array":V(n),o=M.get(t,{});switch(o.type!==r&&(Y(t),r==="array"&&le.delete(t),o=M.set(t,{type:r}),t.textContent!==""&&(t.textContent="")),r){case"function":n(e,t);break;case"array":Nt(e,t,n,ke);break;default:t.textContent=r==="number"||n?n:""}}function ee(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?ee=function(n){return typeof n}:ee=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},ee(e)}var pe=new WeakMap;function Pt(e){return function(t,n,r,o){if(o){var i=pe.get(n);i&&n.removeEventListener(e,i.get(o),o.options!==void 0?o.options:!1)}if(r){if(typeof r!="function")throw Error("Event listener must be a function: ".concat(ee(r)));var a=pe.get(n);a||(a=new WeakMap,pe.set(n,a));var f=r.bind(null,t);a.set(r,f),n.addEventListener(e,f,r.options!==void 0?r.options:!1)}}}function te(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?te=function(n){return typeof n}:te=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},te(e)}function $t(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:new Set;return Array.isArray(e)?e.forEach(function(n){return t.add(n)}):e!==null&&te(e)==="object"?Object.keys(e).forEach(function(n){return e[n]&&t.add(n)}):t.add(e),t}var Ce=new WeakMap;function xt(e,t,n){var r=Ce.get(t)||new Set,o=$t(n);Ce.set(t,o),o.forEach(function(i){t.classList.add(i),r.delete(i)}),r.forEach(function(i){t.classList.remove(i)})}function ne(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?ne=function(n){return typeof n}:ne=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},ne(e)}var De=new WeakMap;function jt(e,t,n){if(n===null||ne(n)!=="object")throw TypeError("Style value must be an object in ".concat(it(t),":"),n);var r=De.get(t)||new Map,o=Object.keys(n).reduce(function(i,a){var f=m(a),c=n[a];return!c&&c!==0?t.style.removeProperty(f):t.style.setProperty(f,c),i.set(f,c),r.delete(f),i},new Map);r.forEach(function(i,a){t.style[a]=""}),De.set(t,o)}function Lt(e,t,n){if(t.substr(0,2)==="on"){var r=t.substr(2);return Pt(r)}switch(e){case"class":return xt;case"style":return jt;default:return function(o,i,a){if(!n&&!(i instanceof SVGElement)&&t in i)i[t]!==a&&(i[t]=a);else if(a===!1||a===void 0||a===null)i.removeAttribute(e);else{var f=a===!0?"":String(a);i.setAttribute(e,f)}}}}function de(e,t){return Rt(e)||Dt(e,t)||Ct(e,t)||kt()}function kt(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ct(e,t){if(!!e){if(typeof e=="string")return Re(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(n);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Re(e,t)}}function Re(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Dt(e,t){if(!(typeof Symbol=="undefined"||!(Symbol.iterator in Object(e)))){var n=[],r=!0,o=!1,i=void 0;try{for(var a=e[Symbol.iterator](),f;!(r=(f=a.next()).done)&&(n.push(f.value),!(t&&n.length===t));r=!0);}catch(c){o=!0,i=c}finally{try{!r&&a.return!=null&&a.return()}finally{if(o)throw i}}return n}}function Rt(e){if(Array.isArray(e))return e}function re(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?re=function(n){return typeof n}:re=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},re(e)}try{}catch{}var We=Date.now(),k=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;return"{{h-".concat(We,"-").concat(t,"}}")},Ie=k("(\\d+)"),C=new RegExp("^".concat(Ie,"$")),ze=new RegExp(Ie,"g"),ve="--".concat(We,"--"),Wt=new RegExp(ve,"g"),Xe=new WeakMap;function It(e,t){return t?me(function(n){var r=Xe.get(e);r||(r=new Map,Xe.set(e,r));var o=r.get(t);if(!o){o=document.createElement("template"),o.content.appendChild(e.content.cloneNode(!0)),r.set(t,o);var i=o.content.querySelectorAll("style");Array.from(i).forEach(function(a){for(var f=a.childNodes.length+1,c=0;c<f;c+=1)a.parentNode.insertBefore(document.createTextNode(k()),a)}),n.prepareTemplate(o,t.toLowerCase())}return o},e):e}function zt(e,t){var n=e.reduce(function(r,o,i){return i===0?o:e.slice(i).join("").match(/^\s*<\/\s*(table|tr|thead|tbody|tfoot|colgroup)>/)?"".concat(r,"<!--").concat(k(i-1),"-->").concat(o):r+k(i-1)+o},"");return t&&(n+=`<style>
`.concat(t.join(`
/*------*/
`),`
</style>`)),j?n.replace(/style\s*=\s*(["][^"]+["]|['][^']+[']|[^\s"'<>/]+)/g,function(r){return"".concat(ve).concat(r)}):n}function Xt(e){return e.replace(/\s*=\s*['"]*$/g,"").split(/\s+/).pop()}function Ft(e){for(var t=document.createNodeIterator(e,NodeFilter.SHOW_COMMENT,null,!1),n;n=t.nextNode();)C.test(n.textContent)&&(n.parentNode.insertBefore(document.createTextNode(n.textContent),n),n.parentNode.removeChild(n))}function Ht(e){var t;return{get currentNode(){return t},nextNode:function(){if(t===void 0)t=e.childNodes[0];else if(t.childNodes.length)t=t.childNodes[0];else if(t.nextSibling)t=t.nextSibling;else{var r=t.parentNode;for(t=r.nextSibling;!t&&r!==e;)r=r.parentNode,t=r.nextSibling}return!!t}}}function Bt(e){return document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT|NodeFilter.SHOW_TEXT,null,!1)}var Fe=re(window.ShadyDOM)==="object"&&window.ShadyDOM.inUse?Ht:Bt,He=document.createElement("div"),Be=new Map;function qt(e,t,n){var r=document.createElement("template"),o=[],i=zt(e,n);if(t&&(i="<svg>".concat(i,"</svg>")),j?r.innerHTML=i:(He.innerHTML="<template>".concat(i,"</template>"),r.content.appendChild(He.children[0].content)),t){var a=r.content.firstChild;r.content.removeChild(a),Array.from(a.childNodes).forEach(function(v){return r.content.appendChild(v)})}Ft(r.content);for(var f=Fe(r.content),c=0,d=function(){var u=f.currentNode;if(u.nodeType===Node.TEXT_NODE){var l=u.textContent;if(!l.match(C)){var g=l.match(ze);if(g){var s=u;g.reduce(function(p,w){var E=p.pop().split(w),A=de(E,2),N=A[0],O=A[1];return N&&p.push(N),p.push(w),O&&p.push(O),p},[l]).forEach(function(p,w){w===0?s.textContent=p:s=s.parentNode.insertBefore(document.createTextNode(p),s.nextSibling)})}}var h=u.textContent.match(C);h&&(j||(u.textContent=""),o[h[1]]=[c,ke])}else u.nodeType===Node.ELEMENT_NODE&&Array.from(u.attributes).forEach(function(p){var w=p.value.trim(),E=j?p.name.replace(ve,""):p.name,A=w.match(C);if(A){var N=Xt(e[A[1]]);o[A[1]]=[c,Lt(E,N,t)],u.removeAttribute(p.name)}else{var O=w.match(ze);if(O){var S="attr__".concat(E);O.forEach(function(B,D){var R=B.match(C),q=de(R,2),W=q[1];o[W]=[c,function(I,_,G){var z=M.get(_,{});z[S]=(z[S]||w).replace(B,G==null?"":G),(O.length===1||D+1===O.length)&&(_.setAttribute(E,z[S]),z[S]=void 0)}]}),p.value="",j&&E!==p.name&&(u.removeAttribute(p.name),u.setAttribute(E,""))}}});c+=1};f.nextNode();)d();return function(u,l,g,s){var h=M.get(l,{type:"function"});if(r!==h.template){(h.template||l.nodeType===Node.ELEMENT_NODE)&&Y(l),h.prevArgs=null;var p=document.importNode(It(r,u.tagName).content,!0),w=Fe(p),E=o.slice(0),A=0,N=E.shift(),O=[];for(h.template=r,h.markers=O;w.nextNode();){var S=w.currentNode;for(S.nodeType===Node.TEXT_NODE&&(C.test(S.textContent)?S.textContent="":j&&(S.textContent=S.textContent.replace(Wt,"")));N&&N[0]===A;)O.push([S,N[1]]),N=E.shift();A+=1}if(l.nodeType===Node.TEXT_NODE){h.startNode=p.childNodes[0],h.endNode=p.childNodes[p.childNodes.length-1];for(var B=l,D=p.childNodes[0];D;)l.parentNode.insertBefore(D,B.nextSibling),B=D,D=p.childNodes[0]}else l.appendChild(p)}var R=l.adoptedStyleSheets;if(s){var q=!1;if(s=s.map(function(T){if(T instanceof CSSStyleSheet)return T;var Z=Be.get(T);return Z||(Z=new CSSStyleSheet,Z.replaceSync(T),Be.set(T,Z)),Z}),s.length===R.length){q=!0;for(var W=0;W<s.length;W+=1)if(s[W]!==R[W]){q=!1;break}}q||(l.adoptedStyleSheets=s)}else R&&R.length&&(l.adoptedStyleSheets=[]);var I=h.prevArgs;h.prevArgs=g;for(var _=0;_<h.markers.length;_+=1){var G=de(h.markers[_],2),z=G[0],rn=G[1];if(!I||I[_]!==g[_])try{rn(u,z,g[_],I?I[_]:void 0)}catch(T){throw T}}l.nodeType!==Node.TEXT_NODE&&me(function(T){u.shadowRoot&&(I?T.styleSubtree(u):T.styleElement(u))})}}function qe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Gt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?qe(Object(n),!0).forEach(function(r){ye(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qe(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function oe(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?oe=function(n){return typeof n}:oe=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},oe(e)}function ye(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ge(e,t){var n=e.target,r;switch(n.type){case"radio":case"checkbox":r=n.checked&&n.value;break;case"file":r=n.files;break;default:r=n.value}t(r)}function Zt(e,t){return e.split(".").reverse().reduce(function(n,r){return n?ye({},r,n):ye({},r,t)},null)}var Ze=new Map,ie=new WeakMap;function Kt(e,t){if(!e)throw Error("The first argument must be a property name or an object instance: ".concat(e));if(oe(e)==="object"){if(t===void 0)throw Error("For model instance property the second argument must be defined");var n=at.get(e);if(!n)throw Error("Provided object must be a model instance of the store");return t===null?function(){n.set(e,null)}:function(o,i){Ge(i,function(a){var f=ie.get(e);f||requestAnimationFrame(function(){var c=ie.get(e);ie.delete(e),n.set(e,c).catch(function(){})}),ie.set(e,Gt({},f,{},Zt(t,a)))})}}if(arguments.length===2)return function(o){o[e]=t};var r=Ze.get(e);return r||(r=function(i,a){Ge(a,function(f){i[e]=f})},Ze.set(e,r)),r}var he=new WeakMap;function Ut(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:200;return function(r,o){var i;t&&(i=setTimeout(function(){i=void 0,requestAnimationFrame(function(){t(r,o)})},n)),he.set(o,e),e.then(function(a){i&&clearTimeout(i),he.get(o)===e&&(a(r,o),he.set(o,null))})}}var Ke=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",set:Kt,resolve:Ut}),Ue=k(),Jt=k("svg"),Qt=/@import/,Je=new Map,Qe=new WeakMap,Yt={define:function(t){return Le(t),this},key:function(t){return this.id=t,this},style:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Qe.set(this,n.filter(function(o){return o})),this}};function Ye(e,t,n){var r=function o(i){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:i,f=Qe.get(o),c,d=e.join(Ue);if(f){var v=f.join(Ue);c=!!a.adoptedStyleSheets&&!Qt.test(v),c||(d+=v)}n&&(d+=Jt);var u=Je.get(d);u||(u=qt(e,n,!c&&f),Je.set(d,u)),u(i,a,t,c&&f)};return Object.assign(r,Yt)}function be(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return Ye(e,n)}function Vt(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return Ye(e,n,!0)}Object.assign(be,Ke),Object.assign(Vt,Ke);const Ve=(e,t)=>(e!=null&&t==null&&(t=e,e=0),[...Array(t-e).keys()].map(n=>n+e));function en(e){let t;return{get:e.get,set:e.set,connect:(n,r,o)=>{var i;return t=r.replace(/([A-Z])/g,"-$1").toLowerCase(),(i=e.connect)==null?void 0:i.call(e,n,r,o)},observe:(n,r,o)=>{var i;return n.setAttribute(t,typeof r=="object"?JSON.stringify(r):r),(i=e.observe)==null?void 0:i.call(e,n,r,o)}}}const tn=(e,t)=>({position:t===0?"relative":"absolute",width:`${2*e}px`,height:`${2*e}px`,borderRadius:`${e}px`}),nn=(e,t,n,r)=>{const o=2*Math.PI/t,i=e*Math.sin(r*o)+e-n,a=e*Math.cos(r*o)+e-n;return{left:`${i}px`,bottom:`${a}px`,width:`${2*n}px`,height:`${2*n}px`,borderRadius:`${n}px`}},et={tag:"mandala-layer",template:[],name:"m",nested:({template:e})=>{let t=rt({},e),n=0;for(;(t=t[3])&&n<10;)n++;return n},height:0,nodes:({template:e})=>Ve(e[1]||0).map(t=>{var n;return(n=e[3])!=null?n:[]}),render:({template:e,name:t,nodes:n,height:r})=>be`
		<div class="layer" part="${`${t}-layer-${r}`}"
			style="${tn(e[0],r)}">
			${n.map((o,i)=>be`
				<div class="node" part="${`${t}-node-${r}`}"
					style="${nn(e[0],e[1],e[2],i)}">
					<mandala-layer name="${t}" template="${o}" height="${r+1}"></mandala-layer>
				</div>`)}
		</div>

		<style>
			@keyframes spinCW {
				100% {transform: translate(-50%, -50%) rotate(360deg)}
			}

			@keyframes spinCCW {
				100% {transform: translate(-50%, -50%) rotate(-360deg)}
			}

			:host {
				width: 0;
				height: 0;
			}

			.layer {
				position: absolute;
				left: 50%;
				top: 50%;
				transform: translate(-50%, -50%);
			}

			.node {
				position: absolute;
				display: flex;
				justify-content: center;
				align-items: center;
				background: black;
			}
		</style>`,exportparts:en({get:({name:e,height:t,nested:n})=>Ve(t,t+n+1).map(r=>[`${e}-layer-${r}`,`${e}-node-${r}`]).flat().join(",")})};Le("mandala-layer",et),b.MandalaLayer=et,Object.defineProperty(b,"__esModule",{value:!0}),b[Symbol.toStringTag]="Module"});
