nodality 1.0.0-beta.13 → 1.0.0-beta.15

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/index.cjs.js CHANGED
@@ -1 +1 @@
1
- (()=>{"use strict";var __webpack_modules__={11:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function i(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,o(n.key),n)}}function o(e){var t=function(e){if("object"!=n(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=n(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==n(t)?t:t+""}r.d(t,{B:()=>s});var s=function(){return e=function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.res=null,this.st=t},(t=[{key:"setup",value:function(){var e=document.createElement("div");return e.style.display="grid",this.res=e,this.st&&this.sticky(),this}},{key:"set",value:function(e){return this.setup(),e.height&&(this.res.style.height=e.height),e.sticky&&this.sticky(),this}},{key:"sticky",value:function(){return this.res.style.position="sticky",this.res.style.top=0,this}},{key:"add",value:function(e){this.children=e;for(var t=0;t<e.length;t++){var r=e[t].render();r.style.gridColumn=1,r.style.gridRow=1,this.res.appendChild(r)}return this}},{key:"toCode",value:function(){var e="new Stack().set({})";if(this.children.length>0){var t=this.children.map((function(e){return e.toCode()})).join(",\n");e+=".add([\n \n ".concat(t," \n \n])")}return[e]}},{key:"render",value:function(e){if(!e)return this.res;document.querySelector("body").style.margin=0,document.querySelector("body").style.padding=0,document.querySelector(e).appendChild(this.res)}}])&&i(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}()},16:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function i(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o,s,a=[],l=!0,c=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=o.call(r)).done)&&(a.push(n.value),a.length!==t);l=!0);}catch(e){c=!0,i=e}finally{try{if(!l&&null!=r.return&&(s=r.return(),Object(s)!==s))return}finally{if(c)throw i}}return a}}(e,t)||o(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(e,t){if(e){if("string"==typeof e)return s(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?s(e,t):void 0}}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function a(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,l(n.key),n)}}function l(e){var t=function(e){if("object"!=n(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=n(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==n(t)?t:t+""}function c(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(c=function(){return!!e})()}function u(e,t,r,n){var i=d(h(1&n?e.prototype:e),t,r);return 2&n&&"function"==typeof i?function(e){return i.apply(r,e)}:i}function d(){return d="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,r){var n=function(e,t){for(;!{}.hasOwnProperty.call(e,t)&&null!==(e=h(e)););return e}(e,t);if(n){var i=Object.getOwnPropertyDescriptor(n,t);return i.get?i.get.call(arguments.length<3?e:r):i.value}},d.apply(null,arguments)}function h(e){return h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},h(e)}function p(e,t){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},p(e,t)}r.d(t,{E:()=>f});var f=function(e){function t(e,r){var i;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(i=function(e,t,r){return t=h(t),function(e,t){if(t&&("object"==n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,c()?Reflect.construct(t,r||[],h(e).constructor):t.apply(e,r))}(this,t)).text=e,i.res=null,i.setup(r),i.code=[],i.elCSS=[],i.html=[],i.react=[],i.code.push('new Text("'.concat(i.text,'")')),i}return function(e,t){if("function"!=typeof t&&null!==t)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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&p(e,t)}(t,e),r=t,s=[{key:"flexOne",value:function(){return this.res.style.flex="1",this}},{key:"setGridWithoutCode",value:function(){return this.res.style.border="1px solid white",this}},{key:"setArea",value:function(e){return this.res.style.gridArea=e,this}},{key:"toCodea",value:function(){return this.excludeFromCodeTrue&&(this.code=[""]),this.code}},{key:"toCode",value:function(){if(this.excludeFromCodeTrue)return[""];var e=Object.fromEntries(Object.entries(this.options).filter((function(e){var t=i(e,2);return t[0],null!==t[1]}))),t=JSON.stringify(e,null,4).replace(/"([^"]+)":/g,"$1:");return console.log("OCO"),console.log(t),['new Text("'.concat(this.text,'").set(').concat(t,")")]}},{key:"toCSS",value:function(){return this.css}},{key:"toHTMLA",value:function(){return this.html}},{key:"toElCSS",value:function(){return this.elCSS=this.elCSS.map((function(e){return" "+e})),this.preffersId?this.elCSS.unshift(this.res.id+" { \n"):this.elCSS.unshift("."+this.class+" { \n"),this.elCSS.push(" } \n \n"),this.elCSS}},{key:"getType",value:function(){return"S1"===this.options.fluidc?"HTMLHeaderElement":"HTMLParagraphElement"}},{key:"gradientOptions",value:function(e){var t=this;if(0===e.length)return this;var r=e.filter((function(e){return"gradient"===e.op.name}))[0];if(void 0===r)return this;var n=r.op;if(r.point){var i=function(){window.matchMedia("(min-width: ".concat(r.range[0],") and (max-width: ").concat(r.range[1],")")).matches&&(t.prevBackground=t.res.style.color.toString(),t.res.style.background=n.gradient,t.res.style.WebkitBackgroundClip="text")};i(),window.addEventListener("resize",i)}}},{key:"strokeOptions",value:function(e){var t=this;if(0===e.length)return this;var r=e.filter((function(e){return"blast"===e.op.name}))[0];if(void 0===r)return this;console.log("DEL");var n=r.op;if(r.point){var i=function(){window.matchMedia("(min-width: ".concat(r.range[0],") and (max-width: ").concat(r.range[1],")")).matches&&(n.color?t.res.style["-webkit-text-stroke"]="".concat(n.width?n.width:"1px"," ").concat(n.color):t.res.style["-webkit-text-stroke"]="1px orange",t.res.style["-webkit-text-fill-color"]="transparent")};i(),window.addEventListener("resize",i)}else n.color&&(this.res.style["-webkit-text-stroke"]="".concat(n.width?n.width:"1px"," ").concat(n.color)),this.res.style["-webkit-text-fill-color"]="transparent"}},{key:"stroke",value:function(){return this.res.style["-webkit-text-stroke"]="3px orange",this}},{key:"fill",value:function(){return this.res.style["-webkit-text-fill-color"]="transparent",this}},{key:"rowCol",value:function(e,t){return this.res.style.gridRow=e,this.res.style.gridColumn=t,this}},{key:"setGridRow",value:function(e){return this.res.style.gridRow=e,this}},{key:"setGridCol",value:function(e){return this.res.style.gridColumn=e,this}},{key:"toHTML",value:function(){return this.res}},{key:"onTap",value:function(e){return this.res.addEventListener("click",e),this}},{key:"setClass",value:function(e){return this.res.setAttribute("class",e),this}},{key:"setRandom",value:function(){for(var e="LAYOUT-",t=90;t>0;--t)e+="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"[Math.floor(62*Math.random())];return e+=(new Date).getTime(),this.res.setAttribute("class",e),this}},{key:"styled",value:function(e){return this.set(e),this}},{key:"removeQuotesFromFirstWord",value:function(e){return e.replace(/"([^"]+)":/g,"$1:")}},{key:"set",value:function(e){this.resCopy=this.res,this.options=e,u(t,"setPrevText",this,3)([this.text]),e.maxWidth&&(this.res.style.maxWidth=e.maxWidth),e.cursor&&(this.res.style.cursor="hand"),e.gpos&&this.gpos(e.gpos),e.vtn&&(this.res.style.viewTransitionName=e.vtn),e.index&&u(t,"setIndex",this,3)([e.index]),e.index&&(this.index=e.index),e.preffersId&&(this.preffersId=e.preffersId),u(t,"setPref",this,3)([e.preffersId]),e.removeDecoration&&(this.res.style.textDecoration="none"),e.block&&(this.res.style.display="block"),e.area&&this.setArea(e.area),e.icon&&this.addIcon(e.icon),e.color&&this.color(e.color),e.color&&this.elCSS.push("color: ".concat(e.color,"; \n")),e.class&&this.setClass(e.class),e.size&&this.fluidCopy(e.size),e.fluidc&&this.fluidCopy(e.fluidc),e.initLetter&&this.initLetter(e.initLetter),e.onTap&&this.onTap(e.onTap),"S6"===e.fluidc?e.fluidc&&this.elCSS.push("font-size: calc(1.1rem + 2.075vw); \n"):e.fluidc&&this.elCSS.push("font-size: calc(1.625rem + 5.075vw); \n"),this.options.id&&this.res.setAttribute("id",this.options.id),u(t,"setID",this,3)([this.options.id]),this.options.class&&this.res.setAttribute("class",this.options.class),u(t,"setClass",this,3)([this.options.class]),e.clampc&&this.clampCopy(e.clampc),e.arrpad&&this.arrayPadding(e.arrpad.sides,e.arrpad.value),e.pad&&this.pad(e.pad),e.respad&&this.respad(e.respad),e.resmar&&this.resmar(e.resmar),e.mar&&this.mar(e.mar),e.exact&&(this.res.style.fontSize=e.exact),e.zIndex&&(this.res.style.zIndex=e.zIndex),e.absolute&&(this.res.style.position="absolute"),e.arrayMargin&&this.arrayMargin(e.arrayMargin.sides,e.arrayMargin.value),e.em&&this.em(e.em),e.fluid&&this.fluid(e.fluid),e.font&&this.font(e.font),e.fluidc&&this.elCSS.push("font-family: ".concat(e.font,"; \n")),e.align&&(this.res.style.textAlign=e.align),e.weight&&(this.res.style.fontWeight=e.weight),e.padding&&this.padding(e.padding),e.breakWord&&(this.res.style.wordWrap="break-word"),e.center&&(this.res.style.marginRight="auto"),e.center&&(this.res.style.marginLeft="auto"),e.width&&(this.res.style.width=e.width),e.height&&(this.res.style.height=e.height),e.background&&(this.res.style.backgroundColor=e.background),e.radius&&(this.res.style.borderRadius=e.radius),e.italic&&this.italic(),e.responsive&&this.responsive(),e.border&&(this.res.style.border="".concat(e.border)),e.onScroll&&this.onScroll(e.onScroll),e.keySet&&this.keySet(e.keySet),e.maxHeight&&(this.res.style.maxHeight=e.maxHeight),e.transform&&this.reactOnTransform(e.transform),console.log("OGA"),console.log(e);var r=[];if(e.stroke||e.gradient||e.span||e.backgroundOp||e.layout||e.shadow||e.animation||e.filtera||e.transform){e.gradient&&(this.globalGradient=e.gradient.op.gradient),e.stroke&&u(t,"setAny",this,3)([{globalBlast:"".concat(e.stroke.op.width," ").concat(e.stroke.op.color)}]),e.span&&(e.span.prevText=this.text);var n=[e.stroke,e.gradient,e.animation,e.span,e.backgroundOp,e.layout,e.marginOp,e.shadow,e.animation,e.filtera,e.transform];n=n.filter((function(e){return null!=e}));for(var i=0;i<n.length;i++)r.push({range:n[i].range,log:n[i].op.name,target:n[i].target,op:n[i].op});var o=[];e.borderObj&&o.push("border"),e.background&&o.push("background"),e.mar&&o.push("margin"),e.animation&&o.push("animation"),e.span&&o.push("span"),this.chainReact(r,this.options.id,o)}return this}},{key:"excludeFromCode",value:function(){return this.excludeFromCodeTrue=!0,this}},{key:"addIcon",value:function(e){var t=document.createElement("img");return t.style.width="20px",t.style.marginLeft="10px",t.style.height="auto",t.setAttribute("src",e.url),this.res.appendChild(t),this}},{key:"checkForAnimation",value:function(e){e.sort((function(e,t){return parseInt(e.range[0])-parseInt(t.range[0])}));var t,r=window.innerWidth,n=function(e){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=o(e))){t&&(e=t);var r=0,n=function(){};return{s:n,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,s=!0,a=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return s=e.done,e},e:function(e){a=!0,i=e},f:function(){try{s||null==t.return||t.return()}finally{if(a)throw i}}}}(e);try{for(n.s();!(t=n.n()).done;){var s=t.value,a=i(s.range,2),l=a[0],c=a[1],u=parseInt(l),d=parseInt(c);r>=u&&r<=d&&"animation"===s.log&&this.res.animate([{opacity:0,transform:"translateY(100px)"},{opacity:1,transform:"translateY(0)"}],{duration:1e3,easing:"ease"})}}catch(e){n.e(e)}finally{n.f()}}},{key:"resetSmall",value:function(){this.res.style["-webkit-text-stroke"]="",this.res.style["-webkit-text-fill-color"]=""}},{key:"resetGradient",value:function(){return this.res.style.WebkitBackgroundClip="text",this.res.style.background="transparent",this}},{key:"resetStroke",value:function(){this.res.style["-webkit-text-stroke"]="",this.res.style["-webkit-text-fill-color"]=""}},{key:"innerStroke",value:function(e){e.color?this.res.style["-webkit-text-stroke"]="".concat(e.width?e.width:"1px"," ").concat(e.color):this.res.style["-webkit-text-stroke"]="1px orange",this.res.style["-webkit-text-fill-color"]="transparent"}},{key:"innerGradient",value:function(e){this.res.style.background="linear-gradient(45deg, #ff0000, #00ff00)",this.res.style["-webkit-background-clip"]="text"}},{key:"arrayMargin",value:function(e,t){return t||(this.res.style.marginLeft="".concat(e[0],"px"),this.res.style.marginTop="".concat(e[1],"px"),this.res.style.marginRight="".concat(e[2],"px"),this.res.style.marginBottom="".concat(e[3],"px")),e.includes("left")&&(this.res.style.marginLeft=t),e.includes("right")&&(this.res.style.marginRight=t),e.includes("top")&&(this.res.style.marginTop=t),e.includes("bottom")&&(this.res.style.marginBottom=t),t||(this.res.style.marginBottom=e),this}},{key:"clampExperiment",value:function(){return this.res.style.fontSize="clamp(1rem, calc(1rem * 10rem), 3rem)",this}},{key:"between",value:function(e){return"S1"===e&&(this.res.style.fontSize="clamp(2rem, 8vw, 2.5rem)"),"S2"===e&&(this.res.style.fontSize="clamp(4rem, 8vw, 5rem)"),"S3"===e&&(this.res.style.fontSize="clamp(2rem, 5vw, 2.5rem)"),"S4"===e&&(this.res.style.fontSize="clamp(1.5rem, 2vw, 1.6rem)"),"S5"===e&&(this.res.style.fontSize="clamp(1.2rem, 2vw, 1.3rem)"),"S6"===e&&(this.res.style.fontSize="clamp(1rem, 2vw, 1.3rem)"),this}},{key:"betweenCopy",value:function(e){return"S1"===e&&(this.res.style.fontSize="clamp(2rem, 8vw, 2.5rem)"),"S2"===e&&(this.res.style.fontSize="clamp(4rem, 8vw, 5rem)"),"S3"===e&&(this.res.style.fontSize="clamp(2rem, 5vw, 2.5rem)"),"S4"===e&&(this.res.style.fontSize="clamp(1.5rem, 2vw, 1.6rem)"),"S5"===e&&(this.res.style.fontSize="clamp(1.2rem, 2vw, 1.3rem)"),"S6"===e&&(this.res.style.fontSize="clamp(1rem, 2vw, 1.3rem)"),this}},{key:"stringGen",value:function(e){for(var t="",r=0;r<e;r++)t+="abcdefghijklmnopqrstuvwxyz".charAt(Math.floor(26*Math.random()));return t}},{key:"initLetter",value:function(e){var t=document.createElement("style");document.body.appendChild(t),Math.random();var r=this.stringGen(1e3);return this.res.setAttribute("id",r),document.styleSheets[0].insertRule("#".concat(r,"::first-letter { color: green; font-size: 3em; padding: 0.1em }"),0),this}},{key:"constant",value:function(e){return"S1"===e&&this.jumbotron(),"S2"===e&&this.large(),"S3"===e&&this.medium(),this}},{key:"minusMargin",value:function(){return this.res.style.marginRight="-3.1em",this}},{key:"fluid",value:function(e){if("S1"===e){this.res=document.createElement("h1");var t=document.createTextNode(this.text);this.res.appendChild(t),this.res.style.fontSize="calc(1.625rem + 4.3vw)"}if("S2"===e){this.res=document.createElement("h2");var r=document.createTextNode(this.text);this.res.appendChild(r),this.res.style.fontSize="calc(1.525rem + 3.525vw)"}if("S3"===e){this.res=document.createElement("h3");var n=document.createTextNode(this.text);this.res.appendChild(n),this.res.style.fontSize="calc(1.375rem + 2.75vw)"}if("S4"===e){this.res=document.createElement("h4");var i=document.createTextNode(this.text);this.res.appendChild(i),this.res.style.fontSize="calc(1.275rem + 1.975vw)"}return"S5"===e&&(this.res.style.fontSize="calc(1.1rem + 1.2vw)"),this}},{key:"getClampValue",value:function(e){return"S7"===e?"clamp(1.45rem, 2vw + 1.5rem, 1.69rem)":"S6"===e?"clamp(2.25rem, 2vw+1.5rem, 3.25rem)":"S5"===e?"clamp(2.75rem, 2vw + 1.5rem, 3.25rem)":"S4"===e?"clamp(3.5rem, 2vw + 1.5rem, 3.25rem)":"S3"===e?"clamp(4.25rem, 2vw + 1.5rem, 3.25rem)":"S2"===e?"clamp(5rem, 2vw + 1.5rem, 3.25rem)":"S1"===e?"clamp(6rem, 2vw + 1.5rem, 3.25rem)":void 0}},{key:"clampCopy",value:function(e){return this.res.style.fontSize=this.getClampValue(e),this}},{key:"fluidCopy",value:function(e){if(e instanceof Object){this.prevStylex=this.res.style,this.res=document.createElement("h1"),this.res.style.cssText=this.prevStylex.cssText;var t=document.createTextNode(this.text);return this.res.appendChild(t),this.res.style.fontSize=e.exact,this}if("S1"===e){this.prevStylex=this.res.style,this.res=document.createElement("h1"),this.res.style.cssText=this.prevStylex.cssText;var r=document.createTextNode(this.text);this.res.appendChild(r),this.res.style.fontSize="calc(1.625rem + 5.075vw)"}if("S2"===e){this.prevStylex=this.res.style,this.res=document.createElement("h2"),this.res.style.cssText=this.prevStylex.cssText;var n=document.createTextNode(this.text);this.res.appendChild(n),this.res.style.fontSize="calc(1.500rem + 4.3vw)"}if("S3"===e){this.prevStylex=this.res.style,this.res=document.createElement("h3"),this.res.style.cssText=this.prevStylex.cssText;var i=document.createTextNode(this.text);this.res.appendChild(i),this.res.style.fontSize="calc(1.375rem + 3.525vw)"}if("S4"===e){this.prevStylex=this.res.style,this.res=document.createElement("h4"),this.res.style.cssText=this.prevStylex.cssText;var o=document.createTextNode(this.text);this.res.appendChild(o),this.res.style.fontSize="calc(1.250rem + 2.75vw)"}if("S5"===e){this.prevStylex=this.res.style,this.res=document.createElement("h5"),this.res.style.cssText=this.prevStylex.cssText;var s=document.createTextNode(this.text);this.res.appendChild(s),this.res.style.fontSize="calc(1.125rem + 1.975vw)"}return"S6"===e&&(this.options&&!1===this.options.preffersId?this.html.push('<p class="'.concat(this.options.class,'">').concat(this.text,"</p> \n \n")):this.options&&this.options.id&&this.html.push('<p id="'.concat(this.options.id.substr(1),'">').concat(this.text,"</p> \n \n")),this.res.style.fontSize="calc(1rem + 0.5vw)"),this}},{key:"toReactComponent",value:function(){return this.react.push("function Godzilla() { \n"),this.react.push('return <h1 class="'.concat(this.options.class,'">').concat(this.text,"</h1> \n")),this.react.push("} \n \n"),this.react}},{key:"myself",value:function(e){var t=this,r=function(){window.matchMedia("(max-device-width: 415px)").matches?t.res.style.fontSize=e.desktop:t.res.style.fontSize=e.phone};return r(),window.addEventListener("resize",r),this}},{key:"jumbotron",value:function(){var e=this,t=function(){window.matchMedia("(max-device-width: 415px)").matches?e.res.style.fontSize="8rem":e.res.style.fontSize="6rem"};return t(),window.addEventListener("resize",t),this}},{key:"large",value:function(){var e=this,t=function(){window.matchMedia("(max-device-width: 415px)").matches?e.res.style.fontSize="7rem":e.res.style.fontSize="5rem"};return t(),window.addEventListener("resize",t),this}},{key:"frame",value:function(e){return this.res.style.width=e.width,this.res.style.height=e.height,this}},{key:"vw",value:function(e,t,r){}},{key:"responsive",value:function(e){var t=this;this.set=!1,this.setB=!1;var r=function(){window.innerWidth<e.minw?(t.setB=!1,t.set||(t.res.style.color="#3498db",t.res.style.fontSize="".concat(e.baseVW/100*window.innerWidth,"px"),t.set=!0)):window.innerWidth>e.maxw?(t.set=!1,t.setB||(t.res.style.color="orange",t.res.style.fontSize="".concat(e.baseVW/100*e.maxw,"px"),t.setB=!0)):(t.set=!1,t.setB=!1,t.res.style.color="black",t.res.style.fontSize="".concat(e.baseVW,"vw"))};return r(),window.addEventListener("resize",r),this}},{key:"xlarge",value:function(){var e=this,t=function(){window.matchMedia("(max-device-width: 415px)").matches?e.res.style.fontSize="6.5rem":e.res.style.fontSize="8.5rem"};return t(),window.addEventListener("resize",t),this}},{key:"medium",value:function(){var e=this,t=function(){window.matchMedia("(max-device-width: 415px)").matches?e.res.style.fontSize="2.25rem":e.res.style.fontSize="1.5em"};return t(),window.addEventListener("resize",t),this}},{key:"auto",value:function(){var e=this,t=function(){window.matchMedia("(max-device-width: 415px)").matches?e.res.style.fontSize="2rem":e.res.style.fontSize="1rem"};return t(),window.addEventListener("resize",t),this}},{key:"small",value:function(){var e=this,t=function(){window.matchMedia("(max-device-width: 415px)").matches?e.res.style.fontSize="1.5em":e.res.style.fontSize="1em"};return t(),window.addEventListener("resize",t),this}},{key:"sizes",value:function(e){var t=this;this.res.style.fontSize="".concat(e[0].size,"rem");var r=function(){for(var r=0;r<e.length;r++)e[r].width&&window.matchMedia("(min-width: ".concat(e[r].width,"px)")).matches&&(t.res.style.fontSize="".concat(e[r].size));window.matchMedia("(max-device-width: 415px)").matches&&(t.res.style.fontSize="".concat(e[e.length-1].mobile))};return r(),window.addEventListener("resize",r),this}},{key:"setup",value:function(e){var t;e?((t=document.createElement(e.type)).setAttribute("id",e.id),e.type):t=document.createElement("p");var r=document.createTextNode(this.text);return t.appendChild(r),this.res=t,this.res.style.padding=0,this.res.style.margin=0,this}},{key:"hide",value:function(){return this.res.style.visibility="hidden",this}},{key:"font",value:function(e){return this.res.style.fontFamily=e,this}},{key:"center",value:function(){return this.res.style.textAlign="center",this}},{key:"size",value:function(e){return this.res.style.fontSize=e,this}},{key:"em",value:function(e){return this.res.style.fontSize="".concat(e,"em"),this}},{key:"color",value:function(e){return this.res.style.color=e,this}},{key:"align",value:function(e){return this.res.style.textAlign="".concat(e),this}},{key:"weight",value:function(e){return this.res.style.fontWeight=e,this}},{key:"bold",value:function(){return this.res.style.fontWeight="bold",this}},{key:"italic",value:function(){return this.res.style.fontStyle="italic",this}},{key:"width",value:function(e,t){return this.res.style.width=e,t&&(this.res.style.marginLeft="auto",this.res.style.marginRight="auto"),this}},{key:"offset",value:function(e){return this.res.style.gridRow=2,this.res.style.gridColumn=2,this.res.style.marginLeft="-60px",this}},{key:"border",value:function(e,t){return this.res.style.border="".concat(t,"px solid ").concat(e),this}},{key:"padding",value:function(e,t,r,n){return(e||t||r||n)&&(this.res.style.paddingLeft=e,this.res.style.paddingTop=t,this.res.style.paddingRight=r,this.res.style.paddingBottom=n),t||r||n||(this.res.style.padding=e),this}},{key:"arrayPadding",value:function(e,t){return e.includes("left")&&(this.res.style.paddingLeft=t),e.includes("right")&&(this.res.style.paddingRight=t),e.includes("top")&&(this.res.style.paddingTop=t),e.includes("bottom")&&(this.res.style.paddingBottom=t),t||(this.res.style.paddingBottom=e),this}},{key:"margin",value:function(e,t){return"top"==e?this.res.style.marginTop=t:"bottom"==e?this.res.style.marginBottom=t:"left"==e?this.res.style.marginLeft=t:"right"==e&&(this.res.style.marginRight=t),this}},{key:"headline",value:function(){return this.em(4),this.font("Arial"),this.bold(),this}},{key:"caption",value:function(){return this.bold(),this.res.style.fontFamily="Arial",this.color("gray"),this.padding("top",20),this.res.style.fontSize="1em",window.matchMedia("(max-device-width: 415px)").matches?this.res.style.fontSize="2em":this.res.style.fontSize="1em",this}},{key:"updating",value:function(e,t){var r=this.res,n=this.text;return Object.defineProperty(e,t,{set:function(e){var t=document.createTextNode(n.replace("$",e));r.replaceChild(t,r.childNodes[0])}}),this}},{key:"style",value:function(e){return this.res.style.color=e.styles.color,this.res.style.fontWeight=e.styles.fontWeight,this.res.style.paddingLeft=e.styles.padding[0],this.res.style.paddingTop=e.styles.padding[1],this.res.style.paddingRight=e.styles.padding[2],this.res.style.paddingBottom=e.styles.padding[3],this.res.style.marginLeft=e.styles.margin[0],this.res.style.paddingTop=e.styles.margin[1],this.res.style.paddingRight=e.styles.margin[2],this.res.style.paddingBottom=e.styles.margin[3],this.res.style.opacity=e.styles.opacity,this}},{key:"applyStyle",value:function(e,t){return window.matchMedia("(max-width: ".concat(e,"px)")).matches&&Object.assign(this.res.style,t.styles),this}},{key:"nextApply",value:function(e){for(var t=this,r=[],n=(this.res.style,function(n){r[0].matches?Object.assign(t.res.style,e[0].styles):r[1].matches?Object.assign(t.res.style,e[1].styles):Object.assign(t.res.style,e[e.length-1].styles)}),i=0;i<e.length;i++){var o=e[i],s=window.matchMedia("(min-width: ".concat(o.min,"px) and (max-width: ").concat(o.max,"px)"));r.push(s),r[i].addListener(n)}return n(),this}},{key:"apply",value:function(e){var t=this,r=this.res.styles,n=function(){for(var n=0;n<e.length;n++){var i=e[n];i.min&&i.max?window.matchMedia("(min-width: ".concat(i.min,"px) and (max-width: ").concat(i.max,"px)")).matches?Object.assign(t.res.style,i.styles):(alert("YES min max, but does not match"),Object.assign(t.res.style,r)):window.matchMedia("(max-width: ".concat(i.max,"px)")).matches?Object.assign(t.res.style,i.styles):(alert("NO min max, and does not match"),Object.assign(t.res.style,r))}};return n(),window.addEventListener("resize",n),this}},{key:"render",value:function(e){if(!e)return this.res;this.options&&this.options.id&&this.res.setAttribute("id",this.options.id),document.querySelector(e).appendChild(this.res)}}],s&&a(r.prototype,s),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,s}(r(762).y)},19:(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{H:()=>Des});var _lib_elementMapper_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(827),_layout_formComponents_floatingInput_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(148),_layout_formComponents_range_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(751),_layout_formComponents_radio_js__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(385),_layout_formComponents_picker_js__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(898),_layout_formComponents_dataList_js__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(216),_layout_checkbox_js__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(342);function _typeof(e){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof(e)}function _toConsumableArray(e){return _arrayWithoutHoles(e)||_iterableToArray(e)||_unsupportedIterableToArray(e)||_nonIterableSpread()}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(e,t){if(e){if("string"==typeof e)return _arrayLikeToArray(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?_arrayLikeToArray(e,t):void 0}}function _iterableToArray(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function _arrayWithoutHoles(e){if(Array.isArray(e))return _arrayLikeToArray(e)}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _defineProperties(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,_toPropertyKey(n.key),n)}}function _createClass(e,t,r){return t&&_defineProperties(e.prototype,t),r&&_defineProperties(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function _toPropertyKey(e){var t=_toPrimitive(e,"string");return"symbol"==_typeof(t)?t:t+""}function _toPrimitive(e,t){if("object"!=_typeof(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=_typeof(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var Des=function(){function Des(){_classCallCheck(this,Des),this.items=[],this.options=[],this.code=[],this.ready2Render=[],this.stor={text:{miami:{code:'new Text("Hello").set({fluidc: "S3", color: "orange"})'},base:{code:'new Text("Hello").set({fluidc: "S3", color: "orange"})'},nepal:{code:'new Text("Hello").set({fluidc: "S3", color: "#2ECC71", font: "Helvetica Neue"})'},patagonia:{code:'new Text("Hello").set({fluidc: "S3", color: "#3498DB", font: "DIN Alternate"})'}},complexa:{code:"new Wrapper()\n .set({...}) // Rest of the code omitted for brevity"},complex:{code:'new Wrapper() \n\t.set({\n\t\t\n\t\tresponsive: {\n\t\t\tranges: ["700px", "1200px", "1400px"],\n\t\t\tsequence: "col-row-col"\n\t\t}\n\t})\n\t.add([\n\t\tnew Image("img/wix.jpeg").set({\n\t\t\twidth: "100%",\n\t\t\theight: "200px",\n objectFit: "cover"\n\t\t}),\n\n new Wrapper().set({\n responsive: {\n\t\t\tranges: ["700px", "1200px", "1400px"],\n\t\t\tsequence: "col-col-row"\n\t\t}\n }).add([\n new Text("Running in the desert").set({\n size: "S3",\n font: "Arial",\n color: "orange"\n }),\n\n new Text("This is example content").set({\n exact: "1rem",\n font: "Arial"\n }),\n\n\n new Image("img/wix.jpeg").set({\n width: "100%",\n height: "300px",\n objectFit: "cover"\n })\n ])\n\t])'},ops:{miami:{blast:{code:'stroke: {range:["0px","3000px"], op:{name:"blast",color:"orange",width:"3px"}}'},blastFun:function(e){return'stroke: {range:["0px","3000px"], op:{name:"blast",color:"orange",width:"'.concat(e,'px"}}')}},nepal:{blast:{code:'stroke: {range:["0px","3000px"], op:{name:"blast",color:"#2ECC71",width:"3px"}}'},blastFun:function(e){return'stroke: {range:["0px","3000px"], op:{name:"blast",color:"#2ECC71",width:"'.concat(e,'px"}}')}},patagonia:{blast:{code:'stroke: {range:["0px","3000px"], op:{name:"blast",color:"#1abc9c",width:"3px"}}'},blastFun:function(e){return'stroke: {range:["0px","3000px"], op:{name:"blast",color:"#1abc9c",width:"'.concat(e,'px"}}')}}},link:{miami:{code:'new Link("Link").set({text: "Hello", url: "#a", background: "", color: "orange", hover: {color: "white", background: "orange", animation: 0.6}, borderObj: {color: "orange", width: "3px", radius: "0.7rem"}, pad: { sides: ["all"], value: "0.6rem" }, arrayMargin: { sides: ["top", "bottom"], value: "0.8rem" }, radius: "0.4rem"})'},base:{code:'new Link("Link").set({text: "Hello", url: "#ai", background: "#3498db", pad: [{lr: "0.5rem", tb: "1rem"}], radius: "0.4rem", color: "white"})'},nepal:{code:'new Link("Link").set({text: "Hello", url: "#a", background: "#2ECC71", pad: { sides: ["all"], value: "0.6rem" }, mar: { sides: ["top", "bottom"], value: "0.8rem" }, hover: {color: "#2ECC71", background: "white", border: true, animation: 0.3}, color: "white"})'},patagonia:{code:'new Link("Link", "#a").set({text: "Hello", url: "#a", background: "#1ABC9C", pad: { sides: ["all"], value: "0.6rem" }, mar: { sides: ["top", "bottom"], value: "0.8rem" }, hover: {color: "#2ECC71", background: "white", border: true, animation: 0.3}, color: "white"})'}},grid:{code:' new Simple()\n .set({\n gap: "1rem"\n })\n .react([{\n at: "0px",\n template: [\n "eeeeee",\n "eeeeee",\n "abbbbb",\n "abbbbb",\n "abbbbb",\n "cccccc",\n "cccccc",\n "dddddd"\n ]\n },\n\n {\n at: "900px",\n color: "orange",\n template: [\n "aaaccc",\n "aaaccc",\n "bbbbbb",\n "dddddd",\n "eeeeee"\n ]\n },\n\n {\n at: "1200px",\n color: "purple",\n template: [\n "cccaaa",\n "cccaaa",\n "bbbbbb",\n "dddddd",\n "eeeeee"\n ]\n },\n ])\n .add([\n new Wrapper().set({\n pad: [{\n a: 20\n }],\n background: "#ecf0f1",\n radius: "1.7rem"\n }).add([\n new Text("NEW PRODUCT").set({\n exact: "1rem",\n font: "Oswald",\n width: "100%"\n }),\n new Text("Feel").set({\n fluidc: "S2",\n font: "Oswald",\n width: "100%",\n color: "black"\n }),\n new Text("Speed").set({\n exact: "7rem",\n font: "Oswald",\n width: "100%",\n color: "#3498db"\n }),\n ]),\n\n new Wrapper().set({\n pad: [{\n a: 20\n }],\n background: "#ecf0f1",\n radius: "1.7rem"\n }).add([\n new Text("TOP QUALITY").set({\n exact: "1rem",\n font: "Oswald",\n width: "100%"\n }),\n new Text("Amazing animals").set({\n fluidc: "S2",\n font: "Oswald",\n width: "100%",\n color: "black"\n }),\n\n new Text("Seals are intelligent, agile marine mammals found in oceans around the world, known for their streamlined bodies, flippers, and ability to thrive both in water and on land. Belonging to the pinniped family, they are divided into true seals, which lack external ears, and eared seals like sea lions, which are more mobile on land. Seals feed primarily on fish and squid, using their sensitive whiskers to detect prey underwater, and can dive to great depths while holding their breath for extended periods. Adapted to cold environments with thick blubber for insulation, seals play a crucial role in marine ecosystems but face threats from climate change, pollution, and human activity, making conservation efforts increasingly important.")\n .set({\n font: "Arial",\n exact: "1.3rem"\n })\n\n ]),\n\n new Wrapper().set({\n radius: "1.7rem",\n overflow: "hidden"\n\n }).add([\n\n new Image("https://cdn.pixabay.com/photo/2017/02/09/18/40/seal-2053165_640.jpg", "exact").set({\n width: "100%",\n height: "420px",\n minHeight: "100px",\n objectFit: "cover"\n\n })\n ]),\n\n new Wrapper().set({\n pad: [{\n a: 20\n }],\n background: "#ecf0f1",\n radius: "1.7rem",\n }).add([\n new Text("Welcome seals").set({\n fluidc: "S3",\n font: "Oswald",\n color: "black"\n }),\n \n ]),\n new Wrapper().set({\n mc: true,\n pad: [{\n a: 20\n }],\n background: "#ecf0f1",\n radius: "1.7rem",\n\n }).add([new Text("Top line").set({\n font: "Arial",\n exact: "1.3rem"\n }), ]),\n ])'},flexRow:function(e){return{image:{code:'new FlexRow().set({border: ["all", "3px"], colat: "600px"}).items([new Image(...), new Image(...), new Image(...)])'},text:{code:'new FlexRow().set({}).items([\n\nnew Text("This").set({\n size: "S3"\n}), \n\nnew Text("is").set({\n size: "S3",\n text: "Hello"\n}), \n\nnew Text("row.").set({\n size: "S3",\n text: "Hello"\n})\n \n])'}}},tabSpace:function(e){return" ".repeat(e)}}}return _createClass(Des,[{key:"at",value:function(e){return this.options.push(e),this}},{key:"nodes",value:function(e){return this.options=e,this.protoOptions=_toConsumableArray(e),console.log(this.options),console.log(this.protoOptions),this}},{key:"getElType",value:function(e){return"S".concat(e.substr(1))}},{key:"filtero",value:function(e,t,r){return r.filter((function(t){return t.op.name===e})).filter((function(e){return!e.target||e.target.includes(t)}))[0]}},{key:"add",value:function add(arr){var _this=this;this.css=[],this.elCSS=[],this.elHTML=[];for(var customOptions=this.options,_loop=function _loop(){var el=arr[i],ela=null,ops=["blast","gradient","shadow","filter","animationSimple","transform"],replacementObjects=[{op:{name:"blast",color:"green",width:"1px"}},{op:{name:"gradient",gradient:"linear-gradient(orange, green)"}},{op:{name:"shadow",color:"#1abc9c",steps:3}},{op:{name:"filter",filter:"grayscale(0.7)"}},{op:{name:"animation",color:"green",width:"1px",fireAt:"inview",keyframesOpen:[{transform:"translate(100%, 0%)",opacity:0},{transform:"translate(0%)",opacity:1}],keyframesClose:[{transform:"translate(0%)",opacity:1},{transform:"translate(100%, 0%)",opacity:0}],openOptions:{duration:300,fill:"forwards",delay:1e3},closeOptions:{duration:1,fill:"forwards",delay:1e3}}},{op:{name:"transform",values:["ty:-20px","scale(3)","rotate(30deg)","skew(40deg, 0deg)","perspective(500px)","matrix(1, 0, 0, 1, 50, 50)"]}}];for(q=0;q<ops.length;q++){var blastIDs=customOptions.map((function(e){return e.op})).map((function(e,t){return e===ops[q]?t:""})).filter(String);if(blastIDs.length>0)for(d=0;d<blastIDs.length;d++){var index=blastIDs[d],target=customOptions[index].target,range=customOptions[index].range,filter=customOptions[index].filter,gradient=customOptions[index].gradient,as=replacementObjects[q];as.target=target,null!=range&&(as.range=range),null!=filter&&(as.op.filter=filter),null!=gradient&&(as.op.gradient=gradient),customOptions[index]=as}}for(console.warn(customOptions),q=0;q<customOptions.length;q++){var option=customOptions[q].op.name,cool=_this.protoOptions[q].style||"default",duration=_this.protoOptions[q].duration||"default";if("transform"===option){var opts=[];if(opts="SOLARIUM"===cool?["scale(3)"]:"WAVE"===cool?["skew(15deg, 0deg)","tx:50px","rotate(10deg)","scale(1.1)"]:"CUBE-SPIN"===cool?["perspective(700px)","scale(0.9)"]:"TORNADO-SWITCH"===cool?["rotate(720deg)","scale(0.8)","tx:30px","ty:-50px","tz:-80px"]:"LASER-SWEEP"===cool?["tx:100px","opacity:0.2","scale(1.2, 1.0)"]:"TORNADO-TWIST"===cool?["rotate(720deg)","scale(0.8)","tx:30px","ty:-50px","skew(10deg, 0deg)"]:"JELLY-WOBBLE"===cool?["scale(1.2, 0.8)","rotate(5deg)","ty:-10px","skew(5deg, 0deg)"]:"DRUNKEN-SWAY"===cool?["rotate(15deg)","tx:20px","ty:-10px","skew(10deg, 5deg)"]:"FLAME-FLICKER"===cool?["scale(1.1, 0.9)","rotate(-5deg)","ty:5px","opacity:0.7"]:"PHANTOM-SHIFT"===cool?["tx:15px","ty:-5px","opacity:0.5","skew(5deg, 5deg)"]:"RUBBER-BOUNCE"===cool?["scale(1.3, 0.8)","skew(10deg, 0deg)","ty:-20px"]:"ASTEROID-CRASH"===cool?["tx:-80px","ty:100px","rotate(45deg)","scale(0.7)","opacity:0.5"]:"CYBER-GLITCH"===cool?["tx:5px","ty:-5px","rotate(3deg)","opacity:0.6","scale(1.05)"]:"BUBBLE-POP"===cool?["scale(1.5)","opacity:0.3","ty:-20px"]:"SUPERNOVA-BURST"===cool?["scale(2)","opacity:0","tx:50px","ty:-50px"]:"GRAVITY-DROP"===cool?["ty:100px","scale(0.8)","rotate(10deg)","skew(0deg, 10deg)"]:"LASER-SWEEP"===cool?["tx:100px","opacity:0.2","scale(1.2, 1.0)"]:"VORTEX-SINK"===cool?["rotate(-360deg)","scale(0.5)","ty:50px"]:"SHOCKWAVE"===cool?["scale(1.7)","opacity:0.4","skew(5deg, 5deg)"]:["ty:-20px","scale(3)","rotate(30deg)","skew(40deg, 0deg)","perspective(500px)","matrix(1, 0, 0, 1, 50, 50)"],"default"===duration&&(duration="MEDIUM"),"FAST"===duration?duration="3s-ease-in-out":"MEDIUM"===duration?duration="6s-ease-in-out":"SLOW"===duration&&(duration="10s-ease-in-out"),q==i){var _customOptions$q,_customOptions$q2,_customOptions$q3;console.log("DURA"),console.log(duration),customOptions[q].op.transform={values:opts,duration};var key="style",dur="duration";if(null!==(_customOptions$q=customOptions[q])&&void 0!==_customOptions$q&&_customOptions$q.op&&key in customOptions[q].op&&delete customOptions[q].op[key],null!==(_customOptions$q2=customOptions[q])&&void 0!==_customOptions$q2&&_customOptions$q2.op&&dur in customOptions[q].op&&delete customOptions[q].op[dur],console.log("COQ"),console.log(customOptions[q].op.values),null!==(_customOptions$q3=customOptions[q])&&void 0!==_customOptions$q3&&_customOptions$q3.op.values){var _customOptions$q4,values="values";null!==(_customOptions$q4=customOptions[q])&&void 0!==_customOptions$q4&&_customOptions$q4.op.values&&delete customOptions[q].op[values]}}}}console.log("----------------------------LLL ".concat(i," ").concat(customOptions.length));var matchEls=["h1","h2","h3","h4","h5","h6"].includes(el.type)||"img"===el.type||"a"===el.type||"slider"==el.type;matchEls?(ela=_lib_elementMapper_js__WEBPACK_IMPORTED_MODULE_0__.I.mapType({el,customOptions,i}),ela.toCode?_this.code.push(ela.toCode().join("")):_this.code.push(ela),_this.ready2Render.push(ela),ela=ela.render()):"table"===el.type?_this.code.push('\n new Table()\n .add([\n { abbr: "AUIUI/AK9PT", name: "Pokročilé mobilní technologie", grade: "A", date: "09.01.2024" },\n { abbr: "AUIUI/AK9PT", name: "Pokročilé mobilní technologie", grade: "A", date: "09.01.2024" },\n { abbr: "AUIUI/AK9PT", name: "Pokročilé mobilní technologie", grade: "A", date: "09.01.2024" }\n ])\n .set({\n cellPadding: "0.3em",\n cellAlign: "center",\n style: {\n font: "Arial"\n },\n headStyle: {\n color: "white",\n background: "#ff6d22"\n },\n border: "2px solid black",\n center: true,\n borderRadius: 2.2\n })\n '):"grid"===el.type?_this.code.push(_this.stor.grid.code):"modal"===el.type?_this.code.push('new Code()\n .set({\n pad: [\n { l: 30 },\n ], \n mar: [\n { a: 30 },\n ], \n class: "language-js",\n code: `\n // You need to copy and paste this example\n\n\n import {Animator} from "../layout/animator.js";\n import {Text} from "../layout/text.js";\n import {Modal} from "../layout/modal2025.js";\n import {Stack} from "../layout/stack.js";\n import {Image} from "../layout/image.js";\n import {FlexRow} from "../layout/flexrow.js";\n import {Button} from "../layout/button.js";\n import {Spacer} from "../layout/spacer.js";\n import {Wrapper} from "../layout/container.js";\n \n \n let firstLong = "Apple today announced that the company has surpassed a 60 percent reduction in its global greenhouse gas emissions compared to 2015 levels, as part of its Apple 2030 goal to become carbon neutral across its entire footprint in the next five years. The company achieved several other major environmental milestones, including the use of 99 percent recycled rare earth elements in all magnets and 99 percent recycled cobalt in all Apple-designed batteries.1 Apple shared this and other progress in its annual Environmental Progress Report, published today.\n “We’re incredibly proud of the progress we’re making toward Apple 2030, which touches every part of our business,” said Lisa Jackson, Apple’s vice president of Environment, Policy, and Social Initiatives. “Today, we’re using more clean energy and recycled materials to make our products than ever before, we’re preserving water and preventing waste around the world, and we’re investing big in nature. As we get closer to 2030, the work gets even harder — and we’re meeting the challenge with innovation, collaboration, and urgency.\n Apple’s 2030 strategy prioritizes cutting greenhouse gas emissions by 75 percent compared with its 2015 baseline year, before applying high-quality carbon credits to balance the remaining emissions. Last year, Apple’s comprehensive efforts to reduce its carbon footprint — including the continued transition of its supply chain to renewable electricity and designing products with more recycled materials — avoided an estimated 41 million metric tons of greenhouse gas emissions.";\n \n let elements = [\n new Stack()\n .setup({})\n .add([\n new Image("https://pbs.twimg.com/media/DwYvbCBVAAEKY_R.jpg").set({}),\n \n new FlexRow().set({aligns: "start"}).items([\n \n new Button("×")\n \n .set({\n fluidc: "S3",\n onTap: () => modal.close(),\n frame: { width: 80, height: 80 },\n color: "white",\n background: "none"\n }),\n \n new Spacer(true),\n ])\n ]),\n \n \n new Text("Samuel Suresh")\n .set({\n color: "#00ae56",\n font: "SF Pro Display",\n fluidc: "S2",\n pad: [{"tl": 20}]\n }),\n \n \n new Text("Studying Science and Business, Western Sydney University, class of 2022")\n .set({\n font: "Arial",\n fluidc: "S6",\n pad: [{"l": 20}]\n }),\n \n \n new Text(firstLong)\n .set({\n font: "Arial",\n fluidc: "S6",\n pad: [{"l": 20}]\n }), \n ];\n \n \n let wrapper = new Wrapper()\n .set({})\n .add(elements);\n \n \n let modal = new Modal();\n modal\n .set({\n width: "600px", \n background: "#469d73cc",\n close: true\n })\n .add([wrapper])\n .render("#res"); \n \n \n new Button("Wow")\n .set({\n fluidc: "S3",\n onTap: () => modal.show()\n })\n .render("#res");\n \n `\n })'):"row"===el.type?"img"===el.child?_this.code.push(_this.stor.flexRow(el.colat).image.code):_this.code.push(_this.stor.flexRow(el.colat).text.code):"cards"===el.type?(console.log("STORO"),console.log(_this.stor),ela=_lib_elementMapper_js__WEBPACK_IMPORTED_MODULE_0__.I.mapType({el,customOptions,i,storage:_this.stor}),_this.code.push(ela)):"wrap"===el.type?_this.code.push('new Wrapper().set({}).add([\n new Text("Hello").set({}),\n new Text("Hello").set({}),\n new Text("Hello").set({})\n ]) \n'):"responsive"===el.type?_this.code.push(_this.stor.complex.code):"free"===el.type||"nav"===el.type||"sideNav"===el.type||"dropdown"===el.type?(ela=_lib_elementMapper_js__WEBPACK_IMPORTED_MODULE_0__.I.mapType({el,customOptions,i,storage:_this.stor}),_this.code.push(ela.toCode()),_this.ready2Render.push(ela),ela=ela.render()):"code"==el.type?_this.code.push('new Code()\n .set({\n pad: [\n { l: 30 },\n ], \n mar: [\n { a: 30 },\n ], \n class: "language-js",\n code: \'new Text("Modality").set({ font: "Arial" })\'\n })\n '):(ela=_lib_elementMapper_js__WEBPACK_IMPORTED_MODULE_0__.I.mapType({el,customOptions,i,storage:_this.stor}),ela.toCode?_this.code.push(ela.toCode()):_this.code.push(ela),_this.ready2Render.push(ela),ela=eval(ela).render())},q,d,q,i=0;i<arr.length;i++)_loop();return this}},{key:"toTextArea",value:function(){var e=document.createElement("textarea");e.style.width=300,e.style.height=300,e.setAttribute("id","elements"),e.value=this.code.join(""),this.target="#elements";var t=document.createElement("pre"),r=document.createElement("code"),n=this.code.map((function(e){return"".concat(e,'.render("#mount"); \n \n')}));this.code=n,r.textContent=this.code,t.appendChild(r),t.setAttribute("class","nonLayout"),document.body.appendChild(t),document.body.appendChild(e);var i=document.createElement("pre");return i.style.marginTop="100px",i.style.overflow="scroll",this}},{key:"set",value:function set(obj){this.toTextArea(),document.querySelector("#elements").style.display="none",document.querySelector("pre").style.display="block",!1===obj.elements&&(document.querySelector(".nonLayout").style.display="none"),!1===obj.layout&&null!=document.querySelector("#layoutPre")&&(document.querySelector("#layoutPre").style.display="none");for(var i=0;i<this.code.length;i++){var sub=this.code[i];console.log("SUBO"),console.log(sub),eval("".concat(sub))}}}])}()},69:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function i(e,t){if(e){if("string"==typeof e)return o(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?o(e,t):void 0}}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function s(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,a(n.key),n)}}function a(e){var t=function(e){if("object"!=n(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=n(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==n(t)?t:t+""}function l(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(l=function(){return!!e})()}function c(e){return c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},c(e)}function u(e,t){return u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},u(e,t)}r.d(t,{m:()=>d});var d=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=function(e,t,r){return t=c(t),function(e,t){if(t&&("object"==n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,l()?Reflect.construct(t,r||[],c(e).constructor):t.apply(e,r))}(this,t)).res=document.createElement("div"),e.toggleWrap=document.createElement("div"),e.toggleWrap.style.zIndex=9999,e.toggleWrap.style.borderRadius="0.3rem",e.toggleWrap.style.height="40px",e.toggleWrap.style.cursor="pointer",e.toggleWrap.style.display="flex",e.toggleWrap.style.alignItems="center",e.toggleWrap.style.justifyContent="center",e.res.appendChild(e.toggleWrap),e.contentWrap=document.createElement("div"),e.contentWrap.style.position="absolute",e.contentWrap.style.background="#ecf0f1",e.contentWrap.style.borderRadius="0.3rem",e.contentWrap.style.boxShadow="0 2px 5px rgba(0, 0, 0, 0.15)",e.contentWrap.style.marginTop="10px",e.contentWrap.style.width="250px",e.contentWrap.style.display="none",e.res.appendChild(e.contentWrap),e.styles={},e.children=[],e.isExpanded=!1,e.toggleWrap.addEventListener("click",(function(){return e.toggle()})),e}return function(e,t){if("function"!=typeof t&&null!==t)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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&u(e,t)}(t,e),r=t,(a=[{key:"set",value:function(e){var t=this;this.options=e,e.title&&(this.toggleWrap.textContent=e.title),e.width&&(this.toggleWrap.style.width=e.width),e.contentWidth&&(this.contentWrap.style.width=e.contentWidth),e.background&&(this.contentWrap.style.backgroundColor=e.background),e.mar&&this.mar(e.mar);var r=function(){var r,n=window.matchMedia("(max-device-width: 415px)"),i=window.matchMedia("(max-width: ".concat(null!==(r=e.breakpoint)&&void 0!==r?r:"600px",")"));n.matches||i.matches?t.contentWrap.style.position="relative":t.contentWrap.style.position="absolute"};return window.addEventListener("resize",r),r(),this}},{key:"add",value:function(e){var t,r=this;if(!Array.isArray(e))throw new Error("The 'add' method expects an array of children.");if(e.forEach((function(e,t){if(0!==t){if(!(e.res instanceof HTMLElement))throw new Error("Each child must have a valid 'element' property that is an HTMLElement.");r.contentWrap.appendChild(e.res)}})),!this.options||!this.options.title){var n=e[0];n&&n.res&&this.toggleWrap.appendChild(n.res)}return(t=this.children).push.apply(t,function(e){return function(e){if(Array.isArray(e))return o(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||i(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(e)),this}},{key:"toggle",value:function(){this.isExpanded=!this.isExpanded,this.contentWrap.style.display=this.isExpanded?"block":"none"}},{key:"toCode",value:function(){var e=this,t=this.options?Object.entries(this.options).map((function(e){var t=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o,s,a=[],l=!0,c=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=o.call(r)).done)&&(a.push(n.value),a.length!==t);l=!0);}catch(e){c=!0,i=e}finally{try{if(!l&&null!=r.return&&(s=r.return(),Object(s)!==s))return}finally{if(c)throw i}}return a}}(e,t)||i(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(e,2),r=t[0],o=t[1];return"string"==typeof o?"".concat(r,': "').concat(o,'"'):"object"===n(o)?"".concat(r,": ").concat(JSON.stringify(o)):"".concat(r,": ").concat(o)})).join(",\n "):"",r=this.children.map((function(t,r){return t.toCode().flatMap((function(e){return e})).join("")+(r<e.children.length-1?",":"")})).join("");return["new Dropdown().set({\n ".concat(t,"\n}).add([\n ").concat(r,"\n])")]}},{key:"render",value:function(e){return e&&document.querySelector(e).appendChild(this.res),this.res}}])&&s(r.prototype,a),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,a}(r(762).y)},130:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,s(n.key),n)}}function s(e){var t=function(e){if("object"!=n(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=n(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==n(t)?t:t+""}function a(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(a=function(){return!!e})()}function l(e,t,r,n){var i=c(u(1&n?e.prototype:e),t,r);return 2&n&&"function"==typeof i?function(e){return i.apply(r,e)}:i}function c(){return c="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,r){var n=function(e,t){for(;!{}.hasOwnProperty.call(e,t)&&null!==(e=u(e)););return e}(e,t);if(n){var i=Object.getOwnPropertyDescriptor(n,t);return i.get?i.get.call(arguments.length<3?e:r):i.value}},c.apply(null,arguments)}function u(e){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},u(e)}function d(e,t){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},d(e,t)}r.d(t,{_:()=>h});var h=function(e){function t(e,r,i,o){var s;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(s=function(e,t,r){return t=u(t),function(e,t){if(t&&("object"==n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,a()?Reflect.construct(t,r||[],u(e).constructor):t.apply(e,r))}(this,t)).url=e,s.res=null,s.code=[],s}return function(e,t){if("function"!=typeof t&&null!==t)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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&d(e,t)}(t,e),r=t,s=[{key:"removeQuotesFromFirstWord",value:function(e){return e.replace(/"([^"]+)":/g,"$1:")}},{key:"setType",value:function(e){e.url;var t=e.type,r=e.mode;if(this.code=[],"exact"===t){var n='new Image("'.concat(this.url,'", "exact")');this.code.push(n)}else if("uncover"===t){var i='new Image("'.concat(this.url,'", "uncover")');this.code.push(i)}else this.code.push("new Image('".concat(this.url,"')"));return this.image(this.url,r,t),this}},{key:"flexOne",value:function(){return this.res.style.flex="1",this}},{key:"hand",value:function(){return this.res.style.cursor="hand",this}},{key:"setGridWithoutCode",value:function(){return this.res.style.border="1px solid white",this}},{key:"maxWidth",value:function(e){return this.res.style.maxWidth=e,this}},{key:"getHeight",value:function(){return this.res.height}},{key:"getWidth",value:function(){return this.res.width}},{key:"getType",value:function(){return"HTMLImageElement"}},{key:"toCode",value:function(){var e=this.options;this.res.style.border&&(e.border=this.res.style.border);var t=Object.fromEntries(Object.entries(e).filter((function(e){var t=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o,s,a=[],l=!0,c=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=o.call(r)).done)&&(a.push(n.value),a.length!==t);l=!0);}catch(e){c=!0,i=e}finally{try{if(!l&&null!=r.return&&(s=r.return(),Object(s)!==s))return}finally{if(c)throw i}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return i(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?i(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(e,2);return t[0],null!==t[1]})));return["new Image().set(".concat(JSON.stringify(t,null,2).replace(/"(\w+)"\s*:/g,"$1:"),")")]}},{key:"formatObj",value:function(e){return JSON.stringify(e,null,2).replace(/"(\w+)"\s*:/g,"$1:")}},{key:"set",value:function(e){var r="";this.options=e;var n=e.isFull;if(n?this.image(e.url,"exact",n,"a"):this.setup(),e.url&&this.res.setAttribute("src",e.url),"exact"===n?'new Image("'.concat(this.url,'", "exact")'):"uncover"===n&&'new Image("'.concat(this.url,'", "uncover")'),e.vtn&&(this.res.style.viewTransitionName=e.vtn),this.vtn=e.vtn,e.minHeight&&(this.res.style.minHeight=e.minHeight),e.index&&l(t,"setIndex",this,3)([e.index]),e.index&&(this.index=e.index),e.index&&(r+='\n index: "'.concat(e.index,'",')),e.centerSelf&&(this.res.style.marginRight="auto",this.res.style.marginLeft="auto"),e.fitContent&&(this.res.style.width="100%",this.res.style.height="100%",this.res.style.marginRight="auto",this.res.style.marginTop="auto",this.res.style.objectFit="cover"),e.objectFit&&(this.res.style.objectFit=e.objectFit),e.objectFit&&(r+='\n objectFit: "'.concat(e.objectFit,'",')),e.as&&this.as(e.as),e.onScroll&&this.onScroll(e.onScroll),e.class&&this.res.setAttribute("class",e.class),e.gpos&&(this.gposObject=e.gpos),e.gpos&&(this.res.style.gridColumn=e.gpos.col,this.res.style.gridRow=e.gpos.row,r+="\n gpos: ".concat(this.removeQuotesFromFirstWord(JSON.stringify(e.gpos)),", ")),e.filtera){var i;i=Array.isArray(e.filtera)?u.filtera.filter((function(e){return"filter"===e.op.name}))[0]:e.filtera;var o=this.removeQuotesFromFirstWord(JSON.stringify(i));r+="\n filtera: ".concat(o,", \n")}if(e.keySet&&this.keySet(e.keySet),e.stype&&this.setType(e.stype),e.isBackground&&(this.isBackground=e.isBackground),e.zIndex&&(this.res.style.zIndex=e.zIndex),e.zIndex&&(r+='\n zIndex: "'.concat(e.zIndex,'", \n')),e.id&&this.res.setAttribute("id",e.id),e.id&&(r+=' id: "'.concat(e.id,'", \n')),this.id=e.id,e.area&&this.setArea(e.area),e.area&&(r+='area: "'.concat(e.area,'", \n')),e.opacity&&(this.res.style.opacity=e.opacity),e.width&&(this.res.style.width=e.width),e.width&&(r+='width: "'.concat(e.width,'", ')),e.maxWidth&&(this.res.style.maxWidth=e.maxWidth),e.maxWidth&&(r+='maxWidth: "'.concat(e.maxWidth,'", ')),e.height&&(this.res.style.height=e.height),e.height&&(r+='height: "'.concat(e.height,'", ')),e.multimargin&&this.makeMultiMargin(e.multimargin),e.multimargin&&(r+="multimargin: [ \n"),e.arrayMargin&&this.arrayMargin(e.arrayMargin.sides,e.arrayMargin.value),e.multimargin){for(var s=0;s<e.multimargin.length;s++){var a=e.multimargin[s];r+='{side: "'.concat(a.side,'", value: "').concat(a.value,'"}, \n')}r+="], \n"}if(e.maxWidth&&this.maxWidth(e.maxWidth),e.maxWidth&&(r+='maxWidth: "'.concat(e.maxWidth,'", \n')),e.radius&&this.cornerRadius(e.radius),e.radius&&(r+='radius: "'.concat(e.radius,'", \n')),e.marginOp){var c=this.removeQuotesFromFirstWord(JSON.stringify(e.marginOp));r+="\n marginOp: ".concat(c,",")}e.clipPath&&this.clipPath(e.clipPath),e.clipPath&&(r+='clipPath: "'.concat(e.clipPath,'", \n'));var u=e;if(u.stroke||u.gradient||u.span||u.backgroundOp||u.layout||u.marginOp||u.shadow||u.filtera||u.animation){u.gradient,u.gradient&&(this.globalGradient=u.gradient.op.gradient),u.stroke&&l(t,"setAny",this,3)([{globalBlast:"".concat(u.stroke.op.width," ").concat(u.stroke.op.color)}]);var d=[u.stroke,u.gradient,u.animation,u.span,u.backgroundOp,u.layout,u.marginOp,u.shadow,u.filtera,u.animation];d=d.filter((function(e){return null!=e}));var h=[];for(s=0;s<d.length;s++)h.push({range:d[s].range,log:d[s].op.name,target:d[s].target,op:d[s].op});this.chainReact(h,this.options.id)}if(u.shadow){var p=u.shadow,f=this.removeQuotesFromFirstWord(JSON.stringify(p));r+="\n shadow: ".concat(f,",")}if(u.animation){var y=u.animation,m=this.removeQuotesFromFirstWord(JSON.stringify(y));r+="\n animation: ".concat(m,",")}var v="\n .set({".concat(r,"}) \n \n");return Object.keys(e).length>0?this.code.push(v):this.code.push(","),this}},{key:"setFilter",value:function(e){var t=[],r=[e];r=r.filter((function(e){return null!=e}));for(var n=0;n<r.length;n++)t.push({range:r[n].range,log:r[n].op.name,target:r[n].target})}},{key:"makeMultiMargin",value:function(e){for(var t=0;t<e.length;t++)"left"===e[t].side&&(this.res.style.marginLeft=e[t].value),"right"===e[t].side&&(this.res.style.marginRight=e[t].value),"top"===e[t].side&&(this.res.style.marginTop=e[t].value),"bottom"===e[t].side&&(this.res.style.marginBottom=e[t].value);return this}},{key:"setID",value:function(e){return this.res.setAttribute("id",e),this}},{key:"square",value:function(){return this.res.style.width="30%",this.res.style.paddingBottom="30%",this}},{key:"opacity",value:function(e){return this.res.style.opacity="".concat(e),this}},{key:"rowCol",value:function(e,t){return this.res.style.gridRow=e,this.res.style.gridColumn=t,this}},{key:"setArea",value:function(e){return this.res.style.gridArea=e,this}},{key:"setGridRow",value:function(e){return this.res.style.gridRow=e,this}},{key:"setGridCol",value:function(e){return this.res.style.gridColumn=e,this}},{key:"setGrid",value:function(){return this.res.style.gridRow="span 2",this.res.style.gridColumn="span 3",this}},{key:"transform",value:function(e){return this.res.style.transform=e,this}},{key:"offset",value:function(){return this.res.style.marginLeft="-60px",this}},{key:"offseta",value:function(){return this.res.style.marginLeft="90px",this.res.style.marginTop="-30px",this}},{key:"borderAround",value:function(e){return this.res.style.border=e,this}},{key:"setClass",value:function(e){return this.res.setAttribute("class",e),this}},{key:"scale",value:function(e){var t=this;return this.res.style.width,this.res.style.transition="0.5s all",this.res.addEventListener("mouseover",(function(){t.res.style.width,t.res.style.transform="scale(1.04)"})),this.res.addEventListener("mouseout",(function(){t.res.style.width,t.res.style.transform="scale(1.0)"})),this}},{key:"onTap",value:function(e){return this.res.addEventListener("click",e),this}},{key:"border",value:function(e){return this.res.style.borderTopLeftRadius="16px",this.res.style.borderTopRightRadius="16px",this}},{key:"allRound",value:function(e){return this.res.style.borderRadius=e,this}},{key:"mobileWidth",value:function(){return window.matchMedia("(max-device-width: 415px)").matches&&(this.res.style.width="120%"),this}},{key:"image",value:function(e,t,r,n,i){var o=window.matchMedia("(max-device-width: 415px)"),s=document.createElement("div");return s.style.viewTransitionName=n,s.style.width="100%",s.style.height="200",i&&(s.style.gridColumn=i.gridColumn,s.style.gridRow=i.gridRow),o.matches&&(s.style.height="500"),s.style.backgroundImage="url(".concat(e,")"),s.style.backgroundPosition="center center",s.style.backgroundRepeat="no-repeat",s.style.backgroundSize="cover","uncover"===r&&(s.style.backgroundSize="contain"),"contain"===t&&(s.style.backgroundSize="contain"),this.res=s,this}},{key:"arrayPadding",value:function(e,t){return e.includes("left")&&(this.res.style.paddingLeft=t),e.includes("right")&&(this.res.style.paddingRight=t),e.includes("top")&&(this.res.style.paddingTop=t),e.includes("bottom")&&(this.res.style.paddingBottom=t),this}},{key:"arrayMargin",value:function(e,t){return e.includes("left")&&(this.res.style.marginLeft=t),e.includes("right")&&(this.res.style.marginRight=t),e.includes("top")&&(this.res.style.marginTop=t),e.includes("bottom")&&(this.res.style.marginBottom=t),this}},{key:"setup",value:function(){var e=document.createElement("img");return e.style.width="100%",e.src=this.url,this.res=e,this}},{key:"autoW",value:function(){return this.res.style.width="initial",this}},{key:"float",value:function(e){return this.res.style.float="".concat(e),this}},{key:"fillAvailable",value:function(){return this.res.style.height="-webkit-fill-available",this}},{key:"grayscale",value:function(e){return this.res.style.filter="grayscale(".concat(e,"%)"),this}},{key:"flex",value:function(e){return this.res.style.flex=1,this}},{key:"height",value:function(e){return this.res.style.height=e,this.res.style.width="auto",this}},{key:"expand",value:function(e){var t=this,r=function(){var r,n;if(window.matchMedia("(min-width: ".concat(e.at,")")).matches){t.res.style.width="".concat(e.width);var i=window.innerWidth/2-(n=r=e.width,(r.includes("%")||r.includes("px"))&&(n=n.substr(0,2)),(r.includes("%")?Number(n/100*window.innerWidth):r.includes("px")?Number(n):void 0)/2);t.res.style.marginLeft="".concat(i,"px")}else t.res.style.width="100%",t.res.style.marginLeft="0px";window.matchMedia("(max-device-width: 415px)").matches&&(t.res.style.width="100%",t.res.style.marginLeft="0px")};return r(),window.addEventListener("resize",r),this}},{key:"width",value:function(e){return this.res.style.width=e,this.res.style.height="auto",this}},{key:"toBack",value:function(){return this.res.style.zIndex="-1",this}},{key:"margin",value:function(e,t,r,n){return(e||t||r||n)&&(this.res.style.marginLeft=e,this.res.style.marginTop=t,this.res.style.marginRight=r,this.res.style.marginBottom=n),t||r||n||0===t&&0===r&&0===n||(this.res.style.margin=e),this}},{key:"padding",value:function(e){return this.res.style.padding=e,this}},{key:"size",value:function(e,t){return e&&t?(this.res.style.width=e,this.res.style.height=t):(this.res.style.width=e,this.res.style.height=e),this}},{key:"frame",value:function(e){var t=e.width,r=e.height;return t&&r?(this.res.style.width=t,this.res.style.height=r):(this.res.style.width=t,this.res.style.height=t),this}},{key:"RSize",value:function(e,t,r){var n=window.matchMedia("(max-device-width: 420px)");return e&&t?(this.res.style.width=n.matches?e*r:e,this.res.style.height=n.matches?t*r:t):(this.res.style.width=n.matches?e*r:e,this.res.style.height=n.matches?e*r:e),this}},{key:"shadow",value:function(e){return"mild"===e.type?this.res.style.boxShadow="0px 3px 15px rgba(0,0,0,0.2)":this.res.style.boxShadow="".concat(e.x,"px ").concat(e.y,"px ").concat(e.radius,"px ").concat(e.color),this}},{key:"clipShape",value:function(e){return this.res.style.borderRadius="50%",this}},{key:"cornerRadius",value:function(e){return this.res.style.borderRadius=e,this}},{key:"clipPath",value:function(e){this.res.style.clipPath='path("'.concat(e,'")');var t=document.createElementNS("http://www.w3.org/2000/svg","svg");return t.style.display="block",t.style.width="100%",t.style.height="100%",t.style.overflow="visible",this}},{key:"render",value:function(e){var t=this.res;if(!e)return t;document.querySelector(e).appendChild(t)}}],s&&o(r.prototype,s),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,s}(r(762).y)},148:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function i(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,o(n.key),n)}}function o(e){var t=function(e){if("object"!=n(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=n(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==n(t)?t:t+""}function s(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(s=function(){return!!e})()}function a(e){return a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},a(e)}function l(e,t){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},l(e,t)}r.d(t,{l:()=>c});var c=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=function(e,t,r){return t=a(t),function(e,t){if(t&&("object"==n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,s()?Reflect.construct(t,r||[],a(e).constructor):t.apply(e,r))}(this,t)).el=null,e}return function(e,t){if("function"!=typeof t&&null!==t)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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&l(e,t)}(t,e),r=t,(o=[{key:"set",value:function(e){this.options=e;var t=document.createElement("div"),r=document.createElement("label");r.style.position="relative",r.style.display="block";var n=document.createTextNode(e.title);r.appendChild(n),r.style.opacity=0;var i=document.createElement("input");return"textarea"===e.type&&(i=document.createElement("textarea")),i.style.position="relative",i.placeholder=e.title,i.style.fontSize="1rem",i.style.padding=".4rem .75rem",t.appendChild(r),t.appendChild(i),this.res=t,e.mar&&this.mar(e.mar),e.pad&&this.pad(e.pad),i.addEventListener("focus",(function(){r.style.transition="transform ease 0.2s",r.style.transform="scale(0.80)",r.style.textTransform="uppercase",r.style.transformOrigin="left top",r.style.fontWeight="bold",i.placeholder="",r.style.opacity="1.0",e.font&&(r.style.fontFamily=e.font),e.color&&(r.style.color=e.color),e.exact&&(r.style.fontSize=e.exact)})),i.addEventListener("focusout",(function(){r.style.transform="scale(1.0)",i.placeholder=e.title,r.style.opacity="0.0"})),e.name&&i.setAttribute("name",e.name),window.matchMedia("(max-device-width: 415px)").matches&&(i.style.width="100%",t.style.width="100%"),i.style.fontSize="1rem",this.el=t,this}},{key:"getValue",value:function(){return this.el.children[1].value}},{key:"toCode",value:function(){var e=JSON.stringify(this.options,null,4);return e=e.replace(/"(\w+)"(?=\s*:)/g,"$1"),["new FloatingInput().set(".concat(e,")")]}},{key:"margin",value:function(e){return this.el.style.margin=e,this}},{key:"render",value:function(e){if(!e)return this.el;document.querySelector(e).appendChild(this.el)}}])&&i(r.prototype,o),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,o}(r(762).y);window.FloatingInput=c},207:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function i(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,o(n.key),n)}}function o(e){var t=function(e){if("object"!=n(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=n(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==n(t)?t:t+""}function s(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(s=function(){return!!e})()}function a(e){return a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},a(e)}function l(e,t){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},l(e,t)}r.d(t,{$:()=>c});var c=function(e){function t(e,r){var i;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(i=function(e,t,r){return t=a(t),function(e,t){if(t&&("object"==n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,s()?Reflect.construct(t,r||[],a(e).constructor):t.apply(e,r))}(this,t)).text=e,i.res=null,i.val=r,i.setup(),i}return function(e,t){if("function"!=typeof t&&null!==t)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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&l(e,t)}(t,e),r=t,o=[{key:"setup",value:function(e){return this}},{key:"hover",value:function(e){var t=this;return this.prevColor=this.res.style.backgroundColor,this.foreColor=this.res.style.color,e.animation&&(this.res.style.transition="".concat(e.animation,"s ease-in-out"),this.res.style.transionProperty="background, color"),this.res.onmouseout=function(){t.res.style.backgroundColor="".concat(t.prevColor),t.res.style.color="".concat(t.foreColor)},this.res.onmouseover=function(){t.res.style.backgroundColor=e.background,t.res.style.color=e.color},this}},{key:"set",value:function(e){this.options=e;var t=document.createElement("button");if(t.style.background="transparent",e.url){var r=document.createElement("img");r.setAttribute("src",e.url),r.style.width=e.frame.width,r.style.height=e.frame.height,t.appendChild(r)}else{var n=document.createTextNode(this.text.replace("$",this.val));t.appendChild(n)}return this.res=t,e&&"submit"===e.type&&t.setAttribute("type",e.type),this.border("none"),this.res.style.display="block",e.background&&this.background(e.background),e.padding&&this.padding(e.padding),e.margin&&this.margin(e.margin),e.mar&&this.mar(e.mar),e.pad&&this.pad(e.pad),e.centered&&(this.res.style.marginRight="auto",this.res.style.marginLeft="auto",this.res.style.backgroundColor="black"),e.border&&this.border(e.border),e.radius&&this.borderRadius(e.radius),e.class&&this.setClass(e.class),e.color&&this.color(e.color),e.auto&&this.auto(),e.weight&&(this.res.style.fontWeight=e.weight),e.fluidc&&this.fluidButtonCopy(e.fluidc),e.fluidc&&'\n fluidc: "'.concat(e.fluidc,'",'),e.onTap&&this.onTap(e.onTap),e.frame&&this.frame(e.frame),e.frame&&'\n frame: "'.concat(e.frame,'",'),e.arrpad&&this.arrayPadding(e.arrpad.sides,e.arrpad.value),e.arrpad&&'\n arrpad: {sides: ["'.concat(e.arrpad.sides,'"], value: "').concat(e.arrpad.value,'"},'),e.arrayMargin&&this.arrayMargin(e.arrayMargin.sides,e.arrayMargin.value),e.arrayMargin&&'\n arrayMargin: {sides: ["'.concat(e.arrayMargin.sides,'"], value: "').concat(e.arrayMargin.value,'"},'),e.keySet&&this.keySet(e.keySet),this}},{key:"arrayPadding",value:function(e,t){return e.includes("left")&&(this.res.style.paddingLeft=t),e.includes("right")&&(this.res.style.paddingRight=t),e.includes("top")&&(this.res.style.paddingTop=t),e.includes("bottom")&&(this.res.style.paddingBottom=t),e.includes("all")&&(this.res.style.padding=t),t||(this.res.style.paddingBottom=e),this}},{key:"arrayMargin",value:function(e,t){return t||(this.res.style.marginLeft="".concat(e[0],"px"),this.res.style.marginTop="".concat(e[1],"px"),this.res.style.marginRight="".concat(e[2],"px"),this.res.style.marginBottom="".concat(e[3],"px")),e.includes("left")&&(this.res.style.marginLeft=t),e.includes("right")&&(this.res.style.marginRight=t),e.includes("top")&&(this.res.style.marginTop=t),e.includes("bottom")&&(this.res.style.marginBottom=t),e.includes("all")&&(this.res.style.margin=t),t||(this.res.style.marginBottom=e),this}},{key:"fluidButtonCopy",value:function(e){if(e instanceof Object){this.prevStylex=this.res.style,this.res=document.createElement("button"),this.res.style.cssText=this.prevStylex.cssText;var t=document.createTextNode(this.text);return this.res.appendChild(t),this.res.style.fontSize=e.exact,this}if("S1"===e){this.prevStylex=this.res.style,this.res=document.createElement("button"),this.res.style.cssText=this.prevStylex.cssText;var r=document.createTextNode(this.text);this.res.appendChild(r),this.res.style.fontSize="calc(1.625rem + 5.075vw)"}if("S2"===e){this.prevStylex=this.res.style,this.res=document.createElement("button"),this.res.style.cssText=this.prevStylex.cssText;var n=document.createTextNode(this.text);this.res.appendChild(n),this.res.style.fontSize="calc(1.500rem + 4.3vw)"}if("S3"===e){this.prevStylex=this.res.style,this.res=document.createElement("button"),this.res.style.cssText=this.prevStylex.cssText;var i=document.createTextNode(this.text);this.res.appendChild(i),this.res.style.fontSize="calc(1.375rem + 3.525vw)"}if("S4"===e){this.prevStylex=this.res.style,this.res=document.createElement("button"),this.res.style.cssText=this.prevStylex.cssText;var o=document.createTextNode(this.text);this.res.appendChild(o),this.res.style.fontSize="calc(1.250rem + 2.75vw)"}if("S5"===e){this.prevStylex=this.res.style,this.res=document.createElement("button"),this.res.style.cssText=this.prevStylex.cssText;var s=document.createTextNode(this.text);this.res.appendChild(s),this.res.style.fontSize="calc(1.125rem + 1.975vw)"}return"S6"===e&&(this.res.style.fontSize="calc(1rem + 0.5vw)"),this}},{key:"setClass",value:function(e){return this.res.setAttribute("class",e),this}},{key:"color",value:function(e){return this.res.style.color=e,this}},{key:"background",value:function(e){return this.res.style.background=e,this}},{key:"width",value:function(e){return this.res.style.width=e,this}},{key:"borderRadius",value:function(e){return this.res.style.borderRadius=e,this}},{key:"padding",value:function(e,t,r,n){return e&&t&&r&&n?(this.res.style.paddingLeft=e,this.res.style.paddingTop=t,this.res.style.paddingRight=r,this.res.style.paddingBottom=n):this.res.style.padding=e,this}},{key:"margin",value:function(e,t,r,n){return e&&t&&r&&n?(this.res.style.marginLeft=e,this.res.style.marginTop=t,this.res.style.marginRight=r,this.res.style.marginBottom=n):this.res.style.margin=e,this}},{key:"auto",value:function(){var e=this,t=function(){window.matchMedia("(max-device-width: 415px)").matches?e.res.style.fontSize="2.2rem":e.res.style.fontSize="1rem"};return t(),window.addEventListener("resize",t),this}},{key:"large",value:function(){var e=this,t=function(){window.matchMedia("(max-device-width: 415px)").matches?(alert("WOW"),e.res.style.fontSize="6rem"):e.res.style.fontSize="3rem"};return t(),window.addEventListener("resize",t),this}},{key:"border",value:function(e,t){return"none"===e&&(this.res.style.border="none"),this.res.style.border="".concat(e," solid ").concat(t,"px"),this}},{key:"frame",value:function(e){return this.res.style.width=e.width,this.res.style.height=e.height,this}},{key:"updating",value:function(e,t){var r=this.res,n=this.text;return Object.defineProperty(e,t,{set:function(e){var t=document.createTextNode(n.replace("$",e));r.replaceChild(t,r.childNodes[0])}}),this}},{key:"onTap",value:function(e){return this.res.addEventListener("click",e),this}},{key:"toCode",value:function(){var e=JSON.stringify(this.options,(function(e,t){return"function"==typeof t?t.toString():t}),4).replace(/"(\w+)":/g,"$1:").replace(/"(\(\)\s*=>\s*{[^}]*})"/g,"$1").replace(/\\n/g,"").replace(/\\"/g,'"');return['new Button("'.concat(this.text,'").set(').concat(e,")")]}},{key:"render",value:function(e){if(!e)return this.res;document.querySelector(e).appendChild(this.res)}}],o&&i(r.prototype,o),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,o}(r(762).y)},216:(e,t,r)=>{function n(e,t){return n=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},n(e,t)}function i(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(i=function(){return!!e})()}function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}function s(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,a(n.key),n)}}function a(e){var t=function(e){if("object"!=o(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=o(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==o(t)?t:t+""}r.d(t,{T:()=>l});var l=function(){return e=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.res=null,this.currentItem=""},t=[{key:"set",value:function(e){var t=this,r=e;this.options=e;var n=document.createElement("input");n.setAttribute("list","dlCities"),n.setAttribute("id","my");var i=e.data,o=0,s=i.length,a=document.createElement("datalist");for(a.id="dlCities",o=0;o<s;o+=1){var l=document.createElement("option");l.value=i[o],a.appendChild(l)}return n.appendChild(a),n.addEventListener("change",(function(){var e=document.querySelector("#my").value;console.log(e),t.currentItem=e})),n.setAttribute("placeholder","Type value"),n.style.padding=".4rem .75rem",n.style.fontSize="1rem",this.res=n,this.responsive(),r.arrayPadding&&this.arrayPadding(r.arrayPadding.sides,r.arrayPadding.value),r.arrayMargin&&this.arrayMargin(r.arrayMargin.sides,r.arrayMargin.value),r.pad&&this.pad(r.pad),r.mar&&this.mar(r.mar),this}},{key:"toCode",value:function(){var e=JSON.stringify(this.options,null,4);return["new DataList().set(".concat(e,")")]}},{key:"getValue",value:function(){return this.res.value}},{key:"arrayPadding",value:function(e,t){return console.log(e),e.includes("left")&&(this.res.style.paddingLeft=t),e.includes("right")&&(this.res.style.paddingRight=t),e.includes("top")&&(this.res.style.paddingTop=t),e.includes("bottom")&&(this.res.style.paddingBottom=t),e.includes("all")&&(this.res.style.padding=t),this}},{key:"arrayMargin",value:function(e,t){return console.log(e),e.includes("left")&&(this.res.style.marginLeft=t),e.includes("right")&&(this.res.style.marginRight=t),e.includes("top")&&(this.res.style.marginTop=t),e.includes("bottom")&&(this.res.style.marginBottom=t),e.includes("all")&&(this.res.style.margin=t),this}},{key:"margin",value:function(e){return this.res.style.margin=e,this}},{key:"responsive",value:function(){return window.matchMedia("(max-device-width: 415px)").matches&&(this.res.style.width="100%"),this}},{key:"render",value:function(e){if(!e)return this.res;document.querySelector(e).appendChild(this.res)}}],t&&s(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}(),c=l;l=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(e,t,r){if(i())return Reflect.construct.apply(null,arguments);var o=[null];o.push.apply(o,t);var s=new(e.bind.apply(e,o));return r&&n(s,r.prototype),s}(c,t)},window.DataList=l},219:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function i(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,o(n.key),n)}}function o(e){var t=function(e){if("object"!=n(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=n(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==n(t)?t:t+""}function s(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(s=function(){return!!e})()}function a(e,t,r,n){var i=l(c(1&n?e.prototype:e),t,r);return 2&n&&"function"==typeof i?function(e){return i.apply(r,e)}:i}function l(){return l="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,r){var n=function(e,t){for(;!{}.hasOwnProperty.call(e,t)&&null!==(e=c(e)););return e}(e,t);if(n){var i=Object.getOwnPropertyDescriptor(n,t);return i.get?i.get.call(arguments.length<3?e:r):i.value}},l.apply(null,arguments)}function c(e){return c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},c(e)}function u(e,t){return u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},u(e,t)}r.d(t,{N:()=>d});var d=function(e){function t(e,r,i){var o;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(o=function(e,t,r){return t=c(t),function(e,t){if(t&&("object"==n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,s()?Reflect.construct(t,r||[],c(e).constructor):t.apply(e,r))}(this,t)).link=r,o.text=e,o.code=[],o.css=[],o.elCSS=[],o.html=[],o.res=null,o.stopEM=i,o.setup(),o.inlineBlock(),o}return function(e,t){if("function"!=typeof t&&null!==t)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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&u(e,t)}(t,e),r=t,(o=[{key:"toCSS",value:function(){return this.css}},{key:"toHTMLA",value:function(){return this.html}},{key:"toElCSS",value:function(){return this.preffersId?this.elCSS.unshift(this.res.id+" { \n"):this.elCSS.unshift("."+this.class+" { \n"),this.elCSS.push(" } \n \n"),this.elCSS}},{key:"getType",value:function(){return"HTMLAnchorElement"}},{key:"toCode",value:function(){return this.code}},{key:"setArea",value:function(e){return this.res.style.gridArea=e,this}},{key:"setup",value:function(){var e=document.createElement("a");e.setAttribute("href",this.link),e.style.textDecoration="none",e.style.color="black",e.style.textAlign="center",e.style.fontFamily="Arial";var t=document.createTextNode(this.text);return e.appendChild(t),this.res=e,!1===this.stopEM&&this.em(1),this}},{key:"appendImageAsChild",value:function(e,t){var r=document.createElement("a");e.options.vtn&&(r.style.viewTransitionName=e.options.vtn),r.setAttribute("href",e.options.url);var n=document.createElement("img");return e.options&&(n.style.width=e.options.size,e.options.radius&&(n.style.borderRadius=e.options.radius),n.setAttribute("src",e.options.img),r.appendChild(n)),this.res=r,t&&(this.res.style.marginLeft=t),this}},{key:"addIcon",value:function(e){var t=document.createElement("img");return t.style.width="20px",t.style.height="auto",t.style.marginLeft=e.padding?e.padding:"10px",t.setAttribute("src",e.url),this.res.appendChild(t),this}},{key:"removeQuotesFromFirstWord",value:function(e){if(e)return e.replace(/"([^"]+)":/g,"$1:")}},{key:"set",value:function(e){this.elCSS.push("text-decoration: none; \n"),this.options=e;var r="";e.id&&this.res.setAttribute("id",e.id),e.id&&a(t,"setID",this,3)([e.id]),e.pad&&this.pad(e.pad);var n=this.removeQuotesFromFirstWord(JSON.stringify(e.pad));if(e.pad&&(r+="\n pad: ".concat(n,",")),e.preffersId&&(this.preffersId=e.preffersId),null!=e.preffersId&&(r+="\n preffersId: ".concat(e.preffersId,",")),e.class&&a(t,"setClass",this,3)([e.class]),e.class&&(r+='\n class: "'.concat(e.class,'",')),e.borderObj){this.res.style.border="".concat(e.borderObj.width," solid ").concat(e.borderObj.color),this.res.style.borderRadius="".concat(e.borderObj.radius);var i=this.removeQuotesFromFirstWord(JSON.stringify(e.borderObj));r+="\n borderObj: ".concat(i,",")}if(!1===this.options.preffersId?this.html.push('<a class="'.concat(e.class,'" href="#hello">').concat(e.text,"</a> \n \n")):e.id&&this.html.push('<a id="'.concat(e.id.substr(1),'" href="#hello">').concat(e.text,"</a> \n \n")),null!=e.blastData){var o=this.removeQuotesFromFirstWord(JSON.stringify(e.blastData));a(t,"setAny",this,3)([{globalBlast:"1px ".concat(e.blastData.color)}]),e.blastData&&(r+="\n blastData: ".concat(o,","))}e.nowrap&&(this.res.style.whiteSpace="nowrap"),e.font&&this.font(e.font),e.font&&(r+='\n font: "'.concat(e.font,'",')),e.font&&this.elCSS.push('font-family: "'.concat(e.font,'"; \n')),e.fluidc&&this.fluidCopy(e.fluidc),e.fluidc&&(r+='\n fluidc: "'.concat(e.fluidc,'",')),e.size&&this.fluidCopy(e.size),e.size&&(r+='\n size: "'.concat(e.size,'",')),"S6"===e.fluidc?e.fluidc&&this.elCSS.push("font-size: calc(1rem + 1.075vw); \n"):e.fluidc&&this.elCSS.push("font-size: calc(1.625rem + 5.075vw); \n"),e.clampc&&this.clampCopy(e.clampc),this.options.id&&(r+='\n id: "'.concat(this.options.id,'",')),e.align&&this.leftAlign(),e.align&&(r+='\n align: "'.concat(e.align,'",')),e.type&&(this.res.style.display="block"),e.color&&this.color(e.color),e.color&&(r+='\n color: "'.concat(e.color,'",')),e.color&&this.elCSS.push('color: "'.concat(e.color,'"; \n')),e.background&&this.background(e.background);var s=this.removeQuotesFromFirstWord(JSON.stringify(e.background));e.background&&(r+="\n background: ".concat(s,",")),e.hover&&this.hover(e.hover);var l=this.removeQuotesFromFirstWord(JSON.stringify(e.hover));if(e.hover&&(r+="\n hover: ".concat(l,",")),e.weight&&(this.res.style.fontWeight=e.weight),e.blast&&(this.blastData=e.blast),e.bold&&(this.res.style.fontWeight="bold"),e.bold&&(r+="\n bold: ".concat(e.bold,",")),e.block&&this.toBlock(),e.block&&(r+="\n block: ".concat(e.block,",")),e.radius&&this.radius(e.radius),e.radius&&(r+='\n radius: "'.concat(e.radius,'",')),e.width&&this.width(e.width),e.width&&(r+='\n width: "'.concat(e.width,'",')),e.arrayPadding){var c=e.arrayPadding.sides.map((function(e){return'"'.concat(e,'"')})).join(", ");e.arrayPadding&&this.arrayPadding(e.arrayPadding.sides,e.arrayPadding.value),e.arrayPadding&&(r+="\n arrayPadding: {sides: [".concat(c,'], value: "').concat(e.arrayPadding.value,'"},'))}if(e.arrayMargin&&this.arrayMargin(e.arrayMargin.sides,e.arrayMargin.value),e.arrayMargin&&(r+="\n arrayMargin: {sides: [".concat(e.arrayMargin.sides.map((function(e){return'"'.concat(e,'", ')})),'], value: "').concat(e.arrayMargin.value,'"},')),e.maxWidth&&this.maxWidth(e.maxWidth),e.url&&this.res.setAttribute("href",e.url),r+='\n url: "'.concat(e.url,'",'),e.text&&(this.res.textContent=e.text),r+='\n text: "'.concat(e.text,'",'),e.data){e.data&&this.appendImageAsChild(e.data,"20px");var u=this.removeQuotesFromFirstWord(JSON.stringify(e.data));e.data&&(r+="\n data: ".concat(u))}if(e.icon){this.addIcon(e.icon);var d=this.removeQuotesFromFirstWord(JSON.stringify(e.icon));r+="\n icon: ".concat(d,",")}if(e.shadow){var h=e.shadow,p=this.removeQuotesFromFirstWord(JSON.stringify(h));r+="\n shadow: ".concat(p,",")}if(e.stroke){var f=this.removeQuotesFromFirstWord(JSON.stringify(e.stroke));e.stroke&&(r+="\n stroke: ".concat(f,","))}if(e.backgroundOp){var y=this.removeQuotesFromFirstWord(JSON.stringify(e.backgroundOp));r+="\n backgroundOp: ".concat(y,",")}if(e.marginOp){var m=this.removeQuotesFromFirstWord(JSON.stringify(e.marginOp));r+="\n marginOp: ".concat(m,",")}if(e.gradient){var v=this.removeQuotesFromFirstWord(JSON.stringify(e.gradient));r+="\n gradient: ".concat(v,",")}if(e.animation){var b=this.removeQuotesFromFirstWord(JSON.stringify(e.animation));r+="\n animation: ".concat(b,",")}if(e.transform){var g=this.removeQuotesFromFirstWord(JSON.stringify(e.transform));r+="\n transform: ".concat(g,",")}var w="new Link().set({".concat(r,"}) \n");this.code.push(w),e.color&&this.color(e.color),e.rounded&&this.round(),e.transform&&e.transform.transform?this.reactOnTransform(e.transform):this.reactOnTransform(e);var k=[],x=[e.border,e.gradient,e.animation,e.span,e.shadow,e.backgroundOp,e.animation];if((x=x.filter((function(e){return null!=e}))).length>0){for(var _=0;_<x.length;_++)k.push({range:x[_].range,log:x[_].op.name,target:x[_].target,op:x[_].op});var S=[];e.borderObj&&S.push("border"),e.background&&S.push("background"),e.mar&&S.push("margin"),e.animation&&S.push("animation"),this.chainReact(k,e.id,S,e.isNavA),this.res.style.zIndex=1}return e.mar&&this.mar(e.mar),this}},{key:"color",value:function(e){return this.res.style.color=e,this}},{key:"maxWidth",value:function(e){return this.res.style.maxWidth=e,this}},{key:"background",value:function(e){return this.res.style.backgroundColor=e,this}},{key:"leftAlign",value:function(){return this.res.style.textAlign="left",this}},{key:"arrayPadding",value:function(e,t){return t||(this.res.style.marginLeft="".concat(e[0],"px"),this.res.style.marginTop="".concat(e[1],"px"),this.res.style.marginRight="".concat(e[2],"px"),this.res.style.marginBottom="".concat(e[3],"px")),"all"===e[0]&&(this.res.style.paddingLeft=t,this.res.style.paddingTop=t,this.res.style.paddingRight=t,this.res.style.paddingBottom=t),e.includes("left")&&(this.res.style.paddingLeft=t),e.includes("right")&&(this.res.style.paddingRight=t),e.includes("top")&&(this.res.style.paddingTop=t),e.includes("bottom")&&(this.res.style.paddingBottom=t),t||(this.res.style.paddingBottom=e),this}},{key:"arrayMargin",value:function(e,t){return e.includes("left")&&(this.res.style.marginLeft=t),e.includes("right")&&(this.res.style.marginRight=t),e.includes("top")&&(this.res.style.marginTop=t),e.includes("bottom")&&(this.res.style.marginBottom=t),e.includes("all")&&(this.res.style.margin=t),t||(this.res.style.marginBottom=e),this}},{key:"getClampValue",value:function(e){return"S6"===e?"clamp(2.25rem, 2vw+1.5rem, 3.25rem)":"S5"===e?"clamp(2.75rem, 2vw + 1.5rem, 3.25rem)":"S4"===e?"clamp(3.5rem, 2vw + 1.5rem, 3.25rem)":"S3"===e?"clamp(4.25rem, 2vw + 1.5rem, 3.25rem)":"S2"===e?"clamp(5rem, 2vw + 1.5rem, 3.25rem)":"S1"===e?"clamp(6rem, 2vw + 1.5rem, 3.25rem)":void 0}},{key:"clampCopy",value:function(e){return this.res.style.fontSize=this.getClampValue(e),this}},{key:"fluidCopy",value:function(e){return"S1"===e&&(this.res.style.fontSize="calc(1.625rem + 5.075vw)"),"S2"===e&&(this.res.style.fontSize="calc(1.500rem + 4.3vw)"),"S3"===e&&(this.res.style.fontSize="calc(1.375rem + 3.525vw)"),"S4"===e&&(this.res.style.fontSize="calc(1.250rem + 2.75vw)"),"S5"===e&&(this.res.style.fontSize="calc(1.125rem + 1.975vw)"),"S6"===e&&(this.res.style.fontSize="calc(1rem + 0.5vw)"),this}},{key:"inlineBlock",value:function(){return this.res.style.display="inline-block",this}},{key:"toBlock",value:function(){return this.res.style.display="block",this}},{key:"myself",value:function(e){var t=this,r=function(){window.matchMedia("(max-device-width: 415px)").matches?t.res.style.fontSize=e.desktop:t.res.style.fontSize=e.phone};return r(),window.addEventListener("resize",r),this}},{key:"style",value:function(e){return this.res.style.color=e.styles.color,this.res.style.fontWeight=e.styles.fontWeight,this.res.style.paddingLeft=e.styles.padding[0],this.res.style.paddingTop=e.styles.padding[1],this.res.style.paddingRight=e.styles.padding[2],this.res.style.paddingBottom=e.styles.padding[3],this}},{key:"round",value:function(){return this.res.style.borderRadius="0.5rem",this.options.rounded&&(this.res.children[0].style.borderRadius="0.5rem"),this}},{key:"newWindow",value:function(){return this.res.target="_new",this}},{key:"radius",value:function(e){return this.res.style.borderRadius="".concat(e),this}},{key:"transition",value:function(e){return this.res.style.transition="".concat(e,"s ease-in-out"),this.res.style.transionProperty="background, color",this}},{key:"width",value:function(e){return this.res.style.width=e,this}},{key:"italic",value:function(){return this.res.style.fontStyle="italic",this}},{key:"padding",value:function(e,t,r,n){return e&&t&&r&&n?(this.res.style.paddingLeft=e,this.res.style.paddingTop=t,this.res.style.paddingRight=r,this.res.style.paddingBottom=n):this.res.style.padding=e,this}},{key:"medium",value:function(){var e=this,t=function(){window.matchMedia("(max-device-width: 415px)").matches?e.res.style.fontSize="2rem":e.res.style.fontSize="1.5em"};return t(),window.addEventListener("resize",t),this}},{key:"opacity",value:function(e){return this.res.style.opacity=e,this}},{key:"margin",value:function(e,t,r,n){return this.res.style.marginTop=e,this.res.style.marginLeft=t,this.res.style.marginRight=r,this.res.style.marginBottom=n,this}},{key:"hover",value:function(e){var t=this;if(e.border){var r=e.border.width;this.res.style.border=r?"".concat(r,"px solid transparent"):"1px solid transparent"}var n=this.options.borderObj;return n&&(this.res.style.border="".concat(n.width,"px solid ").concat(n.color)),this.prevColor=this.res.style.backgroundColor,this.foreColor=this.res.style.color,this.prevBorder=this.res.style.border,e.animation&&(this.res.style.transition="".concat(e.animation),this.res.style.transionProperty="background, color"),this.res.onmouseout=function(){t.res.style.backgroundColor="".concat(t.prevColor),t.res.style.color="".concat(t.foreColor),t.res.style.border=t.prevBorder},this.res.onmouseover=function(){if(t.res.style.color=e.color,t.res.style.backgroundColor=e.background,e.border){var r,n=e.border.width,i=null!==(r=e.border.color)&&void 0!==r?r:"#2ECC71";t.res.style.border=n?"".concat(n,"px solid ").concat(i):"1px solid #2ECC71"}},this}},{key:"em",value:function(e){var t=this,r=window.matchMedia("(max-device-width: 415px)"),n=function(){r.matches?t.res.style.fontSize="2em":t.res.style.fontSize="1em"};return n(),window.addEventListener("resize",n),this}},{key:"font",value:function(e){return this.res.style.fontFamily=e,this}},{key:"render",value:function(e){return e?(document.querySelector(e).appendChild(this.res),this):this.res}}])&&i(r.prototype,o),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,o}(r(762).y)},304:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function i(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return o(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?o(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,a=!0,l=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){l=!0,s=e},f:function(){try{a||null==r.return||r.return()}finally{if(l)throw s}}}}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function s(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,a(n.key),n)}}function a(e){var t=function(e){if("object"!=n(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=n(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==n(t)?t:t+""}function l(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(l=function(){return!!e})()}function c(){return c="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,r){var n=function(e,t){for(;!{}.hasOwnProperty.call(e,t)&&null!==(e=u(e)););return e}(e,t);if(n){var i=Object.getOwnPropertyDescriptor(n,t);return i.get?i.get.call(arguments.length<3?e:r):i.value}},c.apply(null,arguments)}function u(e){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},u(e)}function d(e,t){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},d(e,t)}r.d(t,{m:()=>h});var h=function(e){function t(e){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(r=function(e,t,r){return t=u(t),function(e,t){if(t&&("object"==n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,l()?Reflect.construct(t,r||[],u(e).constructor):t.apply(e,r))}(this,t)).res=null,r.setup(e),r.code=[],r.isLast=!1,r.code.push("\n new Wrapper() \n"),r}return function(e,t){if("function"!=typeof t&&null!==t)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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&d(e,t)}(t,e),r=t,o=[{key:"isLasta",value:function(){return this.isLast=!0,this}},{key:"toCode",value:function(){return this.code}},{key:"getType",value:function(){return"LayoutWrapperElement"}},{key:"setArea",value:function(e){return this.res.style.gridArea=e,this}},{key:"removeQuotesFromFirstWord",value:function(e){return e.replace(/"([^"]+)":/g,"$1:")}},{key:"clicked",value:function(e){return this.res.addEventListener("click",e),this}},{key:"gpos",value:function(e){return this.res.style.gridColumn=e.col,this.res.style.gridRow=e.row,this}},{key:"set",value:function(e){var r,n,o,s=".set({";if(e.pad&&this.pad(e.pad),e.arrpad&&(s+="pad: {sides: [".concat(e.arrpad.sides.map((function(e){return'"'.concat(e,'"')})).join(", "),'], value: "').concat(e.arrpad.value,'"}, ')),e.gpos&&this.gpos(e.gpos),e&&e.id&&e.stroke||e&&e.id&&e.gradient||e&&e.id&&e.span||e&&e.id&&e.layout){e.gradient,e.gradient&&(this.globalGradient=e.gradient.op.gradient),e.stroke&&(r=t,n=this,"function"==typeof(o=c(u(1&3?r.prototype:r),"setAny",n))?function(e){return o.apply(n,e)}:o)([{globalBlast:"".concat(e.stroke.op.width," ").concat(e.stroke.op.color)}]);var a=[e.stroke,e.gradient,e.animation,e.span,e.layout];a=a.filter((function(e){return null!=e}));for(var l=[],d=0;d<a.length;d++)l.push({range:a[d].range,log:a[d].op.name,target:a[d].target});this.res.setAttribute("id",e.id),this.betaReact(l,e.id)}if(e.socenter&&(this.res.style.display="flex",this.res.style.flexDirection="column",this.res.style.alignItems="center",e.socenter&&(s+="socenter: ".concat(e.socenter,","))),e.mboth&&(this.res.style.marginRight="auto")&&(this.res.style.marginLeft="auto"),e.mar&&this.mar(e.mar),e.sticky&&this.sticky(),e.transition&&(this.res.style.transition=e.transition),e.class&&this.res.setAttribute("class",e.class),e.ga&&(this.res.style.gridArea=e.ga),e.opacity&&(0==e.opacity&&(this.res.style.opacity=0),e.opacity&&(this.res.style.opacity=e.opacity)),e.maxHeight&&(this.res.style.maxHeight=e.maxHeight),e.id&&this.res.setAttribute("id",e.id),e.arrpad&&this.arrayPadding(e.arrpad.sides,e.arrpad.value),e.arrpad&&(s+="arrpad: {sides: [".concat(e.arrpad.sides.map((function(e){return'"'.concat(e,'"')})).join(", "),'], value: "').concat(e.arrpad.value,'"}, ')),e.arrayMargin&&this.arrayMargin(e.arrayMargin.sides,e.arrayMargin.value),e.arrayMargin&&(s+='\n arrayMargin: {sides: ["'.concat(e.arrayMargin.sides,'"], value: "').concat(e.arrayMargin.value,'"},')),e.center&&this.toCenter(e.center),e.center&&(s+='center: "'.concat(e.center,'",')),e.simpleCenter&&this.simpleCenter(),e.simpleCenter&&(s+='center: "'.concat(e.simpleCenter,'",')),e.filter&&(this.res.style.backdropFilter="blur(3px)"),e.radius&&this.corner(e.radius),e.radius&&(s+='\n radius: "'.concat(e.radius,'",')),e.border&&this.border(e.border),e.simpleBorder&&(this.res.style.border=e.simpleBorder),e.width&&this.width(e.width),e.width&&(s+='\n width: "'.concat(e.width,'",')),e.overflow&&(this.res.style.overflow="hidden"),e.overflow&&(s+='\n overflow: "'.concat(e.overflow,'",')),e.height&&this.heightNoAuto(e.height),e.height&&(s+='\n height: "'.concat(e.height,'",')),e.align&&this.flexAlign(e.align),e.align&&(s+='\n align: "'.concat(e.align,'",')),e.borderObj&&(this.res.style.borderRight="".concat(e.borderObj.width," solid ").concat(e.borderObj.color),this.res.style.borderRadius=e.borderObj.radius),e.borderObja&&(this.res.style.border="".concat(e.borderObja.width," solid ").concat(e.borderObja.color),this.res.style.borderRadius=e.borderObja.radius),e.font&&this.font(e.font),e.font&&(s+='font: "'.concat(e.font,'",')),e.maxWidth&&this.maxWidth(e.maxWidth),e.flexCenter&&this.flexc(e.flexCenter),e.multipad&&this.makeMultiPad(e.multipad),e.multimargin&&this.makeMultiMargin(e.multimargin),e.color&&this.color(e.color),e.background&&this.background(e.background),e.background&&(s+='background: "'.concat(e.background,'",')),e.weight&&this.weight(e.weight),e.paddings&&this.paddingo(e.paddings),e.area&&this.setArea(e.area),e.area&&(s+='area: "'.concat(e.area,'"')),e.column&&this.makeCol(),e.column&&(s+='\n column: "'.concat(e.column,'",')),e.alignIts&&(this.res.style.background="gray"),e.alignIts&&(this.res.style.alignItems="flex-start"),e.alignIts&&(this.res.style.justifyItems="flex-start"),e.customAlign&&(this.res.style.alignItems=e.customAlign),e.customJustify&&(this.res.style.justifyItems=e.customJustify),e.disp&&(this.res.style.display=e.disp),e.flexDir&&(this.res.style.flexDirection=e.flexDir),e.flexDir&&(this.res.style.display="flex"),e.flexDir&&(s+='\n flexDir: "'.concat(e.flexDir,'",')),e.zIndex&&(this.res.style.zIndex=e.zIndex),e.name&&(this.name=e.name),e.responsive&&this.rsp(e.responsive),e.stretch){e.stretch&&this.stretch(e.stretch);var h=this.removeQuotesFromFirstWord(JSON.stringify(e.stretch));s+="\n stretch: ".concat(h,",")}for(var p in e)if("margin"===p){var f=e[p];if(Array.isArray(f)&&f.length>0){var y,m=i(f);try{for(m.s();!(y=m.n()).done;){var v=y.value;v.hasOwnProperty("top")&&(this.res.style.marginTop=v.top),v.hasOwnProperty("right")&&(this.res.style.marginRight=v.right),v.hasOwnProperty("bottom")&&(this.res.style.marginBottom=v.bottom),v.hasOwnProperty("left")&&(this.res.style.marginLeft=v.left)}}catch(e){m.e(e)}finally{m.f()}}}return 8===(s+="})\n").length&&(s=""),this.code.push(s),this}},{key:"rsp",value:function(e){var t=this;this.res.style.display="flex";var r=e.sequence.split("-"),n=function(){var n=e.ranges;"0px"!==n[0]&&n.unshift("0px");for(var i=0;i<n.length-1;i++)(window.matchMedia("(min-width: ".concat(n[i],") and (max-width: ").concat(n[i+1],")")).matches||window.matchMedia("(min-width: ".concat(n[n.length-1],")")).matches)&&("row"===r[i]&&(t.res.style.flexDirection="row",t.res.style.border="3px solid green"),"col"===r[i]&&(t.res.style.flexDirection="column",t.res.style.border="3px solid purple"));return t};window.addEventListener("resize",n),n()}},{key:"sticky",value:function(){return this.res.style.position="sticky",this.res.style.top=0,this}},{key:"toSticky",value:function(){return this.res.style.position="sticky",this.res.style.top="0",this}},{key:"stretch",value:function(e){var t=this,r=function(){window.matchMedia("(max-width: ".concat(e.at,")")).matches?t.res.style.width="auto":window.matchMedia("(max-device-width: 415px)").matches?t.res.style.width="100%":t.res.style.width=e.backTo};r(),window.addEventListener("resize",r)}},{key:"makeCol",value:function(){return this.res.style.display="flex",this.res.style.flexDirection="column",this.res.style.alignItems="flex-start",this}},{key:"paddingo",value:function(e){return this.res.style.padding=e,this}},{key:"toCenter",value:function(e){return this.res.style.display="flex",this.res.style.flexDirection="column",this.res.style.justifyContent="center","both"===e&&(this.res.style.alignItems="center"),this}},{key:"simpleCenter",value:function(){return this.res.style.justifyContent="center",this.res.style.justifyItems="center",this.res.style.alignContent="center",this.res.style.alignItems="center",this}},{key:"color",value:function(e){return this.res.style.color=e,this}},{key:"weight",value:function(e){return this.res.style.fontWeight=e,this}},{key:"makeMultiPad",value:function(e){for(var t=0;t<e.length;t++)"left"===e[t].side&&(this.res.style.paddingLeft=e[t].value),"right"===e[t].side&&(this.res.style.paddingRight=e[t].value);return this}},{key:"makeMultiMargin",value:function(e){this.res.style.zIndex="1";for(var t=0;t<e.length;t++)"left"===e[t].side&&(this.res.style.marginLeft=e[t].value),"right"===e[t].side&&(this.res.style.marginRight=e[t].value),"top"===e[t].side&&(this.res.style.marginTop=e[t].value),"bottom"===e[t].side&&(this.res.style.marginBottom=e[t].value);return this}},{key:"flexc",value:function(e){return this.res.style.display="flex",this.res.style.flexDirection="column",this.res.style.justifyContent="center",this}},{key:"maxWidth",value:function(e){return this.res.style.maxWidth=e,this}},{key:"font",value:function(e){return this.res.style.fontFamily=e,this}},{key:"flexAlign",value:function(e){return this.res.style.display="flex",this.res.style.justifyContent="flex-start",this.res.style.alignItems="flex-start","center"===e?(this.res.style.display="flex",this.res.style.flexDirection="column",this.res.style.alignItems="center",this):this}},{key:"width",value:function(e){return this.res.style.width=e,this}},{key:"heightNoAuto",value:function(e){return this.res.style.height=e,this}},{key:"border",value:function(e){return this.res.style.borderRadius="".concat(e.radius,"px"),this.res.style.padding="0.25em",this.res.style.border="".concat(e.width,"px solid ").concat(e.color),this}},{key:"toCol",value:function(){return this.res.style.display="flex",this.res.style.flexDirection="column",this.res.style.justifyContent="center",this.res.style.alignItems="center",this}},{key:"add",value:function(e){this.items=e,this.code.push(".add([ \n");var t=e.map((function(t,r){return t.toCode().flatMap((function(e){return e})).join("")+(r<e.length-1?",":"")})).join("");this.code.push(t);for(var r=0;r<e.length;r++)if(void 0!==e[r]&&void 0!==e[r].toCode){var n=e[r].render();this.res.appendChild(n)}return this.code.push("])"),this}},{key:"arrayPadding",value:function(e,t){return e.includes("left")&&(this.res.style.paddingLeft=t),e.includes("right")&&(this.res.style.paddingRight=t),e.includes("top")&&(this.res.style.paddingTop=t),e.includes("bottom")&&(this.res.style.paddingBottom=t),this}},{key:"arrayMargin",value:function(e,t){return t||(this.res.style.marginLeft="".concat(e[0],"px"),this.res.style.marginTop="".concat(e[1],"px"),this.res.style.marginRight="".concat(e[2],"px"),this.res.style.marginBottom="".concat(e[3],"px")),e.includes("left")&&(this.res.style.marginLeft=t),e.includes("right")&&(this.res.style.marginRight=t),e.includes("top")&&(this.res.style.marginTop=t),e.includes("bottom")&&(this.res.style.marginBottom=t),this}},{key:"setWidth",value:function(e){this.res.style.width="100vw"}},{key:"setHeight",value:function(e){return this.res.style.height="".concat(e),this}},{key:"setup",value:function(e){var t=e?document.createElement(e.isLink?"a":"div"):document.createElement("div");return e&&e.isLink&&(t.style.textDecoration="none",t.setAttribute("href",e.child)),this.res=t,this.res.style.margin=0,this.res.style.padding=0,e&&!0===e.hideOverflow&&(this.res.style.overflow="hidden",this.res.style.overflowY="scroll"),e&&!0===e.center&&(this.res.style.display="flex",this.res.style.flexDirection="column",this.res.style.justifyContent="center",this.res.style.alignItems="center"),e&&"left"===e.align&&(this.res.style.alignItems="flex-start"),e&&"right"===e.align&&(this.res.style.alignItems="flex-end"),e&&e.height&&(this.res.style.height=e.height),e&&e.width&&(this.res.style.width=e.width,this.res.style.marginLeft="auto",this.res.style.marginRight="auto",window.matchMedia("(max-device-width: 415px)").matches&&(this.res.style.width="95%")),this}},{key:"height",value:function(e){return this.res.style.width="auto",this.res.style.height="".concat(e),this}},{key:"size",value:function(e,t){return this.w=e,this.h=t,this.w?this.res.style.width=this.w:this.res.style.width=window.innerWidth,this.h?this.res.style.height=this.h:this.res.style.height=window.innerHeight,this}},{key:"background",value:function(e){return this.res.style.background=e,this}},{key:"corner",value:function(e){return this.res.style.borderRadius=e,this}},{key:"padding",value:function(e,t,r,n){return this.res.style.paddingLeft=e,this.res.style.paddingTop=t,this.res.style.paddingRight=r,this.res.style.paddingBottom=n,this}},{key:"margin",value:function(e,t,r,n){return this.res.style.marginLeft=e,this.res.style.marginTop=t,this.res.style.marginRight=r,this.res.style.marginBottom=n,this}},{key:"itemWidth",value:function(e){for(var t=0;t<this.res.childNodes.length;t++)this.res.childNodes[t].style.width=e;return this}},{key:"apply",value:function(e){var t=this,r=function(){for(var r=0;r<e.length;r++){var n=e[r],i=window.matchMedia("(max-width: ".concat(n.width,"px)"));n.device&&(i=window.matchMedia("(max-device-width: ".concat(n.width,"px)")),alert(n.device)),i.matches&&Object.assign(t.res.style,n.styles)}},n=window.matchMedia("(max-width: ".concat(e[0].width,"px)"));return e[0].device&&(n=window.matchMedia("(max-device-width: ".concat(e[0].width,"px)"))),n.matches||Object.assign(this.res.style,e[0].styles),r(),window.addEventListener("resize",r),this}},{key:"mount",value:function(e){document.querySelector(e).appendChild(this.res)}},{key:"render",value:function(e){return e?(document.querySelector("#mount"),document.querySelector(e).appendChild(this.res),this):this.res}}],o&&s(r.prototype,o),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,o}(r(762).y)},317:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,s(n.key),n)}}function s(e){var t=function(e){if("object"!=n(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=n(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==n(t)?t:t+""}function a(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(a=function(){return!!e})()}function l(e){return l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},l(e)}function c(e,t){return c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},c(e,t)}r.d(t,{b:()=>u});var u=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=function(e,t,r){return t=l(t),function(e,t){if(t&&("object"==n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,a()?Reflect.construct(t,r||[],l(e).constructor):t.apply(e,r))}(this,t)).res=document.createElement("div"),e.res.style.display="grid",e.attributes={},e}return function(e,t){if("function"!=typeof t&&null!==t)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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&c(e,t)}(t,e),r=t,s=[{key:"set",value:function(e){return this.options=e,this.attributes=e,this.templateCols=e.templateCols,e.templateCols&&(this.res.style.gridTemplateColumns="repeat(".concat(e.templateCols.cols,", 1fr)"),this.res.style.gridTemplateRows="repeat(".concat(e.templateCols.cols,", 1fr)")),this.res.style.height=e.height?e.height:"600px",e.positions&&(this.storedPositions=e.positions),this}},{key:"generateGridPositions",value:function(e){var t=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:30,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:50,i=document.createElement("div");i.classList.add("container"),i.style.display="grid",i.style.gridTemplateColumns="repeat(".concat(n,", 1fr)"),i.style.gridTemplateRows="repeat(".concat(r,", 1fr)"),i.style.width="100%",i.style.height="100vh";var o=e.map((function(e,t){return{row:Math.floor(r/2)+t,col:Math.floor(n/2)+t}}));return e.forEach((function(i,s){var a=o[s],l=a.row,c=a.col,u=function(t){var r=0,n=0;return e.forEach((function(e,i){var s=e.weight,a=e.direction,l=o[t],c=o[i],u=l.col-c.col,d=l.row-c.row,h=s*(1/(Math.sqrt(u*u+d*d)+1));switch(a){case"L":r-=h;break;case"R":r+=h;break;case"U":n-=h;break;case"B":n+=h}})),{forceX:r,forceY:n}}(s),d=u.forceX,h=u.forceY;c=Math.max(1,Math.min(n,c+Math.round(d))),l=Math.max(1,Math.min(r,l+Math.round(h))),console.log(t.items.map((function(e){return e.id}))),console.log(i.attract.slice(1));var p=t.items.filter((function(e){return e.id===i.attract.slice(1)}))[0].render();console.log(p),p.style.gridRowStart=l,p.style.gridRowEnd=l+3,p.style.gridColumnStart=c,p.style.gridColumnEnd=c+5,p.style.border="3px solid #".concat(Math.floor(16777215*Math.random()).toString(16).padStart(6,"0")),p.style.display="flex",p.style.alignItems="center",p.style.justifyContent="center",p.style.fontWeight="bold",p.style.color="white",t.res.appendChild(p)})),console.log("ARAO"),console.log(this.res.children.length),this}},{key:"add",value:function(e){this.items=e;var t,r=function(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return i(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?i(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,a=!0,l=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){l=!0,s=e},f:function(){try{a||null==r.return||r.return()}finally{if(l)throw s}}}}(e);try{for(r.s();!(t=r.n()).done;){var n=t.value;this.res.appendChild(n.render())}}catch(e){r.e(e)}finally{r.f()}return this.storedPositions&&this.generateGridPositions(this.storedPositions),console.log("MORAA"),console.log(this.res.children.length),this}},{key:"toCode",value:function(){if(this.excludeFromCodeTrue)return[""];var e=JSON.stringify(this.options,null,4).replace(/"([^"]+)":/g,"$1:"),t="";return t+=".add([\n",t+=this.items.map((function(e){return e.toCode().join("").trim()})).join(",\n"),t+="\n])",["new Free().set(".concat(e,")").concat(t)]}},{key:"render",value:function(e){if(console.log("CHILDREN IN RENDER"),console.log(this.res.children.length),!e)return this.res;document.querySelector(e).appendChild(this.res)}}],s&&o(r.prototype,s),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,s}(r(762).y)},342:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,s(n.key),n)}}function s(e){var t=function(e){if("object"!=n(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=n(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==n(t)?t:t+""}function a(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(a=function(){return!!e})()}function l(e){return l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},l(e)}function c(e,t){return c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},c(e,t)}r.d(t,{S:()=>u});var u=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=function(e,t,r){return t=l(t),function(e,t){if(t&&("object"==n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,a()?Reflect.construct(t,r||[],l(e).constructor):t.apply(e,r))}(this,t)).el=null,e}return function(e,t){if("function"!=typeof t&&null!==t)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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&c(e,t)}(t,e),r=t,(s=[{key:"set",value:function(e){var t,r;this.options=e;var n=document.createElement("div");n.style.display="flex",n.style.alignItems="center";var i=document.createElement("input");i.type="checkbox",i.style.position="relative",i.style.marginRight="0.5rem";var o=e.size||"24px";i.style.width=o,i.style.height=o,e.customStyle&&(i.style.appearance="none"),i.style.border="2px solid #ccc",i.style.borderRadius="4px",i.style.backgroundColor=e.backgroundColor||"white",i.style.cursor="pointer",i.style.transition="background-color 0.2s ease, border-color 0.2s ease",i.style.display="inline-block",i.style.setProperty("--checked-bg-color",e.checkedBackgroundColor||"#4CAF50"),i.style.setProperty("--checkmark-color","white"),i.style.setProperty("--checkmark-clip-path",null!==(t=this.options.clipPath)&&void 0!==t?t:"polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%)");var s=document.createElement("style");s.textContent='\n input[type="checkbox"] {\n appearance: none;\n -webkit-appearance: none; /* For Safari */\n width: var(--size, 24px);\n height: var(--size, 24px);\n border: 2px solid #ccc;\n border-radius: 4px;\n background-color: white;\n position: relative;\n cursor: pointer;\n transition: background-color 0.2s ease, border-color 0.2s ease;\n }\n\n input[type="checkbox"]:checked {\n background-color: var(--checked-bg-color, #4CAF50);\n border-color: var(--checked-bg-color, #4CAF50);\n }\n\n input[type="checkbox"]::after {\n content: \'\';\n position: absolute;\n width: 50%;\n height: 50%;\n top: 25%;\n left: 25%;\n transform: scale(0);\n background-color: var(--checkmark-color, white);\n clip-path: var(--checkmark-clip-path);\n -webkit-clip-path: var(--checkmark-clip-path);\n transition: transform 0.2s ease;\n }\n\n input[type="checkbox"]:checked::after {\n transform: scale(1);\n }\n',e.customStyle&&document.head.appendChild(s),e.mar&&this.mar(e.mar),e.pad&&this.pad(e.pad),e.respad&&this.respad(e.respad),e.resmar&&this.resmar(e.resmar),i.addEventListener("change",(function(){i.checked?(i.style.backgroundColor=e.checkedBackgroundColor||"#4CAF50",i.style.borderColor=e.checkedBackgroundColor||"#4CAF50"):(i.style.backgroundColor=e.backgroundColor||"white",i.style.borderColor="#ccc")})),e.name&&i.setAttribute("name",e.name),n.appendChild(i);var a=document.createElement("div");if("function"==typeof(null===(r=e.label)||void 0===r?void 0:r.render))a.appendChild(e.label.render());else{var l=document.createTextNode(e.title||"Label");a.appendChild(l)}return a.style.opacity=.8,a.style.transition="opacity ease 0.2s, transform ease 0.2s",n.appendChild(a),this.el=n,this}},{key:"getValue",value:function(){return this.el.children[0].checked}},{key:"toCode",value:function(){var e=Object.entries(this.options).map((function(e){var t=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o,s,a=[],l=!0,c=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=o.call(r)).done)&&(a.push(n.value),a.length!==t);l=!0);}catch(e){c=!0,i=e}finally{try{if(!l&&null!=r.return&&(s=r.return(),Object(s)!==s))return}finally{if(c)throw i}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return i(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?i(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(e,2),r=t[0],o=t[1];return"string"==typeof o?"".concat(r,': "').concat(o,'"'):"object"===n(o)&&null!==o?"function"==typeof o.toCode?"".concat(r,": ").concat(o.toCode()[0]):"".concat(r,": ").concat(JSON.stringify(o,null,4)):"".concat(r,": ").concat(o)})).join(",\n ");return["new Checkbox().set({\n ".concat(e,"\n})")]}},{key:"margin",value:function(e){return this.el.style.margin=e,this}},{key:"render",value:function(e){if(!e)return this.el;document.querySelector(e).appendChild(this.el)}}])&&o(r.prototype,s),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,s}(r(762).y);window.Checkbox=u},385:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function i(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,o(n.key),n)}}function o(e){var t=function(e){if("object"!=n(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=n(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==n(t)?t:t+""}r.d(t,{z:()=>s});var s=function(){return e=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.el=null,this.radioCount=0},(t=[{key:"set",value:function(e){this.options=e,console.log("ORARA"),console.log(this.options),this.radioCount=e.items.length;for(var t=document.createElement("div"),r=e.items,n=0;n<r.length;n++){var i=document.createElement("label");r.font&&(i.style.font=r.font),r.color&&(i.style.color=r.color),r.exact&&(i.style.fontSize=r.exact);var o=document.createTextNode(r[n]);i.appendChild(o),i.setAttribute("for",r[n]);var s=document.createElement("input");s.setAttribute("type","radio"),s.setAttribute("id","S".concat(n)),s.setAttribute("value",r[n].split(" ").join("")),s.style.appearance="none",s.style.width="20px",s.style.height="20px",s.style.border=this.options.tint?"2px solid ".concat(this.options.tint):"2px solid #007BFF",s.style.borderRadius="50%",s.style.outline="none",s.style.cursor="pointer",s.style.transition="0.3s",this.options.font&&(i.style.fontFamily=this.options.font),e.multiple?s.setAttribute("name",r[n].split(" ").join("")):s.setAttribute("name",e.name),t.appendChild(s),t.appendChild(i),t.innerHTML+="</br>"}return this.el=t,this.responsive(),this}},{key:"padding",value:function(e){return this.el.style.padding=e,this}},{key:"getCheckedValues",value:function(){console.log("NOW");for(var e=[],t=0;t<this.radioCount;t++)if(document.querySelector("#S".concat(t)).checked){var r=document.querySelector("#S".concat(t));console.log("VALUE IS "+r.value),e.push(r.value)}return e}},{key:"toCode",value:function(){var e=JSON.stringify(this.options,null,4);return e=e.replace(/"(\w+)"(?=\s*:)/g,"$1"),["new RadioGroup().set(".concat(e,")")]}},{key:"responsive",value:function(){return window.matchMedia("(max-device-width: 415px)").matches&&(this.el.style.fontSize="1.7em"),this}},{key:"render",value:function(e){var t=this;if(!e){console.log("MULA");for(var r=function(){var e=t.el.children[n];"[object HTMLInputElement]"===e.toString()&&e.addEventListener("change",(function(){if(e.checked){e.style.backgroundColor=t.options.tint?t.options.tint:"#007BFF",e.style.boxShadow=t.options.tint?"0 0 0 2px ".concat(t.options.tint," inset"):"0 0 0 2px #0056b3 inset";for(var r=0;r<t.el.children.length;r++){var n=t.el.children[r];"INPUT"===n.tagName&&"radio"===n.type&&!1===t.options.multiple&&n!==e&&(n.style.backgroundColor="transparent",n.style.boxShadow="none")}}else e.style.backgroundColor="transparent",e.style.boxShadow="none"}))},n=0;n<this.el.children.length;n++)r();return this.el}document.querySelector(e).appendChild(this.el)}}])&&i(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}();window.RadioGroup=s},463:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function i(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,o(n.key),n)}}function o(e){var t=function(e){if("object"!=n(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=n(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==n(t)?t:t+""}r.d(t,{h:()=>s});var s=function(){return e=function e(t){if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.hide=t,t){var r=document.createElement("div");r.style.flex="1",this.res=r}return t&&this.res.setAttribute("class","innerHider"),this},(t=[{key:"toCode",value:function(){return["new Spacer(".concat(this.hide,")")]}},{key:"render",value:function(){var e,t=document.createElement("h2");return t.style.display="none !important",null!==(e=this.res)&&void 0!==e?e:t}}])&&i(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}()},683:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function i(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,o(n.key),n)}}function o(e){var t=function(e){if("object"!=n(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=n(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==n(t)?t:t+""}r.d(t,{Z:()=>s});var s=function(){return e=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)},t=[{key:"cards",value:function(e,t,r){console.log("PP"),console.log(r);for(var n=[],i=0;i<e.children.length;i++){var o=e.children[i];"text"===o&&this.insertTextToCard(n,t,e,r),"image"!==o||e.backgroundCard||n.push('\n new Image("https://upload.wikimedia.org/wikipedia/commons/3/3a/Starship_S20.jpg").set({})'),"link"===o&&(t.op?n.push("\n ".concat(r.tabSpace(6)," ").concat(r.link[t.op.theme.toLowerCase()].code)):n.push("\n ".concat(r.tabSpace(6)," ").concat(r.link.base.code)))}return n}},{key:"insertTextToCard",value:function(e,t,r,n){if(t.op)if(t.op.ops&&t.op.ops.includes("text-blast")){var i="\n ".concat(n.tabSpace(6)," ").concat(n.text[t.op.theme.toLowerCase()].code),o=n.ops[t.op.theme.toLowerCase()].blast.code;r.backgroundCard||(o=n.ops[t.op.theme.toLowerCase()].blastFun(1));var s=this.insertTextBetween(i,o);e.push(s)}else e.push("\n ".concat(n.tabSpace(6)," ").concat(n.text[t.op.theme.toLowerCase()].code));else e.push("\n ".concat(n.tabSpace(6)," ").concat(n.text.base.code))}},{key:"insertTextBetween",value:function(e,t){var r=e.match(/(color: ".+?",)(.+?)(id: ".+?")/);if(r){var n=r.index+r[0].length,i=e.slice(0,n)+", "+t+", "+e.slice(n);return console.log("RETA"),console.log(i),i}return e}}],null&&i(e.prototype,null),t&&i(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}()},734:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function i(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,o(n.key),n)}}function o(e){var t=function(e){if("object"!=n(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=n(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==n(t)?t:t+""}function s(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(s=function(){return!!e})()}function a(){return a="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,r){var n=function(e,t){for(;!{}.hasOwnProperty.call(e,t)&&null!==(e=l(e)););return e}(e,t);if(n){var i=Object.getOwnPropertyDescriptor(n,t);return i.get?i.get.call(arguments.length<3?e:r):i.value}},a.apply(null,arguments)}function l(e){return l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},l(e)}function c(e,t){return c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},c(e,t)}r.d(t,{m:()=>u});var u=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t,r){return t=l(t),function(e,t){if(t&&("object"==n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,s()?Reflect.construct(t,r||[],l(e).constructor):t.apply(e,r))}(this,t)}return function(e,t){if("function"!=typeof t&&null!==t)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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&c(e,t)}(t,e),r=t,o=[{key:"removeQuotesFromBoth",value:function(e){if(e)return e.replace(/"([^"]+)":\s*"([^"]+)"/g,"$1: $2")}},{key:"removeQuotesFromFirstWord",value:function(e){if(e)return e.replace(/"([^"]+)":/g,"$1:")}},{key:"toCode",value:function(){console.warn(this.items);var e=this.items.map((function(e){return e.toCode()})).flatMap((function(e){return e}));console.log("BAD CONV"),console.log(this.removeQuotesFromFirstWord(JSON.stringify(this.obj,null,4)));var t=this.removeQuotesFromFirstWord(JSON.stringify(this.obj));console.log(t),console.log("REPL"),console.log(t);var r='\nbackground: "'.concat(this.obj.background,'",\nbrand: ').concat(this.obj.brand.toCode(),",\nmar: ").concat(JSON.stringify(this.obj.mar),",\npad: ").concat(JSON.stringify(this.obj.mar),",\nradius: ").concat(JSON.stringify(this.obj.radius),",\n");return"new MobileBar().set({".concat(r,"}).add([\n ").concat(e.join(","),"\n\n ])")}},{key:"set",value:function(e){var r,n,i;return this.obj=e,console.log("After passing to set:"),console.log("OBJ IN SET"),this.obj=e,this.makeNavbar(e),e.mar&&(r=t,n=this,"function"==typeof(i=a(l(1&3?r.prototype:r),"mar",n))?function(e){return i.apply(n,e)}:i)([e.mar]),e.maxHeight&&(this.res.style.maxHeight=e.maxHeight),e.radius&&(this.res.style.borderRadius=e.radius),e.hamburgerColour&&(this.hamburgerColour=e.hamburgerColour),this.setStyles(e),this}},{key:"makeNavbar",value:function(e){var t=this;console.log("OBJ IN SETA");var r=e.brand;this.navbar=document.createElement("nav"),this.navbar.classList.add("mobile-navbar"),this.navbarHeader=document.createElement("div"),this.navbarHeader.classList.add("navbar-header"),this.brand=document.createElement("div"),this.brand.classList.add("navbar-brand"),console.log("BRIS"),console.log("APPENDED-"),e.brand&&"function"==typeof r.render?(console.log("Appending brand:",r.render()),this.brand.appendChild(r.render())):console.warn("Brand does not have a valid render method:",e.brand),this.toggleButton=document.createElement("button"),this.toggleButton.classList.add("navbar-toggle"),this.toggleButton.innerHTML="&#9776;",this.navContent=document.createElement("div"),this.navContent.classList.add("navbar-content"),this.navbarHeader.appendChild(this.brand),this.navbarHeader.appendChild(this.toggleButton),this.navbar.appendChild(this.navbarHeader),this.navbar.appendChild(this.navContent),this.isMobileNavOpen=!1,this.toggleButton.addEventListener("click",(function(){t.toggleMobileNav()})),this.res=this.navbar}},{key:"setStyles",value:function(e){var t,r;this.navbar.style.display="flex",this.navbar.style.flexDirection="column",this.navbar.style.padding="1rem",this.navbar.style.backgroundColor=null!==(t=e.background)&&void 0!==t?t:"orange",this.navbarHeader.style.display="flex",this.navbarHeader.style.alignItems="center",this.navbarHeader.style.justifyContent="space-between",this.navbarHeader.style.width="100%",this.brand.style.fontSize="1.5rem",this.toggleButton.style.background="none",this.toggleButton.style.border="none",this.toggleButton.style.color=null!==(r=this.hamburgerColour)&&void 0!==r?r:"white",this.toggleButton.style.fontSize="1.5rem",this.toggleButton.style.cursor="pointer",this.navContent.style.display="none"}},{key:"add",value:function(e){console.log(e),this.items=e;for(var t=0;t<e.length;t++){var r=e[t];this.navContent.appendChild(r.render())}return this}},{key:"toggleMobileNav",value:function(){this.isMobileNavOpen=!this.isMobileNavOpen,this.navContent.style.display=this.isMobileNavOpen?"flex":"none",this.isMobileNavOpen?(this.navContent.style.flexDirection="column",this.navContent.style.gap="0.5rem",this.navContent.style.padding="1rem"):(this.navContent.style.flexDirection="",this.navContent.style.gap="",this.navContent.style.backgroundColor="",this.navContent.style.padding="")}},{key:"render",value:function(e){return e&&document.querySelector(e).appendChild(this.navbar),this.navbar}}],o&&i(r.prototype,o),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,o}(r(762).y)},751:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function i(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,o(n.key),n)}}function o(e){var t=function(e){if("object"!=n(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=n(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==n(t)?t:t+""}r.d(t,{Q:()=>s});var s=function(){return e=function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.el=null,this.minLabel=null,this.maxLabel=null,this.currentLabel=null},(t=[{key:"padding",value:function(e){return this.el.style.padding=e,this}},{key:"toCode",value:function(){var e=JSON.stringify(this.options,null,4);return["new Range().set(".concat(e,")")]}},{key:"set",value:function(e){var t,r,n=this;this.options=e;var i=document.createElement("input");if(i.setAttribute("id","slider"),i.setAttribute("type","range"),i.setAttribute("min",e.min),i.setAttribute("max",e.max),i.setAttribute("value",e.min),i.style.width=null!==(t=e.width)&&void 0!==t?t:"100%",!e.plain){var o,s;i.style.setProperty("-webkit-appearance","none"),i.style.appearance="none",i.style.height="9px",i.style.background=null!==(o=e.style.trackColor)&&void 0!==o?o:"orange",i.style.borderRadius="5px";var a="\n #slider::-webkit-slider-thumb {\n -webkit-appearance: none;\n appearance: none;\n width: 25px;\n height: 25px;\n border-radius: 50%;\n background: ".concat(null!==(s=e.style.thumbColor)&&void 0!==s?s:"4CAF50",";\n cursor: pointer;\n }\n "),l=document.createElement("style");l.appendChild(document.createTextNode(a)),document.head.appendChild(l)}var c=document.createElement("div");c.style.display="flex",c.style.flexDirection="column",c.style.alignItems="center",c.style.width="100%";var u=document.createElement("div");if(u.style.display="flex",u.style.justifyContent="space-between",u.style.width=null!==(r=e.width)&&void 0!==r?r:"100%",this.minLabel=document.createElement("span"),this.minLabel.textContent=e.min,this.maxLabel=document.createElement("span"),this.maxLabel.textContent=e.max,this.currentLabel=document.createElement("span"),this.currentLabel.textContent=i.value,e.font&&(this.currentLabel.style.fontFamily=e.font),e.font&&(this.minLabel.style.fontFamily=e.font),e.font&&(this.maxLabel.style.fontFamily=e.font),e.plain||(u.appendChild(this.minLabel),u.appendChild(this.currentLabel),u.appendChild(this.maxLabel)),i.addEventListener("input",(function(){n.currentLabel.textContent=i.value})),window.matchMedia("(max-device-width: 415px)").matches)if(e.plain)i.style.width="80%";else{var d,h;i.style.height="20px",i.style.background=null!==(d=e.style.trackColor)&&void 0!==d?d:"1abc9C",i.style.borderRadius="10px",i.style.fontSize="3rem",i.style.width="80%";var p="\n #slider::-webkit-slider-thumb {\n -webkit-appearance: none;\n appearance: none;\n width: 25px;\n height: 25px;\n border-radius: 50%;\n background: ".concat(null!==(h=e.style.thumbColor)&&void 0!==h?h:"blue",";\n cursor: pointer;\n }\n "),f=document.createElement("style");f.appendChild(document.createTextNode(p)),document.head.appendChild(f)}return c.appendChild(u),c.appendChild(i),this.el=c,this}},{key:"value",value:function(){return this.el.querySelector("#slider").value}},{key:"render",value:function(e){if(!e)return this.el;document.querySelector(e).appendChild(this.el)}}])&&i(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}();window.Range=s},762:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function i(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o,s,a=[],l=!0,c=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=o.call(r)).done)&&(a.push(n.value),a.length!==t);l=!0);}catch(e){c=!0,i=e}finally{try{if(!l&&null!=r.return&&(s=r.return(),Object(s)!==s))return}finally{if(c)throw i}}return a}}(e,t)||s(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=s(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,l=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){l=!0,o=e},f:function(){try{a||null==r.return||r.return()}finally{if(l)throw o}}}}function s(e,t){if(e){if("string"==typeof e)return a(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?a(e,t):void 0}}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function l(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,c(n.key),n)}}function c(e){var t=function(e){if("object"!=n(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=n(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==n(t)?t:t+""}r.d(t,{y:()=>u});var u=function(){return e=function e(){var t,r,n,i=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),t=this,n=function(e){if(e.transform||e.op&&e.op.transform){var t=e.transform;e.transform||(t=e.op.transform),t.duration||(t.duration="3s-ease-in-out"),i.setDefault=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"0px";return 0===e.length?t+" ":e};var r=function(){var r="",n="",o="",s="",a="",l="",c="",u="",d="";if(0!==t.values.length){t.values.forEach((function(e){e.startsWith("tx:")&&(r=e.replace("tx:","")),e.startsWith("ty:")&&(n=e.replace("ty:","")),e.startsWith("tz:")?o=e.replace("tz:",""):e.startsWith("scale(")?s=e:e.startsWith("skew(")?a=e:e.startsWith("rotate(")?l=function(e){var t=e.match(/rotate\(([^)]+)\)/);if(!t)return e;var r=t[1].split(",").map((function(e){return e.trim()}));return 1===r.length?"rotate(".concat(r[0],")"):2===r.length?"rotateX(".concat(r[0],") rotateY(").concat(r[1],")"):3===r.length?"rotateX(".concat(r[0],") rotateY(").concat(r[1],") rotate(").concat(r[2],")"):e}(e):e.startsWith("perspective(")?c=e:e.startsWith("matrix(")?u=e:e.startsWith("opacity:")&&(d=e.replace("opacity:",""))})),r=i.setDefault(r),n=i.setDefault(n),o=i.setDefault(o);var h="";if("0px"!=n&&"0px"!=r&&"0px"!=o?h+="translate3d(".concat(r,", ").concat(n,", ").concat(o,")"):"0px"==n&&"0px"==r||(h+="translate(".concat(r,", ").concat(n,")")),s&&(h+=" ".concat(s)),l&&(h+=" ".concat(l)),a&&(h+=" ".concat(a)),c&&(h+=" ".concat(c)),u&&(h+=" ".concat(u)),h){if(e.op.transform.duration){var p=e.op.transform.duration.replace(/^(\d+)(s)-/,(function(e,t,r){return t/2+r+" "})),f="transform ".concat(p,", opacity ").concat(p);i.res.style.transition=f}else i.res.style.transition="transform 3s ease-in-out, opacity 3s ease-in-out";i.res.style.transform=h,i.res.style.opacity=d}}};t.on?i.res.addEventListener(t.on,(function(){t.delay?setTimeout((function(){r()}),t.delay):r()})):window.addEventListener("load",(function(){t.delay?setTimeout((function(){r()}),t.delay):r()}));var n=function(){var e="";t.values.forEach((function(t){t.startsWith("tx:")?e+="translateX(0) ":t.startsWith("ty:")?e+="translateY(0) ":t.startsWith("tz:")?e+="translateZ(0) ":t.startsWith("scale(")?e+="scale(1) ":t.startsWith("skew(")?e+="skew(0, 0) ":t.startsWith("rotate(")?e+="rotate(0) ":t.startsWith("perspective(")?e+="perspective(0) ":t.startsWith("matrix(")&&(e+="matrix(1, 0, 0, 1, 0, 0) "),i.res.style.opacity="1"})),e&&(i.res.style.transform=e.trim())};if(t.on)i.res.addEventListener("mouseout",(function(){t.keep||n()}));else{var o=1e3*parseFloat(t.duration),s=t.closeAfter?t.closeAfter:0;setTimeout((function(){t.keep||n()}),o/2+s)}}},(r=c(r="reactOnTransform"))in t?Object.defineProperty(t,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[r]=n,this.state={isExpanded:!1,isMovedUp:!1,isMovedDown:!1}},(t=[{key:"keySet",value:function(e){return this.temporaryVal=1,this.res.style[e.key]=e.value,this}},{key:"onScroll",value:function(e){var t=this;"opacity"===e.value?this.res.style.opacity=e.valMin:"scale"===e.value&&(this.res.style.transform="scale(".concat(e.valMax,")")),window.addEventListener("scroll",(function(){var r=t.smartRange(window.scrollY,{min:e.from,max:e.to},{min:e.valMin,max:e.valMax});"opacity"===e.value?t.res.style.opacity=r:"scale"===e.value&&(t.res.style.transform="scale(".concat(r,")"))}))}},{key:"setAny",value:function(e){this[Object.keys(e)[0]]=[Object.values(e)[0]]}},{key:"setID",value:function(e){this.id=e}},{key:"setPrevText",value:function(e){this.prevText=e}},{key:"getCSS",value:function(){return this.css}},{key:"getPX",value:function(e){return{xs:"0px",sm:"576px",md:"768px",lg:"992px",xl:"1200px",xxl:"1400px",mxxl:"1800px"}[e]||"Invalid breakpoint"}},{key:"respad",value:function(e){var t=this,r=function(){t.pad(e[0].values);for(var r=0;r<e.length;r++){var n=e[r].breakpoint;window.matchMedia("(min-width: ".concat(t.getPX(n))).matches&&t.pad(e[r].values)}};window.addEventListener("resize",r),r()}},{key:"resmar",value:function(e){var t=this,r=function(){t.mar(e[0].values);for(var r=0;r<e.length;r++){var n=e[r].breakpoint;window.matchMedia("(max-width: ".concat(t.getPX(n))).matches&&t.mar(e[r].values)}};window.addEventListener("resize",r),r()}},{key:"resprop",value:function(e){var t=this;this.prevBackground=this.res.style.background,this.prevWidth=this.res.style.width,this.prevHeight=this.res.style.height,this.prevBorder=this.res.style.border;var r=function(){t.res.style.background=t.prevBackground,t.res.style.width=t.prevWidth,t.res.style.height=t.prevHeight,t.res.style.border=t.prevBorder;for(var r=0;r<e.length;r++){var n=e[r].breakpoint;if(window.matchMedia("(max-width: ".concat(t.getPX(n))).matches){var i={};for(var o in e[r])"breakpoint"!==o&&(i[o]=e[r][o]);t.set(i)}}};window.addEventListener("resize",r),r()}},{key:"isNumber",value:function(e){return"number"==typeof e&&!isNaN(e)}},{key:"pad",value:function(e){for(var t=0;t<e.length;t++)for(var r=Object.keys(e[t]),n=0;n<r.length;n++)for(var i=r[n],o=e[t][i],s=0;s<i.length;s++)switch(i[s]){case"a":this.res.style.padding=this.isNumber(o)?"".concat(o,"px"):o;break;case"t":this.res.style.paddingTop=this.isNumber(o)?"".concat(o,"px"):o;break;case"l":this.res.style.paddingLeft=this.isNumber(o)?"".concat(o,"px"):o;break;case"r":this.res.style.paddingRight=this.isNumber(o)?"".concat(o,"px"):o;break;case"b":this.res.style.paddingBottom=this.isNumber(o)?"".concat(o,"px"):o}return this}},{key:"as",value:function(e){return this.res.style.alignSelf=e,this}},{key:"mar",value:function(e){for(var t=0;t<e.length;t++)for(var r=Object.keys(e[t]),n=0;n<r.length;n++)for(var i=r[n],o=e[t][i],s=0;s<i.length;s++){switch(i[s]){case"a":this.res.style.margin=this.isNumber(o)?"".concat(o,"px"):o;break;case"t":this.res.style.marginTop=this.isNumber(o)?"".concat(o,"px"):o;break;case"l":this.res.style.marginLeft=this.isNumber(o)?"".concat(o,"px"):o;break;case"r":this.res.style.marginRight=this.isNumber(o)?"".concat(o,"px"):o;break;case"b":this.res.style.marginBottom=this.isNumber(o)?"".concat(o,"px"):o}"auto"===i[s]&&(this.res.style.marginLeft="auto",this.res.style.marginRight="auto")}return this}},{key:"smartRange",value:function(e,t,r){e<t.min&&(e=t.min),e>t.max&&(e=t.max);var n=(e-t.min)/(t.max-t.min);t.min>t.max&&(n=(e-t.max)/(t.min-t.max));var i=(r.min-r.max)*n-r.min;if(i=Math.abs(i),r.min<r.max){var o=(r.max+Math.abs(r.min))*n;i=r.min+o}return i}},{key:"gpos",value:function(e){return this.res.style.gridColumn=e.col,this.res.style.gridRow=e.row,this}},{key:"fluidCopy",value:function(e){if(e instanceof Object){this.prevStylex=this.res.style,this.res=document.createElement("h1"),this.res.style.cssText=this.prevStylex.cssText;var t=document.createTextNode(this.text);return this.res.appendChild(t),this.res.style.fontSize=e.exact,this}if("S1"===e){this.prevStylex=this.res.style,this.res=document.createElement("h1"),this.res.style.cssText=this.prevStylex.cssText;var r=document.createTextNode(this.text);this.res.appendChild(r),this.res.style.fontSize="calc(1.625rem + 5.075vw)"}if("S2"===e){this.prevStylex=this.res.style,this.res=document.createElement("h2"),this.res.style.cssText=this.prevStylex.cssText;var n=document.createTextNode(this.text);this.res.appendChild(n),this.res.style.fontSize="calc(1.500rem + 4.3vw)"}if("S3"===e){this.prevStylex=this.res.style,this.res=document.createElement("h3"),this.res.style.cssText=this.prevStylex.cssText;var i=document.createTextNode(this.text);this.res.appendChild(i),this.res.style.fontSize="calc(1.375rem + 3.525vw)"}if("S4"===e){this.prevStylex=this.res.style,this.res=document.createElement("h4"),this.res.style.cssText=this.prevStylex.cssText;var o=document.createTextNode(this.text);this.res.appendChild(o),this.res.style.fontSize="calc(1.250rem + 2.75vw)"}if("S5"===e){this.prevStylex=this.res.style,this.res=document.createElement("h5"),this.res.style.cssText=this.prevStylex.cssText;var s=document.createTextNode(this.text);this.res.appendChild(s),this.res.style.fontSize="calc(1.125rem + 1.975vw)"}return"S6"===e&&(this.res.style.fontSize="calc(1rem + 0.5vw)"),this}},{key:"setIndex",value:function(e){this.index=e}},{key:"borderObj",value:function(e){var t,r=null!==(t=e.type)&&void 0!==t?t:"solid";return this.res.style.border="".concat(e.width," ").concat(r," ").concat(e.color),this.res.style.borderRadius=e.radius,this}},{key:"protoReact",value:function(e,t){var r=this;e.sort((function(e,t){return parseInt(e.range[0])-parseInt(t.range[0])}));var n=function(){var n=window.innerWidth,s="";r.storedQueries=e.map((function(e){return e.target})).filter((function(e){return null!=e}));var a,l=o(e);try{for(l.s();!(a=l.n()).done;){var c=a.value;r.counterIndex++;var u=i(c.range,2),d=u[0],h=u[1],p=parseInt(d),f=parseInt(h),y=!0;if(c.target){y=!1;for(var m=0;m<c.target.length;m++)c.target[m]===t&&(y=!0)}n>=p&&n<=f&&y&&("gradient"===c.log&&(s+="gradient"),"blast"===c.log&&(s+="blast"),"animation"===c.log&&(s+="animation"),"shadow"===c.log&&(s+="shadow"),"span"===c.log&&(s+="span"),"filter"===c.log&&(s+="filter"),"background"===c.log&&(s+="background"))}}catch(e){l.e(e)}finally{l.f()}r.res.style.margin="";var v,b=r.res.style.color;for(e.map((function(e){return e.log})).filter((function(e){return null!=e})).includes("gradient")&&(r.res.style.WebkitBackgroundClip="",r.res.style.background=""),r.res.style["-webkit-text-stroke"]="",r.res.style.filter="",r.res.style.textShadow="",r.res.style.border="";r.res.firstChild;)r.res.removeChild(r.res.firstChild);if(r.res.textContent=r.text,""===s&&(r.res.style["-webkit-text-fill-color"]="",r.res.style.color=b),"blast"===s){for(m=0;m<e.length;m++){var g=e[m].op.offsets;g&&void 0!==r.index&&(r.res.style.margin=g[Number(r.index)]+"px")}for(r.res.style["-webkit-text-fill-color"]="transparent",r.res.style["-webkit-text-stroke"]=r.globalBlast,m=0;m<e.length;m++){var w=e[m].op.offsets;w&&void 0!==r.index&&(r.res.style.margin=w[Number(r.index)]+"px")}}if("gradient"===s&&(r.res.style["-webkit-text-fill-color"]="transparent",r.res.style.background=r.globalGradient,r.res.style["-webkit-background-clip"]="text",r.res.style.border="1px solid orange"),"background"===s&&(r.res.style.background="orange"),"gradientblast"===s&&(r.res.style["-webkit-text-fill-color"]="transparent",r.res.style.background=r.globalGradient,r.res.style["-webkit-background-clip"]="text",r.res.style["-webkit-text-stroke"]=r.globalBlast),"gradientanimation"===s&&(r.res.style["-webkit-text-fill-color"]="transparent",r.res.style.background=r.globalGradient,r.res.style["-webkit-background-clip"]="text"),"gradientanimationshadow"===s&&(r.res.style["-webkit-text-fill-color"]="transparent",r.res.style.background=r.globalGradient,r.res.style["-webkit-background-clip"]="text",r.res.style.textShadow=r.globalShadow),"animationshadow"===s&&(r.res.style["-webkit-text-fill-color"]="",r.res.style.textShadow=r.globalShadow),"shadow"===s&&(r.res.style["-webkit-text-fill-color"]="",r.res.style.textShadow=r.globalShadow),"span"===s&&r.options.span)for(v=Array.isArray(r.options.span)?r.options.span.filter((function(e){return"span"===e.op.name}))[0]:r.options.span,r.res.textContent="",m=0;m<v.op.parts.length;m++){var k=v.op.parts[m].style,x=new Text(v.op.parts[m].text).setup({type:"span"}).set(k).render();r.res.appendChild(x)}if("filter"===s){var _=r.options.filtera.op.filter;r.res.style.filter=_,r.res.style.border="8px solid orange"}};window.addEventListener("resize",n),n()}},{key:"setPref",value:function(e){this.preffersId=e}},{key:"setClass",value:function(e){this.class=e}},{key:"betaReact",value:function(e,t){var r=this;this.ap=!1,this.cta=0,this.once=!1,e.sort((function(e,t){return parseInt(e.range[0])-parseInt(t.range[0])}));var n=function(){var n=window.innerWidth,s="";r.resCopy=r.res,r.storedQueries=e.map((function(e){return e.target})).filter((function(e){return null!=e}));var a,l=o(e);try{for(l.s();!(a=l.n()).done;){var c=a.value;r.counterIndex++;var u=i(c.range,2),d=u[0],h=u[1],p=parseInt(d),f=parseInt(h),y=!0;if(c.target){y=!1;for(var m=0;m<c.target.length;m++)c.target[m]===t&&(y=!0)}n>=p&&n<=f&&y&&("blast"===c.log&&(s+="blast"),"shadow"===c.log&&(s+="shadow"),"background"===c.log&&(s+="background"),"gradient"===c.log&&(s+="gradient"),"spana"===c.log&&(s+="spana"),"layout"===c.log&&(s+="layout"),"margin"===c.log&&(s+="margin"),c.op&&c.op.margin&&(r.useMargin=c.op.margin))}}catch(e){l.e(e)}finally{l.f()}if(r.res.style.background="",r.res.style.backgroundColor="",r.res.style.textShadow="",r.res.style.border="",r.res.style.margin="",r.res.style["-webkit-text-fill-color"]="",r.res.style["-webkit-text-stroke"]="",r.res.style["-webkit-text-stroke-width"]="","background"===s&&(r.res.style.backgroundColor="green"),"margin"===s)for(m=0;m<e.length;m++)if(e[m].op){var v=e[m].op.offsets;v&&void 0!==r.index&&(r.res.style.margin=v[Number(r.index)]+"px")}if("blastbackgroundmargin"===s){for(m=0;m<e.length;m++)if(e[m].op){var b=e[m].op.offsets;b&&void 0!==r.index&&(r.res.style.margin=b[Number(r.index)]+"px")}r.res.style.backgroundColor="green","FlexRowLayoutElement"===r.getType()?r.res.style.border="1px solid orange":(r.res.textContent=r.text,r.res.style["-webkit-text-fill-color"]="transparent",r.res.style["-webkit-text-stroke-color"]="orange",r.res.style["-webkit-text-stroke-width"]="1px"),r.res.style["-webkit-text-fill-color"]="transparent",r.res.style["-webkit-text-stroke-color"]="orange",r.res.style["-webkit-text-stroke-width"]="1px"}if("blastbackground"===s){for(m=0;m<e.length;m++)if(e[m].op){var g=e[m].op.offsets;g&&void 0!==r.index&&(r.res.style.margin=g[Number(r.index)]+"px")}r.res.style.backgroundColor="green",r.useMargin?r.res.style.margin="1rem":r.res.setAttribute("id","iofhwoiefhoih"),"FlexRowLayoutElement"===r.getType()?r.res.style.border="1px solid orange":(r.res.textContent=r.text,r.res.style["-webkit-text-fill-color"]="transparent",r.res.style["-webkit-text-stroke-color"]="orange",r.res.style["-webkit-text-stroke-width"]="1px"),r.res.style["-webkit-text-fill-color"]="transparent",r.res.style["-webkit-text-stroke-color"]="orange",r.res.style["-webkit-text-stroke-width"]="1px"}if("layout"===s&&(r.res.style.alignSelf="start",r.res.style.border="1px solid purple"),"blast"===s){for(m=0;m<e.length;m++)if(e[m].op){var w=e[m].op.offsets;w&&void 0!==r.index&&(r.res.style.margin=w[Number(r.index)]+"px")}"FlexRowLayoutElement"===r.getType()?r.res.style.border="1px solid orange":(r.res.textContent=r.text,r.res.style["-webkit-text-fill-color"]="transparent",r.res.style["-webkit-background-clip"]="text",r.res.style["-webkit-text-stroke-color"]="orange",r.res.style["-webkit-text-stroke-width"]="1px"),r.res.style["-webkit-text-fill-color"]="transparent",r.res.style["-webkit-text-stroke"]="orange",r.res.style["-webkit-text-stroke-width"]="1px"}"blastgradientbackground"===s&&(r.res.style.border="1px solid yellow",r.res.style["-webkit-text-stroke-color"]="orange",r.res.style["-webkit-text-stroke-width"]="1px"),"gradient"===s&&(r.res.style.background="linear-gradient(to left, #3498db, #1abc9c)","FlexRowLayoutElement"===r.getType()||(r.res.children[0]&&r.res.removeChild(r.res.children[0]),r.res.style["-webkit-text-fill-color"]="transparent",r.res.style["-webkit-background-clip"]="text",r.res.textContent=r.text)),"shadow"===s&&("FlexRowLayoutElement"===r.getType()||(r.res.children[0]&&r.res.removeChild(r.res.children[0]),r.res.style["-webkit-text-fill-color"]="",r.res.style["-webkit-text-fill-color"]="",r.res.style.textShadow="#1abc9cff -6px 6px , #1abc9c40 -12px 12px",r.res.textContent=r.text))};window.addEventListener("resize",n),n()}},{key:"cssGen",value:function(e,t,r,n){return this.css=[""],[""]}},{key:"chainReact",value:function(e,t,r){var n=this;this.cssGen(e,t,this.class,void 0!==this.class),this.ap=!1,this.cta=0,this.once=!1;var s,a=o(e);try{for(a.s();!(s=a.n()).done;){var l=s.value;l.range||(l.range=["0px","999999px"])}}catch(e){a.e(e)}finally{a.f()}e.sort((function(e,t){return parseInt(e.range[0])-parseInt(t.range[0])}));var c=function(){var s=window.visualViewport.width,a=[],l=[];n.resCopy=n.res,n.storedQueries=e.map((function(e){return e.target})).filter((function(e){return null!=e}));var c,u=o(e);try{for(u.s();!(c=u.n()).done;){var d=c.value;n.counterIndex++;var h=i(d.range,2),p=h[0],f=h[1],y=parseInt(p),m=parseInt(f),v=!0;if(d.target){v=!1;for(var b=0;b<d.target.length;b++)d.target[b]===t&&(v=!0)}s>=y&&s<=m&&v&&(a.push(d.log),l.push(d),d.op&&d.op.margin&&(n.useMargin=d.op.margin))}}catch(e){u.e(e)}finally{u.f()}if(r&&!r.includes("background")&&(n.res.style.background="",n.res.style.backgroundColor=""),n.res.style.textShadow="",r&&!r.includes("border")&&(n.res.style.border=""),r&&!r.includes("margin")&&(n.res.style.margin=""),n.res.style["-webkit-text-fill-color"]="",n.res.style["-webkit-text-stroke-color"]="",n.res.style["-webkit-text-stroke-width"]="",n.res.style.filter="",(a.includes("gradient")||a.includes("shadow"))&&(n.res.style.position="relative",n.res.style.zIndex=-1),a.includes("blast")){var g,w=l.filter((function(e){return"blast"===e.log}))[0].op.color,k=null!==(g=l.filter((function(e){return"blast"===e.log}))[0].op.width)&&void 0!==g?g:"1px";"FlexRowLayoutElement"===n.getType()?n.res.style.border="".concat(k,"px solid orange"):(n.res.textContent=n.text,n.res.style["-webkit-text-fill-color"]="transparent",n.res.style["-webkit-text-stroke-color"]=w,n.res.style["-webkit-text-stroke-width"]="".concat(k))}if(a.includes("filter")){var x=l.filter((function(e){return"filter"===e.log}))[0].op.filter;n.res.style.filter=x}if(a.includes("background")&&(n.res.style.backgroundColor="green"),a.includes("gradient")&&(n.res.style["-webkit-text-fill-color"]="transparent",n.res.style.background=n.globalGradient,n.res.style["background-clip"]="text"),a.includes("shadow"))if("FlexRowLayoutElement"===n.getType());else{var _="",S=0;for(b=0;b<n.options.shadow.op.steps;b++)_+="drop-shadow(".concat(S+=3,"px ").concat(S,"px ").concat(S,"px gray) ");n.res.style.filter=_}if(a.includes("margin"))for(b=0;b<e.length;b++)if(e[b].op){var C=e[b].op.offsets;C&&void 0!==n.index&&(n.res.style.margin=C[Number(n.index)]+"px")}if(a.includes("animation")){if(n.options.animation&&!n.hasAnimated&&!n.options.animation.op.fireAt){n.hasAnimated=!0;var O=n.options.animation.op;n.res.animate(O.keyframesClose,{duration:0,fill:"forwards"}),n.res.animate(O.keyframesOpen,O.openOptions)}if(n.options.animation&&n.options.animation.op.fireAt&&n.options.animation.op.fireAt.endsWith("px")){var P=n.options.animation.op;n.res.animate(P.keyframesClose,{duration:0,fill:"forwards"});var j=function(){window.scrollY>parseFloat(P.fireAt)&&(n.res.animate(P.keyframesOpen,P.openOptions),window.removeEventListener("scroll",j))};window.addEventListener("scroll",j)}if(n.options.animation&&n.options.animation.op.fireAt&&"inview"===n.options.animation.op.fireAt){var E=n.options.animation.op;n.res.animate(E.keyframesClose,{duration:0,fill:"forwards"}),new IntersectionObserver((function(e,t){e.forEach((function(e){e.isIntersecting&&(n.res.animate(E.keyframesOpen,E.openOptions),t.disconnect())}))})).observe(n.res)}}};window.addEventListener("resize",c),c()}},{key:"maxWidth",value:function(e){return this.res.style.maxWidth=e,this}},{key:"removeQuotesFromFirstWord",value:function(e){return e.replace(/"([^"]+)":/g,"$1:")}},{key:"arrayMargin",value:function(e,t){return e.includes("left")&&(this.res.style.marginLeft=t),e.includes("right")&&(this.res.style.marginRight=t),e.includes("top")&&(this.res.style.marginTop=t),e.includes("bottom")&&(this.res.style.marginBottom=t),e.includes("all")&&(this.res.style.margin=t),t||(this.res.style.marginBottom=e),this}},{key:"navBarExpand",value:function(){return this.res.style.backgroundColor="green",this.res.animate([{transform:"scaleY(3.0)"}],{duration:2e3,iterations:1,fill:"both"}),this}},{key:"scrollFade",value:function(e,t){return this.res.style.visibility="hidden",this.faden(e,t,"scroll"),this}},{key:"expand",value:function(e){var t=this;return!1===this.state.isExpanded?"click"===e.on?this.res.addEventListener("click",(function(){t.innerExpand(e)})):this.innerExpand(e):this.innerExpandBack(e),this.state.isExpanded=!this.state.isExpanded,this}},{key:"move",value:function(e){var t=this;return"click"===e.on?this.res.addEventListener("click",(function(){t.moveUpa(e)})):("up"===e.direction&&this.moveUpa(e),"down"===e.direction&&this.moveDowna(e),this.state.isMovedUp=!this.state.isMovedUp,"left"===e.direction&&this.moveLeft(e)),this}},{key:"moveLeft",value:function(e){return this.res.animate([{transform:"translateX(0px)"},{transform:"translateX(-".concat(e.distance,")")}],{duration:900,iterations:e.iterations,fill:"both"}).play(),this}},{key:"moveUpa",value:function(e){return!1===this.state.isMovedUp?this.res.animate([{transform:"translateX(0px)"},{transform:"translateY(-".concat(e.distance,")")}],{duration:900,iterations:e.iterations,fill:"both"}).play():this.res.animate([{transform:"translateX(0px)"},{transform:"translateY(".concat(e.distance,")")}],{duration:900,iterations:e.iterations,fill:"both"}).play(),this}},{key:"moveDowna",value:function(e){return!1===this.state.isMovedDown?this.res.animate([{transform:"translateX(0px)"},{transform:"translateY(".concat(e.distance,")")}],{duration:900,iterations:e.iterations,fill:"both"}).play():this.res.animate([{transform:"translateX(0px)"},{transform:"translateY(-".concat(e.distance,")")}],{duration:900,iterations:e.iterations,fill:"both"}).play(),this}},{key:"moveUpaBack",value:function(e){return this.res.animate([{transform:"translateX(0px)"}],{duration:900,iterations:e.iterations,fill:"both"}).play(),this}},{key:"innerExpandBack",value:function(e){this.res.animate([{width:this.prevWidth,height:this.prevHeight}],{duration:900,iterations:e.iterations,fill:"both"})}},{key:"innerExpand",value:function(e){var t,r;return this.prevWidth=this.res.style.width,this.prevHeight=this.res.style.height,this.res.animate([{width:this.prevWidth,height:this.prevHeight},{width:null!==(t=e.width)&&void 0!==t?t:this.prevWidth,height:null!==(r=e.height)&&void 0!==r?r:this.prevHeight}],{duration:900,iterations:e.iterations,fill:"both"}),this}},{key:"fade",value:function(e){return this.res.style.visibility="hidden",this.faden(e.duration,e.from,"load"),e.finalOpacity&&(this.finalOpacity=e.finalOpacity),this}},{key:"faden",value:function(e,t,r){var n=this;return this.res.style.visibility="hidden",this.scrolled=!1,window.addEventListener(r,(function(){n.res.style.visibility="visible";var i=window.innerHeight;(n.res.getBoundingClientRect().top-i<=0||"load"==r)&&0==n.scrolled&&("left"==t&&n.res.animate([{transform:"translateX(-30px)"},{transform:"translateX(0px)"}],{duration:e,iterations:1}),"right"==t&&n.res.animate([{transform:"translateX(30px)"},{transform:"translateX(0px)"}],{duration:e,iterations:1}),"top"==t&&n.res.animate([{transform:"translateY(-30px)"},{transform:"translateY(0px)"}],{duration:e,iterations:1}),"bottom"==t&&n.res.animate([{transform:"translateY(30px)"},{transform:"translateY(0px)"}],{duration:e,iterations:1}),n.res.animate([{opacity:"0.0"},{opacity:"1.0"}],{duration:e,iterations:1}),n.scrolled=!0)})),this}}])&&l(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}()},790:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function i(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return o(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?o(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,a=!0,l=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){l=!0,s=e},f:function(){try{a||null==r.return||r.return()}finally{if(l)throw s}}}}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function s(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,a(n.key),n)}}function a(e){var t=function(e){if("object"!=n(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=n(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==n(t)?t:t+""}function l(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(l=function(){return!!e})()}function c(e){return c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},c(e)}function u(e,t){return u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},u(e,t)}r.d(t,{f:()=>d});var d=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t,r){return t=c(t),function(e,t){if(t&&("object"==n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,l()?Reflect.construct(t,r||[],c(e).constructor):t.apply(e,r))}(this,t)}return function(e,t){if("function"!=typeof t&&null!==t)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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&u(e,t)}(t,e),r=t,(o=[{key:"setup",value:function(e){return this.obj=e,this.animate=void 0===this.obj.animate||this.obj.animate,this.res=this.createSideNav(e),this.res.style.position="relative",this.res.style.zIndex=3,this.closed=!0,this}},{key:"toggleSideNav",value:function(e){this.closed=!this.closed;var t=this.res.children[0];if(this.closed)if(t.style.overflowX="hidden",e.style.opacity=1,this.animate){t.animate([{transform:"translateX(0)"},{transform:"translateX(100%)"}],{duration:300,fill:"forwards"});var r,n=-1,o=i(t.children);try{for(o.s();!(r=o.n()).done;){var s=r.value;if(n+=1,this.masterEL[n]){var a,l=i(s.children);try{for(l.s();!(a=l.n()).done;){var c=a.value,u=this.masterEL[n].options.animation;u&&this.mappedIDS.includes(c.id)&&c.animate(u.op.keyframesClose,u.op.closeOptions)}}catch(e){l.e(e)}finally{l.f()}}}}catch(e){o.e(e)}finally{o.f()}}else t.style.display="none";else{t.style.overflowX="none",t.children[1].style.border="1px solid orange";var d,h=-1,p=i(t.children);try{for(p.s();!(d=p.n()).done;){var f=d.value;h+=1;var y,m=i(f.children);try{for(m.s();!(y=m.n()).done;){var v=y.value;if(this.mappedIDS.includes(v.id)&&void 0!==this.masterEL[0]){var b=this.masterEL[h].options.animation;if(b){console.log("OPEN KEYFRAMES"),console.log(b.op.keyframesOpen);var g=b.op.openOptions;g.delay||(g.delay=1),g.duration||(g.duration=300),console.log(g),v.animate(b.op.keyframesOpen,g)}}}}catch(e){m.e(e)}finally{m.f()}}}catch(e){p.e(e)}finally{p.f()}e.style.opacity=0,this.animate?(t.style.display="flex",t.animate([{transform:"translateX(100%)"},{transform:"translateX(0)"}],{duration:300,fill:"forwards"})):t.style.display="flex"}}},{key:"createToggleButton",value:function(e){var t=document.createElement("button");return t.innerText="☰",t.style.padding="10px 20px",t.style.backgroundColor="transparent",t.style.color=null!=e?e:"#3498db",t.style.border="none",t.style.borderRadius="5px",t.style.cursor="pointer",t.style.zIndex=1,t.style.fontSize="1.6rem",t}},{key:"createCloseButton",value:function(e){var t=document.createElement("button");return t.innerText="×",t.style.fontSize="1.6rem",t.style.padding="10px 20px",t.style.backgroundColor="transparent",t.style.color=null!=e?e:"black",t.style.border="none",t.style.borderRadius="5px",t.style.cursor="pointer",t.style.zIndex=1,t.style.alignSelf="flex-end",t}},{key:"createSideNav",value:function(e){var t=this,r=document.createElement("div");r.style.display="flex",r.style.justifyContent="flex-end";var n=document.createElement("div");n.style.display="none",n.style.background=this.obj.background||"#1abc9c",n.style.height="100%",window.matchMedia("(max-device-width: 415px)").matches?n.style.width="100%":n.style.width=this.obj.width||"400px",n.style.position="fixed",n.style.right=0,this.animate&&(n.style.transform="translateX(100%)"),n.style.flexDirection="column",n.style.justifyContent="flex-start";var i=this.createToggleButton(this.obj.hamColour.opened),o=this.createCloseButton(this.obj.hamColour.closed);return i.addEventListener("click",(function(){return t.toggleSideNav(i)})),o.addEventListener("click",(function(){return t.toggleSideNav(i)})),n.appendChild(o),r.appendChild(n),r.appendChild(i),r}},{key:"items",value:function(e){this.masterEL=e.items.filter((function(e){return void 0!==e.link})),console.log("EXTRACT IDs"),console.log(e);var t=e.items.filter((function(e){return void 0===e.items})).map((function(e){return e.id}));if(this.mappedIDS=t,this.item=e,this.res.children[0].appendChild(e.render()),void 0!==this.masterEL[0]){console.log("ANNAX"),console.log(this.masterEL[0]);var r=this.masterEL[0].options.animation;if(r){var n,o=i(this.res.children[0].children);try{for(o.s();!(n=o.n()).done;){var s,a=i(n.value.children);try{for(a.s();!(s=a.n()).done;){var l=s.value;if(this.mappedIDS.includes(l.id)){var c=r.op.closeOptions;c.delay=0,console.log("ANNAX"),console.log("SETTING INITIAL STATE ZEROING THE DELAY"),console.log(r.op.keyframesClose),console.log(c),l.animate(r.op.keyframesClose,r.op.closeOptions)}}}catch(e){a.e(e)}finally{a.f()}}}catch(e){o.e(e)}finally{o.f()}}}return this}},{key:"toCode",value:function(){var e="new SideNav().setup(".concat(this.formatObj(this.obj),")");if(this.item){var t=this.item.toCode?this.item.toCode().join(""):this.formatObj(this.item);t=t.replace(/,\s*(\.set\(|\.add\()/g,"\n $1"),e+=".items(".concat(t,")")}return e}},{key:"formatObj",value:function(e){return JSON.stringify(e,null,2).replace(/"(\w+)"\s*:/g,"$1:")}},{key:"render",value:function(e){return e&&document.querySelector(e).appendChild(this.res),this.res}}])&&s(r.prototype,o),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,o}(r(762).y)},827:(e,t,r)=>{r.d(t,{I:()=>J});var n=r(16),o=r(130),s=r(219),a=r(828),l=r(734),c=r(897),u=r(69),d=r(304),h=r(790),p=r(463),f=r(148),y=(r(751),r(385)),m=r(898),v=r(877);function b(e){return b="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},b(e)}function g(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function w(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,k(n.key),n)}}function k(e){var t=function(e){if("object"!=b(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=b(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==b(t)?t:t+""}r(216);var x=function(){return e=function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"POST";!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.action=t,this.method=r,this.elements=[],this.formElement=document.createElement("form"),this.formElement.action=this.action,this.formElement.method=this.method},t=[{key:"add",value:function(e){var t=this;return this.elements=e,console.log("CODEA"),console.log(this.elements),console.log(this.elements.length),e.forEach((function(e){if(!e||"function"!=typeof e.render)throw new Error("Each element in the array must have a render method that returns an HTML DOM element.");t.formElement.appendChild(e.render())})),console.log(this.elements),this}},{key:"toCode",value:function(){var e=this.elements.map((function(e){return e.toCode()})),t=Object.entries(this.obj).map((function(e){var t=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o,s,a=[],l=!0,c=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=o.call(r)).done)&&(a.push(n.value),a.length!==t);l=!0);}catch(e){c=!0,i=e}finally{try{if(!l&&null!=r.return&&(s=r.return(),Object(s)!==s))return}finally{if(c)throw i}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return g(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?g(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(e,2),r=t[0],n=t[1],i="string"==typeof n?'"'.concat(n,'"'):n;return"".concat(r,": ").concat(i)})).join(", ");return console.log("FORM DQ"),console.log(e),["new Form().set({".concat(t,"}).add([ \n ").concat(e.join(", \n"),"])")]}},{key:"set",value:function(e){return this.obj=e,e.action&&this.setAction(e.action),e.method&&this.setMethod(e.method),this}},{key:"setAction",value:function(e){this.action=e,this.formElement.action=this.action}},{key:"setMethod",value:function(e){this.method=e,this.formElement.method=this.method}},{key:"render",value:function(e){return e&&document.querySelector(e).appendChild(this.formElement),this.formElement}}],t&&w(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}(),_=r(207);function S(e){return S="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},S(e)}function C(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,O(n.key),n)}}function O(e){var t=function(e){if("object"!=S(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=S(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==S(t)?t:t+""}var P=function(){return e=function e(t,r){if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.container=document.createElement("div"),this.elements=t,this.currentSlideIndex=0,this.buttons=r,!this.buttons){var n={leftButton:new _.$("L").set({url:"https://static-00.iconduck.com/assets.00/circle-arrow-left-icon-512x512-xp8okg5c.png",color:"#1abc9c",frame:{width:50,height:50},radius:"100%",arrayMargin:{sides:["all"],value:"1rem"}}),rightButton:new _.$("R").set({url:"https://static-00.iconduck.com/assets.00/arrow-right-circle-icon-2048x2048-m0qcnetg.png",color:"#1abc9c",frame:{width:50,height:50},radius:"100%",arrayMargin:{sides:["all"],value:"1rem"}})};this.buttons=n}this.createSlider(),this.init()},t=[{key:"toCode",value:function(){var e="new Slider([".concat(this.elements.map((function(e){return e.toCode()})),"], null)");return[e=e.replace(/,\s*\./g,".")]}},{key:"createSlider",value:function(){this.slider=document.createElement("div"),this.slider.style.width="100%",this.slider.style.height="400px",this.slider.style.margin="20px auto",this.slider.style.textAlign="center",this.slider.style.borderRadius="20px",this.slider.style.overflow="hidden",this.slider.style.position="relative";var e=document.createElement("div");this.slidesWrapper=e,e.style.display="flex",e.style.overflowX="scroll",e.style.scrollBehavior="smooth",e.style.scrollSnapType="x mandatory",this.elements.forEach((function(t,r){var n=document.createElement("div");n.setAttribute("class","slide"),n.style.display="flex",n.style.justifyContent="center",n.style.alignItems="center",n.style.flexShrink="0",n.style.width="100%",n.style.height="400px",n.style.background=r%2==0?"rgb(250, 246, 212)":"white",n.style.transformOrigin="center center",n.style.transform="scale(1)",n.style.scrollSnapAlign="center",n.appendChild(t.render()),e.appendChild(n)})),this.arrowPrev=this.buttons.leftButton.render(),this.arrowPrev.style.position="absolute",this.arrowPrev.style.left="10px",this.arrowPrev.style.top="50%",this.arrowPrev.style.transform="translateY(-50%)",this.arrowPrev.style.zIndex="1",this.arrowNext=this.buttons.rightButton.render(),this.arrowNext.style.position="absolute",this.arrowNext.style.right="10px",this.arrowNext.style.top="50%",this.arrowNext.style.transform="translateY(-50%)",this.arrowNext.style.zIndex="1";var t=document.createElement("div");t.style.position="absolute",t.style.bottom="10%",t.style.left="50%",t.style.width="200px",t.style.transform="translateX(-50%)",t.style.textAlign="center",this.elements.forEach((function(e,r){var n=document.createElement("a");n.style.display="inline-block",n.style.height="15px",n.style.width="15px",n.style.borderRadius="50%",n.style.backgroundColor="black",n.style.margin="0 10px",n.style.cursor="pointer",n.dataset.index=r,t.appendChild(n)})),this.slider.appendChild(this.arrowPrev),this.slider.appendChild(this.arrowNext),this.slider.appendChild(e),this.slider.appendChild(t),this.container.appendChild(this.slider),this.slidesWrapper=e,this.navLinks=t.querySelectorAll("a")}},{key:"init",value:function(){this.updateActiveSlide(),this.attachEventListeners()}},{key:"attachEventListeners",value:function(){var e=this;this.arrowPrev.addEventListener("click",(function(){e.moveToSlide(e.currentSlideIndex-1<0?e.elements.length-1:e.currentSlideIndex-1)})),this.arrowNext.addEventListener("click",(function(){e.moveToSlide((e.currentSlideIndex+1)%e.elements.length)})),this.navLinks.forEach((function(t){t.addEventListener("click",(function(r){r.preventDefault();var n=parseInt(t.dataset.index,10);e.moveToSlide(n)}))})),document.addEventListener("keydown",(function(t){"ArrowLeft"===t.key?e.moveToSlide(e.currentSlideIndex-1<0?e.elements.length-1:e.currentSlideIndex-1):"ArrowRight"===t.key&&e.moveToSlide((e.currentSlideIndex+1)%e.elements.length)}))}},{key:"moveToSlide",value:function(e){this.currentSlideIndex=e,this.updateActiveSlide()}},{key:"updateActiveSlide",value:function(){var e=this;this.navLinks.forEach((function(t,r){t.style.backgroundColor=r===e.currentSlideIndex?"green":"gray"}));var t=this.slidesWrapper.querySelector(".slide").offsetWidth;this.slidesWrapper.scrollTo({left:this.currentSlideIndex*t,behavior:"smooth"})}},{key:"render",value:function(e){if(!e)return this.slider;document.querySelector(e).appendChild(this.slider)}}],t&&C(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}(),j=r(959);function E(e){return E="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},E(e)}function T(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,A(n.key),n)}}function A(e){var t=function(e){if("object"!=E(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=E(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==E(t)?t:t+""}function R(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(R=function(){return!!e})()}function B(e){return B=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},B(e)}function L(e,t){return L=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},L(e,t)}var I=function(e){function t(e){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(r=function(e,t,r){return t=B(t),function(e,t){if(t&&("object"==E(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,R()?Reflect.construct(t,r||[],B(e).constructor):t.apply(e,r))}(this,t)).url=e,r.res=null,r.setup(),r}return function(e,t){if("function"!=typeof t&&null!==t)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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&L(e,t)}(t,e),r=t,(n=[{key:"setup",value:function(){this.res=document.createElement("video"),this.res.setAttribute("src",this.url),this.res.setAttribute("controls","controls")}},{key:"set",value:function(e){return this.options=e,e.radius&&(this.res.style.borderRadius="1rem"),e.width&&(this.res.style.width="".concat(e.width)),e.opacity&&(this.res.style.opacity=e.opacity),this}},{key:"size",value:function(e){return this.res.style.width=e,this}},{key:"toCode",value:function(){var e=JSON.stringify(this.options,null,4);return['new Video("'.concat(this.url,'").set(').concat(e,")")]}},{key:"render",value:function(e){if(!e)return this.res;document.querySelector(e).appendChild(this.res)}}])&&T(r.prototype,n),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n}(r(762).y),M=r(317),z=r(342),N=r(11),D=r(985),F=r(683);function W(e){return W="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},W(e)}function q(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function H(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?q(Object(r),!0).forEach((function(t){U(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):q(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function U(e,t,r){return(t=K(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function G(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,K(n.key),n)}}function K(e){var t=function(e){if("object"!=W(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=W(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==W(t)?t:t+""}var J=function(){return e=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)},t=[{key:"mapType",value:function(e){return["h1","h2","h3","h4","h5","h6"].includes(e.el.type)?this.mapText(e):"img"===e.el.type?this.mapImage(e):"a"===e.el.type?this.mapLink(e):"cards"===e.el.type?this.mapGrid(e):"free"===e.el.type?this.mapFree(e):"nav"===e.el.type?this.protoNav(e):"sideNav"===e.el.type?this.sideNav(e):"dropdown"===e.el.type?this.dropdown(e):"modal"===e.el.type?this.modal(e):"slider"===e.el.type?this.slider(e):"table"===e.el.type?this.table(e):"radio"===e.el.type?this.radio(e):"input"===e.el.type?this.input(e):"labelInput"===e.el.type?this.floatInput(e):"filePicker"===e.el.type?this.filePicker(e):"picker"===e.el.type?this.picker(e):"video"===e.el.type?this.video(e):"audio"===e.el.type?this.audio(e):"multiswitcher"===e.el.type?this.multiswitcher(e):"button"===e.el.type?this.button(e):"form"===e.el.type?this.form(e):"checkbox"===e.el.type?this.checkbox(e):"stack"===e.el.type?this.stack(e):"simple"===e.el.type?this.simple(e):void 0}},{key:"button",value:function(){return new _.$("Submit").set({fluidc:"S6",color:"white",background:"#1abc9c",arrpad:{sides:["all"],value:".3rem"},radius:".3rem",onTap:function(){alert("Nice")},keySet:{key:"border",value:"3px solid green"}})}},{key:"multiswitcher",value:function(){return(new c.i).set({breakpoints:[{at:"0px",view:new n.E("First").set({})},{at:"700px",view:new n.E("Nice").set({})},{at:"800px",view:new n.E("Best").set({})}]})}},{key:"video",value:function(){return new I("https://www.w3schools.com/html/mov_bbb.mp4").set({})}},{key:"audio",value:function(){return new j.f("rouska.mp3").set({background:"#1abc9c"})}},{key:"radio",value:function(e){return(new y.z).set({items:["Male","Female","Third shit"],multiple:!0})}},{key:"input",value:function(e){return(new TextField).set({type:"text",placeholder:"Enter swimming time",arrayMargin:{sides:["all"],value:"1rem"}})}},{key:"floatInput",value:function(e){return(new f.l).set({title:"Your name",type:"input"})}},{key:"filePicker",value:function(e){return(new v.I).set({id:"A",title:"Add profile picture",background:"#3498DB",color:"white",font:"Arial",radius:"3rem",accept:"application/pdf"})}},{key:"picker",value:function(e){return(new m.L).set({items:[["none","select a car---"],["tesla","Tesla"],["audi","Audi"]],font:"Arial",arrayPadding:{sides:["all"],value:"0.5rem"},rounded:!0})}},{key:"modal",value:function(e){}},{key:"slider",value:function(e){var t=[(new d.m).set({}).add([new n.E("One").set({fluidc:"S1",color:"#1abc9c",font:"Arial"}),new n.E("First time").set({font:"Arial"})]),new n.E("Two").set({fluidc:"S1",color:"#1abc9c",font:"Arial"}),new n.E("Three").set({fluidc:"S1",color:"#1abc9c",font:"Arial"}),new n.E("Four").set({fluidc:"S1",color:"#1abc9c",font:"Arial"})];return new P(t,null)}},{key:"dropdown",value:function(e){e.el.items||(e.el.items=["Flower","Car","Maseratti"]);var t=e.el.items.map((function(e){return(new s.N).set({pad:[{a:10}],font:"Arial",bold:!0,link:"https://www.apple.com",text:e,icon:{padding:30,url:"https://cdn-icons-png.flaticon.com/512/32/32339.png"},hover:{color:"wheat",animation:.3}})}));return(new u.m).set({behaviour:"mouseover",pad:[{a:"1rem"}],mar:[{a:"1rem"}],border:"1px solid black",width:"180px",radius:"1rem"}).add([new n.E(e.el.items[0]).set({font:"Arial",fluidc:"S6",weight:"bold",align:"center",cursor:"hand",icon:{padding:30,url:"https://cdn-icons-png.flaticon.com/512/60/60995.png"},pad:[{l:10,r:10}]}),(new d.m).set({border:"1px solid green",background:"#1abc9c",radius:"0.7rem",socenter:!0}).add(t.slice(1))])}},{key:"protoNav",value:function(e){e.customOptions;var t=[{title:"Fire",link:"@e"},{title:"and",link:"@e"},{title:"smoke",link:"@e"}],r=t.map((function(e,t){return new s.N('"'.concat(e.title,'"')).set({fluidc:"S6",text:e.title,link:e.link,font:"Arial",pad:[{a:40}],bold:!0,hover:{color:"wheat",animation:.3}})})),i=t.map((function(e,t){return new s.N('"'.concat(e.title,'"')).set({fluidc:"S6",text:e.title,link:e.link,font:"Arial",pad:[{a:40}],bold:!0,hover:{color:"wheat",animation:.3},animation:{range:["0px","1900px"],op:{name:"animation",color:"green",width:"1px",keyframesOpen:[{transform:"translate(100%, ".concat(10*t,"%)"),opacity:0},{transform:"translate(0%)",opacity:1}],keyframesClose:[{transform:"translate(0%)",opacity:1},{transform:"translate(100%, ".concat(10*t,"%)"),opacity:0}],openOptions:{duration:300,fill:"forwards",delay:1e3},closeOptions:{duration:1,fill:"forwards",delay:1e3}}}})}));if(e.el.dropdown){var o=(new u.m).set({behaviour:"mouseover",pad:[{a:40}],padding:"10px",border:"1px solid black"}).add([new n.E("First").set({cursor:"hand",icon:{padding:30,url:"https://cdn-icons-png.flaticon.com/512/60/60995.png"},fluidc:"S6",pad:[{l:20,r:10}],font:"Arial",align:"center",weight:"bold"}),(new d.m).set({socenter:!0,radius:"0.7rem",background:"#1abc9c",makeResponsiveBehaviour:"undefined"}).add([(new s.N).set({pad:[{a:10}],font:"Arial",hover:{color:"wheat",animation:.3},bold:!0,link:"https://www.apple.com",text:"Second",icon:{padding:30,url:"https://cdn-icons-png.flaticon.com/512/32/32339.png"}}),(new s.N).set({pad:[{a:10}],font:"Arial",hover:{color:"wheat",animation:.3},bold:!0,link:"https://www.apple.com",text:"Third",icon:{padding:30,url:"https://cdn-icons-png.flaticon.com/512/32/32339.png"}})])]);i.push(o),r.push(o)}return e.el.animation,(new c.i).set({breakpoints:[{at:"0px",view:(new l.m).set({background:"green",mar:[{a:21}],brand:new n.E("A").set({size:"S1"}),hamburgerColour:"#3498db",radius:"1rem"}).add([new s.N("A").set({text:"A",url:"#a"}),(new u.m).set({behaviour:"mouseover",pad:[{a:40}],mar:[{lr:"auto"}],breakpoint:"1200px",padding:"10px",border:"1px solid black",height:"auto"}).add([new n.E("First").set({cursor:"hand",icon:{padding:30,url:"https://cdn-icons-png.flaticon.com/512/60/60995.png"},fluidc:"S6",pad:[{l:10,r:10}],font:"Arial",align:"center",weight:"bold"}),new n.E("Firsti").set({cursor:"hand",fluidc:"S6",pad:[{l:10,r:10}],font:"Arial",align:"center",weight:"bold"}),new n.E("Firstiuu").set({cursor:"hand",fluidc:"S6",pad:[{l:10,r:10}],font:"Arial",align:"center",weight:"bold"})]),new s.N("B").set({text:"B",url:"#b"}),new s.N("C").set({text:"C",url:"https://www.abcnews.com"})])},{at:"1200px",view:(new a.C).set({background:"green",mar:[{a:21}],maxHeight:"100px",radius:"1rem"}).add([new n.E("A").set({size:"S1"}),new p.h(!0),(new u.m).set({behaviour:"mouseover",pad:[{a:40}],padding:"10px",border:"1px solid black",radius:"30px",width:"130px"}).add([new n.E("First").set({cursor:"hand",icon:{padding:30,url:"https://cdn-icons-png.flaticon.com/512/60/60995.png"},fluidc:"S6",pad:[{l:10,r:10}],font:"Arial",align:"center",weight:"bold"}),(new d.m).set({flexDir:"column",background:"orange",mar:[{t:"10px"}],radius:".3rem"}).add([new s.N("").set({text:"A",url:"jk",cursor:"hand",fluidc:"S6",pad:[{l:10,r:10}],font:"Arial",align:"center",weight:"bold"}),new s.N("").set({text:"Kivi new TV",url:"#u",cursor:"hand",fluidc:"S6",pad:[{l:10,r:10}],font:"Arial",align:"center",weight:"bold"}),new s.N("").set({text:"Thanks GPT",url:"#u",cursor:"hand",fluidc:"S6",pad:[{l:10,r:10}],font:"Arial",align:"center",weight:"bold"})])]),new s.N("Desktop bar").set({text:"Desktop bar",url:"#a"}),new s.N("B").set({text:"B",url:"#a"}),new s.N("C").set({text:"C",url:"#a"})])}]})}},{key:"sideNav",value:function(e){e.customOptions;var t=[{title:"Home",link:"@e"},{title:"Projects",link:"@e"},{title:"Services",link:"@e"}],r=t.map((function(e,t){return new s.N('"'.concat(e.title,'"')).set({fluidc:"S4",text:e.title,link:e.link,isNavA:!0,url:"#e",id:"#"+e.title.toLowerCase(),font:"Arial",pad:[{a:20}],bold:!0,align:"left"})})),i=(new u.m).set({behaviour:"mouseover",pad:[{a:40}],padding:"10px",border:"1px solid black",animation:{range:["0px","1900px"],op:{name:"animation",color:"green",width:"1px",keyframesOpen:[{transform:"translate(100%, ".concat(10,"%)"),opacity:0},{transform:"translate(0%)",opacity:1}],keyframesClose:[{transform:"translate(0%)",opacity:1},{transform:"translate(100%, ".concat(10,"%)"),opacity:0}],openOptions:{duration:300,fill:"forwards",delay:1e3},closeOptions:{duration:1,fill:"forwards",delay:1e3}}}}).add([new n.E("First").set({cursor:"hand",icon:{padding:30,url:"https://cdn-icons-png.flaticon.com/512/60/60995.png"},fluidc:"S6",pad:[{l:10,r:10}],font:"Arial",align:"center",weight:"bold"}),(new d.m).set({socenter:!0,radius:"0.7rem",background:"#1abc9c",makeResponsiveBehaviour:"undefined"}).add([(new s.N).set({pad:[{a:10}],font:"Arial",hover:{color:"wheat",animation:.3},bold:!0,link:"https://www.apple.com",text:"Second",icon:{padding:30,url:"https://cdn-icons-png.flaticon.com/512/32/32339.png"}}),(new s.N).set({pad:[{a:10}],font:"Arial",hover:{color:"wheat",animation:.3},bold:!0,link:"https://www.apple.com",text:"Third",icon:{padding:30,url:"https://cdn-icons-png.flaticon.com/512/32/32339.png"}})])]),o=t.map((function(e,t){return new s.N('"'.concat(e.title,'"')).set({fluidc:"S4",text:e.title,link:e.link,isNavA:!0,url:"#e",id:"#"+e.title.toLowerCase(),font:"Arial",pad:[{a:20}],bold:!0,align:"left",animation:{range:["0px","1900px"],op:{name:"animation",color:"green",width:"1px",keyframesOpen:[{transform:"translate(100%, ".concat(10*t,"%)"),opacity:0},{transform:"translate(0%)",opacity:1}],keyframesClose:[{transform:"translate(0%)",opacity:1},{transform:"translate(100%, ".concat(10*t,"%)"),opacity:0}],openOptions:{duration:300,fill:"forwards",delay:1e3},closeOptions:{duration:1,fill:"forwards",delay:1e3}}}})}));e.el.dropdown&&(o.push(i),r.push(i));var a=(new d.m).set({column:!0}).add([new n.E("Ultra Reckoning").set({fluidc:"S6",font:"Arial",id:"#olod",italic:!0,animation:{range:["0px","1900px"],op:{name:"animation",color:"green",width:"1px"}},pad:[{l:40},{t:20}]}),e.el.animation?o[0]:r[0],e.el.animation?o[1]:r[1],e.el.animation?o[2]:r[2],e.el.animation&&e.el.dropdown?o[3]:new n.E("").set({}).excludeFromCode(),new n.E("Paramount, 2024").set({pad:[{a:20}],animation:{range:["0px","1900px"],op:{name:"animation",color:"green",width:"1px"}}})]),l=(new d.m).set({column:!0}).add([new n.E("Off canvas").set({fluidc:"S6",font:"Arial",id:"#olod",italic:!0,animation:e.el.animation?{range:["0px","1900px"],op:{name:"animation",color:"green",width:"1px"}}:null,pad:[{l:40},{t:20}]})]);return(new h.f).setup({animate:!0,radius:"1rem",isSide:!0,background:"#ecf0f1",hamColour:{opened:"#1abc9c",closed:"#e67e22"},mobileSize:"1.2em"}).items(e.el.offcanvas?l:a)}},{key:"mapFree",value:function(e){var t=e.customOptions.filter((function(e){return"slayout"===e.op.name||"layout"===e.op.name}))[0],r=null,i={cols:6,rows:6};return"text-above-image"!==t.op.value&&"image-above-text"!==t.op.value||(r=null,i=null),"image-overlay-text"===t.op.value&&(r={text:{row:"1 / span 2",col:"3 / span 2"},image:{row:"2 / span 3",col:"3 / 3"}}),"image-leftof-text"===t.op.value&&(r={text:{row:"1",col:"1 / 3"},image:{row:"1",col:"3 / 4"}}),(new M.b).set({id:"#3",templateCols:i,height:"600px"}).add([new n.E("I am free").set({border:"3px solid green",font:"Arial",fluidc:"S1",color:"#1abc9c",gpos:null!=r?r.text:null,zIndex:1}),new o._("https://www.cruisemapper.com/images/ships/2183-e9681865a61.jpg").set({url:"https://www.cruisemapper.com/images/ships/2183-e9681865a61.jpg",width:"400px",height:"auto",gpos:null!=r?r.image:null})])}},{key:"mapText",value:function(e){var t,r=e.el;return new n.E(r.text||r.value).set({id:r.id,class:r.class,color:r.color,fluidc:this.getElType(r.type),font:null!==(t=r.font)&&void 0!==t?t:"Arial",stroke:this.filtero("blast",r.id,e.customOptions),gradient:this.filtero("gradient",r.id,e.customOptions),animation:this.filtero("animation",r.id,e.customOptions),shadow:this.filtero("shadow",r.id,e.customOptions),span:this.filtero("span",r.id,e.customOptions),backgroundOp:this.filtero("background",r.id,e.customOptions),marginOp:this.filtero("margin",r.id,e.customOptions),transform:this.filtero("transform",r.id,e.customOptions)})}},{key:"mapImage",value:function(e){var t=e.el;return new o._(t.url).set(H(H({},t),{},{isFull:t.isFull,animation:this.filtero("animation",t.id,e.customOptions),shadow:this.filtero("shadow",t.id,e.customOptions),marginOp:this.filtero("margin",t.id,e.customOptions),filtera:this.filtero("filter",t.id,e.customOptions)}))}},{key:"mapLink",value:function(e){var t=e.customOptions.filter((function(e){return"link-style"===e.op.name})),r=e.el;return e.el.id&&(r.id=e.el.id),e.el.link&&e.el.text&&(r.url=e.el.link,r.text=e.el.text),r.keySet={key:"background",value:"shadow: 3px 3px solid green"},r.animation=this.filtero("animation",e.el.id,e.customOptions),r.class=e.el.class,r.width=e.el.width,r.font="Arial",r.fluidc=e.el.fluidc,r.index=e.i+"",r.shadow=this.filtero("shadow",e.el.id,e.customOptions),r.backgroundOp=this.filtero("background",e.el.id,e.customOptions),r.pad=[{a:10}],t.length>0?D.a.style({el:e.el,re:r,bst:t,options:e.customOptions})[t.length-1]:(new s.N).set(r)}},{key:"mapGrid",value:function(e){var t;console.log("OBJ IS"),console.log(e.storage);var r=[],n=null!==(t=e.customOptions.filter((function(e){return"card-style"===e.op.name}))[0])&&void 0!==t?t:{};r=F.Z.cards(e.el,n,e.storage);var i='new Card()\n .set({\n width: "300px", radius: "0.7rem", mar: { sides: ["all"], value: "0.8rem" }})\n .items(['.concat(r.join(",")," \n ])");e.el.backgroundCard&&(i='new ZoomCard().set({url: "https://img.freepik.com/free-photo/seascape-texture-waves-water-generative-ai_169016-30500.jpg", font: "Arial", mar: { sides: ["all"], value: "0.8rem" }, inpad: "1rem", useBrightness: true})\n .items([ \n '.concat(r.join(","),",\n ]), \n"));var o=Array(3).fill(i);return'\n \n new FlexGrid()\n .set({colat: "700px", wrap: true, align: "center"}) \n .items(['.concat(o,"])\n \n")}},{key:"mapCDiv",value:function(e){if(e.customOptions,rta){var t=el;t.makeResponsiveBehaviour=rta.op.hash[0].l,t.index=i;var r={width:"200px",height:"100px"};if(ela=(new d.m).set(t),rta.op.hash[0].child){r.makeResponsiveBehaviour=rta.op.hash[0].child.l;var o=(new d.m).set(r).add([new n.E("Hello")]);ela=(new d.m).set(t).add([o])}}}},{key:"checkbox",value:function(e){return(new z.S).set({name:"acceptTerms",label:new n.E("Check it out!").set({size:"S6",color:"#1abc9c",font:"Arial"}),mar:"10px"})}},{key:"stack",value:function(e){return(new N.B).set({}).add([(new o._).set({url:"https://pbs.twimg.com/media/DwYvbCBVAAEKY_R.jpg"}),new n.E("Samuel Suresh").set({color:"#00ae56",font:"SF Pro Display",fluidc:"S2",pad:{sides:["top","left"],value:20}})])}},{key:"form",value:function(e){return(new x).set({action:"file.php"}).add([(new f.l).set({title:"Your name",type:"input",name:"name"}),(new f.l).set({title:"Your email",type:"input",name:"email",color:"#3498db",font:"Arial",mar:[{a:"1rem"}]}),(new y.z).set({name:"gender",items:["Male","Female","Third shit"],multiple:!1,tint:"#1abc9c",font:"Arial",exact:"3rem"}),(new m.L).set({name:"car",items:[["none","select a car---"],["tesla","Tesla"],["audi","Audi"]],font:"Arial",arrayPadding:{sides:["all"],value:"0.5rem"},radius:"1rem",background:"#1abc9c"}),(new v.I).set({id:"A",name:"image",title:"Add profile picture",background:"#3498DB",color:"white",font:"Arial",radius:"3rem"}),new _.$("Submit form").set({type:"submit",background:"#3498db",color:"white",weight:"bold",radius:"1rem",pad:[{a:"1rem"}],mar:[{b:"1rem"}]})])}},{key:"simple",value:function(e){return'new Simple()\n .set({ gap: "10px", height: "700px" })\n .react([\n {\n at: "0", // Default size\n color: "red",\n template: [\n "aaaaaa",\n "bbbbbb",\n "cccccc",\n "dddddd",\n "eeeeee",\n ],\n },\n {\n at: "768", // Medium screen size\n color: "blue",\n template: [\n "aa bbb",\n "aa bbb",\n "cc ddd",\n "ee ddd",\n ],\n },\n {\n at: "1024", // Large screen size\n color: "green",\n template: [\n "aaa bbb",\n "ccc ddd",\n "eee ddd",\n ],\n },\n ])\n .add([\n new Text("Hello A").set({size: "S1"}),\n new Text("Hello B").set({size: "S1"}),\n new Text("Hello C").set({size: "S1"}),\n new Text("Hello D").set({size: "S1"}),\n new Text("Hello E").set({size: "S1"})\n ])'}},{key:"getElType",value:function(e){return"S".concat(e.substr(1))}},{key:"filtero",value:function(e,t,r){return r.filter((function(t){return t.op.name===e})).filter((function(e){return!e.target||e.target.includes(t)}))[0]}}],null&&G(e.prototype,null),t&&G(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}()},828:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function i(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,o(n.key),n)}}function o(e){var t=function(e){if("object"!=n(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=n(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==n(t)?t:t+""}function s(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(s=function(){return!!e})()}function a(){return a="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,r){var n=function(e,t){for(;!{}.hasOwnProperty.call(e,t)&&null!==(e=l(e)););return e}(e,t);if(n){var i=Object.getOwnPropertyDescriptor(n,t);return i.get?i.get.call(arguments.length<3?e:r):i.value}},a.apply(null,arguments)}function l(e){return l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},l(e)}function c(e,t){return c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},c(e,t)}r.d(t,{C:()=>u});var u=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=function(e,t,r){return t=l(t),function(e,t){if(t&&("object"==n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,s()?Reflect.construct(t,r||[],l(e).constructor):t.apply(e,r))}(this,t)).navbar=document.createElement("nav"),e.navbar.classList.add("desktop-navbar"),e.navbarHeader=document.createElement("div"),e.navbarHeader.classList.add("navbar-header"),e.brand=document.createElement("div"),e.brand.classList.add("navbar-brand"),e.navContent=document.createElement("div"),e.navContent.classList.add("navbar-content"),e.navContent.style.width="100%",e.navbarHeader.appendChild(e.brand),e.navbarHeader.appendChild(e.navContent),e.navbar.appendChild(e.navbarHeader),e.res=e.navbar,e}return function(e,t){if("function"!=typeof t&&null!==t)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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&c(e,t)}(t,e),r=t,o=[{key:"set",value:function(e){var r,n,i;return console.warn(e),this.obj=e,e.background&&(this.res.style.backgroundColor=e.background),e.mar&&(r=t,n=this,"function"==typeof(i=a(l(1&3?r.prototype:r),"mar",n))?function(e){return i.apply(n,e)}:i)([e.mar]),e.brand&&this.setBrand(e.brand),e.radius&&(this.res.style.borderRadius=e.radius),e.maxHeight&&(this.res.style.maxHeight=e.maxHeight),e.hamburgerColour&&(this.hamburgerColour=e.hamburgerColour),this.setStyles(),this}},{key:"setStyles",value:function(){this.navbar.style.display="flex",this.navbar.style.flexDirection="column",this.navbar.style.padding="1rem",this.navbar.style.backgroundColor="#333",this.navbar.style.color="white",this.navbarHeader.style.display="flex",this.navbarHeader.style.alignItems="center",this.navbarHeader.style.justifyContent="space-between",this.navbarHeader.style.width="100%",this.brand.style.fontSize="1.5rem",this.navContent.style.display="flex",this.navContent.style.gap="1rem"}},{key:"setBrand",value:function(e){return console.warn("SETA"),console.log(e),this.brand.innerHTML="",this.brand.appendChild(e),this}},{key:"add",value:function(e){this.items=e;for(var t=0;t<e.length;t++)e[t],this.navContent.appendChild(e[t].render());return this}},{key:"toCode",value:function(){console.warn(this.items);var e=this.items.map((function(e){return e.toCode()})).flatMap((function(e){return e}));return console.log("ITSA"),console.log(e),console.log("".concat(e.join(","))),"new DesktopBar().set(".concat(this.removeQuotesFromFirstWord(JSON.stringify(this.obj)),").add([\n ").concat(e.join(","),"\n\n \n \n\n ])")}},{key:"render",value:function(e){return e&&document.querySelector(e).appendChild(this.navbar),this.navbar}}],o&&i(r.prototype,o),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,o}(r(762).y)},877:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function i(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,o(n.key),n)}}function o(e){var t=function(e){if("object"!=n(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=n(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==n(t)?t:t+""}function s(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(s=function(){return!!e})()}function a(e){return a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},a(e)}function l(e,t){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},l(e,t)}r.d(t,{I:()=>c});var c=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=function(e,t,r){return t=a(t),function(e,t){if(t&&("object"==n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,s()?Reflect.construct(t,r||[],a(e).constructor):t.apply(e,r))}(this,t)).el=null,e.file=null,e}return function(e,t){if("function"!=typeof t&&null!==t)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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&l(e,t)}(t,e),r=t,(o=[{key:"set",value:function(e){var t=this;this.options=e,this.okayColor=e.okayColor,window.matchMedia("(max-device-width: 415px)");var r=document.createElement("div");r.style.paddingBottom="1em",r.style.display="flex",document.createElement("div");var n=document.createElement("input");n.setAttribute("type","text"),n.style.display="none",n.style.margin="0.5em";var i=document.createElement("input");i.setAttribute("type","file"),i.setAttribute("name",e.name),e.accept&&(i.accept=e.accept),i.setAttribute("id",e.id),i.style.visibility="hidden",i.style.display="none",window.matchMedia("(max-device-width: 415px)").matches&&(i.style.fontSize="1rem");var o=document.createElement("label");return o.setAttribute("for",e.id),o.innerText=e.title,o.style.marginRight=12,o.style.padding="0.5em",e.color&&(o.style.color=e.color),e.background&&(o.style.background=e.background,o.style.padding="10"),i.addEventListener("change",(function(){n.style.display="block",e.hideField&&(n.style.display="none"),o.innerText="Change",t.file=i.files[0],t.onLoad(t.file),u[e.index]=t.file,n.setAttribute("value",t.file.name),n.setAttribute("readonly","true"),t.getLoaded(),t.highlight()})),r.appendChild(i),r.appendChild(o),r.appendChild(n),this.el=r,e.font&&this.font(e.font),e.radius&&this.borderRadius(e.radius),this}},{key:"borderRadius",value:function(e){return this.el.style.borderRadius=e,this}},{key:"addClass",value:function(e){return this.el.setAttribute("class",e),this}},{key:"font",value:function(e){return this.el.style.fontFamily=e,this}},{key:"bold",value:function(){return this.el.style.fontWeight="bold",this}},{key:"rounded",value:function(){return this.el.children[1].style.borderRadius="8px",this}},{key:"highlight",value:function(){return null===this.file?(this.hasFile=!1,this.el.children[1].style.background="red"):(this.hasFile=!0,this.okayColor?this.el.children[1].style.background=this.okayColor:this.el.children[1].style.background="#1abc9c"),this}},{key:"auto",value:function(){var e=function(){window.matchMedia("(max-device-width: 415px)").matches};return e(),window.addEventListener("resize",e),this}},{key:"onLoad",value:function(e){return this.returnObject(this.file),this}},{key:"getLoaded",value:function(){return this.file}},{key:"returnObject",value:function(e){return e}},{key:"loadCall",value:function(e){return this.func=e,this.func(this.file),this}},{key:"toCode",value:function(){var e=JSON.stringify(this.options,null,4);return e=e.replace(/"(\w+)"(?=\s*:)/g,"$1"),["new FilePickera().set(".concat(e,")")]}},{key:"render",value:function(e){return e?(document.querySelector(e).appendChild(this.el),this):this.el}}])&&i(r.prototype,o),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,o}(r(762).y),u=[]},897:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function o(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?i(Object(r),!0).forEach((function(t){s(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function s(e,t,r){return(t=l(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,l(n.key),n)}}function l(e){var t=function(e){if("object"!=n(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=n(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==n(t)?t:t+""}function c(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(c=function(){return!!e})()}function u(e){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},u(e)}function d(e,t){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},d(e,t)}r.d(t,{i:()=>h});var h=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=function(e,t,r){return t=u(t),function(e,t){if(t&&("object"==n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,c()?Reflect.construct(t,r||[],u(e).constructor):t.apply(e,r))}(this,t)).breakpoints=[],e.container=null,e.currentView=null,e.internalDiv=null,e.resizeListener=null,e}return function(e,t){if("function"!=typeof t&&null!==t)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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&d(e,t)}(t,e),r=t,i=[{key:"set",value:function(e){var t=e.breakpoints;if(this.options={breakpoints:t},!Array.isArray(t))throw new Error("Breakpoints should be an array of objects with 'at' and 'view' properties.");return this.breakpoints=t.map((function(e){if("string"!=typeof e.at||!(e.view.render()instanceof HTMLElement))throw new Error("Each breakpoint must have 'at' as a string and 'view' as an HTMLElement.");return o(o({},e),{},{at:parseInt(e.at,10)})})),this.breakpoints.sort((function(e,t){return e.at-t.at})),this}},{key:"toCode",value:function(){JSON.stringify(this.options.breakpoints.map((function(e){return e.view.toCode()})).flat(),null,4),JSON.stringify(this.options.breakpoints.map((function(e){return e.at})),null,4),JSON.stringify(this.options.breakpoints,null,4);for(var e="",t=0;t<this.options.breakpoints.length;t++)e+='{ at: "'.concat(this.options.breakpoints[t].at,'", view: ').concat(this.options.breakpoints[t].view.toCode()," }, \n");return["new Switcher().set({\n breakpoints: [\n ".concat(e,"\n ]\n })")]}},{key:"render",value:function(e){return this.internalDiv=document.createElement("div"),this.applyView(),this.resizeListener=this.applyView.bind(this),window.addEventListener("resize",this.resizeListener),void 0!==e&&document.querySelector(e).appendChild(this.internalDiv),this.internalDiv}},{key:"createRanges",value:function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:99999,r=[],n=0;n<e.length;n++)r.push({from:e[n],to:n<e.length-1?e[n+1]-1:t});return r}},{key:"addRanges",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:99999;return e.map((function(e,n){var i=t[n],s=n<t.length-1?t[n+1]-1:r;return o(o({},e),{},{range:{from:i,to:s}})}))}},{key:"applyView",value:function(){var e=this;console.log("MAKE RANGES"),window.innerWidth,console.log(this.breakpoints),console.log(this.breakpoints.map((function(e){return e.at})));var t=this.breakpoints.map((function(e){return e.at})),r=this.breakpoints.map((function(e){return e.at})),n=(this.createRanges(r),this.addRanges(this.breakpoints,t));console.log(n),n.forEach((function(t){var r="(min-width: ".concat(t.range.from,"px) and (max-width: ").concat(t.range.to,"px)"),n=window.matchMedia(r);console.warn(r),n.matches&&(console.log("Viewport width is within the range: ".concat(t.range.from,"px to ").concat(t.range.to,"px")),e.currentView!==t.view.render()&&(e.internalDiv.innerHTML="",e.internalDiv.appendChild(t.view.render()),e.currentView=t.view.render()))})),console.log("MBO")}},{key:"destroy",value:function(){this.resizeListener&&(window.removeEventListener("resize",this.resizeListener),this.resizeListener=null),this.internalDiv&&this.container&&this.container.removeChild(this.internalDiv),this.container=null,this.currentView=null,this.internalDiv=null}}],i&&a(r.prototype,i),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,i}(r(762).y)},898:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function i(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,o(n.key),n)}}function o(e){var t=function(e){if("object"!=n(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=n(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==n(t)?t:t+""}function s(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(s=function(){return!!e})()}function a(e){return a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},a(e)}function l(e,t){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},l(e,t)}r.d(t,{L:()=>c});var c=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=function(e,t,r){return t=a(t),function(e,t){if(t&&("object"==n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,s()?Reflect.construct(t,r||[],a(e).constructor):t.apply(e,r))}(this,t)).el=null,e.file=null,e.selected="",e}return function(e,t){if("function"!=typeof t&&null!==t)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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&l(e,t)}(t,e),r=t,o=[{key:"setup",value:function(e,t){document.createElement("div");var r=document.createElement("select");r.setAttribute("type","file"),r.setAttribute("name",t),r.addEventListener("change",(function(){r.options[r.selectedIndex].value}));for(var n=0;n<e.length;n++)r.appendChild(this.addNode(e[n][0],e[n][1]));return this.el=r,this}},{key:"set",value:function(e){return this.options=e,e.items&&this.setup(e.items,e.name),e.arrayPadding&&this.arrayPadding(e.arrayPadding.sides,e.arrayPadding.value),e.arrayMargin&&this.arrayMargin(e.arrayMargin.sides,e.arrayMargin.value),e.pad&&this.pad(e.pad),e.mar&&this.mar(e.mar),e.radius&&(this.el.style.borderRadius=e.radius),e.background&&(this.el.style.background=e.background),this}},{key:"arrayPadding",value:function(e,t){return e.includes("left")&&(this.el.style.paddingLeft=t),e.includes("right")&&(this.el.style.paddingRight=t),e.includes("top")&&(this.el.style.paddingTop=t),e.includes("bottom")&&(this.el.style.paddingBottom=t),e.includes("all")&&(this.el.style.padding=t),this}},{key:"arrayMargin",value:function(e,t){return e.includes("left")&&(this.el.style.marginLeft=t),e.includes("right")&&(this.el.style.marginRight=t),e.includes("top")&&(this.el.style.marginTop=t),e.includes("bottom")&&(this.el.style.marginBottom=t),e.includes("all")&&(this.el.style.margin=t),this}},{key:"addNode",value:function(e,t){var r=document.createElement("option");r.setAttribute("value",e);var n=document.createTextNode(t);return r.appendChild(n),r}},{key:"padding",value:function(e){return this.el.style.padding=e,this}},{key:"font",value:function(e){return this.el.style.fontFamily=e,this}},{key:"margin",value:function(e){return this.el.style.margin=e,this}},{key:"toCode",value:function(){var e=JSON.stringify(this.options,null,4);return e=e.replace(/"(\w+)"(?=\s*:)/g,"$1"),["new Picker().set(".concat(e,")")]}},{key:"rounded",value:function(e){return this.el.style.borderRadius="4px",this}},{key:"auto",value:function(){var e=this,t=function(){window.matchMedia("(max-device-width: 415px)").matches?e.el.style.fontSize="3rem":e.el.style.fontSize="1rem"};return t(),window.addEventListener("resize",t),this}},{key:"render",value:function(e){if(!e)return this.el;document.querySelector(e).appendChild(this.el)}}],o&&i(r.prototype,o),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,o}(r(762).y);window.Picker=c},959:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function i(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,o(n.key),n)}}function o(e){var t=function(e){if("object"!=n(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=n(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==n(t)?t:t+""}function s(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(s=function(){return!!e})()}function a(e){return a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},a(e)}function l(e,t){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},l(e,t)}r.d(t,{f:()=>c});var c=function(e){function t(e){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(r=function(e,t,r){return t=a(t),function(e,t){if(t&&("object"==n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,s()?Reflect.construct(t,r||[],a(e).constructor):t.apply(e,r))}(this,t)).url=e,r.res=null,r.setup(),r}return function(e,t){if("function"!=typeof t&&null!==t)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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&l(e,t)}(t,e),r=t,(o=[{key:"setup",value:function(){this.res=document.createElement("audio"),this.res.setAttribute("src",this.url),this.res.setAttribute("controls","controls")}},{key:"set",value:function(e){return this.options=e,e.background&&this.background(e.background),this}},{key:"background",value:function(e){var t=document.createElement("style");return t.type="text/css",t.textContent="\n\taudio::-webkit-media-controls-panel {\n\t\tbackground-color: ".concat(e,";\n\t}\n"),document.head.appendChild(t),this}},{key:"toCode",value:function(){return JSON.stringify(this.options,null,4),['new Audio("'.concat(this.url,'")')]}},{key:"size",value:function(e){return this.res.style.width=e,this}},{key:"render",value:function(e){if(!e)return this.res;document.querySelector(e).appendChild(this.res)}}])&&i(r.prototype,o),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,o}(r(762).y)},985:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function i(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,o(n.key),n)}}function o(e){var t=function(e){if("object"!=n(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=n(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==n(t)?t:t+""}r.d(t,{a:()=>s});var s=function(){return e=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)},t=[{key:"style",value:function(e){for(var t=e.bst,r=e.el,n=e.re,i=(e.options,[]),o=0;o<t.length;o++)t[o].target&&(r.id,t[o].target[0]);for(o=0;o<t.length;o++){var s=!0;t[o].target&&(s=!1,r.id===t[o].target[0]&&(s=!0));var a=t[o].op.ops.split("-");s&&a.includes("air")&&(n.borderObj={color:"#1abc9c",radius:"0rem",width:"3px"},n.color="#1abc9c",n.background="transparent"),s&&a.includes("round")&&(a.includes("air")?n.borderObj={width:"4px",radius:"0.7rem",color:"#1abc9c"}:n.borderObj={width:"0px",radius:"0.7rem",color:"#1abc9c"}),s&&a.includes("full")&&(n.background="#3498db",n.borderObj&&n.borderObj.radius?n.borderObj.radius="0.3rem":n.color="white"),s&&a.includes("pill")&&(n.background="#3498db",n.borderObj.radius="9999px",n.color="white"),s&&a.includes("hover")&&(n.hover={color:"#1abc9c",background:"orange"}),i.push((new Link).set(n))}return i}}],null&&i(e.prototype,null),t&&i(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}()}},__webpack_module_cache__={};function __webpack_require__(e){var t=__webpack_module_cache__[e];if(void 0!==t)return t.exports;var r=__webpack_module_cache__[e]={exports:{}};return __webpack_modules__[e](r,r.exports,__webpack_require__),r.exports}__webpack_require__.d=(e,t)=>{for(var r in t)__webpack_require__.o(t,r)&&!__webpack_require__.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},__webpack_require__.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),__webpack_require__.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var __webpack_exports__={};__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{Animator:()=>animator.y,Audio:()=>audionew.f,Base:()=>Base,Button:()=>layout_button.$,Card:()=>Card,CardGen:()=>cardGetter.Z,Center:()=>Center,Checkbox:()=>layout_checkbox.S,Code:()=>Code,CustomDivRenderer:()=>CustomDivRenderer,DataList:()=>dataList.T,Des:()=>designer.H,DesktopBar:()=>betaDesktopBar.C,Dropdown:()=>dropdown2025.m,ElementMapper:()=>elementMapper.I,FilePickera:()=>imagePicker.I,FlexGrid:()=>FlexGrid,FlexRow:()=>FlexRow,Free:()=>free.b,HScroller:()=>HScroller,Image:()=>layout_image._,KeyframeAnim:()=>KeyframeAnim,Link:()=>layout_link.N,LinkStyler:()=>linkGetter.a,MetaAdder:()=>MetaAdder,MobileBar:()=>betaMobileBar.m,Modal:()=>Modal,Picker:()=>picker.L,Progress:()=>Progress,RadioGroup:()=>formComponents_radio.z,Range:()=>range.Q,ScrollVideo:()=>ScrollVideo,SideBar:()=>SideBar,SideNav:()=>sideNavBar.f,SimpleBar:()=>SimpleBar,Spacer:()=>spacer.h,Stack:()=>stack.B,Stacker:()=>Stacker,Switcher:()=>multiswitcher.i,Table:()=>Table,Text:()=>layout_text.E,TextField:()=>layout_TextField,TransformAnim:()=>TransformAnim,UINavBar:()=>UINavBar,Wrap:()=>Wrap,Wrapper:()=>container.m,ZoomCard:()=>ZoomCard});var elementMapper=__webpack_require__(827),animator=__webpack_require__(762);function _typeof(e){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof(e)}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _defineProperties(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,_toPropertyKey(n.key),n)}}function _createClass(e,t,r){return t&&_defineProperties(e.prototype,t),r&&_defineProperties(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function _toPropertyKey(e){var t=_toPrimitive(e,"string");return"symbol"==_typeof(t)?t:t+""}function _toPrimitive(e,t){if("object"!=_typeof(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=_typeof(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var Base=function(){return _createClass((function e(){_classCallCheck(this,e),this.oldLength=0}),[{key:"observe",value:function(e){return this.initialState=e,this.Proxima(e)}},{key:"Proxima",value:function(e){var t=this;return new Proxy(e,{set:function(e,r,n,i){return alert("Setting ".concat(n," to ").concat(i)),e[n]=i,this.initialState.data.push(n),"length"!==r&&t.refreshUI("Added"),!0},has:function(e,r,n,i){return"length"!==r&&t.refreshUI("Deleted"),Reflect.has(e,r)}})}},{key:"refreshUI",value:function(e){var t=this.initialState;this.adjustState(t)}},{key:"loadState",value:function(e,t){return this.loadEl=t,this.initialState=e,alert(this.initialState.data),this.observe(this.state.data)}},{key:"adjustState",value:function(e){document.querySelector(this.loadEl);var t=e[e.length-1],r=document.createElement("p"),n=document.createTextNode(t);r.appendChild(n),document.body.appendChild(r)}},{key:"toNode",value:function(e){var t=document.createElement("div");return t.innerHTML=e.trim(),t.firstChild}},{key:"reactState",value:function(){var e=document.querySelector("#res");alert(this.render());var t=this.toNode(this.toHTML());e.appendChild(t)}},{key:"mount",value:function(e){this.el=e,this.render(e).render(e)}},{key:"toCode",value:function(){return[""]}},{key:"toHTML",value:function(e){return this.render(e).render(e).innerHTML}}])}(),layout_text=__webpack_require__(16),layout_image=__webpack_require__(130),layout_link=__webpack_require__(219);function flexRow_typeof(e){return flexRow_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},flexRow_typeof(e)}function flexRow_classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function flexRow_defineProperties(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,flexRow_toPropertyKey(n.key),n)}}function flexRow_createClass(e,t,r){return t&&flexRow_defineProperties(e.prototype,t),r&&flexRow_defineProperties(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function flexRow_toPropertyKey(e){var t=flexRow_toPrimitive(e,"string");return"symbol"==flexRow_typeof(t)?t:t+""}function flexRow_toPrimitive(e,t){if("object"!=flexRow_typeof(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=flexRow_typeof(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function _callSuper(e,t,r){return t=_getPrototypeOf(t),_possibleConstructorReturn(e,_isNativeReflectConstruct()?Reflect.construct(t,r||[],_getPrototypeOf(e).constructor):t.apply(e,r))}function _possibleConstructorReturn(e,t){if(t&&("object"==flexRow_typeof(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(e)}function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _isNativeReflectConstruct(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(_isNativeReflectConstruct=function(){return!!e})()}function _superPropGet(e,t,r,n){var i=_get(_getPrototypeOf(1&n?e.prototype:e),t,r);return 2&n&&"function"==typeof i?function(e){return i.apply(r,e)}:i}function _get(){return _get="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,r){var n=_superPropBase(e,t);if(n){var i=Object.getOwnPropertyDescriptor(n,t);return i.get?i.get.call(arguments.length<3?e:r):i.value}},_get.apply(null,arguments)}function _superPropBase(e,t){for(;!{}.hasOwnProperty.call(e,t)&&null!==(e=_getPrototypeOf(e)););return e}function _getPrototypeOf(e){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},_getPrototypeOf(e)}function _inherits(e,t){if("function"!=typeof t&&null!==t)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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&_setPrototypeOf(e,t)}function _setPrototypeOf(e,t){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},_setPrototypeOf(e,t)}var FlexRow=function(e){function t(e,r){var n;return flexRow_classCallCheck(this,t),(n=_callSuper(this,t)).code=[],n.saveEl=r,n.frs=e,n.res=null,n.setup(),n.responsive(),n.code.push(" new FlexRow()"),n}return _inherits(t,e),flexRow_createClass(t,[{key:"getType",value:function(){return"FlexRowLayoutElement"}},{key:"set",value:function(e){this.options=e;var r=e;if(r.id="#ABC",r.gradient,r.pad&&this.pad(r.pad),r.mar&&this.mar(r.mar),r&&r.id&&r.stroke||r&&r.id&&r.gradient||r&&r.id&&r.span||r&&r.id&&r.backgroundOp){r.gradient&&(this.globalGradient=r.gradient.op.gradient),r.stroke&&_superPropGet(t,"setAny",this,3)([{globalBlast:"".concat(r.stroke.op.width," ").concat(r.stroke.op.color)}]);var n=[r.stroke,r.gradient,r.animation,r.span,r.backgroundOp];n=n.filter((function(e){return null!=e}));for(var i=[],o=0;o<n.length;o++)i.push({range:n[o].range,log:n[o].op.name,target:n[o].target});this.res.setAttribute("id",r.id),this.betaReact(i,r.id)}if(e.id&&this.res.setAttribute("id",e.id),this.code.push("\n .set({"),e.padding&&this.padding(e.padding),e.background&&(this.res.style.backgroundColor="#ecf0f1",this.res.style.cornerRadius="#3rem"),e.alignTo&&(this.res.style.justifyContent=e.alignTo),e.background&&(this.res.style.backgroundColor=e.background,this.code.push('\n background: "'.concat(e.background,'",'))),e.justify&&(this.res.style.justifyContent=e.justify,this.code.push('\n justify: "'.concat(e.justify,'",'))),e.border&&("top"===e.border[0]&&(this.res.style.borderTop="".concat(e.border[1]," solid white")),"all"===e.border[0]&&(this.res.style.border="".concat(e.border[1]," solid orange")),this.code.push('\n border: ["'.concat(e.border[0],'", "').concat(e.border[1],'"],'))),e.borderObj){this.borderObj(e.borderObj);var s=JSON.stringify(e.borderObj);this.code.push("\n borderObj: ".concat(s,","))}if(e.width&&(this.res.style.width=e.width),e.width&&this.code.push('\n width: "'.concat(e.width,'",')),e.height&&(this.res.style.height=e.height),e.height&&this.code.push('\n height: "'.concat(e.height,'",')),e.align&&(JSON.stringify(e.align),this.res.style.alignItems="flex-start",this.code.push('\n alignIts: "flex-start",'),this.res.style.alignItems="flex-start"),e.wrap&&this.wrap(),e.wrap&&this.code.push("\n wrap: true,"),e.alignIts){var a=JSON.stringify(e.alignIts);this.res.style.alignItems="flex-start",this.code.push("\n alignIts: ".concat(a,","))}return e.owrap&&this.onlyWrap(),e.owrap&&this.code.push("\n owrap: true,"),null!=e.owrap&&!1===e.owrap&&(this.res.style.flexWrap="nowrap",this.res.style.background="yellow"),e.columnAlways&&alert("JIJ"+e.columnAlways),e.toColumn&&this.toColumn(e.toColumn),e.column&&this.makeCol(),e.colat&&(e.colat&&this.toColumnAt(e.colat),this.code.push('\n colat: "'.concat(e.colat,'",'))),e.arrayPadding&&this.arrayPadding(e.arrayPadding.sides,e.arrayPadding.value),e.arrayMargin&&this.arrayMargin(e.arrayMargin.sides,e.arrayMargin.value),this.arrayMarginValue=e.arrayMargin,e.arrayMargin&&this.code.push("\n arrayMargin: {sides: [".concat(e.arrayMargin.sides.map((function(e){return'"'.concat(e,'"')})).join(", "),'], value: "').concat(e.arrayMargin.value,'"},')),e.multipad&&this.makeMultiPad(e.multipad),e.align&&this.makeJustify(e.justify),e.justify&&this.makeAlign(e.justify),"flex-start"===e.justifo&&(this.res.style.justifyContent="flex-start"),e.radius&&(this.res.style.borderRadius="1rem"),e.aligns&&this.aligns(e.aligns),this.code.push("\n })"),this}},{key:"setArea",value:function(e){return this.res.style.gridArea=e,this}},{key:"toColumnAt",value:function(e){var t=this;if(!this.columnAlways){var r=function(){var r=window.matchMedia("(max-width: ".concat(e,")")),n=window.matchMedia("(max-device-width: 415px)");r.matches||n.matches?t.res.style.flexDirection="column":t.res.style.flexDirection="row"};r(),window.addEventListener("resize",r)}return this}},{key:"onlyWrap",value:function(){return this.res.style.flexWrap="wrap",this.res.style.backgroundColor="green",this}},{key:"wrap",value:function(){return this.res.style.flexWrap="wrap",this.res.style.justifyContent="space-between",this}},{key:"aligns",value:function(e){return"start"===e&&(this.res.style.alignItems="flex-start"),"end"===e&&(this.res.style.alignItems="flex-end"),"center"===e&&(this.res.style.alignItems="center"),this}},{key:"toColumn",value:function(){return this.res.style.flexDirection="column",this}},{key:"toCode",value:function(){var e=JSON.stringify(this.options,null,4).replace(/"([^"]+)":/g,"$1:"),t=this.items.map((function(e){return e.toCode()})).join(",\n ");return["new FlexRow().set(".concat(e,").items([")," ".concat(t),"])"].join("\n")}},{key:"arrayPadding",value:function(e,t){return e.includes("left")&&(this.res.style.paddingLeft=t),e.includes("right")&&(this.res.style.paddingRight=t),e.includes("top")&&(this.res.style.paddingTop=t),e.includes("bottom")&&(this.res.style.paddingBottom=t),this}},{key:"borderAround",value:function(e){return this.res.style.border=e,this}},{key:"cornerRadius",value:function(e){return this.res.style.borderRadius=e,this}},{key:"makeJustify",value:function(e){return"start"===e&&(this.res.style.justifyContent="flex-start"),this}},{key:"makeAlign",value:function(e){return"center"===e?this.res.style.alignItems="center":this.res.style.justifyContent=e,this}},{key:"makeCol",value:function(){return this.res.style.flexDirection="column",this}},{key:"makeMultiPad",value:function(e){for(var t=0;t<e.length;t++)"left"===e[t].side&&(this.res.style.paddingLeft=e[t].value),"right"===e[t].side&&(this.res.style.paddingRight=e[t].value);return this}},{key:"padding",value:function(e){return this.res.style.padding=e,this}},{key:"center",value:function(){return this}},{key:"setClass",value:function(e){return this.res.setAttribute("class",e),this}},{key:"toCenter",value:function(e){return this.res.style.marginLeft="auto",this.res.style.marginRight="auto",this.res.setAttribute("class",e),this}},{key:"setup",value:function(){var e=document.createElement("div");return e.style.display="flex",e.style.justifyContent="space-around",e.style.alignItems="center",e.style.margin=0,this.res=e,this}},{key:"noSpaceAround",value:function(){return this.res.style.justifyContent="",this}},{key:"itemAlignCenter",value:function(){return this.res.style.justifyContent="center",this.res.style.alignItems="center",this}},{key:"arrayMargin",value:function(e,t){return t||(this.res.style.marginLeft="".concat(e[0],"px"),this.res.style.marginTop="".concat(e[1],"px"),this.res.style.marginRight="".concat(e[2],"px"),this.res.style.marginBottom="".concat(e[3],"px")),e.includes("left")&&(this.res.style.marginLeft="".concat(t,"px")),e.includes("right")&&(this.res.style.marginRight="".concat(t,"px")),e.includes("top")&&(this.res.style.marginTop="".concat(t,"px")),e.includes("bottom")&&(this.res.style.marginBottom="".concat(t,"px")),this}},{key:"frame",value:function(e){return this.res.style.width=e.width,this.res.style.height=e.height,window.matchMedia("(max-device-width: 415px)").matches&&e.mobile&&(this.res.style.width=e.mobile),this}},{key:"background",value:function(e){return this.res.style.background=e,this}},{key:"radius",value:function(e){return this.res.style.borderRadius="".concat(e,"px"),this}},{key:"shadow",value:function(e,t,r){return this.res.style.boxShadow="0px 1px 10px 0px rgb(145 145 145)",this}},{key:"onTap",value:function(e){return this.res.addEventListener("click",e),this}},{key:"items",value:function(e){this.els=e,this.items=e,this.code.push(".items([");for(var t=0;t<e.length;t++){if(null!=e[t])if(e[t].render instanceof Function){var r=e[t].render();this.res.appendChild(r)}else this.res.appendChild(e[t]);if(null!=e[t]&&e[t].render instanceof Function){var n=e[t].render();this.res.appendChild(n),void 0!==e[t].toCode&&this.code.push(e[t].toCode().flatMap((function(e){return e})))}}return this.code.push("])"),this}},{key:"adjustRatiosForLayout",value:function(){var e=this;return null==this.els[1].getWidth||null==this.els[1].getHeight||(window.addEventListener("resize",(function(){e.resizeValues()})),this.resizeValues()),this}},{key:"resizeValues",value:function(){var e=.7*window.innerWidth*(this.els[1].getHeight()/this.els[1].getWidth());this.res.children[0].style.height="".concat(e,"px"),this.res.children[0].style.width="30%",this.res.children[1].style.width="70%"}},{key:"responsive",value:function(e){var t=this,r=window.matchMedia("(max-device-width: 415px)");return window.innerWidth<e||r.matches?this.res.style.gridTemplateColumns="1fr":this.res.style.gridTemplateColumns="1fr 1fr",window.addEventListener("resize",(function(){window.innerWidth<e||r.matches?t.res.style.gridTemplateColumns="1fr":t.res.style.gridTemplateColumns="1fr 1fr"})),this}},{key:"render",value:function(e){if(!e)return this.res;document.querySelector(e).appendChild(this.res)}}])}(animator.y);function customDiv_typeof(e){return customDiv_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},customDiv_typeof(e)}function customDiv_classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function customDiv_defineProperties(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,customDiv_toPropertyKey(n.key),n)}}function customDiv_createClass(e,t,r){return t&&customDiv_defineProperties(e.prototype,t),r&&customDiv_defineProperties(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function customDiv_toPropertyKey(e){var t=customDiv_toPrimitive(e,"string");return"symbol"==customDiv_typeof(t)?t:t+""}function customDiv_toPrimitive(e,t){if("object"!=customDiv_typeof(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=customDiv_typeof(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var CustomDivRenderer=function(){return customDiv_createClass((function e(t,r){customDiv_classCallCheck(this,e),this.obj=t||{},this.items=r||[]}),[{key:"render",value:function(){var e=document.createElement("div");e.style.display="flex",e.style.width="100%",e.style.justifyContent="space-around",e.setAttribute("id","innerItemsWrapper");var t=window.matchMedia("(max-device-width: 415px)"),r=window.matchMedia("(max-width: 600px)");(t.matches||r.matches)&&(e.style.marginTop="3rem");for(var n=0;n<this.items.length;n++){var i=this.items[n];e.appendChild(i.render())}var o=document.createElement("div");return o.style.width=this.obj.isSide?"333px":"100%",o.style.background=this.obj.background||"white",o.style.display="flex",o.style.justifyContent="center",o.style.alignItems="center",o.style.height="100%",o.setAttribute("id","outerItemsWrapper"),o.appendChild(e),this.obj.customStyle&&(e.style.width="auto",e.style.top="0rem",e.style.borderRadius="1rem",e.style.background=this.obj.background||"white",e.style.margin="1rem",e.style.position="absolute",e.style.opacity=.8),o}}])}();function _readOnlyError(e){throw new TypeError('"'+e+'" is read-only')}function newNavBar_callSuper(e,t,r){return t=newNavBar_getPrototypeOf(t),newNavBar_possibleConstructorReturn(e,newNavBar_isNativeReflectConstruct()?Reflect.construct(t,r||[],newNavBar_getPrototypeOf(e).constructor):t.apply(e,r))}function newNavBar_possibleConstructorReturn(e,t){if(t&&("object"==newNavBar_typeof(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return newNavBar_assertThisInitialized(e)}function newNavBar_assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function newNavBar_isNativeReflectConstruct(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(newNavBar_isNativeReflectConstruct=function(){return!!e})()}function newNavBar_getPrototypeOf(e){return newNavBar_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},newNavBar_getPrototypeOf(e)}function newNavBar_inherits(e,t){if("function"!=typeof t&&null!==t)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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&newNavBar_setPrototypeOf(e,t)}function newNavBar_setPrototypeOf(e,t){return newNavBar_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},newNavBar_setPrototypeOf(e,t)}function _defineProperty(e,t,r){return(t=newNavBar_toPropertyKey(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function newNavBar_typeof(e){return newNavBar_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},newNavBar_typeof(e)}function newNavBar_classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function newNavBar_defineProperties(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,newNavBar_toPropertyKey(n.key),n)}}function newNavBar_createClass(e,t,r){return t&&newNavBar_defineProperties(e.prototype,t),r&&newNavBar_defineProperties(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function newNavBar_toPropertyKey(e){var t=newNavBar_toPrimitive(e,"string");return"symbol"==newNavBar_typeof(t)?t:t+""}function newNavBar_toPrimitive(e,t){if("object"!=newNavBar_typeof(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=newNavBar_typeof(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}window.CustomDivRenderer=CustomDivRenderer;var newNavBar_CustomDivRenderer=function(){return newNavBar_createClass((function e(t,r){newNavBar_classCallCheck(this,e),this.obj=t||{},this.items=r||[]}),[{key:"render",value:function(){var e=document.createElement("div");e.style.display="flex",e.style.width="100%",e.style.justifyContent="space-around",e.setAttribute("id","innerItemsWrapper");var t=window.matchMedia("(max-device-width: 415px)"),r=window.matchMedia("(max-width: 600px)");(t.matches||r.matches)&&(e.style.marginTop="3rem");for(var n=0;n<this.items.length;n++){var i=this.items[n];e.appendChild(i.render())}var o=document.createElement("div");return o.style.width=this.obj.isSide?"333px":"100%",o.style.background=this.obj.background||"white",o.style.display="flex",o.style.justifyContent="center",o.style.alignItems="center",o.style.height="100%",o.setAttribute("id","outerItemsWrapper"),o.appendChild(e),this.obj.customStyle&&(e.style.width="auto",e.style.top="0rem",e.style.borderRadius="1rem",e.style.background=this.obj.background||"white",e.style.margin="1rem",e.style.position="absolute",e.style.opacity=.8),o}}])}(),UINavBar=function(e){function t(e){var r;return newNavBar_classCallCheck(this,t),_defineProperty(r=newNavBar_callSuper(this,t),"addHamburger",(function(){var e=window.matchMedia("(max-device-width: 415px)"),t=document.createElement("button");t.setAttribute("id","hamburger"),t.style.border="none",t.style.fontWeight="bold",t.style.position="absolute",t.style.color="orange",t.style.backgroundColor="transparent",t.style.fontSize=e.matches?"2.1em":"2em";var n=document.createTextNode(r.symbol?r.symbol:"☰");return t.appendChild(n),t.style.marginLeft="auto",r.isShown=!1,t.addEventListener("click",(function(){r.isShown=!r.isShown,r.hasAnimatedToWide=!1;var e=r.items[0].options;if(e&&e.animation){var t=e.animation.op,n=r.res.children[0].children[1].children[0];if(t){if(r.isShown)for(var i=0;i<n.children.length;i++)n.children[i].animate(t.keyframesClose,{duration:1,fill:"forwards",delay:0}).onfinish=function(){n.parentElement.style.display="block"};else n.parentElement.style.display="none";for(i=0;i<n.children.length;i++){var o=n.children[i];o.animate(t.keyframesClose,{duration:1,fill:"forwards",delay:0}),r.isShown?o.animate(t.keyframesOpen,t.openOptions):o.animate(t.keyframesClose,t.closeOptions)}}}else r.isShown?innerItemsWrapper.parentElement.style.display="block":innerItemsWrapper.parentElement.style.display="none"})),t})),r.titleText="",r.hasHamburger=!1,r.code=[],r.attributes={},r}return newNavBar_inherits(t,e),newNavBar_createClass(t,[{key:"toCode",value:function(){var e="new UINavBar()";return Object.keys(this.attributes).length>0?e+=".setup(".concat(JSON.stringify(this.attributes,null,2).replace(/"([^"]+)":/g,"$1:"),")"):e+=".setup({})",e+=".items([\n",(e+=this.items.map((function(e){return e.toCode().join("").trim()})).join(",\n"))+"\n])"}},{key:"styled",value:function(e){return this.setup(e),this.styles=e,this}},{key:"setup",value:function(e){this.obj=e,this.obj.isSide||(this.obj.animate=!1),this.attributes=e;var t=document.createElement("div");t.setAttribute("id","sars"),t.style.padding=0,t.style.margin=0;var r=document.createElement("div");r.setAttribute("id","covid"),r.style.position="absolute",r.style.width="100%",r.style.zIndex=1,r.style.alignItems="flex-start";var n=document.createElement("div");return n.style.background="green",n.style.position="absolute",r.style.margin="20px",r.style.display="flex",r.style.alignItems="flex-end",r.style.margin=0,r.style.padding=0,r.style.margin=0,t.appendChild(r),this.addCloseButton=!1,this.res=t,e.background&&this.background({color:e.background}),e.openColor&&(this.openColor=e.openColor),e.sticky&&this.sticky(),e.pad&&this.pad(e.pad),e.hamburgerColour&&(this.hamburgerColour=e.hamburgerColour),e.mobileSize&&(this.mobileSize=e.mobileSize),e.desktopSize&&(this.desktopSize=e.desktopSize),e.height&&(this.res.children[0].style.height=e.height),this}},{key:"items",value:function(e){this.items=e;var t=["Link","Image","Spacer","Dropdown"].some((function(t){return e[0].__proto__.constructor.toString().startsWith("class ".concat(t))}));console.log(this.items),this.itemCount=e.length;var r=new newNavBar_CustomDivRenderer(this.obj,this.items).render();this.res.children[0].appendChild(r);var n=this.res.children[0].children[0].children[0],i=this.items[0].options;if(i&&i.animation){var o=i.animation.op;if(o){var s=window.matchMedia("(max-device-width: 415px)"),a=window.matchMedia("(max-width: 600px)");if(s.matches||a.matches){var l={duration:1,fill:"forwards",delay:1};for(c=0;c<n.children.length;c++)n.children[c].animate(o.keyframesClose,l)}else for(var c=0;c<n.children.length;c++)n.children[c].animate(o.keyframesClose,{duration:1,fill:"forwards",delay:1}),n.children[c].animate(o.keyframesOpen,o.openOptions)}}if(this.adjust(),!t){this.itemCount=e.length;var u=document.createElement("div");for(u.style.backgroundColor="orange",c=0;c<e.length;c++){var d=e[c];if(d.logo){var h=new Image(d.logo).width("100px"),p=document.createElement("div");p.style.flex="1",p.style.height=23;var f=document.createElement("div");f.setAttribute("id","WR"),f.style.display="flex",f.style.flexDirection="row",f.appendChild(h.render()),this.res.children[0].appendChild(h.render()),this.obj.spacing&&this.res.children[0].appendChild(p)}if(d.logo&&(this.allowPad=!0),d.logo&&this.obj.spacing&&(this.res.children[0].children[0].style.marginLeft=this.obj.spacing.sides,this.res.children[0].children[0].style.marginRight=this.obj.spacing.sides),d.title){var y=void 0;y=this.allowPad?d.type?new Dropdown(d.items,d.title):new Link(d.title,d.url).arrayPadding(["left","right"],"1em"):d.type?new Link("DRPA",d.url):new Link(d.title,d.url),u.appendChild(y.render())}}this.res.children[0].appendChild(u),this.adjust()}var m=this.addHamburger();return this.itemCount,this.obj.spacing,m.style.zIndex=1,1===this.res.children[0].children.length&&this.res.children[0].insertBefore(m,this.res.children[0].firstChild),this}},{key:"instance",value:function(){return this.res.children[0]}},{key:"sticky",value:function(){return this.res.children[0].style.position="fixed",this}},{key:"font",value:function(e){for(var t=0;t<this.res.children[0].children;t++)this.res.children[0].children[t].style.fontFamily=e;return this}},{key:"openSymbol",value:function(e){return this.symbol=e,this}},{key:"background",value:function(e){return e.background?(this.res.children[0].style.backgroundColor=e.color,this.res.children[0].style.opacity=e.opacity,this):(this.res.children[0].style.backgroundColor="transparent",this)}},{key:"transluescent",value:function(){return this.res.children[0].style.backgroundColor="rgba(255,255,255,0.72)",this}},{key:"keepItem",value:function(e){return this.keepItem=e,this}},{key:"adjust",value:function(e){var t=this,r=window.matchMedia("(max-width: 600px)"),n=window.matchMedia("(max-device-width: 415px)"),i=function(){t.isShown=!1,t.res.children[0],function(){for(var e=0;e<t.res.children[0].children.length;e++){var r=t.res.children[0].children[e];r.style.fontSize=n.matches?t.mobileSize?t.mobileSize:"1.2em":t.desktopSize?t.desktopSize:"1em","☰"===r.textContent&&(r.style.fontSize="2em")}}(),t.res.children[0].style.flexDirection="column";for(var e=0;e<t.res.children[0].children.length;e++)"☰"==t.res.children[0].children[e].textContent||t.res.children[0].children[e].textContent==t.keepItem?(t.res.children[0].children[e].id,t.res.children[0].children[e].style.display="flex"):t.res.children[0].children[e].style.display="none"};if(this.obj.isSide)i();else{var o=this.res.children[1];null!=o&&(o.style.background="yellow"),r.matches||n.matches?i():function(){t.res.children[0];for(var e=0;e<t.res.children[0].children.length;e++){var r=t.res.children[0].children[e];r.style.marginTop="0em",r.id,r.style.display="flex",r.textContent===t.titleText&&t.titleText.length>0&&(r.style.fontSize="2em")}var n=t.items[0].options;if(n&&n.animation){var i=n.animation.op,o=t.res.children[0].children[1].children[0];if(o.style.marginTop="0",i&&!t.hasAnimatedToWide)for(t.hasAnimatedToWide=!0,e=0;e<o.children.length;e++)o.children[e].animate(i.keyframesOpen,i.openOptions)}else console.log(t.res)}()}return this}},{key:"render",value:function(e){var t=this,r=function(){var e=window.matchMedia("(max-width: 600px)"),r=window.matchMedia("(max-device-width: 415px)"),n=t.res.children[0].children[1],i=n.children[0];r.matches&&(i.style.position="relative"),(e.matches||r.matches)&&null!=i?i.style.flexDirection="column":null==i||t.obj.isSide||(i.style.flexDirection="row"),t.obj.isSide||e.matches||r.matches||(t.res.children[0].children[0].style.display="none"),t.obj.isSide&&(i.style.flexDirection="column"),t.obj.isSide||e.matches||(t.res.children[0].style.position="relative",n.style.transform="translateY(0px)"),!t.obj.isSide&&e.matches,t.obj.customStyle&&(t.res.children[0].style.marginTop="1rem",t.res.children[0].style.position="absolute",t.res.children[0].style.borderRadius="1rem",n.style.borderRadius="1rem"),t.obj.radius&&(t.res.children[0].style.borderRadius="1rem",n.style.borderRadius="1rem")};return window.addEventListener("resize",(function(){return r()})),r(),e?(document.querySelector(e).style.padding=0,document.querySelector(e).style.margin=0,document.querySelector(e).appendChild(this.res),this.res):this.res}}])}(animator.y);function sideBar_typeof(e){return sideBar_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},sideBar_typeof(e)}function sideBar_classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function sideBar_defineProperties(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,sideBar_toPropertyKey(n.key),n)}}function sideBar_createClass(e,t,r){return t&&sideBar_defineProperties(e.prototype,t),r&&sideBar_defineProperties(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function sideBar_toPropertyKey(e){var t=sideBar_toPrimitive(e,"string");return"symbol"==sideBar_typeof(t)?t:t+""}function sideBar_toPrimitive(e,t){if("object"!=sideBar_typeof(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=sideBar_typeof(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var SideBar=function(){return sideBar_createClass((function e(t,r){sideBar_classCallCheck(this,e),this.ele=null,this.width="16em",this.height="100vh",this.els=t}),[{key:"setup",value:function(e){var t=this;e.width&&(this.width=e.width),e.height&&(this.height=e.height);var r=document.createElement("div");r.style.position="absolute";var n=document.createElement("button");n.style.position="absolute",n.style.background="white",n.style.opacity=.8,n.style.border="none",n.width="1.5em",n.height="1.5em",n.style.borderRadius="50%",n.style.zIndex=2;var i=document.createTextNode("☰");n.appendChild(i),n.style.fontSize="2em",window.matchMedia("(max-device-width: 400px)").matches&&(n.style.fontSize="6em"),window.matchMedia("(max-device-width: 400px)").matches&&e.fullMobile&&(this.width="100vw"),r.appendChild(n);var o=document.createElement("div");return o.style.position="absolute",o.style.backgroundColor="#fff",o.style.flexDirection="column",o.style.display="flex",o.style.alignItems="center",o.style.margin=0,o.style.padding=0,o.style.width=this.width,o.style.margin=0,o.style.marginTop="-10px",o.style.paddingTop="1em",o.style.paddingBottom="1em",o.style.height="".concat(this.height),o.style.transform="translateX(-".concat(this.width,")"),o.style.transition="all 0.80s",r.appendChild(o),this.hidden=!1,n.addEventListener("click",(function(){t.hidden=!t.hidden;for(var e=0;e<o.children.length;e++)"☰"!==o.textContent&&(t.hidden?o.style.transform="translateX(0em)":o.style.transform="translateX(-".concat(t.width,")"))})),this.ele=r,this.els&&this.items(this.els),this}},{key:"background",value:function(e){return this.ele.children[1].style.backgroundColor=e.color,this.ele.children[1].style.opacity=e.opacity,this}},{key:"items",value:function(e){this.itemCount=e.length;for(var t=0;t<e.length;t++)this.ele.children[1].appendChild(e[t].render());return this}},{key:"render",value:function(e){return e?(document.querySelector(e).style.padding=0,document.querySelector(e).style.margin=0,document.querySelector(e).appendChild(this.ele),this.ele):this.ele}}])}(),sideNavBar=__webpack_require__(790),free=__webpack_require__(317),audionew=__webpack_require__(959);function progress_typeof(e){return progress_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},progress_typeof(e)}function progress_classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function progress_defineProperties(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,progress_toPropertyKey(n.key),n)}}function progress_createClass(e,t,r){return t&&progress_defineProperties(e.prototype,t),r&&progress_defineProperties(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function progress_toPropertyKey(e){var t=progress_toPrimitive(e,"string");return"symbol"==progress_typeof(t)?t:t+""}function progress_toPrimitive(e,t){if("object"!=progress_typeof(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=progress_typeof(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var Progress=function(){return progress_createClass((function e(t){progress_classCallCheck(this,e),this.res=null,this.value=t,this.setup()}),[{key:"setup",value:function(){var e=document.createElement("div"),t=document.createElement("div"),r=document.createElement("div");return t.style.position="absolute",r.style.position="relative",e.appendChild(t),e.appendChild(r),this.res=e,this}},{key:"padding",value:function(e,t,r,n){return(e||t||r||n)&&(this.res.style.paddingLeft=e,this.res.style.paddingTop=t,this.res.style.paddingRight=r,this.res.style.paddingBottom=n),t||r||n||(this.res.style.padding=e),this}},{key:"arrayPadding",value:function(e,t){return e.includes("left")&&(this.res.style.paddingLeft=t),e.includes("right")&&(this.res.style.paddingRight=t),e.includes("top")&&(this.res.style.paddingTop=t),e.includes("bottom")&&(this.res.style.paddingBottom=t),this}},{key:"size",value:function(e){var t=this,r=e.width.split("%")[0],n=e.height;this.res.children[0].style.width=r/100*window.innerWidth,this.res.children[0].style.height=n,this.res.children[1].style.width=r/100*window.innerWidth*this.value,this.res.children[1].style.height=n;var i=function(){t.res.children[0].style.width=r/100*window.innerWidth,t.res.children[0].style.height=n,t.res.children[1].style.width=r/100*window.innerWidth*t.value,t.res.children[1].style.height=n};return window.addEventListener("resize",i),i(),this}},{key:"colors",value:function(e,t){return this.res.children[0].style.background=e,this.res.children[1].style.background=t,this}},{key:"round",value:function(e){return this.res.children[0].style.borderRadius="".concat(e,"px"),this.res.children[1].style.borderRadius="".concat(e,"px"),this}},{key:"render",value:function(e){if(Array.from(this.res.children).forEach((function(e){return e.style.padding=0})),Array.from(this.res.children).forEach((function(e){return e.style.margin=0})),!e)return this.res;document.querySelector(e).appendChild(this.res)}}])}();function center_typeof(e){return center_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},center_typeof(e)}function center_classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function center_defineProperties(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,center_toPropertyKey(n.key),n)}}function center_createClass(e,t,r){return t&&center_defineProperties(e.prototype,t),r&&center_defineProperties(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function center_toPropertyKey(e){var t=center_toPrimitive(e,"string");return"symbol"==center_typeof(t)?t:t+""}function center_toPrimitive(e,t){if("object"!=center_typeof(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=center_typeof(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var Center=function(){return center_createClass((function e(t){center_classCallCheck(this,e),this.setup(t)}),[{key:"setup",value:function(e){var t=document.createElement("div");e&&t.setAttribute("id",e),t.style.display="flex",t.style.flexDirection="column",t.style.justifyContent="center",t.style.alignItems="center",t.style.width="100%",t.style.height="auto",t.style.margin=0,t.style.padding=0,this.res=t}},{key:"toCode",value:function(){return[""]}},{key:"items",value:function(e){for(var t=0;t<e.length;t++){var r=e[t].render();this.res.appendChild(r)}return this}},{key:"itemWidth",value:function(e){for(var t=0;t<this.res.childNodes.length;t++)this.res.childNodes[t].style.width=e;return this}},{key:"margin",value:function(e,t,r,n){return(e||t||r||n)&&(this.res.style.marginLeft=e,this.res.style.marginTop=t,this.res.style.marginRight=r,this.res.style.marginBottom=n),t||r||n||(alert("j"),this.res.style.margin=e),this}},{key:"arrayPadding",value:function(e,t){return e.includes("left")&&(this.res.style.paddingLeft=t),e.includes("right")&&(this.res.style.paddingRight=t),e.includes("top")&&(this.res.style.paddingTop=t),e.includes("bottom")&&(this.res.style.paddingBottom=t),this}},{key:"render",value:function(e){if(!e)return this.res;document.querySelector(e).appendChild(this.res)}}])}();function code_typeof(e){return code_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},code_typeof(e)}function code_classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function code_defineProperties(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,code_toPropertyKey(n.key),n)}}function code_createClass(e,t,r){return t&&code_defineProperties(e.prototype,t),r&&code_defineProperties(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function code_toPropertyKey(e){var t=code_toPrimitive(e,"string");return"symbol"==code_typeof(t)?t:t+""}function code_toPrimitive(e,t){if("object"!=code_typeof(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=code_typeof(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function code_callSuper(e,t,r){return t=code_getPrototypeOf(t),code_possibleConstructorReturn(e,code_isNativeReflectConstruct()?Reflect.construct(t,r||[],code_getPrototypeOf(e).constructor):t.apply(e,r))}function code_possibleConstructorReturn(e,t){if(t&&("object"==code_typeof(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return code_assertThisInitialized(e)}function code_assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function code_isNativeReflectConstruct(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(code_isNativeReflectConstruct=function(){return!!e})()}function code_getPrototypeOf(e){return code_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},code_getPrototypeOf(e)}function code_inherits(e,t){if("function"!=typeof t&&null!==t)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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&code_setPrototypeOf(e,t)}function code_setPrototypeOf(e,t){return code_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},code_setPrototypeOf(e,t)}var Code=function(e){function t(){var e;return code_classCallCheck(this,t),(e=code_callSuper(this,t)).res=document.createElement("code"),e.pre=document.createElement("pre"),e.res.style.background="#18232e",e.res.style.display="block",e.res.style.width="auto",e.res.style.height="auto",e.res.style.color="white",e.res.style.borderRadius="1rem",e.pre.appendChild(e.res),e}return code_inherits(t,e),code_createClass(t,[{key:"set",value:function(e){return e.code&&(this.pre.children[0].innerHTML=e.code),e.class&&this.pre.children[0].setAttribute("class","".concat(e.class)),e.pad&&this.pad(e.pad),e.mar&&this.mar(e.mar),e.respad&&this.respad(e.respad),e.resmar&&this.resmar(e.resmar),e.resprop&&this.resprop(e.resprop),e.width&&(this.res.style.width=e.width),e.background&&(this.res.style.background=e.background),e.color&&(this.res.style.color=e.color),e.borderRadius&&(this.res.style.background=e.borderRadius),e.borderObj&&(this.res.style.border="".concat(e.borderObj.width," solid ").concat(e.borderObj.color),this.res.style.borderRadius="".concat(e.borderObj.radius)),this}},{key:"render",value:function(e){return e&&document.querySelector(e).appendChild(this.pre),this.res}}])}(animator.y),stack=__webpack_require__(11),container=__webpack_require__(304);function metaAdder_typeof(e){return metaAdder_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},metaAdder_typeof(e)}function metaAdder_classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function metaAdder_defineProperties(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,metaAdder_toPropertyKey(n.key),n)}}function metaAdder_createClass(e,t,r){return t&&metaAdder_defineProperties(e.prototype,t),r&&metaAdder_defineProperties(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function metaAdder_toPropertyKey(e){var t=metaAdder_toPrimitive(e,"string");return"symbol"==metaAdder_typeof(t)?t:t+""}function metaAdder_toPrimitive(e,t){if("object"!=metaAdder_typeof(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=metaAdder_typeof(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var MetaAdder=function(){return metaAdder_createClass((function e(){metaAdder_classCallCheck(this,e),this.res=document.createElement("meta"),this.res.setAttribute("name","viewport"),this.res.setAttribute("content","width=device-width, initial-scale=1"),this.charset=document.createElement("meta"),this.charset.setAttribute("charset","UTF-8")}),[{key:"add",value:function(){document.head.appendChild(this.res),document.head.appendChild(this.charset)}}])}();function table_typeof(e){return table_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},table_typeof(e)}function _createForOfIteratorHelper(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=_unsupportedIterableToArray(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,a=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return s=e.done,e},e:function(e){a=!0,o=e},f:function(){try{s||null==r.return||r.return()}finally{if(a)throw o}}}}function _unsupportedIterableToArray(e,t){if(e){if("string"==typeof e)return _arrayLikeToArray(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?_arrayLikeToArray(e,t):void 0}}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function table_classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function table_defineProperties(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,table_toPropertyKey(n.key),n)}}function table_createClass(e,t,r){return t&&table_defineProperties(e.prototype,t),r&&table_defineProperties(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function table_toPropertyKey(e){var t=table_toPrimitive(e,"string");return"symbol"==table_typeof(t)?t:t+""}function table_toPrimitive(e,t){if("object"!=table_typeof(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=table_typeof(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function table_callSuper(e,t,r){return t=table_getPrototypeOf(t),table_possibleConstructorReturn(e,table_isNativeReflectConstruct()?Reflect.construct(t,r||[],table_getPrototypeOf(e).constructor):t.apply(e,r))}function table_possibleConstructorReturn(e,t){if(t&&("object"==table_typeof(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return table_assertThisInitialized(e)}function table_assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function table_isNativeReflectConstruct(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(table_isNativeReflectConstruct=function(){return!!e})()}function table_getPrototypeOf(e){return table_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},table_getPrototypeOf(e)}function table_inherits(e,t){if("function"!=typeof t&&null!==t)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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&table_setPrototypeOf(e,t)}function table_setPrototypeOf(e,t){return table_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},table_setPrototypeOf(e,t)}var Table=function(e){function t(){var e;return table_classCallCheck(this,t),(e=table_callSuper(this,t)).res=document.createElement("table"),e}return table_inherits(t,e),table_createClass(t,[{key:"add",value:function(e){this.data=e,this.datas=e;var t=Object.keys(e[0]);return this.generateTable(this.res,e),this.generateTableHead(this.res,t),this}},{key:"style",value:function(e){return this.res.style.fontFamily=e.font,this}},{key:"set",value:function(e){return e.cellPadding&&this.cellPadding(e.cellPadding),e.cellAlign&&this.cellAlign(e.cellAlign),e.style&&this.style(e.style),e.headStyle&&this.headStyle(e.headStyle),e.border&&this.border(e.border),e.center&&this.center(e.center),e.borderRadius&&this.borderRadius(e.borderRadius),this.obj=e,this}},{key:"toCode",value:function(){var e="new Table().add(".concat(JSON.stringify(this.data),").set(").concat(JSON.stringify(this.obj),")");return[e=(e=e.replace(/"(\w+)":/g,"$1:")).replace(/,/g,",\n")]}},{key:"center",value:function(){return this.res.style.marginLeft="auto",this.res.style.marginRight="auto",this}},{key:"borderRadius",value:function(e){this.res.style.borderCollapse="separate",this.res.style.borderSpacing=0,this.res.style.overflow="hidden";for(var t=this.res,r=Object.keys(this.datas[0]).length,n=this.datas.length+1,i=0;i<r;i++)t.rows[0].cells[i].style.borderTop="".concat(2*e,"px solid black"),t.rows[n-1].cells[i].style.borderBottom="".concat(2*e,"px solid black");for(var o=0;o<n;o++)t.rows[o].cells[0].style.borderLeft="".concat(2*e,"px solid black"),t.rows[o].cells[r-1].style.borderRight="".concat(2*e,"px solid black");return t.rows[0].cells[0].style.borderTopLeftRadius="10px",t.rows[0].cells[r-1].style.borderTopRightRadius="10px",t.rows[n-1].cells[0].style.borderBottomLeftRadius="10px",t.rows[n-1].cells[r-1].style.borderBottomRightRadius="10px",this}},{key:"cellPadding",value:function(e){var t,r=_createForOfIteratorHelper(this.res.rows);try{for(r.s();!(t=r.n()).done;){var n,i=_createForOfIteratorHelper(t.value.cells);try{for(i.s();!(n=i.n()).done;)n.value.style.padding=e}catch(e){i.e(e)}finally{i.f()}}}catch(e){r.e(e)}finally{r.f()}return this}},{key:"cellAlign",value:function(e){var t,r=_createForOfIteratorHelper(this.res.rows);try{for(r.s();!(t=r.n()).done;){var n,i=_createForOfIteratorHelper(t.value.cells);try{for(i.s();!(n=i.n()).done;)n.value.style.textAlign=e}catch(e){i.e(e)}finally{i.f()}}}catch(e){r.e(e)}finally{r.f()}return this}},{key:"headStyle",value:function(e){var t=this.res.rows[0];return t&&(t.style.color=e.color,e.background&&(t.style.backgroundColor=e.background)),this}},{key:"border",value:function(e){this.res.style.borderCollapse="collapse";var t,r=_createForOfIteratorHelper(this.res.rows);try{for(r.s();!(t=r.n()).done;){var n=t.value;n.style.border=e;var i,o=_createForOfIteratorHelper(n.cells);try{for(o.s();!(i=o.n()).done;)i.value.style.border=e}catch(e){o.e(e)}finally{o.f()}}}catch(e){r.e(e)}finally{r.f()}return this}},{key:"generateTableHead",value:function(e,t){var r,n=e.createTHead().insertRow(),i=_createForOfIteratorHelper(t);try{for(i.s();!(r=i.n()).done;){var o=r.value,s=document.createElement("th"),a=document.createTextNode(o);s.appendChild(a),n.appendChild(s)}}catch(e){i.e(e)}finally{i.f()}}},{key:"generateTable",value:function(e,t){var r,n=_createForOfIteratorHelper(t);try{for(n.s();!(r=n.n()).done;){var i=r.value,o=e.insertRow();for(var s in i){var a=o.insertCell(),l=document.createTextNode(i[s]);a.appendChild(l)}}}catch(e){n.e(e)}finally{n.f()}}},{key:"render",value:function(e){if(!e){var t=document.createElement("div");return t.style.overflowX="auto",t.appendChild(this.res),t}var r=document.createElement("div");r.style.overflowX="auto",r.appendChild(this.res),document.querySelector(e).appendChild(r)}}])}(animator.y),dropdown2025=__webpack_require__(69);function modal2025_typeof(e){return modal2025_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},modal2025_typeof(e)}function modal2025_classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function modal2025_defineProperties(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,modal2025_toPropertyKey(n.key),n)}}function modal2025_createClass(e,t,r){return t&&modal2025_defineProperties(e.prototype,t),r&&modal2025_defineProperties(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function modal2025_toPropertyKey(e){var t=modal2025_toPrimitive(e,"string");return"symbol"==modal2025_typeof(t)?t:t+""}function modal2025_toPrimitive(e,t){if("object"!=modal2025_typeof(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=modal2025_typeof(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var Modal=function(){return modal2025_createClass((function e(){modal2025_classCallCheck(this,e),this.el=null,this.obj=null}),[{key:"set",value:function(e){var t=document.createElement("div");return t.style.width="100vw",t.style.height="100vh",t.style.backgroundColor=e.background,t.style.zIndex="1",t.style.position="absolute",t.style.overflowY="scroll",this.obj=e,this.res=t,e.close&&this.close(),this}},{key:"close",value:function(){return this.res.style.display="none",this}},{key:"show",value:function(){return this.res.style.display="block",this}},{key:"add",value:function(e){var t=document.createElement("div");t.style.width=this.obj.width,t.style.height="auto",t.style.marginLeft="auto",t.style.marginRight="auto",t.style.backgroundColor="white",window.matchMedia("(max-device-width: 415px)").matches&&(t.style.marginTop="200px",t.style.width="100%");for(var r=0;r<e.length;r++)console.log(e[r]),t.appendChild(e[r].render());return this.res.appendChild(t),this}},{key:"render",value:function(e){if(!e)return this.res;document.querySelector("body").style.margin=0,document.querySelector("body").style.padding=0,document.querySelector(e).appendChild(this.res)}}])}();function textField_typeof(e){return textField_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},textField_typeof(e)}function textField_classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function textField_defineProperties(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,textField_toPropertyKey(n.key),n)}}function textField_createClass(e,t,r){return t&&textField_defineProperties(e.prototype,t),r&&textField_defineProperties(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function textField_toPropertyKey(e){var t=textField_toPrimitive(e,"string");return"symbol"==textField_typeof(t)?t:t+""}function textField_toPrimitive(e,t){if("object"!=textField_typeof(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=textField_typeof(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function textField_callSuper(e,t,r){return t=textField_getPrototypeOf(t),textField_possibleConstructorReturn(e,textField_isNativeReflectConstruct()?Reflect.construct(t,r||[],textField_getPrototypeOf(e).constructor):t.apply(e,r))}function textField_possibleConstructorReturn(e,t){if(t&&("object"==textField_typeof(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return textField_assertThisInitialized(e)}function textField_assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function textField_isNativeReflectConstruct(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(textField_isNativeReflectConstruct=function(){return!!e})()}function textField_getPrototypeOf(e){return textField_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},textField_getPrototypeOf(e)}function textField_inherits(e,t){if("function"!=typeof t&&null!==t)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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&textField_setPrototypeOf(e,t)}function textField_setPrototypeOf(e,t){return textField_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},textField_setPrototypeOf(e,t)}var layout_TextField=function(e){function t(e){var r;return textField_classCallCheck(this,t),(r=textField_callSuper(this,t)).text=e,r.res=null,r.valid=!1,r.setup(),r}return textField_inherits(t,e),textField_createClass(t,[{key:"setup",value:function(){var e=document.createElement("input");return this.res=e,this.res.style.padding=0,this.res.style.margin=0,this.res.style.padding=".4rem .75rem",this.res.style.fontSize="1rem",window.matchMedia("(max-device-width: 415px)").matches&&(this.res.style.width="100%"),this}},{key:"set",value:function(e){var t;return this.options=e,this.res.setAttribute("type",null!==(t=e.type)&&void 0!==t?t:"text"),e.placeholder&&(this.res.placeholder=e.placeholder),e.arrayPadding&&this.arrayPadding(e.arrayPadding.sides,e.arrayPadding.value),e.arrayMargin&&this.arrayMargin(e.arrayMargin.sides,e.arrayMargin.value),e.pad&&this.pad(e.pad),e.mar&&this.mar(e.mar),this}},{key:"arrayPadding",value:function(e,t){return e.includes("left")&&(this.res.style.paddingLeft=t),e.includes("right")&&(this.res.style.paddingRight=t),e.includes("top")&&(this.res.style.paddingTop=t),e.includes("bottom")&&(this.res.style.paddingBottom=t),e.includes("all")&&(this.res.style.padding=t),this}},{key:"toCode",value:function(){var e=JSON.stringify(this.options,null,4);return["new TextField().set(".concat(e,")")]}},{key:"arrayMargin",value:function(e,t){return e.includes("left")&&(this.res.style.marginLeft=t),e.includes("right")&&(this.res.style.marginRight=t),e.includes("top")&&(this.res.style.marginTop=t),e.includes("bottom")&&(this.res.style.marginBottom=t),e.includes("all")&&(this.res.style.margin=t),this}},{key:"setValid",value:function(e,t){return this.res.style.border=e?"6px solid green":"6px solid red",0===t.length&&(this.res.style.border="none"),this}},{key:"auto",value:function(){var e=this,t=function(){window.matchMedia("(max-device-width: 415px)").matches?e.res.style.fontSize="3rem":e.res.style.fontSize="1rem"};return t(),window.addEventListener("resize",t),this}},{key:"listen",value:function(e){var t=this;return this.res.addEventListener("input",(function(e){return t.process(e)})),this}},{key:"value",value:function(e){return this.res.setAttribute("value",e),this}},{key:"password",value:function(){return this.res.setAttribute("type","password"),this}},{key:"number",value:function(){return this.res.setAttribute("type","number"),this}},{key:"week",value:function(){return this.res.setAttribute("type","week"),this}},{key:"process",value:function(e){return this.res.value}},{key:"font",value:function(e){return this.res.style.fontFamily=e,this}},{key:"size",value:function(e){return this.res.style.fontSize=e,this}},{key:"em",value:function(e){return this.res.style.fontSize="".concat(e,"em"),this}},{key:"color",value:function(e){return this.res.style.color=e,this}},{key:"weight",value:function(e){return this.res.style.fontWeight=e,this}},{key:"bold",value:function(){return this.res.style.fontWeight="bold",this}},{key:"italic",value:function(){return this.res.style.fontStyle="italic",this}},{key:"padding",value:function(e,t,r,n){return e?this.res.style.padding="".concat(e,"px"):e&&t&&r&&n&&(this.res.style.paddingLeft=e,this.res.style.paddingTop=t,this.res.style.paddingRight=r,this.res.style.paddingBottom="".concat(n,"px")),this}},{key:"margin",value:function(e,t,r,n){return this.res.style.marginLeft=e,this.res.style.marginTop=t,this.res.style.marginLeft=r,this.res.style.marginBottom="".concat(n,"px"),this}},{key:"placeholder",value:function(e){return this.res.setAttribute("placeholder",e),this}},{key:"border",value:function(e,t){return this.res.style.border="".concat(t,"px solid ").concat(e),this}},{key:"width",value:function(e){return this.res.style.width=e,this}},{key:"round",value:function(e){return this.res.style.borderRadius="".concat(e,"px"),this}},{key:"onChange",value:function(e){var t=this;return this.res.value,this.res.addEventListener("input",(function(r){e(t.res.value)})),this}},{key:"render",value:function(e){return e?(document.querySelector(e).appendChild(this.res),this.res):this.res}}])}(animator.y);function flexCard_typeof(e){return flexCard_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},flexCard_typeof(e)}function flexCard_classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function flexCard_defineProperties(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,flexCard_toPropertyKey(n.key),n)}}function flexCard_createClass(e,t,r){return t&&flexCard_defineProperties(e.prototype,t),r&&flexCard_defineProperties(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function flexCard_toPropertyKey(e){var t=flexCard_toPrimitive(e,"string");return"symbol"==flexCard_typeof(t)?t:t+""}function flexCard_toPrimitive(e,t){if("object"!=flexCard_typeof(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=flexCard_typeof(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function flexCard_callSuper(e,t,r){return t=flexCard_getPrototypeOf(t),flexCard_possibleConstructorReturn(e,flexCard_isNativeReflectConstruct()?Reflect.construct(t,r||[],flexCard_getPrototypeOf(e).constructor):t.apply(e,r))}function flexCard_possibleConstructorReturn(e,t){if(t&&("object"==flexCard_typeof(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return flexCard_assertThisInitialized(e)}function flexCard_assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function flexCard_isNativeReflectConstruct(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(flexCard_isNativeReflectConstruct=function(){return!!e})()}function flexCard_getPrototypeOf(e){return flexCard_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},flexCard_getPrototypeOf(e)}function flexCard_inherits(e,t){if("function"!=typeof t&&null!==t)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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&flexCard_setPrototypeOf(e,t)}function flexCard_setPrototypeOf(e,t){return flexCard_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},flexCard_setPrototypeOf(e,t)}var Card=function(e){function t(e,r){var n;return flexCard_classCallCheck(this,t),(n=flexCard_callSuper(this,t)).text=e,n.url=r,n.setup(),n}return flexCard_inherits(t,e),flexCard_createClass(t,[{key:"getType",value:function(){return"sCardElement"}},{key:"setup",value:function(){window.matchMedia("(max-device-width: 415px)");var e=document.createElement("div");return e.style.display="flex",e.style.flexDirection="column",e.style.alignItems="center",e.style.backgroundColor="#fff",e.style.fontFamily="Arial",e.style.width="100%",e.style.boxShadow="3px 3px 10px #111",e.style.overflow="hidden",this.res=e,this}},{key:"set",value:function(e){if(this.obj=e,e.border&&(this.res.style.border=e.border),e.radius&&(this.res.style.borderRadius=e.radius),e.arrayPadding){var t=e.arrayPadding.sides.map((function(e){return'"'.concat(e,'"')})).join(", ");e.arrayPadding&&this.arrayPadding(e.arrayPadding.sides,e.arrayPadding.value),e.arrayPadding&&"\n arrayPadding: {sides: [".concat(t,'], value: "').concat(e.arrayPadding.value,'"},')}return e.arrayMargin&&this.arrayMargin(e.arrayMargin.sides,e.arrayMargin.value),e.arrayMargin&&"\n arrayMargin: {sides: [".concat(e.arrayMargin.sides.map((function(e){return'"'.concat(e,'", ')})),'], value: "').concat(e.arrayMargin.value,'"},'),e.width&&(this.res.style.width=e.width),this}},{key:"arrayPadding",value:function(e,t){return t||(this.res.style.marginLeft="".concat(e[0],"px"),this.res.style.marginTop="".concat(e[1],"px"),this.res.style.marginRight="".concat(e[2],"px"),this.res.style.marginBottom="".concat(e[3],"px")),"all"===e[0]&&(this.res.style.paddingLeft=t,this.res.style.paddingTop=t,this.res.style.paddingRight=t,this.res.style.paddingBottom=t),e.includes("left")&&(this.res.style.paddingLeft=t),e.includes("right")&&(this.res.style.paddingRight=t),e.includes("top")&&(this.res.style.paddingTop=t),e.includes("bottom")&&(this.res.style.paddingBottom=t),t||(this.res.style.paddingBottom=e),this}},{key:"arrayMargin",value:function(e,t){return e.includes("left")&&(this.res.style.marginLeft=t),e.includes("right")&&(this.res.style.marginRight=t),e.includes("top")&&(this.res.style.marginTop=t),e.includes("bottom")&&(this.res.style.marginBottom=t),e.includes("all")&&(this.res.style.margin=t),t||(this.res.style.marginBottom=e),this}},{key:"frame",value:function(e){return e.height&&(this.res.style.height=e.height),e.width&&(this.res.style.width=e.width),this}},{key:"scale",value:function(e){var t=this;return this.res.style.width,this.res.style.transition="0.5s all",this.res.addEventListener("mouseover",(function(){t.res.style.width,t.res.style.transform="scale(1.04)"})),this.res.addEventListener("mouseout",(function(){t.res.style.width,t.res.style.transform="scale(1.0)"})),this}},{key:"background",value:function(e){return this.res.style.backgroundColor=e,this}},{key:"color",value:function(e){return this.res.style.color=e,this}},{key:"padding",value:function(e){return this.res.style.padding="".concat(e,"px"),this}},{key:"items",value:function(e){for(var t=0;t<e.length;t++)this.res.appendChild(e[t].render());return this}},{key:"shadow",value:function(){return this.res.style.boxShadow="1px 1px 20px rgba(0, 0, 0, 0.60)",this}},{key:"round",value:function(e){return this.res.style.borderRadius="".concat(e,"px"),this}},{key:"render",value:function(e){if(!e)return this.res;document.querySelector(e).appendChild(this.res)}}])}(animator.y);function wrap_typeof(e){return wrap_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},wrap_typeof(e)}function wrap_classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function wrap_defineProperties(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,wrap_toPropertyKey(n.key),n)}}function wrap_createClass(e,t,r){return t&&wrap_defineProperties(e.prototype,t),r&&wrap_defineProperties(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function wrap_toPropertyKey(e){var t=wrap_toPrimitive(e,"string");return"symbol"==wrap_typeof(t)?t:t+""}function wrap_toPrimitive(e,t){if("object"!=wrap_typeof(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=wrap_typeof(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var Wrap=function(){return wrap_createClass((function e(t){wrap_classCallCheck(this,e),this.code=[],this.setup();for(var r=0;r<t.length;r++)this.res.appendChild(t[r].render().render())}),[{key:"setup",value:function(){var e=document.createElement("div");e.style.padding=0,e.style.margin=0,this.res=e}},{key:"width",value:function(e,t){return this.res.style.width=e,t&&(this.res.style.marginLeft="auto",this.res.style.marginRight="auto"),this}},{key:"padding",value:function(e){return this.res.style.padding="".concat(e,"px"),this}},{key:"size",value:function(e,t){return this.w=e,this.h=t,this.w?this.res.style.width=this.w:this.res.style.width=window.innerWidth,this.h?this.res.style.height=this.h:this.res.style.height=window.innerHeight,this}},{key:"border",value:function(e,t){return this.res.style.border="".concat(t,"px solid ").concat(e),this}},{key:"render",value:function(e){if(!e)return this.res;document.querySelector(e).appendChild(this.res)}}])}();function flexGrid_typeof(e){return flexGrid_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},flexGrid_typeof(e)}function flexGrid_classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function flexGrid_defineProperties(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,flexGrid_toPropertyKey(n.key),n)}}function flexGrid_createClass(e,t,r){return t&&flexGrid_defineProperties(e.prototype,t),r&&flexGrid_defineProperties(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function flexGrid_toPropertyKey(e){var t=flexGrid_toPrimitive(e,"string");return"symbol"==flexGrid_typeof(t)?t:t+""}function flexGrid_toPrimitive(e,t){if("object"!=flexGrid_typeof(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=flexGrid_typeof(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var FlexGrid=function(){return flexGrid_createClass((function e(){flexGrid_classCallCheck(this,e),this.code=[],this.setup()}),[{key:"toCode",value:function(){return this.code}},{key:"setup",value:function(){this.code.push("new FlexGrid()"),this.code.push(".setup()");var e=document.createElement("div");return e.style.display="flex",e.style.padding=0,e.style.margin=0,this.res=e,this}},{key:"set",value:function(e){return this.code.push(".set({"),e.width&&this.code.push('width: "'.concat(e.width,'",')),e.flex&&(this.res.style.flex=e.flex),e.flex&&this.code.push("flex: ".concat(e.flex,",")),e.maxWidth&&(this.res.style.maxWidth=e.maxWidth),e.maxWidth&&this.code.push('maxWidth: "'.concat(e.maxWidth,'",')),e.maxWidth&&(this.res.style.minWidth="400px"),e.maxWidth&&(this.res.style.marginLeft="auto"),e.maxWidth&&(this.res.style.marginRight="auto"),e.width&&(this.res.style.width="".concat(e.width)),e.wrap&&(this.res.style.flexWrap="wrap"),e.wrap&&this.code.push("wrap: ".concat(e.wrap,",")),e.align&&(this.res.style.justifyContent=e.align),e.align&&this.code.push("align: ".concat(e.align,",")),e.colat&&this.toColumnAt(e.colat),e.colat&&this.code.push('\n colat: "'.concat(e.colat,'",')),this.code.push("}),"),this}},{key:"toColumnAt",value:function(e){var t=this;if(!this.columnAlways){var r=function(){var r=window.matchMedia("(max-width: ".concat(e,")")),n=window.matchMedia("(max-device-width: 415px)");r.matches||n.matches?(t.res.style.flexDirection="column",t.res.style.alignItems="center"):t.res.style.flexDirection="row"};r(),window.addEventListener("resize",r)}}},{key:"flex",value:function(e){return this.arra=Array.from(e.replace(/\s/g,"")),this.areas=Array.from(Array(e.replace(/\s/g,"")).join("")),this.save='"'.concat(e,'"'),this}},{key:"padding",value:function(e){return this.res.style.padding="".concat(e,"px"),this}},{key:"center",value:function(){return this.res.style.marginLeft="auto",this.res.style.marginRight="auto",this}},{key:"items",value:function(e){this.items=e,this.code.push("\n .items([");for(var t=0;t<e.length;t++){var r=e[t];if(null!=r){var n=r.render();void 0!==r.toCode&&this.code.push(r.toCode().flatMap((function(e){return e}))),this.res.appendChild(n)}}return this.code.push("\n ])"),this}},{key:"width",value:function(e){return this.res.style.width=e,this}},{key:"border",value:function(e,t){return this.res.style.border="".concat(t,"px solid ").concat(e),this}},{key:"adjust",value:function(e){var t=this,r=function(){var r=window.matchMedia("(max-device-width: 415px)");if(window.innerWidth<e||r.matches)for(var n=0;n<t.res.children.length;n++)t.res.children[n].style.flex="",t.res.children[n].style.width="100%";else for(n=0;n<t.res.children.length;n++)t.res.children[n].style.flex="".concat(t.arra[n])};return r(),window.addEventListener("resize",r),this}},{key:"render",value:function(e){if(!e)return this.res;document.querySelector("body").style.margin=0,document.querySelector("body").style.padding=0,document.querySelector(e).appendChild(this.res)}}])}();function zoomCard_typeof(e){return zoomCard_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},zoomCard_typeof(e)}function zoomCard_classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function zoomCard_defineProperties(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,zoomCard_toPropertyKey(n.key),n)}}function zoomCard_createClass(e,t,r){return t&&zoomCard_defineProperties(e.prototype,t),r&&zoomCard_defineProperties(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function zoomCard_toPropertyKey(e){var t=zoomCard_toPrimitive(e,"string");return"symbol"==zoomCard_typeof(t)?t:t+""}function zoomCard_toPrimitive(e,t){if("object"!=zoomCard_typeof(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=zoomCard_typeof(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function zoomCard_callSuper(e,t,r){return t=zoomCard_getPrototypeOf(t),zoomCard_possibleConstructorReturn(e,zoomCard_isNativeReflectConstruct()?Reflect.construct(t,r||[],zoomCard_getPrototypeOf(e).constructor):t.apply(e,r))}function zoomCard_possibleConstructorReturn(e,t){if(t&&("object"==zoomCard_typeof(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return zoomCard_assertThisInitialized(e)}function zoomCard_assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function zoomCard_isNativeReflectConstruct(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(zoomCard_isNativeReflectConstruct=function(){return!!e})()}function zoomCard_getPrototypeOf(e){return zoomCard_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},zoomCard_getPrototypeOf(e)}function zoomCard_inherits(e,t){if("function"!=typeof t&&null!==t)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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&zoomCard_setPrototypeOf(e,t)}function zoomCard_setPrototypeOf(e,t){return zoomCard_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},zoomCard_setPrototypeOf(e,t)}var ZoomCard=function(e){function t(){return zoomCard_classCallCheck(this,t),zoomCard_callSuper(this,t)}return zoomCard_inherits(t,e),zoomCard_createClass(t,[{key:"set",value:function(e){return this.imageUrl=e.url,this.createCard(),e.useBrightness&&(this.useBrightness=!0),e.useBrightness&&"\n useBrightness: ".concat(this.useBrightness),e.pad&&this.pad(e.pad),e.mar&&this.mar(e.mar),e.arrayMargin&&this.arrayMargin(e.arrayMargin.sides,e.arrayMargin.value),e.arrayMargin&&"\n arrayMargin: {sides: [".concat(e.arrayMargin.sides.map((function(e){return'"'.concat(e,'", ')})),'], value: "').concat(e.arrayMargin.value,'"},'),e.inpad&&this.inpad(e.inpad),e.inpad&&"\n inpad: {".concat(e.inpad,"}"),e.font&&(this.res.style.fontFamily=e.font),e.inpad&&"\n font: ".concat(e.font),this.addListeners(),this}},{key:"inpad",value:function(e){return this.res.children[1].style.boxSizing="border-box",this.res.children[1].style.padding=e,this}},{key:"items",value:function(e){for(var t=0;t<e.length;t++)this.res.children[1].appendChild(e[t].render());return this}},{key:"createCard",value:function(){var e=document.createElement("div");e.style.display="grid",e.style.width="300px",e.style.height="400px",e.setAttribute("id","AAA");var t=document.createElement("div");t.style.gridArea="1/1",t.style.height="400px",t.style.borderRadius="15px",t.style.boxShadow="0 4px 8px 0 rgba(0,0,0,0.2)",t.style.overflow="hidden";var r=document.createElement("div");r.style.width="100%",r.style.height="100%",r.style.transition="0.9s",r.style.backgroundImage="url(".concat(this.imageUrl,")"),r.style.backgroundSize="cover",r.style.backgroundPostion="cover",r.style.backgroundRepeat="no-repeat",t.appendChild(r);var n=document.createElement("div");return n.style.gridArea="1/1",n.style.zIndex="1",e.appendChild(t),e.appendChild(n),this.res=e,this}},{key:"addListeners",value:function(){var e=this,t=this.res.children[0].children[0];return this.res.onmouseover=function(){t.style.transform="scale(1.3)",e.useBrightness&&(t.style.filter="brightness(31%)")},this.res.onmouseout=function(){t.style.transform="scale(1.0)",e.useBrightness&&(t.style.filter="brightness(100%)")},this}},{key:"render",value:function(e){if(!e)return this.res;this.options.id&&this.res.setAttribute("id",this.options.id),document.querySelector(e).appendChild(this.res)}}])}(animator.y);function simpleBar_typeof(e){return simpleBar_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},simpleBar_typeof(e)}function simpleBar_classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function simpleBar_defineProperties(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,simpleBar_toPropertyKey(n.key),n)}}function simpleBar_createClass(e,t,r){return t&&simpleBar_defineProperties(e.prototype,t),r&&simpleBar_defineProperties(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function simpleBar_toPropertyKey(e){var t=simpleBar_toPrimitive(e,"string");return"symbol"==simpleBar_typeof(t)?t:t+""}function simpleBar_toPrimitive(e,t){if("object"!=simpleBar_typeof(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=simpleBar_typeof(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function simpleBar_callSuper(e,t,r){return t=simpleBar_getPrototypeOf(t),simpleBar_possibleConstructorReturn(e,simpleBar_isNativeReflectConstruct()?Reflect.construct(t,r||[],simpleBar_getPrototypeOf(e).constructor):t.apply(e,r))}function simpleBar_possibleConstructorReturn(e,t){if(t&&("object"==simpleBar_typeof(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return simpleBar_assertThisInitialized(e)}function simpleBar_assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function simpleBar_isNativeReflectConstruct(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(simpleBar_isNativeReflectConstruct=function(){return!!e})()}function simpleBar_getPrototypeOf(e){return simpleBar_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},simpleBar_getPrototypeOf(e)}function simpleBar_inherits(e,t){if("function"!=typeof t&&null!==t)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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&simpleBar_setPrototypeOf(e,t)}function simpleBar_setPrototypeOf(e,t){return simpleBar_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},simpleBar_setPrototypeOf(e,t)}var SimpleBar=function(e){function t(){var e;return simpleBar_classCallCheck(this,t),(e=simpleBar_callSuper(this,t)).res=document.createElement("div"),e}return simpleBar_inherits(t,e),simpleBar_createClass(t,[{key:"items",value:function(e){for(var t=0;t<e.length;t++)this.res.appendChild(e[t].render());return this}},{key:"render",value:function(e){return e&&document.querySelector(e).appendChild(this.res),this.res}}])}(animator.y),betaDesktopBar=__webpack_require__(828),betaMobileBar=__webpack_require__(734),multiswitcher=__webpack_require__(897),spacer=__webpack_require__(463);function horizontalScroller_typeof(e){return horizontalScroller_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},horizontalScroller_typeof(e)}function horizontalScroller_classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function horizontalScroller_defineProperties(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,horizontalScroller_toPropertyKey(n.key),n)}}function horizontalScroller_createClass(e,t,r){return t&&horizontalScroller_defineProperties(e.prototype,t),r&&horizontalScroller_defineProperties(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function horizontalScroller_toPropertyKey(e){var t=horizontalScroller_toPrimitive(e,"string");return"symbol"==horizontalScroller_typeof(t)?t:t+""}function horizontalScroller_toPrimitive(e,t){if("object"!=horizontalScroller_typeof(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=horizontalScroller_typeof(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var HScroller=function(){return horizontalScroller_createClass((function e(){horizontalScroller_classCallCheck(this,e),this.setupa()}),[{key:"seto",value:function(e){return this.e=e.a,e.speed&&(this.divisor=e.speed),this}},{key:"setupa",value:function(){return this.parallaxIDs(["#rta"]),this.divisor(1),this}},{key:"add",value:function(e){return this.items=e,this.setup(),this}},{key:"parallaxIDs",value:function(e){return this.parallaxIDs=e,this}},{key:"divisor",value:function(e){return this.divisor=e,this}},{key:"setup",value:function(){var e=this;this.pts=0;var t=document.createElement("div");t.style.width="100%",t.style.height="100%";var r=document.createElement("div");r.style.display="flex",r.style.width="100%";for(var n=0;n<this.items.length;n++){var i=this.items[n].render();r.appendChild(i)}t.appendChild(r);var o=window.localStorage.getItem("pts");null!==o&&(this.pts=o),t.addEventListener("wheel",(function(t){t.deltaY<0?(console.log("Scrolling up"),e.pts--):t.deltaY>0&&(console.log("Scrolling down"),e.pts++),window.localStorage.setItem("pts",e.pts),t.preventDefault();for(var n=0;n<r.childNodes.length;n++){console.log(r.childNodes[n].toString().substr(7));var i=r.childNodes[n];e.parallaxIDs.includes(i.id)&&(i.style.transform="translateX(".concat(e.pts/e.divisor,"%)"))}r.style.transform="translateX(".concat(e.pts/e.divisor,"%)"),window.localStorage.setItem("translation",e.pts/e.divisor)}));var s=window.localStorage.getItem("translation");null!==s&&(r.style.transform="translateX(".concat(s,"%)")),this.div=t}},{key:"render",value:function(e){if(!e)return this.div;document.querySelector(e).appendChild(this.div)}}])}(),layout_checkbox=__webpack_require__(342),imagePicker=__webpack_require__(877),picker=__webpack_require__(898),range=__webpack_require__(751),formComponents_radio=__webpack_require__(385),dataList=__webpack_require__(216),layout_button=__webpack_require__(207),designer=__webpack_require__(19),linkGetter=__webpack_require__(985),cardGetter=__webpack_require__(683);function appleAnim_typeof(e){return appleAnim_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},appleAnim_typeof(e)}function appleAnim_classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function appleAnim_defineProperties(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,appleAnim_toPropertyKey(n.key),n)}}function appleAnim_createClass(e,t,r){return t&&appleAnim_defineProperties(e.prototype,t),r&&appleAnim_defineProperties(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function appleAnim_defineProperty(e,t,r){return(t=appleAnim_toPropertyKey(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function appleAnim_toPropertyKey(e){var t=appleAnim_toPrimitive(e,"string");return"symbol"==appleAnim_typeof(t)?t:t+""}function appleAnim_toPrimitive(e,t){if("object"!=appleAnim_typeof(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=appleAnim_typeof(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var KeyframeAnim=function(){return appleAnim_createClass((function e(t){var r=this;return appleAnim_classCallCheck(this,e),appleAnim_defineProperty(this,"scrollFunction",(function(){void 0===r.flagValue&&(r.flagValue=0);var e=(r.html.scrollTop-r.flagValue)/(r.html.scrollHeight-window.innerHeight)*16,t=Math.min(r.frameCount-1,Math.ceil(e*r.frameCount));isNaN(t)&&(t=1),t<0&&(t=0),r.data.limit?t<r.data.limit&&requestAnimationFrame((function(){return r.updateImage(t+1)})):requestAnimationFrame((function(){return r.updateImage(t+1)})),window.matchMedia("(max-device-width: 415px)")})),appleAnim_defineProperty(this,"currentFrame",(function(e){return"".concat(r.data.path).concat(e.toString().padStart(4,"0"),".").concat(r.data.extension)})),appleAnim_defineProperty(this,"preloadImages",(function(){for(var e=1;e<r.frameCount;e++)new Image,r.img.src=r.currentFrame(e)})),appleAnim_defineProperty(this,"updateImage",(function(e){r.img.src=r.currentFrame(e)})),this.fromFirstImageFlag=!1,this.flag=0,this.flagValue=t.flagValue,this.data=t,this.mask=t.mask,this.maskData=t.maskData,this.id=t.id,this.halfHeight=t.halfHeight,void 0===this.data.type?this.type="default":this.type=this.data.type,this.stickData=t.stickData,this.targetHeight=this.data.targetHeight,this.html=document.body,this.res=document.createElement("div"),this.res.setAttribute("id",this.data.id),this.res.style.border="1px solid green",this.res.style.width="100%",this.res.style.display="grid",this.res.style.position="sticky",this.res.style.top=0,this.res.style.alignSelf="flex-start",this.res.style.justifyContent="center",this.res.style.alignItems="center",this.data.added||(this.res.style.marginTop=this.data.noAddedDistance),this.frameCount=100,this.lastScrollTop=window.scrollY,this.setupTopElement(),this.scrollFunction(),window.addEventListener("scroll",(function(){r.scrollFunction()})),this.preloadImages(),this}),[{key:"marginTop",value:function(e){return this.res.style.marginTop=e,this}},{key:"toCode",value:function(){return[""]}},{key:"drawImageProp",value:function(e,t,r,n,i,o,s,a){2===arguments.length&&(r=n=0,i=e.canvas.width,o=e.canvas.height),(s="number"==typeof s?s:.5)<0&&(s=0),(a="number"==typeof a?a:.5)<0&&(a=0),s>1&&(s=1),a>1&&(a=1);var l,c,u,d,h=t.width,p=t.height,f=Math.min(i/h,o/p),y=h*f,m=p*f,v=1;y<i&&(v=i/y),Math.abs(v-1)<1e-14&&m<o&&(v=o/m),(l=(h-(u=h/((y*=v)/i)))*s)<0&&(l=0),(c=(p-(d=p/((m*=v)/o)))*a)<0&&(c=0),u>h&&(u=h),d>p&&(d=p),console.log("WEIRD"),console.log(t),console.log(c),console.log(u),e.drawImage(t,l,c,u,d,r,n,i,o)}},{key:"maska",value:function(e){var t=this;return window.addEventListener("scroll",(function(){t.innerMask(e)})),this}},{key:"innerMask",value:function(e){if(e){var t=smartRange(window.scrollY,{min:e.start,max:e.end},{min:0,max:7}),r=smartRange(window.scrollY,{min:e.start,max:e.end},{min:37,max:37});this.res.style.clipPath="inset(".concat(t,"% ").concat(t,"% round 0 0 ").concat(r,"px ").concat(r,"px)")}}},{key:"setupTopElement",value:function(){var e=this;console.warn("TOP INIT");var t=document.createElement("canvas");if(t.style.gridArea="1/1",t.zIndex=1,t.style.display="grid",t.style.gridTemplate="1fr/1fr",t.style.justifyContent="center",t.style.alignItems="center",t.style.marginLeft="auto",t.style.marginRight="auto",this.context=t.getContext("2d"),this.context.canvas.width=window.innerWidth,this.context.canvas.height=1.2*window.innerHeight,this.img=new Image,this.img.onload=function(){e.data.halfHeight?e.drawImageProp(e.context,e.img,0,0,window.innerWidth,window.innerHeight/2):e.drawImageProp(e.context,e.img,0,0,window.innerWidth,1.2*window.innerHeight)},window.addEventListener("resize",(function(){e.context.canvas.width=window.innerWidth,e.context.canvas.height=1.2*window.innerHeight,e.drawImageProp(e.context,e.img,0,0,window.innerWidth,1.2*window.innerHeight)})),this.res.appendChild(t),this.data.text){var r=document.createElement("div");r.style.gridArea="1/1";var n=this.data.text.render();if(this.h2a=n,r.appendChild(n),r.setAttribute("id","rem"),this.data.hasRect){var i=document.createElement("div");i.style.width="30px",i.style.height="30px",i.style.backgroundColor="orange"}else for(var o=0;o<this.res.children.length;o++)"rem"===this.res.children[o].id&&this.res.removeChild(this.res.children[o]);this.res.appendChild(r)}this.lastScrollTop=0,this.count=1,this.isUp=!1,this.done=!1,this.fireOnce=!0,this.dec=1,this.tdec=1,this.atdec=0,this.textOpacity=1,this.res.children[this.res.children.length-1].children[0].style.opacity=0,this.data.text&&window.addEventListener("scroll",(function(){e.h2a.style.backgroundColor="rgba(0, 0, 0, 0.8)",e.h2a.style.opacity=1})),window.addEventListener("scroll",(function(t){if(e.data.stickyData&&e.data.stickyData.top){var r=e.data.stickyData.top;e.data.uncomment&&(window.scrollY>r?(wrapDiv.style.background="pink",wrapDiv.style.position="relative",wrapDiv.style.top=r):(wrapDiv.style.background="orange",wrapDiv.style.top=0,wrapDiv.style.position="fixed"))}var n=window.scrollY||document.documentElement.scrollTop;if(n>e.lastScrollTop?e.isUp=!1:e.isUp=!0,e.lastScrollTop=n<=0?0:n,e.isUp&&e.textOpacity<.98&&(e.textOpacity+=.01),!1===e.isUp&&e.textOpacity>.02&&(e.textOpacity-=.01),e.data.mask){var i=e.res,o=smartRange(window.scrollY,{min:e.data.maskData.start,max:e.data.maskData.end},{min:0,max:7});if(i.style.clipPath="inset(".concat(o,"% ").concat(o,"% round 20px)"),!e.hasH2){var s=document.createElement("div");s.style.background="#ecf0f1",s.style.width="86%",s.style.marginLeft="7%",s.style.borderRadius="1rem",e.hasH2=!0,s.appendChild(e.data.newSection.render()),i.parentElement.appendChild(s)}}e.data.targetHeight}))}},{key:"setLazyText",value:function(e){var t=this;return this.lazyText=e,window.addEventListener("scroll",(function(){for(var e=smartRange(window.scrollY,{min:t.lazyText.start,max:t.lazyText.end},{min:0,max:200}),r=smartRange(window.scrollY,{min:t.lazyText.start,max:t.lazyText.end},{min:0,max:1}),n=0;n<t.h2a.children[0].children.length;n++)console.log("P"),t.h2a.children[0].children[n].style.transform="matrix(1, 0, 0, 1, 0, -".concat(e,")"),t.h2a.children[0].children[n].style.opacity="".concat(r-.2*n)})),this}},{key:"setProps",value:function(e){return e.targetHeight&&(this.data.targetHeight=e.targetHeight),e.flagValue&&(this.flagValue=e.flagValue),this}},{key:"fixedToRelative",value:function(e){this.data.uncomment=e}},{key:"toSticky",value:function(){return this.res.style.position="sticky",this.res.style.top="0",this}},{key:"setOpacityRange",value:function(e){var t=this;return this.data.opacityRange=e.opacityRange,this.data.scaleRange=e.scaleRange,window.addEventListener("scroll",(function(){var e=smartRange(window.scrollY,{min:t.data.opacityRange.start,max:t.data.opacityRange.end},{min:0,max:1});t.h2a.style.opacity=e;var r=smartRange(window.scrollY,{min:t.data.scaleRange.start,max:t.data.scaleRange.end},{min:3,max:1});window.matchMedia("(max-device-width: 415px)").matches||(t.h2a.children[0].style.transform="scale(".concat(r,")"))})),this}},{key:"stick",value:function(e){return e?(e.offset&&(null!=this.data.stickyData?this.data.stickyData.top=e.offset:this.data.stickyData={top:e.offset}),e.value?this.makeSticky():this.noSticky(),this):(this.makeSticky(),this)}},{key:"to100vh",value:function(){this.res.style.height="100vh"}},{key:"makeSticky",value:function(){return this.res.style.position="sticky",this.res.style.top=0,this}},{key:"noSticky",value:function(){return this.res.style.position="",this}},{key:"toOpacity",value:function(e){this.res.style.opacity="".concat(e)}},{key:"render",value:function(e){if(!e)return this.res;document.querySelector(e).appendChild(this.res)}}])}();function transformanim_typeof(e){return transformanim_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},transformanim_typeof(e)}function transformanim_classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function transformanim_defineProperties(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,transformanim_toPropertyKey(n.key),n)}}function transformanim_createClass(e,t,r){return t&&transformanim_defineProperties(e.prototype,t),r&&transformanim_defineProperties(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function transformanim_toPropertyKey(e){var t=transformanim_toPrimitive(e,"string");return"symbol"==transformanim_typeof(t)?t:t+""}function transformanim_toPrimitive(e,t){if("object"!=transformanim_typeof(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=transformanim_typeof(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function convertRange(e,t,r){var n=(e-t.min)*(r.max-r.min)/(t.max-t.min)+r.min;return n>1&&(n=2-n),n}var TransformAnim=function(){return transformanim_createClass((function e(t){transformanim_classCallCheck(this,e),this.data=t,this.targetHeight=this.data.targetHeight,void 0===this.data.type?this.type="default":this.type=this.data.type,this.layout="flex",this.setup()}),[{key:"toCode",value:function(){return[""]}},{key:"set",value:function(e){return console.log("WHY NOT 900"),e.arrayPadding&&(this.wrdiv.style.marginTop=e.arrayPadding.value),e.height&&(this.wrdiv.style.height=e.height),this}},{key:"setup",value:function(){var e=this,t=document.createElement("div");this.wrdiv=t,t.style.display="flex",t.style.flexDirection="column",this.data.overflow&&(t.style.overflow="hidden"),t.style.display="flex",t.style.justifyContent="center",t.style.alignItems="center",t.style.background="orange",t.style.height="900px",this.data.sticky||(t.style.position="fixed"),t.style.marginTop="0px";var r=document.createElement("img");r.style.gridArea="1/1",r.style.display="none",r.style.width="50%",r.setAttribute("src","M2.jpeg"),r.setAttribute("class","m2"),t.appendChild(r),this.data.view&&(this.m2img=this.data.view.render(),t.appendChild(this.m2img)),this.data.paragraph&&(this.paragraph=this.data.paragraph.render(),t.appendChild(this.paragraph)),this.data.view&&(r.style.display="none");var n=document.createElement("h2");n.style.fontFamily="Arial",n.style.fontSize="2.4rem",n.style.background="linear-gradient(#3498db, #1abc9c)",n.style.webkitBackgroundClip="text",n.style.webkitTextFillColor="transparent";var i=document.createTextNode("Supercharged");n.appendChild(i),!0!==this.data.showTitle&&void 0!==this.data.showTitle||(this.data.content&&this.data.content.render?t.appendChild(this.data.content.render()):t.appendChild(n));var o=document.createElement("p");document.createTextNode("Hello"),t.appendChild(o),this.res=t,window.addEventListener("scroll",(function(i){return e.resize(t,r,n)})),this.resize(t,r,n)}},{key:"setStickyData",value:function(e){return this.data.stickyData=e,this}},{key:"toAuto",value:function(){return this.res.style.height="auto",this}},{key:"stick",value:function(e){return e?(e.offset&&(null!=this.data.stickyData?this.data.stickyData.top=e.offset:(this.data.stickyData={top:e.offset},this.fixedToRelative(!0))),e.value?this.makeSticky():this.noSticky(),this):(this.makeSticky(),this)}},{key:"makeSticky",value:function(){return this.wrdiv.style.position="sticky",this.wrdiv.style.top=0,this}},{key:"setProps",value:function(e){return e.targetHeight&&(this.data.targetHeight=e.targetHeight),e.flagValue&&(this.data.flagValue=e.flagValue),this}},{key:"noSticky",value:function(){return this.wrdiv.style.position="",this}},{key:"toSticky",value:function(){return this.wrdiv.style.position="sticky",this.wrdiv.style.top="0",this}},{key:"toOpacity",value:function(e){this.res.style.opacity="".concat(e)}},{key:"setUncomment",value:function(e){this.data.uncomment=e}},{key:"fixedToRelative",value:function(e){return this.data.uncomment=e,this}},{key:"mask",value:function(e){var t=this;return window.addEventListener("scroll",(function(){t.innerMask(e)})),this}},{key:"innerMask",value:function(e){if(e){var t=transformanim_smartRange(window.scrollY,{min:e.start,max:e.end},{min:7,max:0});console.warn(t),console.warn(window.scrollY),transformanim_smartRange(window.scrollY,{min:e.start,max:e.end},{min:37,max:37})}return this}},{key:"setScale",value:function(e){var t=this;return this.data.range=e,this.m2img.style.transform="scale(".concat(this.data.range.scaleMax,")"),window.addEventListener("scroll",(function(){var e=transformanim_smartRange(window.scrollY,{min:t.data.range.min,max:t.data.range.max},{min:t.data.range.scaleMax,max:t.data.range.scaleMin});null!=t.m2img&&(t.m2img.style.transform="scale(".concat(e,")"))})),this}},{key:"resize",value:function(e,t,r){var n=window.scrollY||document.documentElement.scrollTop;if(n>this.lastScrollTop?this.isUp=!1:this.isUp=!0,this.data.sticky)e.style.background="#fafafa";else if(this.data.stickyData){var i=this.data.stickyData.top;this.data.uncomment&&(window.scrollY>i?(e.style.background="pink",e.style.position="relative",e.style.top=i):(e.style.background="orange",e.style.top=0,e.style.position="fixed"))}this.lastScrollTop=n<=0?0:n;var o=t;this.m2img=t,this.data.view&&(o=this.m2img);var s=transformanim_smartRange(window.scrollY,{min:3150,max:3300},{min:0,max:100}),a=transformanim_smartRange(window.scrollY,{min:3150,max:3300},{min:60,max:80}),l=transformanim_smartRange(window.scrollY,{min:3150,max:3300},{min:0,max:40});this.data.operation&&"translate"===this.data.operation.type&&(o.style.transform="translate3d(".concat(s,"%, ").concat(s/2,"%, 0px) scale(").concat(a/100,") rotate(").concat(l,"deg)"))}},{key:"render",value:function(e){if(!e)return this.res;document.querySelector(e).appendChild(this.res)}}])}();function transformanim_smartRange(e,t,r){e<t.min&&(e=t.min),e>t.max&&(e=t.max);var n=(e-t.min)/(t.max-t.min);t.min>t.max&&(n=(e-t.max)/(t.min-t.max));var i=(r.min-r.max)*n-r.min;if(i=Math.abs(i),r.min<r.max){var o=(r.max+Math.abs(r.min))*n;i=r.min+o}return i}function stacker_typeof(e){return stacker_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},stacker_typeof(e)}function stacker_classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function stacker_defineProperties(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,stacker_toPropertyKey(n.key),n)}}function stacker_createClass(e,t,r){return t&&stacker_defineProperties(e.prototype,t),r&&stacker_defineProperties(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function stacker_toPropertyKey(e){var t=stacker_toPrimitive(e,"string");return"symbol"==stacker_typeof(t)?t:t+""}function stacker_toPrimitive(e,t){if("object"!=stacker_typeof(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=stacker_typeof(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var Stacker=function(){return stacker_createClass((function e(){stacker_classCallCheck(this,e),this.res=document.createElement("div"),this.res.style.display="flex",this.res.style.flexDirection="column"}),[{key:"add",value:function(e){for(var t=0;t<e.length;t++){var r=e[t].render();0===t&&(r.style.zIndex=1),this.res.appendChild(r)}return this}},{key:"render",value:function(e){if(!e)return this.res;document.querySelector(e).appendChild(this.res)}}])}();function scrollvideo_typeof(e){return scrollvideo_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},scrollvideo_typeof(e)}function scrollvideo_classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function scrollvideo_defineProperties(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,scrollvideo_toPropertyKey(n.key),n)}}function scrollvideo_createClass(e,t,r){return t&&scrollvideo_defineProperties(e.prototype,t),r&&scrollvideo_defineProperties(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function scrollvideo_toPropertyKey(e){var t=scrollvideo_toPrimitive(e,"string");return"symbol"==scrollvideo_typeof(t)?t:t+""}function scrollvideo_toPrimitive(e,t){if("object"!=scrollvideo_typeof(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=scrollvideo_typeof(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var ScrollVideo=function(){return scrollvideo_createClass((function e(){scrollvideo_classCallCheck(this,e),this.frameNumber=0,this.res=document.createElement("div"),this.vid=null,this.minScrollHeight=0,this.maxScrollHeight=1e3,this.videoUrl=""}),[{key:"set",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.minScrollHeight,r=void 0===t?0:t,n=e.maxScrollHeight,i=void 0===n?1e3:n,o=e.videoUrl,s=void 0===o?"":o;return this.minScrollHeight=r,this.maxScrollHeight=i,this.videoUrl=s,this.createElements("V0"),this.vid=this.res.children[0],this.init(),this}},{key:"createElements",value:function(e){var t=document.createElement("video");t.id=e,t.setAttribute("tabindex","0"),t.setAttribute("autobuffer","autobuffer"),t.setAttribute("preload","preload"),t.style.position="sticky",t.style.top="0",t.style.left="0",t.style.width="100%",t.style.height="100vh",t.style.border="1px solid orange";var r=document.createElement("source");r.type='video/mp4; codecs="avc1.42E01E, mp4a.40.2"',r.src=this.videoUrl,t.appendChild(r),this.res.appendChild(t);var n=document.createElement("p");n.id="time",n.style.fontFamily="Helvetica, Arial, sans-serif",n.style.fontSize="24px",this.res.appendChild(n);var i=document.createElement("div");i.id="set-height",i.style.display="block",this.setop=i,this.res.appendChild(i)}},{key:"sticky",value:function(){return this.res.style.position="sticky",this.res.style.top=0,this}},{key:"init",value:function(){var e=this;this.vid.addEventListener("loadedmetadata",(function(){var t=e.setop;if(t){var r=e.maxScrollHeight-e.minScrollHeight;t.style.height="".concat(r,"px")}else console.error("Error: 'set-height' element not found.")})),this.scrollPlay()}},{key:"scrollPlay",value:function(){var e=this;if(this.vid&&!isNaN(this.vid.duration)){var t=Math.max(this.minScrollHeight,Math.min(window.pageYOffset,this.maxScrollHeight)),r=this.maxScrollHeight-this.minScrollHeight,n=(t-this.minScrollHeight)/r;this.vid.currentTime=n*this.vid.duration,window.requestAnimationFrame((function(){return e.scrollPlay()}))}else window.requestAnimationFrame((function(){return e.scrollPlay()}))}},{key:"toCode",value:function(){return[""]}},{key:"render",value:function(e){if(!e)return this.res;document.querySelector(e).appendChild(this.res)}}])}();"undefined"!=typeof window&&(window.ElementMapper=elementMapper.I,window.Animator=animator.y,window.Text=layout_text.E,window.Image=layout_image._,window.Link=layout_link.N,window.FlexRow=FlexRow,window.UINavBar=UINavBar,window.Free=free.b,window.Audio=audionew.f,window.Progress=Progress,window.Center=Center,window.Code=Code,window.Stack=stack.B,window.Wrapper=container.m,window.MetaAdder=MetaAdder,window.Table=Table,window.Dropdown=dropdown2025.m,window.Modal=Modal,window.TextField=layout_TextField,window.Card=Card,window.Wrap=Wrap,window.FlexGrid=FlexGrid,window.ZoomCard=ZoomCard,window.CustomDivRenderer=CustomDivRenderer,window.SideBar=SideBar,window.SideNav=sideNavBar.f,window.SimpleBar=SimpleBar,window.DesktopBar=betaDesktopBar.C,window.MobileBar=betaMobileBar.m,window.Switcher=multiswitcher.i,window.Spacer=spacer.h,window.HScroller=HScroller,window.Checkbox=layout_checkbox.S,window.Base=Base,window.FilePickera=imagePicker.I,window.Picker=picker.L,window.Range=range.Q,window.RadioGroup=formComponents_radio.z,window.DataList=dataList.T,window.Button=layout_button.$,window.Des=designer.H,window.LinkStyler=linkGetter.a,window.CardGen=cardGetter.Z,window.KeyframeAnim=KeyframeAnim,window.TransformAnim=TransformAnim,window.Stacker=Stacker,window.ScrollVideo=ScrollVideo),void 0!==__webpack_require__.g&&(__webpack_require__.g.ElementMapper=elementMapper.I,__webpack_require__.g.Animator=animator.y,__webpack_require__.g.Text=layout_text.E,__webpack_require__.g.Image=layout_image._,__webpack_require__.g.Link=layout_link.N,__webpack_require__.g.FlexRow=FlexRow,__webpack_require__.g.UINavBar=UINavBar,__webpack_require__.g.Free=free.b,__webpack_require__.g.Audio=audionew.f,__webpack_require__.g.Progress=Progress,__webpack_require__.g.Center=Center,__webpack_require__.g.Code=Code,__webpack_require__.g.Stack=stack.B,__webpack_require__.g.Wrapper=container.m,__webpack_require__.g.MetaAdder=MetaAdder,__webpack_require__.g.Table=Table,__webpack_require__.g.Dropdown=dropdown2025.m,__webpack_require__.g.Modal=Modal,__webpack_require__.g.TextField=layout_TextField,__webpack_require__.g.Card=Card,__webpack_require__.g.Wrap=Wrap,__webpack_require__.g.FlexGrid=FlexGrid,__webpack_require__.g.ZoomCard=ZoomCard,__webpack_require__.g.CustomDivRenderer=CustomDivRenderer,__webpack_require__.g.SideBar=SideBar,__webpack_require__.g.SideNav=sideNavBar.f,__webpack_require__.g.SimpleBar=SimpleBar,__webpack_require__.g.DesktopBar=betaDesktopBar.C,__webpack_require__.g.MobileBar=betaMobileBar.m,__webpack_require__.g.Switcher=multiswitcher.i,__webpack_require__.g.Spacer=spacer.h,__webpack_require__.g.HScroller=HScroller,__webpack_require__.g.Checkbox=layout_checkbox.S,__webpack_require__.g.Base=Base,__webpack_require__.g.FilePickera=imagePicker.I,__webpack_require__.g.Picker=picker.L,__webpack_require__.g.Range=range.Q,__webpack_require__.g.RadioGroup=formComponents_radio.z,__webpack_require__.g.DataList=dataList.T,__webpack_require__.g.Button=layout_button.$,__webpack_require__.g.Des=designer.H,__webpack_require__.g.LinkStyler=linkGetter.a,__webpack_require__.g.CardGen=cardGetter.Z,__webpack_require__.g.KeyframeAnim=KeyframeAnim,__webpack_require__.g.TransformAnim=TransformAnim,__webpack_require__.g.Stacker=Stacker,__webpack_require__.g.ScrollVideo=ScrollVideo),module.exports=__webpack_exports__})();
1
+ (()=>{"use strict";var __webpack_modules__={7:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function i(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,o(n.key),n)}}function o(e){var t=function(e){if("object"!=n(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=n(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==n(t)?t:t+""}r.d(t,{B:()=>s});var s=function(){return e=function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.code=[],this.setup();for(var r=0;r<t.length;r++)this.res.appendChild(t[r].render().render())},(t=[{key:"setup",value:function(){var e=document.createElement("div");e.style.padding=0,e.style.margin=0,this.res=e}},{key:"width",value:function(e,t){return this.res.style.width=e,t&&(this.res.style.marginLeft="auto",this.res.style.marginRight="auto"),this}},{key:"padding",value:function(e){return this.res.style.padding="".concat(e,"px"),this}},{key:"size",value:function(e,t){return this.w=e,this.h=t,this.w?this.res.style.width=this.w:this.res.style.width=window.innerWidth,this.h?this.res.style.height=this.h:this.res.style.height=window.innerHeight,this}},{key:"border",value:function(e,t){return this.res.style.border="".concat(t,"px solid ").concat(e),this}},{key:"render",value:function(e){if(!e)return this.res;document.querySelector(e).appendChild(this.res)}}])&&i(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}()},11:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function i(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,o(n.key),n)}}function o(e){var t=function(e){if("object"!=n(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=n(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==n(t)?t:t+""}r.d(t,{B:()=>s});var s=function(){return e=function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.res=null,this.st=t},t=[{key:"setup",value:function(){var e=document.createElement("div");return e.style.display="grid",this.res=e,this.st&&this.sticky(),this}},{key:"set",value:function(e){return this.setup(),e.height&&(this.res.style.height=e.height),e.sticky&&this.sticky(),this}},{key:"sticky",value:function(){return this.res.style.position="sticky",this.res.style.top=0,this}},{key:"add",value:function(e){this.children=e;for(var t=0;t<e.length;t++){var r=e[t].render();r.style.gridColumn=1,r.style.gridRow=1,this.res.appendChild(r)}return this}},{key:"toCode",value:function(){var e="new Stack().set({})";if(this.children.length>0){var t=this.children.map((function(e){return e.toCode()})).join(",\n");e+=".add([\n \n ".concat(t," \n \n])")}return[e]}},{key:"render",value:function(e){if(!e)return this.res;document.querySelector("body").style.margin=0,document.querySelector("body").style.padding=0,document.querySelector(e).appendChild(this.res)}}],t&&i(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}()},16:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function i(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o,s,a=[],l=!0,c=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=o.call(r)).done)&&(a.push(n.value),a.length!==t);l=!0);}catch(e){c=!0,i=e}finally{try{if(!l&&null!=r.return&&(s=r.return(),Object(s)!==s))return}finally{if(c)throw i}}return a}}(e,t)||o(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(e,t){if(e){if("string"==typeof e)return s(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?s(e,t):void 0}}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function a(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,l(n.key),n)}}function l(e){var t=function(e){if("object"!=n(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=n(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==n(t)?t:t+""}function c(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(c=function(){return!!e})()}function u(e,t,r,n){var i=d(h(1&n?e.prototype:e),t,r);return 2&n&&"function"==typeof i?function(e){return i.apply(r,e)}:i}function d(){return d="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,r){var n=function(e,t){for(;!{}.hasOwnProperty.call(e,t)&&null!==(e=h(e)););return e}(e,t);if(n){var i=Object.getOwnPropertyDescriptor(n,t);return i.get?i.get.call(arguments.length<3?e:r):i.value}},d.apply(null,arguments)}function h(e){return h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},h(e)}function p(e,t){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},p(e,t)}r.d(t,{E:()=>y});var y=function(e){function t(e,r){var i;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(i=function(e,t,r){return t=h(t),function(e,t){if(t&&("object"==n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,c()?Reflect.construct(t,r||[],h(e).constructor):t.apply(e,r))}(this,t)).text=e,i.res=null,i.setup(r),i.code=[],i.elCSS=[],i.html=[],i.react=[],i.code.push('new Text("'.concat(i.text,'")')),i}return function(e,t){if("function"!=typeof t&&null!==t)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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&p(e,t)}(t,e),r=t,s=[{key:"flexOne",value:function(){return this.res.style.flex="1",this}},{key:"setGridWithoutCode",value:function(){return this.res.style.border="1px solid white",this}},{key:"setArea",value:function(e){return this.res.style.gridArea=e,this}},{key:"toCodea",value:function(){return this.excludeFromCodeTrue&&(this.code=[""]),this.code}},{key:"toCode",value:function(){if(this.excludeFromCodeTrue)return[""];var e=Object.fromEntries(Object.entries(this.options).filter((function(e){var t=i(e,2);return t[0],null!==t[1]}))),t=JSON.stringify(e,null,4).replace(/"([^"]+)":/g,"$1:");return console.log("OCO"),console.log(t),['new Text("'.concat(this.text,'").set(').concat(t,")")]}},{key:"toCSS",value:function(){return this.css}},{key:"toHTMLA",value:function(){return this.html}},{key:"toElCSS",value:function(){return this.elCSS=this.elCSS.map((function(e){return" "+e})),this.preffersId?this.elCSS.unshift(this.res.id+" { \n"):this.elCSS.unshift("."+this.class+" { \n"),this.elCSS.push(" } \n \n"),this.elCSS}},{key:"getType",value:function(){return"S1"===this.options.fluidc?"HTMLHeaderElement":"HTMLParagraphElement"}},{key:"gradientOptions",value:function(e){var t=this;if(0===e.length)return this;var r=e.filter((function(e){return"gradient"===e.op.name}))[0];if(void 0===r)return this;var n=r.op;if(r.point){var i=function(){window.matchMedia("(min-width: ".concat(r.range[0],") and (max-width: ").concat(r.range[1],")")).matches&&(t.prevBackground=t.res.style.color.toString(),t.res.style.background=n.gradient,t.res.style.WebkitBackgroundClip="text")};i(),window.addEventListener("resize",i)}}},{key:"strokeOptions",value:function(e){var t=this;if(0===e.length)return this;var r=e.filter((function(e){return"blast"===e.op.name}))[0];if(void 0===r)return this;console.log("DEL");var n=r.op;if(r.point){var i=function(){window.matchMedia("(min-width: ".concat(r.range[0],") and (max-width: ").concat(r.range[1],")")).matches&&(n.color?t.res.style["-webkit-text-stroke"]="".concat(n.width?n.width:"1px"," ").concat(n.color):t.res.style["-webkit-text-stroke"]="1px orange",t.res.style["-webkit-text-fill-color"]="transparent")};i(),window.addEventListener("resize",i)}else n.color&&(this.res.style["-webkit-text-stroke"]="".concat(n.width?n.width:"1px"," ").concat(n.color)),this.res.style["-webkit-text-fill-color"]="transparent"}},{key:"stroke",value:function(){return this.res.style["-webkit-text-stroke"]="3px orange",this}},{key:"fill",value:function(){return this.res.style["-webkit-text-fill-color"]="transparent",this}},{key:"rowCol",value:function(e,t){return this.res.style.gridRow=e,this.res.style.gridColumn=t,this}},{key:"setGridRow",value:function(e){return this.res.style.gridRow=e,this}},{key:"setGridCol",value:function(e){return this.res.style.gridColumn=e,this}},{key:"toHTML",value:function(){return this.res}},{key:"onTap",value:function(e){return this.res.addEventListener("click",e),this}},{key:"setClass",value:function(e){return this.res.setAttribute("class",e),this}},{key:"setRandom",value:function(){for(var e="LAYOUT-",t=90;t>0;--t)e+="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"[Math.floor(62*Math.random())];return e+=(new Date).getTime(),this.res.setAttribute("class",e),this}},{key:"styled",value:function(e){return this.set(e),this}},{key:"removeQuotesFromFirstWord",value:function(e){return e.replace(/"([^"]+)":/g,"$1:")}},{key:"set",value:function(e){this.resCopy=this.res,this.options=e,u(t,"setPrevText",this,3)([this.text]),e.maxWidth&&(this.res.style.maxWidth=e.maxWidth),e.cursor&&(this.res.style.cursor="hand"),e.gpos&&this.gpos(e.gpos),e.vtn&&(this.res.style.viewTransitionName=e.vtn),e.index&&u(t,"setIndex",this,3)([e.index]),e.index&&(this.index=e.index),e.preffersId&&(this.preffersId=e.preffersId),u(t,"setPref",this,3)([e.preffersId]),e.removeDecoration&&(this.res.style.textDecoration="none"),e.block&&(this.res.style.display="block"),e.area&&this.setArea(e.area),e.icon&&this.addIcon(e.icon),e.color&&this.color(e.color),e.color&&this.elCSS.push("color: ".concat(e.color,"; \n")),e.class&&this.setClass(e.class),e.size&&this.fluidCopy(e.size),e.fluidc&&this.fluidCopy(e.fluidc),e.initLetter&&this.initLetter(e.initLetter),e.onTap&&this.onTap(e.onTap),"S6"===e.fluidc?e.fluidc&&this.elCSS.push("font-size: calc(1.1rem + 2.075vw); \n"):e.fluidc&&this.elCSS.push("font-size: calc(1.625rem + 5.075vw); \n"),this.options.id&&this.res.setAttribute("id",this.options.id),u(t,"setID",this,3)([this.options.id]),this.options.class&&this.res.setAttribute("class",this.options.class),u(t,"setClass",this,3)([this.options.class]),e.clampc&&this.clampCopy(e.clampc),e.arrpad&&this.arrayPadding(e.arrpad.sides,e.arrpad.value),e.pad&&this.pad(e.pad),e.respad&&this.respad(e.respad),e.resmar&&this.resmar(e.resmar),e.mar&&this.mar(e.mar),e.exact&&(this.res.style.fontSize=e.exact),e.zIndex&&(this.res.style.zIndex=e.zIndex),e.absolute&&(this.res.style.position="absolute"),e.arrayMargin&&this.arrayMargin(e.arrayMargin.sides,e.arrayMargin.value),e.em&&this.em(e.em),e.fluid&&this.fluid(e.fluid),e.font&&this.font(e.font),e.fluidc&&this.elCSS.push("font-family: ".concat(e.font,"; \n")),e.align&&(this.res.style.textAlign=e.align),e.weight&&(this.res.style.fontWeight=e.weight),e.padding&&this.padding(e.padding),e.breakWord&&(this.res.style.wordWrap="break-word"),e.center&&(this.res.style.marginRight="auto"),e.center&&(this.res.style.marginLeft="auto"),e.width&&(this.res.style.width=e.width),e.height&&(this.res.style.height=e.height),e.background&&(this.res.style.backgroundColor=e.background),e.radius&&(this.res.style.borderRadius=e.radius),e.italic&&this.italic(),e.responsive&&this.responsive(),e.border&&(this.res.style.border="".concat(e.border)),e.onScroll&&this.onScroll(e.onScroll),e.keySet&&this.keySet(e.keySet),e.maxHeight&&(this.res.style.maxHeight=e.maxHeight),e.transform&&this.reactOnTransform(e.transform),console.log("OGA"),console.log(e);var r=[];if(e.stroke||e.gradient||e.span||e.backgroundOp||e.layout||e.shadow||e.animation||e.filtera||e.transform){e.gradient&&(this.globalGradient=e.gradient.op.gradient),e.stroke&&u(t,"setAny",this,3)([{globalBlast:"".concat(e.stroke.op.width," ").concat(e.stroke.op.color)}]),e.span&&(e.span.prevText=this.text);var n=[e.stroke,e.gradient,e.animation,e.span,e.backgroundOp,e.layout,e.marginOp,e.shadow,e.animation,e.filtera,e.transform];n=n.filter((function(e){return null!=e}));for(var i=0;i<n.length;i++)r.push({range:n[i].range,log:n[i].op.name,target:n[i].target,op:n[i].op});var o=[];e.borderObj&&o.push("border"),e.background&&o.push("background"),e.mar&&o.push("margin"),e.animation&&o.push("animation"),e.span&&o.push("span"),this.chainReact(r,this.options.id,o)}return this}},{key:"excludeFromCode",value:function(){return this.excludeFromCodeTrue=!0,this}},{key:"addIcon",value:function(e){var t=document.createElement("img");return t.style.width="20px",t.style.marginLeft="10px",t.style.height="auto",t.setAttribute("src",e.url),this.res.appendChild(t),this}},{key:"checkForAnimation",value:function(e){e.sort((function(e,t){return parseInt(e.range[0])-parseInt(t.range[0])}));var t,r=window.innerWidth,n=function(e){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=o(e))){t&&(e=t);var r=0,n=function(){};return{s:n,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,s=!0,a=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return s=e.done,e},e:function(e){a=!0,i=e},f:function(){try{s||null==t.return||t.return()}finally{if(a)throw i}}}}(e);try{for(n.s();!(t=n.n()).done;){var s=t.value,a=i(s.range,2),l=a[0],c=a[1],u=parseInt(l),d=parseInt(c);r>=u&&r<=d&&"animation"===s.log&&this.res.animate([{opacity:0,transform:"translateY(100px)"},{opacity:1,transform:"translateY(0)"}],{duration:1e3,easing:"ease"})}}catch(e){n.e(e)}finally{n.f()}}},{key:"resetSmall",value:function(){this.res.style["-webkit-text-stroke"]="",this.res.style["-webkit-text-fill-color"]=""}},{key:"resetGradient",value:function(){return this.res.style.WebkitBackgroundClip="text",this.res.style.background="transparent",this}},{key:"resetStroke",value:function(){this.res.style["-webkit-text-stroke"]="",this.res.style["-webkit-text-fill-color"]=""}},{key:"innerStroke",value:function(e){e.color?this.res.style["-webkit-text-stroke"]="".concat(e.width?e.width:"1px"," ").concat(e.color):this.res.style["-webkit-text-stroke"]="1px orange",this.res.style["-webkit-text-fill-color"]="transparent"}},{key:"innerGradient",value:function(e){this.res.style.background="linear-gradient(45deg, #ff0000, #00ff00)",this.res.style["-webkit-background-clip"]="text"}},{key:"arrayMargin",value:function(e,t){return t||(this.res.style.marginLeft="".concat(e[0],"px"),this.res.style.marginTop="".concat(e[1],"px"),this.res.style.marginRight="".concat(e[2],"px"),this.res.style.marginBottom="".concat(e[3],"px")),e.includes("left")&&(this.res.style.marginLeft=t),e.includes("right")&&(this.res.style.marginRight=t),e.includes("top")&&(this.res.style.marginTop=t),e.includes("bottom")&&(this.res.style.marginBottom=t),t||(this.res.style.marginBottom=e),this}},{key:"clampExperiment",value:function(){return this.res.style.fontSize="clamp(1rem, calc(1rem * 10rem), 3rem)",this}},{key:"between",value:function(e){return"S1"===e&&(this.res.style.fontSize="clamp(2rem, 8vw, 2.5rem)"),"S2"===e&&(this.res.style.fontSize="clamp(4rem, 8vw, 5rem)"),"S3"===e&&(this.res.style.fontSize="clamp(2rem, 5vw, 2.5rem)"),"S4"===e&&(this.res.style.fontSize="clamp(1.5rem, 2vw, 1.6rem)"),"S5"===e&&(this.res.style.fontSize="clamp(1.2rem, 2vw, 1.3rem)"),"S6"===e&&(this.res.style.fontSize="clamp(1rem, 2vw, 1.3rem)"),this}},{key:"betweenCopy",value:function(e){return"S1"===e&&(this.res.style.fontSize="clamp(2rem, 8vw, 2.5rem)"),"S2"===e&&(this.res.style.fontSize="clamp(4rem, 8vw, 5rem)"),"S3"===e&&(this.res.style.fontSize="clamp(2rem, 5vw, 2.5rem)"),"S4"===e&&(this.res.style.fontSize="clamp(1.5rem, 2vw, 1.6rem)"),"S5"===e&&(this.res.style.fontSize="clamp(1.2rem, 2vw, 1.3rem)"),"S6"===e&&(this.res.style.fontSize="clamp(1rem, 2vw, 1.3rem)"),this}},{key:"stringGen",value:function(e){for(var t="",r=0;r<e;r++)t+="abcdefghijklmnopqrstuvwxyz".charAt(Math.floor(26*Math.random()));return t}},{key:"initLetter",value:function(e){var t=document.createElement("style");document.body.appendChild(t),Math.random();var r=this.stringGen(1e3);return this.res.setAttribute("id",r),document.styleSheets[0].insertRule("#".concat(r,"::first-letter { color: green; font-size: 3em; padding: 0.1em }"),0),this}},{key:"constant",value:function(e){return"S1"===e&&this.jumbotron(),"S2"===e&&this.large(),"S3"===e&&this.medium(),this}},{key:"minusMargin",value:function(){return this.res.style.marginRight="-3.1em",this}},{key:"fluid",value:function(e){if("S1"===e){this.res=document.createElement("h1");var t=document.createTextNode(this.text);this.res.appendChild(t),this.res.style.fontSize="calc(1.625rem + 4.3vw)"}if("S2"===e){this.res=document.createElement("h2");var r=document.createTextNode(this.text);this.res.appendChild(r),this.res.style.fontSize="calc(1.525rem + 3.525vw)"}if("S3"===e){this.res=document.createElement("h3");var n=document.createTextNode(this.text);this.res.appendChild(n),this.res.style.fontSize="calc(1.375rem + 2.75vw)"}if("S4"===e){this.res=document.createElement("h4");var i=document.createTextNode(this.text);this.res.appendChild(i),this.res.style.fontSize="calc(1.275rem + 1.975vw)"}return"S5"===e&&(this.res.style.fontSize="calc(1.1rem + 1.2vw)"),this}},{key:"getClampValue",value:function(e){return"S7"===e?"clamp(1.45rem, 2vw + 1.5rem, 1.69rem)":"S6"===e?"clamp(2.25rem, 2vw+1.5rem, 3.25rem)":"S5"===e?"clamp(2.75rem, 2vw + 1.5rem, 3.25rem)":"S4"===e?"clamp(3.5rem, 2vw + 1.5rem, 3.25rem)":"S3"===e?"clamp(4.25rem, 2vw + 1.5rem, 3.25rem)":"S2"===e?"clamp(5rem, 2vw + 1.5rem, 3.25rem)":"S1"===e?"clamp(6rem, 2vw + 1.5rem, 3.25rem)":void 0}},{key:"clampCopy",value:function(e){return this.res.style.fontSize=this.getClampValue(e),this}},{key:"fluidCopy",value:function(e){if(e instanceof Object){this.prevStylex=this.res.style,this.res=document.createElement("h1"),this.res.style.cssText=this.prevStylex.cssText;var t=document.createTextNode(this.text);return this.res.appendChild(t),this.res.style.fontSize=e.exact,this}if("S1"===e){this.prevStylex=this.res.style,this.res=document.createElement("h1"),this.res.style.cssText=this.prevStylex.cssText;var r=document.createTextNode(this.text);this.res.appendChild(r),this.res.style.fontSize="calc(1.625rem + 5.075vw)"}if("S2"===e){this.prevStylex=this.res.style,this.res=document.createElement("h2"),this.res.style.cssText=this.prevStylex.cssText;var n=document.createTextNode(this.text);this.res.appendChild(n),this.res.style.fontSize="calc(1.500rem + 4.3vw)"}if("S3"===e){this.prevStylex=this.res.style,this.res=document.createElement("h3"),this.res.style.cssText=this.prevStylex.cssText;var i=document.createTextNode(this.text);this.res.appendChild(i),this.res.style.fontSize="calc(1.375rem + 3.525vw)"}if("S4"===e){this.prevStylex=this.res.style,this.res=document.createElement("h4"),this.res.style.cssText=this.prevStylex.cssText;var o=document.createTextNode(this.text);this.res.appendChild(o),this.res.style.fontSize="calc(1.250rem + 2.75vw)"}if("S5"===e){this.prevStylex=this.res.style,this.res=document.createElement("h5"),this.res.style.cssText=this.prevStylex.cssText;var s=document.createTextNode(this.text);this.res.appendChild(s),this.res.style.fontSize="calc(1.125rem + 1.975vw)"}return"S6"===e&&(this.options&&!1===this.options.preffersId?this.html.push('<p class="'.concat(this.options.class,'">').concat(this.text,"</p> \n \n")):this.options&&this.options.id&&this.html.push('<p id="'.concat(this.options.id.substr(1),'">').concat(this.text,"</p> \n \n")),this.res.style.fontSize="calc(1rem + 0.5vw)"),this}},{key:"toReactComponent",value:function(){return this.react.push("function Godzilla() { \n"),this.react.push('return <h1 class="'.concat(this.options.class,'">').concat(this.text,"</h1> \n")),this.react.push("} \n \n"),this.react}},{key:"myself",value:function(e){var t=this,r=function(){window.matchMedia("(max-device-width: 415px)").matches?t.res.style.fontSize=e.desktop:t.res.style.fontSize=e.phone};return r(),window.addEventListener("resize",r),this}},{key:"jumbotron",value:function(){var e=this,t=function(){window.matchMedia("(max-device-width: 415px)").matches?e.res.style.fontSize="8rem":e.res.style.fontSize="6rem"};return t(),window.addEventListener("resize",t),this}},{key:"large",value:function(){var e=this,t=function(){window.matchMedia("(max-device-width: 415px)").matches?e.res.style.fontSize="7rem":e.res.style.fontSize="5rem"};return t(),window.addEventListener("resize",t),this}},{key:"frame",value:function(e){return this.res.style.width=e.width,this.res.style.height=e.height,this}},{key:"vw",value:function(e,t,r){}},{key:"responsive",value:function(e){var t=this;this.set=!1,this.setB=!1;var r=function(){window.innerWidth<e.minw?(t.setB=!1,t.set||(t.res.style.color="#3498db",t.res.style.fontSize="".concat(e.baseVW/100*window.innerWidth,"px"),t.set=!0)):window.innerWidth>e.maxw?(t.set=!1,t.setB||(t.res.style.color="orange",t.res.style.fontSize="".concat(e.baseVW/100*e.maxw,"px"),t.setB=!0)):(t.set=!1,t.setB=!1,t.res.style.color="black",t.res.style.fontSize="".concat(e.baseVW,"vw"))};return r(),window.addEventListener("resize",r),this}},{key:"xlarge",value:function(){var e=this,t=function(){window.matchMedia("(max-device-width: 415px)").matches?e.res.style.fontSize="6.5rem":e.res.style.fontSize="8.5rem"};return t(),window.addEventListener("resize",t),this}},{key:"medium",value:function(){var e=this,t=function(){window.matchMedia("(max-device-width: 415px)").matches?e.res.style.fontSize="2.25rem":e.res.style.fontSize="1.5em"};return t(),window.addEventListener("resize",t),this}},{key:"auto",value:function(){var e=this,t=function(){window.matchMedia("(max-device-width: 415px)").matches?e.res.style.fontSize="2rem":e.res.style.fontSize="1rem"};return t(),window.addEventListener("resize",t),this}},{key:"small",value:function(){var e=this,t=function(){window.matchMedia("(max-device-width: 415px)").matches?e.res.style.fontSize="1.5em":e.res.style.fontSize="1em"};return t(),window.addEventListener("resize",t),this}},{key:"sizes",value:function(e){var t=this;this.res.style.fontSize="".concat(e[0].size,"rem");var r=function(){for(var r=0;r<e.length;r++)e[r].width&&window.matchMedia("(min-width: ".concat(e[r].width,"px)")).matches&&(t.res.style.fontSize="".concat(e[r].size));window.matchMedia("(max-device-width: 415px)").matches&&(t.res.style.fontSize="".concat(e[e.length-1].mobile))};return r(),window.addEventListener("resize",r),this}},{key:"setup",value:function(e){var t;e?((t=document.createElement(e.type)).setAttribute("id",e.id),e.type):t=document.createElement("p");var r=document.createTextNode(this.text);return t.appendChild(r),this.res=t,this.res.style.padding=0,this.res.style.margin=0,this}},{key:"hide",value:function(){return this.res.style.visibility="hidden",this}},{key:"font",value:function(e){return this.res.style.fontFamily=e,this}},{key:"center",value:function(){return this.res.style.textAlign="center",this}},{key:"size",value:function(e){return this.res.style.fontSize=e,this}},{key:"em",value:function(e){return this.res.style.fontSize="".concat(e,"em"),this}},{key:"color",value:function(e){return this.res.style.color=e,this}},{key:"align",value:function(e){return this.res.style.textAlign="".concat(e),this}},{key:"weight",value:function(e){return this.res.style.fontWeight=e,this}},{key:"bold",value:function(){return this.res.style.fontWeight="bold",this}},{key:"italic",value:function(){return this.res.style.fontStyle="italic",this}},{key:"width",value:function(e,t){return this.res.style.width=e,t&&(this.res.style.marginLeft="auto",this.res.style.marginRight="auto"),this}},{key:"offset",value:function(e){return this.res.style.gridRow=2,this.res.style.gridColumn=2,this.res.style.marginLeft="-60px",this}},{key:"border",value:function(e,t){return this.res.style.border="".concat(t,"px solid ").concat(e),this}},{key:"padding",value:function(e,t,r,n){return(e||t||r||n)&&(this.res.style.paddingLeft=e,this.res.style.paddingTop=t,this.res.style.paddingRight=r,this.res.style.paddingBottom=n),t||r||n||(this.res.style.padding=e),this}},{key:"arrayPadding",value:function(e,t){return e.includes("left")&&(this.res.style.paddingLeft=t),e.includes("right")&&(this.res.style.paddingRight=t),e.includes("top")&&(this.res.style.paddingTop=t),e.includes("bottom")&&(this.res.style.paddingBottom=t),t||(this.res.style.paddingBottom=e),this}},{key:"margin",value:function(e,t){return"top"==e?this.res.style.marginTop=t:"bottom"==e?this.res.style.marginBottom=t:"left"==e?this.res.style.marginLeft=t:"right"==e&&(this.res.style.marginRight=t),this}},{key:"headline",value:function(){return this.em(4),this.font("Arial"),this.bold(),this}},{key:"caption",value:function(){return this.bold(),this.res.style.fontFamily="Arial",this.color("gray"),this.padding("top",20),this.res.style.fontSize="1em",window.matchMedia("(max-device-width: 415px)").matches?this.res.style.fontSize="2em":this.res.style.fontSize="1em",this}},{key:"updating",value:function(e,t){var r=this.res,n=this.text;return Object.defineProperty(e,t,{set:function(e){var t=document.createTextNode(n.replace("$",e));r.replaceChild(t,r.childNodes[0])}}),this}},{key:"style",value:function(e){return this.res.style.color=e.styles.color,this.res.style.fontWeight=e.styles.fontWeight,this.res.style.paddingLeft=e.styles.padding[0],this.res.style.paddingTop=e.styles.padding[1],this.res.style.paddingRight=e.styles.padding[2],this.res.style.paddingBottom=e.styles.padding[3],this.res.style.marginLeft=e.styles.margin[0],this.res.style.paddingTop=e.styles.margin[1],this.res.style.paddingRight=e.styles.margin[2],this.res.style.paddingBottom=e.styles.margin[3],this.res.style.opacity=e.styles.opacity,this}},{key:"applyStyle",value:function(e,t){return window.matchMedia("(max-width: ".concat(e,"px)")).matches&&Object.assign(this.res.style,t.styles),this}},{key:"nextApply",value:function(e){for(var t=this,r=[],n=(this.res.style,function(n){r[0].matches?Object.assign(t.res.style,e[0].styles):r[1].matches?Object.assign(t.res.style,e[1].styles):Object.assign(t.res.style,e[e.length-1].styles)}),i=0;i<e.length;i++){var o=e[i],s=window.matchMedia("(min-width: ".concat(o.min,"px) and (max-width: ").concat(o.max,"px)"));r.push(s),r[i].addListener(n)}return n(),this}},{key:"apply",value:function(e){var t=this,r=this.res.styles,n=function(){for(var n=0;n<e.length;n++){var i=e[n];i.min&&i.max?window.matchMedia("(min-width: ".concat(i.min,"px) and (max-width: ").concat(i.max,"px)")).matches?Object.assign(t.res.style,i.styles):(alert("YES min max, but does not match"),Object.assign(t.res.style,r)):window.matchMedia("(max-width: ".concat(i.max,"px)")).matches?Object.assign(t.res.style,i.styles):(alert("NO min max, and does not match"),Object.assign(t.res.style,r))}};return n(),window.addEventListener("resize",n),this}},{key:"render",value:function(e){if(!e)return this.res;this.options&&this.options.id&&this.res.setAttribute("id",this.options.id),document.querySelector(e).appendChild(this.res)}}],s&&a(r.prototype,s),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,s}(r(762).y)},19:(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{H:()=>Des});var _lib_elementMapper_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(769),_layout_animator_js__WEBPACK_IMPORTED_MODULE_39__=__webpack_require__(762),_layout_text_js__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(16),_layout_image_js__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(130),_layout_link_js__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(219),_layout_flexRow_js__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(946),_layout_newNavBar_js__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(155),_layout_free_js__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(317),_layout_audionew_js__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__(959),_layout_progress_js__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__(580),_layout_center_js__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__(934),_layout_code_js__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__(26),_layout_stack_js__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__(11),_layout_container_js__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__(304),_layout_metaAdder_js__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__(68),_layout_table_js__WEBPACK_IMPORTED_MODULE_20__=__webpack_require__(588),_layout_dropdown2025_js__WEBPACK_IMPORTED_MODULE_21__=__webpack_require__(69),_layout_modal2025_js__WEBPACK_IMPORTED_MODULE_22__=__webpack_require__(977),_layout_textField_js__WEBPACK_IMPORTED_MODULE_23__=__webpack_require__(758),_layout_flexCard_js__WEBPACK_IMPORTED_MODULE_24__=__webpack_require__(110),_layout_wrap_js__WEBPACK_IMPORTED_MODULE_25__=__webpack_require__(7),_layout_flexGrid_js__WEBPACK_IMPORTED_MODULE_26__=__webpack_require__(468),_layout_zoomCard_js__WEBPACK_IMPORTED_MODULE_27__=__webpack_require__(418),_layout_multiswitcher_js__WEBPACK_IMPORTED_MODULE_28__=__webpack_require__(897),_layout_betaMobileBar_js__WEBPACK_IMPORTED_MODULE_29__=__webpack_require__(734),_layout_betaDesktopBar_js__WEBPACK_IMPORTED_MODULE_30__=__webpack_require__(828),_layout_sideNavBar_js__WEBPACK_IMPORTED_MODULE_31__=__webpack_require__(790),_layout_spacer_js__WEBPACK_IMPORTED_MODULE_32__=__webpack_require__(463),_layout_formComponents_floatingInput_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(148),_layout_formComponents_range_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(751),_layout_formComponents_radio_js__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(385),_layout_formComponents_picker_js__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(898),_layout_formComponents_imagePicker_js__WEBPACK_IMPORTED_MODULE_33__=__webpack_require__(877),_layout_formComponents_dataList_js__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(216),_layout_base_js__WEBPACK_IMPORTED_MODULE_34__=__webpack_require__(874),_layout_formComponents_form_js__WEBPACK_IMPORTED_MODULE_35__=__webpack_require__(522),_layout_button_js__WEBPACK_IMPORTED_MODULE_36__=__webpack_require__(207),_layout_slider2025_js__WEBPACK_IMPORTED_MODULE_37__=__webpack_require__(733),_layout_video_js__WEBPACK_IMPORTED_MODULE_38__=__webpack_require__(836),_layout_checkbox_js__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(342),_lib_linkGetter_js__WEBPACK_IMPORTED_MODULE_40__=__webpack_require__(985),_lib_cardGetter_js__WEBPACK_IMPORTED_MODULE_41__=__webpack_require__(683),_layout_gridSwitcher_js__WEBPACK_IMPORTED_MODULE_42__=__webpack_require__(748);function _typeof(e){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof(e)}function _construct(e,t,r){if(_isNativeReflectConstruct())return Reflect.construct.apply(null,arguments);var n=[null];n.push.apply(n,t);var i=new(e.bind.apply(e,n));return r&&_setPrototypeOf(i,r.prototype),i}function _setPrototypeOf(e,t){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},_setPrototypeOf(e,t)}function _isNativeReflectConstruct(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(_isNativeReflectConstruct=function(){return!!e})()}function ownKeys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function _objectSpread(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ownKeys(Object(r),!0).forEach((function(t){_defineProperty(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ownKeys(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function _defineProperty(e,t,r){return(t=_toPropertyKey(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _toConsumableArray(e){return _arrayWithoutHoles(e)||_iterableToArray(e)||_unsupportedIterableToArray(e)||_nonIterableSpread()}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(e,t){if(e){if("string"==typeof e)return _arrayLikeToArray(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?_arrayLikeToArray(e,t):void 0}}function _iterableToArray(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function _arrayWithoutHoles(e){if(Array.isArray(e))return _arrayLikeToArray(e)}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _defineProperties(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,_toPropertyKey(n.key),n)}}function _createClass(e,t,r){return t&&_defineProperties(e.prototype,t),r&&_defineProperties(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function _toPropertyKey(e){var t=_toPrimitive(e,"string");return"symbol"==_typeof(t)?t:t+""}function _toPrimitive(e,t){if("object"!=_typeof(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=_typeof(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var Des=function(){function Des(){_classCallCheck(this,Des),this.items=[],this.options=[],this.code=[],this.ready2Render=[],this.stor={text:{miami:{code:'new Text("Hello").set({fluidc: "S3", color: "orange"})'},base:{code:'new Text("Hello").set({fluidc: "S3", color: "orange"})'},nepal:{code:'new Text("Hello").set({fluidc: "S3", color: "#2ECC71", font: "Helvetica Neue"})'},patagonia:{code:'new Text("Hello").set({fluidc: "S3", color: "#3498DB", font: "DIN Alternate"})'}},complexa:{code:"new Wrapper()\n .set({...}) // Rest of the code omitted for brevity"},complex:{code:'new Wrapper() \n\t.set({\n\t\t\n\t\tresponsive: {\n\t\t\tranges: ["700px", "1200px", "1400px"],\n\t\t\tsequence: "col-row-col"\n\t\t}\n\t})\n\t.add([\n\t\tnew Image("img/wix.jpeg").set({\n\t\t\twidth: "100%",\n\t\t\theight: "200px",\n objectFit: "cover"\n\t\t}),\n\n new Wrapper().set({\n responsive: {\n\t\t\tranges: ["700px", "1200px", "1400px"],\n\t\t\tsequence: "col-col-row"\n\t\t}\n }).add([\n new Text("Running in the desert").set({\n size: "S3",\n font: "Arial",\n color: "orange"\n }),\n\n new Text("This is example content").set({\n exact: "1rem",\n font: "Arial"\n }),\n\n\n new Image("img/wix.jpeg").set({\n width: "100%",\n height: "300px",\n objectFit: "cover"\n })\n ])\n\t])'},ops:{miami:{blast:{code:'stroke: {range:["0px","3000px"], op:{name:"blast",color:"orange",width:"3px"}}'},blastFun:function(e){return'stroke: {range:["0px","3000px"], op:{name:"blast",color:"orange",width:"'.concat(e,'px"}}')}},nepal:{blast:{code:'stroke: {range:["0px","3000px"], op:{name:"blast",color:"#2ECC71",width:"3px"}}'},blastFun:function(e){return'stroke: {range:["0px","3000px"], op:{name:"blast",color:"#2ECC71",width:"'.concat(e,'px"}}')}},patagonia:{blast:{code:'stroke: {range:["0px","3000px"], op:{name:"blast",color:"#1abc9c",width:"3px"}}'},blastFun:function(e){return'stroke: {range:["0px","3000px"], op:{name:"blast",color:"#1abc9c",width:"'.concat(e,'px"}}')}}},link:{miami:{code:'new Link("Link").set({text: "Hello", url: "#a", background: "", color: "orange", hover: {color: "white", background: "orange", animation: 0.6}, borderObj: {color: "orange", width: "3px", radius: "0.7rem"}, pad: { sides: ["all"], value: "0.6rem" }, arrayMargin: { sides: ["top", "bottom"], value: "0.8rem" }, radius: "0.4rem"})'},base:{code:'new Link("Link").set({text: "Hello", url: "#ai", background: "#3498db", pad: [{lr: "0.5rem", tb: "1rem"}], radius: "0.4rem", color: "white"})'},nepal:{code:'new Link("Link").set({text: "Hello", url: "#a", background: "#2ECC71", pad: { sides: ["all"], value: "0.6rem" }, mar: { sides: ["top", "bottom"], value: "0.8rem" }, hover: {color: "#2ECC71", background: "white", border: true, animation: 0.3}, color: "white"})'},patagonia:{code:'new Link("Link", "#a").set({text: "Hello", url: "#a", background: "#1ABC9C", pad: { sides: ["all"], value: "0.6rem" }, mar: { sides: ["top", "bottom"], value: "0.8rem" }, hover: {color: "#2ECC71", background: "white", border: true, animation: 0.3}, color: "white"})'}},grid:{code:' new Simple()\n .set({\n gap: "1rem"\n })\n .react([{\n at: "0px",\n template: [\n "eeeeee",\n "eeeeee",\n "abbbbb",\n "abbbbb",\n "abbbbb",\n "cccccc",\n "cccccc",\n "dddddd"\n ]\n },\n\n {\n at: "900px",\n color: "orange",\n template: [\n "aaaccc",\n "aaaccc",\n "bbbbbb",\n "dddddd",\n "eeeeee"\n ]\n },\n\n {\n at: "1200px",\n color: "purple",\n template: [\n "cccaaa",\n "cccaaa",\n "bbbbbb",\n "dddddd",\n "eeeeee"\n ]\n },\n ])\n .add([\n new Wrapper().set({\n pad: [{\n a: 20\n }],\n background: "#ecf0f1",\n radius: "1.7rem"\n }).add([\n new Text("NEW PRODUCT").set({\n exact: "1rem",\n font: "Oswald",\n width: "100%"\n }),\n new Text("Feel").set({\n fluidc: "S2",\n font: "Oswald",\n width: "100%",\n color: "black"\n }),\n new Text("Speed").set({\n exact: "7rem",\n font: "Oswald",\n width: "100%",\n color: "#3498db"\n }),\n ]),\n\n new Wrapper().set({\n pad: [{\n a: 20\n }],\n background: "#ecf0f1",\n radius: "1.7rem"\n }).add([\n new Text("TOP QUALITY").set({\n exact: "1rem",\n font: "Oswald",\n width: "100%"\n }),\n new Text("Amazing animals").set({\n fluidc: "S2",\n font: "Oswald",\n width: "100%",\n color: "black"\n }),\n\n new Text("Seals are intelligent, agile marine mammals found in oceans around the world, known for their streamlined bodies, flippers, and ability to thrive both in water and on land. Belonging to the pinniped family, they are divided into true seals, which lack external ears, and eared seals like sea lions, which are more mobile on land. Seals feed primarily on fish and squid, using their sensitive whiskers to detect prey underwater, and can dive to great depths while holding their breath for extended periods. Adapted to cold environments with thick blubber for insulation, seals play a crucial role in marine ecosystems but face threats from climate change, pollution, and human activity, making conservation efforts increasingly important.")\n .set({\n font: "Arial",\n exact: "1.3rem"\n })\n\n ]),\n\n new Wrapper().set({\n radius: "1.7rem",\n overflow: "hidden"\n\n }).add([\n\n new Image("https://cdn.pixabay.com/photo/2017/02/09/18/40/seal-2053165_640.jpg", "exact").set({\n width: "100%",\n height: "420px",\n minHeight: "100px",\n objectFit: "cover"\n\n })\n ]),\n\n new Wrapper().set({\n pad: [{\n a: 20\n }],\n background: "#ecf0f1",\n radius: "1.7rem",\n }).add([\n new Text("Welcome seals").set({\n fluidc: "S3",\n font: "Oswald",\n color: "black"\n }),\n \n ]),\n new Wrapper().set({\n mc: true,\n pad: [{\n a: 20\n }],\n background: "#ecf0f1",\n radius: "1.7rem",\n\n }).add([new Text("Top line").set({\n font: "Arial",\n exact: "1.3rem"\n }), ]),\n ])'},flexRow:function(e){return{image:{code:'new FlexRow().set({border: ["all", "3px"], colat: "600px"}).items([new Image(...), new Image(...), new Image(...)])'},text:{code:'new FlexRow().set({}).items([\n\nnew Text("This").set({\n size: "S3"\n}), \n\nnew Text("is").set({\n size: "S3",\n text: "Hello"\n}), \n\nnew Text("row.").set({\n size: "S3",\n text: "Hello"\n})\n \n])'}}},tabSpace:function(e){return" ".repeat(e)}}}return _createClass(Des,[{key:"at",value:function(e){return this.options.push(e),this}},{key:"nodes",value:function(e){return this.options=e,this.protoOptions=_toConsumableArray(e),console.log(this.options),console.log(this.protoOptions),this}},{key:"getElType",value:function(e){return"S".concat(e.substr(1))}},{key:"filtero",value:function(e,t,r){return r.filter((function(t){return t.op.name===e})).filter((function(e){return!e.target||e.target.includes(t)}))[0]}},{key:"add",value:function add(arr){var _this=this;this.css=[],this.elCSS=[],this.elHTML=[];for(var customOptions=this.options,_loop=function _loop(){var el=arr[i],ela=null,ops=["blast","gradient","shadow","filter","animationSimple","transform"],replacementObjects=[{op:{name:"blast",color:"green",width:"1px"}},{op:{name:"gradient",gradient:"linear-gradient(orange, green)"}},{op:{name:"shadow",color:"#1abc9c",steps:3}},{op:{name:"filter",filter:"grayscale(0.7)"}},{op:{name:"animation",color:"green",width:"1px",fireAt:"inview",keyframesOpen:[{transform:"translate(100%, 0%)",opacity:0},{transform:"translate(0%)",opacity:1}],keyframesClose:[{transform:"translate(0%)",opacity:1},{transform:"translate(100%, 0%)",opacity:0}],openOptions:{duration:300,fill:"forwards",delay:1e3},closeOptions:{duration:1,fill:"forwards",delay:1e3}}},{op:{name:"transform",values:["ty:-20px","scale(3)","rotate(30deg)","skew(40deg, 0deg)","perspective(500px)","matrix(1, 0, 0, 1, 50, 50)"]}}];for(q=0;q<ops.length;q++){var blastIDs=customOptions.map((function(e){return e.op})).map((function(e,t){return e===ops[q]?t:""})).filter(String);if(blastIDs.length>0)for(d=0;d<blastIDs.length;d++){var index=blastIDs[d],target=customOptions[index].target,range=customOptions[index].range,filter=customOptions[index].filter,gradient=customOptions[index].gradient,as=replacementObjects[q];as.target=target,null!=range&&(as.range=range),null!=filter&&(as.op.filter=filter),null!=gradient&&(as.op.gradient=gradient),customOptions[index]=as}}for(console.warn(customOptions),q=0;q<customOptions.length;q++){var option=customOptions[q].op.name,cool=_this.protoOptions[q].style||"default",duration=_this.protoOptions[q].duration||"default";if("transform"===option){var opts=[];if(opts="SOLARIUM"===cool?["scale(3)"]:"WAVE"===cool?["skew(15deg, 0deg)","tx:50px","rotate(10deg)","scale(1.1)"]:"CUBE-SPIN"===cool?["perspective(700px)","scale(0.9)"]:"TORNADO-SWITCH"===cool?["rotate(720deg)","scale(0.8)","tx:30px","ty:-50px","tz:-80px"]:"LASER-SWEEP"===cool?["tx:100px","opacity:0.2","scale(1.2, 1.0)"]:"TORNADO-TWIST"===cool?["rotate(720deg)","scale(0.8)","tx:30px","ty:-50px","skew(10deg, 0deg)"]:"JELLY-WOBBLE"===cool?["scale(1.2, 0.8)","rotate(5deg)","ty:-10px","skew(5deg, 0deg)"]:"DRUNKEN-SWAY"===cool?["rotate(15deg)","tx:20px","ty:-10px","skew(10deg, 5deg)"]:"FLAME-FLICKER"===cool?["scale(1.1, 0.9)","rotate(-5deg)","ty:5px","opacity:0.7"]:"PHANTOM-SHIFT"===cool?["tx:15px","ty:-5px","opacity:0.5","skew(5deg, 5deg)"]:"RUBBER-BOUNCE"===cool?["scale(1.3, 0.8)","skew(10deg, 0deg)","ty:-20px"]:"ASTEROID-CRASH"===cool?["tx:-80px","ty:100px","rotate(45deg)","scale(0.7)","opacity:0.5"]:"CYBER-GLITCH"===cool?["tx:5px","ty:-5px","rotate(3deg)","opacity:0.6","scale(1.05)"]:"BUBBLE-POP"===cool?["scale(1.5)","opacity:0.3","ty:-20px"]:"SUPERNOVA-BURST"===cool?["scale(2)","opacity:0","tx:50px","ty:-50px"]:"GRAVITY-DROP"===cool?["ty:100px","scale(0.8)","rotate(10deg)","skew(0deg, 10deg)"]:"LASER-SWEEP"===cool?["tx:100px","opacity:0.2","scale(1.2, 1.0)"]:"VORTEX-SINK"===cool?["rotate(-360deg)","scale(0.5)","ty:50px"]:"SHOCKWAVE"===cool?["scale(1.7)","opacity:0.4","skew(5deg, 5deg)"]:["ty:-20px","scale(3)","rotate(30deg)","skew(40deg, 0deg)","perspective(500px)","matrix(1, 0, 0, 1, 50, 50)"],"default"===duration&&(duration="MEDIUM"),"FAST"===duration?duration="3s-ease-in-out":"MEDIUM"===duration?duration="6s-ease-in-out":"SLOW"===duration&&(duration="10s-ease-in-out"),q==i){var _customOptions$q,_customOptions$q2,_customOptions$q3;console.log("DURA"),console.log(duration),customOptions[q].op.transform={values:opts,duration};var key="style",dur="duration";if(null!==(_customOptions$q=customOptions[q])&&void 0!==_customOptions$q&&_customOptions$q.op&&key in customOptions[q].op&&delete customOptions[q].op[key],null!==(_customOptions$q2=customOptions[q])&&void 0!==_customOptions$q2&&_customOptions$q2.op&&dur in customOptions[q].op&&delete customOptions[q].op[dur],console.log("COQ"),console.log(customOptions[q].op.values),null!==(_customOptions$q3=customOptions[q])&&void 0!==_customOptions$q3&&_customOptions$q3.op.values){var _customOptions$q4,values="values";null!==(_customOptions$q4=customOptions[q])&&void 0!==_customOptions$q4&&_customOptions$q4.op.values&&delete customOptions[q].op[values]}}}}console.log("----------------------------LLL ".concat(i," ").concat(customOptions.length));var matchEls=["h1","h2","h3","h4","h5","h6"].includes(el.type)||"img"===el.type||"a"===el.type||"slider"==el.type;matchEls?(ela=_lib_elementMapper_js__WEBPACK_IMPORTED_MODULE_0__.I.mapType({el,customOptions,i}),ela.toCode?_this.code.push(ela.toCode().join("")):_this.code.push(ela),_this.ready2Render.push(ela),ela=ela.render()):"table"===el.type?_this.code.push('\n new Table()\n .add([\n { abbr: "AUIUI/AK9PT", name: "Pokročilé mobilní technologie", grade: "A", date: "09.01.2024" },\n { abbr: "AUIUI/AK9PT", name: "Pokročilé mobilní technologie", grade: "A", date: "09.01.2024" },\n { abbr: "AUIUI/AK9PT", name: "Pokročilé mobilní technologie", grade: "A", date: "09.01.2024" }\n ])\n .set({\n cellPadding: "0.3em",\n cellAlign: "center",\n style: {\n font: "Arial"\n },\n headStyle: {\n color: "white",\n background: "#ff6d22"\n },\n border: "2px solid black",\n center: true,\n borderRadius: 2.2\n })\n '):"grid"===el.type?_this.code.push(_this.stor.grid.code):"modal"===el.type?_this.code.push('new Code()\n .set({\n pad: [\n { l: 30 },\n ], \n mar: [\n { a: 30 },\n ], \n class: "language-js",\n code: `\n // You need to copy and paste this example\n\n\n import {Animator} from "../layout/animator.js";\n import {Text} from "../layout/text.js";\n import {Modal} from "../layout/modal2025.js";\n import {Stack} from "../layout/stack.js";\n import {Image} from "../layout/image.js";\n import {FlexRow} from "../layout/flexrow.js";\n import {Button} from "../layout/button.js";\n import {Spacer} from "../layout/spacer.js";\n import {Wrapper} from "../layout/container.js";\n \n \n let firstLong = "Apple today announced that the company has surpassed a 60 percent reduction in its global greenhouse gas emissions compared to 2015 levels, as part of its Apple 2030 goal to become carbon neutral across its entire footprint in the next five years. The company achieved several other major environmental milestones, including the use of 99 percent recycled rare earth elements in all magnets and 99 percent recycled cobalt in all Apple-designed batteries.1 Apple shared this and other progress in its annual Environmental Progress Report, published today.\n “We’re incredibly proud of the progress we’re making toward Apple 2030, which touches every part of our business,” said Lisa Jackson, Apple’s vice president of Environment, Policy, and Social Initiatives. “Today, we’re using more clean energy and recycled materials to make our products than ever before, we’re preserving water and preventing waste around the world, and we’re investing big in nature. As we get closer to 2030, the work gets even harder — and we’re meeting the challenge with innovation, collaboration, and urgency.\n Apple’s 2030 strategy prioritizes cutting greenhouse gas emissions by 75 percent compared with its 2015 baseline year, before applying high-quality carbon credits to balance the remaining emissions. Last year, Apple’s comprehensive efforts to reduce its carbon footprint — including the continued transition of its supply chain to renewable electricity and designing products with more recycled materials — avoided an estimated 41 million metric tons of greenhouse gas emissions.";\n \n let elements = [\n new Stack()\n .setup({})\n .add([\n new Image("https://pbs.twimg.com/media/DwYvbCBVAAEKY_R.jpg").set({}),\n \n new FlexRow().set({aligns: "start"}).items([\n \n new Button("×")\n \n .set({\n fluidc: "S3",\n onTap: () => modal.close(),\n frame: { width: 80, height: 80 },\n color: "white",\n background: "none"\n }),\n \n new Spacer(true),\n ])\n ]),\n \n \n new Text("Samuel Suresh")\n .set({\n color: "#00ae56",\n font: "SF Pro Display",\n fluidc: "S2",\n pad: [{"tl": 20}]\n }),\n \n \n new Text("Studying Science and Business, Western Sydney University, class of 2022")\n .set({\n font: "Arial",\n fluidc: "S6",\n pad: [{"l": 20}]\n }),\n \n \n new Text(firstLong)\n .set({\n font: "Arial",\n fluidc: "S6",\n pad: [{"l": 20}]\n }), \n ];\n \n \n let wrapper = new Wrapper()\n .set({})\n .add(elements);\n \n \n let modal = new Modal();\n modal\n .set({\n width: "600px", \n background: "#469d73cc",\n close: true\n })\n .add([wrapper])\n .render("#res"); \n \n \n new Button("Wow")\n .set({\n fluidc: "S3",\n onTap: () => modal.show()\n })\n .render("#res");\n \n `\n })'):"row"===el.type?"img"===el.child?_this.code.push(_this.stor.flexRow(el.colat).image.code):_this.code.push(_this.stor.flexRow(el.colat).text.code):"cards"===el.type?(console.log("STORO"),console.log(_this.stor),ela=_lib_elementMapper_js__WEBPACK_IMPORTED_MODULE_0__.I.mapType({el,customOptions,i,storage:_this.stor}),_this.code.push(ela)):"wrap"===el.type?_this.code.push('new Wrapper().set({}).add([\n new Text("Hello").set({}),\n new Text("Hello").set({}),\n new Text("Hello").set({})\n ]) \n'):"responsive"===el.type?_this.code.push(_this.stor.complex.code):"free"===el.type||"nav"===el.type||"sideNav"===el.type||"dropdown"===el.type?(ela=_lib_elementMapper_js__WEBPACK_IMPORTED_MODULE_0__.I.mapType({el,customOptions,i,storage:_this.stor}),_this.code.push(ela.toCode()),_this.ready2Render.push(ela),ela=ela.render()):"code"==el.type?_this.code.push('new Code()\n .set({\n pad: [\n { l: 30 },\n ], \n mar: [\n { a: 30 },\n ], \n class: "language-js",\n code: \'new Text("Modality").set({ font: "Arial" })\'\n })\n '):(ela=_lib_elementMapper_js__WEBPACK_IMPORTED_MODULE_0__.I.mapType({el,customOptions,i,storage:_this.stor}),ela.toCode?_this.code.push(ela.toCode()):_this.code.push(ela),_this.ready2Render.push(ela),ela=eval(ela).render())},q,d,q,i=0;i<arr.length;i++)_loop();return this}},{key:"toTextArea",value:function(){var e=document.createElement("textarea");e.style.width=300,e.style.height=300,e.setAttribute("id","elements"),e.value=this.code.join(""),this.target="#elements";var t=document.createElement("pre"),r=document.createElement("code"),n=this.code.map((function(e){return"".concat(e,'.render("#mount"); \n \n')}));this.code=n,r.textContent=this.code,t.appendChild(r),t.setAttribute("class","nonLayout"),document.body.appendChild(t),document.body.appendChild(e);var i=document.createElement("pre");return i.style.marginTop="100px",i.style.overflow="scroll",this}},{key:"set",value:function(e){this.toTextArea(),document.querySelector("#elements").style.display="none",document.querySelector("pre").style.display="block",!1===e.elements&&(document.querySelector(".nonLayout").style.display="none"),!1===e.layout&&null!=document.querySelector("#layoutPre")&&(document.querySelector("#layoutPre").style.display="none");for(var t={Text:_layout_text_js__WEBPACK_IMPORTED_MODULE_7__.E,Image:_layout_image_js__WEBPACK_IMPORTED_MODULE_8__._,Link:_layout_link_js__WEBPACK_IMPORTED_MODULE_9__.N,FlexRow:_layout_flexRow_js__WEBPACK_IMPORTED_MODULE_10__.Y,UINavBar:_layout_newNavBar_js__WEBPACK_IMPORTED_MODULE_11__.X,Free:_layout_free_js__WEBPACK_IMPORTED_MODULE_12__.b,Audio:_layout_audionew_js__WEBPACK_IMPORTED_MODULE_13__.f,Progress:_layout_progress_js__WEBPACK_IMPORTED_MODULE_14__.k,Center:_layout_center_js__WEBPACK_IMPORTED_MODULE_15__.o,Code:_layout_code_js__WEBPACK_IMPORTED_MODULE_16__.C,Stack:_layout_stack_js__WEBPACK_IMPORTED_MODULE_17__.B,Wrapper:_layout_container_js__WEBPACK_IMPORTED_MODULE_18__.m,MetaAdder:_layout_metaAdder_js__WEBPACK_IMPORTED_MODULE_19__.W,Table:_layout_table_js__WEBPACK_IMPORTED_MODULE_20__.X,Dropdown:_layout_dropdown2025_js__WEBPACK_IMPORTED_MODULE_21__.m,Modal:_layout_modal2025_js__WEBPACK_IMPORTED_MODULE_22__.a,TextField:_layout_textField_js__WEBPACK_IMPORTED_MODULE_23__.A,Card:_layout_flexCard_js__WEBPACK_IMPORTED_MODULE_24__.Z,Wrap:_layout_wrap_js__WEBPACK_IMPORTED_MODULE_25__.B,FlexGrid:_layout_flexGrid_js__WEBPACK_IMPORTED_MODULE_26__.M,ZoomCard:_layout_zoomCard_js__WEBPACK_IMPORTED_MODULE_27__.U,Switcher:_layout_multiswitcher_js__WEBPACK_IMPORTED_MODULE_28__.i,MobileBar:_layout_betaMobileBar_js__WEBPACK_IMPORTED_MODULE_29__.m,DesktopBar:_layout_betaDesktopBar_js__WEBPACK_IMPORTED_MODULE_30__.C,SideNav:_layout_sideNavBar_js__WEBPACK_IMPORTED_MODULE_31__.f,Spacer:_layout_spacer_js__WEBPACK_IMPORTED_MODULE_32__.h},r={FloatingInput:_layout_formComponents_floatingInput_js__WEBPACK_IMPORTED_MODULE_1__.l,Range:_layout_formComponents_range_js__WEBPACK_IMPORTED_MODULE_2__.Q,RadioGroup:_layout_formComponents_radio_js__WEBPACK_IMPORTED_MODULE_3__.z,Picker:_layout_formComponents_picker_js__WEBPACK_IMPORTED_MODULE_4__.L,FilePickera:_layout_formComponents_imagePicker_js__WEBPACK_IMPORTED_MODULE_33__.I,DataList:_layout_formComponents_dataList_js__WEBPACK_IMPORTED_MODULE_5__.T,Base:_layout_base_js__WEBPACK_IMPORTED_MODULE_34__.C,Form:_layout_formComponents_form_js__WEBPACK_IMPORTED_MODULE_35__.l,Button:_layout_button_js__WEBPACK_IMPORTED_MODULE_36__.$,Slider:_layout_slider2025_js__WEBPACK_IMPORTED_MODULE_37__.A,Video:_layout_video_js__WEBPACK_IMPORTED_MODULE_38__.C,Checkbox:_layout_checkbox_js__WEBPACK_IMPORTED_MODULE_6__.S},n={ElementMapper:_lib_elementMapper_js__WEBPACK_IMPORTED_MODULE_0__.I,Animator:_layout_animator_js__WEBPACK_IMPORTED_MODULE_39__.y,LinkStyler:_lib_linkGetter_js__WEBPACK_IMPORTED_MODULE_40__.a,CardGen:_lib_cardGetter_js__WEBPACK_IMPORTED_MODULE_41__.Z,Simple:_layout_gridSwitcher_js__WEBPACK_IMPORTED_MODULE_42__.Z},i=_objectSpread(_objectSpread(_objectSpread({},t),r),n),o=0;o<this.code.length;o++){var s=this.code[o];console.log("SUBO"),console.log(s),_construct(Function,_toConsumableArray(Object.keys(i)).concat([s])).apply(void 0,_toConsumableArray(Object.values(i)))}}}])}()},26:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function i(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,o(n.key),n)}}function o(e){var t=function(e){if("object"!=n(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=n(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==n(t)?t:t+""}function s(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(s=function(){return!!e})()}function a(e){return a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},a(e)}function l(e,t){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},l(e,t)}r.d(t,{C:()=>c});var c=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=function(e,t,r){return t=a(t),function(e,t){if(t&&("object"==n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,s()?Reflect.construct(t,r||[],a(e).constructor):t.apply(e,r))}(this,t)).res=document.createElement("code"),e.pre=document.createElement("pre"),e.res.style.background="#18232e",e.res.style.display="block",e.res.style.width="auto",e.res.style.height="auto",e.res.style.color="white",e.res.style.borderRadius="1rem",e.pre.appendChild(e.res),e}return function(e,t){if("function"!=typeof t&&null!==t)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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&l(e,t)}(t,e),r=t,(o=[{key:"set",value:function(e){return e.code&&(this.pre.children[0].innerHTML=e.code),e.class&&this.pre.children[0].setAttribute("class","".concat(e.class)),e.pad&&this.pad(e.pad),e.mar&&this.mar(e.mar),e.respad&&this.respad(e.respad),e.resmar&&this.resmar(e.resmar),e.resprop&&this.resprop(e.resprop),e.width&&(this.res.style.width=e.width),e.background&&(this.res.style.background=e.background),e.color&&(this.res.style.color=e.color),e.borderRadius&&(this.res.style.background=e.borderRadius),e.borderObj&&(this.res.style.border="".concat(e.borderObj.width," solid ").concat(e.borderObj.color),this.res.style.borderRadius="".concat(e.borderObj.radius)),this}},{key:"render",value:function(e){return e&&document.querySelector(e).appendChild(this.pre),this.res}}])&&i(r.prototype,o),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,o}(r(762).y)},68:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function i(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,o(n.key),n)}}function o(e){var t=function(e){if("object"!=n(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=n(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==n(t)?t:t+""}r.d(t,{W:()=>s});var s=function(){return e=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.res=document.createElement("meta"),this.res.setAttribute("name","viewport"),this.res.setAttribute("content","width=device-width, initial-scale=1"),this.charset=document.createElement("meta"),this.charset.setAttribute("charset","UTF-8")},(t=[{key:"add",value:function(){document.head.appendChild(this.res),document.head.appendChild(this.charset)}}])&&i(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}()},69:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function i(e,t){if(e){if("string"==typeof e)return o(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?o(e,t):void 0}}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function s(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,a(n.key),n)}}function a(e){var t=function(e){if("object"!=n(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=n(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==n(t)?t:t+""}function l(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(l=function(){return!!e})()}function c(e){return c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},c(e)}function u(e,t){return u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},u(e,t)}r.d(t,{m:()=>d});var d=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=function(e,t,r){return t=c(t),function(e,t){if(t&&("object"==n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,l()?Reflect.construct(t,r||[],c(e).constructor):t.apply(e,r))}(this,t)).res=document.createElement("div"),e.toggleWrap=document.createElement("div"),e.toggleWrap.style.zIndex=9999,e.toggleWrap.style.borderRadius="0.3rem",e.toggleWrap.style.height="40px",e.toggleWrap.style.cursor="pointer",e.toggleWrap.style.display="flex",e.toggleWrap.style.alignItems="center",e.toggleWrap.style.justifyContent="center",e.res.appendChild(e.toggleWrap),e.contentWrap=document.createElement("div"),e.contentWrap.style.position="absolute",e.contentWrap.style.background="#ecf0f1",e.contentWrap.style.borderRadius="0.3rem",e.contentWrap.style.boxShadow="0 2px 5px rgba(0, 0, 0, 0.15)",e.contentWrap.style.marginTop="10px",e.contentWrap.style.width="250px",e.contentWrap.style.display="none",e.res.appendChild(e.contentWrap),e.styles={},e.children=[],e.isExpanded=!1,e.toggleWrap.addEventListener("click",(function(){return e.toggle()})),e}return function(e,t){if("function"!=typeof t&&null!==t)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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&u(e,t)}(t,e),r=t,(a=[{key:"set",value:function(e){var t=this;this.options=e,e.title&&(this.toggleWrap.textContent=e.title),e.width&&(this.toggleWrap.style.width=e.width),e.contentWidth&&(this.contentWrap.style.width=e.contentWidth),e.background&&(this.contentWrap.style.backgroundColor=e.background),e.mar&&this.mar(e.mar);var r=function(){var r,n=window.matchMedia("(max-device-width: 415px)"),i=window.matchMedia("(max-width: ".concat(null!==(r=e.breakpoint)&&void 0!==r?r:"600px",")"));n.matches||i.matches?t.contentWrap.style.position="relative":t.contentWrap.style.position="absolute"};return window.addEventListener("resize",r),r(),this}},{key:"add",value:function(e){var t,r=this;if(!Array.isArray(e))throw new Error("The 'add' method expects an array of children.");if(e.forEach((function(e,t){if(0!==t){if(!(e.res instanceof HTMLElement))throw new Error("Each child must have a valid 'element' property that is an HTMLElement.");r.contentWrap.appendChild(e.res)}})),!this.options||!this.options.title){var n=e[0];n&&n.res&&this.toggleWrap.appendChild(n.res)}return(t=this.children).push.apply(t,function(e){return function(e){if(Array.isArray(e))return o(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||i(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(e)),this}},{key:"toggle",value:function(){this.isExpanded=!this.isExpanded,this.contentWrap.style.display=this.isExpanded?"block":"none"}},{key:"toCode",value:function(){var e=this,t=this.options?Object.entries(this.options).map((function(e){var t=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o,s,a=[],l=!0,c=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=o.call(r)).done)&&(a.push(n.value),a.length!==t);l=!0);}catch(e){c=!0,i=e}finally{try{if(!l&&null!=r.return&&(s=r.return(),Object(s)!==s))return}finally{if(c)throw i}}return a}}(e,t)||i(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(e,2),r=t[0],o=t[1];return"string"==typeof o?"".concat(r,': "').concat(o,'"'):"object"===n(o)?"".concat(r,": ").concat(JSON.stringify(o)):"".concat(r,": ").concat(o)})).join(",\n "):"",r=this.children.map((function(t,r){return t.toCode().flatMap((function(e){return e})).join("")+(r<e.children.length-1?",":"")})).join("");return["new Dropdown().set({\n ".concat(t,"\n}).add([\n ").concat(r,"\n])")]}},{key:"render",value:function(e){return e&&document.querySelector(e).appendChild(this.res),this.res}}])&&s(r.prototype,a),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,a}(r(762).y)},110:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function i(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,o(n.key),n)}}function o(e){var t=function(e){if("object"!=n(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=n(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==n(t)?t:t+""}function s(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(s=function(){return!!e})()}function a(e){return a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},a(e)}function l(e,t){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},l(e,t)}r.d(t,{Z:()=>c});var c=function(e){function t(e,r){var i;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(i=function(e,t,r){return t=a(t),function(e,t){if(t&&("object"==n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,s()?Reflect.construct(t,r||[],a(e).constructor):t.apply(e,r))}(this,t)).text=e,i.url=r,i.setup(),i}return function(e,t){if("function"!=typeof t&&null!==t)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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&l(e,t)}(t,e),r=t,(o=[{key:"getType",value:function(){return"sCardElement"}},{key:"setup",value:function(){window.matchMedia("(max-device-width: 415px)");var e=document.createElement("div");return e.style.display="flex",e.style.flexDirection="column",e.style.alignItems="center",e.style.backgroundColor="#fff",e.style.fontFamily="Arial",e.style.width="100%",e.style.boxShadow="3px 3px 10px #111",e.style.overflow="hidden",this.res=e,this}},{key:"set",value:function(e){if(this.obj=e,e.border&&(this.res.style.border=e.border),e.radius&&(this.res.style.borderRadius=e.radius),e.arrayPadding){var t=e.arrayPadding.sides.map((function(e){return'"'.concat(e,'"')})).join(", ");e.arrayPadding&&this.arrayPadding(e.arrayPadding.sides,e.arrayPadding.value),e.arrayPadding&&"\n arrayPadding: {sides: [".concat(t,'], value: "').concat(e.arrayPadding.value,'"},')}return e.arrayMargin&&this.arrayMargin(e.arrayMargin.sides,e.arrayMargin.value),e.arrayMargin&&"\n arrayMargin: {sides: [".concat(e.arrayMargin.sides.map((function(e){return'"'.concat(e,'", ')})),'], value: "').concat(e.arrayMargin.value,'"},'),e.width&&(this.res.style.width=e.width),this}},{key:"arrayPadding",value:function(e,t){return t||(this.res.style.marginLeft="".concat(e[0],"px"),this.res.style.marginTop="".concat(e[1],"px"),this.res.style.marginRight="".concat(e[2],"px"),this.res.style.marginBottom="".concat(e[3],"px")),"all"===e[0]&&(this.res.style.paddingLeft=t,this.res.style.paddingTop=t,this.res.style.paddingRight=t,this.res.style.paddingBottom=t),e.includes("left")&&(this.res.style.paddingLeft=t),e.includes("right")&&(this.res.style.paddingRight=t),e.includes("top")&&(this.res.style.paddingTop=t),e.includes("bottom")&&(this.res.style.paddingBottom=t),t||(this.res.style.paddingBottom=e),this}},{key:"arrayMargin",value:function(e,t){return e.includes("left")&&(this.res.style.marginLeft=t),e.includes("right")&&(this.res.style.marginRight=t),e.includes("top")&&(this.res.style.marginTop=t),e.includes("bottom")&&(this.res.style.marginBottom=t),e.includes("all")&&(this.res.style.margin=t),t||(this.res.style.marginBottom=e),this}},{key:"frame",value:function(e){return e.height&&(this.res.style.height=e.height),e.width&&(this.res.style.width=e.width),this}},{key:"scale",value:function(e){var t=this;return this.res.style.width,this.res.style.transition="0.5s all",this.res.addEventListener("mouseover",(function(){t.res.style.width,t.res.style.transform="scale(1.04)"})),this.res.addEventListener("mouseout",(function(){t.res.style.width,t.res.style.transform="scale(1.0)"})),this}},{key:"background",value:function(e){return this.res.style.backgroundColor=e,this}},{key:"color",value:function(e){return this.res.style.color=e,this}},{key:"padding",value:function(e){return this.res.style.padding="".concat(e,"px"),this}},{key:"items",value:function(e){for(var t=0;t<e.length;t++)this.res.appendChild(e[t].render());return this}},{key:"shadow",value:function(){return this.res.style.boxShadow="1px 1px 20px rgba(0, 0, 0, 0.60)",this}},{key:"round",value:function(e){return this.res.style.borderRadius="".concat(e,"px"),this}},{key:"render",value:function(e){if(!e)return this.res;document.querySelector(e).appendChild(this.res)}}])&&i(r.prototype,o),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,o}(r(762).y)},130:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,s(n.key),n)}}function s(e){var t=function(e){if("object"!=n(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=n(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==n(t)?t:t+""}function a(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(a=function(){return!!e})()}function l(e,t,r,n){var i=c(u(1&n?e.prototype:e),t,r);return 2&n&&"function"==typeof i?function(e){return i.apply(r,e)}:i}function c(){return c="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,r){var n=function(e,t){for(;!{}.hasOwnProperty.call(e,t)&&null!==(e=u(e)););return e}(e,t);if(n){var i=Object.getOwnPropertyDescriptor(n,t);return i.get?i.get.call(arguments.length<3?e:r):i.value}},c.apply(null,arguments)}function u(e){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},u(e)}function d(e,t){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},d(e,t)}r.d(t,{_:()=>h});var h=function(e){function t(e,r,i,o){var s;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(s=function(e,t,r){return t=u(t),function(e,t){if(t&&("object"==n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,a()?Reflect.construct(t,r||[],u(e).constructor):t.apply(e,r))}(this,t)).url=e,s.res=null,s.code=[],s}return function(e,t){if("function"!=typeof t&&null!==t)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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&d(e,t)}(t,e),r=t,s=[{key:"removeQuotesFromFirstWord",value:function(e){return e.replace(/"([^"]+)":/g,"$1:")}},{key:"setType",value:function(e){e.url;var t=e.type,r=e.mode;if(this.code=[],"exact"===t){var n='new Image("'.concat(this.url,'", "exact")');this.code.push(n)}else if("uncover"===t){var i='new Image("'.concat(this.url,'", "uncover")');this.code.push(i)}else this.code.push("new Image('".concat(this.url,"')"));return this.image(this.url,r,t),this}},{key:"flexOne",value:function(){return this.res.style.flex="1",this}},{key:"hand",value:function(){return this.res.style.cursor="hand",this}},{key:"setGridWithoutCode",value:function(){return this.res.style.border="1px solid white",this}},{key:"maxWidth",value:function(e){return this.res.style.maxWidth=e,this}},{key:"getHeight",value:function(){return this.res.height}},{key:"getWidth",value:function(){return this.res.width}},{key:"getType",value:function(){return"HTMLImageElement"}},{key:"toCode",value:function(){var e=this.options;this.res.style.border&&(e.border=this.res.style.border);var t=Object.fromEntries(Object.entries(e).filter((function(e){var t=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o,s,a=[],l=!0,c=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=o.call(r)).done)&&(a.push(n.value),a.length!==t);l=!0);}catch(e){c=!0,i=e}finally{try{if(!l&&null!=r.return&&(s=r.return(),Object(s)!==s))return}finally{if(c)throw i}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return i(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?i(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(e,2);return t[0],null!==t[1]})));return["new Image().set(".concat(JSON.stringify(t,null,2).replace(/"(\w+)"\s*:/g,"$1:"),")")]}},{key:"formatObj",value:function(e){return JSON.stringify(e,null,2).replace(/"(\w+)"\s*:/g,"$1:")}},{key:"set",value:function(e){var r="";this.options=e;var n=e.isFull;if(n?this.image(e.url,"exact",n,"a"):this.setup(),e.url&&this.res.setAttribute("src",e.url),"exact"===n?'new Image("'.concat(this.url,'", "exact")'):"uncover"===n&&'new Image("'.concat(this.url,'", "uncover")'),e.vtn&&(this.res.style.viewTransitionName=e.vtn),this.vtn=e.vtn,e.minHeight&&(this.res.style.minHeight=e.minHeight),e.index&&l(t,"setIndex",this,3)([e.index]),e.index&&(this.index=e.index),e.index&&(r+='\n index: "'.concat(e.index,'",')),e.centerSelf&&(this.res.style.marginRight="auto",this.res.style.marginLeft="auto"),e.fitContent&&(this.res.style.width="100%",this.res.style.height="100%",this.res.style.marginRight="auto",this.res.style.marginTop="auto",this.res.style.objectFit="cover"),e.objectFit&&(this.res.style.objectFit=e.objectFit),e.objectFit&&(r+='\n objectFit: "'.concat(e.objectFit,'",')),e.as&&this.as(e.as),e.onScroll&&this.onScroll(e.onScroll),e.class&&this.res.setAttribute("class",e.class),e.gpos&&(this.gposObject=e.gpos),e.gpos&&(this.res.style.gridColumn=e.gpos.col,this.res.style.gridRow=e.gpos.row,r+="\n gpos: ".concat(this.removeQuotesFromFirstWord(JSON.stringify(e.gpos)),", ")),e.filtera){var i;i=Array.isArray(e.filtera)?u.filtera.filter((function(e){return"filter"===e.op.name}))[0]:e.filtera;var o=this.removeQuotesFromFirstWord(JSON.stringify(i));r+="\n filtera: ".concat(o,", \n")}if(e.keySet&&this.keySet(e.keySet),e.stype&&this.setType(e.stype),e.isBackground&&(this.isBackground=e.isBackground),e.zIndex&&(this.res.style.zIndex=e.zIndex),e.zIndex&&(r+='\n zIndex: "'.concat(e.zIndex,'", \n')),e.id&&this.res.setAttribute("id",e.id),e.id&&(r+=' id: "'.concat(e.id,'", \n')),this.id=e.id,e.area&&this.setArea(e.area),e.area&&(r+='area: "'.concat(e.area,'", \n')),e.opacity&&(this.res.style.opacity=e.opacity),e.width&&(this.res.style.width=e.width),e.width&&(r+='width: "'.concat(e.width,'", ')),e.maxWidth&&(this.res.style.maxWidth=e.maxWidth),e.maxWidth&&(r+='maxWidth: "'.concat(e.maxWidth,'", ')),e.height&&(this.res.style.height=e.height),e.height&&(r+='height: "'.concat(e.height,'", ')),e.multimargin&&this.makeMultiMargin(e.multimargin),e.multimargin&&(r+="multimargin: [ \n"),e.arrayMargin&&this.arrayMargin(e.arrayMargin.sides,e.arrayMargin.value),e.multimargin){for(var s=0;s<e.multimargin.length;s++){var a=e.multimargin[s];r+='{side: "'.concat(a.side,'", value: "').concat(a.value,'"}, \n')}r+="], \n"}if(e.maxWidth&&this.maxWidth(e.maxWidth),e.maxWidth&&(r+='maxWidth: "'.concat(e.maxWidth,'", \n')),e.radius&&this.cornerRadius(e.radius),e.radius&&(r+='radius: "'.concat(e.radius,'", \n')),e.marginOp){var c=this.removeQuotesFromFirstWord(JSON.stringify(e.marginOp));r+="\n marginOp: ".concat(c,",")}e.clipPath&&this.clipPath(e.clipPath),e.clipPath&&(r+='clipPath: "'.concat(e.clipPath,'", \n'));var u=e;if(u.stroke||u.gradient||u.span||u.backgroundOp||u.layout||u.marginOp||u.shadow||u.filtera||u.animation){u.gradient,u.gradient&&(this.globalGradient=u.gradient.op.gradient),u.stroke&&l(t,"setAny",this,3)([{globalBlast:"".concat(u.stroke.op.width," ").concat(u.stroke.op.color)}]);var d=[u.stroke,u.gradient,u.animation,u.span,u.backgroundOp,u.layout,u.marginOp,u.shadow,u.filtera,u.animation];d=d.filter((function(e){return null!=e}));var h=[];for(s=0;s<d.length;s++)h.push({range:d[s].range,log:d[s].op.name,target:d[s].target,op:d[s].op});this.chainReact(h,this.options.id)}if(u.shadow){var p=u.shadow,y=this.removeQuotesFromFirstWord(JSON.stringify(p));r+="\n shadow: ".concat(y,",")}if(u.animation){var f=u.animation,m=this.removeQuotesFromFirstWord(JSON.stringify(f));r+="\n animation: ".concat(m,",")}var v="\n .set({".concat(r,"}) \n \n");return Object.keys(e).length>0?this.code.push(v):this.code.push(","),this}},{key:"setFilter",value:function(e){var t=[],r=[e];r=r.filter((function(e){return null!=e}));for(var n=0;n<r.length;n++)t.push({range:r[n].range,log:r[n].op.name,target:r[n].target})}},{key:"makeMultiMargin",value:function(e){for(var t=0;t<e.length;t++)"left"===e[t].side&&(this.res.style.marginLeft=e[t].value),"right"===e[t].side&&(this.res.style.marginRight=e[t].value),"top"===e[t].side&&(this.res.style.marginTop=e[t].value),"bottom"===e[t].side&&(this.res.style.marginBottom=e[t].value);return this}},{key:"setID",value:function(e){return this.res.setAttribute("id",e),this}},{key:"square",value:function(){return this.res.style.width="30%",this.res.style.paddingBottom="30%",this}},{key:"opacity",value:function(e){return this.res.style.opacity="".concat(e),this}},{key:"rowCol",value:function(e,t){return this.res.style.gridRow=e,this.res.style.gridColumn=t,this}},{key:"setArea",value:function(e){return this.res.style.gridArea=e,this}},{key:"setGridRow",value:function(e){return this.res.style.gridRow=e,this}},{key:"setGridCol",value:function(e){return this.res.style.gridColumn=e,this}},{key:"setGrid",value:function(){return this.res.style.gridRow="span 2",this.res.style.gridColumn="span 3",this}},{key:"transform",value:function(e){return this.res.style.transform=e,this}},{key:"offset",value:function(){return this.res.style.marginLeft="-60px",this}},{key:"offseta",value:function(){return this.res.style.marginLeft="90px",this.res.style.marginTop="-30px",this}},{key:"borderAround",value:function(e){return this.res.style.border=e,this}},{key:"setClass",value:function(e){return this.res.setAttribute("class",e),this}},{key:"scale",value:function(e){var t=this;return this.res.style.width,this.res.style.transition="0.5s all",this.res.addEventListener("mouseover",(function(){t.res.style.width,t.res.style.transform="scale(1.04)"})),this.res.addEventListener("mouseout",(function(){t.res.style.width,t.res.style.transform="scale(1.0)"})),this}},{key:"onTap",value:function(e){return this.res.addEventListener("click",e),this}},{key:"border",value:function(e){return this.res.style.borderTopLeftRadius="16px",this.res.style.borderTopRightRadius="16px",this}},{key:"allRound",value:function(e){return this.res.style.borderRadius=e,this}},{key:"mobileWidth",value:function(){return window.matchMedia("(max-device-width: 415px)").matches&&(this.res.style.width="120%"),this}},{key:"image",value:function(e,t,r,n,i){var o=window.matchMedia("(max-device-width: 415px)"),s=document.createElement("div");return s.style.viewTransitionName=n,s.style.width="100%",s.style.height="200",i&&(s.style.gridColumn=i.gridColumn,s.style.gridRow=i.gridRow),o.matches&&(s.style.height="500"),s.style.backgroundImage="url(".concat(e,")"),s.style.backgroundPosition="center center",s.style.backgroundRepeat="no-repeat",s.style.backgroundSize="cover","uncover"===r&&(s.style.backgroundSize="contain"),"contain"===t&&(s.style.backgroundSize="contain"),this.res=s,this}},{key:"arrayPadding",value:function(e,t){return e.includes("left")&&(this.res.style.paddingLeft=t),e.includes("right")&&(this.res.style.paddingRight=t),e.includes("top")&&(this.res.style.paddingTop=t),e.includes("bottom")&&(this.res.style.paddingBottom=t),this}},{key:"arrayMargin",value:function(e,t){return e.includes("left")&&(this.res.style.marginLeft=t),e.includes("right")&&(this.res.style.marginRight=t),e.includes("top")&&(this.res.style.marginTop=t),e.includes("bottom")&&(this.res.style.marginBottom=t),this}},{key:"setup",value:function(){var e=document.createElement("img");return e.style.width="100%",e.src=this.url,this.res=e,this}},{key:"autoW",value:function(){return this.res.style.width="initial",this}},{key:"float",value:function(e){return this.res.style.float="".concat(e),this}},{key:"fillAvailable",value:function(){return this.res.style.height="-webkit-fill-available",this}},{key:"grayscale",value:function(e){return this.res.style.filter="grayscale(".concat(e,"%)"),this}},{key:"flex",value:function(e){return this.res.style.flex=1,this}},{key:"height",value:function(e){return this.res.style.height=e,this.res.style.width="auto",this}},{key:"expand",value:function(e){var t=this,r=function(){var r,n;if(window.matchMedia("(min-width: ".concat(e.at,")")).matches){t.res.style.width="".concat(e.width);var i=window.innerWidth/2-(n=r=e.width,(r.includes("%")||r.includes("px"))&&(n=n.substr(0,2)),(r.includes("%")?Number(n/100*window.innerWidth):r.includes("px")?Number(n):void 0)/2);t.res.style.marginLeft="".concat(i,"px")}else t.res.style.width="100%",t.res.style.marginLeft="0px";window.matchMedia("(max-device-width: 415px)").matches&&(t.res.style.width="100%",t.res.style.marginLeft="0px")};return r(),window.addEventListener("resize",r),this}},{key:"width",value:function(e){return this.res.style.width=e,this.res.style.height="auto",this}},{key:"toBack",value:function(){return this.res.style.zIndex="-1",this}},{key:"margin",value:function(e,t,r,n){return(e||t||r||n)&&(this.res.style.marginLeft=e,this.res.style.marginTop=t,this.res.style.marginRight=r,this.res.style.marginBottom=n),t||r||n||0===t&&0===r&&0===n||(this.res.style.margin=e),this}},{key:"padding",value:function(e){return this.res.style.padding=e,this}},{key:"size",value:function(e,t){return e&&t?(this.res.style.width=e,this.res.style.height=t):(this.res.style.width=e,this.res.style.height=e),this}},{key:"frame",value:function(e){var t=e.width,r=e.height;return t&&r?(this.res.style.width=t,this.res.style.height=r):(this.res.style.width=t,this.res.style.height=t),this}},{key:"RSize",value:function(e,t,r){var n=window.matchMedia("(max-device-width: 420px)");return e&&t?(this.res.style.width=n.matches?e*r:e,this.res.style.height=n.matches?t*r:t):(this.res.style.width=n.matches?e*r:e,this.res.style.height=n.matches?e*r:e),this}},{key:"shadow",value:function(e){return"mild"===e.type?this.res.style.boxShadow="0px 3px 15px rgba(0,0,0,0.2)":this.res.style.boxShadow="".concat(e.x,"px ").concat(e.y,"px ").concat(e.radius,"px ").concat(e.color),this}},{key:"clipShape",value:function(e){return this.res.style.borderRadius="50%",this}},{key:"cornerRadius",value:function(e){return this.res.style.borderRadius=e,this}},{key:"clipPath",value:function(e){this.res.style.clipPath='path("'.concat(e,'")');var t=document.createElementNS("http://www.w3.org/2000/svg","svg");return t.style.display="block",t.style.width="100%",t.style.height="100%",t.style.overflow="visible",this}},{key:"render",value:function(e){var t=this.res;if(!e)return t;document.querySelector(e).appendChild(t)}}],s&&o(r.prototype,s),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,s}(r(762).y)},148:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function i(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,o(n.key),n)}}function o(e){var t=function(e){if("object"!=n(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=n(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==n(t)?t:t+""}function s(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(s=function(){return!!e})()}function a(e){return a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},a(e)}function l(e,t){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},l(e,t)}r.d(t,{l:()=>c});var c=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=function(e,t,r){return t=a(t),function(e,t){if(t&&("object"==n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,s()?Reflect.construct(t,r||[],a(e).constructor):t.apply(e,r))}(this,t)).el=null,e}return function(e,t){if("function"!=typeof t&&null!==t)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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&l(e,t)}(t,e),r=t,(o=[{key:"set",value:function(e){this.options=e;var t=document.createElement("div"),r=document.createElement("label");r.style.position="relative",r.style.display="block";var n=document.createTextNode(e.title);r.appendChild(n),r.style.opacity=0;var i=document.createElement("input");return"textarea"===e.type&&(i=document.createElement("textarea")),i.style.position="relative",i.placeholder=e.title,i.style.fontSize="1rem",i.style.padding=".4rem .75rem",t.appendChild(r),t.appendChild(i),this.res=t,e.mar&&this.mar(e.mar),e.pad&&this.pad(e.pad),i.addEventListener("focus",(function(){r.style.transition="transform ease 0.2s",r.style.transform="scale(0.80)",r.style.textTransform="uppercase",r.style.transformOrigin="left top",r.style.fontWeight="bold",i.placeholder="",r.style.opacity="1.0",e.font&&(r.style.fontFamily=e.font),e.color&&(r.style.color=e.color),e.exact&&(r.style.fontSize=e.exact)})),i.addEventListener("focusout",(function(){r.style.transform="scale(1.0)",i.placeholder=e.title,r.style.opacity="0.0"})),e.name&&i.setAttribute("name",e.name),window.matchMedia("(max-device-width: 415px)").matches&&(i.style.width="100%",t.style.width="100%"),i.style.fontSize="1rem",this.el=t,this}},{key:"getValue",value:function(){return this.el.children[1].value}},{key:"toCode",value:function(){var e=JSON.stringify(this.options,null,4);return e=e.replace(/"(\w+)"(?=\s*:)/g,"$1"),["new FloatingInput().set(".concat(e,")")]}},{key:"margin",value:function(e){return this.el.style.margin=e,this}},{key:"render",value:function(e){if(!e)return this.el;document.querySelector(e).appendChild(this.el)}}])&&i(r.prototype,o),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,o}(r(762).y);window.FloatingInput=c},155:(e,t,r)=>{r.d(t,{X:()=>p});var n=r(762);function i(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(i=function(){return!!e})()}function o(e){return o=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},o(e)}function s(e,t){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},s(e,t)}function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,d(n.key),n)}}function u(e,t,r){return t&&c(e.prototype,t),r&&c(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function d(e){var t=function(e){if("object"!=a(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=a(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==a(t)?t:t+""}var h=function(){return u((function e(t,r){l(this,e),this.obj=t||{},this.items=r||[]}),[{key:"render",value:function(){var e=document.createElement("div");e.style.display="flex",e.style.width="100%",e.style.justifyContent="space-around",e.setAttribute("id","innerItemsWrapper");var t=window.matchMedia("(max-device-width: 415px)"),r=window.matchMedia("(max-width: 600px)");(t.matches||r.matches)&&(e.style.marginTop="3rem");for(var n=0;n<this.items.length;n++){var i=this.items[n];e.appendChild(i.render())}var o=document.createElement("div");return o.style.width=this.obj.isSide?"333px":"100%",o.style.background=this.obj.background||"white",o.style.display="flex",o.style.justifyContent="center",o.style.alignItems="center",o.style.height="100%",o.setAttribute("id","outerItemsWrapper"),o.appendChild(e),this.obj.customStyle&&(e.style.width="auto",e.style.top="0rem",e.style.borderRadius="1rem",e.style.background=this.obj.background||"white",e.style.margin="1rem",e.style.position="absolute",e.style.opacity=.8),o}}])}(),p=function(e){function t(e){var r,n,s,c;return l(this,t),r=function(e,t,r){return t=o(t),function(e,t){if(t&&("object"==a(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,i()?Reflect.construct(t,r||[],o(e).constructor):t.apply(e,r))}(this,t),n=r,c=function(){var e=window.matchMedia("(max-device-width: 415px)"),t=document.createElement("button");t.setAttribute("id","hamburger"),t.style.border="none",t.style.fontWeight="bold",t.style.position="absolute",t.style.color="orange",t.style.backgroundColor="transparent",t.style.fontSize=e.matches?"2.1em":"2em";var n=document.createTextNode(r.symbol?r.symbol:"☰");return t.appendChild(n),t.style.marginLeft="auto",r.isShown=!1,t.addEventListener("click",(function(){r.isShown=!r.isShown,r.hasAnimatedToWide=!1;var e=r.items[0].options;if(e&&e.animation){var t=e.animation.op,n=r.res.children[0].children[1].children[0];if(t){if(r.isShown)for(var i=0;i<n.children.length;i++)n.children[i].animate(t.keyframesClose,{duration:1,fill:"forwards",delay:0}).onfinish=function(){n.parentElement.style.display="block"};else n.parentElement.style.display="none";for(i=0;i<n.children.length;i++){var o=n.children[i];o.animate(t.keyframesClose,{duration:1,fill:"forwards",delay:0}),r.isShown?o.animate(t.keyframesOpen,t.openOptions):o.animate(t.keyframesClose,t.closeOptions)}}}else r.isShown?innerItemsWrapper.parentElement.style.display="block":innerItemsWrapper.parentElement.style.display="none"})),t},(s=d(s="addHamburger"))in n?Object.defineProperty(n,s,{value:c,enumerable:!0,configurable:!0,writable:!0}):n[s]=c,r.titleText="",r.hasHamburger=!1,r.code=[],r.attributes={},r}return function(e,t){if("function"!=typeof t&&null!==t)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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&s(e,t)}(t,e),u(t,[{key:"toCode",value:function(){var e="new UINavBar()";return Object.keys(this.attributes).length>0?e+=".setup(".concat(JSON.stringify(this.attributes,null,2).replace(/"([^"]+)":/g,"$1:"),")"):e+=".setup({})",e+=".items([\n",(e+=this.items.map((function(e){return e.toCode().join("").trim()})).join(",\n"))+"\n])"}},{key:"styled",value:function(e){return this.setup(e),this.styles=e,this}},{key:"setup",value:function(e){this.obj=e,this.obj.isSide||(this.obj.animate=!1),this.attributes=e;var t=document.createElement("div");t.setAttribute("id","sars"),t.style.padding=0,t.style.margin=0;var r=document.createElement("div");r.setAttribute("id","covid"),r.style.position="absolute",r.style.width="100%",r.style.zIndex=1,r.style.alignItems="flex-start";var n=document.createElement("div");return n.style.background="green",n.style.position="absolute",r.style.margin="20px",r.style.display="flex",r.style.alignItems="flex-end",r.style.margin=0,r.style.padding=0,r.style.margin=0,t.appendChild(r),this.addCloseButton=!1,this.res=t,e.background&&this.background({color:e.background}),e.openColor&&(this.openColor=e.openColor),e.sticky&&this.sticky(),e.pad&&this.pad(e.pad),e.hamburgerColour&&(this.hamburgerColour=e.hamburgerColour),e.mobileSize&&(this.mobileSize=e.mobileSize),e.desktopSize&&(this.desktopSize=e.desktopSize),e.height&&(this.res.children[0].style.height=e.height),this}},{key:"items",value:function(e){this.items=e;var t=["Link","Image","Spacer","Dropdown"].some((function(t){return e[0].__proto__.constructor.toString().startsWith("class ".concat(t))}));console.log(this.items),this.itemCount=e.length;var r=new h(this.obj,this.items).render();this.res.children[0].appendChild(r);var n=this.res.children[0].children[0].children[0],i=this.items[0].options;if(i&&i.animation){var o=i.animation.op;if(o){var s=window.matchMedia("(max-device-width: 415px)"),a=window.matchMedia("(max-width: 600px)");if(s.matches||a.matches){var l={duration:1,fill:"forwards",delay:1};for(c=0;c<n.children.length;c++)n.children[c].animate(o.keyframesClose,l)}else for(var c=0;c<n.children.length;c++)n.children[c].animate(o.keyframesClose,{duration:1,fill:"forwards",delay:1}),n.children[c].animate(o.keyframesOpen,o.openOptions)}}if(this.adjust(),!t){this.itemCount=e.length;var u=document.createElement("div");for(u.style.backgroundColor="orange",c=0;c<e.length;c++){var d=e[c];if(d.logo){var p=new Image(d.logo).width("100px"),y=document.createElement("div");y.style.flex="1",y.style.height=23;var f=document.createElement("div");f.setAttribute("id","WR"),f.style.display="flex",f.style.flexDirection="row",f.appendChild(p.render()),this.res.children[0].appendChild(p.render()),this.obj.spacing&&this.res.children[0].appendChild(y)}if(d.logo&&(this.allowPad=!0),d.logo&&this.obj.spacing&&(this.res.children[0].children[0].style.marginLeft=this.obj.spacing.sides,this.res.children[0].children[0].style.marginRight=this.obj.spacing.sides),d.title){var m=void 0;m=this.allowPad?d.type?new Dropdown(d.items,d.title):new Link(d.title,d.url).arrayPadding(["left","right"],"1em"):d.type?new Link("DRPA",d.url):new Link(d.title,d.url),u.appendChild(m.render())}}this.res.children[0].appendChild(u),this.adjust()}var v=this.addHamburger();return this.itemCount,this.obj.spacing,v.style.zIndex=1,1===this.res.children[0].children.length&&this.res.children[0].insertBefore(v,this.res.children[0].firstChild),this}},{key:"instance",value:function(){return this.res.children[0]}},{key:"sticky",value:function(){return this.res.children[0].style.position="fixed",this}},{key:"font",value:function(e){for(var t=0;t<this.res.children[0].children;t++)this.res.children[0].children[t].style.fontFamily=e;return this}},{key:"openSymbol",value:function(e){return this.symbol=e,this}},{key:"background",value:function(e){return e.background?(this.res.children[0].style.backgroundColor=e.color,this.res.children[0].style.opacity=e.opacity,this):(this.res.children[0].style.backgroundColor="transparent",this)}},{key:"transluescent",value:function(){return this.res.children[0].style.backgroundColor="rgba(255,255,255,0.72)",this}},{key:"keepItem",value:function(e){return this.keepItem=e,this}},{key:"adjust",value:function(e){var t=this,r=window.matchMedia("(max-width: 600px)"),n=window.matchMedia("(max-device-width: 415px)"),i=function(){t.isShown=!1,t.res.children[0],function(){for(var e=0;e<t.res.children[0].children.length;e++){var r=t.res.children[0].children[e];r.style.fontSize=n.matches?t.mobileSize?t.mobileSize:"1.2em":t.desktopSize?t.desktopSize:"1em","☰"===r.textContent&&(r.style.fontSize="2em")}}(),t.res.children[0].style.flexDirection="column";for(var e=0;e<t.res.children[0].children.length;e++)"☰"==t.res.children[0].children[e].textContent||t.res.children[0].children[e].textContent==t.keepItem?(t.res.children[0].children[e].id,t.res.children[0].children[e].style.display="flex"):t.res.children[0].children[e].style.display="none"};if(this.obj.isSide)i();else{var o=this.res.children[1];null!=o&&(o.style.background="yellow"),r.matches||n.matches?i():function(){t.res.children[0];for(var e=0;e<t.res.children[0].children.length;e++){var r=t.res.children[0].children[e];r.style.marginTop="0em",r.id,r.style.display="flex",r.textContent===t.titleText&&t.titleText.length>0&&(r.style.fontSize="2em")}var n=t.items[0].options;if(n&&n.animation){var i=n.animation.op,o=t.res.children[0].children[1].children[0];if(o.style.marginTop="0",i&&!t.hasAnimatedToWide)for(t.hasAnimatedToWide=!0,e=0;e<o.children.length;e++)o.children[e].animate(i.keyframesOpen,i.openOptions)}else console.log(t.res)}()}return this}},{key:"render",value:function(e){var t=this,r=function(){var e=window.matchMedia("(max-width: 600px)"),r=window.matchMedia("(max-device-width: 415px)"),n=t.res.children[0].children[1],i=n.children[0];r.matches&&(i.style.position="relative"),(e.matches||r.matches)&&null!=i?i.style.flexDirection="column":null==i||t.obj.isSide||(i.style.flexDirection="row"),t.obj.isSide||e.matches||r.matches||(t.res.children[0].children[0].style.display="none"),t.obj.isSide&&(i.style.flexDirection="column"),t.obj.isSide||e.matches||(t.res.children[0].style.position="relative",n.style.transform="translateY(0px)"),!t.obj.isSide&&e.matches,t.obj.customStyle&&(t.res.children[0].style.marginTop="1rem",t.res.children[0].style.position="absolute",t.res.children[0].style.borderRadius="1rem",n.style.borderRadius="1rem"),t.obj.radius&&(t.res.children[0].style.borderRadius="1rem",n.style.borderRadius="1rem")};return window.addEventListener("resize",(function(){return r()})),r(),e?(document.querySelector(e).style.padding=0,document.querySelector(e).style.margin=0,document.querySelector(e).appendChild(this.res),this.res):this.res}}])}(n.y)},207:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function i(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,o(n.key),n)}}function o(e){var t=function(e){if("object"!=n(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=n(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==n(t)?t:t+""}function s(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(s=function(){return!!e})()}function a(e){return a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},a(e)}function l(e,t){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},l(e,t)}r.d(t,{$:()=>c});var c=function(e){function t(e,r){var i;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(i=function(e,t,r){return t=a(t),function(e,t){if(t&&("object"==n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,s()?Reflect.construct(t,r||[],a(e).constructor):t.apply(e,r))}(this,t)).text=e,i.res=null,i.val=r,i.setup(),i}return function(e,t){if("function"!=typeof t&&null!==t)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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&l(e,t)}(t,e),r=t,o=[{key:"setup",value:function(e){return this}},{key:"hover",value:function(e){var t=this;return this.prevColor=this.res.style.backgroundColor,this.foreColor=this.res.style.color,e.animation&&(this.res.style.transition="".concat(e.animation,"s ease-in-out"),this.res.style.transionProperty="background, color"),this.res.onmouseout=function(){t.res.style.backgroundColor="".concat(t.prevColor),t.res.style.color="".concat(t.foreColor)},this.res.onmouseover=function(){t.res.style.backgroundColor=e.background,t.res.style.color=e.color},this}},{key:"set",value:function(e){this.options=e;var t=document.createElement("button");if(t.style.background="transparent",e.url){var r=document.createElement("img");r.setAttribute("src",e.url),r.style.width=e.frame.width,r.style.height=e.frame.height,t.appendChild(r)}else{var n=document.createTextNode(this.text.replace("$",this.val));t.appendChild(n)}return this.res=t,e&&"submit"===e.type&&t.setAttribute("type",e.type),this.border("none"),this.res.style.display="block",e.background&&this.background(e.background),e.padding&&this.padding(e.padding),e.margin&&this.margin(e.margin),e.mar&&this.mar(e.mar),e.pad&&this.pad(e.pad),e.centered&&(this.res.style.marginRight="auto",this.res.style.marginLeft="auto",this.res.style.backgroundColor="black"),e.border&&this.border(e.border),e.radius&&this.borderRadius(e.radius),e.class&&this.setClass(e.class),e.color&&this.color(e.color),e.auto&&this.auto(),e.weight&&(this.res.style.fontWeight=e.weight),e.fluidc&&this.fluidButtonCopy(e.fluidc),e.fluidc&&'\n fluidc: "'.concat(e.fluidc,'",'),e.onTap&&this.onTap(e.onTap),e.frame&&this.frame(e.frame),e.frame&&'\n frame: "'.concat(e.frame,'",'),e.arrpad&&this.arrayPadding(e.arrpad.sides,e.arrpad.value),e.arrpad&&'\n arrpad: {sides: ["'.concat(e.arrpad.sides,'"], value: "').concat(e.arrpad.value,'"},'),e.arrayMargin&&this.arrayMargin(e.arrayMargin.sides,e.arrayMargin.value),e.arrayMargin&&'\n arrayMargin: {sides: ["'.concat(e.arrayMargin.sides,'"], value: "').concat(e.arrayMargin.value,'"},'),e.keySet&&this.keySet(e.keySet),this}},{key:"arrayPadding",value:function(e,t){return e.includes("left")&&(this.res.style.paddingLeft=t),e.includes("right")&&(this.res.style.paddingRight=t),e.includes("top")&&(this.res.style.paddingTop=t),e.includes("bottom")&&(this.res.style.paddingBottom=t),e.includes("all")&&(this.res.style.padding=t),t||(this.res.style.paddingBottom=e),this}},{key:"arrayMargin",value:function(e,t){return t||(this.res.style.marginLeft="".concat(e[0],"px"),this.res.style.marginTop="".concat(e[1],"px"),this.res.style.marginRight="".concat(e[2],"px"),this.res.style.marginBottom="".concat(e[3],"px")),e.includes("left")&&(this.res.style.marginLeft=t),e.includes("right")&&(this.res.style.marginRight=t),e.includes("top")&&(this.res.style.marginTop=t),e.includes("bottom")&&(this.res.style.marginBottom=t),e.includes("all")&&(this.res.style.margin=t),t||(this.res.style.marginBottom=e),this}},{key:"fluidButtonCopy",value:function(e){if(e instanceof Object){this.prevStylex=this.res.style,this.res=document.createElement("button"),this.res.style.cssText=this.prevStylex.cssText;var t=document.createTextNode(this.text);return this.res.appendChild(t),this.res.style.fontSize=e.exact,this}if("S1"===e){this.prevStylex=this.res.style,this.res=document.createElement("button"),this.res.style.cssText=this.prevStylex.cssText;var r=document.createTextNode(this.text);this.res.appendChild(r),this.res.style.fontSize="calc(1.625rem + 5.075vw)"}if("S2"===e){this.prevStylex=this.res.style,this.res=document.createElement("button"),this.res.style.cssText=this.prevStylex.cssText;var n=document.createTextNode(this.text);this.res.appendChild(n),this.res.style.fontSize="calc(1.500rem + 4.3vw)"}if("S3"===e){this.prevStylex=this.res.style,this.res=document.createElement("button"),this.res.style.cssText=this.prevStylex.cssText;var i=document.createTextNode(this.text);this.res.appendChild(i),this.res.style.fontSize="calc(1.375rem + 3.525vw)"}if("S4"===e){this.prevStylex=this.res.style,this.res=document.createElement("button"),this.res.style.cssText=this.prevStylex.cssText;var o=document.createTextNode(this.text);this.res.appendChild(o),this.res.style.fontSize="calc(1.250rem + 2.75vw)"}if("S5"===e){this.prevStylex=this.res.style,this.res=document.createElement("button"),this.res.style.cssText=this.prevStylex.cssText;var s=document.createTextNode(this.text);this.res.appendChild(s),this.res.style.fontSize="calc(1.125rem + 1.975vw)"}return"S6"===e&&(this.res.style.fontSize="calc(1rem + 0.5vw)"),this}},{key:"setClass",value:function(e){return this.res.setAttribute("class",e),this}},{key:"color",value:function(e){return this.res.style.color=e,this}},{key:"background",value:function(e){return this.res.style.background=e,this}},{key:"width",value:function(e){return this.res.style.width=e,this}},{key:"borderRadius",value:function(e){return this.res.style.borderRadius=e,this}},{key:"padding",value:function(e,t,r,n){return e&&t&&r&&n?(this.res.style.paddingLeft=e,this.res.style.paddingTop=t,this.res.style.paddingRight=r,this.res.style.paddingBottom=n):this.res.style.padding=e,this}},{key:"margin",value:function(e,t,r,n){return e&&t&&r&&n?(this.res.style.marginLeft=e,this.res.style.marginTop=t,this.res.style.marginRight=r,this.res.style.marginBottom=n):this.res.style.margin=e,this}},{key:"auto",value:function(){var e=this,t=function(){window.matchMedia("(max-device-width: 415px)").matches?e.res.style.fontSize="2.2rem":e.res.style.fontSize="1rem"};return t(),window.addEventListener("resize",t),this}},{key:"large",value:function(){var e=this,t=function(){window.matchMedia("(max-device-width: 415px)").matches?(alert("WOW"),e.res.style.fontSize="6rem"):e.res.style.fontSize="3rem"};return t(),window.addEventListener("resize",t),this}},{key:"border",value:function(e,t){return"none"===e&&(this.res.style.border="none"),this.res.style.border="".concat(e," solid ").concat(t,"px"),this}},{key:"frame",value:function(e){return this.res.style.width=e.width,this.res.style.height=e.height,this}},{key:"updating",value:function(e,t){var r=this.res,n=this.text;return Object.defineProperty(e,t,{set:function(e){var t=document.createTextNode(n.replace("$",e));r.replaceChild(t,r.childNodes[0])}}),this}},{key:"onTap",value:function(e){return this.res.addEventListener("click",e),this}},{key:"toCode",value:function(){var e=JSON.stringify(this.options,(function(e,t){return"function"==typeof t?t.toString():t}),4).replace(/"(\w+)":/g,"$1:").replace(/"(\(\)\s*=>\s*{[^}]*})"/g,"$1").replace(/\\n/g,"").replace(/\\"/g,'"');return['new Button("'.concat(this.text,'").set(').concat(e,")")]}},{key:"render",value:function(e){if(!e)return this.res;document.querySelector(e).appendChild(this.res)}}],o&&i(r.prototype,o),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,o}(r(762).y)},216:(e,t,r)=>{function n(e,t){return n=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},n(e,t)}function i(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(i=function(){return!!e})()}function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}function s(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,a(n.key),n)}}function a(e){var t=function(e){if("object"!=o(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=o(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==o(t)?t:t+""}r.d(t,{T:()=>l});var l=function(){return e=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.res=null,this.currentItem=""},t=[{key:"set",value:function(e){var t=this,r=e;this.options=e;var n=document.createElement("input");n.setAttribute("list","dlCities"),n.setAttribute("id","my");var i=e.data,o=0,s=i.length,a=document.createElement("datalist");for(a.id="dlCities",o=0;o<s;o+=1){var l=document.createElement("option");l.value=i[o],a.appendChild(l)}return n.appendChild(a),n.addEventListener("change",(function(){var e=document.querySelector("#my").value;console.log(e),t.currentItem=e})),n.setAttribute("placeholder","Type value"),n.style.padding=".4rem .75rem",n.style.fontSize="1rem",this.res=n,this.responsive(),r.arrayPadding&&this.arrayPadding(r.arrayPadding.sides,r.arrayPadding.value),r.arrayMargin&&this.arrayMargin(r.arrayMargin.sides,r.arrayMargin.value),r.pad&&this.pad(r.pad),r.mar&&this.mar(r.mar),this}},{key:"toCode",value:function(){var e=JSON.stringify(this.options,null,4);return["new DataList().set(".concat(e,")")]}},{key:"getValue",value:function(){return this.res.value}},{key:"arrayPadding",value:function(e,t){return console.log(e),e.includes("left")&&(this.res.style.paddingLeft=t),e.includes("right")&&(this.res.style.paddingRight=t),e.includes("top")&&(this.res.style.paddingTop=t),e.includes("bottom")&&(this.res.style.paddingBottom=t),e.includes("all")&&(this.res.style.padding=t),this}},{key:"arrayMargin",value:function(e,t){return console.log(e),e.includes("left")&&(this.res.style.marginLeft=t),e.includes("right")&&(this.res.style.marginRight=t),e.includes("top")&&(this.res.style.marginTop=t),e.includes("bottom")&&(this.res.style.marginBottom=t),e.includes("all")&&(this.res.style.margin=t),this}},{key:"margin",value:function(e){return this.res.style.margin=e,this}},{key:"responsive",value:function(){return window.matchMedia("(max-device-width: 415px)").matches&&(this.res.style.width="100%"),this}},{key:"render",value:function(e){if(!e)return this.res;document.querySelector(e).appendChild(this.res)}}],t&&s(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}(),c=l;l=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(e,t,r){if(i())return Reflect.construct.apply(null,arguments);var o=[null];o.push.apply(o,t);var s=new(e.bind.apply(e,o));return r&&n(s,r.prototype),s}(c,t)},window.DataList=l},219:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function i(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,o(n.key),n)}}function o(e){var t=function(e){if("object"!=n(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=n(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==n(t)?t:t+""}function s(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(s=function(){return!!e})()}function a(e,t,r,n){var i=l(c(1&n?e.prototype:e),t,r);return 2&n&&"function"==typeof i?function(e){return i.apply(r,e)}:i}function l(){return l="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,r){var n=function(e,t){for(;!{}.hasOwnProperty.call(e,t)&&null!==(e=c(e)););return e}(e,t);if(n){var i=Object.getOwnPropertyDescriptor(n,t);return i.get?i.get.call(arguments.length<3?e:r):i.value}},l.apply(null,arguments)}function c(e){return c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},c(e)}function u(e,t){return u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},u(e,t)}r.d(t,{N:()=>d});var d=function(e){function t(e,r,i){var o;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(o=function(e,t,r){return t=c(t),function(e,t){if(t&&("object"==n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,s()?Reflect.construct(t,r||[],c(e).constructor):t.apply(e,r))}(this,t)).link=r,o.text=e,o.code=[],o.css=[],o.elCSS=[],o.html=[],o.res=null,o.stopEM=i,o.setup(),o.inlineBlock(),o}return function(e,t){if("function"!=typeof t&&null!==t)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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&u(e,t)}(t,e),r=t,(o=[{key:"toCSS",value:function(){return this.css}},{key:"toHTMLA",value:function(){return this.html}},{key:"toElCSS",value:function(){return this.preffersId?this.elCSS.unshift(this.res.id+" { \n"):this.elCSS.unshift("."+this.class+" { \n"),this.elCSS.push(" } \n \n"),this.elCSS}},{key:"getType",value:function(){return"HTMLAnchorElement"}},{key:"toCode",value:function(){return this.code}},{key:"setArea",value:function(e){return this.res.style.gridArea=e,this}},{key:"setup",value:function(){var e=document.createElement("a");e.setAttribute("href",this.link),e.style.textDecoration="none",e.style.color="black",e.style.textAlign="center",e.style.fontFamily="Arial";var t=document.createTextNode(this.text);return e.appendChild(t),this.res=e,!1===this.stopEM&&this.em(1),this}},{key:"appendImageAsChild",value:function(e,t){var r=document.createElement("a");e.options.vtn&&(r.style.viewTransitionName=e.options.vtn),r.setAttribute("href",e.options.url);var n=document.createElement("img");return e.options&&(n.style.width=e.options.size,e.options.radius&&(n.style.borderRadius=e.options.radius),n.setAttribute("src",e.options.img),r.appendChild(n)),this.res=r,t&&(this.res.style.marginLeft=t),this}},{key:"addIcon",value:function(e){var t=document.createElement("img");return t.style.width="20px",t.style.height="auto",t.style.marginLeft=e.padding?e.padding:"10px",t.setAttribute("src",e.url),this.res.appendChild(t),this}},{key:"removeQuotesFromFirstWord",value:function(e){if(e)return e.replace(/"([^"]+)":/g,"$1:")}},{key:"set",value:function(e){this.elCSS.push("text-decoration: none; \n"),this.options=e;var r="";e.id&&this.res.setAttribute("id",e.id),e.id&&a(t,"setID",this,3)([e.id]),e.pad&&this.pad(e.pad);var n=this.removeQuotesFromFirstWord(JSON.stringify(e.pad));if(e.pad&&(r+="\n pad: ".concat(n,",")),e.preffersId&&(this.preffersId=e.preffersId),null!=e.preffersId&&(r+="\n preffersId: ".concat(e.preffersId,",")),e.class&&a(t,"setClass",this,3)([e.class]),e.class&&(r+='\n class: "'.concat(e.class,'",')),e.borderObj){this.res.style.border="".concat(e.borderObj.width," solid ").concat(e.borderObj.color),this.res.style.borderRadius="".concat(e.borderObj.radius);var i=this.removeQuotesFromFirstWord(JSON.stringify(e.borderObj));r+="\n borderObj: ".concat(i,",")}if(!1===this.options.preffersId?this.html.push('<a class="'.concat(e.class,'" href="#hello">').concat(e.text,"</a> \n \n")):e.id&&this.html.push('<a id="'.concat(e.id.substr(1),'" href="#hello">').concat(e.text,"</a> \n \n")),null!=e.blastData){var o=this.removeQuotesFromFirstWord(JSON.stringify(e.blastData));a(t,"setAny",this,3)([{globalBlast:"1px ".concat(e.blastData.color)}]),e.blastData&&(r+="\n blastData: ".concat(o,","))}e.nowrap&&(this.res.style.whiteSpace="nowrap"),e.font&&this.font(e.font),e.font&&(r+='\n font: "'.concat(e.font,'",')),e.font&&this.elCSS.push('font-family: "'.concat(e.font,'"; \n')),e.fluidc&&this.fluidCopy(e.fluidc),e.fluidc&&(r+='\n fluidc: "'.concat(e.fluidc,'",')),e.size&&this.fluidCopy(e.size),e.size&&(r+='\n size: "'.concat(e.size,'",')),"S6"===e.fluidc?e.fluidc&&this.elCSS.push("font-size: calc(1rem + 1.075vw); \n"):e.fluidc&&this.elCSS.push("font-size: calc(1.625rem + 5.075vw); \n"),e.clampc&&this.clampCopy(e.clampc),this.options.id&&(r+='\n id: "'.concat(this.options.id,'",')),e.align&&this.leftAlign(),e.align&&(r+='\n align: "'.concat(e.align,'",')),e.type&&(this.res.style.display="block"),e.color&&this.color(e.color),e.color&&(r+='\n color: "'.concat(e.color,'",')),e.color&&this.elCSS.push('color: "'.concat(e.color,'"; \n')),e.background&&this.background(e.background);var s=this.removeQuotesFromFirstWord(JSON.stringify(e.background));e.background&&(r+="\n background: ".concat(s,",")),e.hover&&this.hover(e.hover);var l=this.removeQuotesFromFirstWord(JSON.stringify(e.hover));if(e.hover&&(r+="\n hover: ".concat(l,",")),e.weight&&(this.res.style.fontWeight=e.weight),e.blast&&(this.blastData=e.blast),e.bold&&(this.res.style.fontWeight="bold"),e.bold&&(r+="\n bold: ".concat(e.bold,",")),e.block&&this.toBlock(),e.block&&(r+="\n block: ".concat(e.block,",")),e.radius&&this.radius(e.radius),e.radius&&(r+='\n radius: "'.concat(e.radius,'",')),e.width&&this.width(e.width),e.width&&(r+='\n width: "'.concat(e.width,'",')),e.arrayPadding){var c=e.arrayPadding.sides.map((function(e){return'"'.concat(e,'"')})).join(", ");e.arrayPadding&&this.arrayPadding(e.arrayPadding.sides,e.arrayPadding.value),e.arrayPadding&&(r+="\n arrayPadding: {sides: [".concat(c,'], value: "').concat(e.arrayPadding.value,'"},'))}if(e.arrayMargin&&this.arrayMargin(e.arrayMargin.sides,e.arrayMargin.value),e.arrayMargin&&(r+="\n arrayMargin: {sides: [".concat(e.arrayMargin.sides.map((function(e){return'"'.concat(e,'", ')})),'], value: "').concat(e.arrayMargin.value,'"},')),e.maxWidth&&this.maxWidth(e.maxWidth),e.url&&this.res.setAttribute("href",e.url),r+='\n url: "'.concat(e.url,'",'),e.text&&(this.res.textContent=e.text),r+='\n text: "'.concat(e.text,'",'),e.data){e.data&&this.appendImageAsChild(e.data,"20px");var u=this.removeQuotesFromFirstWord(JSON.stringify(e.data));e.data&&(r+="\n data: ".concat(u))}if(e.icon){this.addIcon(e.icon);var d=this.removeQuotesFromFirstWord(JSON.stringify(e.icon));r+="\n icon: ".concat(d,",")}if(e.shadow){var h=e.shadow,p=this.removeQuotesFromFirstWord(JSON.stringify(h));r+="\n shadow: ".concat(p,",")}if(e.stroke){var y=this.removeQuotesFromFirstWord(JSON.stringify(e.stroke));e.stroke&&(r+="\n stroke: ".concat(y,","))}if(e.backgroundOp){var f=this.removeQuotesFromFirstWord(JSON.stringify(e.backgroundOp));r+="\n backgroundOp: ".concat(f,",")}if(e.marginOp){var m=this.removeQuotesFromFirstWord(JSON.stringify(e.marginOp));r+="\n marginOp: ".concat(m,",")}if(e.gradient){var v=this.removeQuotesFromFirstWord(JSON.stringify(e.gradient));r+="\n gradient: ".concat(v,",")}if(e.animation){var b=this.removeQuotesFromFirstWord(JSON.stringify(e.animation));r+="\n animation: ".concat(b,",")}if(e.transform){var g=this.removeQuotesFromFirstWord(JSON.stringify(e.transform));r+="\n transform: ".concat(g,",")}var w="new Link().set({".concat(r,"}) \n");this.code.push(w),e.color&&this.color(e.color),e.rounded&&this.round(),e.transform&&e.transform.transform?this.reactOnTransform(e.transform):this.reactOnTransform(e);var _=[],k=[e.border,e.gradient,e.animation,e.span,e.shadow,e.backgroundOp,e.animation];if((k=k.filter((function(e){return null!=e}))).length>0){for(var x=0;x<k.length;x++)_.push({range:k[x].range,log:k[x].op.name,target:k[x].target,op:k[x].op});var S=[];e.borderObj&&S.push("border"),e.background&&S.push("background"),e.mar&&S.push("margin"),e.animation&&S.push("animation"),this.chainReact(_,e.id,S,e.isNavA),this.res.style.zIndex=1}return e.mar&&this.mar(e.mar),this}},{key:"color",value:function(e){return this.res.style.color=e,this}},{key:"maxWidth",value:function(e){return this.res.style.maxWidth=e,this}},{key:"background",value:function(e){return this.res.style.backgroundColor=e,this}},{key:"leftAlign",value:function(){return this.res.style.textAlign="left",this}},{key:"arrayPadding",value:function(e,t){return t||(this.res.style.marginLeft="".concat(e[0],"px"),this.res.style.marginTop="".concat(e[1],"px"),this.res.style.marginRight="".concat(e[2],"px"),this.res.style.marginBottom="".concat(e[3],"px")),"all"===e[0]&&(this.res.style.paddingLeft=t,this.res.style.paddingTop=t,this.res.style.paddingRight=t,this.res.style.paddingBottom=t),e.includes("left")&&(this.res.style.paddingLeft=t),e.includes("right")&&(this.res.style.paddingRight=t),e.includes("top")&&(this.res.style.paddingTop=t),e.includes("bottom")&&(this.res.style.paddingBottom=t),t||(this.res.style.paddingBottom=e),this}},{key:"arrayMargin",value:function(e,t){return e.includes("left")&&(this.res.style.marginLeft=t),e.includes("right")&&(this.res.style.marginRight=t),e.includes("top")&&(this.res.style.marginTop=t),e.includes("bottom")&&(this.res.style.marginBottom=t),e.includes("all")&&(this.res.style.margin=t),t||(this.res.style.marginBottom=e),this}},{key:"getClampValue",value:function(e){return"S6"===e?"clamp(2.25rem, 2vw+1.5rem, 3.25rem)":"S5"===e?"clamp(2.75rem, 2vw + 1.5rem, 3.25rem)":"S4"===e?"clamp(3.5rem, 2vw + 1.5rem, 3.25rem)":"S3"===e?"clamp(4.25rem, 2vw + 1.5rem, 3.25rem)":"S2"===e?"clamp(5rem, 2vw + 1.5rem, 3.25rem)":"S1"===e?"clamp(6rem, 2vw + 1.5rem, 3.25rem)":void 0}},{key:"clampCopy",value:function(e){return this.res.style.fontSize=this.getClampValue(e),this}},{key:"fluidCopy",value:function(e){return"S1"===e&&(this.res.style.fontSize="calc(1.625rem + 5.075vw)"),"S2"===e&&(this.res.style.fontSize="calc(1.500rem + 4.3vw)"),"S3"===e&&(this.res.style.fontSize="calc(1.375rem + 3.525vw)"),"S4"===e&&(this.res.style.fontSize="calc(1.250rem + 2.75vw)"),"S5"===e&&(this.res.style.fontSize="calc(1.125rem + 1.975vw)"),"S6"===e&&(this.res.style.fontSize="calc(1rem + 0.5vw)"),this}},{key:"inlineBlock",value:function(){return this.res.style.display="inline-block",this}},{key:"toBlock",value:function(){return this.res.style.display="block",this}},{key:"myself",value:function(e){var t=this,r=function(){window.matchMedia("(max-device-width: 415px)").matches?t.res.style.fontSize=e.desktop:t.res.style.fontSize=e.phone};return r(),window.addEventListener("resize",r),this}},{key:"style",value:function(e){return this.res.style.color=e.styles.color,this.res.style.fontWeight=e.styles.fontWeight,this.res.style.paddingLeft=e.styles.padding[0],this.res.style.paddingTop=e.styles.padding[1],this.res.style.paddingRight=e.styles.padding[2],this.res.style.paddingBottom=e.styles.padding[3],this}},{key:"round",value:function(){return this.res.style.borderRadius="0.5rem",this.options.rounded&&(this.res.children[0].style.borderRadius="0.5rem"),this}},{key:"newWindow",value:function(){return this.res.target="_new",this}},{key:"radius",value:function(e){return this.res.style.borderRadius="".concat(e),this}},{key:"transition",value:function(e){return this.res.style.transition="".concat(e,"s ease-in-out"),this.res.style.transionProperty="background, color",this}},{key:"width",value:function(e){return this.res.style.width=e,this}},{key:"italic",value:function(){return this.res.style.fontStyle="italic",this}},{key:"padding",value:function(e,t,r,n){return e&&t&&r&&n?(this.res.style.paddingLeft=e,this.res.style.paddingTop=t,this.res.style.paddingRight=r,this.res.style.paddingBottom=n):this.res.style.padding=e,this}},{key:"medium",value:function(){var e=this,t=function(){window.matchMedia("(max-device-width: 415px)").matches?e.res.style.fontSize="2rem":e.res.style.fontSize="1.5em"};return t(),window.addEventListener("resize",t),this}},{key:"opacity",value:function(e){return this.res.style.opacity=e,this}},{key:"margin",value:function(e,t,r,n){return this.res.style.marginTop=e,this.res.style.marginLeft=t,this.res.style.marginRight=r,this.res.style.marginBottom=n,this}},{key:"hover",value:function(e){var t=this;if(e.border){var r=e.border.width;this.res.style.border=r?"".concat(r,"px solid transparent"):"1px solid transparent"}var n=this.options.borderObj;return n&&(this.res.style.border="".concat(n.width,"px solid ").concat(n.color)),this.prevColor=this.res.style.backgroundColor,this.foreColor=this.res.style.color,this.prevBorder=this.res.style.border,e.animation&&(this.res.style.transition="".concat(e.animation),this.res.style.transionProperty="background, color"),this.res.onmouseout=function(){t.res.style.backgroundColor="".concat(t.prevColor),t.res.style.color="".concat(t.foreColor),t.res.style.border=t.prevBorder},this.res.onmouseover=function(){if(t.res.style.color=e.color,t.res.style.backgroundColor=e.background,e.border){var r,n=e.border.width,i=null!==(r=e.border.color)&&void 0!==r?r:"#2ECC71";t.res.style.border=n?"".concat(n,"px solid ").concat(i):"1px solid #2ECC71"}},this}},{key:"em",value:function(e){var t=this,r=window.matchMedia("(max-device-width: 415px)"),n=function(){r.matches?t.res.style.fontSize="2em":t.res.style.fontSize="1em"};return n(),window.addEventListener("resize",n),this}},{key:"font",value:function(e){return this.res.style.fontFamily=e,this}},{key:"render",value:function(e){return e?(document.querySelector(e).appendChild(this.res),this):this.res}}])&&i(r.prototype,o),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,o}(r(762).y)},304:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function i(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return o(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?o(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,a=!0,l=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){l=!0,s=e},f:function(){try{a||null==r.return||r.return()}finally{if(l)throw s}}}}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function s(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,a(n.key),n)}}function a(e){var t=function(e){if("object"!=n(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=n(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==n(t)?t:t+""}function l(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(l=function(){return!!e})()}function c(){return c="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,r){var n=function(e,t){for(;!{}.hasOwnProperty.call(e,t)&&null!==(e=u(e)););return e}(e,t);if(n){var i=Object.getOwnPropertyDescriptor(n,t);return i.get?i.get.call(arguments.length<3?e:r):i.value}},c.apply(null,arguments)}function u(e){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},u(e)}function d(e,t){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},d(e,t)}r.d(t,{m:()=>h});var h=function(e){function t(e){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(r=function(e,t,r){return t=u(t),function(e,t){if(t&&("object"==n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,l()?Reflect.construct(t,r||[],u(e).constructor):t.apply(e,r))}(this,t)).res=null,r.setup(e),r.code=[],r.isLast=!1,r.code.push("\n new Wrapper() \n"),r}return function(e,t){if("function"!=typeof t&&null!==t)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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&d(e,t)}(t,e),r=t,o=[{key:"isLasta",value:function(){return this.isLast=!0,this}},{key:"toCode",value:function(){return this.code}},{key:"getType",value:function(){return"LayoutWrapperElement"}},{key:"setArea",value:function(e){return this.res.style.gridArea=e,this}},{key:"removeQuotesFromFirstWord",value:function(e){return e.replace(/"([^"]+)":/g,"$1:")}},{key:"clicked",value:function(e){return this.res.addEventListener("click",e),this}},{key:"gpos",value:function(e){return this.res.style.gridColumn=e.col,this.res.style.gridRow=e.row,this}},{key:"set",value:function(e){var r,n,o,s=".set({";if(e.pad&&this.pad(e.pad),e.arrpad&&(s+="pad: {sides: [".concat(e.arrpad.sides.map((function(e){return'"'.concat(e,'"')})).join(", "),'], value: "').concat(e.arrpad.value,'"}, ')),e.gpos&&this.gpos(e.gpos),e&&e.id&&e.stroke||e&&e.id&&e.gradient||e&&e.id&&e.span||e&&e.id&&e.layout){e.gradient,e.gradient&&(this.globalGradient=e.gradient.op.gradient),e.stroke&&(r=t,n=this,"function"==typeof(o=c(u(1&3?r.prototype:r),"setAny",n))?function(e){return o.apply(n,e)}:o)([{globalBlast:"".concat(e.stroke.op.width," ").concat(e.stroke.op.color)}]);var a=[e.stroke,e.gradient,e.animation,e.span,e.layout];a=a.filter((function(e){return null!=e}));for(var l=[],d=0;d<a.length;d++)l.push({range:a[d].range,log:a[d].op.name,target:a[d].target});this.res.setAttribute("id",e.id),this.betaReact(l,e.id)}if(e.socenter&&(this.res.style.display="flex",this.res.style.flexDirection="column",this.res.style.alignItems="center",e.socenter&&(s+="socenter: ".concat(e.socenter,","))),e.mboth&&(this.res.style.marginRight="auto")&&(this.res.style.marginLeft="auto"),e.mar&&this.mar(e.mar),e.sticky&&this.sticky(),e.transition&&(this.res.style.transition=e.transition),e.class&&this.res.setAttribute("class",e.class),e.ga&&(this.res.style.gridArea=e.ga),e.opacity&&(0==e.opacity&&(this.res.style.opacity=0),e.opacity&&(this.res.style.opacity=e.opacity)),e.maxHeight&&(this.res.style.maxHeight=e.maxHeight),e.id&&this.res.setAttribute("id",e.id),e.arrpad&&this.arrayPadding(e.arrpad.sides,e.arrpad.value),e.arrpad&&(s+="arrpad: {sides: [".concat(e.arrpad.sides.map((function(e){return'"'.concat(e,'"')})).join(", "),'], value: "').concat(e.arrpad.value,'"}, ')),e.arrayMargin&&this.arrayMargin(e.arrayMargin.sides,e.arrayMargin.value),e.arrayMargin&&(s+='\n arrayMargin: {sides: ["'.concat(e.arrayMargin.sides,'"], value: "').concat(e.arrayMargin.value,'"},')),e.center&&this.toCenter(e.center),e.center&&(s+='center: "'.concat(e.center,'",')),e.simpleCenter&&this.simpleCenter(),e.simpleCenter&&(s+='center: "'.concat(e.simpleCenter,'",')),e.filter&&(this.res.style.backdropFilter="blur(3px)"),e.radius&&this.corner(e.radius),e.radius&&(s+='\n radius: "'.concat(e.radius,'",')),e.border&&this.border(e.border),e.simpleBorder&&(this.res.style.border=e.simpleBorder),e.width&&this.width(e.width),e.width&&(s+='\n width: "'.concat(e.width,'",')),e.overflow&&(this.res.style.overflow="hidden"),e.overflow&&(s+='\n overflow: "'.concat(e.overflow,'",')),e.height&&this.heightNoAuto(e.height),e.height&&(s+='\n height: "'.concat(e.height,'",')),e.align&&this.flexAlign(e.align),e.align&&(s+='\n align: "'.concat(e.align,'",')),e.borderObj&&(this.res.style.borderRight="".concat(e.borderObj.width," solid ").concat(e.borderObj.color),this.res.style.borderRadius=e.borderObj.radius),e.borderObja&&(this.res.style.border="".concat(e.borderObja.width," solid ").concat(e.borderObja.color),this.res.style.borderRadius=e.borderObja.radius),e.font&&this.font(e.font),e.font&&(s+='font: "'.concat(e.font,'",')),e.maxWidth&&this.maxWidth(e.maxWidth),e.flexCenter&&this.flexc(e.flexCenter),e.multipad&&this.makeMultiPad(e.multipad),e.multimargin&&this.makeMultiMargin(e.multimargin),e.color&&this.color(e.color),e.background&&this.background(e.background),e.background&&(s+='background: "'.concat(e.background,'",')),e.weight&&this.weight(e.weight),e.paddings&&this.paddingo(e.paddings),e.area&&this.setArea(e.area),e.area&&(s+='area: "'.concat(e.area,'"')),e.column&&this.makeCol(),e.column&&(s+='\n column: "'.concat(e.column,'",')),e.alignIts&&(this.res.style.background="gray"),e.alignIts&&(this.res.style.alignItems="flex-start"),e.alignIts&&(this.res.style.justifyItems="flex-start"),e.customAlign&&(this.res.style.alignItems=e.customAlign),e.customJustify&&(this.res.style.justifyItems=e.customJustify),e.disp&&(this.res.style.display=e.disp),e.flexDir&&(this.res.style.flexDirection=e.flexDir),e.flexDir&&(this.res.style.display="flex"),e.flexDir&&(s+='\n flexDir: "'.concat(e.flexDir,'",')),e.zIndex&&(this.res.style.zIndex=e.zIndex),e.name&&(this.name=e.name),e.responsive&&this.rsp(e.responsive),e.stretch){e.stretch&&this.stretch(e.stretch);var h=this.removeQuotesFromFirstWord(JSON.stringify(e.stretch));s+="\n stretch: ".concat(h,",")}for(var p in e)if("margin"===p){var y=e[p];if(Array.isArray(y)&&y.length>0){var f,m=i(y);try{for(m.s();!(f=m.n()).done;){var v=f.value;v.hasOwnProperty("top")&&(this.res.style.marginTop=v.top),v.hasOwnProperty("right")&&(this.res.style.marginRight=v.right),v.hasOwnProperty("bottom")&&(this.res.style.marginBottom=v.bottom),v.hasOwnProperty("left")&&(this.res.style.marginLeft=v.left)}}catch(e){m.e(e)}finally{m.f()}}}return 8===(s+="})\n").length&&(s=""),this.code.push(s),this}},{key:"rsp",value:function(e){var t=this;this.res.style.display="flex";var r=e.sequence.split("-"),n=function(){var n=e.ranges;"0px"!==n[0]&&n.unshift("0px");for(var i=0;i<n.length-1;i++)(window.matchMedia("(min-width: ".concat(n[i],") and (max-width: ").concat(n[i+1],")")).matches||window.matchMedia("(min-width: ".concat(n[n.length-1],")")).matches)&&("row"===r[i]&&(t.res.style.flexDirection="row",t.res.style.border="3px solid green"),"col"===r[i]&&(t.res.style.flexDirection="column",t.res.style.border="3px solid purple"));return t};window.addEventListener("resize",n),n()}},{key:"sticky",value:function(){return this.res.style.position="sticky",this.res.style.top=0,this}},{key:"toSticky",value:function(){return this.res.style.position="sticky",this.res.style.top="0",this}},{key:"stretch",value:function(e){var t=this,r=function(){window.matchMedia("(max-width: ".concat(e.at,")")).matches?t.res.style.width="auto":window.matchMedia("(max-device-width: 415px)").matches?t.res.style.width="100%":t.res.style.width=e.backTo};r(),window.addEventListener("resize",r)}},{key:"makeCol",value:function(){return this.res.style.display="flex",this.res.style.flexDirection="column",this.res.style.alignItems="flex-start",this}},{key:"paddingo",value:function(e){return this.res.style.padding=e,this}},{key:"toCenter",value:function(e){return this.res.style.display="flex",this.res.style.flexDirection="column",this.res.style.justifyContent="center","both"===e&&(this.res.style.alignItems="center"),this}},{key:"simpleCenter",value:function(){return this.res.style.justifyContent="center",this.res.style.justifyItems="center",this.res.style.alignContent="center",this.res.style.alignItems="center",this}},{key:"color",value:function(e){return this.res.style.color=e,this}},{key:"weight",value:function(e){return this.res.style.fontWeight=e,this}},{key:"makeMultiPad",value:function(e){for(var t=0;t<e.length;t++)"left"===e[t].side&&(this.res.style.paddingLeft=e[t].value),"right"===e[t].side&&(this.res.style.paddingRight=e[t].value);return this}},{key:"makeMultiMargin",value:function(e){this.res.style.zIndex="1";for(var t=0;t<e.length;t++)"left"===e[t].side&&(this.res.style.marginLeft=e[t].value),"right"===e[t].side&&(this.res.style.marginRight=e[t].value),"top"===e[t].side&&(this.res.style.marginTop=e[t].value),"bottom"===e[t].side&&(this.res.style.marginBottom=e[t].value);return this}},{key:"flexc",value:function(e){return this.res.style.display="flex",this.res.style.flexDirection="column",this.res.style.justifyContent="center",this}},{key:"maxWidth",value:function(e){return this.res.style.maxWidth=e,this}},{key:"font",value:function(e){return this.res.style.fontFamily=e,this}},{key:"flexAlign",value:function(e){return this.res.style.display="flex",this.res.style.justifyContent="flex-start",this.res.style.alignItems="flex-start","center"===e?(this.res.style.display="flex",this.res.style.flexDirection="column",this.res.style.alignItems="center",this):this}},{key:"width",value:function(e){return this.res.style.width=e,this}},{key:"heightNoAuto",value:function(e){return this.res.style.height=e,this}},{key:"border",value:function(e){return this.res.style.borderRadius="".concat(e.radius,"px"),this.res.style.padding="0.25em",this.res.style.border="".concat(e.width,"px solid ").concat(e.color),this}},{key:"toCol",value:function(){return this.res.style.display="flex",this.res.style.flexDirection="column",this.res.style.justifyContent="center",this.res.style.alignItems="center",this}},{key:"add",value:function(e){this.items=e,this.code.push(".add([ \n");var t=e.map((function(t,r){return t.toCode().flatMap((function(e){return e})).join("")+(r<e.length-1?",":"")})).join("");this.code.push(t);for(var r=0;r<e.length;r++)if(void 0!==e[r]&&void 0!==e[r].toCode){var n=e[r].render();this.res.appendChild(n)}return this.code.push("])"),this}},{key:"arrayPadding",value:function(e,t){return e.includes("left")&&(this.res.style.paddingLeft=t),e.includes("right")&&(this.res.style.paddingRight=t),e.includes("top")&&(this.res.style.paddingTop=t),e.includes("bottom")&&(this.res.style.paddingBottom=t),this}},{key:"arrayMargin",value:function(e,t){return t||(this.res.style.marginLeft="".concat(e[0],"px"),this.res.style.marginTop="".concat(e[1],"px"),this.res.style.marginRight="".concat(e[2],"px"),this.res.style.marginBottom="".concat(e[3],"px")),e.includes("left")&&(this.res.style.marginLeft=t),e.includes("right")&&(this.res.style.marginRight=t),e.includes("top")&&(this.res.style.marginTop=t),e.includes("bottom")&&(this.res.style.marginBottom=t),this}},{key:"setWidth",value:function(e){this.res.style.width="100vw"}},{key:"setHeight",value:function(e){return this.res.style.height="".concat(e),this}},{key:"setup",value:function(e){var t=e?document.createElement(e.isLink?"a":"div"):document.createElement("div");return e&&e.isLink&&(t.style.textDecoration="none",t.setAttribute("href",e.child)),this.res=t,this.res.style.margin=0,this.res.style.padding=0,e&&!0===e.hideOverflow&&(this.res.style.overflow="hidden",this.res.style.overflowY="scroll"),e&&!0===e.center&&(this.res.style.display="flex",this.res.style.flexDirection="column",this.res.style.justifyContent="center",this.res.style.alignItems="center"),e&&"left"===e.align&&(this.res.style.alignItems="flex-start"),e&&"right"===e.align&&(this.res.style.alignItems="flex-end"),e&&e.height&&(this.res.style.height=e.height),e&&e.width&&(this.res.style.width=e.width,this.res.style.marginLeft="auto",this.res.style.marginRight="auto",window.matchMedia("(max-device-width: 415px)").matches&&(this.res.style.width="95%")),this}},{key:"height",value:function(e){return this.res.style.width="auto",this.res.style.height="".concat(e),this}},{key:"size",value:function(e,t){return this.w=e,this.h=t,this.w?this.res.style.width=this.w:this.res.style.width=window.innerWidth,this.h?this.res.style.height=this.h:this.res.style.height=window.innerHeight,this}},{key:"background",value:function(e){return this.res.style.background=e,this}},{key:"corner",value:function(e){return this.res.style.borderRadius=e,this}},{key:"padding",value:function(e,t,r,n){return this.res.style.paddingLeft=e,this.res.style.paddingTop=t,this.res.style.paddingRight=r,this.res.style.paddingBottom=n,this}},{key:"margin",value:function(e,t,r,n){return this.res.style.marginLeft=e,this.res.style.marginTop=t,this.res.style.marginRight=r,this.res.style.marginBottom=n,this}},{key:"itemWidth",value:function(e){for(var t=0;t<this.res.childNodes.length;t++)this.res.childNodes[t].style.width=e;return this}},{key:"apply",value:function(e){var t=this,r=function(){for(var r=0;r<e.length;r++){var n=e[r],i=window.matchMedia("(max-width: ".concat(n.width,"px)"));n.device&&(i=window.matchMedia("(max-device-width: ".concat(n.width,"px)")),alert(n.device)),i.matches&&Object.assign(t.res.style,n.styles)}},n=window.matchMedia("(max-width: ".concat(e[0].width,"px)"));return e[0].device&&(n=window.matchMedia("(max-device-width: ".concat(e[0].width,"px)"))),n.matches||Object.assign(this.res.style,e[0].styles),r(),window.addEventListener("resize",r),this}},{key:"mount",value:function(e){document.querySelector(e).appendChild(this.res)}},{key:"render",value:function(e){return e?(document.querySelector("#mount"),document.querySelector(e).appendChild(this.res),this):this.res}}],o&&s(r.prototype,o),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,o}(r(762).y)},317:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,s(n.key),n)}}function s(e){var t=function(e){if("object"!=n(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=n(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==n(t)?t:t+""}function a(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(a=function(){return!!e})()}function l(e){return l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},l(e)}function c(e,t){return c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},c(e,t)}r.d(t,{b:()=>u});var u=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=function(e,t,r){return t=l(t),function(e,t){if(t&&("object"==n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,a()?Reflect.construct(t,r||[],l(e).constructor):t.apply(e,r))}(this,t)).res=document.createElement("div"),e.res.style.display="grid",e.attributes={},e}return function(e,t){if("function"!=typeof t&&null!==t)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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&c(e,t)}(t,e),r=t,s=[{key:"set",value:function(e){return this.options=e,this.attributes=e,this.templateCols=e.templateCols,e.templateCols&&(this.res.style.gridTemplateColumns="repeat(".concat(e.templateCols.cols,", 1fr)"),this.res.style.gridTemplateRows="repeat(".concat(e.templateCols.cols,", 1fr)")),this.res.style.height=e.height?e.height:"600px",e.positions&&(this.storedPositions=e.positions),this}},{key:"generateGridPositions",value:function(e){var t=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:30,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:50,i=document.createElement("div");i.classList.add("container"),i.style.display="grid",i.style.gridTemplateColumns="repeat(".concat(n,", 1fr)"),i.style.gridTemplateRows="repeat(".concat(r,", 1fr)"),i.style.width="100%",i.style.height="100vh";var o=e.map((function(e,t){return{row:Math.floor(r/2)+t,col:Math.floor(n/2)+t}}));return e.forEach((function(i,s){var a=o[s],l=a.row,c=a.col,u=function(t){var r=0,n=0;return e.forEach((function(e,i){var s=e.weight,a=e.direction,l=o[t],c=o[i],u=l.col-c.col,d=l.row-c.row,h=s*(1/(Math.sqrt(u*u+d*d)+1));switch(a){case"L":r-=h;break;case"R":r+=h;break;case"U":n-=h;break;case"B":n+=h}})),{forceX:r,forceY:n}}(s),d=u.forceX,h=u.forceY;c=Math.max(1,Math.min(n,c+Math.round(d))),l=Math.max(1,Math.min(r,l+Math.round(h))),console.log(t.items.map((function(e){return e.id}))),console.log(i.attract.slice(1));var p=t.items.filter((function(e){return e.id===i.attract.slice(1)}))[0].render();console.log(p),p.style.gridRowStart=l,p.style.gridRowEnd=l+3,p.style.gridColumnStart=c,p.style.gridColumnEnd=c+5,p.style.border="3px solid #".concat(Math.floor(16777215*Math.random()).toString(16).padStart(6,"0")),p.style.display="flex",p.style.alignItems="center",p.style.justifyContent="center",p.style.fontWeight="bold",p.style.color="white",t.res.appendChild(p)})),console.log("ARAO"),console.log(this.res.children.length),this}},{key:"add",value:function(e){this.items=e;var t,r=function(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return i(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?i(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,a=!0,l=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){l=!0,s=e},f:function(){try{a||null==r.return||r.return()}finally{if(l)throw s}}}}(e);try{for(r.s();!(t=r.n()).done;){var n=t.value;this.res.appendChild(n.render())}}catch(e){r.e(e)}finally{r.f()}return this.storedPositions&&this.generateGridPositions(this.storedPositions),console.log("MORAA"),console.log(this.res.children.length),this}},{key:"toCode",value:function(){if(this.excludeFromCodeTrue)return[""];var e=JSON.stringify(this.options,null,4).replace(/"([^"]+)":/g,"$1:"),t="";return t+=".add([\n",t+=this.items.map((function(e){return e.toCode().join("").trim()})).join(",\n"),t+="\n])",["new Free().set(".concat(e,")").concat(t)]}},{key:"render",value:function(e){if(console.log("CHILDREN IN RENDER"),console.log(this.res.children.length),!e)return this.res;document.querySelector(e).appendChild(this.res)}}],s&&o(r.prototype,s),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,s}(r(762).y)},342:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,s(n.key),n)}}function s(e){var t=function(e){if("object"!=n(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=n(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==n(t)?t:t+""}function a(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(a=function(){return!!e})()}function l(e){return l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},l(e)}function c(e,t){return c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},c(e,t)}r.d(t,{S:()=>u});var u=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=function(e,t,r){return t=l(t),function(e,t){if(t&&("object"==n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,a()?Reflect.construct(t,r||[],l(e).constructor):t.apply(e,r))}(this,t)).el=null,e}return function(e,t){if("function"!=typeof t&&null!==t)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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&c(e,t)}(t,e),r=t,(s=[{key:"set",value:function(e){var t,r;this.options=e;var n=document.createElement("div");n.style.display="flex",n.style.alignItems="center";var i=document.createElement("input");i.type="checkbox",i.style.position="relative",i.style.marginRight="0.5rem";var o=e.size||"24px";i.style.width=o,i.style.height=o,e.customStyle&&(i.style.appearance="none"),i.style.border="2px solid #ccc",i.style.borderRadius="4px",i.style.backgroundColor=e.backgroundColor||"white",i.style.cursor="pointer",i.style.transition="background-color 0.2s ease, border-color 0.2s ease",i.style.display="inline-block",i.style.setProperty("--checked-bg-color",e.checkedBackgroundColor||"#4CAF50"),i.style.setProperty("--checkmark-color","white"),i.style.setProperty("--checkmark-clip-path",null!==(t=this.options.clipPath)&&void 0!==t?t:"polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%)");var s=document.createElement("style");s.textContent='\n input[type="checkbox"] {\n appearance: none;\n -webkit-appearance: none; /* For Safari */\n width: var(--size, 24px);\n height: var(--size, 24px);\n border: 2px solid #ccc;\n border-radius: 4px;\n background-color: white;\n position: relative;\n cursor: pointer;\n transition: background-color 0.2s ease, border-color 0.2s ease;\n }\n\n input[type="checkbox"]:checked {\n background-color: var(--checked-bg-color, #4CAF50);\n border-color: var(--checked-bg-color, #4CAF50);\n }\n\n input[type="checkbox"]::after {\n content: \'\';\n position: absolute;\n width: 50%;\n height: 50%;\n top: 25%;\n left: 25%;\n transform: scale(0);\n background-color: var(--checkmark-color, white);\n clip-path: var(--checkmark-clip-path);\n -webkit-clip-path: var(--checkmark-clip-path);\n transition: transform 0.2s ease;\n }\n\n input[type="checkbox"]:checked::after {\n transform: scale(1);\n }\n',e.customStyle&&document.head.appendChild(s),e.mar&&this.mar(e.mar),e.pad&&this.pad(e.pad),e.respad&&this.respad(e.respad),e.resmar&&this.resmar(e.resmar),i.addEventListener("change",(function(){i.checked?(i.style.backgroundColor=e.checkedBackgroundColor||"#4CAF50",i.style.borderColor=e.checkedBackgroundColor||"#4CAF50"):(i.style.backgroundColor=e.backgroundColor||"white",i.style.borderColor="#ccc")})),e.name&&i.setAttribute("name",e.name),n.appendChild(i);var a=document.createElement("div");if("function"==typeof(null===(r=e.label)||void 0===r?void 0:r.render))a.appendChild(e.label.render());else{var l=document.createTextNode(e.title||"Label");a.appendChild(l)}return a.style.opacity=.8,a.style.transition="opacity ease 0.2s, transform ease 0.2s",n.appendChild(a),this.el=n,this}},{key:"getValue",value:function(){return this.el.children[0].checked}},{key:"toCode",value:function(){var e=Object.entries(this.options).map((function(e){var t=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o,s,a=[],l=!0,c=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=o.call(r)).done)&&(a.push(n.value),a.length!==t);l=!0);}catch(e){c=!0,i=e}finally{try{if(!l&&null!=r.return&&(s=r.return(),Object(s)!==s))return}finally{if(c)throw i}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return i(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?i(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(e,2),r=t[0],o=t[1];return"string"==typeof o?"".concat(r,': "').concat(o,'"'):"object"===n(o)&&null!==o?"function"==typeof o.toCode?"".concat(r,": ").concat(o.toCode()[0]):"".concat(r,": ").concat(JSON.stringify(o,null,4)):"".concat(r,": ").concat(o)})).join(",\n ");return["new Checkbox().set({\n ".concat(e,"\n})")]}},{key:"margin",value:function(e){return this.el.style.margin=e,this}},{key:"render",value:function(e){if(!e)return this.el;document.querySelector(e).appendChild(this.el)}}])&&o(r.prototype,s),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,s}(r(762).y);window.Checkbox=u},385:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function i(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,o(n.key),n)}}function o(e){var t=function(e){if("object"!=n(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=n(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==n(t)?t:t+""}r.d(t,{z:()=>s});var s=function(){return e=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.el=null,this.radioCount=0},t=[{key:"set",value:function(e){this.options=e,console.log("ORARA"),console.log(this.options),this.radioCount=e.items.length;for(var t=document.createElement("div"),r=e.items,n=0;n<r.length;n++){var i=document.createElement("label");r.font&&(i.style.font=r.font),r.color&&(i.style.color=r.color),r.exact&&(i.style.fontSize=r.exact);var o=document.createTextNode(r[n]);i.appendChild(o),i.setAttribute("for",r[n]);var s=document.createElement("input");s.setAttribute("type","radio"),s.setAttribute("id","S".concat(n)),s.setAttribute("value",r[n].split(" ").join("")),s.style.appearance="none",s.style.width="20px",s.style.height="20px",s.style.border=this.options.tint?"2px solid ".concat(this.options.tint):"2px solid #007BFF",s.style.borderRadius="50%",s.style.outline="none",s.style.cursor="pointer",s.style.transition="0.3s",this.options.font&&(i.style.fontFamily=this.options.font),e.multiple?s.setAttribute("name",r[n].split(" ").join("")):s.setAttribute("name",e.name),t.appendChild(s),t.appendChild(i),t.innerHTML+="</br>"}return this.el=t,this.responsive(),this}},{key:"padding",value:function(e){return this.el.style.padding=e,this}},{key:"getCheckedValues",value:function(){console.log("NOW");for(var e=[],t=0;t<this.radioCount;t++)if(document.querySelector("#S".concat(t)).checked){var r=document.querySelector("#S".concat(t));console.log("VALUE IS "+r.value),e.push(r.value)}return e}},{key:"toCode",value:function(){var e=JSON.stringify(this.options,null,4);return e=e.replace(/"(\w+)"(?=\s*:)/g,"$1"),["new RadioGroup().set(".concat(e,")")]}},{key:"responsive",value:function(){return window.matchMedia("(max-device-width: 415px)").matches&&(this.el.style.fontSize="1.7em"),this}},{key:"render",value:function(e){var t=this;if(!e){console.log("MULA");for(var r=function(){var e=t.el.children[n];"[object HTMLInputElement]"===e.toString()&&e.addEventListener("change",(function(){if(e.checked){e.style.backgroundColor=t.options.tint?t.options.tint:"#007BFF",e.style.boxShadow=t.options.tint?"0 0 0 2px ".concat(t.options.tint," inset"):"0 0 0 2px #0056b3 inset";for(var r=0;r<t.el.children.length;r++){var n=t.el.children[r];"INPUT"===n.tagName&&"radio"===n.type&&!1===t.options.multiple&&n!==e&&(n.style.backgroundColor="transparent",n.style.boxShadow="none")}}else e.style.backgroundColor="transparent",e.style.boxShadow="none"}))},n=0;n<this.el.children.length;n++)r();return this.el}document.querySelector(e).appendChild(this.el)}}],t&&i(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}();window.RadioGroup=s},418:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function i(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,o(n.key),n)}}function o(e){var t=function(e){if("object"!=n(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=n(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==n(t)?t:t+""}function s(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(s=function(){return!!e})()}function a(e){return a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},a(e)}function l(e,t){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},l(e,t)}r.d(t,{U:()=>c});var c=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t,r){return t=a(t),function(e,t){if(t&&("object"==n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,s()?Reflect.construct(t,r||[],a(e).constructor):t.apply(e,r))}(this,t)}return function(e,t){if("function"!=typeof t&&null!==t)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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&l(e,t)}(t,e),r=t,o=[{key:"set",value:function(e){return this.imageUrl=e.url,this.createCard(),e.useBrightness&&(this.useBrightness=!0),e.useBrightness&&"\n useBrightness: ".concat(this.useBrightness),e.pad&&this.pad(e.pad),e.mar&&this.mar(e.mar),e.arrayMargin&&this.arrayMargin(e.arrayMargin.sides,e.arrayMargin.value),e.arrayMargin&&"\n arrayMargin: {sides: [".concat(e.arrayMargin.sides.map((function(e){return'"'.concat(e,'", ')})),'], value: "').concat(e.arrayMargin.value,'"},'),e.inpad&&this.inpad(e.inpad),e.inpad&&"\n inpad: {".concat(e.inpad,"}"),e.font&&(this.res.style.fontFamily=e.font),e.inpad&&"\n font: ".concat(e.font),this.addListeners(),this}},{key:"inpad",value:function(e){return this.res.children[1].style.boxSizing="border-box",this.res.children[1].style.padding=e,this}},{key:"items",value:function(e){for(var t=0;t<e.length;t++)this.res.children[1].appendChild(e[t].render());return this}},{key:"createCard",value:function(){var e=document.createElement("div");e.style.display="grid",e.style.width="300px",e.style.height="400px",e.setAttribute("id","AAA");var t=document.createElement("div");t.style.gridArea="1/1",t.style.height="400px",t.style.borderRadius="15px",t.style.boxShadow="0 4px 8px 0 rgba(0,0,0,0.2)",t.style.overflow="hidden";var r=document.createElement("div");r.style.width="100%",r.style.height="100%",r.style.transition="0.9s",r.style.backgroundImage="url(".concat(this.imageUrl,")"),r.style.backgroundSize="cover",r.style.backgroundPostion="cover",r.style.backgroundRepeat="no-repeat",t.appendChild(r);var n=document.createElement("div");return n.style.gridArea="1/1",n.style.zIndex="1",e.appendChild(t),e.appendChild(n),this.res=e,this}},{key:"addListeners",value:function(){var e=this,t=this.res.children[0].children[0];return this.res.onmouseover=function(){t.style.transform="scale(1.3)",e.useBrightness&&(t.style.filter="brightness(31%)")},this.res.onmouseout=function(){t.style.transform="scale(1.0)",e.useBrightness&&(t.style.filter="brightness(100%)")},this}},{key:"render",value:function(e){if(!e)return this.res;this.options.id&&this.res.setAttribute("id",this.options.id),document.querySelector(e).appendChild(this.res)}}],o&&i(r.prototype,o),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,o}(r(762).y)},463:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function i(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,o(n.key),n)}}function o(e){var t=function(e){if("object"!=n(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=n(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==n(t)?t:t+""}r.d(t,{h:()=>s});var s=function(){return e=function e(t){if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.hide=t,t){var r=document.createElement("div");r.style.flex="1",this.res=r}return t&&this.res.setAttribute("class","innerHider"),this},(t=[{key:"toCode",value:function(){return["new Spacer(".concat(this.hide,")")]}},{key:"render",value:function(){var e,t=document.createElement("h2");return t.style.display="none !important",null!==(e=this.res)&&void 0!==e?e:t}}])&&i(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}()},468:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function i(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,o(n.key),n)}}function o(e){var t=function(e){if("object"!=n(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=n(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==n(t)?t:t+""}r.d(t,{M:()=>s});var s=function(){return e=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.code=[],this.setup()},(t=[{key:"toCode",value:function(){return this.code}},{key:"setup",value:function(){this.code.push("new FlexGrid()"),this.code.push(".setup()");var e=document.createElement("div");return e.style.display="flex",e.style.padding=0,e.style.margin=0,this.res=e,this}},{key:"set",value:function(e){return this.code.push(".set({"),e.width&&this.code.push('width: "'.concat(e.width,'",')),e.flex&&(this.res.style.flex=e.flex),e.flex&&this.code.push("flex: ".concat(e.flex,",")),e.maxWidth&&(this.res.style.maxWidth=e.maxWidth),e.maxWidth&&this.code.push('maxWidth: "'.concat(e.maxWidth,'",')),e.maxWidth&&(this.res.style.minWidth="400px"),e.maxWidth&&(this.res.style.marginLeft="auto"),e.maxWidth&&(this.res.style.marginRight="auto"),e.width&&(this.res.style.width="".concat(e.width)),e.wrap&&(this.res.style.flexWrap="wrap"),e.wrap&&this.code.push("wrap: ".concat(e.wrap,",")),e.align&&(this.res.style.justifyContent=e.align),e.align&&this.code.push("align: ".concat(e.align,",")),e.colat&&this.toColumnAt(e.colat),e.colat&&this.code.push('\n colat: "'.concat(e.colat,'",')),this.code.push("}),"),this}},{key:"toColumnAt",value:function(e){var t=this;if(!this.columnAlways){var r=function(){var r=window.matchMedia("(max-width: ".concat(e,")")),n=window.matchMedia("(max-device-width: 415px)");r.matches||n.matches?(t.res.style.flexDirection="column",t.res.style.alignItems="center"):t.res.style.flexDirection="row"};r(),window.addEventListener("resize",r)}}},{key:"flex",value:function(e){return this.arra=Array.from(e.replace(/\s/g,"")),this.areas=Array.from(Array(e.replace(/\s/g,"")).join("")),this.save='"'.concat(e,'"'),this}},{key:"padding",value:function(e){return this.res.style.padding="".concat(e,"px"),this}},{key:"center",value:function(){return this.res.style.marginLeft="auto",this.res.style.marginRight="auto",this}},{key:"items",value:function(e){this.items=e,this.code.push("\n .items([");for(var t=0;t<e.length;t++){var r=e[t];if(null!=r){var n=r.render();void 0!==r.toCode&&this.code.push(r.toCode().flatMap((function(e){return e}))),this.res.appendChild(n)}}return this.code.push("\n ])"),this}},{key:"width",value:function(e){return this.res.style.width=e,this}},{key:"border",value:function(e,t){return this.res.style.border="".concat(t,"px solid ").concat(e),this}},{key:"adjust",value:function(e){var t=this,r=function(){var r=window.matchMedia("(max-device-width: 415px)");if(window.innerWidth<e||r.matches)for(var n=0;n<t.res.children.length;n++)t.res.children[n].style.flex="",t.res.children[n].style.width="100%";else for(n=0;n<t.res.children.length;n++)t.res.children[n].style.flex="".concat(t.arra[n])};return r(),window.addEventListener("resize",r),this}},{key:"render",value:function(e){if(!e)return this.res;document.querySelector("body").style.margin=0,document.querySelector("body").style.padding=0,document.querySelector(e).appendChild(this.res)}}])&&i(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}()},522:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,s(n.key),n)}}function s(e){var t=function(e){if("object"!=n(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=n(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==n(t)?t:t+""}r.d(t,{l:()=>a});var a=function(){return e=function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"POST";!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.action=t,this.method=r,this.elements=[],this.formElement=document.createElement("form"),this.formElement.action=this.action,this.formElement.method=this.method},t=[{key:"add",value:function(e){var t=this;return this.elements=e,console.log("CODEA"),console.log(this.elements),console.log(this.elements.length),e.forEach((function(e){if(!e||"function"!=typeof e.render)throw new Error("Each element in the array must have a render method that returns an HTML DOM element.");t.formElement.appendChild(e.render())})),console.log(this.elements),this}},{key:"toCode",value:function(){var e=this.elements.map((function(e){return e.toCode()})),t=Object.entries(this.obj).map((function(e){var t=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o,s,a=[],l=!0,c=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=o.call(r)).done)&&(a.push(n.value),a.length!==t);l=!0);}catch(e){c=!0,i=e}finally{try{if(!l&&null!=r.return&&(s=r.return(),Object(s)!==s))return}finally{if(c)throw i}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return i(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?i(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(e,2),r=t[0],n=t[1],o="string"==typeof n?'"'.concat(n,'"'):n;return"".concat(r,": ").concat(o)})).join(", ");return console.log("FORM DQ"),console.log(e),["new Form().set({".concat(t,"}).add([ \n ").concat(e.join(", \n"),"])")]}},{key:"set",value:function(e){return this.obj=e,e.action&&this.setAction(e.action),e.method&&this.setMethod(e.method),this}},{key:"setAction",value:function(e){this.action=e,this.formElement.action=this.action}},{key:"setMethod",value:function(e){this.method=e,this.formElement.method=this.method}},{key:"render",value:function(e){return e&&document.querySelector(e).appendChild(this.formElement),this.formElement}}],t&&o(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}()},580:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function i(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,o(n.key),n)}}function o(e){var t=function(e){if("object"!=n(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=n(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==n(t)?t:t+""}r.d(t,{k:()=>s});var s=function(){return e=function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.res=null,this.value=t,this.setup()},t=[{key:"setup",value:function(){var e=document.createElement("div"),t=document.createElement("div"),r=document.createElement("div");return t.style.position="absolute",r.style.position="relative",e.appendChild(t),e.appendChild(r),this.res=e,this}},{key:"padding",value:function(e,t,r,n){return(e||t||r||n)&&(this.res.style.paddingLeft=e,this.res.style.paddingTop=t,this.res.style.paddingRight=r,this.res.style.paddingBottom=n),t||r||n||(this.res.style.padding=e),this}},{key:"arrayPadding",value:function(e,t){return e.includes("left")&&(this.res.style.paddingLeft=t),e.includes("right")&&(this.res.style.paddingRight=t),e.includes("top")&&(this.res.style.paddingTop=t),e.includes("bottom")&&(this.res.style.paddingBottom=t),this}},{key:"size",value:function(e){var t=this,r=e.width.split("%")[0],n=e.height;this.res.children[0].style.width=r/100*window.innerWidth,this.res.children[0].style.height=n,this.res.children[1].style.width=r/100*window.innerWidth*this.value,this.res.children[1].style.height=n;var i=function(){t.res.children[0].style.width=r/100*window.innerWidth,t.res.children[0].style.height=n,t.res.children[1].style.width=r/100*window.innerWidth*t.value,t.res.children[1].style.height=n};return window.addEventListener("resize",i),i(),this}},{key:"colors",value:function(e,t){return this.res.children[0].style.background=e,this.res.children[1].style.background=t,this}},{key:"round",value:function(e){return this.res.children[0].style.borderRadius="".concat(e,"px"),this.res.children[1].style.borderRadius="".concat(e,"px"),this}},{key:"render",value:function(e){if(Array.from(this.res.children).forEach((function(e){return e.style.padding=0})),Array.from(this.res.children).forEach((function(e){return e.style.margin=0})),!e)return this.res;document.querySelector(e).appendChild(this.res)}}],t&&i(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}()},588:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function i(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return o(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?o(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,a=!0,l=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){l=!0,s=e},f:function(){try{a||null==r.return||r.return()}finally{if(l)throw s}}}}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function s(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,a(n.key),n)}}function a(e){var t=function(e){if("object"!=n(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=n(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==n(t)?t:t+""}function l(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(l=function(){return!!e})()}function c(e){return c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},c(e)}function u(e,t){return u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},u(e,t)}r.d(t,{X:()=>d});var d=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=function(e,t,r){return t=c(t),function(e,t){if(t&&("object"==n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,l()?Reflect.construct(t,r||[],c(e).constructor):t.apply(e,r))}(this,t)).res=document.createElement("table"),e}return function(e,t){if("function"!=typeof t&&null!==t)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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&u(e,t)}(t,e),r=t,o=[{key:"add",value:function(e){this.data=e,this.datas=e;var t=Object.keys(e[0]);return this.generateTable(this.res,e),this.generateTableHead(this.res,t),this}},{key:"style",value:function(e){return this.res.style.fontFamily=e.font,this}},{key:"set",value:function(e){return e.cellPadding&&this.cellPadding(e.cellPadding),e.cellAlign&&this.cellAlign(e.cellAlign),e.style&&this.style(e.style),e.headStyle&&this.headStyle(e.headStyle),e.border&&this.border(e.border),e.center&&this.center(e.center),e.borderRadius&&this.borderRadius(e.borderRadius),this.obj=e,this}},{key:"toCode",value:function(){var e="new Table().add(".concat(JSON.stringify(this.data),").set(").concat(JSON.stringify(this.obj),")");return[e=(e=e.replace(/"(\w+)":/g,"$1:")).replace(/,/g,",\n")]}},{key:"center",value:function(){return this.res.style.marginLeft="auto",this.res.style.marginRight="auto",this}},{key:"borderRadius",value:function(e){this.res.style.borderCollapse="separate",this.res.style.borderSpacing=0,this.res.style.overflow="hidden";for(var t=this.res,r=Object.keys(this.datas[0]).length,n=this.datas.length+1,i=0;i<r;i++)t.rows[0].cells[i].style.borderTop="".concat(2*e,"px solid black"),t.rows[n-1].cells[i].style.borderBottom="".concat(2*e,"px solid black");for(var o=0;o<n;o++)t.rows[o].cells[0].style.borderLeft="".concat(2*e,"px solid black"),t.rows[o].cells[r-1].style.borderRight="".concat(2*e,"px solid black");return t.rows[0].cells[0].style.borderTopLeftRadius="10px",t.rows[0].cells[r-1].style.borderTopRightRadius="10px",t.rows[n-1].cells[0].style.borderBottomLeftRadius="10px",t.rows[n-1].cells[r-1].style.borderBottomRightRadius="10px",this}},{key:"cellPadding",value:function(e){var t,r=i(this.res.rows);try{for(r.s();!(t=r.n()).done;){var n,o=i(t.value.cells);try{for(o.s();!(n=o.n()).done;)n.value.style.padding=e}catch(e){o.e(e)}finally{o.f()}}}catch(e){r.e(e)}finally{r.f()}return this}},{key:"cellAlign",value:function(e){var t,r=i(this.res.rows);try{for(r.s();!(t=r.n()).done;){var n,o=i(t.value.cells);try{for(o.s();!(n=o.n()).done;)n.value.style.textAlign=e}catch(e){o.e(e)}finally{o.f()}}}catch(e){r.e(e)}finally{r.f()}return this}},{key:"headStyle",value:function(e){var t=this.res.rows[0];return t&&(t.style.color=e.color,e.background&&(t.style.backgroundColor=e.background)),this}},{key:"border",value:function(e){this.res.style.borderCollapse="collapse";var t,r=i(this.res.rows);try{for(r.s();!(t=r.n()).done;){var n=t.value;n.style.border=e;var o,s=i(n.cells);try{for(s.s();!(o=s.n()).done;)o.value.style.border=e}catch(e){s.e(e)}finally{s.f()}}}catch(e){r.e(e)}finally{r.f()}return this}},{key:"generateTableHead",value:function(e,t){var r,n=e.createTHead().insertRow(),o=i(t);try{for(o.s();!(r=o.n()).done;){var s=r.value,a=document.createElement("th"),l=document.createTextNode(s);a.appendChild(l),n.appendChild(a)}}catch(e){o.e(e)}finally{o.f()}}},{key:"generateTable",value:function(e,t){var r,n=i(t);try{for(n.s();!(r=n.n()).done;){var o=r.value,s=e.insertRow();for(var a in o){var l=s.insertCell(),c=document.createTextNode(o[a]);l.appendChild(c)}}}catch(e){n.e(e)}finally{n.f()}}},{key:"render",value:function(e){if(!e){var t=document.createElement("div");return t.style.overflowX="auto",t.appendChild(this.res),t}var r=document.createElement("div");r.style.overflowX="auto",r.appendChild(this.res),document.querySelector(e).appendChild(r)}}],o&&s(r.prototype,o),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,o}(r(762).y)},683:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function i(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,o(n.key),n)}}function o(e){var t=function(e){if("object"!=n(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=n(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==n(t)?t:t+""}r.d(t,{Z:()=>s});var s=function(){return e=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)},t=[{key:"cards",value:function(e,t,r){console.log("PP"),console.log(r);for(var n=[],i=0;i<e.children.length;i++){var o=e.children[i];"text"===o&&this.insertTextToCard(n,t,e,r),"image"!==o||e.backgroundCard||n.push('\n new Image("https://upload.wikimedia.org/wikipedia/commons/3/3a/Starship_S20.jpg").set({})'),"link"===o&&(t.op?n.push("\n ".concat(r.tabSpace(6)," ").concat(r.link[t.op.theme.toLowerCase()].code)):n.push("\n ".concat(r.tabSpace(6)," ").concat(r.link.base.code)))}return n}},{key:"insertTextToCard",value:function(e,t,r,n){if(t.op)if(t.op.ops&&t.op.ops.includes("text-blast")){var i="\n ".concat(n.tabSpace(6)," ").concat(n.text[t.op.theme.toLowerCase()].code),o=n.ops[t.op.theme.toLowerCase()].blast.code;r.backgroundCard||(o=n.ops[t.op.theme.toLowerCase()].blastFun(1));var s=this.insertTextBetween(i,o);e.push(s)}else e.push("\n ".concat(n.tabSpace(6)," ").concat(n.text[t.op.theme.toLowerCase()].code));else e.push("\n ".concat(n.tabSpace(6)," ").concat(n.text.base.code))}},{key:"insertTextBetween",value:function(e,t){var r=e.match(/(color: ".+?",)(.+?)(id: ".+?")/);if(r){var n=r.index+r[0].length,i=e.slice(0,n)+", "+t+", "+e.slice(n);return console.log("RETA"),console.log(i),i}return e}}],null&&i(e.prototype,null),t&&i(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}()},733:(e,t,r)=>{r.d(t,{A:()=>a});var n=r(207);function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,s(n.key),n)}}function s(e){var t=function(e){if("object"!=i(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==i(t)?t:t+""}var a=function(){return e=function e(t,r){if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.container=document.createElement("div"),this.elements=t,this.currentSlideIndex=0,this.buttons=r,!this.buttons){var i={leftButton:new n.$("L").set({url:"https://static-00.iconduck.com/assets.00/circle-arrow-left-icon-512x512-xp8okg5c.png",color:"#1abc9c",frame:{width:50,height:50},radius:"100%",arrayMargin:{sides:["all"],value:"1rem"}}),rightButton:new n.$("R").set({url:"https://static-00.iconduck.com/assets.00/arrow-right-circle-icon-2048x2048-m0qcnetg.png",color:"#1abc9c",frame:{width:50,height:50},radius:"100%",arrayMargin:{sides:["all"],value:"1rem"}})};this.buttons=i}this.createSlider(),this.init()},t=[{key:"toCode",value:function(){var e="new Slider([".concat(this.elements.map((function(e){return e.toCode()})),"], null)");return[e=e.replace(/,\s*\./g,".")]}},{key:"createSlider",value:function(){this.slider=document.createElement("div"),this.slider.style.width="100%",this.slider.style.height="400px",this.slider.style.margin="20px auto",this.slider.style.textAlign="center",this.slider.style.borderRadius="20px",this.slider.style.overflow="hidden",this.slider.style.position="relative";var e=document.createElement("div");this.slidesWrapper=e,e.style.display="flex",e.style.overflowX="scroll",e.style.scrollBehavior="smooth",e.style.scrollSnapType="x mandatory",this.elements.forEach((function(t,r){var n=document.createElement("div");n.setAttribute("class","slide"),n.style.display="flex",n.style.justifyContent="center",n.style.alignItems="center",n.style.flexShrink="0",n.style.width="100%",n.style.height="400px",n.style.background=r%2==0?"rgb(250, 246, 212)":"white",n.style.transformOrigin="center center",n.style.transform="scale(1)",n.style.scrollSnapAlign="center",n.appendChild(t.render()),e.appendChild(n)})),this.arrowPrev=this.buttons.leftButton.render(),this.arrowPrev.style.position="absolute",this.arrowPrev.style.left="10px",this.arrowPrev.style.top="50%",this.arrowPrev.style.transform="translateY(-50%)",this.arrowPrev.style.zIndex="1",this.arrowNext=this.buttons.rightButton.render(),this.arrowNext.style.position="absolute",this.arrowNext.style.right="10px",this.arrowNext.style.top="50%",this.arrowNext.style.transform="translateY(-50%)",this.arrowNext.style.zIndex="1";var t=document.createElement("div");t.style.position="absolute",t.style.bottom="10%",t.style.left="50%",t.style.width="200px",t.style.transform="translateX(-50%)",t.style.textAlign="center",this.elements.forEach((function(e,r){var n=document.createElement("a");n.style.display="inline-block",n.style.height="15px",n.style.width="15px",n.style.borderRadius="50%",n.style.backgroundColor="black",n.style.margin="0 10px",n.style.cursor="pointer",n.dataset.index=r,t.appendChild(n)})),this.slider.appendChild(this.arrowPrev),this.slider.appendChild(this.arrowNext),this.slider.appendChild(e),this.slider.appendChild(t),this.container.appendChild(this.slider),this.slidesWrapper=e,this.navLinks=t.querySelectorAll("a")}},{key:"init",value:function(){this.updateActiveSlide(),this.attachEventListeners()}},{key:"attachEventListeners",value:function(){var e=this;this.arrowPrev.addEventListener("click",(function(){e.moveToSlide(e.currentSlideIndex-1<0?e.elements.length-1:e.currentSlideIndex-1)})),this.arrowNext.addEventListener("click",(function(){e.moveToSlide((e.currentSlideIndex+1)%e.elements.length)})),this.navLinks.forEach((function(t){t.addEventListener("click",(function(r){r.preventDefault();var n=parseInt(t.dataset.index,10);e.moveToSlide(n)}))})),document.addEventListener("keydown",(function(t){"ArrowLeft"===t.key?e.moveToSlide(e.currentSlideIndex-1<0?e.elements.length-1:e.currentSlideIndex-1):"ArrowRight"===t.key&&e.moveToSlide((e.currentSlideIndex+1)%e.elements.length)}))}},{key:"moveToSlide",value:function(e){this.currentSlideIndex=e,this.updateActiveSlide()}},{key:"updateActiveSlide",value:function(){var e=this;this.navLinks.forEach((function(t,r){t.style.backgroundColor=r===e.currentSlideIndex?"green":"gray"}));var t=this.slidesWrapper.querySelector(".slide").offsetWidth;this.slidesWrapper.scrollTo({left:this.currentSlideIndex*t,behavior:"smooth"})}},{key:"render",value:function(e){if(!e)return this.slider;document.querySelector(e).appendChild(this.slider)}}],t&&o(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}()},734:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function i(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,o(n.key),n)}}function o(e){var t=function(e){if("object"!=n(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=n(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==n(t)?t:t+""}function s(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(s=function(){return!!e})()}function a(){return a="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,r){var n=function(e,t){for(;!{}.hasOwnProperty.call(e,t)&&null!==(e=l(e)););return e}(e,t);if(n){var i=Object.getOwnPropertyDescriptor(n,t);return i.get?i.get.call(arguments.length<3?e:r):i.value}},a.apply(null,arguments)}function l(e){return l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},l(e)}function c(e,t){return c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},c(e,t)}r.d(t,{m:()=>u});var u=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t,r){return t=l(t),function(e,t){if(t&&("object"==n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,s()?Reflect.construct(t,r||[],l(e).constructor):t.apply(e,r))}(this,t)}return function(e,t){if("function"!=typeof t&&null!==t)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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&c(e,t)}(t,e),r=t,o=[{key:"removeQuotesFromBoth",value:function(e){if(e)return e.replace(/"([^"]+)":\s*"([^"]+)"/g,"$1: $2")}},{key:"removeQuotesFromFirstWord",value:function(e){if(e)return e.replace(/"([^"]+)":/g,"$1:")}},{key:"toCode",value:function(){console.warn(this.items);var e=this.items.map((function(e){return e.toCode()})).flatMap((function(e){return e}));console.log("BAD CONV"),console.log(this.removeQuotesFromFirstWord(JSON.stringify(this.obj,null,4)));var t=this.removeQuotesFromFirstWord(JSON.stringify(this.obj));console.log(t),console.log("REPL"),console.log(t);var r='\nbackground: "'.concat(this.obj.background,'",\nbrand: ').concat(this.obj.brand.toCode(),",\nmar: ").concat(JSON.stringify(this.obj.mar),",\npad: ").concat(JSON.stringify(this.obj.mar),",\nradius: ").concat(JSON.stringify(this.obj.radius),",\n");return"new MobileBar().set({".concat(r,"}).add([\n ").concat(e.join(","),"\n\n ])")}},{key:"set",value:function(e){var r,n,i;return this.obj=e,console.log("After passing to set:"),console.log("OBJ IN SET"),this.obj=e,this.makeNavbar(e),e.mar&&(r=t,n=this,"function"==typeof(i=a(l(1&3?r.prototype:r),"mar",n))?function(e){return i.apply(n,e)}:i)([e.mar]),e.maxHeight&&(this.res.style.maxHeight=e.maxHeight),e.radius&&(this.res.style.borderRadius=e.radius),e.hamburgerColour&&(this.hamburgerColour=e.hamburgerColour),this.setStyles(e),this}},{key:"makeNavbar",value:function(e){var t=this;console.log("OBJ IN SETA");var r=e.brand;this.navbar=document.createElement("nav"),this.navbar.classList.add("mobile-navbar"),this.navbarHeader=document.createElement("div"),this.navbarHeader.classList.add("navbar-header"),this.brand=document.createElement("div"),this.brand.classList.add("navbar-brand"),console.log("BRIS"),console.log("APPENDED-"),e.brand&&"function"==typeof r.render?(console.log("Appending brand:",r.render()),this.brand.appendChild(r.render())):console.warn("Brand does not have a valid render method:",e.brand),this.toggleButton=document.createElement("button"),this.toggleButton.classList.add("navbar-toggle"),this.toggleButton.innerHTML="&#9776;",this.navContent=document.createElement("div"),this.navContent.classList.add("navbar-content"),this.navbarHeader.appendChild(this.brand),this.navbarHeader.appendChild(this.toggleButton),this.navbar.appendChild(this.navbarHeader),this.navbar.appendChild(this.navContent),this.isMobileNavOpen=!1,this.toggleButton.addEventListener("click",(function(){t.toggleMobileNav()})),this.res=this.navbar}},{key:"setStyles",value:function(e){var t,r;this.navbar.style.display="flex",this.navbar.style.flexDirection="column",this.navbar.style.padding="1rem",this.navbar.style.backgroundColor=null!==(t=e.background)&&void 0!==t?t:"orange",this.navbarHeader.style.display="flex",this.navbarHeader.style.alignItems="center",this.navbarHeader.style.justifyContent="space-between",this.navbarHeader.style.width="100%",this.brand.style.fontSize="1.5rem",this.toggleButton.style.background="none",this.toggleButton.style.border="none",this.toggleButton.style.color=null!==(r=this.hamburgerColour)&&void 0!==r?r:"white",this.toggleButton.style.fontSize="1.5rem",this.toggleButton.style.cursor="pointer",this.navContent.style.display="none"}},{key:"add",value:function(e){console.log(e),this.items=e;for(var t=0;t<e.length;t++){var r=e[t];this.navContent.appendChild(r.render())}return this}},{key:"toggleMobileNav",value:function(){this.isMobileNavOpen=!this.isMobileNavOpen,this.navContent.style.display=this.isMobileNavOpen?"flex":"none",this.isMobileNavOpen?(this.navContent.style.flexDirection="column",this.navContent.style.gap="0.5rem",this.navContent.style.padding="1rem"):(this.navContent.style.flexDirection="",this.navContent.style.gap="",this.navContent.style.backgroundColor="",this.navContent.style.padding="")}},{key:"render",value:function(e){return e&&document.querySelector(e).appendChild(this.navbar),this.navbar}}],o&&i(r.prototype,o),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,o}(r(762).y)},748:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function i(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,o(n.key),n)}}function o(e){var t=function(e){if("object"!=n(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=n(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==n(t)?t:t+""}r.d(t,{Z:()=>s});var s=function(){return e=function e(){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),this.gridContainer=document.createElement("div"),this.gridContainer.classList.add("grid-container"),this.gridContainer.style.display="grid"},t=[{key:"set",value:function(e){return e.gap&&(this.gridContainer.style.gap=e.gap),e.height&&(this.gridContainer.style.height=e.height),e.width&&(this.gridContainer.style.width=e.width),this}},{key:"react",value:function(e){var t=this,r=function(){console.log(e.length);for(var r=0;r<e.length-1;r++){console.warn(window.innerWidth);var n=parseInt(e[r].at),i=parseInt(e[r+1].at);if(window.innerWidth>n&&window.innerWidth<i){console.log("FROM "+n+" TO "+i);var o=e[r].template.map((function(e){return e.split("").join(" ")})).map((function(e){return'"'.concat(e,'"')})).join(" ");t.gridContainer.style.gridTemplateAreas=o,t.gridContainer.style.border="3px solid ".concat(e[r].color)}else if(window.innerWidth>i){t.gridContainer.style.border="3px solid ".concat(e[e.length-1].color),console.log("BIGGER THAN "+i);var s=e[e.length-1].template.map((function(e){return e.split("").join(" ")})).map((function(e){return'"'.concat(e,'"')})).join(" ");t.gridContainer.style.gridTemplateAreas=s}}};return r(),window.addEventListener("resize",r),this}},{key:"add",value:function(e){console.log(e);for(var t=function(e){for(var t=[],r=0;r<e;r++){var n="",i=r;do{n=String.fromCharCode(65+i%26)+n,i=Math.floor(i/26)-1}while(i>=0);t.push(n)}return t}(e.length),r=0;r<e.length;r++){var n=e[r].render();n.style.border="1px solid gray",n.style.gridArea=t[r].toLowerCase();var i=document.createElement("div");i.textContent=e[r].text,i.style.gridArea=t[r].toLowerCase(),this.gridContainer.appendChild(n)}return this}},{key:"render",value:function(e){return e&&document.querySelector(e).appendChild(this.gridContainer),this.gridContainer}},{key:"toCode",value:function(){return"new Simple().set({}).react([])"}}],t&&i(e.prototype,t),r&&i(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,r}()},751:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function i(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,o(n.key),n)}}function o(e){var t=function(e){if("object"!=n(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=n(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==n(t)?t:t+""}r.d(t,{Q:()=>s});var s=function(){return e=function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.el=null,this.minLabel=null,this.maxLabel=null,this.currentLabel=null},(t=[{key:"padding",value:function(e){return this.el.style.padding=e,this}},{key:"toCode",value:function(){var e=JSON.stringify(this.options,null,4);return["new Range().set(".concat(e,")")]}},{key:"set",value:function(e){var t,r,n=this;this.options=e;var i=document.createElement("input");if(i.setAttribute("id","slider"),i.setAttribute("type","range"),i.setAttribute("min",e.min),i.setAttribute("max",e.max),i.setAttribute("value",e.min),i.style.width=null!==(t=e.width)&&void 0!==t?t:"100%",!e.plain){var o,s;i.style.setProperty("-webkit-appearance","none"),i.style.appearance="none",i.style.height="9px",i.style.background=null!==(o=e.style.trackColor)&&void 0!==o?o:"orange",i.style.borderRadius="5px";var a="\n #slider::-webkit-slider-thumb {\n -webkit-appearance: none;\n appearance: none;\n width: 25px;\n height: 25px;\n border-radius: 50%;\n background: ".concat(null!==(s=e.style.thumbColor)&&void 0!==s?s:"4CAF50",";\n cursor: pointer;\n }\n "),l=document.createElement("style");l.appendChild(document.createTextNode(a)),document.head.appendChild(l)}var c=document.createElement("div");c.style.display="flex",c.style.flexDirection="column",c.style.alignItems="center",c.style.width="100%";var u=document.createElement("div");if(u.style.display="flex",u.style.justifyContent="space-between",u.style.width=null!==(r=e.width)&&void 0!==r?r:"100%",this.minLabel=document.createElement("span"),this.minLabel.textContent=e.min,this.maxLabel=document.createElement("span"),this.maxLabel.textContent=e.max,this.currentLabel=document.createElement("span"),this.currentLabel.textContent=i.value,e.font&&(this.currentLabel.style.fontFamily=e.font),e.font&&(this.minLabel.style.fontFamily=e.font),e.font&&(this.maxLabel.style.fontFamily=e.font),e.plain||(u.appendChild(this.minLabel),u.appendChild(this.currentLabel),u.appendChild(this.maxLabel)),i.addEventListener("input",(function(){n.currentLabel.textContent=i.value})),window.matchMedia("(max-device-width: 415px)").matches)if(e.plain)i.style.width="80%";else{var d,h;i.style.height="20px",i.style.background=null!==(d=e.style.trackColor)&&void 0!==d?d:"1abc9C",i.style.borderRadius="10px",i.style.fontSize="3rem",i.style.width="80%";var p="\n #slider::-webkit-slider-thumb {\n -webkit-appearance: none;\n appearance: none;\n width: 25px;\n height: 25px;\n border-radius: 50%;\n background: ".concat(null!==(h=e.style.thumbColor)&&void 0!==h?h:"blue",";\n cursor: pointer;\n }\n "),y=document.createElement("style");y.appendChild(document.createTextNode(p)),document.head.appendChild(y)}return c.appendChild(u),c.appendChild(i),this.el=c,this}},{key:"value",value:function(){return this.el.querySelector("#slider").value}},{key:"render",value:function(e){if(!e)return this.el;document.querySelector(e).appendChild(this.el)}}])&&i(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}();window.Range=s},758:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function i(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,o(n.key),n)}}function o(e){var t=function(e){if("object"!=n(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=n(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==n(t)?t:t+""}function s(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(s=function(){return!!e})()}function a(e){return a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},a(e)}function l(e,t){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},l(e,t)}r.d(t,{A:()=>c});var c=function(e){function t(e){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(r=function(e,t,r){return t=a(t),function(e,t){if(t&&("object"==n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,s()?Reflect.construct(t,r||[],a(e).constructor):t.apply(e,r))}(this,t)).text=e,r.res=null,r.valid=!1,r.setup(),r}return function(e,t){if("function"!=typeof t&&null!==t)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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&l(e,t)}(t,e),r=t,o=[{key:"setup",value:function(){var e=document.createElement("input");return this.res=e,this.res.style.padding=0,this.res.style.margin=0,this.res.style.padding=".4rem .75rem",this.res.style.fontSize="1rem",window.matchMedia("(max-device-width: 415px)").matches&&(this.res.style.width="100%"),this}},{key:"set",value:function(e){var t;return this.options=e,this.res.setAttribute("type",null!==(t=e.type)&&void 0!==t?t:"text"),e.placeholder&&(this.res.placeholder=e.placeholder),e.arrayPadding&&this.arrayPadding(e.arrayPadding.sides,e.arrayPadding.value),e.arrayMargin&&this.arrayMargin(e.arrayMargin.sides,e.arrayMargin.value),e.pad&&this.pad(e.pad),e.mar&&this.mar(e.mar),this}},{key:"arrayPadding",value:function(e,t){return e.includes("left")&&(this.res.style.paddingLeft=t),e.includes("right")&&(this.res.style.paddingRight=t),e.includes("top")&&(this.res.style.paddingTop=t),e.includes("bottom")&&(this.res.style.paddingBottom=t),e.includes("all")&&(this.res.style.padding=t),this}},{key:"toCode",value:function(){var e=JSON.stringify(this.options,null,4);return["new TextField().set(".concat(e,")")]}},{key:"arrayMargin",value:function(e,t){return e.includes("left")&&(this.res.style.marginLeft=t),e.includes("right")&&(this.res.style.marginRight=t),e.includes("top")&&(this.res.style.marginTop=t),e.includes("bottom")&&(this.res.style.marginBottom=t),e.includes("all")&&(this.res.style.margin=t),this}},{key:"setValid",value:function(e,t){return this.res.style.border=e?"6px solid green":"6px solid red",0===t.length&&(this.res.style.border="none"),this}},{key:"auto",value:function(){var e=this,t=function(){window.matchMedia("(max-device-width: 415px)").matches?e.res.style.fontSize="3rem":e.res.style.fontSize="1rem"};return t(),window.addEventListener("resize",t),this}},{key:"listen",value:function(e){var t=this;return this.res.addEventListener("input",(function(e){return t.process(e)})),this}},{key:"value",value:function(e){return this.res.setAttribute("value",e),this}},{key:"password",value:function(){return this.res.setAttribute("type","password"),this}},{key:"number",value:function(){return this.res.setAttribute("type","number"),this}},{key:"week",value:function(){return this.res.setAttribute("type","week"),this}},{key:"process",value:function(e){return this.res.value}},{key:"font",value:function(e){return this.res.style.fontFamily=e,this}},{key:"size",value:function(e){return this.res.style.fontSize=e,this}},{key:"em",value:function(e){return this.res.style.fontSize="".concat(e,"em"),this}},{key:"color",value:function(e){return this.res.style.color=e,this}},{key:"weight",value:function(e){return this.res.style.fontWeight=e,this}},{key:"bold",value:function(){return this.res.style.fontWeight="bold",this}},{key:"italic",value:function(){return this.res.style.fontStyle="italic",this}},{key:"padding",value:function(e,t,r,n){return e?this.res.style.padding="".concat(e,"px"):e&&t&&r&&n&&(this.res.style.paddingLeft=e,this.res.style.paddingTop=t,this.res.style.paddingRight=r,this.res.style.paddingBottom="".concat(n,"px")),this}},{key:"margin",value:function(e,t,r,n){return this.res.style.marginLeft=e,this.res.style.marginTop=t,this.res.style.marginLeft=r,this.res.style.marginBottom="".concat(n,"px"),this}},{key:"placeholder",value:function(e){return this.res.setAttribute("placeholder",e),this}},{key:"border",value:function(e,t){return this.res.style.border="".concat(t,"px solid ").concat(e),this}},{key:"width",value:function(e){return this.res.style.width=e,this}},{key:"round",value:function(e){return this.res.style.borderRadius="".concat(e,"px"),this}},{key:"onChange",value:function(e){var t=this;return this.res.value,this.res.addEventListener("input",(function(r){e(t.res.value)})),this}},{key:"render",value:function(e){return e?(document.querySelector(e).appendChild(this.res),this.res):this.res}}],o&&i(r.prototype,o),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,o}(r(762).y)},762:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function i(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o,s,a=[],l=!0,c=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=o.call(r)).done)&&(a.push(n.value),a.length!==t);l=!0);}catch(e){c=!0,i=e}finally{try{if(!l&&null!=r.return&&(s=r.return(),Object(s)!==s))return}finally{if(c)throw i}}return a}}(e,t)||s(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=s(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,l=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){l=!0,o=e},f:function(){try{a||null==r.return||r.return()}finally{if(l)throw o}}}}function s(e,t){if(e){if("string"==typeof e)return a(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?a(e,t):void 0}}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function l(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,c(n.key),n)}}function c(e){var t=function(e){if("object"!=n(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=n(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==n(t)?t:t+""}r.d(t,{y:()=>u});var u=function(){return e=function e(){var t,r,n,i=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),t=this,n=function(e){if(e.transform||e.op&&e.op.transform){var t=e.transform;e.transform||(t=e.op.transform),t.duration||(t.duration="3s-ease-in-out"),i.setDefault=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"0px";return 0===e.length?t+" ":e};var r=function(){var r="",n="",o="",s="",a="",l="",c="",u="",d="";if(0!==t.values.length){t.values.forEach((function(e){e.startsWith("tx:")&&(r=e.replace("tx:","")),e.startsWith("ty:")&&(n=e.replace("ty:","")),e.startsWith("tz:")?o=e.replace("tz:",""):e.startsWith("scale(")?s=e:e.startsWith("skew(")?a=e:e.startsWith("rotate(")?l=function(e){var t=e.match(/rotate\(([^)]+)\)/);if(!t)return e;var r=t[1].split(",").map((function(e){return e.trim()}));return 1===r.length?"rotate(".concat(r[0],")"):2===r.length?"rotateX(".concat(r[0],") rotateY(").concat(r[1],")"):3===r.length?"rotateX(".concat(r[0],") rotateY(").concat(r[1],") rotate(").concat(r[2],")"):e}(e):e.startsWith("perspective(")?c=e:e.startsWith("matrix(")?u=e:e.startsWith("opacity:")&&(d=e.replace("opacity:",""))})),r=i.setDefault(r),n=i.setDefault(n),o=i.setDefault(o);var h="";if("0px"!=n&&"0px"!=r&&"0px"!=o?h+="translate3d(".concat(r,", ").concat(n,", ").concat(o,")"):"0px"==n&&"0px"==r||(h+="translate(".concat(r,", ").concat(n,")")),s&&(h+=" ".concat(s)),l&&(h+=" ".concat(l)),a&&(h+=" ".concat(a)),c&&(h+=" ".concat(c)),u&&(h+=" ".concat(u)),h){if(e.op.transform.duration){var p=e.op.transform.duration.replace(/^(\d+)(s)-/,(function(e,t,r){return t/2+r+" "})),y="transform ".concat(p,", opacity ").concat(p);i.res.style.transition=y}else i.res.style.transition="transform 3s ease-in-out, opacity 3s ease-in-out";i.res.style.transform=h,i.res.style.opacity=d}}};t.on?i.res.addEventListener(t.on,(function(){t.delay?setTimeout((function(){r()}),t.delay):r()})):window.addEventListener("load",(function(){t.delay?setTimeout((function(){r()}),t.delay):r()}));var n=function(){var e="";t.values.forEach((function(t){t.startsWith("tx:")?e+="translateX(0) ":t.startsWith("ty:")?e+="translateY(0) ":t.startsWith("tz:")?e+="translateZ(0) ":t.startsWith("scale(")?e+="scale(1) ":t.startsWith("skew(")?e+="skew(0, 0) ":t.startsWith("rotate(")?e+="rotate(0) ":t.startsWith("perspective(")?e+="perspective(0) ":t.startsWith("matrix(")&&(e+="matrix(1, 0, 0, 1, 0, 0) "),i.res.style.opacity="1"})),e&&(i.res.style.transform=e.trim())};if(t.on)i.res.addEventListener("mouseout",(function(){t.keep||n()}));else{var o=1e3*parseFloat(t.duration),s=t.closeAfter?t.closeAfter:0;setTimeout((function(){t.keep||n()}),o/2+s)}}},(r=c(r="reactOnTransform"))in t?Object.defineProperty(t,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[r]=n,this.state={isExpanded:!1,isMovedUp:!1,isMovedDown:!1}},(t=[{key:"keySet",value:function(e){return this.temporaryVal=1,this.res.style[e.key]=e.value,this}},{key:"onScroll",value:function(e){var t=this;"opacity"===e.value?this.res.style.opacity=e.valMin:"scale"===e.value&&(this.res.style.transform="scale(".concat(e.valMax,")")),window.addEventListener("scroll",(function(){var r=t.smartRange(window.scrollY,{min:e.from,max:e.to},{min:e.valMin,max:e.valMax});"opacity"===e.value?t.res.style.opacity=r:"scale"===e.value&&(t.res.style.transform="scale(".concat(r,")"))}))}},{key:"setAny",value:function(e){this[Object.keys(e)[0]]=[Object.values(e)[0]]}},{key:"setID",value:function(e){this.id=e}},{key:"setPrevText",value:function(e){this.prevText=e}},{key:"getCSS",value:function(){return this.css}},{key:"getPX",value:function(e){return{xs:"0px",sm:"576px",md:"768px",lg:"992px",xl:"1200px",xxl:"1400px",mxxl:"1800px"}[e]||"Invalid breakpoint"}},{key:"respad",value:function(e){var t=this,r=function(){t.pad(e[0].values);for(var r=0;r<e.length;r++){var n=e[r].breakpoint;window.matchMedia("(min-width: ".concat(t.getPX(n))).matches&&t.pad(e[r].values)}};window.addEventListener("resize",r),r()}},{key:"resmar",value:function(e){var t=this,r=function(){t.mar(e[0].values);for(var r=0;r<e.length;r++){var n=e[r].breakpoint;window.matchMedia("(max-width: ".concat(t.getPX(n))).matches&&t.mar(e[r].values)}};window.addEventListener("resize",r),r()}},{key:"resprop",value:function(e){var t=this;this.prevBackground=this.res.style.background,this.prevWidth=this.res.style.width,this.prevHeight=this.res.style.height,this.prevBorder=this.res.style.border;var r=function(){t.res.style.background=t.prevBackground,t.res.style.width=t.prevWidth,t.res.style.height=t.prevHeight,t.res.style.border=t.prevBorder;for(var r=0;r<e.length;r++){var n=e[r].breakpoint;if(window.matchMedia("(max-width: ".concat(t.getPX(n))).matches){var i={};for(var o in e[r])"breakpoint"!==o&&(i[o]=e[r][o]);t.set(i)}}};window.addEventListener("resize",r),r()}},{key:"isNumber",value:function(e){return"number"==typeof e&&!isNaN(e)}},{key:"pad",value:function(e){for(var t=0;t<e.length;t++)for(var r=Object.keys(e[t]),n=0;n<r.length;n++)for(var i=r[n],o=e[t][i],s=0;s<i.length;s++)switch(i[s]){case"a":this.res.style.padding=this.isNumber(o)?"".concat(o,"px"):o;break;case"t":this.res.style.paddingTop=this.isNumber(o)?"".concat(o,"px"):o;break;case"l":this.res.style.paddingLeft=this.isNumber(o)?"".concat(o,"px"):o;break;case"r":this.res.style.paddingRight=this.isNumber(o)?"".concat(o,"px"):o;break;case"b":this.res.style.paddingBottom=this.isNumber(o)?"".concat(o,"px"):o}return this}},{key:"as",value:function(e){return this.res.style.alignSelf=e,this}},{key:"mar",value:function(e){for(var t=0;t<e.length;t++)for(var r=Object.keys(e[t]),n=0;n<r.length;n++)for(var i=r[n],o=e[t][i],s=0;s<i.length;s++){switch(i[s]){case"a":this.res.style.margin=this.isNumber(o)?"".concat(o,"px"):o;break;case"t":this.res.style.marginTop=this.isNumber(o)?"".concat(o,"px"):o;break;case"l":this.res.style.marginLeft=this.isNumber(o)?"".concat(o,"px"):o;break;case"r":this.res.style.marginRight=this.isNumber(o)?"".concat(o,"px"):o;break;case"b":this.res.style.marginBottom=this.isNumber(o)?"".concat(o,"px"):o}"auto"===i[s]&&(this.res.style.marginLeft="auto",this.res.style.marginRight="auto")}return this}},{key:"smartRange",value:function(e,t,r){e<t.min&&(e=t.min),e>t.max&&(e=t.max);var n=(e-t.min)/(t.max-t.min);t.min>t.max&&(n=(e-t.max)/(t.min-t.max));var i=(r.min-r.max)*n-r.min;if(i=Math.abs(i),r.min<r.max){var o=(r.max+Math.abs(r.min))*n;i=r.min+o}return i}},{key:"gpos",value:function(e){return this.res.style.gridColumn=e.col,this.res.style.gridRow=e.row,this}},{key:"fluidCopy",value:function(e){if(e instanceof Object){this.prevStylex=this.res.style,this.res=document.createElement("h1"),this.res.style.cssText=this.prevStylex.cssText;var t=document.createTextNode(this.text);return this.res.appendChild(t),this.res.style.fontSize=e.exact,this}if("S1"===e){this.prevStylex=this.res.style,this.res=document.createElement("h1"),this.res.style.cssText=this.prevStylex.cssText;var r=document.createTextNode(this.text);this.res.appendChild(r),this.res.style.fontSize="calc(1.625rem + 5.075vw)"}if("S2"===e){this.prevStylex=this.res.style,this.res=document.createElement("h2"),this.res.style.cssText=this.prevStylex.cssText;var n=document.createTextNode(this.text);this.res.appendChild(n),this.res.style.fontSize="calc(1.500rem + 4.3vw)"}if("S3"===e){this.prevStylex=this.res.style,this.res=document.createElement("h3"),this.res.style.cssText=this.prevStylex.cssText;var i=document.createTextNode(this.text);this.res.appendChild(i),this.res.style.fontSize="calc(1.375rem + 3.525vw)"}if("S4"===e){this.prevStylex=this.res.style,this.res=document.createElement("h4"),this.res.style.cssText=this.prevStylex.cssText;var o=document.createTextNode(this.text);this.res.appendChild(o),this.res.style.fontSize="calc(1.250rem + 2.75vw)"}if("S5"===e){this.prevStylex=this.res.style,this.res=document.createElement("h5"),this.res.style.cssText=this.prevStylex.cssText;var s=document.createTextNode(this.text);this.res.appendChild(s),this.res.style.fontSize="calc(1.125rem + 1.975vw)"}return"S6"===e&&(this.res.style.fontSize="calc(1rem + 0.5vw)"),this}},{key:"setIndex",value:function(e){this.index=e}},{key:"borderObj",value:function(e){var t,r=null!==(t=e.type)&&void 0!==t?t:"solid";return this.res.style.border="".concat(e.width," ").concat(r," ").concat(e.color),this.res.style.borderRadius=e.radius,this}},{key:"protoReact",value:function(e,t){var r=this;e.sort((function(e,t){return parseInt(e.range[0])-parseInt(t.range[0])}));var n=function(){var n=window.innerWidth,s="";r.storedQueries=e.map((function(e){return e.target})).filter((function(e){return null!=e}));var a,l=o(e);try{for(l.s();!(a=l.n()).done;){var c=a.value;r.counterIndex++;var u=i(c.range,2),d=u[0],h=u[1],p=parseInt(d),y=parseInt(h),f=!0;if(c.target){f=!1;for(var m=0;m<c.target.length;m++)c.target[m]===t&&(f=!0)}n>=p&&n<=y&&f&&("gradient"===c.log&&(s+="gradient"),"blast"===c.log&&(s+="blast"),"animation"===c.log&&(s+="animation"),"shadow"===c.log&&(s+="shadow"),"span"===c.log&&(s+="span"),"filter"===c.log&&(s+="filter"),"background"===c.log&&(s+="background"))}}catch(e){l.e(e)}finally{l.f()}r.res.style.margin="";var v,b=r.res.style.color;for(e.map((function(e){return e.log})).filter((function(e){return null!=e})).includes("gradient")&&(r.res.style.WebkitBackgroundClip="",r.res.style.background=""),r.res.style["-webkit-text-stroke"]="",r.res.style.filter="",r.res.style.textShadow="",r.res.style.border="";r.res.firstChild;)r.res.removeChild(r.res.firstChild);if(r.res.textContent=r.text,""===s&&(r.res.style["-webkit-text-fill-color"]="",r.res.style.color=b),"blast"===s){for(m=0;m<e.length;m++){var g=e[m].op.offsets;g&&void 0!==r.index&&(r.res.style.margin=g[Number(r.index)]+"px")}for(r.res.style["-webkit-text-fill-color"]="transparent",r.res.style["-webkit-text-stroke"]=r.globalBlast,m=0;m<e.length;m++){var w=e[m].op.offsets;w&&void 0!==r.index&&(r.res.style.margin=w[Number(r.index)]+"px")}}if("gradient"===s&&(r.res.style["-webkit-text-fill-color"]="transparent",r.res.style.background=r.globalGradient,r.res.style["-webkit-background-clip"]="text",r.res.style.border="1px solid orange"),"background"===s&&(r.res.style.background="orange"),"gradientblast"===s&&(r.res.style["-webkit-text-fill-color"]="transparent",r.res.style.background=r.globalGradient,r.res.style["-webkit-background-clip"]="text",r.res.style["-webkit-text-stroke"]=r.globalBlast),"gradientanimation"===s&&(r.res.style["-webkit-text-fill-color"]="transparent",r.res.style.background=r.globalGradient,r.res.style["-webkit-background-clip"]="text"),"gradientanimationshadow"===s&&(r.res.style["-webkit-text-fill-color"]="transparent",r.res.style.background=r.globalGradient,r.res.style["-webkit-background-clip"]="text",r.res.style.textShadow=r.globalShadow),"animationshadow"===s&&(r.res.style["-webkit-text-fill-color"]="",r.res.style.textShadow=r.globalShadow),"shadow"===s&&(r.res.style["-webkit-text-fill-color"]="",r.res.style.textShadow=r.globalShadow),"span"===s&&r.options.span)for(v=Array.isArray(r.options.span)?r.options.span.filter((function(e){return"span"===e.op.name}))[0]:r.options.span,r.res.textContent="",m=0;m<v.op.parts.length;m++){var _=v.op.parts[m].style,k=new Text(v.op.parts[m].text).setup({type:"span"}).set(_).render();r.res.appendChild(k)}if("filter"===s){var x=r.options.filtera.op.filter;r.res.style.filter=x,r.res.style.border="8px solid orange"}};window.addEventListener("resize",n),n()}},{key:"setPref",value:function(e){this.preffersId=e}},{key:"setClass",value:function(e){this.class=e}},{key:"betaReact",value:function(e,t){var r=this;this.ap=!1,this.cta=0,this.once=!1,e.sort((function(e,t){return parseInt(e.range[0])-parseInt(t.range[0])}));var n=function(){var n=window.innerWidth,s="";r.resCopy=r.res,r.storedQueries=e.map((function(e){return e.target})).filter((function(e){return null!=e}));var a,l=o(e);try{for(l.s();!(a=l.n()).done;){var c=a.value;r.counterIndex++;var u=i(c.range,2),d=u[0],h=u[1],p=parseInt(d),y=parseInt(h),f=!0;if(c.target){f=!1;for(var m=0;m<c.target.length;m++)c.target[m]===t&&(f=!0)}n>=p&&n<=y&&f&&("blast"===c.log&&(s+="blast"),"shadow"===c.log&&(s+="shadow"),"background"===c.log&&(s+="background"),"gradient"===c.log&&(s+="gradient"),"spana"===c.log&&(s+="spana"),"layout"===c.log&&(s+="layout"),"margin"===c.log&&(s+="margin"),c.op&&c.op.margin&&(r.useMargin=c.op.margin))}}catch(e){l.e(e)}finally{l.f()}if(r.res.style.background="",r.res.style.backgroundColor="",r.res.style.textShadow="",r.res.style.border="",r.res.style.margin="",r.res.style["-webkit-text-fill-color"]="",r.res.style["-webkit-text-stroke"]="",r.res.style["-webkit-text-stroke-width"]="","background"===s&&(r.res.style.backgroundColor="green"),"margin"===s)for(m=0;m<e.length;m++)if(e[m].op){var v=e[m].op.offsets;v&&void 0!==r.index&&(r.res.style.margin=v[Number(r.index)]+"px")}if("blastbackgroundmargin"===s){for(m=0;m<e.length;m++)if(e[m].op){var b=e[m].op.offsets;b&&void 0!==r.index&&(r.res.style.margin=b[Number(r.index)]+"px")}r.res.style.backgroundColor="green","FlexRowLayoutElement"===r.getType()?r.res.style.border="1px solid orange":(r.res.textContent=r.text,r.res.style["-webkit-text-fill-color"]="transparent",r.res.style["-webkit-text-stroke-color"]="orange",r.res.style["-webkit-text-stroke-width"]="1px"),r.res.style["-webkit-text-fill-color"]="transparent",r.res.style["-webkit-text-stroke-color"]="orange",r.res.style["-webkit-text-stroke-width"]="1px"}if("blastbackground"===s){for(m=0;m<e.length;m++)if(e[m].op){var g=e[m].op.offsets;g&&void 0!==r.index&&(r.res.style.margin=g[Number(r.index)]+"px")}r.res.style.backgroundColor="green",r.useMargin?r.res.style.margin="1rem":r.res.setAttribute("id","iofhwoiefhoih"),"FlexRowLayoutElement"===r.getType()?r.res.style.border="1px solid orange":(r.res.textContent=r.text,r.res.style["-webkit-text-fill-color"]="transparent",r.res.style["-webkit-text-stroke-color"]="orange",r.res.style["-webkit-text-stroke-width"]="1px"),r.res.style["-webkit-text-fill-color"]="transparent",r.res.style["-webkit-text-stroke-color"]="orange",r.res.style["-webkit-text-stroke-width"]="1px"}if("layout"===s&&(r.res.style.alignSelf="start",r.res.style.border="1px solid purple"),"blast"===s){for(m=0;m<e.length;m++)if(e[m].op){var w=e[m].op.offsets;w&&void 0!==r.index&&(r.res.style.margin=w[Number(r.index)]+"px")}"FlexRowLayoutElement"===r.getType()?r.res.style.border="1px solid orange":(r.res.textContent=r.text,r.res.style["-webkit-text-fill-color"]="transparent",r.res.style["-webkit-background-clip"]="text",r.res.style["-webkit-text-stroke-color"]="orange",r.res.style["-webkit-text-stroke-width"]="1px"),r.res.style["-webkit-text-fill-color"]="transparent",r.res.style["-webkit-text-stroke"]="orange",r.res.style["-webkit-text-stroke-width"]="1px"}"blastgradientbackground"===s&&(r.res.style.border="1px solid yellow",r.res.style["-webkit-text-stroke-color"]="orange",r.res.style["-webkit-text-stroke-width"]="1px"),"gradient"===s&&(r.res.style.background="linear-gradient(to left, #3498db, #1abc9c)","FlexRowLayoutElement"===r.getType()||(r.res.children[0]&&r.res.removeChild(r.res.children[0]),r.res.style["-webkit-text-fill-color"]="transparent",r.res.style["-webkit-background-clip"]="text",r.res.textContent=r.text)),"shadow"===s&&("FlexRowLayoutElement"===r.getType()||(r.res.children[0]&&r.res.removeChild(r.res.children[0]),r.res.style["-webkit-text-fill-color"]="",r.res.style["-webkit-text-fill-color"]="",r.res.style.textShadow="#1abc9cff -6px 6px , #1abc9c40 -12px 12px",r.res.textContent=r.text))};window.addEventListener("resize",n),n()}},{key:"cssGen",value:function(e,t,r,n){return this.css=[""],[""]}},{key:"chainReact",value:function(e,t,r){var n=this;this.cssGen(e,t,this.class,void 0!==this.class),this.ap=!1,this.cta=0,this.once=!1;var s,a=o(e);try{for(a.s();!(s=a.n()).done;){var l=s.value;l.range||(l.range=["0px","999999px"])}}catch(e){a.e(e)}finally{a.f()}e.sort((function(e,t){return parseInt(e.range[0])-parseInt(t.range[0])}));var c=function(){var s=window.visualViewport.width,a=[],l=[];n.resCopy=n.res,n.storedQueries=e.map((function(e){return e.target})).filter((function(e){return null!=e}));var c,u=o(e);try{for(u.s();!(c=u.n()).done;){var d=c.value;n.counterIndex++;var h=i(d.range,2),p=h[0],y=h[1],f=parseInt(p),m=parseInt(y),v=!0;if(d.target){v=!1;for(var b=0;b<d.target.length;b++)d.target[b]===t&&(v=!0)}s>=f&&s<=m&&v&&(a.push(d.log),l.push(d),d.op&&d.op.margin&&(n.useMargin=d.op.margin))}}catch(e){u.e(e)}finally{u.f()}if(r&&!r.includes("background")&&(n.res.style.background="",n.res.style.backgroundColor=""),n.res.style.textShadow="",r&&!r.includes("border")&&(n.res.style.border=""),r&&!r.includes("margin")&&(n.res.style.margin=""),n.res.style["-webkit-text-fill-color"]="",n.res.style["-webkit-text-stroke-color"]="",n.res.style["-webkit-text-stroke-width"]="",n.res.style.filter="",(a.includes("gradient")||a.includes("shadow"))&&(n.res.style.position="relative",n.res.style.zIndex=-1),a.includes("blast")){var g,w=l.filter((function(e){return"blast"===e.log}))[0].op.color,_=null!==(g=l.filter((function(e){return"blast"===e.log}))[0].op.width)&&void 0!==g?g:"1px";"FlexRowLayoutElement"===n.getType()?n.res.style.border="".concat(_,"px solid orange"):(n.res.textContent=n.text,n.res.style["-webkit-text-fill-color"]="transparent",n.res.style["-webkit-text-stroke-color"]=w,n.res.style["-webkit-text-stroke-width"]="".concat(_))}if(a.includes("filter")){var k=l.filter((function(e){return"filter"===e.log}))[0].op.filter;n.res.style.filter=k}if(a.includes("background")&&(n.res.style.backgroundColor="green"),a.includes("gradient")&&(n.res.style["-webkit-text-fill-color"]="transparent",n.res.style.background=n.globalGradient,n.res.style["background-clip"]="text"),a.includes("shadow"))if("FlexRowLayoutElement"===n.getType());else{var x="",S=0;for(b=0;b<n.options.shadow.op.steps;b++)x+="drop-shadow(".concat(S+=3,"px ").concat(S,"px ").concat(S,"px gray) ");n.res.style.filter=x}if(a.includes("margin"))for(b=0;b<e.length;b++)if(e[b].op){var O=e[b].op.offsets;O&&void 0!==n.index&&(n.res.style.margin=O[Number(n.index)]+"px")}if(a.includes("animation")){if(n.options.animation&&!n.hasAnimated&&!n.options.animation.op.fireAt){n.hasAnimated=!0;var C=n.options.animation.op;n.res.animate(C.keyframesClose,{duration:0,fill:"forwards"}),n.res.animate(C.keyframesOpen,C.openOptions)}if(n.options.animation&&n.options.animation.op.fireAt&&n.options.animation.op.fireAt.endsWith("px")){var E=n.options.animation.op;n.res.animate(E.keyframesClose,{duration:0,fill:"forwards"});var j=function(){window.scrollY>parseFloat(E.fireAt)&&(n.res.animate(E.keyframesOpen,E.openOptions),window.removeEventListener("scroll",j))};window.addEventListener("scroll",j)}if(n.options.animation&&n.options.animation.op.fireAt&&"inview"===n.options.animation.op.fireAt){var P=n.options.animation.op;n.res.animate(P.keyframesClose,{duration:0,fill:"forwards"}),new IntersectionObserver((function(e,t){e.forEach((function(e){e.isIntersecting&&(n.res.animate(P.keyframesOpen,P.openOptions),t.disconnect())}))})).observe(n.res)}}};window.addEventListener("resize",c),c()}},{key:"maxWidth",value:function(e){return this.res.style.maxWidth=e,this}},{key:"removeQuotesFromFirstWord",value:function(e){return e.replace(/"([^"]+)":/g,"$1:")}},{key:"arrayMargin",value:function(e,t){return e.includes("left")&&(this.res.style.marginLeft=t),e.includes("right")&&(this.res.style.marginRight=t),e.includes("top")&&(this.res.style.marginTop=t),e.includes("bottom")&&(this.res.style.marginBottom=t),e.includes("all")&&(this.res.style.margin=t),t||(this.res.style.marginBottom=e),this}},{key:"navBarExpand",value:function(){return this.res.style.backgroundColor="green",this.res.animate([{transform:"scaleY(3.0)"}],{duration:2e3,iterations:1,fill:"both"}),this}},{key:"scrollFade",value:function(e,t){return this.res.style.visibility="hidden",this.faden(e,t,"scroll"),this}},{key:"expand",value:function(e){var t=this;return!1===this.state.isExpanded?"click"===e.on?this.res.addEventListener("click",(function(){t.innerExpand(e)})):this.innerExpand(e):this.innerExpandBack(e),this.state.isExpanded=!this.state.isExpanded,this}},{key:"move",value:function(e){var t=this;return"click"===e.on?this.res.addEventListener("click",(function(){t.moveUpa(e)})):("up"===e.direction&&this.moveUpa(e),"down"===e.direction&&this.moveDowna(e),this.state.isMovedUp=!this.state.isMovedUp,"left"===e.direction&&this.moveLeft(e)),this}},{key:"moveLeft",value:function(e){return this.res.animate([{transform:"translateX(0px)"},{transform:"translateX(-".concat(e.distance,")")}],{duration:900,iterations:e.iterations,fill:"both"}).play(),this}},{key:"moveUpa",value:function(e){return!1===this.state.isMovedUp?this.res.animate([{transform:"translateX(0px)"},{transform:"translateY(-".concat(e.distance,")")}],{duration:900,iterations:e.iterations,fill:"both"}).play():this.res.animate([{transform:"translateX(0px)"},{transform:"translateY(".concat(e.distance,")")}],{duration:900,iterations:e.iterations,fill:"both"}).play(),this}},{key:"moveDowna",value:function(e){return!1===this.state.isMovedDown?this.res.animate([{transform:"translateX(0px)"},{transform:"translateY(".concat(e.distance,")")}],{duration:900,iterations:e.iterations,fill:"both"}).play():this.res.animate([{transform:"translateX(0px)"},{transform:"translateY(-".concat(e.distance,")")}],{duration:900,iterations:e.iterations,fill:"both"}).play(),this}},{key:"moveUpaBack",value:function(e){return this.res.animate([{transform:"translateX(0px)"}],{duration:900,iterations:e.iterations,fill:"both"}).play(),this}},{key:"innerExpandBack",value:function(e){this.res.animate([{width:this.prevWidth,height:this.prevHeight}],{duration:900,iterations:e.iterations,fill:"both"})}},{key:"innerExpand",value:function(e){var t,r;return this.prevWidth=this.res.style.width,this.prevHeight=this.res.style.height,this.res.animate([{width:this.prevWidth,height:this.prevHeight},{width:null!==(t=e.width)&&void 0!==t?t:this.prevWidth,height:null!==(r=e.height)&&void 0!==r?r:this.prevHeight}],{duration:900,iterations:e.iterations,fill:"both"}),this}},{key:"fade",value:function(e){return this.res.style.visibility="hidden",this.faden(e.duration,e.from,"load"),e.finalOpacity&&(this.finalOpacity=e.finalOpacity),this}},{key:"faden",value:function(e,t,r){var n=this;return this.res.style.visibility="hidden",this.scrolled=!1,window.addEventListener(r,(function(){n.res.style.visibility="visible";var i=window.innerHeight;(n.res.getBoundingClientRect().top-i<=0||"load"==r)&&0==n.scrolled&&("left"==t&&n.res.animate([{transform:"translateX(-30px)"},{transform:"translateX(0px)"}],{duration:e,iterations:1}),"right"==t&&n.res.animate([{transform:"translateX(30px)"},{transform:"translateX(0px)"}],{duration:e,iterations:1}),"top"==t&&n.res.animate([{transform:"translateY(-30px)"},{transform:"translateY(0px)"}],{duration:e,iterations:1}),"bottom"==t&&n.res.animate([{transform:"translateY(30px)"},{transform:"translateY(0px)"}],{duration:e,iterations:1}),n.res.animate([{opacity:"0.0"},{opacity:"1.0"}],{duration:e,iterations:1}),n.scrolled=!0)})),this}}])&&l(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}()},769:(e,t,r)=>{r.d(t,{I:()=>L});var n=r(16),o=r(130),s=r(219),a=r(828),l=r(734),c=r(897),u=r(69),d=r(304),h=r(790),p=r(463),y=r(148),f=(r(751),r(385)),m=r(898),v=r(877),b=(r(216),r(522)),g=r(207),w=r(733),_=r(959),k=r(836),x=r(317),S=r(342),O=r(11),C=r(985),E=r(683);function j(e){return j="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},j(e)}function P(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function T(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?P(Object(r),!0).forEach((function(t){A(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):P(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function A(e,t,r){return(t=M(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function R(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,M(n.key),n)}}function M(e){var t=function(e){if("object"!=j(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=j(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==j(t)?t:t+""}var L=function(){return e=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)},t=[{key:"mapType",value:function(e){return["h1","h2","h3","h4","h5","h6"].includes(e.el.type)?this.mapText(e):"img"===e.el.type?this.mapImage(e):"a"===e.el.type?this.mapLink(e):"cards"===e.el.type?this.mapGrid(e):"free"===e.el.type?this.mapFree(e):"nav"===e.el.type?this.protoNav(e):"sideNav"===e.el.type?this.sideNav(e):"dropdown"===e.el.type?this.dropdown(e):"modal"===e.el.type?this.modal(e):"slider"===e.el.type?this.slider(e):"table"===e.el.type?this.table(e):"radio"===e.el.type?this.radio(e):"input"===e.el.type?this.input(e):"labelInput"===e.el.type?this.floatInput(e):"filePicker"===e.el.type?this.filePicker(e):"picker"===e.el.type?this.picker(e):"video"===e.el.type?this.video(e):"audio"===e.el.type?this.audio(e):"multiswitcher"===e.el.type?this.multiswitcher(e):"button"===e.el.type?this.button(e):"form"===e.el.type?this.form(e):"checkbox"===e.el.type?this.checkbox(e):"stack"===e.el.type?this.stack(e):"simple"===e.el.type?this.simple(e):void 0}},{key:"button",value:function(){return new g.$("Submit").set({fluidc:"S6",color:"white",background:"#1abc9c",arrpad:{sides:["all"],value:".3rem"},radius:".3rem",onTap:function(){alert("Nice")},keySet:{key:"border",value:"3px solid green"}})}},{key:"multiswitcher",value:function(){return(new c.i).set({breakpoints:[{at:"0px",view:new n.E("First").set({})},{at:"700px",view:new n.E("Nice").set({})},{at:"800px",view:new n.E("Best").set({})}]})}},{key:"video",value:function(){return new k.C("https://www.w3schools.com/html/mov_bbb.mp4").set({})}},{key:"audio",value:function(){return new _.f("rouska.mp3").set({background:"#1abc9c"})}},{key:"radio",value:function(e){return(new f.z).set({items:["Male","Female","Third shit"],multiple:!0})}},{key:"input",value:function(e){return(new TextField).set({type:"text",placeholder:"Enter swimming time",arrayMargin:{sides:["all"],value:"1rem"}})}},{key:"floatInput",value:function(e){return(new y.l).set({title:"Your name",type:"input"})}},{key:"filePicker",value:function(e){return(new v.I).set({id:"A",title:"Add profile picture",background:"#3498DB",color:"white",font:"Arial",radius:"3rem",accept:"application/pdf"})}},{key:"picker",value:function(e){return(new m.L).set({items:[["none","select a car---"],["tesla","Tesla"],["audi","Audi"]],font:"Arial",arrayPadding:{sides:["all"],value:"0.5rem"},rounded:!0})}},{key:"modal",value:function(e){}},{key:"slider",value:function(e){var t=[(new d.m).set({}).add([new n.E("One").set({fluidc:"S1",color:"#1abc9c",font:"Arial"}),new n.E("First time").set({font:"Arial"})]),new n.E("Two").set({fluidc:"S1",color:"#1abc9c",font:"Arial"}),new n.E("Three").set({fluidc:"S1",color:"#1abc9c",font:"Arial"}),new n.E("Four").set({fluidc:"S1",color:"#1abc9c",font:"Arial"})];return new w.A(t,null)}},{key:"dropdown",value:function(e){e.el.items||(e.el.items=["Flower","Car","Maseratti"]);var t=e.el.items.map((function(e){return(new s.N).set({pad:[{a:10}],font:"Arial",bold:!0,link:"https://www.apple.com",text:e,icon:{padding:30,url:"https://cdn-icons-png.flaticon.com/512/32/32339.png"},hover:{color:"wheat",animation:.3}})}));return(new u.m).set({behaviour:"mouseover",pad:[{a:"1rem"}],mar:[{a:"1rem"}],border:"1px solid black",width:"180px",radius:"1rem"}).add([new n.E(e.el.items[0]).set({font:"Arial",fluidc:"S6",weight:"bold",align:"center",cursor:"hand",icon:{padding:30,url:"https://cdn-icons-png.flaticon.com/512/60/60995.png"},pad:[{l:10,r:10}]}),(new d.m).set({border:"1px solid green",background:"#1abc9c",radius:"0.7rem",socenter:!0}).add(t.slice(1))])}},{key:"protoNav",value:function(e){e.customOptions;var t=[{title:"Fire",link:"@e"},{title:"and",link:"@e"},{title:"smoke",link:"@e"}],r=t.map((function(e,t){return new s.N('"'.concat(e.title,'"')).set({fluidc:"S6",text:e.title,link:e.link,font:"Arial",pad:[{a:40}],bold:!0,hover:{color:"wheat",animation:.3}})})),i=t.map((function(e,t){return new s.N('"'.concat(e.title,'"')).set({fluidc:"S6",text:e.title,link:e.link,font:"Arial",pad:[{a:40}],bold:!0,hover:{color:"wheat",animation:.3},animation:{range:["0px","1900px"],op:{name:"animation",color:"green",width:"1px",keyframesOpen:[{transform:"translate(100%, ".concat(10*t,"%)"),opacity:0},{transform:"translate(0%)",opacity:1}],keyframesClose:[{transform:"translate(0%)",opacity:1},{transform:"translate(100%, ".concat(10*t,"%)"),opacity:0}],openOptions:{duration:300,fill:"forwards",delay:1e3},closeOptions:{duration:1,fill:"forwards",delay:1e3}}}})}));if(e.el.dropdown){var o=(new u.m).set({behaviour:"mouseover",pad:[{a:40}],padding:"10px",border:"1px solid black"}).add([new n.E("First").set({cursor:"hand",icon:{padding:30,url:"https://cdn-icons-png.flaticon.com/512/60/60995.png"},fluidc:"S6",pad:[{l:20,r:10}],font:"Arial",align:"center",weight:"bold"}),(new d.m).set({socenter:!0,radius:"0.7rem",background:"#1abc9c",makeResponsiveBehaviour:"undefined"}).add([(new s.N).set({pad:[{a:10}],font:"Arial",hover:{color:"wheat",animation:.3},bold:!0,link:"https://www.apple.com",text:"Second",icon:{padding:30,url:"https://cdn-icons-png.flaticon.com/512/32/32339.png"}}),(new s.N).set({pad:[{a:10}],font:"Arial",hover:{color:"wheat",animation:.3},bold:!0,link:"https://www.apple.com",text:"Third",icon:{padding:30,url:"https://cdn-icons-png.flaticon.com/512/32/32339.png"}})])]);i.push(o),r.push(o)}return e.el.animation,(new c.i).set({breakpoints:[{at:"0px",view:(new l.m).set({background:"green",mar:[{a:21}],brand:new n.E("A").set({size:"S1"}),hamburgerColour:"#3498db",radius:"1rem"}).add([new s.N("A").set({text:"A",url:"#a"}),(new u.m).set({behaviour:"mouseover",pad:[{a:40}],mar:[{lr:"auto"}],breakpoint:"1200px",padding:"10px",border:"1px solid black",height:"auto"}).add([new n.E("First").set({cursor:"hand",icon:{padding:30,url:"https://cdn-icons-png.flaticon.com/512/60/60995.png"},fluidc:"S6",pad:[{l:10,r:10}],font:"Arial",align:"center",weight:"bold"}),new n.E("Firsti").set({cursor:"hand",fluidc:"S6",pad:[{l:10,r:10}],font:"Arial",align:"center",weight:"bold"}),new n.E("Firstiuu").set({cursor:"hand",fluidc:"S6",pad:[{l:10,r:10}],font:"Arial",align:"center",weight:"bold"})]),new s.N("B").set({text:"B",url:"#b"}),new s.N("C").set({text:"C",url:"https://www.abcnews.com"})])},{at:"1200px",view:(new a.C).set({background:"green",mar:[{a:21}],maxHeight:"100px",radius:"1rem"}).add([new n.E("A").set({size:"S1"}),new p.h(!0),(new u.m).set({behaviour:"mouseover",pad:[{a:40}],padding:"10px",border:"1px solid black",radius:"30px",width:"130px"}).add([new n.E("First").set({cursor:"hand",icon:{padding:30,url:"https://cdn-icons-png.flaticon.com/512/60/60995.png"},fluidc:"S6",pad:[{l:10,r:10}],font:"Arial",align:"center",weight:"bold"}),(new d.m).set({flexDir:"column",background:"orange",mar:[{t:"10px"}],radius:".3rem"}).add([new s.N("").set({text:"A",url:"jk",cursor:"hand",fluidc:"S6",pad:[{l:10,r:10}],font:"Arial",align:"center",weight:"bold"}),new s.N("").set({text:"Kivi new TV",url:"#u",cursor:"hand",fluidc:"S6",pad:[{l:10,r:10}],font:"Arial",align:"center",weight:"bold"}),new s.N("").set({text:"Thanks GPT",url:"#u",cursor:"hand",fluidc:"S6",pad:[{l:10,r:10}],font:"Arial",align:"center",weight:"bold"})])]),new s.N("Desktop bar").set({text:"Desktop bar",url:"#a"}),new s.N("B").set({text:"B",url:"#a"}),new s.N("C").set({text:"C",url:"#a"})])}]})}},{key:"sideNav",value:function(e){e.customOptions;var t=[{title:"Home",link:"@e"},{title:"Projects",link:"@e"},{title:"Services",link:"@e"}],r=t.map((function(e,t){return new s.N('"'.concat(e.title,'"')).set({fluidc:"S4",text:e.title,link:e.link,isNavA:!0,url:"#e",id:"#"+e.title.toLowerCase(),font:"Arial",pad:[{a:20}],bold:!0,align:"left"})})),i=(new u.m).set({behaviour:"mouseover",pad:[{a:40}],padding:"10px",border:"1px solid black",animation:{range:["0px","1900px"],op:{name:"animation",color:"green",width:"1px",keyframesOpen:[{transform:"translate(100%, ".concat(10,"%)"),opacity:0},{transform:"translate(0%)",opacity:1}],keyframesClose:[{transform:"translate(0%)",opacity:1},{transform:"translate(100%, ".concat(10,"%)"),opacity:0}],openOptions:{duration:300,fill:"forwards",delay:1e3},closeOptions:{duration:1,fill:"forwards",delay:1e3}}}}).add([new n.E("First").set({cursor:"hand",icon:{padding:30,url:"https://cdn-icons-png.flaticon.com/512/60/60995.png"},fluidc:"S6",pad:[{l:10,r:10}],font:"Arial",align:"center",weight:"bold"}),(new d.m).set({socenter:!0,radius:"0.7rem",background:"#1abc9c",makeResponsiveBehaviour:"undefined"}).add([(new s.N).set({pad:[{a:10}],font:"Arial",hover:{color:"wheat",animation:.3},bold:!0,link:"https://www.apple.com",text:"Second",icon:{padding:30,url:"https://cdn-icons-png.flaticon.com/512/32/32339.png"}}),(new s.N).set({pad:[{a:10}],font:"Arial",hover:{color:"wheat",animation:.3},bold:!0,link:"https://www.apple.com",text:"Third",icon:{padding:30,url:"https://cdn-icons-png.flaticon.com/512/32/32339.png"}})])]),o=t.map((function(e,t){return new s.N('"'.concat(e.title,'"')).set({fluidc:"S4",text:e.title,link:e.link,isNavA:!0,url:"#e",id:"#"+e.title.toLowerCase(),font:"Arial",pad:[{a:20}],bold:!0,align:"left",animation:{range:["0px","1900px"],op:{name:"animation",color:"green",width:"1px",keyframesOpen:[{transform:"translate(100%, ".concat(10*t,"%)"),opacity:0},{transform:"translate(0%)",opacity:1}],keyframesClose:[{transform:"translate(0%)",opacity:1},{transform:"translate(100%, ".concat(10*t,"%)"),opacity:0}],openOptions:{duration:300,fill:"forwards",delay:1e3},closeOptions:{duration:1,fill:"forwards",delay:1e3}}}})}));e.el.dropdown&&(o.push(i),r.push(i));var a=(new d.m).set({column:!0}).add([new n.E("Ultra Reckoning").set({fluidc:"S6",font:"Arial",id:"#olod",italic:!0,animation:{range:["0px","1900px"],op:{name:"animation",color:"green",width:"1px"}},pad:[{l:40},{t:20}]}),e.el.animation?o[0]:r[0],e.el.animation?o[1]:r[1],e.el.animation?o[2]:r[2],e.el.animation&&e.el.dropdown?o[3]:new n.E("").set({}).excludeFromCode(),new n.E("Paramount, 2024").set({pad:[{a:20}],animation:{range:["0px","1900px"],op:{name:"animation",color:"green",width:"1px"}}})]),l=(new d.m).set({column:!0}).add([new n.E("Off canvas").set({fluidc:"S6",font:"Arial",id:"#olod",italic:!0,animation:e.el.animation?{range:["0px","1900px"],op:{name:"animation",color:"green",width:"1px"}}:null,pad:[{l:40},{t:20}]})]);return(new h.f).setup({animate:!0,radius:"1rem",isSide:!0,background:"#ecf0f1",hamColour:{opened:"#1abc9c",closed:"#e67e22"},mobileSize:"1.2em"}).items(e.el.offcanvas?l:a)}},{key:"mapFree",value:function(e){var t=e.customOptions.filter((function(e){return"slayout"===e.op.name||"layout"===e.op.name}))[0],r=null,i={cols:6,rows:6};return"text-above-image"!==t.op.value&&"image-above-text"!==t.op.value||(r=null,i=null),"image-overlay-text"===t.op.value&&(r={text:{row:"1 / span 2",col:"3 / span 2"},image:{row:"2 / span 3",col:"3 / 3"}}),"image-leftof-text"===t.op.value&&(r={text:{row:"1",col:"1 / 3"},image:{row:"1",col:"3 / 4"}}),(new x.b).set({id:"#3",templateCols:i,height:"600px"}).add([new n.E("I am free").set({border:"3px solid green",font:"Arial",fluidc:"S1",color:"#1abc9c",gpos:null!=r?r.text:null,zIndex:1}),new o._("https://www.cruisemapper.com/images/ships/2183-e9681865a61.jpg").set({url:"https://www.cruisemapper.com/images/ships/2183-e9681865a61.jpg",width:"400px",height:"auto",gpos:null!=r?r.image:null})])}},{key:"mapText",value:function(e){var t,r=e.el;return new n.E(r.text||r.value).set({id:r.id,class:r.class,color:r.color,fluidc:this.getElType(r.type),font:null!==(t=r.font)&&void 0!==t?t:"Arial",stroke:this.filtero("blast",r.id,e.customOptions),gradient:this.filtero("gradient",r.id,e.customOptions),animation:this.filtero("animation",r.id,e.customOptions),shadow:this.filtero("shadow",r.id,e.customOptions),span:this.filtero("span",r.id,e.customOptions),backgroundOp:this.filtero("background",r.id,e.customOptions),marginOp:this.filtero("margin",r.id,e.customOptions),transform:this.filtero("transform",r.id,e.customOptions)})}},{key:"mapImage",value:function(e){var t=e.el;return new o._(t.url).set(T(T({},t),{},{isFull:t.isFull,animation:this.filtero("animation",t.id,e.customOptions),shadow:this.filtero("shadow",t.id,e.customOptions),marginOp:this.filtero("margin",t.id,e.customOptions),filtera:this.filtero("filter",t.id,e.customOptions)}))}},{key:"mapLink",value:function(e){var t=e.customOptions.filter((function(e){return"link-style"===e.op.name})),r=e.el;return e.el.id&&(r.id=e.el.id),e.el.link&&e.el.text&&(r.url=e.el.link,r.text=e.el.text),r.keySet={key:"background",value:"shadow: 3px 3px solid green"},r.animation=this.filtero("animation",e.el.id,e.customOptions),r.class=e.el.class,r.width=e.el.width,r.font="Arial",r.fluidc=e.el.fluidc,r.index=e.i+"",r.shadow=this.filtero("shadow",e.el.id,e.customOptions),r.backgroundOp=this.filtero("background",e.el.id,e.customOptions),r.pad=[{a:10}],t.length>0?C.a.style({el:e.el,re:r,bst:t,options:e.customOptions})[t.length-1]:(new s.N).set(r)}},{key:"mapGrid",value:function(e){var t;console.log("OBJ IS"),console.log(e.storage);var r=[],n=null!==(t=e.customOptions.filter((function(e){return"card-style"===e.op.name}))[0])&&void 0!==t?t:{};r=E.Z.cards(e.el,n,e.storage);var i='new Card()\n .set({\n width: "300px", radius: "0.7rem", mar: { sides: ["all"], value: "0.8rem" }})\n .items(['.concat(r.join(",")," \n ])");e.el.backgroundCard&&(i='new ZoomCard().set({url: "https://img.freepik.com/free-photo/seascape-texture-waves-water-generative-ai_169016-30500.jpg", font: "Arial", mar: { sides: ["all"], value: "0.8rem" }, inpad: "1rem", useBrightness: true})\n .items([ \n '.concat(r.join(","),",\n ]), \n"));var o=Array(3).fill(i);return'\n \n new FlexGrid()\n .set({colat: "700px", wrap: true, align: "center"}) \n .items(['.concat(o,"])\n \n")}},{key:"mapCDiv",value:function(e){if(e.customOptions,rta){var t=el;t.makeResponsiveBehaviour=rta.op.hash[0].l,t.index=i;var r={width:"200px",height:"100px"};if(ela=(new d.m).set(t),rta.op.hash[0].child){r.makeResponsiveBehaviour=rta.op.hash[0].child.l;var o=(new d.m).set(r).add([new n.E("Hello")]);ela=(new d.m).set(t).add([o])}}}},{key:"checkbox",value:function(e){return(new S.S).set({name:"acceptTerms",label:new n.E("Check it out!").set({size:"S6",color:"#1abc9c",font:"Arial"}),mar:"10px"})}},{key:"stack",value:function(e){return(new O.B).set({}).add([(new o._).set({url:"https://pbs.twimg.com/media/DwYvbCBVAAEKY_R.jpg"}),new n.E("Samuel Suresh").set({color:"#00ae56",font:"SF Pro Display",fluidc:"S2",pad:{sides:["top","left"],value:20}})])}},{key:"form",value:function(e){return(new b.l).set({action:"file.php"}).add([(new y.l).set({title:"Your name",type:"input",name:"name"}),(new y.l).set({title:"Your email",type:"input",name:"email",color:"#3498db",font:"Arial",mar:[{a:"1rem"}]}),(new f.z).set({name:"gender",items:["Male","Female","Third shit"],multiple:!1,tint:"#1abc9c",font:"Arial",exact:"3rem"}),(new m.L).set({name:"car",items:[["none","select a car---"],["tesla","Tesla"],["audi","Audi"]],font:"Arial",arrayPadding:{sides:["all"],value:"0.5rem"},radius:"1rem",background:"#1abc9c"}),(new v.I).set({id:"A",name:"image",title:"Add profile picture",background:"#3498DB",color:"white",font:"Arial",radius:"3rem"}),new g.$("Submit form").set({type:"submit",background:"#3498db",color:"white",weight:"bold",radius:"1rem",pad:[{a:"1rem"}],mar:[{b:"1rem"}]})])}},{key:"simple",value:function(e){return'new Simple()\n .set({ gap: "10px", height: "700px" })\n .react([\n {\n at: "0", // Default size\n color: "red",\n template: [\n "aaaaaa",\n "bbbbbb",\n "cccccc",\n "dddddd",\n "eeeeee",\n ],\n },\n {\n at: "768", // Medium screen size\n color: "blue",\n template: [\n "aa bbb",\n "aa bbb",\n "cc ddd",\n "ee ddd",\n ],\n },\n {\n at: "1024", // Large screen size\n color: "green",\n template: [\n "aaa bbb",\n "ccc ddd",\n "eee ddd",\n ],\n },\n ])\n .add([\n new Text("Hello A").set({size: "S1"}),\n new Text("Hello B").set({size: "S1"}),\n new Text("Hello C").set({size: "S1"}),\n new Text("Hello D").set({size: "S1"}),\n new Text("Hello E").set({size: "S1"})\n ])'}},{key:"getElType",value:function(e){return"S".concat(e.substr(1))}},{key:"filtero",value:function(e,t,r){return r.filter((function(t){return t.op.name===e})).filter((function(e){return!e.target||e.target.includes(t)}))[0]}}],null&&R(e.prototype,null),t&&R(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}()},790:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function i(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return o(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?o(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,a=!0,l=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){l=!0,s=e},f:function(){try{a||null==r.return||r.return()}finally{if(l)throw s}}}}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function s(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,a(n.key),n)}}function a(e){var t=function(e){if("object"!=n(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=n(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==n(t)?t:t+""}function l(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(l=function(){return!!e})()}function c(e){return c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},c(e)}function u(e,t){return u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},u(e,t)}r.d(t,{f:()=>d});var d=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t,r){return t=c(t),function(e,t){if(t&&("object"==n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,l()?Reflect.construct(t,r||[],c(e).constructor):t.apply(e,r))}(this,t)}return function(e,t){if("function"!=typeof t&&null!==t)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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&u(e,t)}(t,e),r=t,(o=[{key:"setup",value:function(e){return this.obj=e,this.animate=void 0===this.obj.animate||this.obj.animate,this.res=this.createSideNav(e),this.res.style.position="relative",this.res.style.zIndex=3,this.closed=!0,this}},{key:"toggleSideNav",value:function(e){this.closed=!this.closed;var t=this.res.children[0];if(this.closed)if(t.style.overflowX="hidden",e.style.opacity=1,this.animate){t.animate([{transform:"translateX(0)"},{transform:"translateX(100%)"}],{duration:300,fill:"forwards"});var r,n=-1,o=i(t.children);try{for(o.s();!(r=o.n()).done;){var s=r.value;if(n+=1,this.masterEL[n]){var a,l=i(s.children);try{for(l.s();!(a=l.n()).done;){var c=a.value,u=this.masterEL[n].options.animation;u&&this.mappedIDS.includes(c.id)&&c.animate(u.op.keyframesClose,u.op.closeOptions)}}catch(e){l.e(e)}finally{l.f()}}}}catch(e){o.e(e)}finally{o.f()}}else t.style.display="none";else{t.style.overflowX="none",t.children[1].style.border="1px solid orange";var d,h=-1,p=i(t.children);try{for(p.s();!(d=p.n()).done;){var y=d.value;h+=1;var f,m=i(y.children);try{for(m.s();!(f=m.n()).done;){var v=f.value;if(this.mappedIDS.includes(v.id)&&void 0!==this.masterEL[0]){var b=this.masterEL[h].options.animation;if(b){console.log("OPEN KEYFRAMES"),console.log(b.op.keyframesOpen);var g=b.op.openOptions;g.delay||(g.delay=1),g.duration||(g.duration=300),console.log(g),v.animate(b.op.keyframesOpen,g)}}}}catch(e){m.e(e)}finally{m.f()}}}catch(e){p.e(e)}finally{p.f()}e.style.opacity=0,this.animate?(t.style.display="flex",t.animate([{transform:"translateX(100%)"},{transform:"translateX(0)"}],{duration:300,fill:"forwards"})):t.style.display="flex"}}},{key:"createToggleButton",value:function(e){var t=document.createElement("button");return t.innerText="☰",t.style.padding="10px 20px",t.style.backgroundColor="transparent",t.style.color=null!=e?e:"#3498db",t.style.border="none",t.style.borderRadius="5px",t.style.cursor="pointer",t.style.zIndex=1,t.style.fontSize="1.6rem",t}},{key:"createCloseButton",value:function(e){var t=document.createElement("button");return t.innerText="×",t.style.fontSize="1.6rem",t.style.padding="10px 20px",t.style.backgroundColor="transparent",t.style.color=null!=e?e:"black",t.style.border="none",t.style.borderRadius="5px",t.style.cursor="pointer",t.style.zIndex=1,t.style.alignSelf="flex-end",t}},{key:"createSideNav",value:function(e){var t=this,r=document.createElement("div");r.style.display="flex",r.style.justifyContent="flex-end";var n=document.createElement("div");n.style.display="none",n.style.background=this.obj.background||"#1abc9c",n.style.height="100%",window.matchMedia("(max-device-width: 415px)").matches?n.style.width="100%":n.style.width=this.obj.width||"400px",n.style.position="fixed",n.style.right=0,this.animate&&(n.style.transform="translateX(100%)"),n.style.flexDirection="column",n.style.justifyContent="flex-start";var i=this.createToggleButton(this.obj.hamColour.opened),o=this.createCloseButton(this.obj.hamColour.closed);return i.addEventListener("click",(function(){return t.toggleSideNav(i)})),o.addEventListener("click",(function(){return t.toggleSideNav(i)})),n.appendChild(o),r.appendChild(n),r.appendChild(i),r}},{key:"items",value:function(e){this.masterEL=e.items.filter((function(e){return void 0!==e.link})),console.log("EXTRACT IDs"),console.log(e);var t=e.items.filter((function(e){return void 0===e.items})).map((function(e){return e.id}));if(this.mappedIDS=t,this.item=e,this.res.children[0].appendChild(e.render()),void 0!==this.masterEL[0]){console.log("ANNAX"),console.log(this.masterEL[0]);var r=this.masterEL[0].options.animation;if(r){var n,o=i(this.res.children[0].children);try{for(o.s();!(n=o.n()).done;){var s,a=i(n.value.children);try{for(a.s();!(s=a.n()).done;){var l=s.value;if(this.mappedIDS.includes(l.id)){var c=r.op.closeOptions;c.delay=0,console.log("ANNAX"),console.log("SETTING INITIAL STATE ZEROING THE DELAY"),console.log(r.op.keyframesClose),console.log(c),l.animate(r.op.keyframesClose,r.op.closeOptions)}}}catch(e){a.e(e)}finally{a.f()}}}catch(e){o.e(e)}finally{o.f()}}}return this}},{key:"toCode",value:function(){var e="new SideNav().setup(".concat(this.formatObj(this.obj),")");if(this.item){var t=this.item.toCode?this.item.toCode().join(""):this.formatObj(this.item);t=t.replace(/,\s*(\.set\(|\.add\()/g,"\n $1"),e+=".items(".concat(t,")")}return e}},{key:"formatObj",value:function(e){return JSON.stringify(e,null,2).replace(/"(\w+)"\s*:/g,"$1:")}},{key:"render",value:function(e){return e&&document.querySelector(e).appendChild(this.res),this.res}}])&&s(r.prototype,o),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,o}(r(762).y)},828:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function i(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,o(n.key),n)}}function o(e){var t=function(e){if("object"!=n(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=n(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==n(t)?t:t+""}function s(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(s=function(){return!!e})()}function a(){return a="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,r){var n=function(e,t){for(;!{}.hasOwnProperty.call(e,t)&&null!==(e=l(e)););return e}(e,t);if(n){var i=Object.getOwnPropertyDescriptor(n,t);return i.get?i.get.call(arguments.length<3?e:r):i.value}},a.apply(null,arguments)}function l(e){return l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},l(e)}function c(e,t){return c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},c(e,t)}r.d(t,{C:()=>u});var u=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=function(e,t,r){return t=l(t),function(e,t){if(t&&("object"==n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,s()?Reflect.construct(t,r||[],l(e).constructor):t.apply(e,r))}(this,t)).navbar=document.createElement("nav"),e.navbar.classList.add("desktop-navbar"),e.navbarHeader=document.createElement("div"),e.navbarHeader.classList.add("navbar-header"),e.brand=document.createElement("div"),e.brand.classList.add("navbar-brand"),e.navContent=document.createElement("div"),e.navContent.classList.add("navbar-content"),e.navContent.style.width="100%",e.navbarHeader.appendChild(e.brand),e.navbarHeader.appendChild(e.navContent),e.navbar.appendChild(e.navbarHeader),e.res=e.navbar,e}return function(e,t){if("function"!=typeof t&&null!==t)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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&c(e,t)}(t,e),r=t,o=[{key:"set",value:function(e){var r,n,i;return console.warn(e),this.obj=e,e.background&&(this.res.style.backgroundColor=e.background),e.mar&&(r=t,n=this,"function"==typeof(i=a(l(1&3?r.prototype:r),"mar",n))?function(e){return i.apply(n,e)}:i)([e.mar]),e.brand&&this.setBrand(e.brand),e.radius&&(this.res.style.borderRadius=e.radius),e.maxHeight&&(this.res.style.maxHeight=e.maxHeight),e.hamburgerColour&&(this.hamburgerColour=e.hamburgerColour),this.setStyles(),this}},{key:"setStyles",value:function(){this.navbar.style.display="flex",this.navbar.style.flexDirection="column",this.navbar.style.padding="1rem",this.navbar.style.backgroundColor="#333",this.navbar.style.color="white",this.navbarHeader.style.display="flex",this.navbarHeader.style.alignItems="center",this.navbarHeader.style.justifyContent="space-between",this.navbarHeader.style.width="100%",this.brand.style.fontSize="1.5rem",this.navContent.style.display="flex",this.navContent.style.gap="1rem"}},{key:"setBrand",value:function(e){return console.warn("SETA"),console.log(e),this.brand.innerHTML="",this.brand.appendChild(e),this}},{key:"add",value:function(e){this.items=e;for(var t=0;t<e.length;t++)e[t],this.navContent.appendChild(e[t].render());return this}},{key:"toCode",value:function(){console.warn(this.items);var e=this.items.map((function(e){return e.toCode()})).flatMap((function(e){return e}));return console.log("ITSA"),console.log(e),console.log("".concat(e.join(","))),"new DesktopBar().set(".concat(this.removeQuotesFromFirstWord(JSON.stringify(this.obj)),").add([\n ").concat(e.join(","),"\n\n \n \n\n ])")}},{key:"render",value:function(e){return e&&document.querySelector(e).appendChild(this.navbar),this.navbar}}],o&&i(r.prototype,o),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,o}(r(762).y)},836:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function i(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,o(n.key),n)}}function o(e){var t=function(e){if("object"!=n(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=n(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==n(t)?t:t+""}function s(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(s=function(){return!!e})()}function a(e){return a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},a(e)}function l(e,t){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},l(e,t)}r.d(t,{C:()=>c});var c=function(e){function t(e){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(r=function(e,t,r){return t=a(t),function(e,t){if(t&&("object"==n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,s()?Reflect.construct(t,r||[],a(e).constructor):t.apply(e,r))}(this,t)).url=e,r.res=null,r.setup(),r}return function(e,t){if("function"!=typeof t&&null!==t)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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&l(e,t)}(t,e),r=t,(o=[{key:"setup",value:function(){this.res=document.createElement("video"),this.res.setAttribute("src",this.url),this.res.setAttribute("controls","controls")}},{key:"set",value:function(e){return this.options=e,e.radius&&(this.res.style.borderRadius="1rem"),e.width&&(this.res.style.width="".concat(e.width)),e.opacity&&(this.res.style.opacity=e.opacity),this}},{key:"size",value:function(e){return this.res.style.width=e,this}},{key:"toCode",value:function(){var e=JSON.stringify(this.options,null,4);return['new Video("'.concat(this.url,'").set(').concat(e,")")]}},{key:"render",value:function(e){if(!e)return this.res;document.querySelector(e).appendChild(this.res)}}])&&i(r.prototype,o),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,o}(r(762).y)},874:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function i(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,o(n.key),n)}}function o(e){var t=function(e){if("object"!=n(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=n(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==n(t)?t:t+""}r.d(t,{C:()=>s});var s=function(){return e=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.oldLength=0},(t=[{key:"observe",value:function(e){return this.initialState=e,this.Proxima(e)}},{key:"Proxima",value:function(e){var t=this;return new Proxy(e,{set:function(e,r,n,i){return alert("Setting ".concat(n," to ").concat(i)),e[n]=i,this.initialState.data.push(n),"length"!==r&&t.refreshUI("Added"),!0},has:function(e,r,n,i){return"length"!==r&&t.refreshUI("Deleted"),Reflect.has(e,r)}})}},{key:"refreshUI",value:function(e){var t=this.initialState;this.adjustState(t)}},{key:"loadState",value:function(e,t){return this.loadEl=t,this.initialState=e,alert(this.initialState.data),this.observe(this.state.data)}},{key:"adjustState",value:function(e){document.querySelector(this.loadEl);var t=e[e.length-1],r=document.createElement("p"),n=document.createTextNode(t);r.appendChild(n),document.body.appendChild(r)}},{key:"toNode",value:function(e){var t=document.createElement("div");return t.innerHTML=e.trim(),t.firstChild}},{key:"reactState",value:function(){var e=document.querySelector("#res");alert(this.render());var t=this.toNode(this.toHTML());e.appendChild(t)}},{key:"mount",value:function(e){this.el=e,this.render(e).render(e)}},{key:"toCode",value:function(){return[""]}},{key:"toHTML",value:function(e){return this.render(e).render(e).innerHTML}}])&&i(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}()},877:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function i(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,o(n.key),n)}}function o(e){var t=function(e){if("object"!=n(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=n(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==n(t)?t:t+""}function s(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(s=function(){return!!e})()}function a(e){return a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},a(e)}function l(e,t){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},l(e,t)}r.d(t,{I:()=>c});var c=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=function(e,t,r){return t=a(t),function(e,t){if(t&&("object"==n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,s()?Reflect.construct(t,r||[],a(e).constructor):t.apply(e,r))}(this,t)).el=null,e.file=null,e}return function(e,t){if("function"!=typeof t&&null!==t)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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&l(e,t)}(t,e),r=t,o=[{key:"set",value:function(e){var t=this;this.options=e,this.okayColor=e.okayColor,window.matchMedia("(max-device-width: 415px)");var r=document.createElement("div");r.style.paddingBottom="1em",r.style.display="flex",document.createElement("div");var n=document.createElement("input");n.setAttribute("type","text"),n.style.display="none",n.style.margin="0.5em";var i=document.createElement("input");i.setAttribute("type","file"),i.setAttribute("name",e.name),e.accept&&(i.accept=e.accept),i.setAttribute("id",e.id),i.style.visibility="hidden",i.style.display="none",window.matchMedia("(max-device-width: 415px)").matches&&(i.style.fontSize="1rem");var o=document.createElement("label");return o.setAttribute("for",e.id),o.innerText=e.title,o.style.marginRight=12,o.style.padding="0.5em",e.color&&(o.style.color=e.color),e.background&&(o.style.background=e.background,o.style.padding="10"),i.addEventListener("change",(function(){n.style.display="block",e.hideField&&(n.style.display="none"),o.innerText="Change",t.file=i.files[0],t.onLoad(t.file),u[e.index]=t.file,n.setAttribute("value",t.file.name),n.setAttribute("readonly","true"),t.getLoaded(),t.highlight()})),r.appendChild(i),r.appendChild(o),r.appendChild(n),this.el=r,e.font&&this.font(e.font),e.radius&&this.borderRadius(e.radius),this}},{key:"borderRadius",value:function(e){return this.el.style.borderRadius=e,this}},{key:"addClass",value:function(e){return this.el.setAttribute("class",e),this}},{key:"font",value:function(e){return this.el.style.fontFamily=e,this}},{key:"bold",value:function(){return this.el.style.fontWeight="bold",this}},{key:"rounded",value:function(){return this.el.children[1].style.borderRadius="8px",this}},{key:"highlight",value:function(){return null===this.file?(this.hasFile=!1,this.el.children[1].style.background="red"):(this.hasFile=!0,this.okayColor?this.el.children[1].style.background=this.okayColor:this.el.children[1].style.background="#1abc9c"),this}},{key:"auto",value:function(){var e=function(){window.matchMedia("(max-device-width: 415px)").matches};return e(),window.addEventListener("resize",e),this}},{key:"onLoad",value:function(e){return this.returnObject(this.file),this}},{key:"getLoaded",value:function(){return this.file}},{key:"returnObject",value:function(e){return e}},{key:"loadCall",value:function(e){return this.func=e,this.func(this.file),this}},{key:"toCode",value:function(){var e=JSON.stringify(this.options,null,4);return e=e.replace(/"(\w+)"(?=\s*:)/g,"$1"),["new FilePickera().set(".concat(e,")")]}},{key:"render",value:function(e){return e?(document.querySelector(e).appendChild(this.el),this):this.el}}],o&&i(r.prototype,o),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,o}(r(762).y),u=[]},897:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function o(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?i(Object(r),!0).forEach((function(t){s(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function s(e,t,r){return(t=l(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,l(n.key),n)}}function l(e){var t=function(e){if("object"!=n(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=n(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==n(t)?t:t+""}function c(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(c=function(){return!!e})()}function u(e){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},u(e)}function d(e,t){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},d(e,t)}r.d(t,{i:()=>h});var h=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=function(e,t,r){return t=u(t),function(e,t){if(t&&("object"==n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,c()?Reflect.construct(t,r||[],u(e).constructor):t.apply(e,r))}(this,t)).breakpoints=[],e.container=null,e.currentView=null,e.internalDiv=null,e.resizeListener=null,e}return function(e,t){if("function"!=typeof t&&null!==t)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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&d(e,t)}(t,e),r=t,i=[{key:"set",value:function(e){var t=e.breakpoints;if(this.options={breakpoints:t},!Array.isArray(t))throw new Error("Breakpoints should be an array of objects with 'at' and 'view' properties.");return this.breakpoints=t.map((function(e){if("string"!=typeof e.at||!(e.view.render()instanceof HTMLElement))throw new Error("Each breakpoint must have 'at' as a string and 'view' as an HTMLElement.");return o(o({},e),{},{at:parseInt(e.at,10)})})),this.breakpoints.sort((function(e,t){return e.at-t.at})),this}},{key:"toCode",value:function(){JSON.stringify(this.options.breakpoints.map((function(e){return e.view.toCode()})).flat(),null,4),JSON.stringify(this.options.breakpoints.map((function(e){return e.at})),null,4),JSON.stringify(this.options.breakpoints,null,4);for(var e="",t=0;t<this.options.breakpoints.length;t++)e+='{ at: "'.concat(this.options.breakpoints[t].at,'", view: ').concat(this.options.breakpoints[t].view.toCode()," }, \n");return["new Switcher().set({\n breakpoints: [\n ".concat(e,"\n ]\n })")]}},{key:"render",value:function(e){return this.internalDiv=document.createElement("div"),this.applyView(),this.resizeListener=this.applyView.bind(this),window.addEventListener("resize",this.resizeListener),void 0!==e&&document.querySelector(e).appendChild(this.internalDiv),this.internalDiv}},{key:"createRanges",value:function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:99999,r=[],n=0;n<e.length;n++)r.push({from:e[n],to:n<e.length-1?e[n+1]-1:t});return r}},{key:"addRanges",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:99999;return e.map((function(e,n){var i=t[n],s=n<t.length-1?t[n+1]-1:r;return o(o({},e),{},{range:{from:i,to:s}})}))}},{key:"applyView",value:function(){var e=this;console.log("MAKE RANGES"),window.innerWidth,console.log(this.breakpoints),console.log(this.breakpoints.map((function(e){return e.at})));var t=this.breakpoints.map((function(e){return e.at})),r=this.breakpoints.map((function(e){return e.at})),n=(this.createRanges(r),this.addRanges(this.breakpoints,t));console.log(n),n.forEach((function(t){var r="(min-width: ".concat(t.range.from,"px) and (max-width: ").concat(t.range.to,"px)"),n=window.matchMedia(r);console.warn(r),n.matches&&(console.log("Viewport width is within the range: ".concat(t.range.from,"px to ").concat(t.range.to,"px")),e.currentView!==t.view.render()&&(e.internalDiv.innerHTML="",e.internalDiv.appendChild(t.view.render()),e.currentView=t.view.render()))})),console.log("MBO")}},{key:"destroy",value:function(){this.resizeListener&&(window.removeEventListener("resize",this.resizeListener),this.resizeListener=null),this.internalDiv&&this.container&&this.container.removeChild(this.internalDiv),this.container=null,this.currentView=null,this.internalDiv=null}}],i&&a(r.prototype,i),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,i}(r(762).y)},898:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function i(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,o(n.key),n)}}function o(e){var t=function(e){if("object"!=n(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=n(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==n(t)?t:t+""}function s(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(s=function(){return!!e})()}function a(e){return a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},a(e)}function l(e,t){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},l(e,t)}r.d(t,{L:()=>c});var c=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=function(e,t,r){return t=a(t),function(e,t){if(t&&("object"==n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,s()?Reflect.construct(t,r||[],a(e).constructor):t.apply(e,r))}(this,t)).el=null,e.file=null,e.selected="",e}return function(e,t){if("function"!=typeof t&&null!==t)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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&l(e,t)}(t,e),r=t,o=[{key:"setup",value:function(e,t){document.createElement("div");var r=document.createElement("select");r.setAttribute("type","file"),r.setAttribute("name",t),r.addEventListener("change",(function(){r.options[r.selectedIndex].value}));for(var n=0;n<e.length;n++)r.appendChild(this.addNode(e[n][0],e[n][1]));return this.el=r,this}},{key:"set",value:function(e){return this.options=e,e.items&&this.setup(e.items,e.name),e.arrayPadding&&this.arrayPadding(e.arrayPadding.sides,e.arrayPadding.value),e.arrayMargin&&this.arrayMargin(e.arrayMargin.sides,e.arrayMargin.value),e.pad&&this.pad(e.pad),e.mar&&this.mar(e.mar),e.radius&&(this.el.style.borderRadius=e.radius),e.background&&(this.el.style.background=e.background),this}},{key:"arrayPadding",value:function(e,t){return e.includes("left")&&(this.el.style.paddingLeft=t),e.includes("right")&&(this.el.style.paddingRight=t),e.includes("top")&&(this.el.style.paddingTop=t),e.includes("bottom")&&(this.el.style.paddingBottom=t),e.includes("all")&&(this.el.style.padding=t),this}},{key:"arrayMargin",value:function(e,t){return e.includes("left")&&(this.el.style.marginLeft=t),e.includes("right")&&(this.el.style.marginRight=t),e.includes("top")&&(this.el.style.marginTop=t),e.includes("bottom")&&(this.el.style.marginBottom=t),e.includes("all")&&(this.el.style.margin=t),this}},{key:"addNode",value:function(e,t){var r=document.createElement("option");r.setAttribute("value",e);var n=document.createTextNode(t);return r.appendChild(n),r}},{key:"padding",value:function(e){return this.el.style.padding=e,this}},{key:"font",value:function(e){return this.el.style.fontFamily=e,this}},{key:"margin",value:function(e){return this.el.style.margin=e,this}},{key:"toCode",value:function(){var e=JSON.stringify(this.options,null,4);return e=e.replace(/"(\w+)"(?=\s*:)/g,"$1"),["new Picker().set(".concat(e,")")]}},{key:"rounded",value:function(e){return this.el.style.borderRadius="4px",this}},{key:"auto",value:function(){var e=this,t=function(){window.matchMedia("(max-device-width: 415px)").matches?e.el.style.fontSize="3rem":e.el.style.fontSize="1rem"};return t(),window.addEventListener("resize",t),this}},{key:"render",value:function(e){if(!e)return this.el;document.querySelector(e).appendChild(this.el)}}],o&&i(r.prototype,o),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,o}(r(762).y);window.Picker=c},934:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function i(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,o(n.key),n)}}function o(e){var t=function(e){if("object"!=n(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=n(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==n(t)?t:t+""}r.d(t,{o:()=>s});var s=function(){return e=function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.setup(t)},(t=[{key:"setup",value:function(e){var t=document.createElement("div");e&&t.setAttribute("id",e),t.style.display="flex",t.style.flexDirection="column",t.style.justifyContent="center",t.style.alignItems="center",t.style.width="100%",t.style.height="auto",t.style.margin=0,t.style.padding=0,this.res=t}},{key:"toCode",value:function(){return[""]}},{key:"items",value:function(e){for(var t=0;t<e.length;t++){var r=e[t].render();this.res.appendChild(r)}return this}},{key:"itemWidth",value:function(e){for(var t=0;t<this.res.childNodes.length;t++)this.res.childNodes[t].style.width=e;return this}},{key:"margin",value:function(e,t,r,n){return(e||t||r||n)&&(this.res.style.marginLeft=e,this.res.style.marginTop=t,this.res.style.marginRight=r,this.res.style.marginBottom=n),t||r||n||(alert("j"),this.res.style.margin=e),this}},{key:"arrayPadding",value:function(e,t){return e.includes("left")&&(this.res.style.paddingLeft=t),e.includes("right")&&(this.res.style.paddingRight=t),e.includes("top")&&(this.res.style.paddingTop=t),e.includes("bottom")&&(this.res.style.paddingBottom=t),this}},{key:"render",value:function(e){if(!e)return this.res;document.querySelector(e).appendChild(this.res)}}])&&i(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}()},946:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function i(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,o(n.key),n)}}function o(e){var t=function(e){if("object"!=n(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=n(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==n(t)?t:t+""}function s(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(s=function(){return!!e})()}function a(){return a="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,r){var n=function(e,t){for(;!{}.hasOwnProperty.call(e,t)&&null!==(e=l(e)););return e}(e,t);if(n){var i=Object.getOwnPropertyDescriptor(n,t);return i.get?i.get.call(arguments.length<3?e:r):i.value}},a.apply(null,arguments)}function l(e){return l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},l(e)}function c(e,t){return c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},c(e,t)}r.d(t,{Y:()=>u});var u=function(e){function t(e,r){var i;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(i=function(e,t,r){return t=l(t),function(e,t){if(t&&("object"==n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,s()?Reflect.construct(t,r||[],l(e).constructor):t.apply(e,r))}(this,t)).code=[],i.saveEl=r,i.frs=e,i.res=null,i.setup(),i.responsive(),i.code.push(" new FlexRow()"),i}return function(e,t){if("function"!=typeof t&&null!==t)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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&c(e,t)}(t,e),r=t,o=[{key:"getType",value:function(){return"FlexRowLayoutElement"}},{key:"set",value:function(e){this.options=e;var r,n,i,o=e;if(o.id="#ABC",o.gradient,o.pad&&this.pad(o.pad),o.mar&&this.mar(o.mar),o&&o.id&&o.stroke||o&&o.id&&o.gradient||o&&o.id&&o.span||o&&o.id&&o.backgroundOp){o.gradient&&(this.globalGradient=o.gradient.op.gradient),o.stroke&&(r=t,n=this,"function"==typeof(i=a(l(1&3?r.prototype:r),"setAny",n))?function(e){return i.apply(n,e)}:i)([{globalBlast:"".concat(o.stroke.op.width," ").concat(o.stroke.op.color)}]);var s=[o.stroke,o.gradient,o.animation,o.span,o.backgroundOp];s=s.filter((function(e){return null!=e}));for(var c=[],u=0;u<s.length;u++)c.push({range:s[u].range,log:s[u].op.name,target:s[u].target});this.res.setAttribute("id",o.id),this.betaReact(c,o.id)}if(e.id&&this.res.setAttribute("id",e.id),this.code.push("\n .set({"),e.padding&&this.padding(e.padding),e.background&&(this.res.style.backgroundColor="#ecf0f1",this.res.style.cornerRadius="#3rem"),e.alignTo&&(this.res.style.justifyContent=e.alignTo),e.background&&(this.res.style.backgroundColor=e.background,this.code.push('\n background: "'.concat(e.background,'",'))),e.justify&&(this.res.style.justifyContent=e.justify,this.code.push('\n justify: "'.concat(e.justify,'",'))),e.border&&("top"===e.border[0]&&(this.res.style.borderTop="".concat(e.border[1]," solid white")),"all"===e.border[0]&&(this.res.style.border="".concat(e.border[1]," solid orange")),this.code.push('\n border: ["'.concat(e.border[0],'", "').concat(e.border[1],'"],'))),e.borderObj){this.borderObj(e.borderObj);var d=JSON.stringify(e.borderObj);this.code.push("\n borderObj: ".concat(d,","))}if(e.width&&(this.res.style.width=e.width),e.width&&this.code.push('\n width: "'.concat(e.width,'",')),e.height&&(this.res.style.height=e.height),e.height&&this.code.push('\n height: "'.concat(e.height,'",')),e.align&&(JSON.stringify(e.align),this.res.style.alignItems="flex-start",this.code.push('\n alignIts: "flex-start",'),this.res.style.alignItems="flex-start"),e.wrap&&this.wrap(),e.wrap&&this.code.push("\n wrap: true,"),e.alignIts){var h=JSON.stringify(e.alignIts);this.res.style.alignItems="flex-start",this.code.push("\n alignIts: ".concat(h,","))}return e.owrap&&this.onlyWrap(),e.owrap&&this.code.push("\n owrap: true,"),null!=e.owrap&&!1===e.owrap&&(this.res.style.flexWrap="nowrap",this.res.style.background="yellow"),e.columnAlways&&alert("JIJ"+e.columnAlways),e.toColumn&&this.toColumn(e.toColumn),e.column&&this.makeCol(),e.colat&&(e.colat&&this.toColumnAt(e.colat),this.code.push('\n colat: "'.concat(e.colat,'",'))),e.arrayPadding&&this.arrayPadding(e.arrayPadding.sides,e.arrayPadding.value),e.arrayMargin&&this.arrayMargin(e.arrayMargin.sides,e.arrayMargin.value),this.arrayMarginValue=e.arrayMargin,e.arrayMargin&&this.code.push("\n arrayMargin: {sides: [".concat(e.arrayMargin.sides.map((function(e){return'"'.concat(e,'"')})).join(", "),'], value: "').concat(e.arrayMargin.value,'"},')),e.multipad&&this.makeMultiPad(e.multipad),e.align&&this.makeJustify(e.justify),e.justify&&this.makeAlign(e.justify),"flex-start"===e.justifo&&(this.res.style.justifyContent="flex-start"),e.radius&&(this.res.style.borderRadius="1rem"),e.aligns&&this.aligns(e.aligns),this.code.push("\n })"),this}},{key:"setArea",value:function(e){return this.res.style.gridArea=e,this}},{key:"toColumnAt",value:function(e){var t=this;if(!this.columnAlways){var r=function(){var r=window.matchMedia("(max-width: ".concat(e,")")),n=window.matchMedia("(max-device-width: 415px)");r.matches||n.matches?t.res.style.flexDirection="column":t.res.style.flexDirection="row"};r(),window.addEventListener("resize",r)}return this}},{key:"onlyWrap",value:function(){return this.res.style.flexWrap="wrap",this.res.style.backgroundColor="green",this}},{key:"wrap",value:function(){return this.res.style.flexWrap="wrap",this.res.style.justifyContent="space-between",this}},{key:"aligns",value:function(e){return"start"===e&&(this.res.style.alignItems="flex-start"),"end"===e&&(this.res.style.alignItems="flex-end"),"center"===e&&(this.res.style.alignItems="center"),this}},{key:"toColumn",value:function(){return this.res.style.flexDirection="column",this}},{key:"toCode",value:function(){var e=JSON.stringify(this.options,null,4).replace(/"([^"]+)":/g,"$1:"),t=this.items.map((function(e){return e.toCode()})).join(",\n ");return["new FlexRow().set(".concat(e,").items([")," ".concat(t),"])"].join("\n")}},{key:"arrayPadding",value:function(e,t){return e.includes("left")&&(this.res.style.paddingLeft=t),e.includes("right")&&(this.res.style.paddingRight=t),e.includes("top")&&(this.res.style.paddingTop=t),e.includes("bottom")&&(this.res.style.paddingBottom=t),this}},{key:"borderAround",value:function(e){return this.res.style.border=e,this}},{key:"cornerRadius",value:function(e){return this.res.style.borderRadius=e,this}},{key:"makeJustify",value:function(e){return"start"===e&&(this.res.style.justifyContent="flex-start"),this}},{key:"makeAlign",value:function(e){return"center"===e?this.res.style.alignItems="center":this.res.style.justifyContent=e,this}},{key:"makeCol",value:function(){return this.res.style.flexDirection="column",this}},{key:"makeMultiPad",value:function(e){for(var t=0;t<e.length;t++)"left"===e[t].side&&(this.res.style.paddingLeft=e[t].value),"right"===e[t].side&&(this.res.style.paddingRight=e[t].value);return this}},{key:"padding",value:function(e){return this.res.style.padding=e,this}},{key:"center",value:function(){return this}},{key:"setClass",value:function(e){return this.res.setAttribute("class",e),this}},{key:"toCenter",value:function(e){return this.res.style.marginLeft="auto",this.res.style.marginRight="auto",this.res.setAttribute("class",e),this}},{key:"setup",value:function(){var e=document.createElement("div");return e.style.display="flex",e.style.justifyContent="space-around",e.style.alignItems="center",e.style.margin=0,this.res=e,this}},{key:"noSpaceAround",value:function(){return this.res.style.justifyContent="",this}},{key:"itemAlignCenter",value:function(){return this.res.style.justifyContent="center",this.res.style.alignItems="center",this}},{key:"arrayMargin",value:function(e,t){return t||(this.res.style.marginLeft="".concat(e[0],"px"),this.res.style.marginTop="".concat(e[1],"px"),this.res.style.marginRight="".concat(e[2],"px"),this.res.style.marginBottom="".concat(e[3],"px")),e.includes("left")&&(this.res.style.marginLeft="".concat(t,"px")),e.includes("right")&&(this.res.style.marginRight="".concat(t,"px")),e.includes("top")&&(this.res.style.marginTop="".concat(t,"px")),e.includes("bottom")&&(this.res.style.marginBottom="".concat(t,"px")),this}},{key:"frame",value:function(e){return this.res.style.width=e.width,this.res.style.height=e.height,window.matchMedia("(max-device-width: 415px)").matches&&e.mobile&&(this.res.style.width=e.mobile),this}},{key:"background",value:function(e){return this.res.style.background=e,this}},{key:"radius",value:function(e){return this.res.style.borderRadius="".concat(e,"px"),this}},{key:"shadow",value:function(e,t,r){return this.res.style.boxShadow="0px 1px 10px 0px rgb(145 145 145)",this}},{key:"onTap",value:function(e){return this.res.addEventListener("click",e),this}},{key:"items",value:function(e){this.els=e,this.items=e,this.code.push(".items([");for(var t=0;t<e.length;t++){if(null!=e[t])if(e[t].render instanceof Function){var r=e[t].render();this.res.appendChild(r)}else this.res.appendChild(e[t]);if(null!=e[t]&&e[t].render instanceof Function){var n=e[t].render();this.res.appendChild(n),void 0!==e[t].toCode&&this.code.push(e[t].toCode().flatMap((function(e){return e})))}}return this.code.push("])"),this}},{key:"adjustRatiosForLayout",value:function(){var e=this;return null==this.els[1].getWidth||null==this.els[1].getHeight||(window.addEventListener("resize",(function(){e.resizeValues()})),this.resizeValues()),this}},{key:"resizeValues",value:function(){var e=.7*window.innerWidth*(this.els[1].getHeight()/this.els[1].getWidth());this.res.children[0].style.height="".concat(e,"px"),this.res.children[0].style.width="30%",this.res.children[1].style.width="70%"}},{key:"responsive",value:function(e){var t=this,r=window.matchMedia("(max-device-width: 415px)");return window.innerWidth<e||r.matches?this.res.style.gridTemplateColumns="1fr":this.res.style.gridTemplateColumns="1fr 1fr",window.addEventListener("resize",(function(){window.innerWidth<e||r.matches?t.res.style.gridTemplateColumns="1fr":t.res.style.gridTemplateColumns="1fr 1fr"})),this}},{key:"render",value:function(e){if(!e)return this.res;document.querySelector(e).appendChild(this.res)}}],o&&i(r.prototype,o),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,o}(r(762).y)},959:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function i(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,o(n.key),n)}}function o(e){var t=function(e){if("object"!=n(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=n(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==n(t)?t:t+""}function s(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(s=function(){return!!e})()}function a(e){return a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},a(e)}function l(e,t){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},l(e,t)}r.d(t,{f:()=>c});var c=function(e){function t(e){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(r=function(e,t,r){return t=a(t),function(e,t){if(t&&("object"==n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,s()?Reflect.construct(t,r||[],a(e).constructor):t.apply(e,r))}(this,t)).url=e,r.res=null,r.setup(),r}return function(e,t){if("function"!=typeof t&&null!==t)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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&l(e,t)}(t,e),r=t,(o=[{key:"setup",value:function(){this.res=document.createElement("audio"),this.res.setAttribute("src",this.url),this.res.setAttribute("controls","controls")}},{key:"set",value:function(e){return this.options=e,e.background&&this.background(e.background),this}},{key:"background",value:function(e){var t=document.createElement("style");return t.type="text/css",t.textContent="\n\taudio::-webkit-media-controls-panel {\n\t\tbackground-color: ".concat(e,";\n\t}\n"),document.head.appendChild(t),this}},{key:"toCode",value:function(){return JSON.stringify(this.options,null,4),['new Audio("'.concat(this.url,'")')]}},{key:"size",value:function(e){return this.res.style.width=e,this}},{key:"render",value:function(e){if(!e)return this.res;document.querySelector(e).appendChild(this.res)}}])&&i(r.prototype,o),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,o}(r(762).y)},977:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function i(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,o(n.key),n)}}function o(e){var t=function(e){if("object"!=n(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=n(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==n(t)?t:t+""}r.d(t,{a:()=>s});var s=function(){return e=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.el=null,this.obj=null},(t=[{key:"set",value:function(e){var t=document.createElement("div");return t.style.width="100vw",t.style.height="100vh",t.style.backgroundColor=e.background,t.style.zIndex="1",t.style.position="absolute",t.style.overflowY="scroll",this.obj=e,this.res=t,e.close&&this.close(),this}},{key:"close",value:function(){return this.res.style.display="none",this}},{key:"show",value:function(){return this.res.style.display="block",this}},{key:"add",value:function(e){var t=document.createElement("div");t.style.width=this.obj.width,t.style.height="auto",t.style.marginLeft="auto",t.style.marginRight="auto",t.style.backgroundColor="white",window.matchMedia("(max-device-width: 415px)").matches&&(t.style.marginTop="200px",t.style.width="100%");for(var r=0;r<e.length;r++)console.log(e[r]),t.appendChild(e[r].render());return this.res.appendChild(t),this}},{key:"render",value:function(e){if(!e)return this.res;document.querySelector("body").style.margin=0,document.querySelector("body").style.padding=0,document.querySelector(e).appendChild(this.res)}}])&&i(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}()},985:(e,t,r)=>{function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function i(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,o(n.key),n)}}function o(e){var t=function(e){if("object"!=n(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=n(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==n(t)?t:t+""}r.d(t,{a:()=>s});var s=function(){return e=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)},t=[{key:"style",value:function(e){for(var t=e.bst,r=e.el,n=e.re,i=(e.options,[]),o=0;o<t.length;o++)t[o].target&&(r.id,t[o].target[0]);for(o=0;o<t.length;o++){var s=!0;t[o].target&&(s=!1,r.id===t[o].target[0]&&(s=!0));var a=t[o].op.ops.split("-");s&&a.includes("air")&&(n.borderObj={color:"#1abc9c",radius:"0rem",width:"3px"},n.color="#1abc9c",n.background="transparent"),s&&a.includes("round")&&(a.includes("air")?n.borderObj={width:"4px",radius:"0.7rem",color:"#1abc9c"}:n.borderObj={width:"0px",radius:"0.7rem",color:"#1abc9c"}),s&&a.includes("full")&&(n.background="#3498db",n.borderObj&&n.borderObj.radius?n.borderObj.radius="0.3rem":n.color="white"),s&&a.includes("pill")&&(n.background="#3498db",n.borderObj.radius="9999px",n.color="white"),s&&a.includes("hover")&&(n.hover={color:"#1abc9c",background:"orange"}),i.push((new Link).set(n))}return i}}],null&&i(e.prototype,null),t&&i(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}()}},__webpack_module_cache__={};function __webpack_require__(e){var t=__webpack_module_cache__[e];if(void 0!==t)return t.exports;var r=__webpack_module_cache__[e]={exports:{}};return __webpack_modules__[e](r,r.exports,__webpack_require__),r.exports}__webpack_require__.d=(e,t)=>{for(var r in t)__webpack_require__.o(t,r)&&!__webpack_require__.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},__webpack_require__.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),__webpack_require__.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var __webpack_exports__={};__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{Animator:()=>animator.y,Audio:()=>audionew.f,Base:()=>base.C,Button:()=>layout_button.$,Card:()=>flexCard.Z,CardGen:()=>cardGetter.Z,Center:()=>center.o,Checkbox:()=>layout_checkbox.S,Code:()=>code.C,CustomDivRenderer:()=>CustomDivRenderer,DataList:()=>dataList.T,Des:()=>designer.H,DesktopBar:()=>betaDesktopBar.C,Dropdown:()=>dropdown2025.m,ElementMapper:()=>elementMapper.I,FilePickera:()=>imagePicker.I,FlexGrid:()=>flexGrid.M,FlexRow:()=>flexRow.Y,Free:()=>free.b,HScroller:()=>HScroller,Image:()=>layout_image._,KeyframeAnim:()=>KeyframeAnim,Link:()=>layout_link.N,LinkStyler:()=>linkGetter.a,MetaAdder:()=>metaAdder.W,MobileBar:()=>betaMobileBar.m,Modal:()=>modal2025.a,Picker:()=>picker.L,Progress:()=>progress.k,RadioGroup:()=>formComponents_radio.z,Range:()=>range.Q,ScrollVideo:()=>ScrollVideo,SideBar:()=>SideBar,SideNav:()=>sideNavBar.f,SimpleBar:()=>SimpleBar,Spacer:()=>spacer.h,Stack:()=>stack.B,Stacker:()=>Stacker,Switcher:()=>multiswitcher.i,Table:()=>table.X,Text:()=>layout_text.E,TextField:()=>textField.A,TransformAnim:()=>TransformAnim,UINavBar:()=>newNavBar.X,Wrap:()=>wrap.B,Wrapper:()=>container.m,ZoomCard:()=>zoomCard.U});var elementMapper=__webpack_require__(769),animator=__webpack_require__(762),base=__webpack_require__(874),layout_text=__webpack_require__(16),layout_image=__webpack_require__(130),layout_link=__webpack_require__(219),flexRow=__webpack_require__(946);function _typeof(e){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof(e)}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _defineProperties(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,_toPropertyKey(n.key),n)}}function _createClass(e,t,r){return t&&_defineProperties(e.prototype,t),r&&_defineProperties(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function _toPropertyKey(e){var t=_toPrimitive(e,"string");return"symbol"==_typeof(t)?t:t+""}function _toPrimitive(e,t){if("object"!=_typeof(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=_typeof(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var CustomDivRenderer=function(){return _createClass((function e(t,r){_classCallCheck(this,e),this.obj=t||{},this.items=r||[]}),[{key:"render",value:function(){var e=document.createElement("div");e.style.display="flex",e.style.width="100%",e.style.justifyContent="space-around",e.setAttribute("id","innerItemsWrapper");var t=window.matchMedia("(max-device-width: 415px)"),r=window.matchMedia("(max-width: 600px)");(t.matches||r.matches)&&(e.style.marginTop="3rem");for(var n=0;n<this.items.length;n++){var i=this.items[n];e.appendChild(i.render())}var o=document.createElement("div");return o.style.width=this.obj.isSide?"333px":"100%",o.style.background=this.obj.background||"white",o.style.display="flex",o.style.justifyContent="center",o.style.alignItems="center",o.style.height="100%",o.setAttribute("id","outerItemsWrapper"),o.appendChild(e),this.obj.customStyle&&(e.style.width="auto",e.style.top="0rem",e.style.borderRadius="1rem",e.style.background=this.obj.background||"white",e.style.margin="1rem",e.style.position="absolute",e.style.opacity=.8),o}}])}();window.CustomDivRenderer=CustomDivRenderer;var newNavBar=__webpack_require__(155);function sideBar_typeof(e){return sideBar_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},sideBar_typeof(e)}function sideBar_classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function sideBar_defineProperties(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,sideBar_toPropertyKey(n.key),n)}}function sideBar_createClass(e,t,r){return t&&sideBar_defineProperties(e.prototype,t),r&&sideBar_defineProperties(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function sideBar_toPropertyKey(e){var t=sideBar_toPrimitive(e,"string");return"symbol"==sideBar_typeof(t)?t:t+""}function sideBar_toPrimitive(e,t){if("object"!=sideBar_typeof(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=sideBar_typeof(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var SideBar=function(){return sideBar_createClass((function e(t,r){sideBar_classCallCheck(this,e),this.ele=null,this.width="16em",this.height="100vh",this.els=t}),[{key:"setup",value:function(e){var t=this;e.width&&(this.width=e.width),e.height&&(this.height=e.height);var r=document.createElement("div");r.style.position="absolute";var n=document.createElement("button");n.style.position="absolute",n.style.background="white",n.style.opacity=.8,n.style.border="none",n.width="1.5em",n.height="1.5em",n.style.borderRadius="50%",n.style.zIndex=2;var i=document.createTextNode("☰");n.appendChild(i),n.style.fontSize="2em",window.matchMedia("(max-device-width: 400px)").matches&&(n.style.fontSize="6em"),window.matchMedia("(max-device-width: 400px)").matches&&e.fullMobile&&(this.width="100vw"),r.appendChild(n);var o=document.createElement("div");return o.style.position="absolute",o.style.backgroundColor="#fff",o.style.flexDirection="column",o.style.display="flex",o.style.alignItems="center",o.style.margin=0,o.style.padding=0,o.style.width=this.width,o.style.margin=0,o.style.marginTop="-10px",o.style.paddingTop="1em",o.style.paddingBottom="1em",o.style.height="".concat(this.height),o.style.transform="translateX(-".concat(this.width,")"),o.style.transition="all 0.80s",r.appendChild(o),this.hidden=!1,n.addEventListener("click",(function(){t.hidden=!t.hidden;for(var e=0;e<o.children.length;e++)"☰"!==o.textContent&&(t.hidden?o.style.transform="translateX(0em)":o.style.transform="translateX(-".concat(t.width,")"))})),this.ele=r,this.els&&this.items(this.els),this}},{key:"background",value:function(e){return this.ele.children[1].style.backgroundColor=e.color,this.ele.children[1].style.opacity=e.opacity,this}},{key:"items",value:function(e){this.itemCount=e.length;for(var t=0;t<e.length;t++)this.ele.children[1].appendChild(e[t].render());return this}},{key:"render",value:function(e){return e?(document.querySelector(e).style.padding=0,document.querySelector(e).style.margin=0,document.querySelector(e).appendChild(this.ele),this.ele):this.ele}}])}(),sideNavBar=__webpack_require__(790),free=__webpack_require__(317),audionew=__webpack_require__(959),progress=__webpack_require__(580),center=__webpack_require__(934),code=__webpack_require__(26),stack=__webpack_require__(11),container=__webpack_require__(304),metaAdder=__webpack_require__(68),table=__webpack_require__(588),dropdown2025=__webpack_require__(69),modal2025=__webpack_require__(977),textField=__webpack_require__(758),flexCard=__webpack_require__(110),wrap=__webpack_require__(7),flexGrid=__webpack_require__(468),zoomCard=__webpack_require__(418);function simpleBar_typeof(e){return simpleBar_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},simpleBar_typeof(e)}function simpleBar_classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function simpleBar_defineProperties(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,simpleBar_toPropertyKey(n.key),n)}}function simpleBar_createClass(e,t,r){return t&&simpleBar_defineProperties(e.prototype,t),r&&simpleBar_defineProperties(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function simpleBar_toPropertyKey(e){var t=simpleBar_toPrimitive(e,"string");return"symbol"==simpleBar_typeof(t)?t:t+""}function simpleBar_toPrimitive(e,t){if("object"!=simpleBar_typeof(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=simpleBar_typeof(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function _callSuper(e,t,r){return t=_getPrototypeOf(t),_possibleConstructorReturn(e,_isNativeReflectConstruct()?Reflect.construct(t,r||[],_getPrototypeOf(e).constructor):t.apply(e,r))}function _possibleConstructorReturn(e,t){if(t&&("object"==simpleBar_typeof(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(e)}function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _isNativeReflectConstruct(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(_isNativeReflectConstruct=function(){return!!e})()}function _getPrototypeOf(e){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},_getPrototypeOf(e)}function _inherits(e,t){if("function"!=typeof t&&null!==t)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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&_setPrototypeOf(e,t)}function _setPrototypeOf(e,t){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},_setPrototypeOf(e,t)}var SimpleBar=function(e){function t(){var e;return simpleBar_classCallCheck(this,t),(e=_callSuper(this,t)).res=document.createElement("div"),e}return _inherits(t,e),simpleBar_createClass(t,[{key:"items",value:function(e){for(var t=0;t<e.length;t++)this.res.appendChild(e[t].render());return this}},{key:"render",value:function(e){return e&&document.querySelector(e).appendChild(this.res),this.res}}])}(animator.y),betaDesktopBar=__webpack_require__(828),betaMobileBar=__webpack_require__(734),multiswitcher=__webpack_require__(897),spacer=__webpack_require__(463);function horizontalScroller_typeof(e){return horizontalScroller_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},horizontalScroller_typeof(e)}function horizontalScroller_classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function horizontalScroller_defineProperties(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,horizontalScroller_toPropertyKey(n.key),n)}}function horizontalScroller_createClass(e,t,r){return t&&horizontalScroller_defineProperties(e.prototype,t),r&&horizontalScroller_defineProperties(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function horizontalScroller_toPropertyKey(e){var t=horizontalScroller_toPrimitive(e,"string");return"symbol"==horizontalScroller_typeof(t)?t:t+""}function horizontalScroller_toPrimitive(e,t){if("object"!=horizontalScroller_typeof(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=horizontalScroller_typeof(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var HScroller=function(){return horizontalScroller_createClass((function e(){horizontalScroller_classCallCheck(this,e),this.setupa()}),[{key:"seto",value:function(e){return this.e=e.a,e.speed&&(this.divisor=e.speed),this}},{key:"setupa",value:function(){return this.parallaxIDs(["#rta"]),this.divisor(1),this}},{key:"add",value:function(e){return this.items=e,this.setup(),this}},{key:"parallaxIDs",value:function(e){return this.parallaxIDs=e,this}},{key:"divisor",value:function(e){return this.divisor=e,this}},{key:"setup",value:function(){var e=this;this.pts=0;var t=document.createElement("div");t.style.width="100%",t.style.height="100%";var r=document.createElement("div");r.style.display="flex",r.style.width="100%";for(var n=0;n<this.items.length;n++){var i=this.items[n].render();r.appendChild(i)}t.appendChild(r);var o=window.localStorage.getItem("pts");null!==o&&(this.pts=o),t.addEventListener("wheel",(function(t){t.deltaY<0?(console.log("Scrolling up"),e.pts--):t.deltaY>0&&(console.log("Scrolling down"),e.pts++),window.localStorage.setItem("pts",e.pts),t.preventDefault();for(var n=0;n<r.childNodes.length;n++){console.log(r.childNodes[n].toString().substr(7));var i=r.childNodes[n];e.parallaxIDs.includes(i.id)&&(i.style.transform="translateX(".concat(e.pts/e.divisor,"%)"))}r.style.transform="translateX(".concat(e.pts/e.divisor,"%)"),window.localStorage.setItem("translation",e.pts/e.divisor)}));var s=window.localStorage.getItem("translation");null!==s&&(r.style.transform="translateX(".concat(s,"%)")),this.div=t}},{key:"render",value:function(e){if(!e)return this.div;document.querySelector(e).appendChild(this.div)}}])}(),layout_checkbox=__webpack_require__(342),imagePicker=__webpack_require__(877),picker=__webpack_require__(898),range=__webpack_require__(751),formComponents_radio=__webpack_require__(385),dataList=__webpack_require__(216),layout_button=__webpack_require__(207),designer=__webpack_require__(19),linkGetter=__webpack_require__(985),cardGetter=__webpack_require__(683);function appleAnim_typeof(e){return appleAnim_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},appleAnim_typeof(e)}function appleAnim_classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function appleAnim_defineProperties(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,appleAnim_toPropertyKey(n.key),n)}}function appleAnim_createClass(e,t,r){return t&&appleAnim_defineProperties(e.prototype,t),r&&appleAnim_defineProperties(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function _defineProperty(e,t,r){return(t=appleAnim_toPropertyKey(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function appleAnim_toPropertyKey(e){var t=appleAnim_toPrimitive(e,"string");return"symbol"==appleAnim_typeof(t)?t:t+""}function appleAnim_toPrimitive(e,t){if("object"!=appleAnim_typeof(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=appleAnim_typeof(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var KeyframeAnim=function(){return appleAnim_createClass((function e(t){var r=this;return appleAnim_classCallCheck(this,e),_defineProperty(this,"scrollFunction",(function(){void 0===r.flagValue&&(r.flagValue=0);var e=(r.html.scrollTop-r.flagValue)/(r.html.scrollHeight-window.innerHeight)*16,t=Math.min(r.frameCount-1,Math.ceil(e*r.frameCount));isNaN(t)&&(t=1),t<0&&(t=0),r.data.limit?t<r.data.limit&&requestAnimationFrame((function(){return r.updateImage(t+1)})):requestAnimationFrame((function(){return r.updateImage(t+1)})),window.matchMedia("(max-device-width: 415px)")})),_defineProperty(this,"currentFrame",(function(e){return"".concat(r.data.path).concat(e.toString().padStart(4,"0"),".").concat(r.data.extension)})),_defineProperty(this,"preloadImages",(function(){for(var e=1;e<r.frameCount;e++)new Image,r.img.src=r.currentFrame(e)})),_defineProperty(this,"updateImage",(function(e){r.img.src=r.currentFrame(e)})),this.fromFirstImageFlag=!1,this.flag=0,this.flagValue=t.flagValue,this.data=t,this.mask=t.mask,this.maskData=t.maskData,this.id=t.id,this.halfHeight=t.halfHeight,void 0===this.data.type?this.type="default":this.type=this.data.type,this.stickData=t.stickData,this.targetHeight=this.data.targetHeight,this.html=document.body,this.res=document.createElement("div"),this.res.setAttribute("id",this.data.id),this.res.style.border="1px solid green",this.res.style.width="100%",this.res.style.display="grid",this.res.style.position="sticky",this.res.style.top=0,this.res.style.alignSelf="flex-start",this.res.style.justifyContent="center",this.res.style.alignItems="center",this.data.added||(this.res.style.marginTop=this.data.noAddedDistance),this.frameCount=100,this.lastScrollTop=window.scrollY,this.setupTopElement(),this.scrollFunction(),window.addEventListener("scroll",(function(){r.scrollFunction()})),this.preloadImages(),this}),[{key:"marginTop",value:function(e){return this.res.style.marginTop=e,this}},{key:"toCode",value:function(){return[""]}},{key:"drawImageProp",value:function(e,t,r,n,i,o,s,a){2===arguments.length&&(r=n=0,i=e.canvas.width,o=e.canvas.height),(s="number"==typeof s?s:.5)<0&&(s=0),(a="number"==typeof a?a:.5)<0&&(a=0),s>1&&(s=1),a>1&&(a=1);var l,c,u,d,h=t.width,p=t.height,y=Math.min(i/h,o/p),f=h*y,m=p*y,v=1;f<i&&(v=i/f),Math.abs(v-1)<1e-14&&m<o&&(v=o/m),(l=(h-(u=h/((f*=v)/i)))*s)<0&&(l=0),(c=(p-(d=p/((m*=v)/o)))*a)<0&&(c=0),u>h&&(u=h),d>p&&(d=p),console.log("WEIRD"),console.log(t),console.log(c),console.log(u),e.drawImage(t,l,c,u,d,r,n,i,o)}},{key:"maska",value:function(e){var t=this;return window.addEventListener("scroll",(function(){t.innerMask(e)})),this}},{key:"innerMask",value:function(e){if(e){var t=smartRange(window.scrollY,{min:e.start,max:e.end},{min:0,max:7}),r=smartRange(window.scrollY,{min:e.start,max:e.end},{min:37,max:37});this.res.style.clipPath="inset(".concat(t,"% ").concat(t,"% round 0 0 ").concat(r,"px ").concat(r,"px)")}}},{key:"setupTopElement",value:function(){var e=this;console.warn("TOP INIT");var t=document.createElement("canvas");if(t.style.gridArea="1/1",t.zIndex=1,t.style.display="grid",t.style.gridTemplate="1fr/1fr",t.style.justifyContent="center",t.style.alignItems="center",t.style.marginLeft="auto",t.style.marginRight="auto",this.context=t.getContext("2d"),this.context.canvas.width=window.innerWidth,this.context.canvas.height=1.2*window.innerHeight,this.img=new Image,this.img.onload=function(){e.data.halfHeight?e.drawImageProp(e.context,e.img,0,0,window.innerWidth,window.innerHeight/2):e.drawImageProp(e.context,e.img,0,0,window.innerWidth,1.2*window.innerHeight)},window.addEventListener("resize",(function(){e.context.canvas.width=window.innerWidth,e.context.canvas.height=1.2*window.innerHeight,e.drawImageProp(e.context,e.img,0,0,window.innerWidth,1.2*window.innerHeight)})),this.res.appendChild(t),this.data.text){var r=document.createElement("div");r.style.gridArea="1/1";var n=this.data.text.render();if(this.h2a=n,r.appendChild(n),r.setAttribute("id","rem"),this.data.hasRect){var i=document.createElement("div");i.style.width="30px",i.style.height="30px",i.style.backgroundColor="orange"}else for(var o=0;o<this.res.children.length;o++)"rem"===this.res.children[o].id&&this.res.removeChild(this.res.children[o]);this.res.appendChild(r)}this.lastScrollTop=0,this.count=1,this.isUp=!1,this.done=!1,this.fireOnce=!0,this.dec=1,this.tdec=1,this.atdec=0,this.textOpacity=1,this.res.children[this.res.children.length-1].children[0].style.opacity=0,this.data.text&&window.addEventListener("scroll",(function(){e.h2a.style.backgroundColor="rgba(0, 0, 0, 0.8)",e.h2a.style.opacity=1})),window.addEventListener("scroll",(function(t){if(e.data.stickyData&&e.data.stickyData.top){var r=e.data.stickyData.top;e.data.uncomment&&(window.scrollY>r?(wrapDiv.style.background="pink",wrapDiv.style.position="relative",wrapDiv.style.top=r):(wrapDiv.style.background="orange",wrapDiv.style.top=0,wrapDiv.style.position="fixed"))}var n=window.scrollY||document.documentElement.scrollTop;if(n>e.lastScrollTop?e.isUp=!1:e.isUp=!0,e.lastScrollTop=n<=0?0:n,e.isUp&&e.textOpacity<.98&&(e.textOpacity+=.01),!1===e.isUp&&e.textOpacity>.02&&(e.textOpacity-=.01),e.data.mask){var i=e.res,o=smartRange(window.scrollY,{min:e.data.maskData.start,max:e.data.maskData.end},{min:0,max:7});if(i.style.clipPath="inset(".concat(o,"% ").concat(o,"% round 20px)"),!e.hasH2){var s=document.createElement("div");s.style.background="#ecf0f1",s.style.width="86%",s.style.marginLeft="7%",s.style.borderRadius="1rem",e.hasH2=!0,s.appendChild(e.data.newSection.render()),i.parentElement.appendChild(s)}}e.data.targetHeight}))}},{key:"setLazyText",value:function(e){var t=this;return this.lazyText=e,window.addEventListener("scroll",(function(){for(var e=smartRange(window.scrollY,{min:t.lazyText.start,max:t.lazyText.end},{min:0,max:200}),r=smartRange(window.scrollY,{min:t.lazyText.start,max:t.lazyText.end},{min:0,max:1}),n=0;n<t.h2a.children[0].children.length;n++)console.log("P"),t.h2a.children[0].children[n].style.transform="matrix(1, 0, 0, 1, 0, -".concat(e,")"),t.h2a.children[0].children[n].style.opacity="".concat(r-.2*n)})),this}},{key:"setProps",value:function(e){return e.targetHeight&&(this.data.targetHeight=e.targetHeight),e.flagValue&&(this.flagValue=e.flagValue),this}},{key:"fixedToRelative",value:function(e){this.data.uncomment=e}},{key:"toSticky",value:function(){return this.res.style.position="sticky",this.res.style.top="0",this}},{key:"setOpacityRange",value:function(e){var t=this;return this.data.opacityRange=e.opacityRange,this.data.scaleRange=e.scaleRange,window.addEventListener("scroll",(function(){var e=smartRange(window.scrollY,{min:t.data.opacityRange.start,max:t.data.opacityRange.end},{min:0,max:1});t.h2a.style.opacity=e;var r=smartRange(window.scrollY,{min:t.data.scaleRange.start,max:t.data.scaleRange.end},{min:3,max:1});window.matchMedia("(max-device-width: 415px)").matches||(t.h2a.children[0].style.transform="scale(".concat(r,")"))})),this}},{key:"stick",value:function(e){return e?(e.offset&&(null!=this.data.stickyData?this.data.stickyData.top=e.offset:this.data.stickyData={top:e.offset}),e.value?this.makeSticky():this.noSticky(),this):(this.makeSticky(),this)}},{key:"to100vh",value:function(){this.res.style.height="100vh"}},{key:"makeSticky",value:function(){return this.res.style.position="sticky",this.res.style.top=0,this}},{key:"noSticky",value:function(){return this.res.style.position="",this}},{key:"toOpacity",value:function(e){this.res.style.opacity="".concat(e)}},{key:"render",value:function(e){if(!e)return this.res;document.querySelector(e).appendChild(this.res)}}])}();function transformanim_typeof(e){return transformanim_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},transformanim_typeof(e)}function transformanim_classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function transformanim_defineProperties(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,transformanim_toPropertyKey(n.key),n)}}function transformanim_createClass(e,t,r){return t&&transformanim_defineProperties(e.prototype,t),r&&transformanim_defineProperties(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function transformanim_toPropertyKey(e){var t=transformanim_toPrimitive(e,"string");return"symbol"==transformanim_typeof(t)?t:t+""}function transformanim_toPrimitive(e,t){if("object"!=transformanim_typeof(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=transformanim_typeof(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function convertRange(e,t,r){var n=(e-t.min)*(r.max-r.min)/(t.max-t.min)+r.min;return n>1&&(n=2-n),n}var TransformAnim=function(){return transformanim_createClass((function e(t){transformanim_classCallCheck(this,e),this.data=t,this.targetHeight=this.data.targetHeight,void 0===this.data.type?this.type="default":this.type=this.data.type,this.layout="flex",this.setup()}),[{key:"toCode",value:function(){return[""]}},{key:"set",value:function(e){return console.log("WHY NOT 900"),e.arrayPadding&&(this.wrdiv.style.marginTop=e.arrayPadding.value),e.height&&(this.wrdiv.style.height=e.height),this}},{key:"setup",value:function(){var e=this,t=document.createElement("div");this.wrdiv=t,t.style.display="flex",t.style.flexDirection="column",this.data.overflow&&(t.style.overflow="hidden"),t.style.display="flex",t.style.justifyContent="center",t.style.alignItems="center",t.style.background="orange",t.style.height="900px",this.data.sticky||(t.style.position="fixed"),t.style.marginTop="0px";var r=document.createElement("img");r.style.gridArea="1/1",r.style.display="none",r.style.width="50%",r.setAttribute("src","M2.jpeg"),r.setAttribute("class","m2"),t.appendChild(r),this.data.view&&(this.m2img=this.data.view.render(),t.appendChild(this.m2img)),this.data.paragraph&&(this.paragraph=this.data.paragraph.render(),t.appendChild(this.paragraph)),this.data.view&&(r.style.display="none");var n=document.createElement("h2");n.style.fontFamily="Arial",n.style.fontSize="2.4rem",n.style.background="linear-gradient(#3498db, #1abc9c)",n.style.webkitBackgroundClip="text",n.style.webkitTextFillColor="transparent";var i=document.createTextNode("Supercharged");n.appendChild(i),!0!==this.data.showTitle&&void 0!==this.data.showTitle||(this.data.content&&this.data.content.render?t.appendChild(this.data.content.render()):t.appendChild(n));var o=document.createElement("p");document.createTextNode("Hello"),t.appendChild(o),this.res=t,window.addEventListener("scroll",(function(i){return e.resize(t,r,n)})),this.resize(t,r,n)}},{key:"setStickyData",value:function(e){return this.data.stickyData=e,this}},{key:"toAuto",value:function(){return this.res.style.height="auto",this}},{key:"stick",value:function(e){return e?(e.offset&&(null!=this.data.stickyData?this.data.stickyData.top=e.offset:(this.data.stickyData={top:e.offset},this.fixedToRelative(!0))),e.value?this.makeSticky():this.noSticky(),this):(this.makeSticky(),this)}},{key:"makeSticky",value:function(){return this.wrdiv.style.position="sticky",this.wrdiv.style.top=0,this}},{key:"setProps",value:function(e){return e.targetHeight&&(this.data.targetHeight=e.targetHeight),e.flagValue&&(this.data.flagValue=e.flagValue),this}},{key:"noSticky",value:function(){return this.wrdiv.style.position="",this}},{key:"toSticky",value:function(){return this.wrdiv.style.position="sticky",this.wrdiv.style.top="0",this}},{key:"toOpacity",value:function(e){this.res.style.opacity="".concat(e)}},{key:"setUncomment",value:function(e){this.data.uncomment=e}},{key:"fixedToRelative",value:function(e){return this.data.uncomment=e,this}},{key:"mask",value:function(e){var t=this;return window.addEventListener("scroll",(function(){t.innerMask(e)})),this}},{key:"innerMask",value:function(e){if(e){var t=transformanim_smartRange(window.scrollY,{min:e.start,max:e.end},{min:7,max:0});console.warn(t),console.warn(window.scrollY),transformanim_smartRange(window.scrollY,{min:e.start,max:e.end},{min:37,max:37})}return this}},{key:"setScale",value:function(e){var t=this;return this.data.range=e,this.m2img.style.transform="scale(".concat(this.data.range.scaleMax,")"),window.addEventListener("scroll",(function(){var e=transformanim_smartRange(window.scrollY,{min:t.data.range.min,max:t.data.range.max},{min:t.data.range.scaleMax,max:t.data.range.scaleMin});null!=t.m2img&&(t.m2img.style.transform="scale(".concat(e,")"))})),this}},{key:"resize",value:function(e,t,r){var n=window.scrollY||document.documentElement.scrollTop;if(n>this.lastScrollTop?this.isUp=!1:this.isUp=!0,this.data.sticky)e.style.background="#fafafa";else if(this.data.stickyData){var i=this.data.stickyData.top;this.data.uncomment&&(window.scrollY>i?(e.style.background="pink",e.style.position="relative",e.style.top=i):(e.style.background="orange",e.style.top=0,e.style.position="fixed"))}this.lastScrollTop=n<=0?0:n;var o=t;this.m2img=t,this.data.view&&(o=this.m2img);var s=transformanim_smartRange(window.scrollY,{min:3150,max:3300},{min:0,max:100}),a=transformanim_smartRange(window.scrollY,{min:3150,max:3300},{min:60,max:80}),l=transformanim_smartRange(window.scrollY,{min:3150,max:3300},{min:0,max:40});this.data.operation&&"translate"===this.data.operation.type&&(o.style.transform="translate3d(".concat(s,"%, ").concat(s/2,"%, 0px) scale(").concat(a/100,") rotate(").concat(l,"deg)"))}},{key:"render",value:function(e){if(!e)return this.res;document.querySelector(e).appendChild(this.res)}}])}();function transformanim_smartRange(e,t,r){e<t.min&&(e=t.min),e>t.max&&(e=t.max);var n=(e-t.min)/(t.max-t.min);t.min>t.max&&(n=(e-t.max)/(t.min-t.max));var i=(r.min-r.max)*n-r.min;if(i=Math.abs(i),r.min<r.max){var o=(r.max+Math.abs(r.min))*n;i=r.min+o}return i}function stacker_typeof(e){return stacker_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},stacker_typeof(e)}function stacker_classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function stacker_defineProperties(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,stacker_toPropertyKey(n.key),n)}}function stacker_createClass(e,t,r){return t&&stacker_defineProperties(e.prototype,t),r&&stacker_defineProperties(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function stacker_toPropertyKey(e){var t=stacker_toPrimitive(e,"string");return"symbol"==stacker_typeof(t)?t:t+""}function stacker_toPrimitive(e,t){if("object"!=stacker_typeof(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=stacker_typeof(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var Stacker=function(){return stacker_createClass((function e(){stacker_classCallCheck(this,e),this.res=document.createElement("div"),this.res.style.display="flex",this.res.style.flexDirection="column"}),[{key:"add",value:function(e){for(var t=0;t<e.length;t++){var r=e[t].render();0===t&&(r.style.zIndex=1),this.res.appendChild(r)}return this}},{key:"render",value:function(e){if(!e)return this.res;document.querySelector(e).appendChild(this.res)}}])}();function scrollvideo_typeof(e){return scrollvideo_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},scrollvideo_typeof(e)}function scrollvideo_classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function scrollvideo_defineProperties(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,scrollvideo_toPropertyKey(n.key),n)}}function scrollvideo_createClass(e,t,r){return t&&scrollvideo_defineProperties(e.prototype,t),r&&scrollvideo_defineProperties(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function scrollvideo_toPropertyKey(e){var t=scrollvideo_toPrimitive(e,"string");return"symbol"==scrollvideo_typeof(t)?t:t+""}function scrollvideo_toPrimitive(e,t){if("object"!=scrollvideo_typeof(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=scrollvideo_typeof(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var ScrollVideo=function(){return scrollvideo_createClass((function e(){scrollvideo_classCallCheck(this,e),this.frameNumber=0,this.res=document.createElement("div"),this.vid=null,this.minScrollHeight=0,this.maxScrollHeight=1e3,this.videoUrl=""}),[{key:"set",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.minScrollHeight,r=void 0===t?0:t,n=e.maxScrollHeight,i=void 0===n?1e3:n,o=e.videoUrl,s=void 0===o?"":o;return this.minScrollHeight=r,this.maxScrollHeight=i,this.videoUrl=s,this.createElements("V0"),this.vid=this.res.children[0],this.init(),this}},{key:"createElements",value:function(e){var t=document.createElement("video");t.id=e,t.setAttribute("tabindex","0"),t.setAttribute("autobuffer","autobuffer"),t.setAttribute("preload","preload"),t.style.position="sticky",t.style.top="0",t.style.left="0",t.style.width="100%",t.style.height="100vh",t.style.border="1px solid orange";var r=document.createElement("source");r.type='video/mp4; codecs="avc1.42E01E, mp4a.40.2"',r.src=this.videoUrl,t.appendChild(r),this.res.appendChild(t);var n=document.createElement("p");n.id="time",n.style.fontFamily="Helvetica, Arial, sans-serif",n.style.fontSize="24px",this.res.appendChild(n);var i=document.createElement("div");i.id="set-height",i.style.display="block",this.setop=i,this.res.appendChild(i)}},{key:"sticky",value:function(){return this.res.style.position="sticky",this.res.style.top=0,this}},{key:"init",value:function(){var e=this;this.vid.addEventListener("loadedmetadata",(function(){var t=e.setop;if(t){var r=e.maxScrollHeight-e.minScrollHeight;t.style.height="".concat(r,"px")}else console.error("Error: 'set-height' element not found.")})),this.scrollPlay()}},{key:"scrollPlay",value:function(){var e=this;if(this.vid&&!isNaN(this.vid.duration)){var t=Math.max(this.minScrollHeight,Math.min(window.pageYOffset,this.maxScrollHeight)),r=this.maxScrollHeight-this.minScrollHeight,n=(t-this.minScrollHeight)/r;this.vid.currentTime=n*this.vid.duration,window.requestAnimationFrame((function(){return e.scrollPlay()}))}else window.requestAnimationFrame((function(){return e.scrollPlay()}))}},{key:"toCode",value:function(){return[""]}},{key:"render",value:function(e){if(!e)return this.res;document.querySelector(e).appendChild(this.res)}}])}();"undefined"!=typeof window&&(window.ElementMapper=elementMapper.I,window.Animator=animator.y,window.Text=layout_text.E,window.Image=layout_image._,window.Link=layout_link.N,window.FlexRow=flexRow.Y,window.UINavBar=newNavBar.X,window.Free=free.b,window.Audio=audionew.f,window.Progress=progress.k,window.Center=center.o,window.Code=code.C,window.Stack=stack.B,window.Wrapper=container.m,window.MetaAdder=metaAdder.W,window.Table=table.X,window.Dropdown=dropdown2025.m,window.Modal=modal2025.a,window.TextField=textField.A,window.Card=flexCard.Z,window.Wrap=wrap.B,window.FlexGrid=flexGrid.M,window.ZoomCard=zoomCard.U,window.CustomDivRenderer=CustomDivRenderer,window.SideBar=SideBar,window.SideNav=sideNavBar.f,window.SimpleBar=SimpleBar,window.DesktopBar=betaDesktopBar.C,window.MobileBar=betaMobileBar.m,window.Switcher=multiswitcher.i,window.Spacer=spacer.h,window.HScroller=HScroller,window.Checkbox=layout_checkbox.S,window.Base=base.C,window.FilePickera=imagePicker.I,window.Picker=picker.L,window.Range=range.Q,window.RadioGroup=formComponents_radio.z,window.DataList=dataList.T,window.Button=layout_button.$,window.Des=designer.H,window.LinkStyler=linkGetter.a,window.CardGen=cardGetter.Z,window.KeyframeAnim=KeyframeAnim,window.TransformAnim=TransformAnim,window.Stacker=Stacker,window.ScrollVideo=ScrollVideo),void 0!==__webpack_require__.g&&(__webpack_require__.g.ElementMapper=elementMapper.I,__webpack_require__.g.Animator=animator.y,__webpack_require__.g.Text=layout_text.E,__webpack_require__.g.Image=layout_image._,__webpack_require__.g.Link=layout_link.N,__webpack_require__.g.FlexRow=flexRow.Y,__webpack_require__.g.UINavBar=newNavBar.X,__webpack_require__.g.Free=free.b,__webpack_require__.g.Audio=audionew.f,__webpack_require__.g.Progress=progress.k,__webpack_require__.g.Center=center.o,__webpack_require__.g.Code=code.C,__webpack_require__.g.Stack=stack.B,__webpack_require__.g.Wrapper=container.m,__webpack_require__.g.MetaAdder=metaAdder.W,__webpack_require__.g.Table=table.X,__webpack_require__.g.Dropdown=dropdown2025.m,__webpack_require__.g.Modal=modal2025.a,__webpack_require__.g.TextField=textField.A,__webpack_require__.g.Card=flexCard.Z,__webpack_require__.g.Wrap=wrap.B,__webpack_require__.g.FlexGrid=flexGrid.M,__webpack_require__.g.ZoomCard=zoomCard.U,__webpack_require__.g.CustomDivRenderer=CustomDivRenderer,__webpack_require__.g.SideBar=SideBar,__webpack_require__.g.SideNav=sideNavBar.f,__webpack_require__.g.SimpleBar=SimpleBar,__webpack_require__.g.DesktopBar=betaDesktopBar.C,__webpack_require__.g.MobileBar=betaMobileBar.m,__webpack_require__.g.Switcher=multiswitcher.i,__webpack_require__.g.Spacer=spacer.h,__webpack_require__.g.HScroller=HScroller,__webpack_require__.g.Checkbox=layout_checkbox.S,__webpack_require__.g.Base=base.C,__webpack_require__.g.FilePickera=imagePicker.I,__webpack_require__.g.Picker=picker.L,__webpack_require__.g.Range=range.Q,__webpack_require__.g.RadioGroup=formComponents_radio.z,__webpack_require__.g.DataList=dataList.T,__webpack_require__.g.Button=layout_button.$,__webpack_require__.g.Des=designer.H,__webpack_require__.g.LinkStyler=linkGetter.a,__webpack_require__.g.CardGen=cardGetter.Z,__webpack_require__.g.KeyframeAnim=KeyframeAnim,__webpack_require__.g.TransformAnim=TransformAnim,__webpack_require__.g.Stacker=Stacker,__webpack_require__.g.ScrollVideo=ScrollVideo),module.exports=__webpack_exports__})();