nodality 1.0.0-beta.11 → 1.0.0-beta.13

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.
Files changed (94) hide show
  1. package/dist/animator.cjs.js +1 -1
  2. package/dist/animator.esm.js +1 -1
  3. package/dist/appleanim.cjs.js +1 -1
  4. package/dist/appleanim.esm.js +1 -1
  5. package/dist/audionew.cjs.js +1 -1
  6. package/dist/audionew.esm.js +1 -1
  7. package/dist/base.cjs.js +1 -1
  8. package/dist/base.esm.js +1 -1
  9. package/dist/betaDesktopBar.esm.js +1 -1
  10. package/dist/betaMobileBar.esm.js +1 -1
  11. package/dist/bundle.umd.js +1 -1
  12. package/dist/button.cjs.js +1 -1
  13. package/dist/button.esm.js +1 -1
  14. package/dist/cardGetter.cjs.js +1 -1
  15. package/dist/cardGetter.esm.js +1 -1
  16. package/dist/center.cjs.js +1 -1
  17. package/dist/center.esm.js +1 -1
  18. package/dist/checkbox.cjs.js +1 -1
  19. package/dist/checkbox.esm.js +1 -1
  20. package/dist/code.cjs.js +1 -1
  21. package/dist/code.esm.js +1 -1
  22. package/dist/container.cjs.js +1 -1
  23. package/dist/container.esm.js +1 -1
  24. package/dist/datalist.cjs.js +1 -1
  25. package/dist/datalist.esm.js +1 -1
  26. package/dist/designer.cjs.js +1 -1
  27. package/dist/designer.esm.js +1 -1
  28. package/dist/dropdown.cjs.js +1 -1
  29. package/dist/dropdown.esm.js +1 -1
  30. package/dist/elementMapper.cjs.js +1 -1
  31. package/dist/elementMapper.esm.js +1 -1
  32. package/dist/finalresult.esm.js +1 -1
  33. package/dist/flexCard.cjs.js +1 -1
  34. package/dist/flexCard.esm.js +1 -1
  35. package/dist/flexGrid.cjs.js +1 -1
  36. package/dist/flexGrid.esm.js +1 -1
  37. package/dist/flexRow.cjs.js +1 -1
  38. package/dist/flexRow.esm.js +1 -1
  39. package/dist/floatingInput.cjs.js +1 -1
  40. package/dist/floatingInput.esm.js +1 -1
  41. package/dist/free.cjs.js +1 -1
  42. package/dist/free.esm.js +1 -1
  43. package/dist/horizontalScroller.esm.js +1 -1
  44. package/dist/image.cjs.js +1 -1
  45. package/dist/image.esm.js +1 -1
  46. package/dist/imagePicker.cjs.js +1 -1
  47. package/dist/imagePicker.esm.js +1 -1
  48. package/dist/index.cjs.js +1 -1
  49. package/dist/index.esm.js +1 -1
  50. package/dist/link.cjs.js +1 -1
  51. package/dist/link.esm.js +1 -1
  52. package/dist/linkGetter.cjs.js +1 -1
  53. package/dist/linkGetter.esm.js +1 -1
  54. package/dist/metaAdder.cjs.js +1 -1
  55. package/dist/metaAdder.esm.js +1 -1
  56. package/dist/modal2025.cjs.js +1 -1
  57. package/dist/modal2025.esm.js +1 -1
  58. package/dist/multiswitchers.esm.js +1 -1
  59. package/dist/newNavBar.cjs.js +1 -1
  60. package/dist/newNavBar.esm.js +1 -1
  61. package/dist/picker.cjs.js +1 -1
  62. package/dist/picker.esm.js +1 -1
  63. package/dist/progress.cjs.js +1 -1
  64. package/dist/progress.esm.js +1 -1
  65. package/dist/radio.cjs.js +1 -1
  66. package/dist/radio.esm.js +1 -1
  67. package/dist/range.cjs.js +1 -1
  68. package/dist/range.esm.js +1 -1
  69. package/dist/scrollvideo.cjs.js +1 -1
  70. package/dist/scrollvideo.esm.js +1 -1
  71. package/dist/sideBar.cjs.js +1 -1
  72. package/dist/sideBar.esm.js +1 -1
  73. package/dist/sideNavBar.cjs.js +1 -1
  74. package/dist/sideNavBar.esm.js +1 -1
  75. package/dist/simpleBar.cjs.js +1 -1
  76. package/dist/simpleBar.esm.js +1 -1
  77. package/dist/stack.cjs.js +1 -1
  78. package/dist/stack.esm.js +1 -1
  79. package/dist/stacker.cjs.js +1 -1
  80. package/dist/stacker.esm.js +1 -1
  81. package/dist/table.cjs.js +1 -1
  82. package/dist/table.esm.js +1 -1
  83. package/dist/text.cjs.js +1 -1
  84. package/dist/text.esm.js +1 -1
  85. package/dist/textField.cjs.js +1 -1
  86. package/dist/textField.esm.js +1 -1
  87. package/dist/transformanim.cjs.js +1 -1
  88. package/dist/transformanim.esm.js +1 -1
  89. package/dist/wrap.cjs.js +1 -1
  90. package/dist/wrap.esm.js +1 -1
  91. package/dist/zoomCard.cjs.js +1 -1
  92. package/dist/zoomCard.esm.js +1 -1
  93. package/lib/designer.js +30 -16
  94. package/package.json +17 -4
@@ -1 +1 @@
1
- (()=>{"use strict";var __webpack_modules__={16:(e,t,s)=>{s.d(t,{E:()=>r});var i=s(762);class r extends i.y{constructor(e,t){super(),this.text=e,this.res=null,this.setup(t),this.code=[],this.elCSS=[],this.html=[],this.react=[],this.code.push(`new Text("${this.text}")`)}flexOne(){return this.res.style.flex="1",this}setGridWithoutCode(){return this.res.style.border="1px solid white",this}setArea(e){return this.res.style.gridArea=e,this}toCodea(){return this.excludeFromCodeTrue&&(this.code=[""]),this.code}toCode(){if(this.excludeFromCodeTrue)return[""];const e=Object.fromEntries(Object.entries(this.options).filter((([e,t])=>null!==t))),t=JSON.stringify(e,null,4).replace(/"([^"]+)":/g,"$1:");return console.log("OCO"),console.log(t),[`new Text("${this.text}").set(${t})`]}toCSS(){return this.css}toHTMLA(){return this.html}toElCSS(){return this.elCSS=this.elCSS.map((e=>" "+e)),this.preffersId?this.elCSS.unshift(this.res.id+" { \n"):this.elCSS.unshift("."+this.class+" { \n"),this.elCSS.push(" } \n \n"),this.elCSS}getType(){return"S1"===this.options.fluidc?"HTMLHeaderElement":"HTMLParagraphElement"}gradientOptions(e){if(0===e.length)return this;const t=e.filter((e=>"gradient"===e.op.name))[0];if(void 0===t)return this;const s=t.op;if(t.point){const e=()=>{window.matchMedia(`(min-width: ${t.range[0]}) and (max-width: ${t.range[1]})`).matches&&(this.prevBackground=this.res.style.color.toString(),this.res.style.background=s.gradient,this.res.style.WebkitBackgroundClip="text")};e(),window.addEventListener("resize",e)}}strokeOptions(e){if(0===e.length)return this;const t=e.filter((e=>"blast"===e.op.name))[0];if(void 0===t)return this;console.log("DEL");const s=t.op;if(t.point){const e=()=>{window.matchMedia(`(min-width: ${t.range[0]}) and (max-width: ${t.range[1]})`).matches&&(s.color?this.res.style["-webkit-text-stroke"]=`${s.width?s.width:"1px"} ${s.color}`:this.res.style["-webkit-text-stroke"]="1px orange",this.res.style["-webkit-text-fill-color"]="transparent")};e(),window.addEventListener("resize",e)}else s.color&&(this.res.style["-webkit-text-stroke"]=`${s.width?s.width:"1px"} ${s.color}`),this.res.style["-webkit-text-fill-color"]="transparent"}stroke(){return this.res.style["-webkit-text-stroke"]="3px orange",this}fill(){return this.res.style["-webkit-text-fill-color"]="transparent",this}rowCol(e,t){return this.res.style.gridRow=e,this.res.style.gridColumn=t,this}setGridRow(e){return this.res.style.gridRow=e,this}setGridCol(e){return this.res.style.gridColumn=e,this}toHTML(){return this.res}onTap(e){return this.res.addEventListener("click",e),this}setClass(e){return this.res.setAttribute("class",e),this}setRandom(){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}styled(e){return this.set(e),this}removeQuotesFromFirstWord(e){return e.replace(/"([^"]+)":/g,"$1:")}set(e){this.resCopy=this.res,this.options=e,super.setPrevText(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&&super.setIndex(e.index),e.index&&(this.index=e.index),e.preffersId&&(this.preffersId=e.preffersId),super.setPref(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: ${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),super.setID(this.options.id),this.options.class&&this.res.setAttribute("class",this.options.class),super.setClass(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: ${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=`${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);let t=[];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&&super.setAny({globalBlast:`${e.stroke.op.width} ${e.stroke.op.color}`}),e.span&&(e.span.prevText=this.text);let i=[e.stroke,e.gradient,e.animation,e.span,e.backgroundOp,e.layout,e.marginOp,e.shadow,e.animation,e.filtera,e.transform];i=i.filter((e=>null!=e));for(var s=0;s<i.length;s++)t.push({range:i[s].range,log:i[s].op.name,target:i[s].target,op:i[s].op});let r=[];e.borderObj&&r.push("border"),e.background&&r.push("background"),e.mar&&r.push("margin"),e.animation&&r.push("animation"),e.span&&r.push("span"),this.chainReact(t,this.options.id,r)}return this}excludeFromCode(){return this.excludeFromCodeTrue=!0,this}addIcon(e){let 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}checkForAnimation(e){e.sort(((e,t)=>parseInt(e.range[0])-parseInt(t.range[0])));const t=window.innerWidth;for(const s of e){const[e,i]=s.range,r=parseInt(e),n=parseInt(i);if(t>=r&&t<=n&&"animation"===s.log){const e=[{opacity:0,transform:"translateY(100px)"},{opacity:1,transform:"translateY(0)"}];this.res.animate(e,{duration:1e3,easing:"ease"})}}}resetSmall(){this.res.style["-webkit-text-stroke"]="",this.res.style["-webkit-text-fill-color"]=""}resetGradient(){return this.res.style.WebkitBackgroundClip="text",this.res.style.background="transparent",this}resetStroke(){this.res.style["-webkit-text-stroke"]="",this.res.style["-webkit-text-fill-color"]=""}innerStroke(e){e.color?this.res.style["-webkit-text-stroke"]=`${e.width?e.width:"1px"} ${e.color}`:this.res.style["-webkit-text-stroke"]="1px orange",this.res.style["-webkit-text-fill-color"]="transparent"}innerGradient(e){this.res.style.background="linear-gradient(45deg, #ff0000, #00ff00)",this.res.style["-webkit-background-clip"]="text"}arrayMargin(e,t){return t||(this.res.style.marginLeft=`${e[0]}px`,this.res.style.marginTop=`${e[1]}px`,this.res.style.marginRight=`${e[2]}px`,this.res.style.marginBottom=`${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}clampExperiment(){return this.res.style.fontSize="clamp(1rem, calc(1rem * 10rem), 3rem)",this}between(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}betweenCopy(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}stringGen(e){for(var t="",s=0;s<e;s++)t+="abcdefghijklmnopqrstuvwxyz".charAt(Math.floor(26*Math.random()));return t}initLetter(e){let t=document.createElement("style");document.body.appendChild(t),Math.random();let s=this.stringGen(1e3);return this.res.setAttribute("id",s),document.styleSheets[0].insertRule(`#${s}::first-letter { color: green; font-size: 3em; padding: 0.1em }`,0),this}constant(e){return"S1"===e&&this.jumbotron(),"S2"===e&&this.large(),"S3"===e&&this.medium(),this}minusMargin(){return this.res.style.marginRight="-3.1em",this}fluid(e){if("S1"===e){this.res=document.createElement("h1");let e=document.createTextNode(this.text);this.res.appendChild(e),this.res.style.fontSize="calc(1.625rem + 4.3vw)"}if("S2"===e){this.res=document.createElement("h2");let e=document.createTextNode(this.text);this.res.appendChild(e),this.res.style.fontSize="calc(1.525rem + 3.525vw)"}if("S3"===e){this.res=document.createElement("h3");let e=document.createTextNode(this.text);this.res.appendChild(e),this.res.style.fontSize="calc(1.375rem + 2.75vw)"}if("S4"===e){this.res=document.createElement("h4");let e=document.createTextNode(this.text);this.res.appendChild(e),this.res.style.fontSize="calc(1.275rem + 1.975vw)"}return"S5"===e&&(this.res.style.fontSize="calc(1.1rem + 1.2vw)"),this}getClampValue(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}clampCopy(e){return this.res.style.fontSize=this.getClampValue(e),this}fluidCopy(e){if(e instanceof Object){this.prevStylex=this.res.style,this.res=document.createElement("h1"),this.res.style.cssText=this.prevStylex.cssText;let 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;let e=document.createTextNode(this.text);this.res.appendChild(e),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;let e=document.createTextNode(this.text);this.res.appendChild(e),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;let e=document.createTextNode(this.text);this.res.appendChild(e),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;let e=document.createTextNode(this.text);this.res.appendChild(e),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;let e=document.createTextNode(this.text);this.res.appendChild(e),this.res.style.fontSize="calc(1.125rem + 1.975vw)"}return"S6"===e&&(this.options&&!1===this.options.preffersId?this.html.push(`<p class="${this.options.class}">${this.text}</p> \n \n`):this.options&&this.options.id&&this.html.push(`<p id="${this.options.id.substr(1)}">${this.text}</p> \n \n`),this.res.style.fontSize="calc(1rem + 0.5vw)"),this}toReactComponent(){return this.react.push("function Godzilla() { \n"),this.react.push(`return <h1 class="${this.options.class}">${this.text}</h1> \n`),this.react.push("} \n \n"),this.react}myself(e){const t=()=>{window.matchMedia("(max-device-width: 415px)").matches?this.res.style.fontSize=e.desktop:this.res.style.fontSize=e.phone};return t(),window.addEventListener("resize",t),this}jumbotron(){const e=()=>{window.matchMedia("(max-device-width: 415px)").matches?this.res.style.fontSize="8rem":this.res.style.fontSize="6rem"};return e(),window.addEventListener("resize",e),this}large(){const e=()=>{window.matchMedia("(max-device-width: 415px)").matches?this.res.style.fontSize="7rem":this.res.style.fontSize="5rem"};return e(),window.addEventListener("resize",e),this}frame(e){return this.res.style.width=e.width,this.res.style.height=e.height,this}vw(e,t,s){}responsive(e){this.set=!1,this.setB=!1;const t=()=>{window.innerWidth<e.minw?(this.setB=!1,this.set||(this.res.style.color="#3498db",this.res.style.fontSize=e.baseVW/100*window.innerWidth+"px",this.set=!0)):window.innerWidth>e.maxw?(this.set=!1,this.setB||(this.res.style.color="orange",this.res.style.fontSize=e.baseVW/100*e.maxw+"px",this.setB=!0)):(this.set=!1,this.setB=!1,this.res.style.color="black",this.res.style.fontSize=`${e.baseVW}vw`)};return t(),window.addEventListener("resize",t),this}xlarge(){const e=()=>{window.matchMedia("(max-device-width: 415px)").matches?this.res.style.fontSize="6.5rem":this.res.style.fontSize="8.5rem"};return e(),window.addEventListener("resize",e),this}medium(){const e=()=>{window.matchMedia("(max-device-width: 415px)").matches?this.res.style.fontSize="2.25rem":this.res.style.fontSize="1.5em"};return e(),window.addEventListener("resize",e),this}auto(){const e=()=>{window.matchMedia("(max-device-width: 415px)").matches?this.res.style.fontSize="2rem":this.res.style.fontSize="1rem"};return e(),window.addEventListener("resize",e),this}small(){const e=()=>{window.matchMedia("(max-device-width: 415px)").matches?this.res.style.fontSize="1.5em":this.res.style.fontSize="1em"};return e(),window.addEventListener("resize",e),this}sizes(e){this.res.style.fontSize=`${e[0].size}rem`;const t=()=>{for(var t=0;t<e.length;t++)e[t].width&&window.matchMedia(`(min-width: ${e[t].width}px)`).matches&&(this.res.style.fontSize=`${e[t].size}`);window.matchMedia("(max-device-width: 415px)").matches&&(this.res.style.fontSize=`${e[e.length-1].mobile}`)};return t(),window.addEventListener("resize",t),this}setup(e){let t;e?(t=document.createElement(e.type),t.setAttribute("id",e.id),e.type):t=document.createElement("p");let s=document.createTextNode(this.text);return t.appendChild(s),this.res=t,this.res.style.padding=0,this.res.style.margin=0,this}hide(){return this.res.style.visibility="hidden",this}font(e){return this.res.style.fontFamily=e,this}center(){return this.res.style.textAlign="center",this}size(e){return this.res.style.fontSize=e,this}em(e){return this.res.style.fontSize=`${e}em`,this}color(e){return this.res.style.color=e,this}align(e){return this.res.style.textAlign=`${e}`,this}weight(e){return this.res.style.fontWeight=e,this}bold(){return this.res.style.fontWeight="bold",this}italic(){return this.res.style.fontStyle="italic",this}width(e,t){return this.res.style.width=e,t&&(this.res.style.marginLeft="auto",this.res.style.marginRight="auto"),this}offset(e){return this.res.style.gridRow=2,this.res.style.gridColumn=2,this.res.style.marginLeft="-60px",this}border(e,t){return this.res.style.border=`${t}px solid ${e}`,this}padding(e,t,s,i){return(e||t||s||i)&&(this.res.style.paddingLeft=e,this.res.style.paddingTop=t,this.res.style.paddingRight=s,this.res.style.paddingBottom=i),t||s||i||(this.res.style.padding=e),this}arrayPadding(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}margin(e,t,s,i){return(e||t||s||i)&&(this.res.style.marginLeft=e,this.res.style.marginTop=t,this.res.style.marginRight=s,this.res.style.marginBottom=i),t||s||i||(this.res.style.margin=e),this}margin(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}headline(){return this.em(4),this.font("Arial"),this.bold(),this}caption(){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}updating(e,t){var s=this.res,i=this.text;return Object.defineProperty(e,t,{set(e){let t=document.createTextNode(i.replace("$",e));s.replaceChild(t,s.childNodes[0])}}),this}style(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}applyStyle(e,t){return window.matchMedia(`(max-width: ${e}px)`).matches&&Object.assign(this.res.style,t.styles),this}nextApply(e){let t=[];this.res.style;const s=s=>{t[0].matches?Object.assign(this.res.style,e[0].styles):t[1].matches?Object.assign(this.res.style,e[1].styles):Object.assign(this.res.style,e[e.length-1].styles)};for(var i=0;i<e.length;i++){let r=e[i],n=window.matchMedia(`(min-width: ${r.min}px) and (max-width: ${r.max}px)`);t.push(n),t[i].addListener(s)}return s(),this}apply(e){var t=this.res.styles;const s=()=>{for(var s=0;s<e.length;s++){let i=e[s];i.min&&i.max?window.matchMedia(`(min-width: ${i.min}px) and (max-width: ${i.max}px)`).matches?Object.assign(this.res.style,i.styles):(alert("YES min max, but does not match"),Object.assign(this.res.style,t)):window.matchMedia(`(max-width: ${i.max}px)`).matches?Object.assign(this.res.style,i.styles):(alert("NO min max, and does not match"),Object.assign(this.res.style,t))}};return s(),window.addEventListener("resize",s),this}render(e){if(!e)return this.res;this.options&&this.options.id&&this.res.setAttribute("id",this.options.id),document.querySelector(e).appendChild(this.res)}}},26:(e,t,s)=>{s(762).y},69:(e,t,s)=>{s.d(t,{m:()=>r});var i=s(762);class r extends i.y{constructor(){super(),this.res=document.createElement("div"),this.toggleWrap=document.createElement("div"),this.toggleWrap.style.zIndex=9999,this.toggleWrap.style.borderRadius="0.3rem",this.toggleWrap.style.height="40px",this.toggleWrap.style.cursor="pointer",this.toggleWrap.style.display="flex",this.toggleWrap.style.alignItems="center",this.toggleWrap.style.justifyContent="center",this.res.appendChild(this.toggleWrap),this.contentWrap=document.createElement("div"),this.contentWrap.style.position="absolute",this.contentWrap.style.background="#ecf0f1",this.contentWrap.style.borderRadius="0.3rem",this.contentWrap.style.boxShadow="0 2px 5px rgba(0, 0, 0, 0.15)",this.contentWrap.style.marginTop="10px",this.contentWrap.style.width="250px",this.contentWrap.style.display="none",this.res.appendChild(this.contentWrap),this.styles={},this.children=[],this.isExpanded=!1,this.toggleWrap.addEventListener("click",(()=>this.toggle()))}set(e){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);const t=()=>{let t=window.matchMedia("(max-device-width: 415px)"),s=window.matchMedia(`(max-width: ${e.breakpoint??"600px"})`);t.matches||s.matches?this.contentWrap.style.position="relative":this.contentWrap.style.position="absolute"};return window.addEventListener("resize",t),t(),this}add(e){if(!Array.isArray(e))throw new Error("The 'add' method expects an array of children.");if(e.forEach(((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.");this.contentWrap.appendChild(e.res)}})),!this.options||!this.options.title){const t=e[0];t&&t.res&&this.toggleWrap.appendChild(t.res)}return this.children.push(...e),this}toggle(){this.isExpanded=!this.isExpanded,this.contentWrap.style.display=this.isExpanded?"block":"none"}toCode(){return[`new Dropdown().set({\n ${this.options?Object.entries(this.options).map((([e,t])=>"string"==typeof t?`${e}: "${t}"`:"object"==typeof t?`${e}: ${JSON.stringify(t)}`:`${e}: ${t}`)).join(",\n "):""}\n}).add([\n ${this.children.map(((e,t)=>e.toCode().flatMap((e=>e)).join("")+(t<this.children.length-1?",":""))).join("")}\n])`]}render(e){return e&&document.querySelector(e).appendChild(this.res),this.res}}},110:(e,t,s)=>{s(762).y},128:(e,t,s)=>{s.d(t,{I:()=>O});var r=s(16),n=s(130),o=s(219),a=(s(946),s(155),s(828)),l=s(734),h=s(897),d=s(69),c=s(304),p=s(790);class u{constructor(e){if(this.hide=e,e){var t=document.createElement("div");t.style.flex="1",this.res=t}return e&&this.res.setAttribute("class","innerHider"),this}toCode(){return[`new Spacer(${this.hide})`]}render(){var e=document.createElement("h2");return e.style.display="none !important",this.res??e}}var m=s(148),y=(s(751),s(385)),g=s(898),f=s(877);s(216);class w{constructor(e="",t="POST"){this.action=e,this.method=t,this.elements=[],this.formElement=document.createElement("form"),this.formElement.action=this.action,this.formElement.method=this.method}add(e){return this.elements=e,console.log("CODEA"),console.log(this.elements),console.log(this.elements.length),e.forEach((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.");this.formElement.appendChild(e.render())})),console.log(this.elements),this}toCode(){let e=this.elements.map((e=>e.toCode())),t=Object.entries(this.obj).map((([e,t])=>`${e}: ${"string"==typeof t?`"${t}"`:t}`)).join(", ");return console.log("FORM DQ"),console.log(e),[`new Form().set({${t}}).add([ \n ${e.join(", \n")}])`]}set(e){return this.obj=e,e.action&&this.setAction(e.action),e.method&&this.setMethod(e.method),this}setAction(e){this.action=e,this.formElement.action=this.action}setMethod(e){this.method=e,this.formElement.method=this.method}render(e){return e&&document.querySelector(e).appendChild(this.formElement),this.formElement}}var b=s(207),x=s(733),v=s(959),k=s(836),_=(s(588),s(26),s(317)),S=s(342);class C{constructor(e){this.res=null,this.st=e}setup(){let e=document.createElement("div");return e.style.display="grid",this.res=e,this.st&&this.sticky(),this}set(e){return this.setup(),e.height&&(this.res.style.height=e.height),e.sticky&&this.sticky(),this}sticky(){return this.res.style.position="sticky",this.res.style.top=0,this}add(e){this.children=e;for(var t=0;t<e.length;t++){let s=e[t].render();s.style.gridColumn=1,s.style.gridRow=1,this.res.appendChild(s)}return this}toCode(){let e="new Stack().set({})";return this.children.length>0&&(e+=`.add([\n \n ${this.children.map((e=>e.toCode())).join(",\n")} \n \n])`),[e]}render(e){if(!e)return this.res;document.querySelector("body").style.margin=0,document.querySelector("body").style.padding=0,document.querySelector(e).appendChild(this.res)}}class E{static style(e){let t=e.bst,s=e.el,i=e.re,r=(e.options,[]);for(var n=0;n<t.length;n++){let e=!0;t[n].target&&(e=!1,s.id===t[n].target[0]&&(e=!0))}for(n=0;n<t.length;n++){let e=!0;t[n].target&&(e=!1,s.id===t[n].target[0]&&(e=!0));let o=t[n].op.ops.split("-");e&&o.includes("air")&&(i.borderObj={color:"#1abc9c",radius:"0rem",width:"3px"},i.color="#1abc9c",i.background="transparent"),e&&o.includes("round")&&(o.includes("air")?i.borderObj={width:"4px",radius:"0.7rem",color:"#1abc9c"}:i.borderObj={width:"0px",radius:"0.7rem",color:"#1abc9c"}),e&&o.includes("full")&&(i.background="#3498db",i.borderObj&&i.borderObj.radius?i.borderObj.radius="0.3rem":i.color="white"),e&&o.includes("pill")&&(i.background="#3498db",i.borderObj.radius="9999px",i.color="white"),e&&o.includes("hover")&&(i.hover={color:"#1abc9c",background:"orange"}),r.push((new Link).set(i))}return r}}class ${static cards(e,t,s){console.log("PP"),console.log(s);let i=[];for(var r=0;r<e.children.length;r++){let n=e.children[r];"text"===n&&this.insertTextToCard(i,t,e,s),"image"!==n||e.backgroundCard||i.push('\n new Image("https://upload.wikimedia.org/wikipedia/commons/3/3a/Starship_S20.jpg").set({})'),"link"===n&&(t.op?i.push(`\n ${s.tabSpace(6)} ${s.link[t.op.theme.toLowerCase()].code}`):i.push(`\n ${s.tabSpace(6)} ${s.link.base.code}`))}return i}static insertTextToCard(e,t,s,i){if(t.op)if(t.op.ops&&t.op.ops.includes("text-blast")){let r=`\n ${i.tabSpace(6)} ${i.text[t.op.theme.toLowerCase()].code}`,n=i.ops[t.op.theme.toLowerCase()].blast.code;s.backgroundCard||(n=i.ops[t.op.theme.toLowerCase()].blastFun(1));let o=this.insertTextBetween(r,n);e.push(o)}else e.push(`\n ${i.tabSpace(6)} ${i.text[t.op.theme.toLowerCase()].code}`);else e.push(`\n ${i.tabSpace(6)} ${i.text.base.code}`)}static insertTextBetween(e,t){let s=e.match(/(color: ".+?",)(.+?)(id: ".+?")/);if(s){let i=s.index+s[0].length,r=e.slice(0,i)+", "+t+", "+e.slice(i);return console.log("RETA"),console.log(r),r}return e}}class O{static mapType(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}static button(){return new b.$("Submit").set({fluidc:"S6",color:"white",background:"#1abc9c",arrpad:{sides:["all"],value:".3rem"},radius:".3rem",onTap:()=>{alert("Nice")},keySet:{key:"border",value:"3px solid green"}})}static multiswitcher(){return(new h.i).set({breakpoints:[{at:"0px",view:new r.E("First").set({})},{at:"700px",view:new r.E("Nice").set({})},{at:"800px",view:new r.E("Best").set({})}]})}static video(){return new k.C("https://www.w3schools.com/html/mov_bbb.mp4").set({})}static audio(){return new v.f("rouska.mp3").set({background:"#1abc9c"})}static radio(e){return(new y.z).set({items:["Male","Female","Third shit"],multiple:!0})}static input(e){return(new TextField).set({type:"text",placeholder:"Enter swimming time",arrayMargin:{sides:["all"],value:"1rem"}})}static floatInput(e){return(new m.l).set({title:"Your name",type:"input"})}static filePicker(e){return(new f.I).set({id:"A",title:"Add profile picture",background:"#3498DB",color:"white",font:"Arial",radius:"3rem",accept:"application/pdf"})}static picker(e){return(new g.L).set({items:[["none","select a car---"],["tesla","Tesla"],["audi","Audi"]],font:"Arial",arrayPadding:{sides:["all"],value:"0.5rem"},rounded:!0})}static modal(e){}static slider(e){let t=[(new c.m).set({}).add([new r.E("One").set({fluidc:"S1",color:"#1abc9c",font:"Arial"}),new r.E("First time").set({font:"Arial"})]),new r.E("Two").set({fluidc:"S1",color:"#1abc9c",font:"Arial"}),new r.E("Three").set({fluidc:"S1",color:"#1abc9c",font:"Arial"}),new r.E("Four").set({fluidc:"S1",color:"#1abc9c",font:"Arial"})];return new x.A(t,null)}static dropdown(e){e.el.items||(e.el.items=["Flower","Car","Maseratti"]);let t=e.el.items.map((e=>(new o.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 d.m).set({behaviour:"mouseover",pad:[{a:"1rem"}],mar:[{a:"1rem"}],border:"1px solid black",width:"180px",radius:"1rem"}).add([new r.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 c.m).set({border:"1px solid green",background:"#1abc9c",radius:"0.7rem",socenter:!0}).add(t.slice(1))])}static protoNav(e){e.customOptions;let t=[{title:"Fire",link:"@e"},{title:"and",link:"@e"},{title:"smoke",link:"@e"}],s=t.map(((e,t)=>new o.N(`"${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(((e,t)=>new o.N(`"${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%, ${10*t}%)`,opacity:0},{transform:"translate(0%)",opacity:1}],keyframesClose:[{transform:"translate(0%)",opacity:1},{transform:`translate(100%, ${10*t}%)`,opacity:0}],openOptions:{duration:300,fill:"forwards",delay:1e3},closeOptions:{duration:1,fill:"forwards",delay:1e3}}}})));if(e.el.dropdown){const e=(new d.m).set({behaviour:"mouseover",pad:[{a:40}],padding:"10px",border:"1px solid black"}).add([new r.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 c.m).set({socenter:!0,radius:"0.7rem",background:"#1abc9c",makeResponsiveBehaviour:"undefined"}).add([(new o.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 o.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(e),s.push(e)}return e.el.animation,(new h.i).set({breakpoints:[{at:"0px",view:(new l.m).set({background:"green",mar:[{a:21}],brand:new r.E("A").set({size:"S1"}),hamburgerColour:"#3498db",radius:"1rem"}).add([new o.N("A").set({text:"A",url:"#a"}),(new d.m).set({behaviour:"mouseover",pad:[{a:40}],mar:[{lr:"auto"}],breakpoint:"1200px",padding:"10px",border:"1px solid black",height:"auto"}).add([new r.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 r.E("Firsti").set({cursor:"hand",fluidc:"S6",pad:[{l:10,r:10}],font:"Arial",align:"center",weight:"bold"}),new r.E("Firstiuu").set({cursor:"hand",fluidc:"S6",pad:[{l:10,r:10}],font:"Arial",align:"center",weight:"bold"})]),new o.N("B").set({text:"B",url:"#b"}),new o.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 r.E("A").set({size:"S1"}),new u(!0),(new d.m).set({behaviour:"mouseover",pad:[{a:40}],padding:"10px",border:"1px solid black",radius:"30px",width:"130px"}).add([new r.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 c.m).set({flexDir:"column",background:"orange",mar:[{t:"10px"}],radius:".3rem"}).add([new o.N("").set({text:"A",url:"jk",cursor:"hand",fluidc:"S6",pad:[{l:10,r:10}],font:"Arial",align:"center",weight:"bold"}),new o.N("").set({text:"Kivi new TV",url:"#u",cursor:"hand",fluidc:"S6",pad:[{l:10,r:10}],font:"Arial",align:"center",weight:"bold"}),new o.N("").set({text:"Thanks GPT",url:"#u",cursor:"hand",fluidc:"S6",pad:[{l:10,r:10}],font:"Arial",align:"center",weight:"bold"})])]),new o.N("Desktop bar").set({text:"Desktop bar",url:"#a"}),new o.N("B").set({text:"B",url:"#a"}),new o.N("C").set({text:"C",url:"#a"})])}]})}static sideNav(e){e.customOptions;let t=[{title:"Home",link:"@e"},{title:"Projects",link:"@e"},{title:"Services",link:"@e"}];const s=t.map(((e,t)=>new o.N(`"${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 d.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%, 10%)",opacity:0},{transform:"translate(0%)",opacity:1}],keyframesClose:[{transform:"translate(0%)",opacity:1},{transform:"translate(100%, 10%)",opacity:0}],openOptions:{duration:300,fill:"forwards",delay:1e3},closeOptions:{duration:1,fill:"forwards",delay:1e3}}}}).add([new r.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 c.m).set({socenter:!0,radius:"0.7rem",background:"#1abc9c",makeResponsiveBehaviour:"undefined"}).add([(new o.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 o.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"}})])]);let n=t.map(((e,t)=>new o.N(`"${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%, ${10*t}%)`,opacity:0},{transform:"translate(0%)",opacity:1}],keyframesClose:[{transform:"translate(0%)",opacity:1},{transform:`translate(100%, ${10*t}%)`,opacity:0}],openOptions:{duration:300,fill:"forwards",delay:1e3},closeOptions:{duration:1,fill:"forwards",delay:1e3}}}})));e.el.dropdown&&(n.push(i),s.push(i));const a=(new c.m).set({column:!0}).add([new r.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?n[0]:s[0],e.el.animation?n[1]:s[1],e.el.animation?n[2]:s[2],e.el.animation&&e.el.dropdown?n[3]:new r.E("").set({}).excludeFromCode(),new r.E("Paramount, 2024").set({pad:[{a:20}],animation:{range:["0px","1900px"],op:{name:"animation",color:"green",width:"1px"}}})]),l=(new c.m).set({column:!0}).add([new r.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 p.f).setup({animate:!0,radius:"1rem",isSide:!0,background:"#ecf0f1",hamColour:{opened:"#1abc9c",closed:"#e67e22"},mobileSize:"1.2em"}).items(e.el.offcanvas?l:a)}static mapFree(e){let t=e.customOptions.filter((e=>"slayout"===e.op.name||"layout"===e.op.name))[0],s=null,i={cols:6,rows:6};return"text-above-image"!==t.op.value&&"image-above-text"!==t.op.value||(s=null,i=null),"image-overlay-text"===t.op.value&&(s={text:{row:"1 / span 2",col:"3 / span 2"},image:{row:"2 / span 3",col:"3 / 3"}}),"image-leftof-text"===t.op.value&&(s={text:{row:"1",col:"1 / 3"},image:{row:"1",col:"3 / 4"}}),(new _.b).set({id:"#3",templateCols:i,height:"600px"}).add([new r.E("I am free").set({border:"3px solid green",font:"Arial",fluidc:"S1",color:"#1abc9c",gpos:null!=s?s.text:null,zIndex:1}),new n._("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!=s?s.image:null})])}static mapText(e){let t=e.el;return new r.E(t.text||t.value).set({id:t.id,class:t.class,color:t.color,fluidc:this.getElType(t.type),font:t.font??"Arial",stroke:this.filtero("blast",t.id,e.customOptions),gradient:this.filtero("gradient",t.id,e.customOptions),animation:this.filtero("animation",t.id,e.customOptions),shadow:this.filtero("shadow",t.id,e.customOptions),span:this.filtero("span",t.id,e.customOptions),backgroundOp:this.filtero("background",t.id,e.customOptions),marginOp:this.filtero("margin",t.id,e.customOptions),transform:this.filtero("transform",t.id,e.customOptions)})}static mapImage(e){let t=e.el;return new n._(t.url).set({...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)})}static mapLink(e){let t=e.customOptions.filter((e=>"link-style"===e.op.name)),s=null,i=e.el;return e.el.id&&(i.id=e.el.id),e.el.link&&e.el.text&&(i.url=e.el.link,i.text=e.el.text),i.keySet={key:"background",value:"shadow: 3px 3px solid green"},i.animation=this.filtero("animation",e.el.id,e.customOptions),i.class=e.el.class,i.width=e.el.width,i.font="Arial",i.fluidc=e.el.fluidc,i.index=e.i+"",i.shadow=this.filtero("shadow",e.el.id,e.customOptions),i.backgroundOp=this.filtero("background",e.el.id,e.customOptions),i.pad=[{a:10}],s=t.length>0?E.style({el:e.el,re:i,bst:t,options:e.customOptions})[t.length-1]:(new o.N).set(i),s}static mapGrid(e){console.log("OBJ IS"),console.log(e.storage);let t=[],s=e.customOptions.filter((e=>"card-style"===e.op.name))[0]??{};t=$.cards(e.el,s,e.storage);let i=`new Card()\n .set({\n width: "300px", radius: "0.7rem", mar: { sides: ["all"], value: "0.8rem" }})\n .items([${t.join(",")} \n ])`;return 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 ${t.join(",")},\n ]), \n`),`\n \n new FlexGrid()\n .set({colat: "700px", wrap: true, align: "center"}) \n .items([${Array(3).fill(i)}])\n \n`}static mapCDiv(e){if(e.customOptions,rta){let e=el;e.makeResponsiveBehaviour=rta.op.hash[0].l,e.index=i;let t={width:"200px",height:"100px"};if(ela=(new c.m).set(e),rta.op.hash[0].child){t.makeResponsiveBehaviour=rta.op.hash[0].child.l;let s=(new c.m).set(t).add([new r.E("Hello")]);ela=(new c.m).set(e).add([s])}}}static checkbox(e){return(new S.S).set({name:"acceptTerms",label:new r.E("Check it out!").set({size:"S6",color:"#1abc9c",font:"Arial"}),mar:"10px"})}static stack(e){return(new C).set({}).add([(new n._).set({url:"https://pbs.twimg.com/media/DwYvbCBVAAEKY_R.jpg"}),new r.E("Samuel Suresh").set({color:"#00ae56",font:"SF Pro Display",fluidc:"S2",pad:{sides:["top","left"],value:20}})])}static form(e){return(new w).set({action:"file.php"}).add([(new m.l).set({title:"Your name",type:"input",name:"name"}),(new m.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 g.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 f.I).set({id:"A",name:"image",title:"Add profile picture",background:"#3498DB",color:"white",font:"Arial",radius:"3rem"}),new b.$("Submit form").set({type:"submit",background:"#3498db",color:"white",weight:"bold",radius:"1rem",pad:[{a:"1rem"}],mar:[{b:"1rem"}]})])}static simple(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 ])'}static getElType(e){return`S${e.substr(1)}`}static filtero(e,t,s){return s.filter((t=>t.op.name===e)).filter((e=>!e.target||e.target.includes(t)))[0]}}},130:(e,t,s)=>{s.d(t,{_:()=>r});var i=s(762);class r extends i.y{constructor(e,t,s,i){super(),this.url=e,this.res=null,this.code=[]}removeQuotesFromFirstWord(e){return e.replace(/"([^"]+)":/g,"$1:")}setType({url:e,type:t,mode:s}){if(this.code=[],"exact"===t){const e=`new Image("${this.url}", "exact")`;this.code.push(e)}else if("uncover"===t){const e=`new Image("${this.url}", "uncover")`;this.code.push(e)}else this.code.push(`new Image('${this.url}')`);return this.image(this.url,s,t),this}flexOne(){return this.res.style.flex="1",this}hand(){return this.res.style.cursor="hand",this}setGridWithoutCode(){return this.res.style.border="1px solid white",this}maxWidth(e){return this.res.style.maxWidth=e,this}getHeight(){return this.res.height}getWidth(){return this.res.width}getType(){return"HTMLImageElement"}toCode(){let e=this.options;this.res.style.border&&(e.border=this.res.style.border);const t=Object.fromEntries(Object.entries(e).filter((([e,t])=>null!==t)));return[`new Image().set(${JSON.stringify(t,null,2).replace(/"(\w+)"\s*:/g,"$1:")})`]}formatObj(e){return JSON.stringify(e,null,2).replace(/"(\w+)"\s*:/g,"$1:")}set(e){let t="";this.options=e;let s=e.isFull;if(s?this.image(e.url,"exact",s,"a"):this.setup(),e.url&&this.res.setAttribute("src",e.url),("exact"===s||"uncover"===s)&&this.url,e.vtn&&(this.res.style.viewTransitionName=e.vtn),this.vtn=e.vtn,e.minHeight&&(this.res.style.minHeight=e.minHeight),e.index&&super.setIndex(e.index),e.index&&(this.index=e.index),e.index&&(t+=`\n index: "${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&&(t+=`\n objectFit: "${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,t+=`\n gpos: ${this.removeQuotesFromFirstWord(JSON.stringify(e.gpos))}, `),e.filtera){let s;s=Array.isArray(e.filtera)?r.filtera.filter((e=>"filter"===e.op.name))[0]:e.filtera,t+=`\n filtera: ${this.removeQuotesFromFirstWord(JSON.stringify(s))}, \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&&(t+=`\n zIndex: "${e.zIndex}", \n`),e.id&&this.res.setAttribute("id",e.id),e.id&&(t+=` id: "${e.id}", \n`),this.id=e.id,e.area&&this.setArea(e.area),e.area&&(t+=`area: "${e.area}", \n`),e.opacity&&(this.res.style.opacity=e.opacity),e.width&&(this.res.style.width=e.width),e.width&&(t+=`width: "${e.width}", `),e.maxWidth&&(this.res.style.maxWidth=e.maxWidth),e.maxWidth&&(t+=`maxWidth: "${e.maxWidth}", `),e.height&&(this.res.style.height=e.height),e.height&&(t+=`height: "${e.height}", `),e.multimargin&&this.makeMultiMargin(e.multimargin),e.multimargin&&(t+="multimargin: [ \n"),e.arrayMargin&&this.arrayMargin(e.arrayMargin.sides,e.arrayMargin.value),e.multimargin){for(var i=0;i<e.multimargin.length;i++){const s=e.multimargin[i];t+=`{side: "${s.side}", value: "${s.value}"}, \n`}t+="], \n"}e.maxWidth&&this.maxWidth(e.maxWidth),e.maxWidth&&(t+=`maxWidth: "${e.maxWidth}", \n`),e.radius&&this.cornerRadius(e.radius),e.radius&&(t+=`radius: "${e.radius}", \n`),e.marginOp&&(t+=`\n marginOp: ${this.removeQuotesFromFirstWord(JSON.stringify(e.marginOp))},`),e.clipPath&&this.clipPath(e.clipPath),e.clipPath&&(t+=`clipPath: "${e.clipPath}", \n`);let r=e;if(r.stroke||r.gradient||r.span||r.backgroundOp||r.layout||r.marginOp||r.shadow||r.filtera||r.animation){r.gradient,r.gradient&&(this.globalGradient=r.gradient.op.gradient),r.stroke&&super.setAny({globalBlast:`${r.stroke.op.width} ${r.stroke.op.color}`});let e=[r.stroke,r.gradient,r.animation,r.span,r.backgroundOp,r.layout,r.marginOp,r.shadow,r.filtera,r.animation];e=e.filter((e=>null!=e));let t=[];for(i=0;i<e.length;i++)t.push({range:e[i].range,log:e[i].op.name,target:e[i].target,op:e[i].op});this.chainReact(t,this.options.id)}if(r.shadow){let e=r.shadow;t+=`\n shadow: ${this.removeQuotesFromFirstWord(JSON.stringify(e))},`}if(r.animation){let e=r.animation;t+=`\n animation: ${this.removeQuotesFromFirstWord(JSON.stringify(e))},`}let n=`\n .set({${t}}) \n \n`;return Object.keys(e).length>0?this.code.push(n):this.code.push(","),this}setFilter(e){let t=[],s=[e];s=s.filter((e=>null!=e));for(var i=0;i<s.length;i++)t.push({range:s[i].range,log:s[i].op.name,target:s[i].target})}makeMultiMargin(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}setID(e){return this.res.setAttribute("id",e),this}square(){return this.res.style.width="30%",this.res.style.paddingBottom="30%",this}opacity(e){return this.res.style.opacity=`${e}`,this}rowCol(e,t){return this.res.style.gridRow=e,this.res.style.gridColumn=t,this}setArea(e){return this.res.style.gridArea=e,this}setGridRow(e){return this.res.style.gridRow=e,this}setGridCol(e){return this.res.style.gridColumn=e,this}setGrid(){return this.res.style.gridRow="span 2",this.res.style.gridColumn="span 3",this}transform(e){return this.res.style.transform=e,this}offset(){return this.res.style.marginLeft="-60px",this}offseta(){return this.res.style.marginLeft="90px",this.res.style.marginTop="-30px",this}borderAround(e){return this.res.style.border=e,this}setClass(e){return this.res.setAttribute("class",e),this}scale(e){return this.res.style.width,this.res.style.transition="0.5s all",this.res.addEventListener("mouseover",(()=>{this.res.style.width,this.res.style.transform="scale(1.04)"})),this.res.addEventListener("mouseout",(()=>{this.res.style.width,this.res.style.transform="scale(1.0)"})),this}onTap(e){return this.res.addEventListener("click",e),this}border(e){return this.res.style.borderTopLeftRadius="16px",this.res.style.borderTopRightRadius="16px",this}allRound(e){return this.res.style.borderRadius=e,this}mobileWidth(){return window.matchMedia("(max-device-width: 415px)").matches&&(this.res.style.width="120%"),this}image(e,t,s,i,r){let n=window.matchMedia("(max-device-width: 415px)"),o=document.createElement("div");return o.style.viewTransitionName=i,o.style.width="100%",o.style.height="200",r&&(o.style.gridColumn=r.gridColumn,o.style.gridRow=r.gridRow),n.matches&&(o.style.height="500"),o.style.backgroundImage=`url(${e})`,o.style.backgroundPosition="center center",o.style.backgroundRepeat="no-repeat",o.style.backgroundSize="cover","uncover"===s&&(o.style.backgroundSize="contain"),"contain"===t&&(o.style.backgroundSize="contain"),this.res=o,this}arrayPadding(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}arrayMargin(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}setup(){let e=document.createElement("img");return e.style.width="100%",e.src=this.url,this.res=e,this}autoW(){return this.res.style.width="initial",this}float(e){return this.res.style.float=`${e}`,this}fillAvailable(){return this.res.style.height="-webkit-fill-available",this}grayscale(e){return this.res.style.filter=`grayscale(${e}%)`,this}flex(e){return this.res.style.flex=1,this}height(e){return this.res.style.height=e,this.res.style.width="auto",this}expand(e){const t=()=>{if(window.matchMedia(`(min-width: ${e.at})`).matches){this.res.style.width=`${e.width}`;let i=window.innerWidth/2-(s=t=e.width,(t.includes("%")||t.includes("px"))&&(s=s.substr(0,2)),(t.includes("%")?Number(s/100*window.innerWidth):t.includes("px")?Number(s):void 0)/2);this.res.style.marginLeft=`${i}px`}else this.res.style.width="100%",this.res.style.marginLeft="0px";var t,s;window.matchMedia("(max-device-width: 415px)").matches&&(this.res.style.width="100%",this.res.style.marginLeft="0px")};return t(),window.addEventListener("resize",t),this}width(e){return this.res.style.width=e,this.res.style.height="auto",this}toBack(){return this.res.style.zIndex="-1",this}margin(e,t,s,i){return(e||t||s||i)&&(this.res.style.marginLeft=e,this.res.style.marginTop=t,this.res.style.marginRight=s,this.res.style.marginBottom=i),t||s||i||0===t&&0===s&&0===i||(this.res.style.margin=e),this}padding(e){return this.res.style.padding=e,this}size(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}frame(e){let t=e.width,s=e.height;return t&&s?(this.res.style.width=t,this.res.style.height=s):(this.res.style.width=t,this.res.style.height=t),this}RSize(e,t,s){let i=window.matchMedia("(max-device-width: 420px)");return e&&t?(this.res.style.width=i.matches?e*s:e,this.res.style.height=i.matches?t*s:t):(this.res.style.width=i.matches?e*s:e,this.res.style.height=i.matches?e*s:e),this}shadow(e){return"mild"===e.type?this.res.style.boxShadow="0px 3px 15px rgba(0,0,0,0.2)":this.res.style.boxShadow=`${e.x}px ${e.y}px ${e.radius}px ${e.color}`,this}clipShape(e){return this.res.style.borderRadius="50%",this}cornerRadius(e){return this.res.style.borderRadius=e,this}clipPath(e){this.res.style.clipPath=`path("${e}")`;let 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}render(e){let t=this.res;if(!e)return t;document.querySelector(e).appendChild(t)}}},148:(e,t,s)=>{s.d(t,{l:()=>r});var i=s(762);class r extends i.y{constructor(){super(),this.el=null}set(e){this.options=e;let t=document.createElement("div"),s=document.createElement("label");s.style.position="relative",s.style.display="block";let i=document.createTextNode(e.title);s.appendChild(i),s.style.opacity=0;var r=document.createElement("input");return"textarea"===e.type&&(r=document.createElement("textarea")),r.style.position="relative",r.placeholder=e.title,r.style.fontSize="1rem",r.style.padding=".4rem .75rem",t.appendChild(s),t.appendChild(r),this.res=t,e.mar&&this.mar(e.mar),e.pad&&this.pad(e.pad),r.addEventListener("focus",(()=>{s.style.transition="transform ease 0.2s",s.style.transform="scale(0.80)",s.style.textTransform="uppercase",s.style.transformOrigin="left top",s.style.fontWeight="bold",r.placeholder="",s.style.opacity="1.0",e.font&&(s.style.fontFamily=e.font),e.color&&(s.style.color=e.color),e.exact&&(s.style.fontSize=e.exact)})),r.addEventListener("focusout",(()=>{s.style.transform="scale(1.0)",r.placeholder=e.title,s.style.opacity="0.0"})),e.name&&r.setAttribute("name",e.name),window.matchMedia("(max-device-width: 415px)").matches&&(r.style.width="100%",t.style.width="100%"),r.style.fontSize="1rem",this.el=t,this}getValue(){return this.el.children[1].value}toCode(){let e=JSON.stringify(this.options,null,4);return e=e.replace(/"(\w+)"(?=\s*:)/g,"$1"),[`new FloatingInput().set(${e})`]}margin(e){return this.el.style.margin=e,this}render(e){if(!e)return this.el;document.querySelector(e).appendChild(this.el)}}window.FloatingInput=r},155:(e,t,s)=>{s(762).y},207:(e,t,s)=>{s.d(t,{$:()=>r});var i=s(762);class r extends i.y{constructor(e,t){super(),this.text=e,this.res=null,this.val=t,this.setup()}setup(e){return this}hover(e){return this.prevColor=this.res.style.backgroundColor,this.foreColor=this.res.style.color,e.animation&&(this.res.style.transition=`${e.animation}s ease-in-out`,this.res.style.transionProperty="background, color"),this.res.onmouseout=()=>{this.res.style.backgroundColor=`${this.prevColor}`,this.res.style.color=`${this.foreColor}`},this.res.onmouseover=()=>{this.res.style.backgroundColor=e.background,this.res.style.color=e.color},this}set(e){this.options=e;let t=document.createElement("button");if(t.style.background="transparent",e.url){let s=document.createElement("img");s.setAttribute("src",e.url),s.style.width=e.frame.width,s.style.height=e.frame.height,t.appendChild(s)}else{let e=document.createTextNode(this.text.replace("$",this.val));t.appendChild(e)}this.res=t,e&&"submit"===e.type&&t.setAttribute("type",e.type);let s="";return 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&&(s+=`\n fluidc: "${e.fluidc}",`),e.onTap&&this.onTap(e.onTap),e.frame&&this.frame(e.frame),e.frame&&(s+=`\n frame: "${e.frame}",`),e.arrpad&&this.arrayPadding(e.arrpad.sides,e.arrpad.value),e.arrpad&&(s+=`\n arrpad: {sides: ["${e.arrpad.sides}"], value: "${e.arrpad.value}"},`),e.arrayMargin&&this.arrayMargin(e.arrayMargin.sides,e.arrayMargin.value),e.arrayMargin&&(s+=`\n arrayMargin: {sides: ["${e.arrayMargin.sides}"], value: "${e.arrayMargin.value}"},`),e.keySet&&this.keySet(e.keySet),this}arrayPadding(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}arrayMargin(e,t){return t||(this.res.style.marginLeft=`${e[0]}px`,this.res.style.marginTop=`${e[1]}px`,this.res.style.marginRight=`${e[2]}px`,this.res.style.marginBottom=`${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}fluidButtonCopy(e){if(e instanceof Object){this.prevStylex=this.res.style,this.res=document.createElement("button"),this.res.style.cssText=this.prevStylex.cssText;let 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;let e=document.createTextNode(this.text);this.res.appendChild(e),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;let e=document.createTextNode(this.text);this.res.appendChild(e),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;let e=document.createTextNode(this.text);this.res.appendChild(e),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;let e=document.createTextNode(this.text);this.res.appendChild(e),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;let e=document.createTextNode(this.text);this.res.appendChild(e),this.res.style.fontSize="calc(1.125rem + 1.975vw)"}return"S6"===e&&(this.res.style.fontSize="calc(1rem + 0.5vw)"),this}setClass(e){return this.res.setAttribute("class",e),this}color(e){return this.res.style.color=e,this}background(e){return this.res.style.background=e,this}width(e){return this.res.style.width=e,this}borderRadius(e){return this.res.style.borderRadius=e,this}padding(e,t,s,i){return e&&t&&s&&i?(this.res.style.paddingLeft=e,this.res.style.paddingTop=t,this.res.style.paddingRight=s,this.res.style.paddingBottom=i):this.res.style.padding=e,this}margin(e,t,s,i){return e&&t&&s&&i?(this.res.style.marginLeft=e,this.res.style.marginTop=t,this.res.style.marginRight=s,this.res.style.marginBottom=i):this.res.style.margin=e,this}auto(){const e=()=>{window.matchMedia("(max-device-width: 415px)").matches?this.res.style.fontSize="2.2rem":this.res.style.fontSize="1rem"};return e(),window.addEventListener("resize",e),this}large(){const e=()=>{window.matchMedia("(max-device-width: 415px)").matches?(alert("WOW"),this.res.style.fontSize="6rem"):this.res.style.fontSize="3rem"};return e(),window.addEventListener("resize",e),this}border(e,t){return"none"===e&&(this.res.style.border="none"),this.res.style.border=`${e} solid ${t}px`,this}frame(e){return this.res.style.width=e.width,this.res.style.height=e.height,this}updating(e,t){var s=this.res,i=this.text;return Object.defineProperty(e,t,{set(e){let t=document.createTextNode(i.replace("$",e));s.replaceChild(t,s.childNodes[0])}}),this}onTap(e){return this.res.addEventListener("click",e),this}toCode(){const e=JSON.stringify(this.options,((e,t)=>"function"==typeof t?t.toString():t),4).replace(/"(\w+)":/g,"$1:").replace(/"(\(\)\s*=>\s*{[^}]*})"/gs,"$1").replace(/\\n/g,"").replace(/\\"/g,'"');return[`new Button("${this.text}").set(${e})`]}render(e){if(!e)return this.res;document.querySelector(e).appendChild(this.res)}}},216:(e,t,s)=>{class i{constructor(){this.res=null,this.currentItem=""}set(e){let t=e;this.options=e;var s=document.createElement("input");s.setAttribute("list","dlCities"),s.setAttribute("id","my");var i=e.data,r=0,n=i.length,o=document.createElement("datalist");for(o.id="dlCities",r=0;r<n;r+=1){var a=document.createElement("option");a.value=i[r],o.appendChild(a)}return s.appendChild(o),s.addEventListener("change",(()=>{let e=document.querySelector("#my").value;console.log(e),this.currentItem=e})),s.setAttribute("placeholder","Type value"),s.style.padding=".4rem .75rem",s.style.fontSize="1rem",this.res=s,this.responsive(),t.arrayPadding&&this.arrayPadding(t.arrayPadding.sides,t.arrayPadding.value),t.arrayMargin&&this.arrayMargin(t.arrayMargin.sides,t.arrayMargin.value),t.pad&&this.pad(t.pad),t.mar&&this.mar(t.mar),this}toCode(){return[`new DataList().set(${JSON.stringify(this.options,null,4)})`]}getValue(){return this.res.value}arrayPadding(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}arrayMargin(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}margin(e){return this.res.style.margin=e,this}responsive(){return window.matchMedia("(max-device-width: 415px)").matches&&(this.res.style.width="100%"),this}render(e){if(!e)return this.res;document.querySelector(e).appendChild(this.res)}}var r=i;i=function(...e){return new r(...e)},window.DataList=i},219:(e,t,s)=>{s.d(t,{N:()=>r});var i=s(762);class r extends i.y{constructor(e,t,s){super(),this.link=t,this.text=e,this.code=[],this.css=[],this.elCSS=[],this.html=[],this.res=null,this.stopEM=s,this.setup(),this.inlineBlock()}toCSS(){return this.css}toHTMLA(){return this.html}toElCSS(){return this.preffersId?this.elCSS.unshift(this.res.id+" { \n"):this.elCSS.unshift("."+this.class+" { \n"),this.elCSS.push(" } \n \n"),this.elCSS}getType(){return"HTMLAnchorElement"}toCode(){return this.code}setArea(e){return this.res.style.gridArea=e,this}setup(){let 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}appendImageAsChild(e,t){let s=document.createElement("a");e.options.vtn&&(s.style.viewTransitionName=e.options.vtn),s.setAttribute("href",e.options.url);let i=document.createElement("img");return e.options&&(i.style.width=e.options.size,e.options.radius&&(i.style.borderRadius=e.options.radius),i.setAttribute("src",e.options.img),s.appendChild(i)),this.res=s,t&&(this.res.style.marginLeft=t),this}addIcon(e){let 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}removeQuotesFromFirstWord(e){if(e)return e.replace(/"([^"]+)":/g,"$1:")}set(e){this.elCSS.push("text-decoration: none; \n"),this.options=e;let t="";e.id&&this.res.setAttribute("id",e.id),e.id&&super.setID(e.id),e.pad&&this.pad(e.pad);let s=this.removeQuotesFromFirstWord(JSON.stringify(e.pad));if(e.pad&&(t+=`\n pad: ${s},`),e.preffersId&&(this.preffersId=e.preffersId),null!=e.preffersId&&(t+=`\n preffersId: ${e.preffersId},`),e.class&&super.setClass(e.class),e.class&&(t+=`\n class: "${e.class}",`),e.borderObj&&(this.res.style.border=`${e.borderObj.width} solid ${e.borderObj.color}`,this.res.style.borderRadius=`${e.borderObj.radius}`,t+=`\n borderObj: ${this.removeQuotesFromFirstWord(JSON.stringify(e.borderObj))},`),!1===this.options.preffersId?this.html.push(`<a class="${e.class}" href="#hello">${e.text}</a> \n \n`):e.id&&this.html.push(`<a id="${e.id.substr(1)}" href="#hello">${e.text}</a> \n \n`),null!=e.blastData){let s=this.removeQuotesFromFirstWord(JSON.stringify(e.blastData));super.setAny({globalBlast:`1px ${e.blastData.color}`}),e.blastData&&(t+=`\n blastData: ${s},`)}e.nowrap&&(this.res.style.whiteSpace="nowrap"),e.font&&this.font(e.font),e.font&&(t+=`\n font: "${e.font}",`),e.font&&this.elCSS.push(`font-family: "${e.font}"; \n`),e.fluidc&&this.fluidCopy(e.fluidc),e.fluidc&&(t+=`\n fluidc: "${e.fluidc}",`),e.size&&this.fluidCopy(e.size),e.size&&(t+=`\n size: "${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&&(t+=`\n id: "${this.options.id}",`),e.align&&this.leftAlign(),e.align&&(t+=`\n align: "${e.align}",`),e.type&&(this.res.style.display="block"),e.color&&this.color(e.color),e.color&&(t+=`\n color: "${e.color}",`),e.color&&this.elCSS.push(`color: "${e.color}"; \n`),e.background&&this.background(e.background);let i=this.removeQuotesFromFirstWord(JSON.stringify(e.background));e.background&&(t+=`\n background: ${i},`),e.hover&&this.hover(e.hover);let r=this.removeQuotesFromFirstWord(JSON.stringify(e.hover));if(e.hover&&(t+=`\n hover: ${r},`),e.weight&&(this.res.style.fontWeight=e.weight),e.blast&&(this.blastData=e.blast),e.bold&&(this.res.style.fontWeight="bold"),e.bold&&(t+=`\n bold: ${e.bold},`),e.block&&this.toBlock(),e.block&&(t+=`\n block: ${e.block},`),e.radius&&this.radius(e.radius),e.radius&&(t+=`\n radius: "${e.radius}",`),e.width&&this.width(e.width),e.width&&(t+=`\n width: "${e.width}",`),e.arrayPadding){const s=e.arrayPadding.sides.map((e=>`"${e}"`)).join(", ");e.arrayPadding&&this.arrayPadding(e.arrayPadding.sides,e.arrayPadding.value),e.arrayPadding&&(t+=`\n arrayPadding: {sides: [${s}], value: "${e.arrayPadding.value}"},`)}if(e.arrayMargin&&this.arrayMargin(e.arrayMargin.sides,e.arrayMargin.value),e.arrayMargin&&(t+=`\n arrayMargin: {sides: [${e.arrayMargin.sides.map((e=>`"${e}", `))}], value: "${e.arrayMargin.value}"},`),e.maxWidth&&this.maxWidth(e.maxWidth),e.url&&this.res.setAttribute("href",e.url),t+=`\n url: "${e.url}",`,e.text&&(this.res.textContent=e.text),t+=`\n text: "${e.text}",`,e.data){e.data&&this.appendImageAsChild(e.data,"20px");let s=this.removeQuotesFromFirstWord(JSON.stringify(e.data));e.data&&(t+=`\n data: ${s}`)}if(e.icon&&(this.addIcon(e.icon),t+=`\n icon: ${this.removeQuotesFromFirstWord(JSON.stringify(e.icon))},`),e.shadow){let s=e.shadow;t+=`\n shadow: ${this.removeQuotesFromFirstWord(JSON.stringify(s))},`}if(e.stroke){let s=this.removeQuotesFromFirstWord(JSON.stringify(e.stroke));e.stroke&&(t+=`\n stroke: ${s},`)}e.backgroundOp&&(t+=`\n backgroundOp: ${this.removeQuotesFromFirstWord(JSON.stringify(e.backgroundOp))},`),e.marginOp&&(t+=`\n marginOp: ${this.removeQuotesFromFirstWord(JSON.stringify(e.marginOp))},`),e.gradient&&(t+=`\n gradient: ${this.removeQuotesFromFirstWord(JSON.stringify(e.gradient))},`),e.animation&&(t+=`\n animation: ${this.removeQuotesFromFirstWord(JSON.stringify(e.animation))},`),e.transform&&(t+=`\n transform: ${this.removeQuotesFromFirstWord(JSON.stringify(e.transform))},`);let n=`new Link().set({${t}}) \n`;this.code.push(n),e.color&&this.color(e.color),e.rounded&&this.round(),e.transform&&e.transform.transform?this.reactOnTransform(e.transform):this.reactOnTransform(e);let o=[],a=[e.border,e.gradient,e.animation,e.span,e.shadow,e.backgroundOp,e.animation];if(a=a.filter((e=>null!=e)),a.length>0){for(var l=0;l<a.length;l++)o.push({range:a[l].range,log:a[l].op.name,target:a[l].target,op:a[l].op});let t=[];e.borderObj&&t.push("border"),e.background&&t.push("background"),e.mar&&t.push("margin"),e.animation&&t.push("animation"),this.chainReact(o,e.id,t,e.isNavA),this.res.style.zIndex=1}return e.mar&&this.mar(e.mar),this}color(e){return this.res.style.color=e,this}maxWidth(e){return this.res.style.maxWidth=e,this}background(e){return this.res.style.backgroundColor=e,this}leftAlign(){return this.res.style.textAlign="left",this}arrayPadding(e,t){return t||(this.res.style.marginLeft=`${e[0]}px`,this.res.style.marginTop=`${e[1]}px`,this.res.style.marginRight=`${e[2]}px`,this.res.style.marginBottom=`${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}arrayMargin(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}getClampValue(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}clampCopy(e){return this.res.style.fontSize=this.getClampValue(e),this}fluidCopy(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}inlineBlock(){return this.res.style.display="inline-block",this}toBlock(){return this.res.style.display="block",this}myself(e){const t=()=>{window.matchMedia("(max-device-width: 415px)").matches?this.res.style.fontSize=e.desktop:this.res.style.fontSize=e.phone};return t(),window.addEventListener("resize",t),this}style(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}color(e){return this.res.style.color=e,this}round(){return this.res.style.borderRadius="0.5rem",this.options.rounded&&(this.res.children[0].style.borderRadius="0.5rem"),this}newWindow(){return this.res.target="_new",this}radius(e){return this.res.style.borderRadius=`${e}`,this}transition(e){return this.res.style.transition=`${e}s ease-in-out`,this.res.style.transionProperty="background, color",this}width(e){return this.res.style.width=e,this}italic(){return this.res.style.fontStyle="italic",this}padding(e,t,s,i){return e&&t&&s&&i?(this.res.style.paddingLeft=e,this.res.style.paddingTop=t,this.res.style.paddingRight=s,this.res.style.paddingBottom=i):this.res.style.padding=e,this}medium(){const e=()=>{window.matchMedia("(max-device-width: 415px)").matches?this.res.style.fontSize="2rem":this.res.style.fontSize="1.5em"};return e(),window.addEventListener("resize",e),this}opacity(e){return this.res.style.opacity=e,this}margin(e,t,s,i){return e&&t&&s&&i?(this.el.style.marginLeft=e,this.el.style.marginTop=t,this.el.style.marginRight=s,this.el.style.marginBottom=i):this.el.style.margin=e,this}hover(e){if(e.border){let t=e.border.width;this.res.style.border=t?`${t}px solid transparent`:"1px solid transparent"}let t=this.options.borderObj;return t&&(this.res.style.border=`${t.width}px solid ${t.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=`${e.animation}`,this.res.style.transionProperty="background, color"),this.res.onmouseout=()=>{this.res.style.backgroundColor=`${this.prevColor}`,this.res.style.color=`${this.foreColor}`,this.res.style.border=this.prevBorder},this.res.onmouseover=()=>{if(this.res.style.color=e.color,this.res.style.backgroundColor=e.background,e.border){let t=e.border.width,s=e.border.color??"#2ECC71";this.res.style.border=t?`${t}px solid ${s}`:"1px solid #2ECC71"}},this}em(e){let t=window.matchMedia("(max-device-width: 415px)");const s=()=>{t.matches?this.res.style.fontSize="2em":this.res.style.fontSize="1em"};return s(),window.addEventListener("resize",s),this}margin(e,t,s,i){return this.res.style.marginTop=e,this.res.style.marginLeft=t,this.res.style.marginRight=s,this.res.style.marginBottom=i,this}font(e){return this.res.style.fontFamily=e,this}render(e){return e?(document.querySelector(e).appendChild(this.res),this):this.res}}},304:(e,t,s)=>{s.d(t,{m:()=>r});var i=s(762);class r extends i.y{constructor(e){super(),this.res=null,this.setup(e),this.code=[],this.isLast=!1,this.code.push("\n new Wrapper() \n")}isLasta(){return this.isLast=!0,this}toCode(){return this.code}getType(){return"LayoutWrapperElement"}setArea(e){return this.res.style.gridArea=e,this}removeQuotesFromFirstWord(e){return e.replace(/"([^"]+)":/g,"$1:")}clicked(e){return this.res.addEventListener("click",e),this}gpos(e){return this.res.style.gridColumn=e.col,this.res.style.gridRow=e.row,this}set(e){let t=".set({";if(e.pad&&this.pad(e.pad),e.arrpad&&(t+=`pad: {sides: [${e.arrpad.sides.map((e=>`"${e}"`)).join(", ")}], value: "${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&&super.setAny({globalBlast:`${e.stroke.op.width} ${e.stroke.op.color}`});let t=[e.stroke,e.gradient,e.animation,e.span,e.layout];t=t.filter((e=>null!=e));let i=[];for(var s=0;s<t.length;s++)i.push({range:t[s].range,log:t[s].op.name,target:t[s].target});this.res.setAttribute("id",e.id),this.betaReact(i,e.id)}e.socenter&&(this.res.style.display="flex",this.res.style.flexDirection="column",this.res.style.alignItems="center",e.socenter&&(t+=`socenter: ${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&&(t+=`arrpad: {sides: [${e.arrpad.sides.map((e=>`"${e}"`)).join(", ")}], value: "${e.arrpad.value}"}, `),e.arrayMargin&&this.arrayMargin(e.arrayMargin.sides,e.arrayMargin.value),e.arrayMargin&&(t+=`\n arrayMargin: {sides: ["${e.arrayMargin.sides}"], value: "${e.arrayMargin.value}"},`),e.center&&this.toCenter(e.center),e.center&&(t+=`center: "${e.center}",`),e.simpleCenter&&this.simpleCenter(),e.simpleCenter&&(t+=`center: "${e.simpleCenter}",`),e.filter&&(this.res.style.backdropFilter="blur(3px)"),e.radius&&this.corner(e.radius),e.radius&&(t+=`\n radius: "${e.radius}",`),e.border&&this.border(e.border),e.simpleBorder&&(this.res.style.border=e.simpleBorder),e.width&&this.width(e.width),e.width&&(t+=`\n width: "${e.width}",`),e.overflow&&(this.res.style.overflow="hidden"),e.overflow&&(t+=`\n overflow: "${e.overflow}",`),e.height&&this.heightNoAuto(e.height),e.height&&(t+=`\n height: "${e.height}",`),e.align&&this.flexAlign(e.align),e.align&&(t+=`\n align: "${e.align}",`),e.borderObj&&(this.res.style.borderRight=`${e.borderObj.width} solid ${e.borderObj.color}`,this.res.style.borderRadius=e.borderObj.radius),e.borderObja&&(this.res.style.border=`${e.borderObja.width} solid ${e.borderObja.color}`,this.res.style.borderRadius=e.borderObja.radius),e.font&&this.font(e.font),e.font&&(t+=`font: "${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&&(t+=`background: "${e.background}",`),e.weight&&this.weight(e.weight),e.paddings&&this.paddingo(e.paddings),e.area&&this.setArea(e.area),e.area&&(t+=`area: "${e.area}"`),e.column&&this.makeCol(),e.column&&(t+=`\n column: "${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&&(t+=`\n flexDir: "${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),t+=`\n stretch: ${this.removeQuotesFromFirstWord(JSON.stringify(e.stretch))},`);for(let t in e)if("margin"===t){let s=e[t];if(Array.isArray(s)&&s.length>0)for(let e of s){let t=e;t.hasOwnProperty("top")&&(this.res.style.marginTop=t.top),t.hasOwnProperty("right")&&(this.res.style.marginRight=t.right),t.hasOwnProperty("bottom")&&(this.res.style.marginBottom=t.bottom),t.hasOwnProperty("left")&&(this.res.style.marginLeft=t.left)}}return t+="})\n",8===t.length&&(t=""),this.code.push(t),this}rsp(e){this.res.style.display="flex";let t=e.sequence.split("-");const s=()=>{let s=e.ranges;"0px"!==s[0]&&s.unshift("0px");for(var i=0;i<s.length-1;i++)(window.matchMedia(`(min-width: ${s[i]}) and (max-width: ${s[i+1]})`).matches||window.matchMedia(`(min-width: ${s[s.length-1]})`).matches)&&("row"===t[i]&&(this.res.style.flexDirection="row",this.res.style.border="3px solid green"),"col"===t[i]&&(this.res.style.flexDirection="column",this.res.style.border="3px solid purple"));return this};window.addEventListener("resize",s),s()}sticky(){return this.res.style.position="sticky",this.res.style.top=0,this}toSticky(){return this.res.style.position="sticky",this.res.style.top="0",this}stretch(e){const t=()=>{window.matchMedia(`(max-width: ${e.at})`).matches?this.res.style.width="auto":window.matchMedia("(max-device-width: 415px)").matches?this.res.style.width="100%":this.res.style.width=e.backTo};t(),window.addEventListener("resize",t)}makeCol(){return this.res.style.display="flex",this.res.style.flexDirection="column",this.res.style.alignItems="flex-start",this}paddingo(e){return this.res.style.padding=e,this}toCenter(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}simpleCenter(){return this.res.style.justifyContent="center",this.res.style.justifyItems="center",this.res.style.alignContent="center",this.res.style.alignItems="center",this}color(e){return this.res.style.color=e,this}weight(e){return this.res.style.fontWeight=e,this}makeMultiPad(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}makeMultiMargin(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}flexc(e){return this.res.style.display="flex",this.res.style.flexDirection="column",this.res.style.justifyContent="center",this}maxWidth(e){return this.res.style.maxWidth=e,this}font(e){return this.res.style.fontFamily=e,this}flexAlign(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}width(e){return this.res.style.width=e,this}heightNoAuto(e){return this.res.style.height=e,this}border(e){return this.res.style.borderRadius=`${e.radius}px`,this.res.style.padding="0.25em",this.res.style.border=`${e.width}px solid ${e.color}`,this}toCol(){return this.res.style.display="flex",this.res.style.flexDirection="column",this.res.style.justifyContent="center",this.res.style.alignItems="center",this}add(e){this.items=e,this.code.push(".add([ \n");let t=e.map(((t,s)=>t.toCode().flatMap((e=>e)).join("")+(s<e.length-1?",":""))).join("");this.code.push(t);for(var s=0;s<e.length;s++)if(void 0!==e[s]&&void 0!==e[s].toCode){let t=e[s].render();this.res.appendChild(t)}return this.code.push("])"),this}arrayPadding(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}arrayMargin(e,t){return t||(this.res.style.marginLeft=`${e[0]}px`,this.res.style.marginTop=`${e[1]}px`,this.res.style.marginRight=`${e[2]}px`,this.res.style.marginBottom=`${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}setWidth(e){this.res.style.width="100vw"}setHeight(e){return this.res.style.height=`${e}`,this}setup(e){let 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}height(e){return this.res.style.width="auto",this.res.style.height=`${e}`,this}size(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}background(e){return this.res.style.background=e,this}corner(e){return this.res.style.borderRadius=e,this}padding(e,t,s,i){return this.res.style.paddingLeft=e,this.res.style.paddingTop=t,this.res.style.paddingRight=s,this.res.style.paddingBottom=i,this}margin(e,t,s,i){return this.res.style.marginLeft=e,this.res.style.marginTop=t,this.res.style.marginRight=s,this.res.style.marginBottom=i,this}itemWidth(e){for(var t=0;t<this.res.childNodes.length;t++)this.res.childNodes[t].style.width=e;return this}apply(e){const t=()=>{for(var t=0;t<e.length;t++){let s=e[t],i=window.matchMedia(`(max-width: ${s.width}px)`);s.device&&(i=window.matchMedia(`(max-device-width: ${s.width}px)`),alert(s.device)),i.matches&&Object.assign(this.res.style,s.styles)}};let s=window.matchMedia(`(max-width: ${e[0].width}px)`);return e[0].device&&(s=window.matchMedia(`(max-device-width: ${e[0].width}px)`)),s.matches||Object.assign(this.res.style,e[0].styles),t(),window.addEventListener("resize",t),this}mount(e){document.querySelector(e).appendChild(this.res)}render(e){return e?(document.querySelector("#mount"),document.querySelector(e).appendChild(this.res),this):this.res}}},317:(e,t,s)=>{s.d(t,{b:()=>r});var i=s(762);class r extends i.y{constructor(){super(),this.res=document.createElement("div"),this.res.style.display="grid",this.attributes={}}set(e){return this.options=e,this.attributes=e,this.templateCols=e.templateCols,e.templateCols&&(this.res.style.gridTemplateColumns=`repeat(${e.templateCols.cols}, 1fr)`,this.res.style.gridTemplateRows=`repeat(${e.templateCols.cols}, 1fr)`),this.res.style.height=e.height?e.height:"600px",e.positions&&(this.storedPositions=e.positions),this}generateGridPositions(e,t=30,s=50){const i=document.createElement("div");i.classList.add("container"),i.style.display="grid",i.style.gridTemplateColumns=`repeat(${s}, 1fr)`,i.style.gridTemplateRows=`repeat(${t}, 1fr)`,i.style.width="100%",i.style.height="100vh";let r=e.map(((e,i)=>({row:Math.floor(t/2)+i,col:Math.floor(s/2)+i})));return e.forEach(((i,n)=>{let{row:o,col:a}=r[n];const{forceX:l,forceY:h}=function(t){let s=0,i=0;return e.forEach(((e,n)=>{const{weight:o,direction:a}=e,l=r[t],h=r[n],d=l.col-h.col,c=l.row-h.row,p=o*(1/(Math.sqrt(d*d+c*c)+1));switch(a){case"L":s-=p;break;case"R":s+=p;break;case"U":i-=p;break;case"B":i+=p}})),{forceX:s,forceY:i}}(n);a=Math.max(1,Math.min(s,a+Math.round(l))),o=Math.max(1,Math.min(t,o+Math.round(h))),console.log(this.items.map((e=>e.id))),console.log(i.attract.slice(1));const d=this.items.filter((e=>e.id===i.attract.slice(1)))[0].render();console.log(d),d.style.gridRowStart=o,d.style.gridRowEnd=o+3,d.style.gridColumnStart=a,d.style.gridColumnEnd=a+5,d.style.border=`3px solid #${Math.floor(16777215*Math.random()).toString(16).padStart(6,"0")}`,d.style.display="flex",d.style.alignItems="center",d.style.justifyContent="center",d.style.fontWeight="bold",d.style.color="white",this.res.appendChild(d)})),console.log("ARAO"),console.log(this.res.children.length),this}add(e){this.items=e;for(const t of e)this.res.appendChild(t.render());return this.storedPositions&&this.generateGridPositions(this.storedPositions),console.log("MORAA"),console.log(this.res.children.length),this}toCode(){if(this.excludeFromCodeTrue)return[""];const e=JSON.stringify(this.options,null,4).replace(/"([^"]+)":/g,"$1:");var t="";return t+=".add([\n",t+=this.items.map((e=>e.toCode().join("").trim())).join(",\n"),[`new Free().set(${e})${t+="\n])"}`]}render(e){if(console.log("CHILDREN IN RENDER"),console.log(this.res.children.length),!e)return this.res;document.querySelector(e).appendChild(this.res)}}},342:(e,t,s)=>{s.d(t,{S:()=>r});var i=s(762);class r extends i.y{constructor(){super(),this.el=null}set(e){this.options=e;const t=document.createElement("div");t.style.display="flex",t.style.alignItems="center";const s=document.createElement("input");s.type="checkbox",s.style.position="relative",s.style.marginRight="0.5rem";const i=e.size||"24px";s.style.width=i,s.style.height=i,e.customStyle&&(s.style.appearance="none"),s.style.border="2px solid #ccc",s.style.borderRadius="4px",s.style.backgroundColor=e.backgroundColor||"white",s.style.cursor="pointer",s.style.transition="background-color 0.2s ease, border-color 0.2s ease",s.style.display="inline-block",s.style.setProperty("--checked-bg-color",e.checkedBackgroundColor||"#4CAF50"),s.style.setProperty("--checkmark-color","white"),s.style.setProperty("--checkmark-clip-path",this.options.clipPath??"polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%)");const r=document.createElement("style");r.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(r),e.mar&&this.mar(e.mar),e.pad&&this.pad(e.pad),e.respad&&this.respad(e.respad),e.resmar&&this.resmar(e.resmar),s.addEventListener("change",(()=>{s.checked?(s.style.backgroundColor=e.checkedBackgroundColor||"#4CAF50",s.style.borderColor=e.checkedBackgroundColor||"#4CAF50"):(s.style.backgroundColor=e.backgroundColor||"white",s.style.borderColor="#ccc")})),e.name&&s.setAttribute("name",e.name),t.appendChild(s);const n=document.createElement("div");if("function"==typeof e.label?.render)n.appendChild(e.label.render());else{const t=document.createTextNode(e.title||"Label");n.appendChild(t)}return n.style.opacity=.8,n.style.transition="opacity ease 0.2s, transform ease 0.2s",t.appendChild(n),this.el=t,this}getValue(){return this.el.children[0].checked}toCode(){return[`new Checkbox().set({\n ${Object.entries(this.options).map((([e,t])=>"string"==typeof t?`${e}: "${t}"`:"object"==typeof t&&null!==t?"function"==typeof t.toCode?`${e}: ${t.toCode()[0]}`:`${e}: ${JSON.stringify(t,null,4)}`:`${e}: ${t}`)).join(",\n ")}\n})`]}margin(e){return this.el.style.margin=e,this}render(e){if(!e)return this.el;document.querySelector(e).appendChild(this.el)}}window.Checkbox=r},385:(e,t,s)=>{s.d(t,{z:()=>i});class i{constructor(){this.el=null,this.radioCount=0}set(e){this.options=e,console.log("ORARA"),console.log(this.options),this.radioCount=e.items.length;let t=document.createElement("div"),s=e.items;for(var i=0;i<s.length;i++){let r=document.createElement("label");s.font&&(r.style.font=s.font),s.color&&(r.style.color=s.color),s.exact&&(r.style.fontSize=s.exact);let n=document.createTextNode(s[i]);r.appendChild(n),r.setAttribute("for",s[i]);let o=document.createElement("input");o.setAttribute("type","radio"),o.setAttribute("id",`S${i}`),o.setAttribute("value",s[i].split(" ").join("")),o.style.appearance="none",o.style.width="20px",o.style.height="20px",o.style.border=this.options.tint?`2px solid ${this.options.tint}`:"2px solid #007BFF",o.style.borderRadius="50%",o.style.outline="none",o.style.cursor="pointer",o.style.transition="0.3s",this.options.font&&(r.style.fontFamily=this.options.font),e.multiple?o.setAttribute("name",s[i].split(" ").join("")):o.setAttribute("name",e.name),t.appendChild(o),t.appendChild(r),t.innerHTML+="</br>"}return this.el=t,this.responsive(),this}padding(e){return this.el.style.padding=e,this}getCheckedValues(){console.log("NOW");for(var e=[],t=0;t<this.radioCount;t++)if(document.querySelector(`#S${t}`).checked){let s=document.querySelector(`#S${t}`);console.log("VALUE IS "+s.value),e.push(s.value)}return e}toCode(){let e=JSON.stringify(this.options,null,4);return e=e.replace(/"(\w+)"(?=\s*:)/g,"$1"),[`new RadioGroup().set(${e})`]}responsive(){return window.matchMedia("(max-device-width: 415px)").matches&&(this.el.style.fontSize="1.7em"),this}render(e){if(!e){console.log("MULA");for(var t=0;t<this.el.children.length;t++){let e=this.el.children[t];"[object HTMLInputElement]"===e.toString()&&e.addEventListener("change",(()=>{if(e.checked){e.style.backgroundColor=this.options.tint?this.options.tint:"#007BFF",e.style.boxShadow=this.options.tint?`0 0 0 2px ${this.options.tint} inset`:"0 0 0 2px #0056b3 inset";for(let t=0;t<this.el.children.length;t++){const s=this.el.children[t];"INPUT"===s.tagName&&"radio"===s.type&&!1===this.options.multiple&&s!==e&&(s.style.backgroundColor="transparent",s.style.boxShadow="none")}}else e.style.backgroundColor="transparent",e.style.boxShadow="none"}))}return this.el}document.querySelector(e).appendChild(this.el)}}window.RadioGroup=i},418:(e,t,s)=>{s(762).y},588:(e,t,s)=>{s(762).y},733:(e,t,s)=>{s.d(t,{A:()=>r});var i=s(207);class r{constructor(e,t){if(this.container=document.createElement("div"),this.elements=e,this.currentSlideIndex=0,this.buttons=t,!this.buttons){let e={leftButton:new i.$("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 i.$("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=e}this.createSlider(),this.init()}toCode(){let e=`new Slider([${this.elements.map((e=>e.toCode()))}], null)`;return e=e.replace(/,\s*\./g,"."),[e]}createSlider(){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";const 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(((t,s)=>{const i=document.createElement("div");i.setAttribute("class","slide"),i.style.display="flex",i.style.justifyContent="center",i.style.alignItems="center",i.style.flexShrink="0",i.style.width="100%",i.style.height="400px",i.style.background=s%2==0?"rgb(250, 246, 212)":"white",i.style.transformOrigin="center center",i.style.transform="scale(1)",i.style.scrollSnapAlign="center",i.appendChild(t.render()),e.appendChild(i)})),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";const 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(((e,s)=>{const i=document.createElement("a");i.style.display="inline-block",i.style.height="15px",i.style.width="15px",i.style.borderRadius="50%",i.style.backgroundColor="black",i.style.margin="0 10px",i.style.cursor="pointer",i.dataset.index=s,t.appendChild(i)})),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")}init(){this.updateActiveSlide(),this.attachEventListeners()}attachEventListeners(){this.arrowPrev.addEventListener("click",(()=>{this.moveToSlide(this.currentSlideIndex-1<0?this.elements.length-1:this.currentSlideIndex-1)})),this.arrowNext.addEventListener("click",(()=>{this.moveToSlide((this.currentSlideIndex+1)%this.elements.length)})),this.navLinks.forEach((e=>{e.addEventListener("click",(t=>{t.preventDefault();const s=parseInt(e.dataset.index,10);this.moveToSlide(s)}))})),document.addEventListener("keydown",(e=>{"ArrowLeft"===e.key?this.moveToSlide(this.currentSlideIndex-1<0?this.elements.length-1:this.currentSlideIndex-1):"ArrowRight"===e.key&&this.moveToSlide((this.currentSlideIndex+1)%this.elements.length)}))}moveToSlide(e){this.currentSlideIndex=e,this.updateActiveSlide()}updateActiveSlide(){this.navLinks.forEach(((e,t)=>{e.style.backgroundColor=t===this.currentSlideIndex?"green":"gray"}));const e=this.slidesWrapper.querySelector(".slide").offsetWidth;this.slidesWrapper.scrollTo({left:this.currentSlideIndex*e,behavior:"smooth"})}render(e){if(!e)return this.slider;document.querySelector(e).appendChild(this.slider)}}},734:(e,t,s)=>{s.d(t,{m:()=>r});var i=s(762);s(16);class r extends i.y{constructor(){super()}removeQuotesFromBoth(e){if(e)return e.replace(/"([^"]+)":\s*"([^"]+)"/g,"$1: $2")}removeQuotesFromFirstWord(e){if(e)return e.replace(/"([^"]+)":/g,"$1:")}toCode(){console.warn(this.items);let e=this.items.map((e=>e.toCode())).flatMap((e=>e));console.log("BAD CONV"),console.log(this.removeQuotesFromFirstWord(JSON.stringify(this.obj,null,4)));let t=this.removeQuotesFromFirstWord(JSON.stringify(this.obj));return console.log(t),console.log("REPL"),console.log(t),`new MobileBar().set({\nbackground: "${this.obj.background}",\nbrand: ${this.obj.brand.toCode()},\nmar: ${JSON.stringify(this.obj.mar)},\npad: ${JSON.stringify(this.obj.mar)},\nradius: ${JSON.stringify(this.obj.radius)},\n}).add([\n ${e.join(",")}\n\n ])`}set(e){return this.obj=e,console.log("After passing to set:"),console.log("OBJ IN SET"),this.obj=e,this.makeNavbar(e),e.mar&&super.mar(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}makeNavbar(e){console.log("OBJ IN SETA");const t=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 t.render?(console.log("Appending brand:",t.render()),this.brand.appendChild(t.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",(()=>{this.toggleMobileNav()})),this.res=this.navbar}setStyles(e){this.navbar.style.display="flex",this.navbar.style.flexDirection="column",this.navbar.style.padding="1rem",this.navbar.style.backgroundColor=e.background??"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=this.hamburgerColour??"white",this.toggleButton.style.fontSize="1.5rem",this.toggleButton.style.cursor="pointer",this.navContent.style.display="none"}add(e){console.log(e),this.items=e;for(var t=0;t<e.length;t++){let s=e[t];this.navContent.appendChild(s.render())}return this}toggleMobileNav(){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="")}render(e){return e&&document.querySelector(e).appendChild(this.navbar),this.navbar}}},751:(e,t,s)=>{window.Range=class{constructor(e){this.el=null,this.minLabel=null,this.maxLabel=null,this.currentLabel=null}padding(e){return this.el.style.padding=e,this}toCode(){return[`new Range().set(${JSON.stringify(this.options,null,4)})`]}set(e){this.options=e;let t=document.createElement("input");if(t.setAttribute("id","slider"),t.setAttribute("type","range"),t.setAttribute("min",e.min),t.setAttribute("max",e.max),t.setAttribute("value",e.min),t.style.width=e.width??"100%",!e.plain){t.style.setProperty("-webkit-appearance","none"),t.style.appearance="none",t.style.height="9px",t.style.background=e.style.trackColor??"orange",t.style.borderRadius="5px";const s=`\n #slider::-webkit-slider-thumb {\n -webkit-appearance: none;\n appearance: none;\n width: 25px;\n height: 25px;\n border-radius: 50%;\n background: ${e.style.thumbColor??"4CAF50"};\n cursor: pointer;\n }\n `,i=document.createElement("style");i.appendChild(document.createTextNode(s)),document.head.appendChild(i)}let s=document.createElement("div");s.style.display="flex",s.style.flexDirection="column",s.style.alignItems="center",s.style.width="100%";let i=document.createElement("div");if(i.style.display="flex",i.style.justifyContent="space-between",i.style.width=e.width??"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=t.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||(i.appendChild(this.minLabel),i.appendChild(this.currentLabel),i.appendChild(this.maxLabel)),t.addEventListener("input",(()=>{this.currentLabel.textContent=t.value})),window.matchMedia("(max-device-width: 415px)").matches)if(e.plain)t.style.width="80%";else{t.style.height="20px",t.style.background=e.style.trackColor??"1abc9C",t.style.borderRadius="10px",t.style.fontSize="3rem",t.style.width="80%";const s=`\n #slider::-webkit-slider-thumb {\n -webkit-appearance: none;\n appearance: none;\n width: 25px;\n height: 25px;\n border-radius: 50%;\n background: ${e.style.thumbColor??"blue"};\n cursor: pointer;\n }\n `,i=document.createElement("style");i.appendChild(document.createTextNode(s)),document.head.appendChild(i)}return s.appendChild(i),s.appendChild(t),this.el=s,this}value(){return this.el.querySelector("#slider").value}render(e){if(!e)return this.el;document.querySelector(e).appendChild(this.el)}}},758:(e,t,s)=>{s(762).y},762:(e,t,s)=>{s.d(t,{y:()=>i});class i{constructor(){this.state={isExpanded:!1,isMovedUp:!1,isMovedDown:!1}}keySet(e){return this.temporaryVal=1,this.res.style[e.key]=e.value,this}onScroll(e){"opacity"===e.value?this.res.style.opacity=e.valMin:"scale"===e.value&&(this.res.style.transform=`scale(${e.valMax})`),window.addEventListener("scroll",(()=>{let t=this.smartRange(window.scrollY,{min:e.from,max:e.to},{min:e.valMin,max:e.valMax});"opacity"===e.value?this.res.style.opacity=t:"scale"===e.value&&(this.res.style.transform=`scale(${t})`)}))}setAny(e){this[Object.keys(e)[0]]=[Object.values(e)[0]]}setID(e){this.id=e}setPrevText(e){this.prevText=e}getCSS(){return this.css}getPX(e){return{xs:"0px",sm:"576px",md:"768px",lg:"992px",xl:"1200px",xxl:"1400px",mxxl:"1800px"}[e]||"Invalid breakpoint"}respad(e){const t=()=>{this.pad(e[0].values);for(let t=0;t<e.length;t++){let s=e[t].breakpoint;window.matchMedia(`(min-width: ${this.getPX(s)}`).matches&&this.pad(e[t].values)}};window.addEventListener("resize",t),t()}resmar(e){const t=()=>{this.mar(e[0].values);for(let t=0;t<e.length;t++){let s=e[t].breakpoint;window.matchMedia(`(max-width: ${this.getPX(s)}`).matches&&this.mar(e[t].values)}};window.addEventListener("resize",t),t()}resprop(e){this.prevBackground=this.res.style.background,this.prevWidth=this.res.style.width,this.prevHeight=this.res.style.height,this.prevBorder=this.res.style.border;const t=()=>{this.res.style.background=this.prevBackground,this.res.style.width=this.prevWidth,this.res.style.height=this.prevHeight,this.res.style.border=this.prevBorder;for(let t=0;t<e.length;t++){let s=e[t].breakpoint;if(window.matchMedia(`(max-width: ${this.getPX(s)}`).matches){const s={};for(const i in e[t])"breakpoint"!==i&&(s[i]=e[t][i]);this.set(s)}}};window.addEventListener("resize",t),t()}isNumber(e){return"number"==typeof e&&!isNaN(e)}pad(e){for(let t=0;t<e.length;t++){let s=Object.keys(e[t]);for(let i=0;i<s.length;i++){let r=s[i],n=e[t][r];for(let e=0;e<r.length;e++)switch(r[e]){case"a":this.res.style.padding=this.isNumber(n)?`${n}px`:n;break;case"t":this.res.style.paddingTop=this.isNumber(n)?`${n}px`:n;break;case"l":this.res.style.paddingLeft=this.isNumber(n)?`${n}px`:n;break;case"r":this.res.style.paddingRight=this.isNumber(n)?`${n}px`:n;break;case"b":this.res.style.paddingBottom=this.isNumber(n)?`${n}px`:n}}}return this}as(e){return this.res.style.alignSelf=e,this}mar(e){for(let t=0;t<e.length;t++){let s=Object.keys(e[t]);for(let i=0;i<s.length;i++){let r=s[i],n=e[t][r];for(let e=0;e<r.length;e++){switch(r[e]){case"a":this.res.style.margin=this.isNumber(n)?`${n}px`:n;break;case"t":this.res.style.marginTop=this.isNumber(n)?`${n}px`:n;break;case"l":this.res.style.marginLeft=this.isNumber(n)?`${n}px`:n;break;case"r":this.res.style.marginRight=this.isNumber(n)?`${n}px`:n;break;case"b":this.res.style.marginBottom=this.isNumber(n)?`${n}px`:n}"auto"===r[e]&&(this.res.style.marginLeft="auto",this.res.style.marginRight="auto")}}}return this}smartRange(e,t,s){e<t.min&&(e=t.min),e>t.max&&(e=t.max);let i=(e-t.min)/(t.max-t.min);t.min>t.max&&(i=(e-t.max)/(t.min-t.max));let r=(s.min-s.max)*i-s.min;if(r=Math.abs(r),s.min<s.max){let e=(s.max+Math.abs(s.min))*i;r=s.min+e}return r}gpos(e){return this.res.style.gridColumn=e.col,this.res.style.gridRow=e.row,this}fluidCopy(e){if(e instanceof Object){this.prevStylex=this.res.style,this.res=document.createElement("h1"),this.res.style.cssText=this.prevStylex.cssText;let 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;let e=document.createTextNode(this.text);this.res.appendChild(e),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;let e=document.createTextNode(this.text);this.res.appendChild(e),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;let e=document.createTextNode(this.text);this.res.appendChild(e),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;let e=document.createTextNode(this.text);this.res.appendChild(e),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;let e=document.createTextNode(this.text);this.res.appendChild(e),this.res.style.fontSize="calc(1.125rem + 1.975vw)"}return"S6"===e&&(this.res.style.fontSize="calc(1rem + 0.5vw)"),this}setIndex(e){this.index=e}borderObj(e){let t=e.type??"solid";return this.res.style.border=`${e.width} ${t} ${e.color}`,this.res.style.borderRadius=e.radius,this}protoReact(e,t){e.sort(((e,t)=>parseInt(e.range[0])-parseInt(t.range[0])));const s=()=>{const s=window.innerWidth;let i="";this.storedQueries=e.map((e=>e.target)).filter((e=>null!=e));for(const n of e){this.counterIndex++;const[e,o]=n.range,a=parseInt(e),l=parseInt(o);let h=!0;if(n.target){h=!1;for(var r=0;r<n.target.length;r++)n.target[r]===t&&(h=!0)}s>=a&&s<=l&&h&&("gradient"===n.log&&(i+="gradient"),"blast"===n.log&&(i+="blast"),"animation"===n.log&&(i+="animation"),"shadow"===n.log&&(i+="shadow"),"span"===n.log&&(i+="span"),"filter"===n.log&&(i+="filter"),"background"===n.log&&(i+="background"))}this.res.style.margin="";let n=this.res.style.color;for(e.map((e=>e.log)).filter((e=>null!=e)).includes("gradient")&&(this.res.style.WebkitBackgroundClip="",this.res.style.background=""),this.res.style["-webkit-text-stroke"]="",this.res.style.filter="",this.res.style.textShadow="",this.res.style.border="";this.res.firstChild;)this.res.removeChild(this.res.firstChild);if(this.res.textContent=this.text,""===i&&(this.res.style["-webkit-text-fill-color"]="",this.res.style.color=n),"blast"===i){for(r=0;r<e.length;r++){const t=e[r].op.offsets;t&&void 0!==this.index&&(this.res.style.margin=t[Number(this.index)]+"px")}for(this.res.style["-webkit-text-fill-color"]="transparent",this.res.style["-webkit-text-stroke"]=this.globalBlast,r=0;r<e.length;r++){const t=e[r].op.offsets;t&&void 0!==this.index&&(this.res.style.margin=t[Number(this.index)]+"px")}}if("gradient"===i&&(this.res.style["-webkit-text-fill-color"]="transparent",this.res.style.background=this.globalGradient,this.res.style["-webkit-background-clip"]="text",this.res.style.border="1px solid orange"),"background"===i&&(this.res.style.background="orange"),"gradientblast"===i&&(this.res.style["-webkit-text-fill-color"]="transparent",this.res.style.background=this.globalGradient,this.res.style["-webkit-background-clip"]="text",this.res.style["-webkit-text-stroke"]=this.globalBlast),"gradientanimation"===i&&(this.res.style["-webkit-text-fill-color"]="transparent",this.res.style.background=this.globalGradient,this.res.style["-webkit-background-clip"]="text"),"gradientanimationshadow"===i&&(this.res.style["-webkit-text-fill-color"]="transparent",this.res.style.background=this.globalGradient,this.res.style["-webkit-background-clip"]="text",this.res.style.textShadow=this.globalShadow),"animationshadow"===i&&(this.res.style["-webkit-text-fill-color"]="",this.res.style.textShadow=this.globalShadow),"shadow"===i&&(this.res.style["-webkit-text-fill-color"]="",this.res.style.textShadow=this.globalShadow),"span"===i&&this.options.span){let e;for(e=Array.isArray(this.options.span)?this.options.span.filter((e=>"span"===e.op.name))[0]:this.options.span,this.res.textContent="",r=0;r<e.op.parts.length;r++){let t=e.op.parts[r].style,s=new Text(e.op.parts[r].text).setup({type:"span"}).set(t).render();this.res.appendChild(s)}}if("filter"===i){let e=this.options.filtera.op.filter;this.res.style.filter=e,this.res.style.border="8px solid orange"}};window.addEventListener("resize",s),s()}setPref(e){this.preffersId=e}setClass(e){this.class=e}betaReact(e,t){this.ap=!1,this.cta=0,this.once=!1,e.sort(((e,t)=>parseInt(e.range[0])-parseInt(t.range[0])));const s=()=>{const s=window.innerWidth;let i="";this.resCopy=this.res,this.storedQueries=e.map((e=>e.target)).filter((e=>null!=e));for(const n of e){this.counterIndex++;const[e,o]=n.range,a=parseInt(e),l=parseInt(o);let h=!0;if(n.target){h=!1;for(var r=0;r<n.target.length;r++)n.target[r]===t&&(h=!0)}s>=a&&s<=l&&h&&("blast"===n.log&&(i+="blast"),"shadow"===n.log&&(i+="shadow"),"background"===n.log&&(i+="background"),"gradient"===n.log&&(i+="gradient"),"spana"===n.log&&(i+="spana"),"layout"===n.log&&(i+="layout"),"margin"===n.log&&(i+="margin"),n.op&&n.op.margin&&(this.useMargin=n.op.margin))}if(this.res.style.background="",this.res.style.backgroundColor="",this.res.style.textShadow="",this.res.style.border="",this.res.style.margin="",this.res.style["-webkit-text-fill-color"]="",this.res.style["-webkit-text-stroke"]="",this.res.style["-webkit-text-stroke-width"]="","background"===i&&(this.res.style.backgroundColor="green"),"margin"===i)for(r=0;r<e.length;r++){if(!e[r].op)continue;const t=e[r].op.offsets;t&&void 0!==this.index&&(this.res.style.margin=t[Number(this.index)]+"px")}if("blastbackgroundmargin"===i){for(r=0;r<e.length;r++){if(!e[r].op)continue;const t=e[r].op.offsets;t&&void 0!==this.index&&(this.res.style.margin=t[Number(this.index)]+"px")}this.res.style.backgroundColor="green","FlexRowLayoutElement"===this.getType()?this.res.style.border="1px solid orange":(this.res.textContent=this.text,this.res.style["-webkit-text-fill-color"]="transparent",this.res.style["-webkit-text-stroke-color"]="orange",this.res.style["-webkit-text-stroke-width"]="1px"),this.res.style["-webkit-text-fill-color"]="transparent",this.res.style["-webkit-text-stroke-color"]="orange",this.res.style["-webkit-text-stroke-width"]="1px"}if("blastbackground"===i){for(r=0;r<e.length;r++){if(!e[r].op)continue;const t=e[r].op.offsets;t&&void 0!==this.index&&(this.res.style.margin=t[Number(this.index)]+"px")}this.res.style.backgroundColor="green",this.useMargin?this.res.style.margin="1rem":this.res.setAttribute("id","iofhwoiefhoih"),"FlexRowLayoutElement"===this.getType()?this.res.style.border="1px solid orange":(this.res.textContent=this.text,this.res.style["-webkit-text-fill-color"]="transparent",this.res.style["-webkit-text-stroke-color"]="orange",this.res.style["-webkit-text-stroke-width"]="1px"),this.res.style["-webkit-text-fill-color"]="transparent",this.res.style["-webkit-text-stroke-color"]="orange",this.res.style["-webkit-text-stroke-width"]="1px"}if("layout"===i&&(this.res.style.alignSelf="start",this.res.style.border="1px solid purple"),"blast"===i){for(r=0;r<e.length;r++){if(!e[r].op)continue;const t=e[r].op.offsets;t&&void 0!==this.index&&(this.res.style.margin=t[Number(this.index)]+"px")}"FlexRowLayoutElement"===this.getType()?this.res.style.border="1px solid orange":(this.res.textContent=this.text,this.res.style["-webkit-text-fill-color"]="transparent",this.res.style["-webkit-background-clip"]="text",this.res.style["-webkit-text-stroke-color"]="orange",this.res.style["-webkit-text-stroke-width"]="1px"),this.res.style["-webkit-text-fill-color"]="transparent",this.res.style["-webkit-text-stroke"]="orange",this.res.style["-webkit-text-stroke-width"]="1px"}"blastgradientbackground"===i&&(this.res.style.border="1px solid yellow",this.res.style["-webkit-text-stroke-color"]="orange",this.res.style["-webkit-text-stroke-width"]="1px"),"gradient"===i&&(this.res.style.background="linear-gradient(to left, #3498db, #1abc9c)","FlexRowLayoutElement"===this.getType()||(this.res.children[0]&&this.res.removeChild(this.res.children[0]),this.res.style["-webkit-text-fill-color"]="transparent",this.res.style["-webkit-background-clip"]="text",this.res.textContent=this.text)),"shadow"===i&&("FlexRowLayoutElement"===this.getType()||(this.res.children[0]&&this.res.removeChild(this.res.children[0]),this.res.style["-webkit-text-fill-color"]="",this.res.style["-webkit-text-fill-color"]="",this.res.style.textShadow="#1abc9cff -6px 6px , #1abc9c40 -12px 12px",this.res.textContent=this.text))};window.addEventListener("resize",s),s()}cssGen(e,t,s,i){return this.css=[""],[""]}chainReact(e,t,s){this.cssGen(e,t,this.class,void 0!==this.class),this.ap=!1,this.cta=0,this.once=!1;for(let t of e)t.range||(t.range=["0px","999999px"]);e.sort(((e,t)=>parseInt(e.range[0])-parseInt(t.range[0])));const i=()=>{const i=window.visualViewport.width;let r=[],n=[];this.resCopy=this.res,this.storedQueries=e.map((e=>e.target)).filter((e=>null!=e));for(const s of e){this.counterIndex++;const[e,a]=s.range,l=parseInt(e),h=parseInt(a);let d=!0;if(s.target){d=!1;for(var o=0;o<s.target.length;o++)s.target[o]===t&&(d=!0)}i>=l&&i<=h&&d&&(r.push(s.log),n.push(s),s.op&&s.op.margin&&(this.useMargin=s.op.margin))}if(s&&!s.includes("background")&&(this.res.style.background="",this.res.style.backgroundColor=""),this.res.style.textShadow="",s&&!s.includes("border")&&(this.res.style.border=""),s&&!s.includes("margin")&&(this.res.style.margin=""),this.res.style["-webkit-text-fill-color"]="",this.res.style["-webkit-text-stroke-color"]="",this.res.style["-webkit-text-stroke-width"]="",this.res.style.filter="",(r.includes("gradient")||r.includes("shadow"))&&(this.res.style.position="relative",this.res.style.zIndex=-1),r.includes("blast")){let e=n.filter((e=>"blast"===e.log))[0].op.color,t=n.filter((e=>"blast"===e.log))[0].op.width??"1px";"FlexRowLayoutElement"===this.getType()?this.res.style.border=`${t}px solid orange`:(this.res.textContent=this.text,this.res.style["-webkit-text-fill-color"]="transparent",this.res.style["-webkit-text-stroke-color"]=e,this.res.style["-webkit-text-stroke-width"]=`${t}`)}if(r.includes("filter")){let e=n.filter((e=>"filter"===e.log))[0].op.filter;this.res.style.filter=e}if(r.includes("background")&&(this.res.style.backgroundColor="green"),r.includes("gradient")&&(this.res.style["-webkit-text-fill-color"]="transparent",this.res.style.background=this.globalGradient,this.res.style["background-clip"]="text"),r.includes("shadow"))if("FlexRowLayoutElement"===this.getType());else{let e="",t=0;for(o=0;o<this.options.shadow.op.steps;o++)t+=3,e+=`drop-shadow(${t}px ${t}px ${t}px gray) `;this.res.style.filter=e}if(r.includes("margin"))for(o=0;o<e.length;o++){if(!e[o].op)continue;const t=e[o].op.offsets;t&&void 0!==this.index&&(this.res.style.margin=t[Number(this.index)]+"px")}if(r.includes("animation")){if(this.options.animation&&!this.hasAnimated&&!this.options.animation.op.fireAt){this.hasAnimated=!0;let e=this.options.animation.op;this.res.animate(e.keyframesClose,{duration:0,fill:"forwards"}),this.res.animate(e.keyframesOpen,e.openOptions)}if(this.options.animation&&this.options.animation.op.fireAt&&this.options.animation.op.fireAt.endsWith("px")){let e=this.options.animation.op;this.res.animate(e.keyframesClose,{duration:0,fill:"forwards"});const t=()=>{window.scrollY>parseFloat(e.fireAt)&&(this.res.animate(e.keyframesOpen,e.openOptions),window.removeEventListener("scroll",t))};window.addEventListener("scroll",t)}if(this.options.animation&&this.options.animation.op.fireAt&&"inview"===this.options.animation.op.fireAt){let e=this.options.animation.op;this.res.animate(e.keyframesClose,{duration:0,fill:"forwards"}),new IntersectionObserver(((t,s)=>{t.forEach((t=>{t.isIntersecting&&(this.res.animate(e.keyframesOpen,e.openOptions),s.disconnect())}))})).observe(this.res)}}};window.addEventListener("resize",i),i()}reactOnTransform=e=>{if(e.transform||e.op&&e.op.transform){let t=e.transform;e.transform||(t=e.op.transform),t.duration||(t.duration="3s-ease-in-out"),this.setDefault=(e,t="0px")=>0===e.length?t+" ":e;const s=e=>{const t=e.match(/rotate\(([^)]+)\)/);if(!t)return e;const s=t[1].split(",").map((e=>e.trim()));return 1===s.length?`rotate(${s[0]})`:2===s.length?`rotateX(${s[0]}) rotateY(${s[1]})`:3===s.length?`rotateX(${s[0]}) rotateY(${s[1]}) rotate(${s[2]})`:e},i=()=>{let i="",r="",n="",o="",a="",l="",h="",d="",c="";if(0===t.values.length)return;t.values.forEach((e=>{e.startsWith("tx:")&&(i=e.replace("tx:","")),e.startsWith("ty:")&&(r=e.replace("ty:","")),e.startsWith("tz:")?n=e.replace("tz:",""):e.startsWith("scale(")?o=e:e.startsWith("skew(")?a=e:e.startsWith("rotate(")?l=s(e):e.startsWith("perspective(")?h=e:e.startsWith("matrix(")?d=e:e.startsWith("opacity:")&&(c=e.replace("opacity:",""))})),i=this.setDefault(i),r=this.setDefault(r),n=this.setDefault(n);let p="";if("0px"!=r&&"0px"!=i&&"0px"!=n?p+=`translate3d(${i}, ${r}, ${n})`:"0px"==r&&"0px"==i||(p+=`translate(${i}, ${r})`),o&&(p+=` ${o}`),l&&(p+=` ${l}`),a&&(p+=` ${a}`),h&&(p+=` ${h}`),d&&(p+=` ${d}`),p){if(e.op.transform.duration){let t=e.op.transform.duration.replace(/^(\d+)(s)-/,((e,t,s)=>t/2+s+" ")),s=`transform ${t}, opacity ${t}`;this.res.style.transition=s}else this.res.style.transition="transform 3s ease-in-out, opacity 3s ease-in-out";this.res.style.transform=p,this.res.style.opacity=c}};t.on?this.res.addEventListener(t.on,(()=>{t.delay?setTimeout((()=>{i()}),t.delay):i()})):window.addEventListener("load",(()=>{t.delay?setTimeout((()=>{i()}),t.delay):i()}));const r=()=>{let e="";t.values.forEach((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) "),this.res.style.opacity="1"})),e&&(this.res.style.transform=e.trim())};if(t.on)this.res.addEventListener("mouseout",(()=>{t.keep||r()}));else{let e=1e3*parseFloat(t.duration),s=t.closeAfter?t.closeAfter:0;setTimeout((()=>{t.keep||r()}),e/2+s)}}};maxWidth(e){return this.res.style.maxWidth=e,this}removeQuotesFromFirstWord(e){return e.replace(/"([^"]+)":/g,"$1:")}arrayMargin(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}navBarExpand(){return this.res.style.backgroundColor="green",this.res.animate([{transform:"scaleY(3.0)"}],{duration:2e3,iterations:1,fill:"both"}),this}scrollFade(e,t){return this.res.style.visibility="hidden",this.faden(e,t,"scroll"),this}expand(e){return!1===this.state.isExpanded?"click"===e.on?this.res.addEventListener("click",(()=>{this.innerExpand(e)})):this.innerExpand(e):this.innerExpandBack(e),this.state.isExpanded=!this.state.isExpanded,this}move(e){return"click"===e.on?this.res.addEventListener("click",(()=>{this.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}moveLeft(e){return this.res.animate([{transform:"translateX(0px)"},{transform:`translateX(-${e.distance})`}],{duration:900,iterations:e.iterations,fill:"both"}).play(),this}moveUpa(e){return!1===this.state.isMovedUp?this.res.animate([{transform:"translateX(0px)"},{transform:`translateY(-${e.distance})`}],{duration:900,iterations:e.iterations,fill:"both"}).play():this.res.animate([{transform:"translateX(0px)"},{transform:`translateY(${e.distance})`}],{duration:900,iterations:e.iterations,fill:"both"}).play(),this}moveDowna(e){return!1===this.state.isMovedDown?this.res.animate([{transform:"translateX(0px)"},{transform:`translateY(${e.distance})`}],{duration:900,iterations:e.iterations,fill:"both"}).play():this.res.animate([{transform:"translateX(0px)"},{transform:`translateY(-${e.distance})`}],{duration:900,iterations:e.iterations,fill:"both"}).play(),this}moveUpaBack(e){return this.res.animate([{transform:"translateX(0px)"}],{duration:900,iterations:e.iterations,fill:"both"}).play(),this}innerExpandBack(e){this.res.animate([{width:this.prevWidth,height:this.prevHeight}],{duration:900,iterations:e.iterations,fill:"both"})}innerExpand(e){return this.prevWidth=this.res.style.width,this.prevHeight=this.res.style.height,this.res.animate([{width:this.prevWidth,height:this.prevHeight},{width:e.width??this.prevWidth,height:e.height??this.prevHeight}],{duration:900,iterations:e.iterations,fill:"both"}),this}fade(e){return this.res.style.visibility="hidden",this.faden(e.duration,e.from,"load"),e.finalOpacity&&(this.finalOpacity=e.finalOpacity),this}faden(e,t,s){return this.res.style.visibility="hidden",this.scrolled=!1,window.addEventListener(s,(()=>{this.res.style.visibility="visible";var i=window.innerHeight;(this.res.getBoundingClientRect().top-i<=0||"load"==s)&&0==this.scrolled&&("left"==t&&this.res.animate([{transform:"translateX(-30px)"},{transform:"translateX(0px)"}],{duration:e,iterations:1}),"right"==t&&this.res.animate([{transform:"translateX(30px)"},{transform:"translateX(0px)"}],{duration:e,iterations:1}),"top"==t&&this.res.animate([{transform:"translateY(-30px)"},{transform:"translateY(0px)"}],{duration:e,iterations:1}),"bottom"==t&&this.res.animate([{transform:"translateY(30px)"},{transform:"translateY(0px)"}],{duration:e,iterations:1}),this.res.animate([{opacity:"0.0"},{opacity:"1.0"}],{duration:e,iterations:1}),this.scrolled=!0)})),this}}},790:(e,t,s)=>{s.d(t,{f:()=>r});var i=s(762);class r extends i.y{constructor(){super()}setup(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}toggleSideNav(e){this.closed=!this.closed;let 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"});let e=-1;for(let s of t.children)if(e+=1,this.masterEL[e])for(let t of s.children){let s=this.masterEL[e].options.animation;s&&this.mappedIDS.includes(t.id)&&t.animate(s.op.keyframesClose,s.op.closeOptions)}}else t.style.display="none";else{t.style.overflowX="none",t.children[1].style.border="1px solid orange";let s=-1;for(let e of t.children){s+=1;for(let t of e.children)if(this.mappedIDS.includes(t.id)&&void 0!==this.masterEL[0]){let e=this.masterEL[s].options.animation;if(e){console.log("OPEN KEYFRAMES"),console.log(e.op.keyframesOpen);let s=e.op.openOptions;s.delay||(s.delay=1),s.duration||(s.duration=300),console.log(s),t.animate(e.op.keyframesOpen,s)}}}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"}}createToggleButton(e){const t=document.createElement("button");return t.innerText="☰",t.style.padding="10px 20px",t.style.backgroundColor="transparent",t.style.color=e??"#3498db",t.style.border="none",t.style.borderRadius="5px",t.style.cursor="pointer",t.style.zIndex=1,t.style.fontSize="1.6rem",t}createCloseButton(e){const t=document.createElement("button");return t.innerText="×",t.style.fontSize="1.6rem",t.style.padding="10px 20px",t.style.backgroundColor="transparent",t.style.color=e??"black",t.style.border="none",t.style.borderRadius="5px",t.style.cursor="pointer",t.style.zIndex=1,t.style.alignSelf="flex-end",t}createSideNav(e){const t=document.createElement("div");t.style.display="flex",t.style.justifyContent="flex-end";const s=document.createElement("div");s.style.display="none",s.style.background=this.obj.background||"#1abc9c",s.style.height="100%",window.matchMedia("(max-device-width: 415px)").matches?s.style.width="100%":s.style.width=this.obj.width||"400px",s.style.position="fixed",s.style.right=0,this.animate&&(s.style.transform="translateX(100%)"),s.style.flexDirection="column",s.style.justifyContent="flex-start";const i=this.createToggleButton(this.obj.hamColour.opened),r=this.createCloseButton(this.obj.hamColour.closed);return i.addEventListener("click",(()=>this.toggleSideNav(i))),r.addEventListener("click",(()=>this.toggleSideNav(i))),s.appendChild(r),t.appendChild(s),t.appendChild(i),t}items(e){this.masterEL=e.items.filter((e=>void 0!==e.link)),console.log("EXTRACT IDs"),console.log(e);let t=e.items.filter((e=>void 0===e.items)).map((e=>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]);let e=this.masterEL[0].options.animation;if(e)for(let t of this.res.children[0].children)for(let s of t.children)if(this.mappedIDS.includes(s.id)){let t=e.op.closeOptions;t.delay=0,console.log("ANNAX"),console.log("SETTING INITIAL STATE ZEROING THE DELAY"),console.log(e.op.keyframesClose),console.log(t),s.animate(e.op.keyframesClose,e.op.closeOptions)}}return this}toCode(){let e=`new SideNav().setup(${this.formatObj(this.obj)})`;if(this.item){let t=this.item.toCode?this.item.toCode().join(""):this.formatObj(this.item);t=t.replace(/,\s*(\.set\(|\.add\()/g,"\n $1"),e+=`.items(${t})`}return e}formatObj(e){return JSON.stringify(e,null,2).replace(/"(\w+)"\s*:/g,"$1:")}render(e){return e&&document.querySelector(e).appendChild(this.res),this.res}}},828:(e,t,s)=>{s.d(t,{C:()=>r});var i=s(762);class r extends i.y{constructor(){super(),this.navbar=document.createElement("nav"),this.navbar.classList.add("desktop-navbar"),this.navbarHeader=document.createElement("div"),this.navbarHeader.classList.add("navbar-header"),this.brand=document.createElement("div"),this.brand.classList.add("navbar-brand"),this.navContent=document.createElement("div"),this.navContent.classList.add("navbar-content"),this.navContent.style.width="100%",this.navbarHeader.appendChild(this.brand),this.navbarHeader.appendChild(this.navContent),this.navbar.appendChild(this.navbarHeader),this.res=this.navbar}set(e){return console.warn(e),this.obj=e,e.background&&(this.res.style.backgroundColor=e.background),e.mar&&super.mar(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}setStyles(){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"}setBrand(e){return console.warn("SETA"),console.log(e),this.brand.innerHTML="",this.brand.appendChild(e),this}add(e){this.items=e;for(var t=0;t<e.length;t++)e[t],this.navContent.appendChild(e[t].render());return this}toCode(){console.warn(this.items);let e=this.items.map((e=>e.toCode())).flatMap((e=>e));return console.log("ITSA"),console.log(e),console.log(`${e.join(",")}`),`new DesktopBar().set(${this.removeQuotesFromFirstWord(JSON.stringify(this.obj))}).add([\n ${e.join(",")}\n\n \n \n\n ])`}render(e){return e&&document.querySelector(e).appendChild(this.navbar),this.navbar}}},836:(e,t,s)=>{s.d(t,{C:()=>r});var i=s(762);class r extends i.y{constructor(e){super(),this.url=e,this.res=null,this.setup()}setup(){this.res=document.createElement("video"),this.res.setAttribute("src",this.url),this.res.setAttribute("controls","controls")}set(e){return this.options=e,e.radius&&(this.res.style.borderRadius="1rem"),e.width&&(this.res.style.width=`${e.width}`),e.opacity&&(this.res.style.opacity=e.opacity),this}size(e){return this.res.style.width=e,this}toCode(){const e=JSON.stringify(this.options,null,4);return[`new Video("${this.url}").set(${e})`]}render(e){if(!e)return this.res;document.querySelector(e).appendChild(this.res)}}},877:(e,t,s)=>{s.d(t,{I:()=>r});var i=s(762);class r extends i.y{constructor(){super(),this.el=null,this.file=null}set(e){this.options=e,this.okayColor=e.okayColor,window.matchMedia("(max-device-width: 415px)");let t=document.createElement("div");t.style.paddingBottom="1em",t.style.display="flex",document.createElement("div");let s=document.createElement("input");s.setAttribute("type","text"),s.style.display="none",s.style.margin="0.5em";let 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");let r=document.createElement("label");return r.setAttribute("for",e.id),r.innerText=e.title,r.style.marginRight=12,r.style.padding="0.5em",e.color&&(r.style.color=e.color),e.background&&(r.style.background=e.background,r.style.padding="10"),i.addEventListener("change",(()=>{s.style.display="block",e.hideField&&(s.style.display="none"),r.innerText="Change",this.file=i.files[0],this.onLoad(this.file),n[e.index]=this.file,s.setAttribute("value",this.file.name),s.setAttribute("readonly","true"),this.getLoaded(),this.highlight()})),t.appendChild(i),t.appendChild(r),t.appendChild(s),this.el=t,e.font&&this.font(e.font),e.radius&&this.borderRadius(e.radius),this}borderRadius(e){return this.el.style.borderRadius=e,this}addClass(e){return this.el.setAttribute("class",e),this}font(e){return this.el.style.fontFamily=e,this}bold(){return this.el.style.fontWeight="bold",this}rounded(){return this.el.children[1].style.borderRadius="8px",this}highlight(){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}auto(){const e=()=>{window.matchMedia("(max-device-width: 415px)").matches};return e(),window.addEventListener("resize",e),this}onLoad(e){return this.returnObject(this.file),this}getLoaded(){return this.file}returnObject(e){return e}loadCall(e){return this.func=e,this.func(this.file),this}toCode(){let e=JSON.stringify(this.options,null,4);return e=e.replace(/"(\w+)"(?=\s*:)/g,"$1"),[`new FilePickera().set(${e})`]}render(e){return e?(document.querySelector(e).appendChild(this.el),this):this.el}}var n=[]},897:(e,t,s)=>{s.d(t,{i:()=>r});var i=s(762);class r extends i.y{constructor(){super(),this.breakpoints=[],this.container=null,this.currentView=null,this.internalDiv=null,this.resizeListener=null}set({breakpoints:e}){if(this.options={breakpoints:e},!Array.isArray(e))throw new Error("Breakpoints should be an array of objects with 'at' and 'view' properties.");return this.breakpoints=e.map((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{...e,at:parseInt(e.at,10)}})),this.breakpoints.sort(((e,t)=>e.at-t.at)),this}toCode(){JSON.stringify(this.options.breakpoints.map((e=>e.view.toCode())).flat(),null,4),JSON.stringify(this.options.breakpoints.map((e=>e.at)),null,4),JSON.stringify(this.options.breakpoints,null,4);let e="";for(var t=0;t<this.options.breakpoints.length;t++)e+=`{ at: "${this.options.breakpoints[t].at}", view: ${this.options.breakpoints[t].view.toCode()} }, \n`;return[`new Switcher().set({\n breakpoints: [\n ${e}\n ]\n })`]}render(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}createRanges(e,t=99999){let s=[];for(let i=0;i<e.length;i++)s.push({from:e[i],to:i<e.length-1?e[i+1]-1:t});return s}addRanges(e,t,s=99999){return e.map(((e,i)=>({...e,range:{from:t[i],to:i<t.length-1?t[i+1]-1:s}})))}applyView(){console.log("MAKE RANGES"),window.innerWidth,console.log(this.breakpoints),console.log(this.breakpoints.map((e=>e.at)));let e=this.breakpoints.map((e=>e.at)),t=this.breakpoints.map((e=>e.at)),s=(this.createRanges(t),this.addRanges(this.breakpoints,e));console.log(s),s.forEach((e=>{const t=`(min-width: ${e.range.from}px) and (max-width: ${e.range.to}px)`,s=window.matchMedia(t);console.warn(t),s.matches&&(console.log(`Viewport width is within the range: ${e.range.from}px to ${e.range.to}px`),this.currentView!==e.view.render()&&(this.internalDiv.innerHTML="",this.internalDiv.appendChild(e.view.render()),this.currentView=e.view.render()))})),console.log("MBO")}destroy(){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}}},898:(e,t,s)=>{s.d(t,{L:()=>r});var i=s(762);class r extends i.y{constructor(){super(),this.el=null,this.file=null,this.selected=""}setup(e,t){document.createElement("div");let s=document.createElement("select");s.setAttribute("type","file"),s.setAttribute("name",t),s.addEventListener("change",(()=>{s.options[s.selectedIndex].value}));for(var i=0;i<e.length;i++)s.appendChild(this.addNode(e[i][0],e[i][1]));return this.el=s,this}set(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}arrayPadding(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}arrayMargin(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}addNode(e,t){var s=document.createElement("option");s.setAttribute("value",e);var i=document.createTextNode(t);return s.appendChild(i),s}padding(e){return this.el.style.padding=e,this}font(e){return this.el.style.fontFamily=e,this}margin(e){return this.el.style.margin=e,this}toCode(){let e=JSON.stringify(this.options,null,4);return e=e.replace(/"(\w+)"(?=\s*:)/g,"$1"),[`new Picker().set(${e})`]}rounded(e){return this.el.style.borderRadius="4px",this}auto(){const e=()=>{window.matchMedia("(max-device-width: 415px)").matches?this.el.style.fontSize="3rem":this.el.style.fontSize="1rem"};return e(),window.addEventListener("resize",e),this}render(e){if(!e)return this.el;document.querySelector(e).appendChild(this.el)}}window.Picker=r},946:(e,t,s)=>{s(762).y},959:(e,t,s)=>{s.d(t,{f:()=>r});var i=s(762);class r extends i.y{constructor(e){super(),this.url=e,this.res=null,this.setup()}setup(){this.res=document.createElement("audio"),this.res.setAttribute("src",this.url),this.res.setAttribute("controls","controls")}set(e){return this.options=e,e.background&&this.background(e.background),this}background(e){const t=document.createElement("style");return t.type="text/css",t.textContent=`\n\taudio::-webkit-media-controls-panel {\n\t\tbackground-color: ${e};\n\t}\n`,document.head.appendChild(t),this}toCode(){return JSON.stringify(this.options,null,4),[`new Audio("${this.url}")`]}size(e){return this.res.style.width=e,this}render(e){if(!e)return this.res;document.querySelector(e).appendChild(this.res)}}}},__webpack_module_cache__={};function __webpack_require__(e){var t=__webpack_module_cache__[e];if(void 0!==t)return t.exports;var s=__webpack_module_cache__[e]={exports:{}};return __webpack_modules__[e](s,s.exports,__webpack_require__),s.exports}__webpack_require__.d=(e,t)=>{for(var s in t)__webpack_require__.o(t,s)&&!__webpack_require__.o(e,s)&&Object.defineProperty(e,s,{enumerable:!0,get:t[s]})},__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__,{Des:()=>Des});var _lib_elementMapper_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(128),_layout_text_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(16),_layout_image_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(130),_layout_link_js__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(219),_layout_flexRow_js__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(946),_layout_newNavBar_js__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(155),_layout_free_js__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(317),_layout_audionew_js__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(959),_layout_code_js__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(26),_layout_container_js__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(304),_layout_table_js__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(588),_layout_dropdown2025_js__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(69),_layout_textField_js__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(758),_layout_flexCard_js__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__(110),_layout_zoomCard_js__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__(418),_layout_multiswitcher_js__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__(897),_layout_betaMobileBar_js__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__(734),_layout_betaDesktopBar_js__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__(828),_layout_sideNavBar_js__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__(790),_layout_formComponents_floatingInput_js__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__(148),_layout_formComponents_range_js__WEBPACK_IMPORTED_MODULE_20__=__webpack_require__(751),_layout_formComponents_radio_js__WEBPACK_IMPORTED_MODULE_21__=__webpack_require__(385),_layout_formComponents_picker_js__WEBPACK_IMPORTED_MODULE_22__=__webpack_require__(898),_layout_formComponents_imagePicker_js__WEBPACK_IMPORTED_MODULE_23__=__webpack_require__(877),_layout_formComponents_dataList_js__WEBPACK_IMPORTED_MODULE_24__=__webpack_require__(216),_layout_button_js__WEBPACK_IMPORTED_MODULE_25__=__webpack_require__(207),_layout_slider2025_js__WEBPACK_IMPORTED_MODULE_26__=__webpack_require__(733),_layout_video_js__WEBPACK_IMPORTED_MODULE_27__=__webpack_require__(836),_layout_checkbox_js__WEBPACK_IMPORTED_MODULE_28__=__webpack_require__(342);class Des{constructor(){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:e=>`stroke: {range:["0px","3000px"], op:{name:"blast",color:"orange",width:"${e}px"}}`},nepal:{blast:{code:'stroke: {range:["0px","3000px"], op:{name:"blast",color:"#2ECC71",width:"3px"}}'},blastFun:e=>`stroke: {range:["0px","3000px"], op:{name:"blast",color:"#2ECC71",width:"${e}px"}}`},patagonia:{blast:{code:'stroke: {range:["0px","3000px"], op:{name:"blast",color:"#1abc9c",width:"3px"}}'},blastFun:e=>`stroke: {range:["0px","3000px"], op:{name:"blast",color:"#1abc9c",width:"${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 mc: true,\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 mc: true,\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("You can count on it").set({\n fluidc: "S2",\n font: "Oswald",\n width: "100%",\n color: "black"\n }),\n\n new Text("Experience the thrill of open water swimming with our exceptional performance. So whether you’re participating in a triathlon or simply enjoying a leisurely swim, you can trust our wetsuits to enhance your performance and elevate your experience.So why wait? Dive into your next open water adventure with our top-of-the-line wetsuits. Make waves, set new records, and explore the uncharted depths of the ocean with confidence and style. Experience the difference today with our exceptional wetsuits!")\n .set({\n font: "Arial",\n exact: "1.3rem"\n })\n\n ]),\n\n new Wrapper().set({\n mc: true,\n\n radius: "1.7rem",\n overflow: "hidden"\n\n }).add([\n\n new Image("https://www.blueseventy.com/cdn/shop/files/23-home-size2.jpg?v=1684272215&width=3840", "exact").set({\n width: "100%",\n height: "420px",\n minHeight: "100px",\n objectFit: "cover"\n\n })\n ]),\n\n new Wrapper().set({\n mc: true,\n pad: [{\n a: 20\n }],\n background: "#ecf0f1",\n radius: "1.7rem",\n }).add([\n new Text("You won\'t miss with Blue70").set({\n fluidc: "S3",\n font: "Oswald",\n color: "black"\n }),\n new Text("Yea")\n .set({\n font: "Arial",\n exact: "1.3rem"\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("Hello").set({\n font: "Arial",\n exact: "1.3rem"\n }), ]),\n ])'},flexRow:e=>({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:e=>" ".repeat(e)}}at(e){return this.options.push(e),this}nodes(e){return this.options=e,this.protoOptions=[...e],console.log(this.options),console.log(this.protoOptions),this}getElType(e){return`S${e.substr(1)}`}filtero(e,t,s){return s.filter((t=>t.op.name===e)).filter((e=>!e.target||e.target.includes(t)))[0]}add(arr){this.css=[],this.elCSS=[],this.elHTML=[];let customOptions=this.options;for(var i=0;i<arr.length;i++){let 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(var q=0;q<ops.length;q++){let e=customOptions.map((e=>e.op)).map(((e,t)=>e===ops[q]?t:"")).filter(String);if(e.length>0)for(var d=0;d<e.length;d++){let t=e[d],s=customOptions[t].target,i=customOptions[t].range,r=customOptions[t].filter,n=customOptions[t].gradient,o=replacementObjects[q];o.target=s,null!=i&&(o.range=i),null!=r&&(o.op.filter=r),null!=n&&(o.op.gradient=n),customOptions[t]=o}}console.warn(customOptions);for(var q=0;q<customOptions.length;q++){let e=customOptions[q].op.name,t=this.protoOptions[q].style||"default",s=this.protoOptions[q].duration||"default";if("transform"===e){let e=[];if(e="SOLARIUM"===t?["scale(3)"]:"WAVE"===t?["skew(15deg, 0deg)","tx:50px","rotate(10deg)","scale(1.1)"]:"CUBE-SPIN"===t?["perspective(700px)","scale(0.9)"]:"TORNADO-SWITCH"===t?["rotate(720deg)","scale(0.8)","tx:30px","ty:-50px","tz:-80px"]:"LASER-SWEEP"===t?["tx:100px","opacity:0.2","scale(1.2, 1.0)"]:"TORNADO-TWIST"===t?["rotate(720deg)","scale(0.8)","tx:30px","ty:-50px","skew(10deg, 0deg)"]:"JELLY-WOBBLE"===t?["scale(1.2, 0.8)","rotate(5deg)","ty:-10px","skew(5deg, 0deg)"]:"DRUNKEN-SWAY"===t?["rotate(15deg)","tx:20px","ty:-10px","skew(10deg, 5deg)"]:"FLAME-FLICKER"===t?["scale(1.1, 0.9)","rotate(-5deg)","ty:5px","opacity:0.7"]:"PHANTOM-SHIFT"===t?["tx:15px","ty:-5px","opacity:0.5","skew(5deg, 5deg)"]:"RUBBER-BOUNCE"===t?["scale(1.3, 0.8)","skew(10deg, 0deg)","ty:-20px"]:"ASTEROID-CRASH"===t?["tx:-80px","ty:100px","rotate(45deg)","scale(0.7)","opacity:0.5"]:"CYBER-GLITCH"===t?["tx:5px","ty:-5px","rotate(3deg)","opacity:0.6","scale(1.05)"]:"BUBBLE-POP"===t?["scale(1.5)","opacity:0.3","ty:-20px"]:"SUPERNOVA-BURST"===t?["scale(2)","opacity:0","tx:50px","ty:-50px"]:"GRAVITY-DROP"===t?["ty:100px","scale(0.8)","rotate(10deg)","skew(0deg, 10deg)"]:"LASER-SWEEP"===t?["tx:100px","opacity:0.2","scale(1.2, 1.0)"]:"VORTEX-SINK"===t?["rotate(-360deg)","scale(0.5)","ty:50px"]:"SHOCKWAVE"===t?["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"===s&&(s="MEDIUM"),"FAST"===s?s="3s-ease-in-out":"MEDIUM"===s?s="6s-ease-in-out":"SLOW"===s&&(s="10s-ease-in-out"),q==i){console.log("DURA"),console.log(s),customOptions[q].op.transform={values:e,duration:s};let t="style",i="duration";if(customOptions[q]?.op&&t in customOptions[q].op&&delete customOptions[q].op[t],customOptions[q]?.op&&i in customOptions[q].op&&delete customOptions[q].op[i],console.log("COQ"),console.log(customOptions[q].op.values),customOptions[q]?.op.values){let e="values";customOptions[q]?.op.values&&delete customOptions[q].op[e]}}}}console.log(`----------------------------LLL ${i} ${customOptions.length}`);const 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())}return this}toTextArea(){let e=document.createElement("textarea");e.style.width=300,e.style.height=300,e.setAttribute("id","elements"),e.value=this.code.join(""),this.target="#elements";let t=document.createElement("pre"),s=document.createElement("code");const i=this.code.map((e=>`${e}.render("#mount"); \n \n`));this.code=i,s.textContent=this.code,t.appendChild(s),t.setAttribute("class","nonLayout"),document.body.appendChild(t),document.body.appendChild(e);let r=document.createElement("pre");return r.style.marginTop="100px",r.style.overflow="scroll",this}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++){let sub=this.code[i];console.log("SUBO"),console.log(sub),eval(`${sub}`)}}}module.exports=__webpack_exports__})();
1
+ (()=>{"use strict";var __webpack_modules__={148:(t,e,r)=>{function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}function i(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,o(n.key),n)}}function o(t){var e=function(t){if("object"!=n(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=n(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==n(e)?e:e+""}function s(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(s=function(){return!!t})()}function a(t){return a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},a(t)}function l(t,e){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},l(t,e)}r.d(e,{l:()=>c});var c=function(t){function e(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(t=function(t,e,r){return e=a(e),function(t,e){if(e&&("object"==n(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,s()?Reflect.construct(e,r||[],a(t).constructor):e.apply(t,r))}(this,e)).el=null,t}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&l(t,e)}(e,t),r=e,(o=[{key:"set",value:function(t){this.options=t;var e=document.createElement("div"),r=document.createElement("label");r.style.position="relative",r.style.display="block";var n=document.createTextNode(t.title);r.appendChild(n),r.style.opacity=0;var i=document.createElement("input");return"textarea"===t.type&&(i=document.createElement("textarea")),i.style.position="relative",i.placeholder=t.title,i.style.fontSize="1rem",i.style.padding=".4rem .75rem",e.appendChild(r),e.appendChild(i),this.res=e,t.mar&&this.mar(t.mar),t.pad&&this.pad(t.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",t.font&&(r.style.fontFamily=t.font),t.color&&(r.style.color=t.color),t.exact&&(r.style.fontSize=t.exact)})),i.addEventListener("focusout",(function(){r.style.transform="scale(1.0)",i.placeholder=t.title,r.style.opacity="0.0"})),t.name&&i.setAttribute("name",t.name),window.matchMedia("(max-device-width: 415px)").matches&&(i.style.width="100%",e.style.width="100%"),i.style.fontSize="1rem",this.el=e,this}},{key:"getValue",value:function(){return this.el.children[1].value}},{key:"toCode",value:function(){var t=JSON.stringify(this.options,null,4);return t=t.replace(/"(\w+)"(?=\s*:)/g,"$1"),["new FloatingInput().set(".concat(t,")")]}},{key:"margin",value:function(t){return this.el.style.margin=t,this}},{key:"render",value:function(t){if(!t)return this.el;document.querySelector(t).appendChild(this.el)}}])&&i(r.prototype,o),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,o}(r(762).y);window.FloatingInput=c},216:(t,e,r)=>{function n(t,e){return n=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},n(t,e)}function i(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(i=function(){return!!t})()}function o(t){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(t)}function s(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,a(n.key),n)}}function a(t){var e=function(t){if("object"!=o(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=o(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==o(e)?e:e+""}var l=function(){return t=function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.res=null,this.currentItem=""},(e=[{key:"set",value:function(t){var e=this,r=t;this.options=t;var n=document.createElement("input");n.setAttribute("list","dlCities"),n.setAttribute("id","my");var i=t.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 t=document.querySelector("#my").value;console.log(t),e.currentItem=t})),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 t=JSON.stringify(this.options,null,4);return["new DataList().set(".concat(t,")")]}},{key:"getValue",value:function(){return this.res.value}},{key:"arrayPadding",value:function(t,e){return console.log(t),t.includes("left")&&(this.res.style.paddingLeft=e),t.includes("right")&&(this.res.style.paddingRight=e),t.includes("top")&&(this.res.style.paddingTop=e),t.includes("bottom")&&(this.res.style.paddingBottom=e),t.includes("all")&&(this.res.style.padding=e),this}},{key:"arrayMargin",value:function(t,e){return console.log(t),t.includes("left")&&(this.res.style.marginLeft=e),t.includes("right")&&(this.res.style.marginRight=e),t.includes("top")&&(this.res.style.marginTop=e),t.includes("bottom")&&(this.res.style.marginBottom=e),t.includes("all")&&(this.res.style.margin=e),this}},{key:"margin",value:function(t){return this.res.style.margin=t,this}},{key:"responsive",value:function(){return window.matchMedia("(max-device-width: 415px)").matches&&(this.res.style.width="100%"),this}},{key:"render",value:function(t){if(!t)return this.res;document.querySelector(t).appendChild(this.res)}}])&&s(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e}(),c=l;l=function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return function(t,e,r){if(i())return Reflect.construct.apply(null,arguments);var o=[null];o.push.apply(o,e);var s=new(t.bind.apply(t,o));return r&&n(s,r.prototype),s}(c,e)},window.DataList=l},342:(t,e,r)=>{function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function o(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,s(n.key),n)}}function s(t){var e=function(t){if("object"!=n(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=n(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==n(e)?e:e+""}function a(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(a=function(){return!!t})()}function l(t){return l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},l(t)}function c(t,e){return c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},c(t,e)}r.d(e,{S:()=>u});var u=function(t){function e(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(t=function(t,e,r){return e=l(e),function(t,e){if(e&&("object"==n(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,a()?Reflect.construct(e,r||[],l(t).constructor):e.apply(t,r))}(this,e)).el=null,t}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&c(t,e)}(e,t),r=e,(s=[{key:"set",value:function(t){var e,r;this.options=t;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=t.size||"24px";i.style.width=o,i.style.height=o,t.customStyle&&(i.style.appearance="none"),i.style.border="2px solid #ccc",i.style.borderRadius="4px",i.style.backgroundColor=t.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",t.checkedBackgroundColor||"#4CAF50"),i.style.setProperty("--checkmark-color","white"),i.style.setProperty("--checkmark-clip-path",null!==(e=this.options.clipPath)&&void 0!==e?e:"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',t.customStyle&&document.head.appendChild(s),t.mar&&this.mar(t.mar),t.pad&&this.pad(t.pad),t.respad&&this.respad(t.respad),t.resmar&&this.resmar(t.resmar),i.addEventListener("change",(function(){i.checked?(i.style.backgroundColor=t.checkedBackgroundColor||"#4CAF50",i.style.borderColor=t.checkedBackgroundColor||"#4CAF50"):(i.style.backgroundColor=t.backgroundColor||"white",i.style.borderColor="#ccc")})),t.name&&i.setAttribute("name",t.name),n.appendChild(i);var a=document.createElement("div");if("function"==typeof(null===(r=t.label)||void 0===r?void 0:r.render))a.appendChild(t.label.render());else{var l=document.createTextNode(t.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 t=Object.entries(this.options).map((function(t){var e=function(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,i,o,s,a=[],l=!0,c=!1;try{if(o=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=o.call(r)).done)&&(a.push(n.value),a.length!==e);l=!0);}catch(t){c=!0,i=t}finally{try{if(!l&&null!=r.return&&(s=r.return(),Object(s)!==s))return}finally{if(c)throw i}}return a}}(t,e)||function(t,e){if(t){if("string"==typeof t)return i(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?i(t,e):void 0}}(t,e)||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.")}()}(t,2),r=e[0],o=e[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(t,"\n})")]}},{key:"margin",value:function(t){return this.el.style.margin=t,this}},{key:"render",value:function(t){if(!t)return this.el;document.querySelector(t).appendChild(this.el)}}])&&o(r.prototype,s),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,s}(r(762).y);window.Checkbox=u},385:(t,e,r)=>{function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}function i(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,o(n.key),n)}}function o(t){var e=function(t){if("object"!=n(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=n(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==n(e)?e:e+""}r.d(e,{z:()=>s});var s=function(){return t=function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.el=null,this.radioCount=0},(e=[{key:"set",value:function(t){this.options=t,console.log("ORARA"),console.log(this.options),this.radioCount=t.items.length;for(var e=document.createElement("div"),r=t.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),t.multiple?s.setAttribute("name",r[n].split(" ").join("")):s.setAttribute("name",t.name),e.appendChild(s),e.appendChild(i),e.innerHTML+="</br>"}return this.el=e,this.responsive(),this}},{key:"padding",value:function(t){return this.el.style.padding=t,this}},{key:"getCheckedValues",value:function(){console.log("NOW");for(var t=[],e=0;e<this.radioCount;e++)if(document.querySelector("#S".concat(e)).checked){var r=document.querySelector("#S".concat(e));console.log("VALUE IS "+r.value),t.push(r.value)}return t}},{key:"toCode",value:function(){var t=JSON.stringify(this.options,null,4);return t=t.replace(/"(\w+)"(?=\s*:)/g,"$1"),["new RadioGroup().set(".concat(t,")")]}},{key:"responsive",value:function(){return window.matchMedia("(max-device-width: 415px)").matches&&(this.el.style.fontSize="1.7em"),this}},{key:"render",value:function(t){var e=this;if(!t){console.log("MULA");for(var r=function(){var t=e.el.children[n];"[object HTMLInputElement]"===t.toString()&&t.addEventListener("change",(function(){if(t.checked){t.style.backgroundColor=e.options.tint?e.options.tint:"#007BFF",t.style.boxShadow=e.options.tint?"0 0 0 2px ".concat(e.options.tint," inset"):"0 0 0 2px #0056b3 inset";for(var r=0;r<e.el.children.length;r++){var n=e.el.children[r];"INPUT"===n.tagName&&"radio"===n.type&&!1===e.options.multiple&&n!==t&&(n.style.backgroundColor="transparent",n.style.boxShadow="none")}}else t.style.backgroundColor="transparent",t.style.boxShadow="none"}))},n=0;n<this.el.children.length;n++)r();return this.el}document.querySelector(t).appendChild(this.el)}}])&&i(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e}();window.RadioGroup=s},688:(t,e,r)=>{r.d(e,{I:()=>tr});var n=r(762);function o(t){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(t)}function s(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,i,o,s,a=[],l=!0,c=!1;try{if(o=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=o.call(r)).done)&&(a.push(n.value),a.length!==e);l=!0);}catch(t){c=!0,i=t}finally{try{if(!l&&null!=r.return&&(s=r.return(),Object(s)!==s))return}finally{if(c)throw i}}return a}}(t,e)||a(t,e)||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 a(t,e){if(t){if("string"==typeof t)return l(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?l(t,e):void 0}}function l(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function c(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,u(n.key),n)}}function u(t){var e=function(t){if("object"!=o(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=o(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==o(e)?e:e+""}function d(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(d=function(){return!!t})()}function h(t,e,r,n){var i=p(f(1&n?t.prototype:t),e,r);return 2&n&&"function"==typeof i?function(t){return i.apply(r,t)}:i}function p(){return p="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,r){var n=function(t,e){for(;!{}.hasOwnProperty.call(t,e)&&null!==(t=f(t)););return t}(t,e);if(n){var i=Object.getOwnPropertyDescriptor(n,e);return i.get?i.get.call(arguments.length<3?t:r):i.value}},p.apply(null,arguments)}function f(t){return f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},f(t)}function y(t,e){return y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},y(t,e)}var m=function(t){function e(t,r){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(n=function(t,e,r){return e=f(e),function(t,e){if(e&&("object"==o(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,d()?Reflect.construct(e,r||[],f(t).constructor):e.apply(t,r))}(this,e)).text=t,n.res=null,n.setup(r),n.code=[],n.elCSS=[],n.html=[],n.react=[],n.code.push('new Text("'.concat(n.text,'")')),n}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&y(t,e)}(e,t),r=e,n=[{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(t){return this.res.style.gridArea=t,this}},{key:"toCodea",value:function(){return this.excludeFromCodeTrue&&(this.code=[""]),this.code}},{key:"toCode",value:function(){if(this.excludeFromCodeTrue)return[""];var t=Object.fromEntries(Object.entries(this.options).filter((function(t){var e=s(t,2);return e[0],null!==e[1]}))),e=JSON.stringify(t,null,4).replace(/"([^"]+)":/g,"$1:");return console.log("OCO"),console.log(e),['new Text("'.concat(this.text,'").set(').concat(e,")")]}},{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(t){return" "+t})),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(t){var e=this;if(0===t.length)return this;var r=t.filter((function(t){return"gradient"===t.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&&(e.prevBackground=e.res.style.color.toString(),e.res.style.background=n.gradient,e.res.style.WebkitBackgroundClip="text")};i(),window.addEventListener("resize",i)}}},{key:"strokeOptions",value:function(t){var e=this;if(0===t.length)return this;var r=t.filter((function(t){return"blast"===t.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?e.res.style["-webkit-text-stroke"]="".concat(n.width?n.width:"1px"," ").concat(n.color):e.res.style["-webkit-text-stroke"]="1px orange",e.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(t,e){return this.res.style.gridRow=t,this.res.style.gridColumn=e,this}},{key:"setGridRow",value:function(t){return this.res.style.gridRow=t,this}},{key:"setGridCol",value:function(t){return this.res.style.gridColumn=t,this}},{key:"toHTML",value:function(){return this.res}},{key:"onTap",value:function(t){return this.res.addEventListener("click",t),this}},{key:"setClass",value:function(t){return this.res.setAttribute("class",t),this}},{key:"setRandom",value:function(){for(var t="LAYOUT-",e=90;e>0;--e)t+="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"[Math.floor(62*Math.random())];return t+=(new Date).getTime(),this.res.setAttribute("class",t),this}},{key:"styled",value:function(t){return this.set(t),this}},{key:"removeQuotesFromFirstWord",value:function(t){return t.replace(/"([^"]+)":/g,"$1:")}},{key:"set",value:function(t){this.resCopy=this.res,this.options=t,h(e,"setPrevText",this,3)([this.text]),t.maxWidth&&(this.res.style.maxWidth=t.maxWidth),t.cursor&&(this.res.style.cursor="hand"),t.gpos&&this.gpos(t.gpos),t.vtn&&(this.res.style.viewTransitionName=t.vtn),t.index&&h(e,"setIndex",this,3)([t.index]),t.index&&(this.index=t.index),t.preffersId&&(this.preffersId=t.preffersId),h(e,"setPref",this,3)([t.preffersId]),t.removeDecoration&&(this.res.style.textDecoration="none"),t.block&&(this.res.style.display="block"),t.area&&this.setArea(t.area),t.icon&&this.addIcon(t.icon),t.color&&this.color(t.color),t.color&&this.elCSS.push("color: ".concat(t.color,"; \n")),t.class&&this.setClass(t.class),t.size&&this.fluidCopy(t.size),t.fluidc&&this.fluidCopy(t.fluidc),t.initLetter&&this.initLetter(t.initLetter),t.onTap&&this.onTap(t.onTap),"S6"===t.fluidc?t.fluidc&&this.elCSS.push("font-size: calc(1.1rem + 2.075vw); \n"):t.fluidc&&this.elCSS.push("font-size: calc(1.625rem + 5.075vw); \n"),this.options.id&&this.res.setAttribute("id",this.options.id),h(e,"setID",this,3)([this.options.id]),this.options.class&&this.res.setAttribute("class",this.options.class),h(e,"setClass",this,3)([this.options.class]),t.clampc&&this.clampCopy(t.clampc),t.arrpad&&this.arrayPadding(t.arrpad.sides,t.arrpad.value),t.pad&&this.pad(t.pad),t.respad&&this.respad(t.respad),t.resmar&&this.resmar(t.resmar),t.mar&&this.mar(t.mar),t.exact&&(this.res.style.fontSize=t.exact),t.zIndex&&(this.res.style.zIndex=t.zIndex),t.absolute&&(this.res.style.position="absolute"),t.arrayMargin&&this.arrayMargin(t.arrayMargin.sides,t.arrayMargin.value),t.em&&this.em(t.em),t.fluid&&this.fluid(t.fluid),t.font&&this.font(t.font),t.fluidc&&this.elCSS.push("font-family: ".concat(t.font,"; \n")),t.align&&(this.res.style.textAlign=t.align),t.weight&&(this.res.style.fontWeight=t.weight),t.padding&&this.padding(t.padding),t.breakWord&&(this.res.style.wordWrap="break-word"),t.center&&(this.res.style.marginRight="auto"),t.center&&(this.res.style.marginLeft="auto"),t.width&&(this.res.style.width=t.width),t.height&&(this.res.style.height=t.height),t.background&&(this.res.style.backgroundColor=t.background),t.radius&&(this.res.style.borderRadius=t.radius),t.italic&&this.italic(),t.responsive&&this.responsive(),t.border&&(this.res.style.border="".concat(t.border)),t.onScroll&&this.onScroll(t.onScroll),t.keySet&&this.keySet(t.keySet),t.maxHeight&&(this.res.style.maxHeight=t.maxHeight),t.transform&&this.reactOnTransform(t.transform),console.log("OGA"),console.log(t);var r=[];if(t.stroke||t.gradient||t.span||t.backgroundOp||t.layout||t.shadow||t.animation||t.filtera||t.transform){t.gradient&&(this.globalGradient=t.gradient.op.gradient),t.stroke&&h(e,"setAny",this,3)([{globalBlast:"".concat(t.stroke.op.width," ").concat(t.stroke.op.color)}]),t.span&&(t.span.prevText=this.text);var n=[t.stroke,t.gradient,t.animation,t.span,t.backgroundOp,t.layout,t.marginOp,t.shadow,t.animation,t.filtera,t.transform];n=n.filter((function(t){return null!=t}));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=[];t.borderObj&&o.push("border"),t.background&&o.push("background"),t.mar&&o.push("margin"),t.animation&&o.push("animation"),t.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(t){var e=document.createElement("img");return e.style.width="20px",e.style.marginLeft="10px",e.style.height="auto",e.setAttribute("src",t.url),this.res.appendChild(e),this}},{key:"checkForAnimation",value:function(t){t.sort((function(t,e){return parseInt(t.range[0])-parseInt(e.range[0])}));var e,r=window.innerWidth,n=function(t){var e="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!e){if(Array.isArray(t)||(e=a(t))){e&&(t=e);var r=0,n=function(){};return{s:n,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},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,o=!0,s=!1;return{s:function(){e=e.call(t)},n:function(){var t=e.next();return o=t.done,t},e:function(t){s=!0,i=t},f:function(){try{o||null==e.return||e.return()}finally{if(s)throw i}}}}(t);try{for(n.s();!(e=n.n()).done;){var i=e.value,o=s(i.range,2),l=o[0],c=o[1],u=parseInt(l),d=parseInt(c);r>=u&&r<=d&&"animation"===i.log&&this.res.animate([{opacity:0,transform:"translateY(100px)"},{opacity:1,transform:"translateY(0)"}],{duration:1e3,easing:"ease"})}}catch(t){n.e(t)}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(t){t.color?this.res.style["-webkit-text-stroke"]="".concat(t.width?t.width:"1px"," ").concat(t.color):this.res.style["-webkit-text-stroke"]="1px orange",this.res.style["-webkit-text-fill-color"]="transparent"}},{key:"innerGradient",value:function(t){this.res.style.background="linear-gradient(45deg, #ff0000, #00ff00)",this.res.style["-webkit-background-clip"]="text"}},{key:"arrayMargin",value:function(t,e){return e||(this.res.style.marginLeft="".concat(t[0],"px"),this.res.style.marginTop="".concat(t[1],"px"),this.res.style.marginRight="".concat(t[2],"px"),this.res.style.marginBottom="".concat(t[3],"px")),t.includes("left")&&(this.res.style.marginLeft=e),t.includes("right")&&(this.res.style.marginRight=e),t.includes("top")&&(this.res.style.marginTop=e),t.includes("bottom")&&(this.res.style.marginBottom=e),e||(this.res.style.marginBottom=t),this}},{key:"clampExperiment",value:function(){return this.res.style.fontSize="clamp(1rem, calc(1rem * 10rem), 3rem)",this}},{key:"between",value:function(t){return"S1"===t&&(this.res.style.fontSize="clamp(2rem, 8vw, 2.5rem)"),"S2"===t&&(this.res.style.fontSize="clamp(4rem, 8vw, 5rem)"),"S3"===t&&(this.res.style.fontSize="clamp(2rem, 5vw, 2.5rem)"),"S4"===t&&(this.res.style.fontSize="clamp(1.5rem, 2vw, 1.6rem)"),"S5"===t&&(this.res.style.fontSize="clamp(1.2rem, 2vw, 1.3rem)"),"S6"===t&&(this.res.style.fontSize="clamp(1rem, 2vw, 1.3rem)"),this}},{key:"betweenCopy",value:function(t){return"S1"===t&&(this.res.style.fontSize="clamp(2rem, 8vw, 2.5rem)"),"S2"===t&&(this.res.style.fontSize="clamp(4rem, 8vw, 5rem)"),"S3"===t&&(this.res.style.fontSize="clamp(2rem, 5vw, 2.5rem)"),"S4"===t&&(this.res.style.fontSize="clamp(1.5rem, 2vw, 1.6rem)"),"S5"===t&&(this.res.style.fontSize="clamp(1.2rem, 2vw, 1.3rem)"),"S6"===t&&(this.res.style.fontSize="clamp(1rem, 2vw, 1.3rem)"),this}},{key:"stringGen",value:function(t){for(var e="",r=0;r<t;r++)e+="abcdefghijklmnopqrstuvwxyz".charAt(Math.floor(26*Math.random()));return e}},{key:"initLetter",value:function(t){var e=document.createElement("style");document.body.appendChild(e),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(t){return"S1"===t&&this.jumbotron(),"S2"===t&&this.large(),"S3"===t&&this.medium(),this}},{key:"minusMargin",value:function(){return this.res.style.marginRight="-3.1em",this}},{key:"fluid",value:function(t){if("S1"===t){this.res=document.createElement("h1");var e=document.createTextNode(this.text);this.res.appendChild(e),this.res.style.fontSize="calc(1.625rem + 4.3vw)"}if("S2"===t){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"===t){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"===t){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"===t&&(this.res.style.fontSize="calc(1.1rem + 1.2vw)"),this}},{key:"getClampValue",value:function(t){return"S7"===t?"clamp(1.45rem, 2vw + 1.5rem, 1.69rem)":"S6"===t?"clamp(2.25rem, 2vw+1.5rem, 3.25rem)":"S5"===t?"clamp(2.75rem, 2vw + 1.5rem, 3.25rem)":"S4"===t?"clamp(3.5rem, 2vw + 1.5rem, 3.25rem)":"S3"===t?"clamp(4.25rem, 2vw + 1.5rem, 3.25rem)":"S2"===t?"clamp(5rem, 2vw + 1.5rem, 3.25rem)":"S1"===t?"clamp(6rem, 2vw + 1.5rem, 3.25rem)":void 0}},{key:"clampCopy",value:function(t){return this.res.style.fontSize=this.getClampValue(t),this}},{key:"fluidCopy",value:function(t){if(t instanceof Object){this.prevStylex=this.res.style,this.res=document.createElement("h1"),this.res.style.cssText=this.prevStylex.cssText;var e=document.createTextNode(this.text);return this.res.appendChild(e),this.res.style.fontSize=t.exact,this}if("S1"===t){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"===t){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"===t){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"===t){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"===t){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"===t&&(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(t){var e=this,r=function(){window.matchMedia("(max-device-width: 415px)").matches?e.res.style.fontSize=t.desktop:e.res.style.fontSize=t.phone};return r(),window.addEventListener("resize",r),this}},{key:"jumbotron",value:function(){var t=this,e=function(){window.matchMedia("(max-device-width: 415px)").matches?t.res.style.fontSize="8rem":t.res.style.fontSize="6rem"};return e(),window.addEventListener("resize",e),this}},{key:"large",value:function(){var t=this,e=function(){window.matchMedia("(max-device-width: 415px)").matches?t.res.style.fontSize="7rem":t.res.style.fontSize="5rem"};return e(),window.addEventListener("resize",e),this}},{key:"frame",value:function(t){return this.res.style.width=t.width,this.res.style.height=t.height,this}},{key:"vw",value:function(t,e,r){}},{key:"responsive",value:function(t){var e=this;this.set=!1,this.setB=!1;var r=function(){window.innerWidth<t.minw?(e.setB=!1,e.set||(e.res.style.color="#3498db",e.res.style.fontSize="".concat(t.baseVW/100*window.innerWidth,"px"),e.set=!0)):window.innerWidth>t.maxw?(e.set=!1,e.setB||(e.res.style.color="orange",e.res.style.fontSize="".concat(t.baseVW/100*t.maxw,"px"),e.setB=!0)):(e.set=!1,e.setB=!1,e.res.style.color="black",e.res.style.fontSize="".concat(t.baseVW,"vw"))};return r(),window.addEventListener("resize",r),this}},{key:"xlarge",value:function(){var t=this,e=function(){window.matchMedia("(max-device-width: 415px)").matches?t.res.style.fontSize="6.5rem":t.res.style.fontSize="8.5rem"};return e(),window.addEventListener("resize",e),this}},{key:"medium",value:function(){var t=this,e=function(){window.matchMedia("(max-device-width: 415px)").matches?t.res.style.fontSize="2.25rem":t.res.style.fontSize="1.5em"};return e(),window.addEventListener("resize",e),this}},{key:"auto",value:function(){var t=this,e=function(){window.matchMedia("(max-device-width: 415px)").matches?t.res.style.fontSize="2rem":t.res.style.fontSize="1rem"};return e(),window.addEventListener("resize",e),this}},{key:"small",value:function(){var t=this,e=function(){window.matchMedia("(max-device-width: 415px)").matches?t.res.style.fontSize="1.5em":t.res.style.fontSize="1em"};return e(),window.addEventListener("resize",e),this}},{key:"sizes",value:function(t){var e=this;this.res.style.fontSize="".concat(t[0].size,"rem");var r=function(){for(var r=0;r<t.length;r++)t[r].width&&window.matchMedia("(min-width: ".concat(t[r].width,"px)")).matches&&(e.res.style.fontSize="".concat(t[r].size));window.matchMedia("(max-device-width: 415px)").matches&&(e.res.style.fontSize="".concat(t[t.length-1].mobile))};return r(),window.addEventListener("resize",r),this}},{key:"setup",value:function(t){var e;t?((e=document.createElement(t.type)).setAttribute("id",t.id),t.type):e=document.createElement("p");var r=document.createTextNode(this.text);return e.appendChild(r),this.res=e,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(t){return this.res.style.fontFamily=t,this}},{key:"center",value:function(){return this.res.style.textAlign="center",this}},{key:"size",value:function(t){return this.res.style.fontSize=t,this}},{key:"em",value:function(t){return this.res.style.fontSize="".concat(t,"em"),this}},{key:"color",value:function(t){return this.res.style.color=t,this}},{key:"align",value:function(t){return this.res.style.textAlign="".concat(t),this}},{key:"weight",value:function(t){return this.res.style.fontWeight=t,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(t,e){return this.res.style.width=t,e&&(this.res.style.marginLeft="auto",this.res.style.marginRight="auto"),this}},{key:"offset",value:function(t){return this.res.style.gridRow=2,this.res.style.gridColumn=2,this.res.style.marginLeft="-60px",this}},{key:"border",value:function(t,e){return this.res.style.border="".concat(e,"px solid ").concat(t),this}},{key:"padding",value:function(t,e,r,n){return(t||e||r||n)&&(this.res.style.paddingLeft=t,this.res.style.paddingTop=e,this.res.style.paddingRight=r,this.res.style.paddingBottom=n),e||r||n||(this.res.style.padding=t),this}},{key:"arrayPadding",value:function(t,e){return t.includes("left")&&(this.res.style.paddingLeft=e),t.includes("right")&&(this.res.style.paddingRight=e),t.includes("top")&&(this.res.style.paddingTop=e),t.includes("bottom")&&(this.res.style.paddingBottom=e),e||(this.res.style.paddingBottom=t),this}},{key:"margin",value:function(t,e){return"top"==t?this.res.style.marginTop=e:"bottom"==t?this.res.style.marginBottom=e:"left"==t?this.res.style.marginLeft=e:"right"==t&&(this.res.style.marginRight=e),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(t,e){var r=this.res,n=this.text;return Object.defineProperty(t,e,{set:function(t){var e=document.createTextNode(n.replace("$",t));r.replaceChild(e,r.childNodes[0])}}),this}},{key:"style",value:function(t){return this.res.style.color=t.styles.color,this.res.style.fontWeight=t.styles.fontWeight,this.res.style.paddingLeft=t.styles.padding[0],this.res.style.paddingTop=t.styles.padding[1],this.res.style.paddingRight=t.styles.padding[2],this.res.style.paddingBottom=t.styles.padding[3],this.res.style.marginLeft=t.styles.margin[0],this.res.style.paddingTop=t.styles.margin[1],this.res.style.paddingRight=t.styles.margin[2],this.res.style.paddingBottom=t.styles.margin[3],this.res.style.opacity=t.styles.opacity,this}},{key:"applyStyle",value:function(t,e){return window.matchMedia("(max-width: ".concat(t,"px)")).matches&&Object.assign(this.res.style,e.styles),this}},{key:"nextApply",value:function(t){for(var e=this,r=[],n=(this.res.style,function(n){r[0].matches?Object.assign(e.res.style,t[0].styles):r[1].matches?Object.assign(e.res.style,t[1].styles):Object.assign(e.res.style,t[t.length-1].styles)}),i=0;i<t.length;i++){var o=t[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(t){var e=this,r=this.res.styles,n=function(){for(var n=0;n<t.length;n++){var i=t[n];i.min&&i.max?window.matchMedia("(min-width: ".concat(i.min,"px) and (max-width: ").concat(i.max,"px)")).matches?Object.assign(e.res.style,i.styles):(alert("YES min max, but does not match"),Object.assign(e.res.style,r)):window.matchMedia("(max-width: ".concat(i.max,"px)")).matches?Object.assign(e.res.style,i.styles):(alert("NO min max, and does not match"),Object.assign(e.res.style,r))}};return n(),window.addEventListener("resize",n),this}},{key:"render",value:function(t){if(!t)return this.res;this.options&&this.options.id&&this.res.setAttribute("id",this.options.id),document.querySelector(t).appendChild(this.res)}}],n&&c(r.prototype,n),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n}(n.y);function v(t){return v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},v(t)}function b(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function g(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,w(n.key),n)}}function w(t){var e=function(t){if("object"!=v(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=v(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==v(e)?e:e+""}function k(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(k=function(){return!!t})()}function x(t,e,r,n){var i=S(O(1&n?t.prototype:t),e,r);return 2&n&&"function"==typeof i?function(t){return i.apply(r,t)}:i}function S(){return S="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,r){var n=function(t,e){for(;!{}.hasOwnProperty.call(t,e)&&null!==(t=O(t)););return t}(t,e);if(n){var i=Object.getOwnPropertyDescriptor(n,e);return i.get?i.get.call(arguments.length<3?t:r):i.value}},S.apply(null,arguments)}function O(t){return O=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},O(t)}function C(t,e){return C=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},C(t,e)}var j=function(t){function e(t,r,n,i){var o;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(o=function(t,e,r){return e=O(e),function(t,e){if(e&&("object"==v(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,k()?Reflect.construct(e,r||[],O(t).constructor):e.apply(t,r))}(this,e)).url=t,o.res=null,o.code=[],o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&C(t,e)}(e,t),r=e,n=[{key:"removeQuotesFromFirstWord",value:function(t){return t.replace(/"([^"]+)":/g,"$1:")}},{key:"setType",value:function(t){t.url;var e=t.type,r=t.mode;if(this.code=[],"exact"===e){var n='new Image("'.concat(this.url,'", "exact")');this.code.push(n)}else if("uncover"===e){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,e),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(t){return this.res.style.maxWidth=t,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 t=this.options;this.res.style.border&&(t.border=this.res.style.border);var e=Object.fromEntries(Object.entries(t).filter((function(t){var e=function(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,i,o,s,a=[],l=!0,c=!1;try{if(o=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=o.call(r)).done)&&(a.push(n.value),a.length!==e);l=!0);}catch(t){c=!0,i=t}finally{try{if(!l&&null!=r.return&&(s=r.return(),Object(s)!==s))return}finally{if(c)throw i}}return a}}(t,e)||function(t,e){if(t){if("string"==typeof t)return b(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?b(t,e):void 0}}(t,e)||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.")}()}(t,2);return e[0],null!==e[1]})));return["new Image().set(".concat(JSON.stringify(e,null,2).replace(/"(\w+)"\s*:/g,"$1:"),")")]}},{key:"formatObj",value:function(t){return JSON.stringify(t,null,2).replace(/"(\w+)"\s*:/g,"$1:")}},{key:"set",value:function(t){var r="";this.options=t;var n=t.isFull;if(n?this.image(t.url,"exact",n,"a"):this.setup(),t.url&&this.res.setAttribute("src",t.url),"exact"===n?'new Image("'.concat(this.url,'", "exact")'):"uncover"===n&&'new Image("'.concat(this.url,'", "uncover")'),t.vtn&&(this.res.style.viewTransitionName=t.vtn),this.vtn=t.vtn,t.minHeight&&(this.res.style.minHeight=t.minHeight),t.index&&x(e,"setIndex",this,3)([t.index]),t.index&&(this.index=t.index),t.index&&(r+='\n index: "'.concat(t.index,'",')),t.centerSelf&&(this.res.style.marginRight="auto",this.res.style.marginLeft="auto"),t.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"),t.objectFit&&(this.res.style.objectFit=t.objectFit),t.objectFit&&(r+='\n objectFit: "'.concat(t.objectFit,'",')),t.as&&this.as(t.as),t.onScroll&&this.onScroll(t.onScroll),t.class&&this.res.setAttribute("class",t.class),t.gpos&&(this.gposObject=t.gpos),t.gpos&&(this.res.style.gridColumn=t.gpos.col,this.res.style.gridRow=t.gpos.row,r+="\n gpos: ".concat(this.removeQuotesFromFirstWord(JSON.stringify(t.gpos)),", ")),t.filtera){var i;i=Array.isArray(t.filtera)?c.filtera.filter((function(t){return"filter"===t.op.name}))[0]:t.filtera;var o=this.removeQuotesFromFirstWord(JSON.stringify(i));r+="\n filtera: ".concat(o,", \n")}if(t.keySet&&this.keySet(t.keySet),t.stype&&this.setType(t.stype),t.isBackground&&(this.isBackground=t.isBackground),t.zIndex&&(this.res.style.zIndex=t.zIndex),t.zIndex&&(r+='\n zIndex: "'.concat(t.zIndex,'", \n')),t.id&&this.res.setAttribute("id",t.id),t.id&&(r+=' id: "'.concat(t.id,'", \n')),this.id=t.id,t.area&&this.setArea(t.area),t.area&&(r+='area: "'.concat(t.area,'", \n')),t.opacity&&(this.res.style.opacity=t.opacity),t.width&&(this.res.style.width=t.width),t.width&&(r+='width: "'.concat(t.width,'", ')),t.maxWidth&&(this.res.style.maxWidth=t.maxWidth),t.maxWidth&&(r+='maxWidth: "'.concat(t.maxWidth,'", ')),t.height&&(this.res.style.height=t.height),t.height&&(r+='height: "'.concat(t.height,'", ')),t.multimargin&&this.makeMultiMargin(t.multimargin),t.multimargin&&(r+="multimargin: [ \n"),t.arrayMargin&&this.arrayMargin(t.arrayMargin.sides,t.arrayMargin.value),t.multimargin){for(var s=0;s<t.multimargin.length;s++){var a=t.multimargin[s];r+='{side: "'.concat(a.side,'", value: "').concat(a.value,'"}, \n')}r+="], \n"}if(t.maxWidth&&this.maxWidth(t.maxWidth),t.maxWidth&&(r+='maxWidth: "'.concat(t.maxWidth,'", \n')),t.radius&&this.cornerRadius(t.radius),t.radius&&(r+='radius: "'.concat(t.radius,'", \n')),t.marginOp){var l=this.removeQuotesFromFirstWord(JSON.stringify(t.marginOp));r+="\n marginOp: ".concat(l,",")}t.clipPath&&this.clipPath(t.clipPath),t.clipPath&&(r+='clipPath: "'.concat(t.clipPath,'", \n'));var c=t;if(c.stroke||c.gradient||c.span||c.backgroundOp||c.layout||c.marginOp||c.shadow||c.filtera||c.animation){c.gradient,c.gradient&&(this.globalGradient=c.gradient.op.gradient),c.stroke&&x(e,"setAny",this,3)([{globalBlast:"".concat(c.stroke.op.width," ").concat(c.stroke.op.color)}]);var u=[c.stroke,c.gradient,c.animation,c.span,c.backgroundOp,c.layout,c.marginOp,c.shadow,c.filtera,c.animation];u=u.filter((function(t){return null!=t}));var d=[];for(s=0;s<u.length;s++)d.push({range:u[s].range,log:u[s].op.name,target:u[s].target,op:u[s].op});this.chainReact(d,this.options.id)}if(c.shadow){var h=c.shadow,p=this.removeQuotesFromFirstWord(JSON.stringify(h));r+="\n shadow: ".concat(p,",")}if(c.animation){var f=c.animation,y=this.removeQuotesFromFirstWord(JSON.stringify(f));r+="\n animation: ".concat(y,",")}var m="\n .set({".concat(r,"}) \n \n");return Object.keys(t).length>0?this.code.push(m):this.code.push(","),this}},{key:"setFilter",value:function(t){var e=[],r=[t];r=r.filter((function(t){return null!=t}));for(var n=0;n<r.length;n++)e.push({range:r[n].range,log:r[n].op.name,target:r[n].target})}},{key:"makeMultiMargin",value:function(t){for(var e=0;e<t.length;e++)"left"===t[e].side&&(this.res.style.marginLeft=t[e].value),"right"===t[e].side&&(this.res.style.marginRight=t[e].value),"top"===t[e].side&&(this.res.style.marginTop=t[e].value),"bottom"===t[e].side&&(this.res.style.marginBottom=t[e].value);return this}},{key:"setID",value:function(t){return this.res.setAttribute("id",t),this}},{key:"square",value:function(){return this.res.style.width="30%",this.res.style.paddingBottom="30%",this}},{key:"opacity",value:function(t){return this.res.style.opacity="".concat(t),this}},{key:"rowCol",value:function(t,e){return this.res.style.gridRow=t,this.res.style.gridColumn=e,this}},{key:"setArea",value:function(t){return this.res.style.gridArea=t,this}},{key:"setGridRow",value:function(t){return this.res.style.gridRow=t,this}},{key:"setGridCol",value:function(t){return this.res.style.gridColumn=t,this}},{key:"setGrid",value:function(){return this.res.style.gridRow="span 2",this.res.style.gridColumn="span 3",this}},{key:"transform",value:function(t){return this.res.style.transform=t,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(t){return this.res.style.border=t,this}},{key:"setClass",value:function(t){return this.res.setAttribute("class",t),this}},{key:"scale",value:function(t){var e=this;return this.res.style.width,this.res.style.transition="0.5s all",this.res.addEventListener("mouseover",(function(){e.res.style.width,e.res.style.transform="scale(1.04)"})),this.res.addEventListener("mouseout",(function(){e.res.style.width,e.res.style.transform="scale(1.0)"})),this}},{key:"onTap",value:function(t){return this.res.addEventListener("click",t),this}},{key:"border",value:function(t){return this.res.style.borderTopLeftRadius="16px",this.res.style.borderTopRightRadius="16px",this}},{key:"allRound",value:function(t){return this.res.style.borderRadius=t,this}},{key:"mobileWidth",value:function(){return window.matchMedia("(max-device-width: 415px)").matches&&(this.res.style.width="120%"),this}},{key:"image",value:function(t,e,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(t,")"),s.style.backgroundPosition="center center",s.style.backgroundRepeat="no-repeat",s.style.backgroundSize="cover","uncover"===r&&(s.style.backgroundSize="contain"),"contain"===e&&(s.style.backgroundSize="contain"),this.res=s,this}},{key:"arrayPadding",value:function(t,e){return t.includes("left")&&(this.res.style.paddingLeft=e),t.includes("right")&&(this.res.style.paddingRight=e),t.includes("top")&&(this.res.style.paddingTop=e),t.includes("bottom")&&(this.res.style.paddingBottom=e),this}},{key:"arrayMargin",value:function(t,e){return t.includes("left")&&(this.res.style.marginLeft=e),t.includes("right")&&(this.res.style.marginRight=e),t.includes("top")&&(this.res.style.marginTop=e),t.includes("bottom")&&(this.res.style.marginBottom=e),this}},{key:"setup",value:function(){var t=document.createElement("img");return t.style.width="100%",t.src=this.url,this.res=t,this}},{key:"autoW",value:function(){return this.res.style.width="initial",this}},{key:"float",value:function(t){return this.res.style.float="".concat(t),this}},{key:"fillAvailable",value:function(){return this.res.style.height="-webkit-fill-available",this}},{key:"grayscale",value:function(t){return this.res.style.filter="grayscale(".concat(t,"%)"),this}},{key:"flex",value:function(t){return this.res.style.flex=1,this}},{key:"height",value:function(t){return this.res.style.height=t,this.res.style.width="auto",this}},{key:"expand",value:function(t){var e=this,r=function(){var r,n;if(window.matchMedia("(min-width: ".concat(t.at,")")).matches){e.res.style.width="".concat(t.width);var i=window.innerWidth/2-(n=r=t.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);e.res.style.marginLeft="".concat(i,"px")}else e.res.style.width="100%",e.res.style.marginLeft="0px";window.matchMedia("(max-device-width: 415px)").matches&&(e.res.style.width="100%",e.res.style.marginLeft="0px")};return r(),window.addEventListener("resize",r),this}},{key:"width",value:function(t){return this.res.style.width=t,this.res.style.height="auto",this}},{key:"toBack",value:function(){return this.res.style.zIndex="-1",this}},{key:"margin",value:function(t,e,r,n){return(t||e||r||n)&&(this.res.style.marginLeft=t,this.res.style.marginTop=e,this.res.style.marginRight=r,this.res.style.marginBottom=n),e||r||n||0===e&&0===r&&0===n||(this.res.style.margin=t),this}},{key:"padding",value:function(t){return this.res.style.padding=t,this}},{key:"size",value:function(t,e){return t&&e?(this.res.style.width=t,this.res.style.height=e):(this.res.style.width=t,this.res.style.height=t),this}},{key:"frame",value:function(t){var e=t.width,r=t.height;return e&&r?(this.res.style.width=e,this.res.style.height=r):(this.res.style.width=e,this.res.style.height=e),this}},{key:"RSize",value:function(t,e,r){var n=window.matchMedia("(max-device-width: 420px)");return t&&e?(this.res.style.width=n.matches?t*r:t,this.res.style.height=n.matches?e*r:e):(this.res.style.width=n.matches?t*r:t,this.res.style.height=n.matches?t*r:t),this}},{key:"shadow",value:function(t){return"mild"===t.type?this.res.style.boxShadow="0px 3px 15px rgba(0,0,0,0.2)":this.res.style.boxShadow="".concat(t.x,"px ").concat(t.y,"px ").concat(t.radius,"px ").concat(t.color),this}},{key:"clipShape",value:function(t){return this.res.style.borderRadius="50%",this}},{key:"cornerRadius",value:function(t){return this.res.style.borderRadius=t,this}},{key:"clipPath",value:function(t){this.res.style.clipPath='path("'.concat(t,'")');var e=document.createElementNS("http://www.w3.org/2000/svg","svg");return e.style.display="block",e.style.width="100%",e.style.height="100%",e.style.overflow="visible",this}},{key:"render",value:function(t){var e=this.res;if(!t)return e;document.querySelector(t).appendChild(e)}}],n&&g(r.prototype,n),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n}(n.y);function E(t){return E="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},E(t)}function _(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,T(n.key),n)}}function T(t){var e=function(t){if("object"!=E(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=E(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==E(e)?e:e+""}function P(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(P=function(){return!!t})()}function A(t,e,r,n){var i=R(L(1&n?t.prototype:t),e,r);return 2&n&&"function"==typeof i?function(t){return i.apply(r,t)}:i}function R(){return R="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,r){var n=function(t,e){for(;!{}.hasOwnProperty.call(t,e)&&null!==(t=L(t)););return t}(t,e);if(n){var i=Object.getOwnPropertyDescriptor(n,e);return i.get?i.get.call(arguments.length<3?t:r):i.value}},R.apply(null,arguments)}function L(t){return L=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},L(t)}function I(t,e){return I=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},I(t,e)}var M=function(t){function e(t,r,n){var i;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(i=function(t,e,r){return e=L(e),function(t,e){if(e&&("object"==E(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,P()?Reflect.construct(e,r||[],L(t).constructor):e.apply(t,r))}(this,e)).link=r,i.text=t,i.code=[],i.css=[],i.elCSS=[],i.html=[],i.res=null,i.stopEM=n,i.setup(),i.inlineBlock(),i}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&I(t,e)}(e,t),r=e,(n=[{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(t){return this.res.style.gridArea=t,this}},{key:"setup",value:function(){var t=document.createElement("a");t.setAttribute("href",this.link),t.style.textDecoration="none",t.style.color="black",t.style.textAlign="center",t.style.fontFamily="Arial";var e=document.createTextNode(this.text);return t.appendChild(e),this.res=t,!1===this.stopEM&&this.em(1),this}},{key:"appendImageAsChild",value:function(t,e){var r=document.createElement("a");t.options.vtn&&(r.style.viewTransitionName=t.options.vtn),r.setAttribute("href",t.options.url);var n=document.createElement("img");return t.options&&(n.style.width=t.options.size,t.options.radius&&(n.style.borderRadius=t.options.radius),n.setAttribute("src",t.options.img),r.appendChild(n)),this.res=r,e&&(this.res.style.marginLeft=e),this}},{key:"addIcon",value:function(t){var e=document.createElement("img");return e.style.width="20px",e.style.height="auto",e.style.marginLeft=t.padding?t.padding:"10px",e.setAttribute("src",t.url),this.res.appendChild(e),this}},{key:"removeQuotesFromFirstWord",value:function(t){if(t)return t.replace(/"([^"]+)":/g,"$1:")}},{key:"set",value:function(t){this.elCSS.push("text-decoration: none; \n"),this.options=t;var r="";t.id&&this.res.setAttribute("id",t.id),t.id&&A(e,"setID",this,3)([t.id]),t.pad&&this.pad(t.pad);var n=this.removeQuotesFromFirstWord(JSON.stringify(t.pad));if(t.pad&&(r+="\n pad: ".concat(n,",")),t.preffersId&&(this.preffersId=t.preffersId),null!=t.preffersId&&(r+="\n preffersId: ".concat(t.preffersId,",")),t.class&&A(e,"setClass",this,3)([t.class]),t.class&&(r+='\n class: "'.concat(t.class,'",')),t.borderObj){this.res.style.border="".concat(t.borderObj.width," solid ").concat(t.borderObj.color),this.res.style.borderRadius="".concat(t.borderObj.radius);var i=this.removeQuotesFromFirstWord(JSON.stringify(t.borderObj));r+="\n borderObj: ".concat(i,",")}if(!1===this.options.preffersId?this.html.push('<a class="'.concat(t.class,'" href="#hello">').concat(t.text,"</a> \n \n")):t.id&&this.html.push('<a id="'.concat(t.id.substr(1),'" href="#hello">').concat(t.text,"</a> \n \n")),null!=t.blastData){var o=this.removeQuotesFromFirstWord(JSON.stringify(t.blastData));A(e,"setAny",this,3)([{globalBlast:"1px ".concat(t.blastData.color)}]),t.blastData&&(r+="\n blastData: ".concat(o,","))}t.nowrap&&(this.res.style.whiteSpace="nowrap"),t.font&&this.font(t.font),t.font&&(r+='\n font: "'.concat(t.font,'",')),t.font&&this.elCSS.push('font-family: "'.concat(t.font,'"; \n')),t.fluidc&&this.fluidCopy(t.fluidc),t.fluidc&&(r+='\n fluidc: "'.concat(t.fluidc,'",')),t.size&&this.fluidCopy(t.size),t.size&&(r+='\n size: "'.concat(t.size,'",')),"S6"===t.fluidc?t.fluidc&&this.elCSS.push("font-size: calc(1rem + 1.075vw); \n"):t.fluidc&&this.elCSS.push("font-size: calc(1.625rem + 5.075vw); \n"),t.clampc&&this.clampCopy(t.clampc),this.options.id&&(r+='\n id: "'.concat(this.options.id,'",')),t.align&&this.leftAlign(),t.align&&(r+='\n align: "'.concat(t.align,'",')),t.type&&(this.res.style.display="block"),t.color&&this.color(t.color),t.color&&(r+='\n color: "'.concat(t.color,'",')),t.color&&this.elCSS.push('color: "'.concat(t.color,'"; \n')),t.background&&this.background(t.background);var s=this.removeQuotesFromFirstWord(JSON.stringify(t.background));t.background&&(r+="\n background: ".concat(s,",")),t.hover&&this.hover(t.hover);var a=this.removeQuotesFromFirstWord(JSON.stringify(t.hover));if(t.hover&&(r+="\n hover: ".concat(a,",")),t.weight&&(this.res.style.fontWeight=t.weight),t.blast&&(this.blastData=t.blast),t.bold&&(this.res.style.fontWeight="bold"),t.bold&&(r+="\n bold: ".concat(t.bold,",")),t.block&&this.toBlock(),t.block&&(r+="\n block: ".concat(t.block,",")),t.radius&&this.radius(t.radius),t.radius&&(r+='\n radius: "'.concat(t.radius,'",')),t.width&&this.width(t.width),t.width&&(r+='\n width: "'.concat(t.width,'",')),t.arrayPadding){var l=t.arrayPadding.sides.map((function(t){return'"'.concat(t,'"')})).join(", ");t.arrayPadding&&this.arrayPadding(t.arrayPadding.sides,t.arrayPadding.value),t.arrayPadding&&(r+="\n arrayPadding: {sides: [".concat(l,'], value: "').concat(t.arrayPadding.value,'"},'))}if(t.arrayMargin&&this.arrayMargin(t.arrayMargin.sides,t.arrayMargin.value),t.arrayMargin&&(r+="\n arrayMargin: {sides: [".concat(t.arrayMargin.sides.map((function(t){return'"'.concat(t,'", ')})),'], value: "').concat(t.arrayMargin.value,'"},')),t.maxWidth&&this.maxWidth(t.maxWidth),t.url&&this.res.setAttribute("href",t.url),r+='\n url: "'.concat(t.url,'",'),t.text&&(this.res.textContent=t.text),r+='\n text: "'.concat(t.text,'",'),t.data){t.data&&this.appendImageAsChild(t.data,"20px");var c=this.removeQuotesFromFirstWord(JSON.stringify(t.data));t.data&&(r+="\n data: ".concat(c))}if(t.icon){this.addIcon(t.icon);var u=this.removeQuotesFromFirstWord(JSON.stringify(t.icon));r+="\n icon: ".concat(u,",")}if(t.shadow){var d=t.shadow,h=this.removeQuotesFromFirstWord(JSON.stringify(d));r+="\n shadow: ".concat(h,",")}if(t.stroke){var p=this.removeQuotesFromFirstWord(JSON.stringify(t.stroke));t.stroke&&(r+="\n stroke: ".concat(p,","))}if(t.backgroundOp){var f=this.removeQuotesFromFirstWord(JSON.stringify(t.backgroundOp));r+="\n backgroundOp: ".concat(f,",")}if(t.marginOp){var y=this.removeQuotesFromFirstWord(JSON.stringify(t.marginOp));r+="\n marginOp: ".concat(y,",")}if(t.gradient){var m=this.removeQuotesFromFirstWord(JSON.stringify(t.gradient));r+="\n gradient: ".concat(m,",")}if(t.animation){var v=this.removeQuotesFromFirstWord(JSON.stringify(t.animation));r+="\n animation: ".concat(v,",")}if(t.transform){var b=this.removeQuotesFromFirstWord(JSON.stringify(t.transform));r+="\n transform: ".concat(b,",")}var g="new Link().set({".concat(r,"}) \n");this.code.push(g),t.color&&this.color(t.color),t.rounded&&this.round(),t.transform&&t.transform.transform?this.reactOnTransform(t.transform):this.reactOnTransform(t);var w=[],k=[t.border,t.gradient,t.animation,t.span,t.shadow,t.backgroundOp,t.animation];if((k=k.filter((function(t){return null!=t}))).length>0){for(var x=0;x<k.length;x++)w.push({range:k[x].range,log:k[x].op.name,target:k[x].target,op:k[x].op});var S=[];t.borderObj&&S.push("border"),t.background&&S.push("background"),t.mar&&S.push("margin"),t.animation&&S.push("animation"),this.chainReact(w,t.id,S,t.isNavA),this.res.style.zIndex=1}return t.mar&&this.mar(t.mar),this}},{key:"color",value:function(t){return this.res.style.color=t,this}},{key:"maxWidth",value:function(t){return this.res.style.maxWidth=t,this}},{key:"background",value:function(t){return this.res.style.backgroundColor=t,this}},{key:"leftAlign",value:function(){return this.res.style.textAlign="left",this}},{key:"arrayPadding",value:function(t,e){return e||(this.res.style.marginLeft="".concat(t[0],"px"),this.res.style.marginTop="".concat(t[1],"px"),this.res.style.marginRight="".concat(t[2],"px"),this.res.style.marginBottom="".concat(t[3],"px")),"all"===t[0]&&(this.res.style.paddingLeft=e,this.res.style.paddingTop=e,this.res.style.paddingRight=e,this.res.style.paddingBottom=e),t.includes("left")&&(this.res.style.paddingLeft=e),t.includes("right")&&(this.res.style.paddingRight=e),t.includes("top")&&(this.res.style.paddingTop=e),t.includes("bottom")&&(this.res.style.paddingBottom=e),e||(this.res.style.paddingBottom=t),this}},{key:"arrayMargin",value:function(t,e){return t.includes("left")&&(this.res.style.marginLeft=e),t.includes("right")&&(this.res.style.marginRight=e),t.includes("top")&&(this.res.style.marginTop=e),t.includes("bottom")&&(this.res.style.marginBottom=e),t.includes("all")&&(this.res.style.margin=e),e||(this.res.style.marginBottom=t),this}},{key:"getClampValue",value:function(t){return"S6"===t?"clamp(2.25rem, 2vw+1.5rem, 3.25rem)":"S5"===t?"clamp(2.75rem, 2vw + 1.5rem, 3.25rem)":"S4"===t?"clamp(3.5rem, 2vw + 1.5rem, 3.25rem)":"S3"===t?"clamp(4.25rem, 2vw + 1.5rem, 3.25rem)":"S2"===t?"clamp(5rem, 2vw + 1.5rem, 3.25rem)":"S1"===t?"clamp(6rem, 2vw + 1.5rem, 3.25rem)":void 0}},{key:"clampCopy",value:function(t){return this.res.style.fontSize=this.getClampValue(t),this}},{key:"fluidCopy",value:function(t){return"S1"===t&&(this.res.style.fontSize="calc(1.625rem + 5.075vw)"),"S2"===t&&(this.res.style.fontSize="calc(1.500rem + 4.3vw)"),"S3"===t&&(this.res.style.fontSize="calc(1.375rem + 3.525vw)"),"S4"===t&&(this.res.style.fontSize="calc(1.250rem + 2.75vw)"),"S5"===t&&(this.res.style.fontSize="calc(1.125rem + 1.975vw)"),"S6"===t&&(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(t){var e=this,r=function(){window.matchMedia("(max-device-width: 415px)").matches?e.res.style.fontSize=t.desktop:e.res.style.fontSize=t.phone};return r(),window.addEventListener("resize",r),this}},{key:"style",value:function(t){return this.res.style.color=t.styles.color,this.res.style.fontWeight=t.styles.fontWeight,this.res.style.paddingLeft=t.styles.padding[0],this.res.style.paddingTop=t.styles.padding[1],this.res.style.paddingRight=t.styles.padding[2],this.res.style.paddingBottom=t.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(t){return this.res.style.borderRadius="".concat(t),this}},{key:"transition",value:function(t){return this.res.style.transition="".concat(t,"s ease-in-out"),this.res.style.transionProperty="background, color",this}},{key:"width",value:function(t){return this.res.style.width=t,this}},{key:"italic",value:function(){return this.res.style.fontStyle="italic",this}},{key:"padding",value:function(t,e,r,n){return t&&e&&r&&n?(this.res.style.paddingLeft=t,this.res.style.paddingTop=e,this.res.style.paddingRight=r,this.res.style.paddingBottom=n):this.res.style.padding=t,this}},{key:"medium",value:function(){var t=this,e=function(){window.matchMedia("(max-device-width: 415px)").matches?t.res.style.fontSize="2rem":t.res.style.fontSize="1.5em"};return e(),window.addEventListener("resize",e),this}},{key:"opacity",value:function(t){return this.res.style.opacity=t,this}},{key:"margin",value:function(t,e,r,n){return this.res.style.marginTop=t,this.res.style.marginLeft=e,this.res.style.marginRight=r,this.res.style.marginBottom=n,this}},{key:"hover",value:function(t){var e=this;if(t.border){var r=t.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,t.animation&&(this.res.style.transition="".concat(t.animation),this.res.style.transionProperty="background, color"),this.res.onmouseout=function(){e.res.style.backgroundColor="".concat(e.prevColor),e.res.style.color="".concat(e.foreColor),e.res.style.border=e.prevBorder},this.res.onmouseover=function(){if(e.res.style.color=t.color,e.res.style.backgroundColor=t.background,t.border){var r,n=t.border.width,i=null!==(r=t.border.color)&&void 0!==r?r:"#2ECC71";e.res.style.border=n?"".concat(n,"px solid ").concat(i):"1px solid #2ECC71"}},this}},{key:"em",value:function(t){var e=this,r=window.matchMedia("(max-device-width: 415px)"),n=function(){r.matches?e.res.style.fontSize="2em":e.res.style.fontSize="1em"};return n(),window.addEventListener("resize",n),this}},{key:"font",value:function(t){return this.res.style.fontFamily=t,this}},{key:"render",value:function(t){return t?(document.querySelector(t).appendChild(this.res),this):this.res}}])&&_(r.prototype,n),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n}(n.y);function z(t){return z="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},z(t)}function B(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,W(n.key),n)}}function W(t){var e=function(t){if("object"!=z(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=z(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==z(e)?e:e+""}function N(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(N=function(){return!!t})()}function D(){return D="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,r){var n=function(t,e){for(;!{}.hasOwnProperty.call(t,e)&&null!==(t=F(t)););return t}(t,e);if(n){var i=Object.getOwnPropertyDescriptor(n,e);return i.get?i.get.call(arguments.length<3?t:r):i.value}},D.apply(null,arguments)}function F(t){return F=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},F(t)}function q(t,e){return q=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},q(t,e)}var H=function(t){function e(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(t=function(t,e,r){return e=F(e),function(t,e){if(e&&("object"==z(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,N()?Reflect.construct(e,r||[],F(t).constructor):e.apply(t,r))}(this,e)).navbar=document.createElement("nav"),t.navbar.classList.add("desktop-navbar"),t.navbarHeader=document.createElement("div"),t.navbarHeader.classList.add("navbar-header"),t.brand=document.createElement("div"),t.brand.classList.add("navbar-brand"),t.navContent=document.createElement("div"),t.navContent.classList.add("navbar-content"),t.navContent.style.width="100%",t.navbarHeader.appendChild(t.brand),t.navbarHeader.appendChild(t.navContent),t.navbar.appendChild(t.navbarHeader),t.res=t.navbar,t}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&q(t,e)}(e,t),r=e,n=[{key:"set",value:function(t){var r,n,i;return console.warn(t),this.obj=t,t.background&&(this.res.style.backgroundColor=t.background),t.mar&&(r=e,n=this,"function"==typeof(i=D(F(1&3?r.prototype:r),"mar",n))?function(t){return i.apply(n,t)}:i)([t.mar]),t.brand&&this.setBrand(t.brand),t.radius&&(this.res.style.borderRadius=t.radius),t.maxHeight&&(this.res.style.maxHeight=t.maxHeight),t.hamburgerColour&&(this.hamburgerColour=t.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(t){return console.warn("SETA"),console.log(t),this.brand.innerHTML="",this.brand.appendChild(t),this}},{key:"add",value:function(t){this.items=t;for(var e=0;e<t.length;e++)t[e],this.navContent.appendChild(t[e].render());return this}},{key:"toCode",value:function(){console.warn(this.items);var t=this.items.map((function(t){return t.toCode()})).flatMap((function(t){return t}));return console.log("ITSA"),console.log(t),console.log("".concat(t.join(","))),"new DesktopBar().set(".concat(this.removeQuotesFromFirstWord(JSON.stringify(this.obj)),").add([\n ").concat(t.join(","),"\n\n \n \n\n ])")}},{key:"render",value:function(t){return t&&document.querySelector(t).appendChild(this.navbar),this.navbar}}],n&&B(r.prototype,n),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n}(n.y);function U(t){return U="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},U(t)}function J(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,$(n.key),n)}}function $(t){var e=function(t){if("object"!=U(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=U(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==U(e)?e:e+""}function Y(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Y=function(){return!!t})()}function G(){return G="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,r){var n=function(t,e){for(;!{}.hasOwnProperty.call(t,e)&&null!==(t=Q(t)););return t}(t,e);if(n){var i=Object.getOwnPropertyDescriptor(n,e);return i.get?i.get.call(arguments.length<3?t:r):i.value}},G.apply(null,arguments)}function Q(t){return Q=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Q(t)}function X(t,e){return X=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},X(t,e)}var V=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e,r){return e=Q(e),function(t,e){if(e&&("object"==U(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,Y()?Reflect.construct(e,r||[],Q(t).constructor):e.apply(t,r))}(this,e)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&X(t,e)}(e,t),r=e,n=[{key:"removeQuotesFromBoth",value:function(t){if(t)return t.replace(/"([^"]+)":\s*"([^"]+)"/g,"$1: $2")}},{key:"removeQuotesFromFirstWord",value:function(t){if(t)return t.replace(/"([^"]+)":/g,"$1:")}},{key:"toCode",value:function(){console.warn(this.items);var t=this.items.map((function(t){return t.toCode()})).flatMap((function(t){return t}));console.log("BAD CONV"),console.log(this.removeQuotesFromFirstWord(JSON.stringify(this.obj,null,4)));var e=this.removeQuotesFromFirstWord(JSON.stringify(this.obj));console.log(e),console.log("REPL"),console.log(e);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(t.join(","),"\n\n ])")}},{key:"set",value:function(t){var r,n,i;return this.obj=t,console.log("After passing to set:"),console.log("OBJ IN SET"),this.obj=t,this.makeNavbar(t),t.mar&&(r=e,n=this,"function"==typeof(i=G(Q(1&3?r.prototype:r),"mar",n))?function(t){return i.apply(n,t)}:i)([t.mar]),t.maxHeight&&(this.res.style.maxHeight=t.maxHeight),t.radius&&(this.res.style.borderRadius=t.radius),t.hamburgerColour&&(this.hamburgerColour=t.hamburgerColour),this.setStyles(t),this}},{key:"makeNavbar",value:function(t){var e=this;console.log("OBJ IN SETA");var r=t.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-"),t.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:",t.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(){e.toggleMobileNav()})),this.res=this.navbar}},{key:"setStyles",value:function(t){var e,r;this.navbar.style.display="flex",this.navbar.style.flexDirection="column",this.navbar.style.padding="1rem",this.navbar.style.backgroundColor=null!==(e=t.background)&&void 0!==e?e:"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(t){console.log(t),this.items=t;for(var e=0;e<t.length;e++){var r=t[e];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(t){return t&&document.querySelector(t).appendChild(this.navbar),this.navbar}}],n&&J(r.prototype,n),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n}(n.y);function K(t){return K="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},K(t)}function Z(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function tt(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Z(Object(r),!0).forEach((function(e){et(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Z(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function et(t,e,r){return(e=nt(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function rt(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,nt(n.key),n)}}function nt(t){var e=function(t){if("object"!=K(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=K(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==K(e)?e:e+""}function it(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(it=function(){return!!t})()}function ot(t){return ot=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},ot(t)}function st(t,e){return st=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},st(t,e)}var at=function(t){function e(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(t=function(t,e,r){return e=ot(e),function(t,e){if(e&&("object"==K(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,it()?Reflect.construct(e,r||[],ot(t).constructor):e.apply(t,r))}(this,e)).breakpoints=[],t.container=null,t.currentView=null,t.internalDiv=null,t.resizeListener=null,t}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&st(t,e)}(e,t),r=e,n=[{key:"set",value:function(t){var e=t.breakpoints;if(this.options={breakpoints:e},!Array.isArray(e))throw new Error("Breakpoints should be an array of objects with 'at' and 'view' properties.");return this.breakpoints=e.map((function(t){if("string"!=typeof t.at||!(t.view.render()instanceof HTMLElement))throw new Error("Each breakpoint must have 'at' as a string and 'view' as an HTMLElement.");return tt(tt({},t),{},{at:parseInt(t.at,10)})})),this.breakpoints.sort((function(t,e){return t.at-e.at})),this}},{key:"toCode",value:function(){JSON.stringify(this.options.breakpoints.map((function(t){return t.view.toCode()})).flat(),null,4),JSON.stringify(this.options.breakpoints.map((function(t){return t.at})),null,4),JSON.stringify(this.options.breakpoints,null,4);for(var t="",e=0;e<this.options.breakpoints.length;e++)t+='{ at: "'.concat(this.options.breakpoints[e].at,'", view: ').concat(this.options.breakpoints[e].view.toCode()," }, \n");return["new Switcher().set({\n breakpoints: [\n ".concat(t,"\n ]\n })")]}},{key:"render",value:function(t){return this.internalDiv=document.createElement("div"),this.applyView(),this.resizeListener=this.applyView.bind(this),window.addEventListener("resize",this.resizeListener),void 0!==t&&document.querySelector(t).appendChild(this.internalDiv),this.internalDiv}},{key:"createRanges",value:function(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:99999,r=[],n=0;n<t.length;n++)r.push({from:t[n],to:n<t.length-1?t[n+1]-1:e});return r}},{key:"addRanges",value:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:99999;return t.map((function(t,n){var i=e[n],o=n<e.length-1?e[n+1]-1:r;return tt(tt({},t),{},{range:{from:i,to:o}})}))}},{key:"applyView",value:function(){var t=this;console.log("MAKE RANGES"),window.innerWidth,console.log(this.breakpoints),console.log(this.breakpoints.map((function(t){return t.at})));var e=this.breakpoints.map((function(t){return t.at})),r=this.breakpoints.map((function(t){return t.at})),n=(this.createRanges(r),this.addRanges(this.breakpoints,e));console.log(n),n.forEach((function(e){var r="(min-width: ".concat(e.range.from,"px) and (max-width: ").concat(e.range.to,"px)"),n=window.matchMedia(r);console.warn(r),n.matches&&(console.log("Viewport width is within the range: ".concat(e.range.from,"px to ").concat(e.range.to,"px")),t.currentView!==e.view.render()&&(t.internalDiv.innerHTML="",t.internalDiv.appendChild(e.view.render()),t.currentView=e.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}}],n&&rt(r.prototype,n),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n}(n.y);function lt(t){return lt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},lt(t)}function ct(t,e){if(t){if("string"==typeof t)return ut(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?ut(t,e):void 0}}function ut(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function dt(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,ht(n.key),n)}}function ht(t){var e=function(t){if("object"!=lt(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=lt(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==lt(e)?e:e+""}function pt(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(pt=function(){return!!t})()}function ft(t){return ft=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},ft(t)}function yt(t,e){return yt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},yt(t,e)}var mt=function(t){function e(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(t=function(t,e,r){return e=ft(e),function(t,e){if(e&&("object"==lt(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,pt()?Reflect.construct(e,r||[],ft(t).constructor):e.apply(t,r))}(this,e)).res=document.createElement("div"),t.toggleWrap=document.createElement("div"),t.toggleWrap.style.zIndex=9999,t.toggleWrap.style.borderRadius="0.3rem",t.toggleWrap.style.height="40px",t.toggleWrap.style.cursor="pointer",t.toggleWrap.style.display="flex",t.toggleWrap.style.alignItems="center",t.toggleWrap.style.justifyContent="center",t.res.appendChild(t.toggleWrap),t.contentWrap=document.createElement("div"),t.contentWrap.style.position="absolute",t.contentWrap.style.background="#ecf0f1",t.contentWrap.style.borderRadius="0.3rem",t.contentWrap.style.boxShadow="0 2px 5px rgba(0, 0, 0, 0.15)",t.contentWrap.style.marginTop="10px",t.contentWrap.style.width="250px",t.contentWrap.style.display="none",t.res.appendChild(t.contentWrap),t.styles={},t.children=[],t.isExpanded=!1,t.toggleWrap.addEventListener("click",(function(){return t.toggle()})),t}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&yt(t,e)}(e,t),r=e,(n=[{key:"set",value:function(t){var e=this;this.options=t,t.title&&(this.toggleWrap.textContent=t.title),t.width&&(this.toggleWrap.style.width=t.width),t.contentWidth&&(this.contentWrap.style.width=t.contentWidth),t.background&&(this.contentWrap.style.backgroundColor=t.background),t.mar&&this.mar(t.mar);var r=function(){var r,n=window.matchMedia("(max-device-width: 415px)"),i=window.matchMedia("(max-width: ".concat(null!==(r=t.breakpoint)&&void 0!==r?r:"600px",")"));n.matches||i.matches?e.contentWrap.style.position="relative":e.contentWrap.style.position="absolute"};return window.addEventListener("resize",r),r(),this}},{key:"add",value:function(t){var e,r=this;if(!Array.isArray(t))throw new Error("The 'add' method expects an array of children.");if(t.forEach((function(t,e){if(0!==e){if(!(t.res instanceof HTMLElement))throw new Error("Each child must have a valid 'element' property that is an HTMLElement.");r.contentWrap.appendChild(t.res)}})),!this.options||!this.options.title){var n=t[0];n&&n.res&&this.toggleWrap.appendChild(n.res)}return(e=this.children).push.apply(e,function(t){return function(t){if(Array.isArray(t))return ut(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||ct(t)||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.")}()}(t)),this}},{key:"toggle",value:function(){this.isExpanded=!this.isExpanded,this.contentWrap.style.display=this.isExpanded?"block":"none"}},{key:"toCode",value:function(){var t=this,e=this.options?Object.entries(this.options).map((function(t){var e=function(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,i,o,s,a=[],l=!0,c=!1;try{if(o=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=o.call(r)).done)&&(a.push(n.value),a.length!==e);l=!0);}catch(t){c=!0,i=t}finally{try{if(!l&&null!=r.return&&(s=r.return(),Object(s)!==s))return}finally{if(c)throw i}}return a}}(t,e)||ct(t,e)||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.")}()}(t,2),r=e[0],n=e[1];return"string"==typeof n?"".concat(r,': "').concat(n,'"'):"object"===lt(n)?"".concat(r,": ").concat(JSON.stringify(n)):"".concat(r,": ").concat(n)})).join(",\n "):"",r=this.children.map((function(e,r){return e.toCode().flatMap((function(t){return t})).join("")+(r<t.children.length-1?",":"")})).join("");return["new Dropdown().set({\n ".concat(e,"\n}).add([\n ").concat(r,"\n])")]}},{key:"render",value:function(t){return t&&document.querySelector(t).appendChild(this.res),this.res}}])&&dt(r.prototype,n),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n}(n.y);function vt(t){return vt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},vt(t)}function bt(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(t){if("string"==typeof t)return gt(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?gt(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,i=function(){};return{s:i,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},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(t)},n:function(){var t=r.next();return s=t.done,t},e:function(t){a=!0,o=t},f:function(){try{s||null==r.return||r.return()}finally{if(a)throw o}}}}function gt(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function wt(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,kt(n.key),n)}}function kt(t){var e=function(t){if("object"!=vt(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=vt(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==vt(e)?e:e+""}function xt(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(xt=function(){return!!t})()}function St(){return St="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,r){var n=function(t,e){for(;!{}.hasOwnProperty.call(t,e)&&null!==(t=Ot(t)););return t}(t,e);if(n){var i=Object.getOwnPropertyDescriptor(n,e);return i.get?i.get.call(arguments.length<3?t:r):i.value}},St.apply(null,arguments)}function Ot(t){return Ot=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Ot(t)}function Ct(t,e){return Ct=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Ct(t,e)}var jt=function(t){function e(t){var r;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(r=function(t,e,r){return e=Ot(e),function(t,e){if(e&&("object"==vt(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,xt()?Reflect.construct(e,r||[],Ot(t).constructor):e.apply(t,r))}(this,e)).res=null,r.setup(t),r.code=[],r.isLast=!1,r.code.push("\n new Wrapper() \n"),r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Ct(t,e)}(e,t),r=e,n=[{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(t){return this.res.style.gridArea=t,this}},{key:"removeQuotesFromFirstWord",value:function(t){return t.replace(/"([^"]+)":/g,"$1:")}},{key:"clicked",value:function(t){return this.res.addEventListener("click",t),this}},{key:"gpos",value:function(t){return this.res.style.gridColumn=t.col,this.res.style.gridRow=t.row,this}},{key:"set",value:function(t){var r,n,i,o=".set({";if(t.pad&&this.pad(t.pad),t.arrpad&&(o+="pad: {sides: [".concat(t.arrpad.sides.map((function(t){return'"'.concat(t,'"')})).join(", "),'], value: "').concat(t.arrpad.value,'"}, ')),t.gpos&&this.gpos(t.gpos),t&&t.id&&t.stroke||t&&t.id&&t.gradient||t&&t.id&&t.span||t&&t.id&&t.layout){t.gradient,t.gradient&&(this.globalGradient=t.gradient.op.gradient),t.stroke&&(r=e,n=this,"function"==typeof(i=St(Ot(1&3?r.prototype:r),"setAny",n))?function(t){return i.apply(n,t)}:i)([{globalBlast:"".concat(t.stroke.op.width," ").concat(t.stroke.op.color)}]);var s=[t.stroke,t.gradient,t.animation,t.span,t.layout];s=s.filter((function(t){return null!=t}));for(var a=[],l=0;l<s.length;l++)a.push({range:s[l].range,log:s[l].op.name,target:s[l].target});this.res.setAttribute("id",t.id),this.betaReact(a,t.id)}if(t.socenter&&(this.res.style.display="flex",this.res.style.flexDirection="column",this.res.style.alignItems="center",t.socenter&&(o+="socenter: ".concat(t.socenter,","))),t.mboth&&(this.res.style.marginRight="auto")&&(this.res.style.marginLeft="auto"),t.mar&&this.mar(t.mar),t.sticky&&this.sticky(),t.transition&&(this.res.style.transition=t.transition),t.class&&this.res.setAttribute("class",t.class),t.ga&&(this.res.style.gridArea=t.ga),t.opacity&&(0==t.opacity&&(this.res.style.opacity=0),t.opacity&&(this.res.style.opacity=t.opacity)),t.maxHeight&&(this.res.style.maxHeight=t.maxHeight),t.id&&this.res.setAttribute("id",t.id),t.arrpad&&this.arrayPadding(t.arrpad.sides,t.arrpad.value),t.arrpad&&(o+="arrpad: {sides: [".concat(t.arrpad.sides.map((function(t){return'"'.concat(t,'"')})).join(", "),'], value: "').concat(t.arrpad.value,'"}, ')),t.arrayMargin&&this.arrayMargin(t.arrayMargin.sides,t.arrayMargin.value),t.arrayMargin&&(o+='\n arrayMargin: {sides: ["'.concat(t.arrayMargin.sides,'"], value: "').concat(t.arrayMargin.value,'"},')),t.center&&this.toCenter(t.center),t.center&&(o+='center: "'.concat(t.center,'",')),t.simpleCenter&&this.simpleCenter(),t.simpleCenter&&(o+='center: "'.concat(t.simpleCenter,'",')),t.filter&&(this.res.style.backdropFilter="blur(3px)"),t.radius&&this.corner(t.radius),t.radius&&(o+='\n radius: "'.concat(t.radius,'",')),t.border&&this.border(t.border),t.simpleBorder&&(this.res.style.border=t.simpleBorder),t.width&&this.width(t.width),t.width&&(o+='\n width: "'.concat(t.width,'",')),t.overflow&&(this.res.style.overflow="hidden"),t.overflow&&(o+='\n overflow: "'.concat(t.overflow,'",')),t.height&&this.heightNoAuto(t.height),t.height&&(o+='\n height: "'.concat(t.height,'",')),t.align&&this.flexAlign(t.align),t.align&&(o+='\n align: "'.concat(t.align,'",')),t.borderObj&&(this.res.style.borderRight="".concat(t.borderObj.width," solid ").concat(t.borderObj.color),this.res.style.borderRadius=t.borderObj.radius),t.borderObja&&(this.res.style.border="".concat(t.borderObja.width," solid ").concat(t.borderObja.color),this.res.style.borderRadius=t.borderObja.radius),t.font&&this.font(t.font),t.font&&(o+='font: "'.concat(t.font,'",')),t.maxWidth&&this.maxWidth(t.maxWidth),t.flexCenter&&this.flexc(t.flexCenter),t.multipad&&this.makeMultiPad(t.multipad),t.multimargin&&this.makeMultiMargin(t.multimargin),t.color&&this.color(t.color),t.background&&this.background(t.background),t.background&&(o+='background: "'.concat(t.background,'",')),t.weight&&this.weight(t.weight),t.paddings&&this.paddingo(t.paddings),t.area&&this.setArea(t.area),t.area&&(o+='area: "'.concat(t.area,'"')),t.column&&this.makeCol(),t.column&&(o+='\n column: "'.concat(t.column,'",')),t.alignIts&&(this.res.style.background="gray"),t.alignIts&&(this.res.style.alignItems="flex-start"),t.alignIts&&(this.res.style.justifyItems="flex-start"),t.customAlign&&(this.res.style.alignItems=t.customAlign),t.customJustify&&(this.res.style.justifyItems=t.customJustify),t.disp&&(this.res.style.display=t.disp),t.flexDir&&(this.res.style.flexDirection=t.flexDir),t.flexDir&&(this.res.style.display="flex"),t.flexDir&&(o+='\n flexDir: "'.concat(t.flexDir,'",')),t.zIndex&&(this.res.style.zIndex=t.zIndex),t.name&&(this.name=t.name),t.responsive&&this.rsp(t.responsive),t.stretch){t.stretch&&this.stretch(t.stretch);var c=this.removeQuotesFromFirstWord(JSON.stringify(t.stretch));o+="\n stretch: ".concat(c,",")}for(var u in t)if("margin"===u){var d=t[u];if(Array.isArray(d)&&d.length>0){var h,p=bt(d);try{for(p.s();!(h=p.n()).done;){var f=h.value;f.hasOwnProperty("top")&&(this.res.style.marginTop=f.top),f.hasOwnProperty("right")&&(this.res.style.marginRight=f.right),f.hasOwnProperty("bottom")&&(this.res.style.marginBottom=f.bottom),f.hasOwnProperty("left")&&(this.res.style.marginLeft=f.left)}}catch(t){p.e(t)}finally{p.f()}}}return 8===(o+="})\n").length&&(o=""),this.code.push(o),this}},{key:"rsp",value:function(t){var e=this;this.res.style.display="flex";var r=t.sequence.split("-"),n=function(){var n=t.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]&&(e.res.style.flexDirection="row",e.res.style.border="3px solid green"),"col"===r[i]&&(e.res.style.flexDirection="column",e.res.style.border="3px solid purple"));return e};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(t){var e=this,r=function(){window.matchMedia("(max-width: ".concat(t.at,")")).matches?e.res.style.width="auto":window.matchMedia("(max-device-width: 415px)").matches?e.res.style.width="100%":e.res.style.width=t.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(t){return this.res.style.padding=t,this}},{key:"toCenter",value:function(t){return this.res.style.display="flex",this.res.style.flexDirection="column",this.res.style.justifyContent="center","both"===t&&(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(t){return this.res.style.color=t,this}},{key:"weight",value:function(t){return this.res.style.fontWeight=t,this}},{key:"makeMultiPad",value:function(t){for(var e=0;e<t.length;e++)"left"===t[e].side&&(this.res.style.paddingLeft=t[e].value),"right"===t[e].side&&(this.res.style.paddingRight=t[e].value);return this}},{key:"makeMultiMargin",value:function(t){this.res.style.zIndex="1";for(var e=0;e<t.length;e++)"left"===t[e].side&&(this.res.style.marginLeft=t[e].value),"right"===t[e].side&&(this.res.style.marginRight=t[e].value),"top"===t[e].side&&(this.res.style.marginTop=t[e].value),"bottom"===t[e].side&&(this.res.style.marginBottom=t[e].value);return this}},{key:"flexc",value:function(t){return this.res.style.display="flex",this.res.style.flexDirection="column",this.res.style.justifyContent="center",this}},{key:"maxWidth",value:function(t){return this.res.style.maxWidth=t,this}},{key:"font",value:function(t){return this.res.style.fontFamily=t,this}},{key:"flexAlign",value:function(t){return this.res.style.display="flex",this.res.style.justifyContent="flex-start",this.res.style.alignItems="flex-start","center"===t?(this.res.style.display="flex",this.res.style.flexDirection="column",this.res.style.alignItems="center",this):this}},{key:"width",value:function(t){return this.res.style.width=t,this}},{key:"heightNoAuto",value:function(t){return this.res.style.height=t,this}},{key:"border",value:function(t){return this.res.style.borderRadius="".concat(t.radius,"px"),this.res.style.padding="0.25em",this.res.style.border="".concat(t.width,"px solid ").concat(t.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(t){this.items=t,this.code.push(".add([ \n");var e=t.map((function(e,r){return e.toCode().flatMap((function(t){return t})).join("")+(r<t.length-1?",":"")})).join("");this.code.push(e);for(var r=0;r<t.length;r++)if(void 0!==t[r]&&void 0!==t[r].toCode){var n=t[r].render();this.res.appendChild(n)}return this.code.push("])"),this}},{key:"arrayPadding",value:function(t,e){return t.includes("left")&&(this.res.style.paddingLeft=e),t.includes("right")&&(this.res.style.paddingRight=e),t.includes("top")&&(this.res.style.paddingTop=e),t.includes("bottom")&&(this.res.style.paddingBottom=e),this}},{key:"arrayMargin",value:function(t,e){return e||(this.res.style.marginLeft="".concat(t[0],"px"),this.res.style.marginTop="".concat(t[1],"px"),this.res.style.marginRight="".concat(t[2],"px"),this.res.style.marginBottom="".concat(t[3],"px")),t.includes("left")&&(this.res.style.marginLeft=e),t.includes("right")&&(this.res.style.marginRight=e),t.includes("top")&&(this.res.style.marginTop=e),t.includes("bottom")&&(this.res.style.marginBottom=e),this}},{key:"setWidth",value:function(t){this.res.style.width="100vw"}},{key:"setHeight",value:function(t){return this.res.style.height="".concat(t),this}},{key:"setup",value:function(t){var e=t?document.createElement(t.isLink?"a":"div"):document.createElement("div");return t&&t.isLink&&(e.style.textDecoration="none",e.setAttribute("href",t.child)),this.res=e,this.res.style.margin=0,this.res.style.padding=0,t&&!0===t.hideOverflow&&(this.res.style.overflow="hidden",this.res.style.overflowY="scroll"),t&&!0===t.center&&(this.res.style.display="flex",this.res.style.flexDirection="column",this.res.style.justifyContent="center",this.res.style.alignItems="center"),t&&"left"===t.align&&(this.res.style.alignItems="flex-start"),t&&"right"===t.align&&(this.res.style.alignItems="flex-end"),t&&t.height&&(this.res.style.height=t.height),t&&t.width&&(this.res.style.width=t.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(t){return this.res.style.width="auto",this.res.style.height="".concat(t),this}},{key:"size",value:function(t,e){return this.w=t,this.h=e,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(t){return this.res.style.background=t,this}},{key:"corner",value:function(t){return this.res.style.borderRadius=t,this}},{key:"padding",value:function(t,e,r,n){return this.res.style.paddingLeft=t,this.res.style.paddingTop=e,this.res.style.paddingRight=r,this.res.style.paddingBottom=n,this}},{key:"margin",value:function(t,e,r,n){return this.res.style.marginLeft=t,this.res.style.marginTop=e,this.res.style.marginRight=r,this.res.style.marginBottom=n,this}},{key:"itemWidth",value:function(t){for(var e=0;e<this.res.childNodes.length;e++)this.res.childNodes[e].style.width=t;return this}},{key:"apply",value:function(t){var e=this,r=function(){for(var r=0;r<t.length;r++){var n=t[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(e.res.style,n.styles)}},n=window.matchMedia("(max-width: ".concat(t[0].width,"px)"));return t[0].device&&(n=window.matchMedia("(max-device-width: ".concat(t[0].width,"px)"))),n.matches||Object.assign(this.res.style,t[0].styles),r(),window.addEventListener("resize",r),this}},{key:"mount",value:function(t){document.querySelector(t).appendChild(this.res)}},{key:"render",value:function(t){return t?(document.querySelector("#mount"),document.querySelector(t).appendChild(this.res),this):this.res}}],n&&wt(r.prototype,n),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n}(n.y);function Et(t){return Et="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Et(t)}function _t(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(t){if("string"==typeof t)return Tt(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Tt(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,i=function(){};return{s:i,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},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(t)},n:function(){var t=r.next();return s=t.done,t},e:function(t){a=!0,o=t},f:function(){try{s||null==r.return||r.return()}finally{if(a)throw o}}}}function Tt(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function Pt(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,At(n.key),n)}}function At(t){var e=function(t){if("object"!=Et(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=Et(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==Et(e)?e:e+""}function Rt(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Rt=function(){return!!t})()}function Lt(t){return Lt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Lt(t)}function It(t,e){return It=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},It(t,e)}var Mt=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e,r){return e=Lt(e),function(t,e){if(e&&("object"==Et(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,Rt()?Reflect.construct(e,r||[],Lt(t).constructor):e.apply(t,r))}(this,e)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&It(t,e)}(e,t),r=e,(n=[{key:"setup",value:function(t){return this.obj=t,this.animate=void 0===this.obj.animate||this.obj.animate,this.res=this.createSideNav(t),this.res.style.position="relative",this.res.style.zIndex=3,this.closed=!0,this}},{key:"toggleSideNav",value:function(t){this.closed=!this.closed;var e=this.res.children[0];if(this.closed)if(e.style.overflowX="hidden",t.style.opacity=1,this.animate){e.animate([{transform:"translateX(0)"},{transform:"translateX(100%)"}],{duration:300,fill:"forwards"});var r,n=-1,i=_t(e.children);try{for(i.s();!(r=i.n()).done;){var o=r.value;if(n+=1,this.masterEL[n]){var s,a=_t(o.children);try{for(a.s();!(s=a.n()).done;){var l=s.value,c=this.masterEL[n].options.animation;c&&this.mappedIDS.includes(l.id)&&l.animate(c.op.keyframesClose,c.op.closeOptions)}}catch(t){a.e(t)}finally{a.f()}}}}catch(t){i.e(t)}finally{i.f()}}else e.style.display="none";else{e.style.overflowX="none",e.children[1].style.border="1px solid orange";var u,d=-1,h=_t(e.children);try{for(h.s();!(u=h.n()).done;){var p=u.value;d+=1;var f,y=_t(p.children);try{for(y.s();!(f=y.n()).done;){var m=f.value;if(this.mappedIDS.includes(m.id)&&void 0!==this.masterEL[0]){var v=this.masterEL[d].options.animation;if(v){console.log("OPEN KEYFRAMES"),console.log(v.op.keyframesOpen);var b=v.op.openOptions;b.delay||(b.delay=1),b.duration||(b.duration=300),console.log(b),m.animate(v.op.keyframesOpen,b)}}}}catch(t){y.e(t)}finally{y.f()}}}catch(t){h.e(t)}finally{h.f()}t.style.opacity=0,this.animate?(e.style.display="flex",e.animate([{transform:"translateX(100%)"},{transform:"translateX(0)"}],{duration:300,fill:"forwards"})):e.style.display="flex"}}},{key:"createToggleButton",value:function(t){var e=document.createElement("button");return e.innerText="☰",e.style.padding="10px 20px",e.style.backgroundColor="transparent",e.style.color=null!=t?t:"#3498db",e.style.border="none",e.style.borderRadius="5px",e.style.cursor="pointer",e.style.zIndex=1,e.style.fontSize="1.6rem",e}},{key:"createCloseButton",value:function(t){var e=document.createElement("button");return e.innerText="×",e.style.fontSize="1.6rem",e.style.padding="10px 20px",e.style.backgroundColor="transparent",e.style.color=null!=t?t:"black",e.style.border="none",e.style.borderRadius="5px",e.style.cursor="pointer",e.style.zIndex=1,e.style.alignSelf="flex-end",e}},{key:"createSideNav",value:function(t){var e=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 e.toggleSideNav(i)})),o.addEventListener("click",(function(){return e.toggleSideNav(i)})),n.appendChild(o),r.appendChild(n),r.appendChild(i),r}},{key:"items",value:function(t){this.masterEL=t.items.filter((function(t){return void 0!==t.link})),console.log("EXTRACT IDs"),console.log(t);var e=t.items.filter((function(t){return void 0===t.items})).map((function(t){return t.id}));if(this.mappedIDS=e,this.item=t,this.res.children[0].appendChild(t.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,i=_t(this.res.children[0].children);try{for(i.s();!(n=i.n()).done;){var o,s=_t(n.value.children);try{for(s.s();!(o=s.n()).done;){var a=o.value;if(this.mappedIDS.includes(a.id)){var l=r.op.closeOptions;l.delay=0,console.log("ANNAX"),console.log("SETTING INITIAL STATE ZEROING THE DELAY"),console.log(r.op.keyframesClose),console.log(l),a.animate(r.op.keyframesClose,r.op.closeOptions)}}}catch(t){s.e(t)}finally{s.f()}}}catch(t){i.e(t)}finally{i.f()}}}return this}},{key:"toCode",value:function(){var t="new SideNav().setup(".concat(this.formatObj(this.obj),")");if(this.item){var e=this.item.toCode?this.item.toCode().join(""):this.formatObj(this.item);e=e.replace(/,\s*(\.set\(|\.add\()/g,"\n $1"),t+=".items(".concat(e,")")}return t}},{key:"formatObj",value:function(t){return JSON.stringify(t,null,2).replace(/"(\w+)"\s*:/g,"$1:")}},{key:"render",value:function(t){return t&&document.querySelector(t).appendChild(this.res),this.res}}])&&Pt(r.prototype,n),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n}(n.y);function zt(t){return zt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},zt(t)}function Bt(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Wt(n.key),n)}}function Wt(t){var e=function(t){if("object"!=zt(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=zt(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==zt(e)?e:e+""}var Nt=function(){return t=function t(e){if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.hide=e,e){var r=document.createElement("div");r.style.flex="1",this.res=r}return e&&this.res.setAttribute("class","innerHider"),this},(e=[{key:"toCode",value:function(){return["new Spacer(".concat(this.hide,")")]}},{key:"render",value:function(){var t,e=document.createElement("h2");return e.style.display="none !important",null!==(t=this.res)&&void 0!==t?t:e}}])&&Bt(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e}(),Dt=r(148),Ft=(r(751),r(385)),qt=r(898);function Ht(t){return Ht="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ht(t)}function Ut(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Jt(n.key),n)}}function Jt(t){var e=function(t){if("object"!=Ht(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=Ht(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==Ht(e)?e:e+""}function $t(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return($t=function(){return!!t})()}function Yt(t){return Yt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Yt(t)}function Gt(t,e){return Gt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Gt(t,e)}var Qt=function(t){function e(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(t=function(t,e,r){return e=Yt(e),function(t,e){if(e&&("object"==Ht(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,$t()?Reflect.construct(e,r||[],Yt(t).constructor):e.apply(t,r))}(this,e)).el=null,t.file=null,t}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Gt(t,e)}(e,t),r=e,(n=[{key:"set",value:function(t){var e=this;this.options=t,this.okayColor=t.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",t.name),t.accept&&(i.accept=t.accept),i.setAttribute("id",t.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",t.id),o.innerText=t.title,o.style.marginRight=12,o.style.padding="0.5em",t.color&&(o.style.color=t.color),t.background&&(o.style.background=t.background,o.style.padding="10"),i.addEventListener("change",(function(){n.style.display="block",t.hideField&&(n.style.display="none"),o.innerText="Change",e.file=i.files[0],e.onLoad(e.file),Xt[t.index]=e.file,n.setAttribute("value",e.file.name),n.setAttribute("readonly","true"),e.getLoaded(),e.highlight()})),r.appendChild(i),r.appendChild(o),r.appendChild(n),this.el=r,t.font&&this.font(t.font),t.radius&&this.borderRadius(t.radius),this}},{key:"borderRadius",value:function(t){return this.el.style.borderRadius=t,this}},{key:"addClass",value:function(t){return this.el.setAttribute("class",t),this}},{key:"font",value:function(t){return this.el.style.fontFamily=t,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 t=function(){window.matchMedia("(max-device-width: 415px)").matches};return t(),window.addEventListener("resize",t),this}},{key:"onLoad",value:function(t){return this.returnObject(this.file),this}},{key:"getLoaded",value:function(){return this.file}},{key:"returnObject",value:function(t){return t}},{key:"loadCall",value:function(t){return this.func=t,this.func(this.file),this}},{key:"toCode",value:function(){var t=JSON.stringify(this.options,null,4);return t=t.replace(/"(\w+)"(?=\s*:)/g,"$1"),["new FilePickera().set(".concat(t,")")]}},{key:"render",value:function(t){return t?(document.querySelector(t).appendChild(this.el),this):this.el}}])&&Ut(r.prototype,n),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n}(n.y),Xt=[];function Vt(t){return Vt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Vt(t)}function Kt(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function Zt(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,te(n.key),n)}}function te(t){var e=function(t){if("object"!=Vt(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=Vt(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==Vt(e)?e:e+""}r(216);var ee=function(){return t=function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"POST";!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.action=e,this.method=r,this.elements=[],this.formElement=document.createElement("form"),this.formElement.action=this.action,this.formElement.method=this.method},e=[{key:"add",value:function(t){var e=this;return this.elements=t,console.log("CODEA"),console.log(this.elements),console.log(this.elements.length),t.forEach((function(t){if(!t||"function"!=typeof t.render)throw new Error("Each element in the array must have a render method that returns an HTML DOM element.");e.formElement.appendChild(t.render())})),console.log(this.elements),this}},{key:"toCode",value:function(){var t=this.elements.map((function(t){return t.toCode()})),e=Object.entries(this.obj).map((function(t){var e=function(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,i,o,s,a=[],l=!0,c=!1;try{if(o=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=o.call(r)).done)&&(a.push(n.value),a.length!==e);l=!0);}catch(t){c=!0,i=t}finally{try{if(!l&&null!=r.return&&(s=r.return(),Object(s)!==s))return}finally{if(c)throw i}}return a}}(t,e)||function(t,e){if(t){if("string"==typeof t)return Kt(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Kt(t,e):void 0}}(t,e)||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.")}()}(t,2),r=e[0],n=e[1],i="string"==typeof n?'"'.concat(n,'"'):n;return"".concat(r,": ").concat(i)})).join(", ");return console.log("FORM DQ"),console.log(t),["new Form().set({".concat(e,"}).add([ \n ").concat(t.join(", \n"),"])")]}},{key:"set",value:function(t){return this.obj=t,t.action&&this.setAction(t.action),t.method&&this.setMethod(t.method),this}},{key:"setAction",value:function(t){this.action=t,this.formElement.action=this.action}},{key:"setMethod",value:function(t){this.method=t,this.formElement.method=this.method}},{key:"render",value:function(t){return t&&document.querySelector(t).appendChild(this.formElement),this.formElement}}],e&&Zt(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e}();function re(t){return re="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},re(t)}function ne(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,ie(n.key),n)}}function ie(t){var e=function(t){if("object"!=re(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=re(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==re(e)?e:e+""}function oe(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(oe=function(){return!!t})()}function se(t){return se=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},se(t)}function ae(t,e){return ae=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},ae(t,e)}var le=function(t){function e(t,r){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(n=function(t,e,r){return e=se(e),function(t,e){if(e&&("object"==re(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,oe()?Reflect.construct(e,r||[],se(t).constructor):e.apply(t,r))}(this,e)).text=t,n.res=null,n.val=r,n.setup(),n}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&ae(t,e)}(e,t),r=e,n=[{key:"setup",value:function(t){return this}},{key:"hover",value:function(t){var e=this;return this.prevColor=this.res.style.backgroundColor,this.foreColor=this.res.style.color,t.animation&&(this.res.style.transition="".concat(t.animation,"s ease-in-out"),this.res.style.transionProperty="background, color"),this.res.onmouseout=function(){e.res.style.backgroundColor="".concat(e.prevColor),e.res.style.color="".concat(e.foreColor)},this.res.onmouseover=function(){e.res.style.backgroundColor=t.background,e.res.style.color=t.color},this}},{key:"set",value:function(t){this.options=t;var e=document.createElement("button");if(e.style.background="transparent",t.url){var r=document.createElement("img");r.setAttribute("src",t.url),r.style.width=t.frame.width,r.style.height=t.frame.height,e.appendChild(r)}else{var n=document.createTextNode(this.text.replace("$",this.val));e.appendChild(n)}return this.res=e,t&&"submit"===t.type&&e.setAttribute("type",t.type),this.border("none"),this.res.style.display="block",t.background&&this.background(t.background),t.padding&&this.padding(t.padding),t.margin&&this.margin(t.margin),t.mar&&this.mar(t.mar),t.pad&&this.pad(t.pad),t.centered&&(this.res.style.marginRight="auto",this.res.style.marginLeft="auto",this.res.style.backgroundColor="black"),t.border&&this.border(t.border),t.radius&&this.borderRadius(t.radius),t.class&&this.setClass(t.class),t.color&&this.color(t.color),t.auto&&this.auto(),t.weight&&(this.res.style.fontWeight=t.weight),t.fluidc&&this.fluidButtonCopy(t.fluidc),t.fluidc&&'\n fluidc: "'.concat(t.fluidc,'",'),t.onTap&&this.onTap(t.onTap),t.frame&&this.frame(t.frame),t.frame&&'\n frame: "'.concat(t.frame,'",'),t.arrpad&&this.arrayPadding(t.arrpad.sides,t.arrpad.value),t.arrpad&&'\n arrpad: {sides: ["'.concat(t.arrpad.sides,'"], value: "').concat(t.arrpad.value,'"},'),t.arrayMargin&&this.arrayMargin(t.arrayMargin.sides,t.arrayMargin.value),t.arrayMargin&&'\n arrayMargin: {sides: ["'.concat(t.arrayMargin.sides,'"], value: "').concat(t.arrayMargin.value,'"},'),t.keySet&&this.keySet(t.keySet),this}},{key:"arrayPadding",value:function(t,e){return t.includes("left")&&(this.res.style.paddingLeft=e),t.includes("right")&&(this.res.style.paddingRight=e),t.includes("top")&&(this.res.style.paddingTop=e),t.includes("bottom")&&(this.res.style.paddingBottom=e),t.includes("all")&&(this.res.style.padding=e),e||(this.res.style.paddingBottom=t),this}},{key:"arrayMargin",value:function(t,e){return e||(this.res.style.marginLeft="".concat(t[0],"px"),this.res.style.marginTop="".concat(t[1],"px"),this.res.style.marginRight="".concat(t[2],"px"),this.res.style.marginBottom="".concat(t[3],"px")),t.includes("left")&&(this.res.style.marginLeft=e),t.includes("right")&&(this.res.style.marginRight=e),t.includes("top")&&(this.res.style.marginTop=e),t.includes("bottom")&&(this.res.style.marginBottom=e),t.includes("all")&&(this.res.style.margin=e),e||(this.res.style.marginBottom=t),this}},{key:"fluidButtonCopy",value:function(t){if(t instanceof Object){this.prevStylex=this.res.style,this.res=document.createElement("button"),this.res.style.cssText=this.prevStylex.cssText;var e=document.createTextNode(this.text);return this.res.appendChild(e),this.res.style.fontSize=t.exact,this}if("S1"===t){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"===t){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"===t){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"===t){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"===t){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"===t&&(this.res.style.fontSize="calc(1rem + 0.5vw)"),this}},{key:"setClass",value:function(t){return this.res.setAttribute("class",t),this}},{key:"color",value:function(t){return this.res.style.color=t,this}},{key:"background",value:function(t){return this.res.style.background=t,this}},{key:"width",value:function(t){return this.res.style.width=t,this}},{key:"borderRadius",value:function(t){return this.res.style.borderRadius=t,this}},{key:"padding",value:function(t,e,r,n){return t&&e&&r&&n?(this.res.style.paddingLeft=t,this.res.style.paddingTop=e,this.res.style.paddingRight=r,this.res.style.paddingBottom=n):this.res.style.padding=t,this}},{key:"margin",value:function(t,e,r,n){return t&&e&&r&&n?(this.res.style.marginLeft=t,this.res.style.marginTop=e,this.res.style.marginRight=r,this.res.style.marginBottom=n):this.res.style.margin=t,this}},{key:"auto",value:function(){var t=this,e=function(){window.matchMedia("(max-device-width: 415px)").matches?t.res.style.fontSize="2.2rem":t.res.style.fontSize="1rem"};return e(),window.addEventListener("resize",e),this}},{key:"large",value:function(){var t=this,e=function(){window.matchMedia("(max-device-width: 415px)").matches?(alert("WOW"),t.res.style.fontSize="6rem"):t.res.style.fontSize="3rem"};return e(),window.addEventListener("resize",e),this}},{key:"border",value:function(t,e){return"none"===t&&(this.res.style.border="none"),this.res.style.border="".concat(t," solid ").concat(e,"px"),this}},{key:"frame",value:function(t){return this.res.style.width=t.width,this.res.style.height=t.height,this}},{key:"updating",value:function(t,e){var r=this.res,n=this.text;return Object.defineProperty(t,e,{set:function(t){var e=document.createTextNode(n.replace("$",t));r.replaceChild(e,r.childNodes[0])}}),this}},{key:"onTap",value:function(t){return this.res.addEventListener("click",t),this}},{key:"toCode",value:function(){var t=JSON.stringify(this.options,(function(t,e){return"function"==typeof e?e.toString():e}),4).replace(/"(\w+)":/g,"$1:").replace(/"(\(\)\s*=>\s*{[^}]*})"/g,"$1").replace(/\\n/g,"").replace(/\\"/g,'"');return['new Button("'.concat(this.text,'").set(').concat(t,")")]}},{key:"render",value:function(t){if(!t)return this.res;document.querySelector(t).appendChild(this.res)}}],n&&ne(r.prototype,n),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n}(n.y);function ce(t){return ce="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ce(t)}function ue(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,de(n.key),n)}}function de(t){var e=function(t){if("object"!=ce(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=ce(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==ce(e)?e:e+""}var he=function(){return t=function t(e,r){if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.container=document.createElement("div"),this.elements=e,this.currentSlideIndex=0,this.buttons=r,!this.buttons){var n={leftButton:new le("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 le("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()},e=[{key:"toCode",value:function(){var t="new Slider([".concat(this.elements.map((function(t){return t.toCode()})),"], null)");return[t=t.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 t=document.createElement("div");this.slidesWrapper=t,t.style.display="flex",t.style.overflowX="scroll",t.style.scrollBehavior="smooth",t.style.scrollSnapType="x mandatory",this.elements.forEach((function(e,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(e.render()),t.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 e=document.createElement("div");e.style.position="absolute",e.style.bottom="10%",e.style.left="50%",e.style.width="200px",e.style.transform="translateX(-50%)",e.style.textAlign="center",this.elements.forEach((function(t,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,e.appendChild(n)})),this.slider.appendChild(this.arrowPrev),this.slider.appendChild(this.arrowNext),this.slider.appendChild(t),this.slider.appendChild(e),this.container.appendChild(this.slider),this.slidesWrapper=t,this.navLinks=e.querySelectorAll("a")}},{key:"init",value:function(){this.updateActiveSlide(),this.attachEventListeners()}},{key:"attachEventListeners",value:function(){var t=this;this.arrowPrev.addEventListener("click",(function(){t.moveToSlide(t.currentSlideIndex-1<0?t.elements.length-1:t.currentSlideIndex-1)})),this.arrowNext.addEventListener("click",(function(){t.moveToSlide((t.currentSlideIndex+1)%t.elements.length)})),this.navLinks.forEach((function(e){e.addEventListener("click",(function(r){r.preventDefault();var n=parseInt(e.dataset.index,10);t.moveToSlide(n)}))})),document.addEventListener("keydown",(function(e){"ArrowLeft"===e.key?t.moveToSlide(t.currentSlideIndex-1<0?t.elements.length-1:t.currentSlideIndex-1):"ArrowRight"===e.key&&t.moveToSlide((t.currentSlideIndex+1)%t.elements.length)}))}},{key:"moveToSlide",value:function(t){this.currentSlideIndex=t,this.updateActiveSlide()}},{key:"updateActiveSlide",value:function(){var t=this;this.navLinks.forEach((function(e,r){e.style.backgroundColor=r===t.currentSlideIndex?"green":"gray"}));var e=this.slidesWrapper.querySelector(".slide").offsetWidth;this.slidesWrapper.scrollTo({left:this.currentSlideIndex*e,behavior:"smooth"})}},{key:"render",value:function(t){if(!t)return this.slider;document.querySelector(t).appendChild(this.slider)}}],e&&ue(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e}();function pe(t){return pe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},pe(t)}function fe(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,ye(n.key),n)}}function ye(t){var e=function(t){if("object"!=pe(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=pe(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==pe(e)?e:e+""}function me(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(me=function(){return!!t})()}function ve(t){return ve=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},ve(t)}function be(t,e){return be=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},be(t,e)}var ge=function(t){function e(t){var r;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(r=function(t,e,r){return e=ve(e),function(t,e){if(e&&("object"==pe(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,me()?Reflect.construct(e,r||[],ve(t).constructor):e.apply(t,r))}(this,e)).url=t,r.res=null,r.setup(),r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&be(t,e)}(e,t),r=e,(n=[{key:"setup",value:function(){this.res=document.createElement("audio"),this.res.setAttribute("src",this.url),this.res.setAttribute("controls","controls")}},{key:"set",value:function(t){return this.options=t,t.background&&this.background(t.background),this}},{key:"background",value:function(t){var e=document.createElement("style");return e.type="text/css",e.textContent="\n\taudio::-webkit-media-controls-panel {\n\t\tbackground-color: ".concat(t,";\n\t}\n"),document.head.appendChild(e),this}},{key:"toCode",value:function(){return JSON.stringify(this.options,null,4),['new Audio("'.concat(this.url,'")')]}},{key:"size",value:function(t){return this.res.style.width=t,this}},{key:"render",value:function(t){if(!t)return this.res;document.querySelector(t).appendChild(this.res)}}])&&fe(r.prototype,n),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n}(n.y);function we(t){return we="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},we(t)}function ke(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,xe(n.key),n)}}function xe(t){var e=function(t){if("object"!=we(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=we(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==we(e)?e:e+""}function Se(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Se=function(){return!!t})()}function Oe(t){return Oe=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Oe(t)}function Ce(t,e){return Ce=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Ce(t,e)}var je=function(t){function e(t){var r;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(r=function(t,e,r){return e=Oe(e),function(t,e){if(e&&("object"==we(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,Se()?Reflect.construct(e,r||[],Oe(t).constructor):e.apply(t,r))}(this,e)).url=t,r.res=null,r.setup(),r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Ce(t,e)}(e,t),r=e,(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(t){return this.options=t,t.radius&&(this.res.style.borderRadius="1rem"),t.width&&(this.res.style.width="".concat(t.width)),t.opacity&&(this.res.style.opacity=t.opacity),this}},{key:"size",value:function(t){return this.res.style.width=t,this}},{key:"toCode",value:function(){var t=JSON.stringify(this.options,null,4);return['new Video("'.concat(this.url,'").set(').concat(t,")")]}},{key:"render",value:function(t){if(!t)return this.res;document.querySelector(t).appendChild(this.res)}}])&&ke(r.prototype,n),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n}(n.y);function Ee(t){return Ee="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ee(t)}function _e(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function Te(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Pe(n.key),n)}}function Pe(t){var e=function(t){if("object"!=Ee(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=Ee(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==Ee(e)?e:e+""}function Ae(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Ae=function(){return!!t})()}function Re(t){return Re=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Re(t)}function Le(t,e){return Le=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Le(t,e)}var Ie=function(t){function e(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(t=function(t,e,r){return e=Re(e),function(t,e){if(e&&("object"==Ee(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,Ae()?Reflect.construct(e,r||[],Re(t).constructor):e.apply(t,r))}(this,e)).res=document.createElement("div"),t.res.style.display="grid",t.attributes={},t}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Le(t,e)}(e,t),r=e,n=[{key:"set",value:function(t){return this.options=t,this.attributes=t,this.templateCols=t.templateCols,t.templateCols&&(this.res.style.gridTemplateColumns="repeat(".concat(t.templateCols.cols,", 1fr)"),this.res.style.gridTemplateRows="repeat(".concat(t.templateCols.cols,", 1fr)")),this.res.style.height=t.height?t.height:"600px",t.positions&&(this.storedPositions=t.positions),this}},{key:"generateGridPositions",value:function(t){var e=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=t.map((function(t,e){return{row:Math.floor(r/2)+e,col:Math.floor(n/2)+e}}));return t.forEach((function(i,s){var a=o[s],l=a.row,c=a.col,u=function(e){var r=0,n=0;return t.forEach((function(t,i){var s=t.weight,a=t.direction,l=o[e],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(e.items.map((function(t){return t.id}))),console.log(i.attract.slice(1));var p=e.items.filter((function(t){return t.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",e.res.appendChild(p)})),console.log("ARAO"),console.log(this.res.children.length),this}},{key:"add",value:function(t){this.items=t;var e,r=function(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(t){if("string"==typeof t)return _e(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?_e(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,i=function(){};return{s:i,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},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(t)},n:function(){var t=r.next();return s=t.done,t},e:function(t){a=!0,o=t},f:function(){try{s||null==r.return||r.return()}finally{if(a)throw o}}}}(t);try{for(r.s();!(e=r.n()).done;){var n=e.value;this.res.appendChild(n.render())}}catch(t){r.e(t)}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 t=JSON.stringify(this.options,null,4).replace(/"([^"]+)":/g,"$1:"),e="";return e+=".add([\n",e+=this.items.map((function(t){return t.toCode().join("").trim()})).join(",\n"),e+="\n])",["new Free().set(".concat(t,")").concat(e)]}},{key:"render",value:function(t){if(console.log("CHILDREN IN RENDER"),console.log(this.res.children.length),!t)return this.res;document.querySelector(t).appendChild(this.res)}}],n&&Te(r.prototype,n),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n}(n.y),Me=r(342);function ze(t){return ze="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ze(t)}function Be(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,We(n.key),n)}}function We(t){var e=function(t){if("object"!=ze(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=ze(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==ze(e)?e:e+""}var Ne=function(){return t=function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.res=null,this.st=e},(e=[{key:"setup",value:function(){var t=document.createElement("div");return t.style.display="grid",this.res=t,this.st&&this.sticky(),this}},{key:"set",value:function(t){return this.setup(),t.height&&(this.res.style.height=t.height),t.sticky&&this.sticky(),this}},{key:"sticky",value:function(){return this.res.style.position="sticky",this.res.style.top=0,this}},{key:"add",value:function(t){this.children=t;for(var e=0;e<t.length;e++){var r=t[e].render();r.style.gridColumn=1,r.style.gridRow=1,this.res.appendChild(r)}return this}},{key:"toCode",value:function(){var t="new Stack().set({})";if(this.children.length>0){var e=this.children.map((function(t){return t.toCode()})).join(",\n");t+=".add([\n \n ".concat(e," \n \n])")}return[t]}},{key:"render",value:function(t){if(!t)return this.res;document.querySelector("body").style.margin=0,document.querySelector("body").style.padding=0,document.querySelector(t).appendChild(this.res)}}])&&Be(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e}();function De(t){return De="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},De(t)}function Fe(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,qe(n.key),n)}}function qe(t){var e=function(t){if("object"!=De(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=De(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==De(e)?e:e+""}var He=function(){return t=function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)},e=[{key:"style",value:function(t){for(var e=t.bst,r=t.el,n=t.re,i=(t.options,[]),o=0;o<e.length;o++)e[o].target&&(r.id,e[o].target[0]);for(o=0;o<e.length;o++){var s=!0;e[o].target&&(s=!1,r.id===e[o].target[0]&&(s=!0));var a=e[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&&Fe(t.prototype,null),e&&Fe(t,e),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e}();function Ue(t){return Ue="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ue(t)}function Je(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,$e(n.key),n)}}function $e(t){var e=function(t){if("object"!=Ue(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=Ue(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==Ue(e)?e:e+""}var Ye=function(){return t=function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)},e=[{key:"cards",value:function(t,e,r){console.log("PP"),console.log(r);for(var n=[],i=0;i<t.children.length;i++){var o=t.children[i];"text"===o&&this.insertTextToCard(n,e,t,r),"image"!==o||t.backgroundCard||n.push('\n new Image("https://upload.wikimedia.org/wikipedia/commons/3/3a/Starship_S20.jpg").set({})'),"link"===o&&(e.op?n.push("\n ".concat(r.tabSpace(6)," ").concat(r.link[e.op.theme.toLowerCase()].code)):n.push("\n ".concat(r.tabSpace(6)," ").concat(r.link.base.code)))}return n}},{key:"insertTextToCard",value:function(t,e,r,n){if(e.op)if(e.op.ops&&e.op.ops.includes("text-blast")){var i="\n ".concat(n.tabSpace(6)," ").concat(n.text[e.op.theme.toLowerCase()].code),o=n.ops[e.op.theme.toLowerCase()].blast.code;r.backgroundCard||(o=n.ops[e.op.theme.toLowerCase()].blastFun(1));var s=this.insertTextBetween(i,o);t.push(s)}else t.push("\n ".concat(n.tabSpace(6)," ").concat(n.text[e.op.theme.toLowerCase()].code));else t.push("\n ".concat(n.tabSpace(6)," ").concat(n.text.base.code))}},{key:"insertTextBetween",value:function(t,e){var r=t.match(/(color: ".+?",)(.+?)(id: ".+?")/);if(r){var n=r.index+r[0].length,i=t.slice(0,n)+", "+e+", "+t.slice(n);return console.log("RETA"),console.log(i),i}return t}}],null&&Je(t.prototype,null),e&&Je(t,e),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e}();function Ge(t){return Ge="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ge(t)}function Qe(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Xe(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Qe(Object(r),!0).forEach((function(e){Ve(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Qe(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Ve(t,e,r){return(e=Ze(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Ke(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Ze(n.key),n)}}function Ze(t){var e=function(t){if("object"!=Ge(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=Ge(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==Ge(e)?e:e+""}var tr=function(){return t=function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)},e=[{key:"mapType",value:function(t){return["h1","h2","h3","h4","h5","h6"].includes(t.el.type)?this.mapText(t):"img"===t.el.type?this.mapImage(t):"a"===t.el.type?this.mapLink(t):"cards"===t.el.type?this.mapGrid(t):"free"===t.el.type?this.mapFree(t):"nav"===t.el.type?this.protoNav(t):"sideNav"===t.el.type?this.sideNav(t):"dropdown"===t.el.type?this.dropdown(t):"modal"===t.el.type?this.modal(t):"slider"===t.el.type?this.slider(t):"table"===t.el.type?this.table(t):"radio"===t.el.type?this.radio(t):"input"===t.el.type?this.input(t):"labelInput"===t.el.type?this.floatInput(t):"filePicker"===t.el.type?this.filePicker(t):"picker"===t.el.type?this.picker(t):"video"===t.el.type?this.video(t):"audio"===t.el.type?this.audio(t):"multiswitcher"===t.el.type?this.multiswitcher(t):"button"===t.el.type?this.button(t):"form"===t.el.type?this.form(t):"checkbox"===t.el.type?this.checkbox(t):"stack"===t.el.type?this.stack(t):"simple"===t.el.type?this.simple(t):void 0}},{key:"button",value:function(){return new le("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 at).set({breakpoints:[{at:"0px",view:new m("First").set({})},{at:"700px",view:new m("Nice").set({})},{at:"800px",view:new m("Best").set({})}]})}},{key:"video",value:function(){return new je("https://www.w3schools.com/html/mov_bbb.mp4").set({})}},{key:"audio",value:function(){return new ge("rouska.mp3").set({background:"#1abc9c"})}},{key:"radio",value:function(t){return(new Ft.z).set({items:["Male","Female","Third shit"],multiple:!0})}},{key:"input",value:function(t){return(new TextField).set({type:"text",placeholder:"Enter swimming time",arrayMargin:{sides:["all"],value:"1rem"}})}},{key:"floatInput",value:function(t){return(new Dt.l).set({title:"Your name",type:"input"})}},{key:"filePicker",value:function(t){return(new Qt).set({id:"A",title:"Add profile picture",background:"#3498DB",color:"white",font:"Arial",radius:"3rem",accept:"application/pdf"})}},{key:"picker",value:function(t){return(new qt.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(t){}},{key:"slider",value:function(t){var e=[(new jt).set({}).add([new m("One").set({fluidc:"S1",color:"#1abc9c",font:"Arial"}),new m("First time").set({font:"Arial"})]),new m("Two").set({fluidc:"S1",color:"#1abc9c",font:"Arial"}),new m("Three").set({fluidc:"S1",color:"#1abc9c",font:"Arial"}),new m("Four").set({fluidc:"S1",color:"#1abc9c",font:"Arial"})];return new he(e,null)}},{key:"dropdown",value:function(t){t.el.items||(t.el.items=["Flower","Car","Maseratti"]);var e=t.el.items.map((function(t){return(new M).set({pad:[{a:10}],font:"Arial",bold:!0,link:"https://www.apple.com",text:t,icon:{padding:30,url:"https://cdn-icons-png.flaticon.com/512/32/32339.png"},hover:{color:"wheat",animation:.3}})}));return(new mt).set({behaviour:"mouseover",pad:[{a:"1rem"}],mar:[{a:"1rem"}],border:"1px solid black",width:"180px",radius:"1rem"}).add([new m(t.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 jt).set({border:"1px solid green",background:"#1abc9c",radius:"0.7rem",socenter:!0}).add(e.slice(1))])}},{key:"protoNav",value:function(t){t.customOptions;var e=[{title:"Fire",link:"@e"},{title:"and",link:"@e"},{title:"smoke",link:"@e"}],r=e.map((function(t,e){return new M('"'.concat(t.title,'"')).set({fluidc:"S6",text:t.title,link:t.link,font:"Arial",pad:[{a:40}],bold:!0,hover:{color:"wheat",animation:.3}})})),n=e.map((function(t,e){return new M('"'.concat(t.title,'"')).set({fluidc:"S6",text:t.title,link:t.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*e,"%)"),opacity:0},{transform:"translate(0%)",opacity:1}],keyframesClose:[{transform:"translate(0%)",opacity:1},{transform:"translate(100%, ".concat(10*e,"%)"),opacity:0}],openOptions:{duration:300,fill:"forwards",delay:1e3},closeOptions:{duration:1,fill:"forwards",delay:1e3}}}})}));if(t.el.dropdown){var i=(new mt).set({behaviour:"mouseover",pad:[{a:40}],padding:"10px",border:"1px solid black"}).add([new m("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 jt).set({socenter:!0,radius:"0.7rem",background:"#1abc9c",makeResponsiveBehaviour:"undefined"}).add([(new M).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 M).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"}})])]);n.push(i),r.push(i)}return t.el.animation,(new at).set({breakpoints:[{at:"0px",view:(new V).set({background:"green",mar:[{a:21}],brand:new m("A").set({size:"S1"}),hamburgerColour:"#3498db",radius:"1rem"}).add([new M("A").set({text:"A",url:"#a"}),(new mt).set({behaviour:"mouseover",pad:[{a:40}],mar:[{lr:"auto"}],breakpoint:"1200px",padding:"10px",border:"1px solid black",height:"auto"}).add([new m("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 m("Firsti").set({cursor:"hand",fluidc:"S6",pad:[{l:10,r:10}],font:"Arial",align:"center",weight:"bold"}),new m("Firstiuu").set({cursor:"hand",fluidc:"S6",pad:[{l:10,r:10}],font:"Arial",align:"center",weight:"bold"})]),new M("B").set({text:"B",url:"#b"}),new M("C").set({text:"C",url:"https://www.abcnews.com"})])},{at:"1200px",view:(new H).set({background:"green",mar:[{a:21}],maxHeight:"100px",radius:"1rem"}).add([new m("A").set({size:"S1"}),new Nt(!0),(new mt).set({behaviour:"mouseover",pad:[{a:40}],padding:"10px",border:"1px solid black",radius:"30px",width:"130px"}).add([new m("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 jt).set({flexDir:"column",background:"orange",mar:[{t:"10px"}],radius:".3rem"}).add([new M("").set({text:"A",url:"jk",cursor:"hand",fluidc:"S6",pad:[{l:10,r:10}],font:"Arial",align:"center",weight:"bold"}),new M("").set({text:"Kivi new TV",url:"#u",cursor:"hand",fluidc:"S6",pad:[{l:10,r:10}],font:"Arial",align:"center",weight:"bold"}),new M("").set({text:"Thanks GPT",url:"#u",cursor:"hand",fluidc:"S6",pad:[{l:10,r:10}],font:"Arial",align:"center",weight:"bold"})])]),new M("Desktop bar").set({text:"Desktop bar",url:"#a"}),new M("B").set({text:"B",url:"#a"}),new M("C").set({text:"C",url:"#a"})])}]})}},{key:"sideNav",value:function(t){t.customOptions;var e=[{title:"Home",link:"@e"},{title:"Projects",link:"@e"},{title:"Services",link:"@e"}],r=e.map((function(t,e){return new M('"'.concat(t.title,'"')).set({fluidc:"S4",text:t.title,link:t.link,isNavA:!0,url:"#e",id:"#"+t.title.toLowerCase(),font:"Arial",pad:[{a:20}],bold:!0,align:"left"})})),n=(new mt).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 m("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 jt).set({socenter:!0,radius:"0.7rem",background:"#1abc9c",makeResponsiveBehaviour:"undefined"}).add([(new M).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 M).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=e.map((function(t,e){return new M('"'.concat(t.title,'"')).set({fluidc:"S4",text:t.title,link:t.link,isNavA:!0,url:"#e",id:"#"+t.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*e,"%)"),opacity:0},{transform:"translate(0%)",opacity:1}],keyframesClose:[{transform:"translate(0%)",opacity:1},{transform:"translate(100%, ".concat(10*e,"%)"),opacity:0}],openOptions:{duration:300,fill:"forwards",delay:1e3},closeOptions:{duration:1,fill:"forwards",delay:1e3}}}})}));t.el.dropdown&&(i.push(n),r.push(n));var o=(new jt).set({column:!0}).add([new m("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}]}),t.el.animation?i[0]:r[0],t.el.animation?i[1]:r[1],t.el.animation?i[2]:r[2],t.el.animation&&t.el.dropdown?i[3]:new m("").set({}).excludeFromCode(),new m("Paramount, 2024").set({pad:[{a:20}],animation:{range:["0px","1900px"],op:{name:"animation",color:"green",width:"1px"}}})]),s=(new jt).set({column:!0}).add([new m("Off canvas").set({fluidc:"S6",font:"Arial",id:"#olod",italic:!0,animation:t.el.animation?{range:["0px","1900px"],op:{name:"animation",color:"green",width:"1px"}}:null,pad:[{l:40},{t:20}]})]);return(new Mt).setup({animate:!0,radius:"1rem",isSide:!0,background:"#ecf0f1",hamColour:{opened:"#1abc9c",closed:"#e67e22"},mobileSize:"1.2em"}).items(t.el.offcanvas?s:o)}},{key:"mapFree",value:function(t){var e=t.customOptions.filter((function(t){return"slayout"===t.op.name||"layout"===t.op.name}))[0],r=null,n={cols:6,rows:6};return"text-above-image"!==e.op.value&&"image-above-text"!==e.op.value||(r=null,n=null),"image-overlay-text"===e.op.value&&(r={text:{row:"1 / span 2",col:"3 / span 2"},image:{row:"2 / span 3",col:"3 / 3"}}),"image-leftof-text"===e.op.value&&(r={text:{row:"1",col:"1 / 3"},image:{row:"1",col:"3 / 4"}}),(new Ie).set({id:"#3",templateCols:n,height:"600px"}).add([new m("I am free").set({border:"3px solid green",font:"Arial",fluidc:"S1",color:"#1abc9c",gpos:null!=r?r.text:null,zIndex:1}),new j("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(t){var e,r=t.el;return new m(r.text||r.value).set({id:r.id,class:r.class,color:r.color,fluidc:this.getElType(r.type),font:null!==(e=r.font)&&void 0!==e?e:"Arial",stroke:this.filtero("blast",r.id,t.customOptions),gradient:this.filtero("gradient",r.id,t.customOptions),animation:this.filtero("animation",r.id,t.customOptions),shadow:this.filtero("shadow",r.id,t.customOptions),span:this.filtero("span",r.id,t.customOptions),backgroundOp:this.filtero("background",r.id,t.customOptions),marginOp:this.filtero("margin",r.id,t.customOptions),transform:this.filtero("transform",r.id,t.customOptions)})}},{key:"mapImage",value:function(t){var e=t.el;return new j(e.url).set(Xe(Xe({},e),{},{isFull:e.isFull,animation:this.filtero("animation",e.id,t.customOptions),shadow:this.filtero("shadow",e.id,t.customOptions),marginOp:this.filtero("margin",e.id,t.customOptions),filtera:this.filtero("filter",e.id,t.customOptions)}))}},{key:"mapLink",value:function(t){var e=t.customOptions.filter((function(t){return"link-style"===t.op.name})),r=t.el;return t.el.id&&(r.id=t.el.id),t.el.link&&t.el.text&&(r.url=t.el.link,r.text=t.el.text),r.keySet={key:"background",value:"shadow: 3px 3px solid green"},r.animation=this.filtero("animation",t.el.id,t.customOptions),r.class=t.el.class,r.width=t.el.width,r.font="Arial",r.fluidc=t.el.fluidc,r.index=t.i+"",r.shadow=this.filtero("shadow",t.el.id,t.customOptions),r.backgroundOp=this.filtero("background",t.el.id,t.customOptions),r.pad=[{a:10}],e.length>0?He.style({el:t.el,re:r,bst:e,options:t.customOptions})[e.length-1]:(new M).set(r)}},{key:"mapGrid",value:function(t){var e;console.log("OBJ IS"),console.log(t.storage);var r=[],n=null!==(e=t.customOptions.filter((function(t){return"card-style"===t.op.name}))[0])&&void 0!==e?e:{};r=Ye.cards(t.el,n,t.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 ])");t.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(t){if(t.customOptions,rta){var e=el;e.makeResponsiveBehaviour=rta.op.hash[0].l,e.index=i;var r={width:"200px",height:"100px"};if(ela=(new jt).set(e),rta.op.hash[0].child){r.makeResponsiveBehaviour=rta.op.hash[0].child.l;var n=(new jt).set(r).add([new m("Hello")]);ela=(new jt).set(e).add([n])}}}},{key:"checkbox",value:function(t){return(new Me.S).set({name:"acceptTerms",label:new m("Check it out!").set({size:"S6",color:"#1abc9c",font:"Arial"}),mar:"10px"})}},{key:"stack",value:function(t){return(new Ne).set({}).add([(new j).set({url:"https://pbs.twimg.com/media/DwYvbCBVAAEKY_R.jpg"}),new m("Samuel Suresh").set({color:"#00ae56",font:"SF Pro Display",fluidc:"S2",pad:{sides:["top","left"],value:20}})])}},{key:"form",value:function(t){return(new ee).set({action:"file.php"}).add([(new Dt.l).set({title:"Your name",type:"input",name:"name"}),(new Dt.l).set({title:"Your email",type:"input",name:"email",color:"#3498db",font:"Arial",mar:[{a:"1rem"}]}),(new Ft.z).set({name:"gender",items:["Male","Female","Third shit"],multiple:!1,tint:"#1abc9c",font:"Arial",exact:"3rem"}),(new qt.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 Qt).set({id:"A",name:"image",title:"Add profile picture",background:"#3498DB",color:"white",font:"Arial",radius:"3rem"}),new le("Submit form").set({type:"submit",background:"#3498db",color:"white",weight:"bold",radius:"1rem",pad:[{a:"1rem"}],mar:[{b:"1rem"}]})])}},{key:"simple",value:function(t){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(t){return"S".concat(t.substr(1))}},{key:"filtero",value:function(t,e,r){return r.filter((function(e){return e.op.name===t})).filter((function(t){return!t.target||t.target.includes(e)}))[0]}}],null&&Ke(t.prototype,null),e&&Ke(t,e),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e}()},751:(t,e,r)=>{function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}function i(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,o(n.key),n)}}function o(t){var e=function(t){if("object"!=n(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=n(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==n(e)?e:e+""}var s=function(){return t=function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.el=null,this.minLabel=null,this.maxLabel=null,this.currentLabel=null},(e=[{key:"padding",value:function(t){return this.el.style.padding=t,this}},{key:"toCode",value:function(){var t=JSON.stringify(this.options,null,4);return["new Range().set(".concat(t,")")]}},{key:"set",value:function(t){var e,r,n=this;this.options=t;var i=document.createElement("input");if(i.setAttribute("id","slider"),i.setAttribute("type","range"),i.setAttribute("min",t.min),i.setAttribute("max",t.max),i.setAttribute("value",t.min),i.style.width=null!==(e=t.width)&&void 0!==e?e:"100%",!t.plain){var o,s;i.style.setProperty("-webkit-appearance","none"),i.style.appearance="none",i.style.height="9px",i.style.background=null!==(o=t.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=t.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=t.width)&&void 0!==r?r:"100%",this.minLabel=document.createElement("span"),this.minLabel.textContent=t.min,this.maxLabel=document.createElement("span"),this.maxLabel.textContent=t.max,this.currentLabel=document.createElement("span"),this.currentLabel.textContent=i.value,t.font&&(this.currentLabel.style.fontFamily=t.font),t.font&&(this.minLabel.style.fontFamily=t.font),t.font&&(this.maxLabel.style.fontFamily=t.font),t.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(t.plain)i.style.width="80%";else{var d,h;i.style.height="20px",i.style.background=null!==(d=t.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=t.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(t){if(!t)return this.el;document.querySelector(t).appendChild(this.el)}}])&&i(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e}();window.Range=s},762:(t,e,r)=>{function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}function i(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,i,o,s,a=[],l=!0,c=!1;try{if(o=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=o.call(r)).done)&&(a.push(n.value),a.length!==e);l=!0);}catch(t){c=!0,i=t}finally{try{if(!l&&null!=r.return&&(s=r.return(),Object(s)!==s))return}finally{if(c)throw i}}return a}}(t,e)||s(t,e)||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(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=s(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,i=function(){};return{s:i,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},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(t)},n:function(){var t=r.next();return a=t.done,t},e:function(t){l=!0,o=t},f:function(){try{a||null==r.return||r.return()}finally{if(l)throw o}}}}function s(t,e){if(t){if("string"==typeof t)return a(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?a(t,e):void 0}}function a(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function l(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,c(n.key),n)}}function c(t){var e=function(t){if("object"!=n(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=n(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==n(e)?e:e+""}r.d(e,{y:()=>u});var u=function(){return t=function t(){var e,r,n,i=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),e=this,n=function(t){if(t.transform||t.op&&t.op.transform){var e=t.transform;t.transform||(e=t.op.transform),e.duration||(e.duration="3s-ease-in-out"),i.setDefault=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"0px";return 0===t.length?e+" ":t};var r=function(){var r="",n="",o="",s="",a="",l="",c="",u="",d="";if(0!==e.values.length){e.values.forEach((function(t){t.startsWith("tx:")&&(r=t.replace("tx:","")),t.startsWith("ty:")&&(n=t.replace("ty:","")),t.startsWith("tz:")?o=t.replace("tz:",""):t.startsWith("scale(")?s=t:t.startsWith("skew(")?a=t:t.startsWith("rotate(")?l=function(t){var e=t.match(/rotate\(([^)]+)\)/);if(!e)return t;var r=e[1].split(",").map((function(t){return t.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],")"):t}(t):t.startsWith("perspective(")?c=t:t.startsWith("matrix(")?u=t:t.startsWith("opacity:")&&(d=t.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(t.op.transform.duration){var p=t.op.transform.duration.replace(/^(\d+)(s)-/,(function(t,e,r){return e/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}}};e.on?i.res.addEventListener(e.on,(function(){e.delay?setTimeout((function(){r()}),e.delay):r()})):window.addEventListener("load",(function(){e.delay?setTimeout((function(){r()}),e.delay):r()}));var n=function(){var t="";e.values.forEach((function(e){e.startsWith("tx:")?t+="translateX(0) ":e.startsWith("ty:")?t+="translateY(0) ":e.startsWith("tz:")?t+="translateZ(0) ":e.startsWith("scale(")?t+="scale(1) ":e.startsWith("skew(")?t+="skew(0, 0) ":e.startsWith("rotate(")?t+="rotate(0) ":e.startsWith("perspective(")?t+="perspective(0) ":e.startsWith("matrix(")&&(t+="matrix(1, 0, 0, 1, 0, 0) "),i.res.style.opacity="1"})),t&&(i.res.style.transform=t.trim())};if(e.on)i.res.addEventListener("mouseout",(function(){e.keep||n()}));else{var o=1e3*parseFloat(e.duration),s=e.closeAfter?e.closeAfter:0;setTimeout((function(){e.keep||n()}),o/2+s)}}},(r=c(r="reactOnTransform"))in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,this.state={isExpanded:!1,isMovedUp:!1,isMovedDown:!1}},(e=[{key:"keySet",value:function(t){return this.temporaryVal=1,this.res.style[t.key]=t.value,this}},{key:"onScroll",value:function(t){var e=this;"opacity"===t.value?this.res.style.opacity=t.valMin:"scale"===t.value&&(this.res.style.transform="scale(".concat(t.valMax,")")),window.addEventListener("scroll",(function(){var r=e.smartRange(window.scrollY,{min:t.from,max:t.to},{min:t.valMin,max:t.valMax});"opacity"===t.value?e.res.style.opacity=r:"scale"===t.value&&(e.res.style.transform="scale(".concat(r,")"))}))}},{key:"setAny",value:function(t){this[Object.keys(t)[0]]=[Object.values(t)[0]]}},{key:"setID",value:function(t){this.id=t}},{key:"setPrevText",value:function(t){this.prevText=t}},{key:"getCSS",value:function(){return this.css}},{key:"getPX",value:function(t){return{xs:"0px",sm:"576px",md:"768px",lg:"992px",xl:"1200px",xxl:"1400px",mxxl:"1800px"}[t]||"Invalid breakpoint"}},{key:"respad",value:function(t){var e=this,r=function(){e.pad(t[0].values);for(var r=0;r<t.length;r++){var n=t[r].breakpoint;window.matchMedia("(min-width: ".concat(e.getPX(n))).matches&&e.pad(t[r].values)}};window.addEventListener("resize",r),r()}},{key:"resmar",value:function(t){var e=this,r=function(){e.mar(t[0].values);for(var r=0;r<t.length;r++){var n=t[r].breakpoint;window.matchMedia("(max-width: ".concat(e.getPX(n))).matches&&e.mar(t[r].values)}};window.addEventListener("resize",r),r()}},{key:"resprop",value:function(t){var e=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(){e.res.style.background=e.prevBackground,e.res.style.width=e.prevWidth,e.res.style.height=e.prevHeight,e.res.style.border=e.prevBorder;for(var r=0;r<t.length;r++){var n=t[r].breakpoint;if(window.matchMedia("(max-width: ".concat(e.getPX(n))).matches){var i={};for(var o in t[r])"breakpoint"!==o&&(i[o]=t[r][o]);e.set(i)}}};window.addEventListener("resize",r),r()}},{key:"isNumber",value:function(t){return"number"==typeof t&&!isNaN(t)}},{key:"pad",value:function(t){for(var e=0;e<t.length;e++)for(var r=Object.keys(t[e]),n=0;n<r.length;n++)for(var i=r[n],o=t[e][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(t){return this.res.style.alignSelf=t,this}},{key:"mar",value:function(t){for(var e=0;e<t.length;e++)for(var r=Object.keys(t[e]),n=0;n<r.length;n++)for(var i=r[n],o=t[e][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(t,e,r){t<e.min&&(t=e.min),t>e.max&&(t=e.max);var n=(t-e.min)/(e.max-e.min);e.min>e.max&&(n=(t-e.max)/(e.min-e.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(t){return this.res.style.gridColumn=t.col,this.res.style.gridRow=t.row,this}},{key:"fluidCopy",value:function(t){if(t instanceof Object){this.prevStylex=this.res.style,this.res=document.createElement("h1"),this.res.style.cssText=this.prevStylex.cssText;var e=document.createTextNode(this.text);return this.res.appendChild(e),this.res.style.fontSize=t.exact,this}if("S1"===t){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"===t){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"===t){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"===t){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"===t){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"===t&&(this.res.style.fontSize="calc(1rem + 0.5vw)"),this}},{key:"setIndex",value:function(t){this.index=t}},{key:"borderObj",value:function(t){var e,r=null!==(e=t.type)&&void 0!==e?e:"solid";return this.res.style.border="".concat(t.width," ").concat(r," ").concat(t.color),this.res.style.borderRadius=t.radius,this}},{key:"protoReact",value:function(t,e){var r=this;t.sort((function(t,e){return parseInt(t.range[0])-parseInt(e.range[0])}));var n=function(){var n=window.innerWidth,s="";r.storedQueries=t.map((function(t){return t.target})).filter((function(t){return null!=t}));var a,l=o(t);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]===e&&(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(t){l.e(t)}finally{l.f()}r.res.style.margin="";var v,b=r.res.style.color;for(t.map((function(t){return t.log})).filter((function(t){return null!=t})).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<t.length;m++){var g=t[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<t.length;m++){var w=t[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(t){return"span"===t.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 S=r.options.filtera.op.filter;r.res.style.filter=S,r.res.style.border="8px solid orange"}};window.addEventListener("resize",n),n()}},{key:"setPref",value:function(t){this.preffersId=t}},{key:"setClass",value:function(t){this.class=t}},{key:"betaReact",value:function(t,e){var r=this;this.ap=!1,this.cta=0,this.once=!1,t.sort((function(t,e){return parseInt(t.range[0])-parseInt(e.range[0])}));var n=function(){var n=window.innerWidth,s="";r.resCopy=r.res,r.storedQueries=t.map((function(t){return t.target})).filter((function(t){return null!=t}));var a,l=o(t);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]===e&&(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(t){l.e(t)}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<t.length;m++)if(t[m].op){var v=t[m].op.offsets;v&&void 0!==r.index&&(r.res.style.margin=v[Number(r.index)]+"px")}if("blastbackgroundmargin"===s){for(m=0;m<t.length;m++)if(t[m].op){var b=t[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<t.length;m++)if(t[m].op){var g=t[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<t.length;m++)if(t[m].op){var w=t[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(t,e,r,n){return this.css=[""],[""]}},{key:"chainReact",value:function(t,e,r){var n=this;this.cssGen(t,e,this.class,void 0!==this.class),this.ap=!1,this.cta=0,this.once=!1;var s,a=o(t);try{for(a.s();!(s=a.n()).done;){var l=s.value;l.range||(l.range=["0px","999999px"])}}catch(t){a.e(t)}finally{a.f()}t.sort((function(t,e){return parseInt(t.range[0])-parseInt(e.range[0])}));var c=function(){var s=window.visualViewport.width,a=[],l=[];n.resCopy=n.res,n.storedQueries=t.map((function(t){return t.target})).filter((function(t){return null!=t}));var c,u=o(t);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]===e&&(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(t){u.e(t)}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(t){return"blast"===t.log}))[0].op.color,k=null!==(g=l.filter((function(t){return"blast"===t.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(t){return"filter"===t.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="",O=0;for(b=0;b<n.options.shadow.op.steps;b++)S+="drop-shadow(".concat(O+=3,"px ").concat(O,"px ").concat(O,"px gray) ");n.res.style.filter=S}if(a.includes("margin"))for(b=0;b<t.length;b++)if(t[b].op){var C=t[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 j=n.options.animation.op;n.res.animate(j.keyframesClose,{duration:0,fill:"forwards"}),n.res.animate(j.keyframesOpen,j.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 _=function(){window.scrollY>parseFloat(E.fireAt)&&(n.res.animate(E.keyframesOpen,E.openOptions),window.removeEventListener("scroll",_))};window.addEventListener("scroll",_)}if(n.options.animation&&n.options.animation.op.fireAt&&"inview"===n.options.animation.op.fireAt){var T=n.options.animation.op;n.res.animate(T.keyframesClose,{duration:0,fill:"forwards"}),new IntersectionObserver((function(t,e){t.forEach((function(t){t.isIntersecting&&(n.res.animate(T.keyframesOpen,T.openOptions),e.disconnect())}))})).observe(n.res)}}};window.addEventListener("resize",c),c()}},{key:"maxWidth",value:function(t){return this.res.style.maxWidth=t,this}},{key:"removeQuotesFromFirstWord",value:function(t){return t.replace(/"([^"]+)":/g,"$1:")}},{key:"arrayMargin",value:function(t,e){return t.includes("left")&&(this.res.style.marginLeft=e),t.includes("right")&&(this.res.style.marginRight=e),t.includes("top")&&(this.res.style.marginTop=e),t.includes("bottom")&&(this.res.style.marginBottom=e),t.includes("all")&&(this.res.style.margin=e),e||(this.res.style.marginBottom=t),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(t,e){return this.res.style.visibility="hidden",this.faden(t,e,"scroll"),this}},{key:"expand",value:function(t){var e=this;return!1===this.state.isExpanded?"click"===t.on?this.res.addEventListener("click",(function(){e.innerExpand(t)})):this.innerExpand(t):this.innerExpandBack(t),this.state.isExpanded=!this.state.isExpanded,this}},{key:"move",value:function(t){var e=this;return"click"===t.on?this.res.addEventListener("click",(function(){e.moveUpa(t)})):("up"===t.direction&&this.moveUpa(t),"down"===t.direction&&this.moveDowna(t),this.state.isMovedUp=!this.state.isMovedUp,"left"===t.direction&&this.moveLeft(t)),this}},{key:"moveLeft",value:function(t){return this.res.animate([{transform:"translateX(0px)"},{transform:"translateX(-".concat(t.distance,")")}],{duration:900,iterations:t.iterations,fill:"both"}).play(),this}},{key:"moveUpa",value:function(t){return!1===this.state.isMovedUp?this.res.animate([{transform:"translateX(0px)"},{transform:"translateY(-".concat(t.distance,")")}],{duration:900,iterations:t.iterations,fill:"both"}).play():this.res.animate([{transform:"translateX(0px)"},{transform:"translateY(".concat(t.distance,")")}],{duration:900,iterations:t.iterations,fill:"both"}).play(),this}},{key:"moveDowna",value:function(t){return!1===this.state.isMovedDown?this.res.animate([{transform:"translateX(0px)"},{transform:"translateY(".concat(t.distance,")")}],{duration:900,iterations:t.iterations,fill:"both"}).play():this.res.animate([{transform:"translateX(0px)"},{transform:"translateY(-".concat(t.distance,")")}],{duration:900,iterations:t.iterations,fill:"both"}).play(),this}},{key:"moveUpaBack",value:function(t){return this.res.animate([{transform:"translateX(0px)"}],{duration:900,iterations:t.iterations,fill:"both"}).play(),this}},{key:"innerExpandBack",value:function(t){this.res.animate([{width:this.prevWidth,height:this.prevHeight}],{duration:900,iterations:t.iterations,fill:"both"})}},{key:"innerExpand",value:function(t){var e,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!==(e=t.width)&&void 0!==e?e:this.prevWidth,height:null!==(r=t.height)&&void 0!==r?r:this.prevHeight}],{duration:900,iterations:t.iterations,fill:"both"}),this}},{key:"fade",value:function(t){return this.res.style.visibility="hidden",this.faden(t.duration,t.from,"load"),t.finalOpacity&&(this.finalOpacity=t.finalOpacity),this}},{key:"faden",value:function(t,e,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"==e&&n.res.animate([{transform:"translateX(-30px)"},{transform:"translateX(0px)"}],{duration:t,iterations:1}),"right"==e&&n.res.animate([{transform:"translateX(30px)"},{transform:"translateX(0px)"}],{duration:t,iterations:1}),"top"==e&&n.res.animate([{transform:"translateY(-30px)"},{transform:"translateY(0px)"}],{duration:t,iterations:1}),"bottom"==e&&n.res.animate([{transform:"translateY(30px)"},{transform:"translateY(0px)"}],{duration:t,iterations:1}),n.res.animate([{opacity:"0.0"},{opacity:"1.0"}],{duration:t,iterations:1}),n.scrolled=!0)})),this}}])&&l(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e}()},898:(t,e,r)=>{function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}function i(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,o(n.key),n)}}function o(t){var e=function(t){if("object"!=n(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=n(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==n(e)?e:e+""}function s(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(s=function(){return!!t})()}function a(t){return a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},a(t)}function l(t,e){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},l(t,e)}r.d(e,{L:()=>c});var c=function(t){function e(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(t=function(t,e,r){return e=a(e),function(t,e){if(e&&("object"==n(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,s()?Reflect.construct(e,r||[],a(t).constructor):e.apply(t,r))}(this,e)).el=null,t.file=null,t.selected="",t}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&l(t,e)}(e,t),r=e,o=[{key:"setup",value:function(t,e){document.createElement("div");var r=document.createElement("select");r.setAttribute("type","file"),r.setAttribute("name",e),r.addEventListener("change",(function(){r.options[r.selectedIndex].value}));for(var n=0;n<t.length;n++)r.appendChild(this.addNode(t[n][0],t[n][1]));return this.el=r,this}},{key:"set",value:function(t){return this.options=t,t.items&&this.setup(t.items,t.name),t.arrayPadding&&this.arrayPadding(t.arrayPadding.sides,t.arrayPadding.value),t.arrayMargin&&this.arrayMargin(t.arrayMargin.sides,t.arrayMargin.value),t.pad&&this.pad(t.pad),t.mar&&this.mar(t.mar),t.radius&&(this.el.style.borderRadius=t.radius),t.background&&(this.el.style.background=t.background),this}},{key:"arrayPadding",value:function(t,e){return t.includes("left")&&(this.el.style.paddingLeft=e),t.includes("right")&&(this.el.style.paddingRight=e),t.includes("top")&&(this.el.style.paddingTop=e),t.includes("bottom")&&(this.el.style.paddingBottom=e),t.includes("all")&&(this.el.style.padding=e),this}},{key:"arrayMargin",value:function(t,e){return t.includes("left")&&(this.el.style.marginLeft=e),t.includes("right")&&(this.el.style.marginRight=e),t.includes("top")&&(this.el.style.marginTop=e),t.includes("bottom")&&(this.el.style.marginBottom=e),t.includes("all")&&(this.el.style.margin=e),this}},{key:"addNode",value:function(t,e){var r=document.createElement("option");r.setAttribute("value",t);var n=document.createTextNode(e);return r.appendChild(n),r}},{key:"padding",value:function(t){return this.el.style.padding=t,this}},{key:"font",value:function(t){return this.el.style.fontFamily=t,this}},{key:"margin",value:function(t){return this.el.style.margin=t,this}},{key:"toCode",value:function(){var t=JSON.stringify(this.options,null,4);return t=t.replace(/"(\w+)"(?=\s*:)/g,"$1"),["new Picker().set(".concat(t,")")]}},{key:"rounded",value:function(t){return this.el.style.borderRadius="4px",this}},{key:"auto",value:function(){var t=this,e=function(){window.matchMedia("(max-device-width: 415px)").matches?t.el.style.fontSize="3rem":t.el.style.fontSize="1rem"};return e(),window.addEventListener("resize",e),this}},{key:"render",value:function(t){if(!t)return this.el;document.querySelector(t).appendChild(this.el)}}],o&&i(r.prototype,o),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,o}(r(762).y);window.Picker=c}},__webpack_module_cache__={};function __webpack_require__(t){var e=__webpack_module_cache__[t];if(void 0!==e)return e.exports;var r=__webpack_module_cache__[t]={exports:{}};return __webpack_modules__[t](r,r.exports,__webpack_require__),r.exports}__webpack_require__.d=(t,e)=>{for(var r in e)__webpack_require__.o(e,r)&&!__webpack_require__.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},__webpack_require__.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),__webpack_require__.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var __webpack_exports__={};__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{Des:()=>Des});var _lib_elementMapper_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(688),_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(t){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof(t)}function _toConsumableArray(t){return _arrayWithoutHoles(t)||_iterableToArray(t)||_unsupportedIterableToArray(t)||_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(t,e){if(t){if("string"==typeof t)return _arrayLikeToArray(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?_arrayLikeToArray(t,e):void 0}}function _iterableToArray(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function _arrayWithoutHoles(t){if(Array.isArray(t))return _arrayLikeToArray(t)}function _arrayLikeToArray(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function _classCallCheck(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function _defineProperties(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,_toPropertyKey(n.key),n)}}function _createClass(t,e,r){return e&&_defineProperties(t.prototype,e),r&&_defineProperties(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function _toPropertyKey(t){var e=_toPrimitive(t,"string");return"symbol"==_typeof(e)?e:e+""}function _toPrimitive(t,e){if("object"!=_typeof(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=_typeof(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}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(t){return'stroke: {range:["0px","3000px"], op:{name:"blast",color:"orange",width:"'.concat(t,'px"}}')}},nepal:{blast:{code:'stroke: {range:["0px","3000px"], op:{name:"blast",color:"#2ECC71",width:"3px"}}'},blastFun:function(t){return'stroke: {range:["0px","3000px"], op:{name:"blast",color:"#2ECC71",width:"'.concat(t,'px"}}')}},patagonia:{blast:{code:'stroke: {range:["0px","3000px"], op:{name:"blast",color:"#1abc9c",width:"3px"}}'},blastFun:function(t){return'stroke: {range:["0px","3000px"], op:{name:"blast",color:"#1abc9c",width:"'.concat(t,'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(t){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(t){return" ".repeat(t)}}}return _createClass(Des,[{key:"at",value:function(t){return this.options.push(t),this}},{key:"nodes",value:function(t){return this.options=t,this.protoOptions=_toConsumableArray(t),console.log(this.options),console.log(this.protoOptions),this}},{key:"getElType",value:function(t){return"S".concat(t.substr(1))}},{key:"filtero",value:function(t,e,r){return r.filter((function(e){return e.op.name===t})).filter((function(t){return!t.target||t.target.includes(e)}))[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(t){return t.op})).map((function(t,e){return t===ops[q]?e:""})).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 t=document.createElement("textarea");t.style.width=300,t.style.height=300,t.setAttribute("id","elements"),t.value=this.code.join(""),this.target="#elements";var e=document.createElement("pre"),r=document.createElement("code"),n=this.code.map((function(t){return"".concat(t,'.render("#mount"); \n \n')}));this.code=n,r.textContent=this.code,e.appendChild(r),e.setAttribute("class","nonLayout"),document.body.appendChild(e),document.body.appendChild(t);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))}}}])}();module.exports=__webpack_exports__})();