nodality 1.2.2 → 1.2.4

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 (209) hide show
  1. package/README.md +15 -15
  2. package/bin/mcp-server.mjs +17 -4
  3. package/dist/animator.cjs.js.LICENSE.txt +1 -1
  4. package/dist/animator.esm.js.LICENSE.txt +1 -1
  5. package/dist/audionew.cjs.js.LICENSE.txt +1 -1
  6. package/dist/audionew.esm.js.LICENSE.txt +1 -1
  7. package/dist/base.cjs.js.LICENSE.txt +1 -1
  8. package/dist/base.esm.js.LICENSE.txt +1 -1
  9. package/dist/beta-desktop-bar.cjs.js.LICENSE.txt +1 -1
  10. package/dist/beta-desktop-bar.esm.js.LICENSE.txt +1 -1
  11. package/dist/beta-mobile-bar.cjs.js.LICENSE.txt +1 -1
  12. package/dist/beta-mobile-bar.esm.js.LICENSE.txt +1 -1
  13. package/dist/bundle.umd.js +1 -1
  14. package/dist/bundle.umd.js.LICENSE.txt +1 -1
  15. package/dist/button.cjs.js.LICENSE.txt +1 -1
  16. package/dist/button.esm.js.LICENSE.txt +1 -1
  17. package/dist/card-getter.cjs.js.LICENSE.txt +1 -1
  18. package/dist/card-getter.esm.js.LICENSE.txt +1 -1
  19. package/dist/center.cjs.js +1 -1
  20. package/dist/center.cjs.js.LICENSE.txt +1 -1
  21. package/dist/center.esm.js +1 -1
  22. package/dist/center.esm.js.LICENSE.txt +1 -1
  23. package/dist/checkbox.cjs.js.LICENSE.txt +1 -1
  24. package/dist/checkbox.esm.js.LICENSE.txt +1 -1
  25. package/dist/code.cjs.js.LICENSE.txt +1 -1
  26. package/dist/code.esm.js.LICENSE.txt +1 -1
  27. package/dist/container.cjs.js.LICENSE.txt +1 -1
  28. package/dist/container.esm.js.LICENSE.txt +1 -1
  29. package/dist/data-list.cjs.js.LICENSE.txt +1 -1
  30. package/dist/data-list.esm.js.LICENSE.txt +1 -1
  31. package/dist/designer.cjs.js +1 -1
  32. package/dist/designer.cjs.js.LICENSE.txt +1 -1
  33. package/dist/designer.esm.js +1 -1
  34. package/dist/designer.esm.js.LICENSE.txt +1 -1
  35. package/dist/element-mapper.cjs.js +1 -1
  36. package/dist/element-mapper.cjs.js.LICENSE.txt +1 -1
  37. package/dist/element-mapper.esm.js +1 -1
  38. package/dist/element-mapper.esm.js.LICENSE.txt +1 -1
  39. package/dist/finalresult.esm.js +1 -1
  40. package/dist/finalresult.esm.js.LICENSE.txt +1 -1
  41. package/dist/flex-card.cjs.js.LICENSE.txt +1 -1
  42. package/dist/flex-card.esm.js.LICENSE.txt +1 -1
  43. package/dist/flex-grid.cjs.js.LICENSE.txt +1 -1
  44. package/dist/flex-grid.esm.js.LICENSE.txt +1 -1
  45. package/dist/flex-row.cjs.js.LICENSE.txt +1 -1
  46. package/dist/flex-row.esm.js.LICENSE.txt +1 -1
  47. package/dist/floating-input.cjs.js.LICENSE.txt +1 -1
  48. package/dist/floating-input.esm.js.LICENSE.txt +1 -1
  49. package/dist/free.cjs.js.LICENSE.txt +1 -1
  50. package/dist/free.esm.js.LICENSE.txt +1 -1
  51. package/dist/horizontal-scroller.cjs.js.LICENSE.txt +1 -1
  52. package/dist/horizontal-scroller.esm.js.LICENSE.txt +1 -1
  53. package/dist/image-picker.cjs.js +1 -1
  54. package/dist/image-picker.cjs.js.LICENSE.txt +1 -1
  55. package/dist/image-picker.esm.js +1 -1
  56. package/dist/image-picker.esm.js.LICENSE.txt +1 -1
  57. package/dist/image.cjs.js +1 -1
  58. package/dist/image.cjs.js.LICENSE.txt +1 -1
  59. package/dist/image.esm.js +1 -1
  60. package/dist/image.esm.js.LICENSE.txt +1 -1
  61. package/dist/index.cjs.js +1 -1
  62. package/dist/index.cjs.js.LICENSE.txt +1 -1
  63. package/dist/index.d.ts +1 -1
  64. package/dist/index.esm.js +1 -1
  65. package/dist/index.esm.js.LICENSE.txt +1 -1
  66. package/dist/keyframe-animation.cjs.js +1 -1
  67. package/dist/keyframe-animation.cjs.js.LICENSE.txt +1 -1
  68. package/dist/keyframe-animation.esm.js +1 -1
  69. package/dist/keyframe-animation.esm.js.LICENSE.txt +1 -1
  70. package/dist/link-getter.cjs.js.LICENSE.txt +1 -1
  71. package/dist/link-getter.esm.js.LICENSE.txt +1 -1
  72. package/dist/link.cjs.js.LICENSE.txt +1 -1
  73. package/dist/link.esm.js.LICENSE.txt +1 -1
  74. package/dist/meta-adder.cjs.js.LICENSE.txt +1 -1
  75. package/dist/meta-adder.esm.js.LICENSE.txt +1 -1
  76. package/dist/modal-2025.cjs.js.LICENSE.txt +1 -1
  77. package/dist/modal-2025.esm.js.LICENSE.txt +1 -1
  78. package/dist/multiswitcher.cjs.js.LICENSE.txt +1 -1
  79. package/dist/multiswitcher.esm.js.LICENSE.txt +1 -1
  80. package/dist/new-nav-bar.cjs.js.LICENSE.txt +1 -1
  81. package/dist/new-nav-bar.esm.js.LICENSE.txt +1 -1
  82. package/dist/picker.cjs.js.LICENSE.txt +1 -1
  83. package/dist/picker.esm.js.LICENSE.txt +1 -1
  84. package/dist/progress.cjs.js.LICENSE.txt +1 -1
  85. package/dist/progress.esm.js.LICENSE.txt +1 -1
  86. package/dist/radio.cjs.js.LICENSE.txt +1 -1
  87. package/dist/radio.esm.js.LICENSE.txt +1 -1
  88. package/dist/range.cjs.js.LICENSE.txt +1 -1
  89. package/dist/range.esm.js.LICENSE.txt +1 -1
  90. package/dist/scroll-video.cjs.js.LICENSE.txt +1 -1
  91. package/dist/scroll-video.esm.js.LICENSE.txt +1 -1
  92. package/dist/side-bar.cjs.js.LICENSE.txt +1 -1
  93. package/dist/side-bar.esm.js.LICENSE.txt +1 -1
  94. package/dist/side-nav-bar.cjs.js.LICENSE.txt +1 -1
  95. package/dist/side-nav-bar.esm.js.LICENSE.txt +1 -1
  96. package/dist/simple-bar.cjs.js.LICENSE.txt +1 -1
  97. package/dist/simple-bar.esm.js.LICENSE.txt +1 -1
  98. package/dist/slider-2025.cjs.js.LICENSE.txt +1 -1
  99. package/dist/slider-2025.esm.js.LICENSE.txt +1 -1
  100. package/dist/spacer.cjs.js.LICENSE.txt +1 -1
  101. package/dist/spacer.esm.js.LICENSE.txt +1 -1
  102. package/dist/stack.cjs.js.LICENSE.txt +1 -1
  103. package/dist/stack.esm.js.LICENSE.txt +1 -1
  104. package/dist/stacker.cjs.js.LICENSE.txt +1 -1
  105. package/dist/stacker.esm.js.LICENSE.txt +1 -1
  106. package/dist/table.cjs.js.LICENSE.txt +1 -1
  107. package/dist/table.esm.js.LICENSE.txt +1 -1
  108. package/dist/text-field.cjs.js.LICENSE.txt +1 -1
  109. package/dist/text-field.esm.js.LICENSE.txt +1 -1
  110. package/dist/text.cjs.js +1 -1
  111. package/dist/text.cjs.js.LICENSE.txt +1 -1
  112. package/dist/text.esm.js +1 -1
  113. package/dist/text.esm.js.LICENSE.txt +1 -1
  114. package/dist/theme.cjs.js.LICENSE.txt +1 -1
  115. package/dist/theme.esm.js.LICENSE.txt +1 -1
  116. package/dist/transform-anim.cjs.js.LICENSE.txt +1 -1
  117. package/dist/transform-anim.esm.js.LICENSE.txt +1 -1
  118. package/dist/ulist.cjs.js.LICENSE.txt +1 -1
  119. package/dist/ulist.esm.js.LICENSE.txt +1 -1
  120. package/dist/video.cjs.js.LICENSE.txt +1 -1
  121. package/dist/video.esm.js.LICENSE.txt +1 -1
  122. package/dist/wrap.cjs.js.LICENSE.txt +1 -1
  123. package/dist/wrap.esm.js.LICENSE.txt +1 -1
  124. package/dist/zoom-card.cjs.js.LICENSE.txt +1 -1
  125. package/dist/zoom-card.esm.js.LICENSE.txt +1 -1
  126. package/layout/animator.js +1 -1
  127. package/layout/audio.js +1 -1
  128. package/layout/audionew.js +1 -1
  129. package/layout/base.js +1 -1
  130. package/layout/beta-desktop-bar.js +1 -1
  131. package/layout/beta-mobile-bar.js +1 -1
  132. package/layout/button.js +1 -1
  133. package/layout/center.js +3 -3
  134. package/layout/checkbox.js +1 -1
  135. package/layout/circle.js +1 -1
  136. package/layout/code.js +1 -1
  137. package/layout/container.js +1 -1
  138. package/layout/dropdown-2025.js +1 -1
  139. package/layout/flex-card.js +1 -1
  140. package/layout/flex-grid.js +1 -1
  141. package/layout/flex-row.js +1 -1
  142. package/layout/form-components/custom.js +1 -1
  143. package/layout/form-components/data-list.js +1 -1
  144. package/layout/form-components/floating-input.js +1 -1
  145. package/layout/form-components/form-all.js +1 -1
  146. package/layout/form-components/form.js +1 -1
  147. package/layout/form-components/image-picker.js +2 -2
  148. package/layout/form-components/picker.js +1 -1
  149. package/layout/form-components/radio.js +1 -1
  150. package/layout/form-components/radiogroup.js +1 -1
  151. package/layout/form-components/range.js +1 -1
  152. package/layout/free.js +1 -1
  153. package/layout/grid-switcher.js +1 -1
  154. package/layout/grid.js +1 -1
  155. package/layout/horizontal-scroller.js +1 -1
  156. package/layout/image.js +2 -2
  157. package/layout/index.js +1 -1
  158. package/layout/link.js +1 -1
  159. package/layout/list.js +1 -1
  160. package/layout/meta-adder.js +1 -1
  161. package/layout/modal-2025.js +1 -1
  162. package/layout/morph.js +1 -1
  163. package/layout/multiswitcher.js +1 -1
  164. package/layout/nav-bar.js +1 -1
  165. package/layout/nav-factor/custom-div.js +1 -1
  166. package/layout/new-nav-bar.js +1 -1
  167. package/layout/polygon.js +1 -1
  168. package/layout/prerender-site.js +1 -1
  169. package/layout/prerender.js +1 -1
  170. package/layout/progress.js +1 -1
  171. package/layout/row.js +1 -1
  172. package/layout/scroll-video.js +1 -1
  173. package/layout/side-bar.js +1 -1
  174. package/layout/side-nav-bar.js +1 -1
  175. package/layout/simple-bar.js +1 -1
  176. package/layout/slider-2025.js +1 -1
  177. package/layout/spacer.js +1 -1
  178. package/layout/stack.js +1 -1
  179. package/layout/svg.js +1 -1
  180. package/layout/switcher.js +1 -1
  181. package/layout/table.js +1 -1
  182. package/layout/text-field.js +1 -1
  183. package/layout/text.js +2 -2
  184. package/layout/ulist.js +1 -1
  185. package/layout/video.js +1 -1
  186. package/layout/wrap.js +1 -1
  187. package/layout/zoom-card.js +1 -1
  188. package/lib/agent-surface.js +1 -1
  189. package/lib/card-getter.js +1 -1
  190. package/lib/codegen.js +1 -1
  191. package/lib/data.js +1 -1
  192. package/lib/designer.js +1 -1
  193. package/lib/element-mapper.js +7 -2
  194. package/lib/keyframe-animation.js +2 -2
  195. package/lib/link-getter.js +1 -1
  196. package/lib/morph-node.js +1 -1
  197. package/lib/raster-inspect.js +1 -1
  198. package/lib/raster-ops.js +1 -1
  199. package/lib/raster-presets.js +1 -1
  200. package/lib/scroll-video.js +1 -1
  201. package/lib/seo.js +1 -1
  202. package/lib/stacker.js +1 -1
  203. package/lib/suggest.js +1 -1
  204. package/lib/theme.js +1 -1
  205. package/lib/transform-anim.js +1 -1
  206. package/lib/transition.js +1 -1
  207. package/lib/validate-nodes.js +75 -4
  208. package/lib/webmcp-adapter.js +1 -1
  209. package/package.json +1 -1
@@ -1,2 +1,2 @@
1
1
  /*! For license information please see designer.esm.js.LICENSE.txt */
2
- import*as __WEBPACK_EXTERNAL_MODULE__lib_raster_ops_js_a0b88e38__ from"../lib/raster-ops.js";var __nodality_wp_modules__={153:(t,e,r)=>{r.d(e,{m:()=>y});var n=r(2332),o=r(1382);function i(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,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,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,i=t},f:function(){try{a||null==r.return||r.return()}finally{if(l)throw i}}}}function a(t){return a="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},a(t)}function s(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"!=a(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=a(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==a(e)?e:e+""}function d(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(d=function(){return!!t})()}function f(){return f="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,r){var n=function(t,e){for(;!{}.hasOwnProperty.call(t,e)&&null!==(t=p(t)););return t}(t,e);if(n){var o=Object.getOwnPropertyDescriptor(n,e);return o.get?o.get.call(arguments.length<3?t:r):o.value}},f.apply(null,arguments)}function p(t){return p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},p(t)}function h(t,e){return h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},h(t,e)}var y=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=p(e),function(t,e){if(e&&("object"==a(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||[],p(t).constructor):e.apply(t,r))}(this,e)).res=null,r.setup(t),r.code=[],r.isLast=!1,r.constrObj=t,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&&h(t,e)}(e,t),r=e,n=[{key:"toCode",value:function(){var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if(this.code=[],this.excludeFromCodeTrue)return[""];var r=" ".repeat(e),n="".concat(r,'new Wrapper("').concat(this.constrObj,'")');if(this.constrObj||(n="".concat(r,"new Wrapper()")),Object.keys(this.obj).length){var i=Object.fromEntries(Object.entries(this.obj).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,o,i,a,s=[],l=!0,c=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==e);l=!0);}catch(t){c=!0,o=t}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(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.")}()}(t,2);return e[0],null!==e[1]})),a=(0,o.sy)(i,2);n+="\n".concat(r," .set(").concat(a,")")}return null!==(t=this.items)&&void 0!==t&&t.length&&(n+="\n".concat(r," .add([\n")+this.items.map(function(t){return t.toCode(e+4)}).join(",\n")+"\n".concat(r," ])")),[n+="\n".concat(r)]}},{key:"getType",value:function(){return"LayoutWrapperElement"}},{key:"set",value:function(t){this.obj=t,this.commonMethods(t),t.onTap&&this.onTap(t.onTap);var r=".set({";t.isHidden&&this.isHidden(t.isHidden),t.scale&&(this.res.style.scale=t.scale),t.scale&&(r+="scale: ".concat(t.scale)),t.keySet&&this.keySet(t.keySet),t.resprop&&this.resprop(t.resprop),t.position&&(this.res.style.position=t.position),void 0!==t.top&&(this.res.style.top=t.top),t.pad&&this.pad(t.pad),t.mar&&this.mar(t.mar),t.gpos&&this.gpos(t.gpos);var n,o,s,l=[],c=t.transform&&"object"===a(t.transform);if(t.stroke||t.gradient||t.span||t.backgroundOp||t.layout||t.shadow||t.animation||t.filtera||c){t.gradient&&(this.globalGradient=t.gradient.op.gradient,"radial"===t.gradient.op.direction&&(this.globalGradient="radial-gradient(circle at center, orange, green)")),t.stroke&&(n=e,o=this,"function"==typeof(s=f(p(1&3?n.prototype:n),"setAny",o))?function(t){return s.apply(o,t)}:s)([{globalBlast:"".concat(t.stroke.op.width," ").concat(t.stroke.op.color)}]),t.span&&(t.span.prevText=this.text);var u=[t.stroke,t.gradient,t.animation,t.span,t.backgroundOp,t.layout,t.marginOp,t.shadow,t.animation,t.filtera,c?t.transform:void 0];u=u.filter(function(t){return null!=t});for(var d=0;d<u.length;d++)l.push({range:u[d].range,log:u[d].op.name,target:u[d].target,op:u[d].op});var h=[];t.borderObj&&h.push("border"),t.background&&h.push("background"),t.mar&&h.push("margin"),t.animation&&h.push("animation"),t.span&&h.push("span"),c&&h.push("transform"),t.gradient&&h.push("gradient"),t.blast,this.options=t,this.chainReact(l,this.options.id,h)}if(t.centerColumn&&this.deprecatedOption("centerColumn",'center: "x"'),t.mboth&&(this.deprecatedOption("mboth",'mar: "center"'),this.mar("center")),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.simpleCenter&&this.deprecatedOption("simpleCenter","center: true"),t.filter&&(this.res.style.backdropFilter="blur(3px)"),t.radius&&this.corner(t.radius),t.radius&&(r+='\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&&(r+='\n width: "'.concat(t.width,'",')),t.overflow&&(r+='\n overflow: "'.concat(t.overflow,'",')),t.height&&this.heightNoAuto(t.height),t.height&&(r+='\n height: "'.concat(t.height,'",')),t.align&&this.flexAlign(t.align),t.align&&(r+='\n align: "'.concat(t.align,'",')),t.borderObj&&(this.res.style.border="".concat(t.borderObj.width," solid ").concat(t.borderObj.color),void 0!==t.borderObj.radius&&(this.res.style.borderRadius=t.borderObj.radius)),t.borderObja&&(this.res.style.border="".concat(t.borderObja.width," solid ").concat(t.borderObja.color),void 0!==t.borderObja.radius&&(this.res.style.borderRadius=t.borderObja.radius)),t.font&&this.font(t.font),t.font&&(r+='font: "'.concat(t.font,'",')),t.maxWidth&&this.maxWidth(t.maxWidth),t.flexCenter&&this.deprecatedOption("flexCenter",'center: "y"'),t.color&&this.color(t.color),t.background&&this.background(t.background),t.background&&(r+='background: "'.concat(t.background,'",')),t.weight&&this.weight(t.weight),t.area&&this.setArea(t.area),t.area&&(r+='area: "'.concat(t.area,'"')),t.column&&this.makeCol(),t.column&&(r+='\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&&(r+='\n flexDir: "'.concat(t.flexDir,'",')),t.center&&(r+="center: ".concat(JSON.stringify(t.center),",")),t.zIndex&&(this.res.style.zIndex=t.zIndex),t.transform&&"object"===a(t.transform)&&this.reactOnTransform(t.transform),t.name&&(this.name=t.name),t.responsive&&this.rsp(t.responsive),t.stretch){t.stretch&&this.stretch(t.stretch);var y=this.removeQuotesFromFirstWord(JSON.stringify(t.stretch));r+="\n stretch: ".concat(y,",")}for(var m in t)if("margin"===m){var b=t[m];if(Array.isArray(b)&&b.length>0){var v,g=i(b);try{for(g.s();!(v=g.n()).done;){var w=v.value;w.hasOwnProperty("top")&&(this.res.style.marginTop=w.top),w.hasOwnProperty("right")&&(this.res.style.marginRight=w.right),w.hasOwnProperty("bottom")&&(this.res.style.marginBottom=w.bottom),w.hasOwnProperty("left")&&(this.res.style.marginLeft=w.left)}}catch(t){g.e(t)}finally{g.f()}}}return 8===(r+="})\n").length&&(r=""),this.code.push(r),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 o=0;o<n.length-1;o++)(window.matchMedia("(min-width: ".concat(n[o],") and (max-width: ").concat(n[o+1],")")).matches||window.matchMedia("(min-width: ".concat(n[n.length-1],")")).matches)&&("row"===r[o]&&(e.res.style.flexDirection="row",e.res.style.border="3px solid green"),"col"===r[o]&&(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:"color",value:function(t){return this.res.style.color=t,this}},{key:"weight",value:function(t){return this.res.style.fontWeight=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:"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.border="".concat(t.width,"px solid ").concat(t.color),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:"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=null;return t?(t.isLink&&(e=document.createElement("a")),"aside"===t&&(e=document.createElement("aside")),"article"===t&&(e=document.createElement("article")),"main"===t&&(e=document.createElement("main")),"section"===t&&(e=document.createElement("section")),"header"===t&&(e=document.createElement("header")),"footer"===t&&(e=document.createElement("footer"))):e=document.createElement("div"),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:"dimensions",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:"size",value:function(t,e){return this.deprecatedOption("size() on this component","dimensions(w, h)"),this.dimensions(t,e)}},{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:"apply",value:function(t){var e=this,r=function(){for(var r=0;r<t.length;r++){var n=t[r],o=window.matchMedia("(max-width: ".concat(n.width,"px)"));n.device&&(o=window.matchMedia("(max-device-width: ".concat(n.width,"px)"))),o.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&&c(r.prototype,n),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n}(n.y)},827:(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 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,i(n.key),n)}}function i(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 s(t){return s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},s(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,{k:()=>c});var c=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=s(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||[],s(t).constructor):e.apply(t,r))}(this,e))._noTheme=!0,r.res=null,r.value=t,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&&l(t,e)}(e,t),r=e,i=[{key:"setup",value:function(){var t=document.createElement("div"),e=document.createElement("div"),r=document.createElement("div");return e.style.position="absolute",r.style.position="relative",t.appendChild(e),t.appendChild(r),this.res=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:"size",value:function(t){var e=this,r=t.width.split("%")[0],n=t.height;this.res.children[0].style.width=r/100*window.innerWidth,this.res.children[0].style.height=n,this.res.children[1].style.width=r/100*window.innerWidth*this.value,this.res.children[1].style.height=n;var o=function(){e.res.children[0].style.width=r/100*window.innerWidth,e.res.children[0].style.height=n,e.res.children[1].style.width=r/100*window.innerWidth*e.value,e.res.children[1].style.height=n};return window.addEventListener("resize",o),o(),this}},{key:"colors",value:function(t,e){return this.res.children[0].style.background=t,this.res.children[1].style.background=e,this}},{key:"round",value:function(t){return this.res.children[0].style.borderRadius="".concat(t,"px"),this.res.children[1].style.borderRadius="".concat(t,"px"),this}},{key:"render",value:function(t){if(Array.from(this.res.children).forEach(function(t){return t.style.padding=0}),Array.from(this.res.children).forEach(function(t){return t.style.margin=0}),!t)return this.res;document.querySelector(t).appendChild(this.res)}}],i&&o(r.prototype,i),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,i}(r(2332).y)},849:(t,e,r)=>{r.d(e,{I:()=>F}),r(2332);var n=r(9828),o=r(8597),i=(r(9793),r(6131)),a=r(9383),s=r(7108),l=r(3050),c=(r(8807),r(3440),r(5367),r(7879)),u=r(7258),d=r(3420),f=(r(827),r(1873),r(2789)),p=r(7926),h=r(153),y=(r(1980),r(6182)),m=r(3665),b=(r(3243),r(3014)),v=(r(9310),r(1632),r(5860),r(4550),r(9290),r(2387)),g=r(9521),w=r(1236),_=r(3180),k=r(1557),O=r(2689),x=r(4617),S=(r(1353),r(3257)),j=(r(5613),r(1371)),E=r(2588),C=r(9932),P=(r(6679),r(9668)),T=r(8424),A=r(2027),R=(r(7698),r(9800)),M=r(5632);function I(t){return I="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},I(t)}function D(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){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 W(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?L(Object(r),!0).forEach(function(e){B(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):L(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function B(t,e,r){return(e=N(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function z(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(n.key),n)}}function N(t){var e=function(t){if("object"!=I(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=I(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==I(e)?e:e+""}var q=["h1","h2","h3","h4","h5","h6","p","img","a","cards","free","nav","sideNav","row","dropdown","radio","input","labelInput","filePicker","picker","video","audio","multiswitcher","button","form","checkbox","stack","simple","copy","wrap","circle","polygon","code","table","ulist"],F=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){if(["h1","h2","h3","h4","h5","h6","p"].includes(t.el.type))return this.mapText(t);if("img"===t.el.type)return this.mapImage(t);if("a"===t.el.type)return this.mapLink(t);if("cards"===t.el.type)return this.mapGrid(t);if("free"===t.el.type)return this.mapFree(t);if("nav"===t.el.type)return this.protoNav(t);if("sideNav"===t.el.type)return this.sideNav(t);if("row"===t.el.type)return this.mapRow(t);if("dropdown"===t.el.type)return this.dropdown(t);if("radio"===t.el.type)return this.radio(t);if("input"===t.el.type)return this.input(t);if("labelInput"===t.el.type)return this.floatInput(t);if("filePicker"===t.el.type)return this.filePicker(t);if("picker"===t.el.type)return this.picker(t);if("video"===t.el.type)return this.video(t);if("audio"===t.el.type)return this.audio(t);if("multiswitcher"===t.el.type)return this.multiswitcher(t);if("button"===t.el.type)return this.button(t);if("form"===t.el.type)return this.form(t);if("checkbox"===t.el.type)return this.checkbox(t);if("stack"===t.el.type)return this.stack(t);if("simple"===t.el.type)return this.simple(t);if("copy"===t.el.type)return this.mapCopy(t);if("wrap"===t.el.type)return this.mapWrap(t);if("circle"===t.el.type)return this.mapCircle(t);if("polygon"===t.el.type)return this.mapPolygon(t);if("code"===t.el.type)return this.mapCode(t);if("table"===t.el.type)return this.mapTable(t);if("ulist"===t.el.type)return this.mapUList(t);throw new Error("[nodality] "+(0,o.au)(t.el.type,q,"element type"))}},{key:"mapTable",value:function(t){var e=t.el;return(new y.X).add([{abbr:"AUIUI/AK9PT",name:"Pokročilé mobilní technologie",grade:"A",date:"09.01.2024"},{abbr:"AUIUI/AK9PT",name:"Pokročilé mobilní technologie",grade:"A",date:"09.01.2024"},{abbr:"AUIUI/AK9PT",name:"Pokročilé mobilní technologie",grade:"A",date:"09.01.2024"}]).set({cellPadding:"0.3em",cellAlign:"center",style:{font:"Arial"},headStyle:{color:"white",background:"#ff6d22"},border:"2px solid black",center:!0,borderRadius:2.2,stroke:this.filtero("blast",e.id,t.customOptions),gradient:this.filtero("gradient",e.id,t.customOptions),animation:this.filtero("animation",e.id,t.customOptions),shadow:this.filtero("shadow",e.id,t.customOptions),span:this.filtero("span",e.id,t.customOptions),backgroundOp:this.filtero("background",e.id,t.customOptions),marginOp:this.filtero("margin",e.id,t.customOptions),transform:this.filtero("transform",e.id,t.customOptions),filtera:this.filtero("filter",e.id,t.customOptions),raster:this.filteroRaster(e.id,t.customOptions)})}},{key:"mapRow",value:function(t){var e=t.el;return(new l.Y).set({stroke:this.filtero("blast",e.id,t.customOptions),gradient:this.filtero("gradient",e.id,t.customOptions),animation:this.filtero("animation",e.id,t.customOptions),shadow:this.filtero("shadow",e.id,t.customOptions),span:this.filtero("span",e.id,t.customOptions),backgroundOp:this.filtero("background",e.id,t.customOptions),marginOp:this.filtero("margin",e.id,t.customOptions),transform:this.filtero("transform",e.id,t.customOptions),filtera:this.filtero("filter",e.id,t.customOptions),raster:this.filteroRaster(e.id,t.customOptions)}).items([new i.E("This").set({size:"S3"}),new i.E("is").set({size:"S3",text:"Hello"}),new i.E("row.").set({size:"S3",text:"Hello"})])}},{key:"mapCode",value:function(t){var e=t.el;return(new f.C).set({stroke:this.filtero("blast",e.id,t.customOptions),gradient:this.filtero("gradient",e.id,t.customOptions),animation:this.filtero("animation",e.id,t.customOptions),shadow:this.filtero("shadow",e.id,t.customOptions),span:this.filtero("span",e.id,t.customOptions),backgroundOp:this.filtero("background",e.id,t.customOptions),marginOp:this.filtero("margin",e.id,t.customOptions),transform:this.filtero("transform",e.id,t.customOptions),filtera:this.filtero("filter",e.id,t.customOptions),raster:this.filteroRaster(e.id,t.customOptions),pad:[{l:30}],mar:[{a:30}],class:"language-js",code:'new Text("Modality").set({ font: "Arial" })'})}},{key:"mapCopy",value:function(t){var e,r=t.customOptions,n=r.filter(function(t){return"copy"===t.op})[0],o=null!==(e=null==n?void 0:n.count)&&void 0!==e?e:3,i=(this.filteroRaster(t.el.id,r)||[]).filter(function(t){return t!==n}),a=300;return'new Wrapper()\n.set({\n width: "'.concat(a,'px",\n height: "').concat(a,'px",\n display: "flex",\n justifyContent: "center",\n alignItems: "center",\n position: "absolute",\n id: "#first",\n scale: 0.3,\n ').concat(null!=n&&n.animation?'\nanimation: {\n op: {\n name: "animation",\n color: "green",\n width: "1px",\n fireAt: "inview",\n keyframesOpen: [\n {\n transform: "rotate(360deg)",\n opacity: 0\n },\n {\n transform: "rotate(0deg)",\n opacity: 1\n }\n ],\n keyframesClose: [\n {\n transform: "rotate(0deg)",\n opacity: 1\n },\n {\n transform: "rotate(0deg)",\n opacity: 0\n }\n ],\n openOptions: {\n duration: 300,\n fill: "forwards",\n delay: 1000\n },\n closeOptions: {\n duration: 1,\n fill: "forwards",\n delay: 1000\n }\n },\n target: [\n "#first"\n ]\n },\n ':"").concat(i.length?",\n raster: ".concat(JSON.stringify(i)):"","\n})\n.add(\n Array.from({ length: ").concat(o,' }).map((_, i) => {\n\n const bbox = {width: "').concat(a,'px", height: "').concat(a,'px"};\n\n const elHeight = bbox.height;\n\n const cx = ').concat(150,";\n const cy = ").concat(150,";\n\n const R = ").concat(150,";\n\n const n = ").concat(o,';\n\n // Evenly spaced angles, starting at top (-90°)\n const angle = (i / n) * Math.PI * 2 - Math.PI/2;\n const dist = R + parseFloat(elHeight)/2;\n\n const x = cx + dist * Math.cos(angle);\n const y = cy + dist * Math.sin(angle);\n\n let rot = angle * 180 / Math.PI + 90;\n rot = (rot % 360 + 360) % 360;\n rot = (rot % 360 + 360) % 360;\n\n return new Text("Hello").set({\n size: "S1",\n color: "green",\n font: "Arial",\n left: `${x}px`,\n top: `${y}px`,\n transform: {\n op: {\n name: "transform",\n transform: {\n static: true,\n keep: true,\n values: [\n "tx:-50%",\n "ty:-50%",\n `rotate(${rot}deg)`\n ]\n }\n }\n }\n })\n\n \n })\n)')}},{key:"button",value:function(t){var e,r=t.el;return new T.$(null!==(e=r.text)&&void 0!==e?e:"Button").set(W(W({fluidc:"S6"},this.elOpts(r)),{},{raster:this.filteroRaster(r.id,t.customOptions)}))}},{key:"multiswitcher",value:function(t){var e=this,r=Array.isArray(t.el.breakpoints)?t.el.breakpoints:null;if(!r||!r.length)throw new Error('[nodality] a "multiswitcher" element needs a non-empty `breakpoints` array of { at, view }.');return(new w.i).set({id:t.el.id,area:t.el.area,breakpoints:r.map(function(r){return{at:r.at,view:r.view&&"function"==typeof r.view.render?r.view:e.mapType(W(W({},t),{},{el:r.view}))}})})}},{key:"video",value:function(t){var e=t.el;if(!e.url)throw new Error('[nodality] a "video" element needs a `url`.');return this.attachRaster(new O.C(e.url).set(this.elOpts(e)),e,t.customOptions)}},{key:"audio",value:function(t){var e=t.el;if(!e.url)throw new Error('[nodality] an "audio" element needs a `url`.');return this.attachRaster(new d.f(e.url),e,t.customOptions)}},{key:"radio",value:function(t){var e,r=t.el;return(new j.z).set(W({items:Array.isArray(r.items)?r.items:[],multiple:null!==(e=r.multiple)&&void 0!==e&&e},this.elOpts(r)))}},{key:"input",value:function(t){var e,r=t.el;return(new b.A).set(W(W({type:null!==(e=r.inputType)&&void 0!==e?e:"text"},this.elOpts(r)),{},{raster:this.filteroRaster(r.id,t.customOptions)}))}},{key:"floatInput",value:function(t){var e,r=t.el;return this.attachRaster((new S.l).set(W({type:null!==(e=r.inputType)&&void 0!==e?e:"input"},this.elOpts(r))),r,t.customOptions)}},{key:"filePicker",value:function(t){var e,r=t.el;return this.attachRaster((new C.I).set(W({title:null!==(e=r.title)&&void 0!==e?e:"Choose a file"},this.elOpts(r))),r,t.customOptions)}},{key:"picker",value:function(t){var e=t.el;return(new E.L).set(W(W({items:Array.isArray(e.items)?e.items:[],arrayPadding:{sides:["all"],value:"0.5rem"},rounded:!0},this.elOpts(e)),{},{raster:this.filteroRaster(e.id,t.customOptions)}))}},{key:"dropdown",value:function(t){t.el.items||(t.el.items=["Flower","Car","Maseratti"]);var e=t.el.items.map(function(t){return(new s.N).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}})}),r=(new m.m).set({behaviour:"click",pad:[{a:"1rem"}],mar:[{a:"1rem"}],border:"1px solid black",width:"180px",radius:"1rem"}).add([new i.E(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 h.m).set({border:"1px solid green",background:"#1abc9c",radius:"0.7rem",socenter:!0}).add(e.slice(1))]),n=this.filteroRaster(t.el.id,t.customOptions);return n&&r.rasterize(n),r}},{key:"protoNav",value:function(t){var e=t.customOptions,r=[{title:"Fire",link:"@e"},{title:"and",link:"@e"},{title:"smoke",link:"@e"}],n=r.map(function(t,e){return new s.N('"'.concat(t.title,'"')).set({fluidc:"S6",text:t.title,link:t.link,font:"Arial",pad:[{a:40}],bold:!0,hover:{color:"wheat",animation:.3}})}),o=r.map(function(t,e){return new s.N('"'.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 a=(new m.m).set({behaviour:"mouseover",pad:[{a:40}],padding:"10px",border:"1px solid black"}).add([new i.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 h.m).set({centerColumn:!0,radius:"0.7rem",background:"#1abc9c",makeResponsiveBehaviour:"undefined"}).add([(new s.N).set({pad:[{a:10}],font:"Arial",hover:{color:"wheat",animation:.3},bold:!0,link:"https://www.apple.com",text:"Second",icon:{padding:30,url:"https://cdn-icons-png.flaticon.com/512/32/32339.png"}}),(new s.N).set({pad:[{a:10}],font:"Arial",hover:{color:"wheat",animation:.3},bold:!0,link:"https://www.apple.com",text:"Third",icon:{padding:30,url:"https://cdn-icons-png.flaticon.com/512/32/32339.png"}})])]);o.push(a),n.push(a)}t.el.animation;var l=(new w.i).set({breakpoints:[{at:"0px",view:(new g.m).set({background:"#ecf0f1",mar:[{a:21}],brand:new i.E("Company").set({size:"S6",font:"Helvetica"}),hamburgerColour:"#3498db",radius:"1rem"}).add([(new s.N).set({text:"About",url:"#a"}),(new m.m).set({behaviour:"mouseover",pad:[{a:40}],mar:[{lr:"auto"}],breakpoint:"1200px",padding:"10px",border:"1px solid black",height:"auto"}).add([new i.E("More").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 i.E("Our story").set({cursor:"hand",fluidc:"S6",pad:[{l:10,r:10}],font:"Arial",align:"center",weight:"bold"}),new i.E("Team").set({cursor:"hand",fluidc:"S6",pad:[{l:10,r:10}],font:"Arial",align:"center",weight:"bold"})]),new s.N("B").set({text:"About",url:"#b"}),new s.N("C").set({text:"Contact",url:"https://www.abcnews.com"})])},{at:"1200px",view:(new v.C).set({background:"#ecf0f1",mar:[{a:21}],maxHeight:"100px",radius:"1rem"}).add([new i.E("Company").set({size:"S6",font:"Helvetica"}),new _.h(!0),(new m.m).set({behaviour:"mouseover",pad:[{a:40}],padding:"10px",border:"1px solid black",radius:"30px",width:"130px"}).add([new i.E("More").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 h.m).set({flexDir:"column",mar:[{t:"10px"}],radius:".3rem"}).add([new s.N("").set({text:"Who we are",url:"jk",cursor:"hand",fluidc:"S6",pad:[{l:10,r:10}],font:"Arial",align:"center",weight:"bold"}),new s.N("").set({text:"Info",url:"#u",cursor:"hand",fluidc:"S6",pad:[{l:10,r:10}],font:"Arial",align:"center",weight:"bold"}),new s.N("").set({text:"About",url:"#u",cursor:"hand",fluidc:"S6",pad:[{l:10,r:10}],font:"Arial",align:"center",weight:"bold"})])]),(new s.N).set({text:"About",url:"#a"}),(new s.N).set({text:"Services",url:"#a"}),(new s.N).set({text:"Contact",url:"#a"})])}]});return this.attachRaster(l,t.el,e)}},{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 s.N('"'.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,tags:{open:"sidebar:open",close:"sidebar:closed"},align:"left",hover:{color:"wheat",animation:.3}})}),n=(new m.m).set({behaviour:"mouseover",pad:[{a:40}],padding:"10px",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 i.E("More").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 h.m).set({centerColumn:!0,radius:"0.7rem",background:"#1abc9c",makeResponsiveBehaviour:"undefined"}).add([(new s.N).set({pad:[{a:10}],font:"Arial",hover:{color:"wheat",animation:.3},bold:!0,link:"https://www.apple.com",text:"Second",icon:{padding:30,url:"https://cdn-icons-png.flaticon.com/512/32/32339.png"}}),(new s.N).set({pad:[{a:10}],font:"Arial",hover:{color:"wheat",animation:.3},bold:!0,link:"https://www.apple.com",text:"Third",icon:{padding:30,url:"https://cdn-icons-png.flaticon.com/512/32/32339.png"}})])]),o=e.map(function(t,e){return new s.N('"'.concat(t.title,'"')).set({fluidc:"S4",text:t.title,link:t.link,isNavA:!0,url:"#myURL",id:"#"+t.title.toLowerCase(),font:"Arial",pad:[{a:20}],bold:!0,tags:{open:"sidebar:open",close:"sidebar:closed"},align:"left",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}}}})});t.el.dropdown&&(o.push(n),r.push(n));var a=(new h.m).set({column:!0}).add([new i.E("Sidebar").set({size:"S6",font:"Arial",id:"#olod",italic:!0,animation:{range:["0px","1900px"],op:{name:"animation",color:"green",width:"1px"}},pad:[{l:20},{t:20}]}),t.el.animation?o[0]:r[0],t.el.animation?o[1]:r[1],t.el.animation?o[2]:r[2],t.el.animation&&t.el.dropdown?o[3]:new i.E("").set({}).excludeFromCode(),new i.E("Company, 2025").set({pad:[{a:20}],animation:{range:["0px","1900px"],op:{name:"animation",color:"green",width:"1px"}}})]),l=(new h.m).set({column:!0}).add([new i.E("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}]})]),u=(new c.f).setup({animate:!0,radius:"1rem",isSide:!0,background:"#ecf0f1",hamColour:{opened:"#1abc9c",closed:"#e67e22"},mobileSize:"1.2em",fixed:!0,tags:{open:"sidebar:open",close:"sidebar:closed"}}).items(t.el.offcanvas?l:a),d=this.filteroRaster(t.el.id,t.customOptions);return d&&u.rasterize(d),u}},{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};"text-above-image"!==e.op.value&&"image-above-text"!==e.op.value||(r=null,n=null),"img-overlay-text"===e.op.value&&(r={text:{row:"1 / span 2",col:"3 / span 2"},image:{row:"2 / span 3",col:"3 / 3"}}),"img-leftof-text"===e.op.value&&(r={text:{row:"1",col:"1 / 3"},image:{row:"1",col:"3 / 4"}});var o=(new u.b).set({id:"#3",templateCols:n,height:"600px"}).add([new i.E("I am free").set({border:"3px solid green",font:"Arial",size:"S1",color:"#1abc9c",gpos:null!=r?r.text:null,zIndex:1}),(new a._).set({url:"https://upload.wikimedia.org/wikipedia/commons/a/ac/MSC_World_Europa_-_Saint-Nazaire_-_June_2022.jpg",width:"400px",height:"auto",gpos:null!=r?r.image:null})]),s=this.filteroRaster(t.el.id,t.customOptions);return s&&o.rasterize(s),o}},{key:"mapCircle",value:function(t){var e=t.el;return(new M.j).set({diameter:108,background:"#1abc9c",stroke:this.filtero("blast",e.id,t.customOptions),gradient:this.filtero("gradient",e.id,t.customOptions),animation:this.filtero("animation",e.id,t.customOptions),shadow:this.filtero("shadow",e.id,t.customOptions),span:this.filtero("span",e.id,t.customOptions),backgroundOp:this.filtero("background",e.id,t.customOptions),marginOp:this.filtero("margin",e.id,t.customOptions),transform:this.filtero("transform",e.id,t.customOptions),filtera:this.filtero("filter",e.id,t.customOptions),raster:this.filteroRaster(e.id,t.customOptions)})}},{key:"mapPolygon",value:function(t){var e,r=t.el,n=null!==(e=t.el.sides)&&void 0!==e?e:7;return new R.t({id:"hex"}).set({sides:n,size:300,background:"#1abc9c",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),filtera:this.filtero("filter",r.id,t.customOptions),raster:this.filteroRaster(r.id,t.customOptions)})}},{key:"mapText",value:function(t){var e,r,n=t.el;return new i.E(n.text||n.value).set({id:n.id,class:n.class,color:n.color,size:this.getElType(n.type),font:null!==(e=n.font)&&void 0!==e?e:"Arial",stroke:this.filtero("blast",n.id,t.customOptions),gradient:this.filtero("gradient",n.id,t.customOptions),animation:this.filtero("animation",n.id,t.customOptions),shadow:this.filtero("shadow",n.id,t.customOptions),span:this.filtero("span",n.id,t.customOptions),backgroundOp:this.filtero("background",n.id,t.customOptions),marginOp:this.filtero("margin",n.id,t.customOptions),transform:this.filtero("transform",n.id,t.customOptions),filtera:this.filtero("filter",n.id,t.customOptions),raster:this.filteroRaster(n.id,t.customOptions),resprop:null!==(r=n.resprop)&&void 0!==r?r:null})}},{key:"mapImage",value:function(t){var e=t.el;return new a._(e.url).set(W(W({},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),raster:this.filteroRaster(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.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.transform=this.filtero("transform",t.el.id,t.customOptions),r.shadow=this.filtero("shadow",t.el.id,t.customOptions),r.gradient=this.filtero("gradient",t.el.id,t.customOptions),r.blast=this.filtero("blast",t.el.id,t.customOptions),r.backgroundOp=this.filtero("background",t.el.id,t.customOptions),r.raster=this.filteroRaster(t.el.id,t.customOptions),r.pad=[{a:10}],e.length>0?A.a.style({el:t.el,re:r,bst:e,options:t.customOptions})[e.length-1]:(new s.N).set(r)}},{key:"mapGrid",value:function(t){var e=t.el,r=(t.customOptions.find(function(t){return"card-style"===t.op.name}),this.filtero("gradient",e.id,t.customOptions)),n=this.filtero("animation",e.id,t.customOptions),o=this.filtero("shadow",e.id,t.customOptions),i=this.filtero("margin",e.id,t.customOptions),a=this.filtero("filter",e.id,t.customOptions),s=this.filteroRaster(e.id,t.customOptions),l=this.filtero("blast",e.id,t.customOptions),c='\n new Card()\n .set({\n width: "300px", \n height: "700px",\n radius: "0.7rem", \n mar: { sides: ["all"], value: "0.8rem" }\n '.concat(void 0!==r?",\n gradient: ".concat(JSON.stringify(r)):"").concat(void 0!==n?",\n animation: ".concat(JSON.stringify(n)):"").concat(void 0!==o?",\n shadow: ".concat(JSON.stringify(o)):"").concat(void 0!==i?",\n marginOp: ".concat(JSON.stringify(i)):"").concat(void 0!==a?",\n filtera: ".concat(JSON.stringify(a)):"").concat(void 0!==l?",\n blast: ".concat(JSON.stringify(l)):"",'\n })\n .items([\n new Image(item.img).set({isFull: true, url: item.img}),\n new Text(item.title).set({ size: "S5", color: "orange" }),\n new Link("Link").set({\n text: item.title, \n url: item.link, \n background: "#3498db", \n pad: [{ lr: "0.5rem", tb: "1rem" }], \n radius: "0.4rem", \n color: "white",\n mar: [{"a": 21}]\n })\n ])'),u=t.el.backgroundCard?'\n new ZoomCard()\n .set({\n url: item.img, \n font: "Arial", \n mar: { sides: ["all"], value: "0.8rem" }, \n inpad: "1rem", \n useBrightness: true\n })\n .items([\n new Text(item.title).set({ fluidc: "S6", color: "orange" }),\n new Link("Link").set({\n text: item.title, \n url: item.link, \n background: "#3498db", \n pad: [{ lr: "0.5rem", tb: "1rem" }], \n radius: "0.4rem", \n color: "white"\n })\n ])':c;return' new FlexGrid()\n .set({\n colat: "700px",\n wrap: true,\n align: "center",\n gap: "1rem"\n '.concat(void 0!==r?",\n gradient: ".concat(JSON.stringify(r)):"").concat(void 0!==n?",\n animation: ".concat(JSON.stringify(n)):"").concat(void 0!==o?",\n shadow: ".concat(JSON.stringify(o)):"").concat(void 0!==i?",\n marginOp: ".concat(JSON.stringify(i)):"").concat(void 0!==a?",\n filtera: ".concat(JSON.stringify(a)):"").concat(void 0!==l?",\n blast: ".concat(JSON.stringify(l)):"").concat(void 0!==s?",\n raster: ".concat(JSON.stringify(s)):"",'\n })\n .items(\n [\n { img: "https://upload.wikimedia.org/wikipedia/commons/3/3a/Starship_S20.jpg", title: "Starship", link: "#ship" },\n { img: "https://upload.wikimedia.org/wikipedia/commons/1/16/Apollo_11_Launch_-_GPN-2000-000630.jpg", title: "Saturn V", link: "#saturn" },\n { img: "https://upload.wikimedia.org/wikipedia/commons/d/d6/STS120LaunchHiRes-edit1.jpg", title: "Shuttle", link: "#shuttle" }\n ].map(item => \n ').concat(u,"\n )\n )\n ")}},{key:"checkbox",value:function(t){var e=t.el,r="string"==typeof e.label?new i.E(e.label).set({size:"S6"}):e.label;return this.attachRaster((new k.S).set(W(W({},this.elOpts(e,["label"])),void 0!==r?{label:r}:{})),e,t.customOptions)}},{key:"stack",value:function(t){var e=this,r=t.el,n=(new p.B).set(this.elOpts(r)),o=Array.isArray(r.children)?r.children:null;return o&&n.add(o.map(function(r){return e.mapType(W(W({},t),{},{el:r}))})),this.attachRaster(n,r,t.customOptions)}},{key:"form",value:function(t){var e,r=this,n=t.el,o=(new P.l).set(W(W({action:null!==(e=n.action)&&void 0!==e?e:""},void 0!==n.method?{method:n.method}:{}),void 0!==n.id?{id:n.id}:{})),i=Array.isArray(n.children)?n.children:null;return i&&o.add(i.map(function(e){return r.mapType(W(W({},t),{},{el:e}))})),o}},{key:"simple",value:function(t){var e,r,n=this,o=t.el,i=Array.isArray(o.react)?o.react:[];if(!i.length)throw new Error('[nodality] a "simple" element needs a non-empty `react` array of { at, template }.');var a=(Array.isArray(o.children)?o.children:[]).map(function(e){var r=n.mapType(W(W({},t),{},{el:e})).toCode();return Array.isArray(r)?r.join(""):String(r)}).join(",\n ");return"new AreaSwitcher()\n .set(".concat(JSON.stringify(W({gap:null!==(e=o.gap)&&void 0!==e?e:"10px",height:null!==(r=o.height)&&void 0!==r?r:"700px"},void 0!==o.id?{id:o.id}:{})),")\n .react(").concat(JSON.stringify(i,null,2),")\n .add([\n ").concat(a,"\n ])")}},{key:"mapWrap",value:function(t){var e,r,n=this,o=t.el,i=null!==(e=t.el.kind)&&void 0!==e?e:"",a=new h.m(i).set(W(W({},o),{},{font:null!==(r=o.font)&&void 0!==r?r:"Arial",stroke:this.filtero("blast",o.id,t.customOptions),gradient:this.filtero("gradient",o.id,t.customOptions),animation:this.filtero("animation",o.id,t.customOptions),shadow:this.filtero("shadow",o.id,t.customOptions),transform:this.filtero("transform",o.id,t.customOptions),filtera:this.filtero("filter",o.id,t.customOptions),raster:this.filteroRaster(o.id,t.customOptions)})),s=Array.isArray(o.children)?o.children:null;return s&&a.add(s.map(function(e){return n.mapType(W(W({},t),{},{el:e}))})),a}},{key:"mapUList",value:function(t){var e,r,n=this,o=t.el,a=null!==(e=t.el.kind)&&void 0!==e?e:"",s=new x.e(a).set(W(W({},o),{},{font:null!==(r=o.font)&&void 0!==r?r:"Arial",stroke:this.filtero("blast",o.id,t.customOptions),gradient:this.filtero("gradient",o.id,t.customOptions),animation:this.filtero("animation",o.id,t.customOptions),shadow:this.filtero("shadow",o.id,t.customOptions),transform:this.filtero("transform",o.id,t.customOptions),filtera:this.filtero("filter",o.id,t.customOptions),raster:this.filteroRaster(o.id,t.customOptions)})),l=Array.isArray(o.items)?o.items:null;return l&&s.setItems(l.map(function(e){return"string"==typeof e?new i.E(e).set({}):n.mapType(W(W({},t),{},{el:e}))})),s}},{key:"getElType",value:function(t){return"p"===t?"S6":"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:"elOpts",value:function(t){for(var e=new Set(["type","children","items","breakpoints","inputType","text","url"].concat(function(t){return function(t){if(Array.isArray(t))return D(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return D(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)?D(t,e):void 0}}(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.")}()}(arguments.length>1&&void 0!==arguments[1]?arguments[1]:[]))),r={},n=0,o=Object.keys(t);n<o.length;n++){var i=o[n];e.has(i)||(r[i]=t[i])}return r}},{key:"attachRaster",value:function(t,e,r){var n=this.filteroRaster(e.id,r);return n&&t&&"function"==typeof t.rasterize&&t.rasterize(n),t}},{key:"filteroRaster",value:function(t,e){var r=(e||[]).filter(function(e){return e&&"string"==typeof e.op&&n.RASTER_OP_NAMES.includes(e.op)&&(!e.target||t&&e.target.includes(t))});return r.length>0?r:void 0}}],null&&z(t.prototype,null),e&&z(t,e),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e}()},1236:(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 o(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 i(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?o(Object(r),!0).forEach(function(e){a(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):o(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function a(t,e,r){return(e=l(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,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,l(n.key),n)}}function l(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 c(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(c=function(){return!!t})()}function u(t){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},u(t)}function d(t,e){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},d(t,e)}r.d(e,{i:()=>f});var f=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=u(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,c()?Reflect.construct(e,r||[],u(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&&d(t,e)}(e,t),r=e,o=[{key:"set",value:function(t){var e=t.breakpoints,r=t.id,n=t.area;if(this.options={breakpoints:e},this._id=r,this._area=n,!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 i(i({},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.res=this.internalDiv,this._id&&this.internalDiv.setAttribute("id",this._id),this._area&&(this.internalDiv.style.gridArea=this._area),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 o=e[n],a=n<e.length-1?e[n+1]-1:r;return i(i({},t),{},{range:{from:o,to:a}})})}},{key:"applyView",value:function(){var t=this,e=(window.innerWidth,this.breakpoints.map(function(t){return t.at})),r=this.breakpoints.map(function(t){return t.at});this.createRanges(r),this.addRanges(this.breakpoints,e).forEach(function(e){var r="(min-width: ".concat(e.range.from,"px) and (max-width: ").concat(e.range.to,"px)");window.matchMedia(r).matches&&t.currentView!==e.view.render()&&(t.internalDiv.innerHTML="",t.internalDiv.appendChild(e.view.render()),t.currentView=e.view.render())})}},{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}}],o&&s(r.prototype,o),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,o}(r(2332).y)},1353:(t,e,r)=>{r.d(e,{A:()=>s});var n=r(8424);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 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,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 s=function(){return t=function t(e,r){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};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.container.style.width="100%",this.container.style.margin="20px auto",this.container.style.textAlign="center",this.elements=e,this.currentSlideIndex=0,this.buttons=r,this.tintColor=o.tintColor||"green",this.inactiveColor=o.inactiveColor||"gray",this.options=o,!this.buttons){var i={leftButton:new n.$("L").set({frame:{width:50,height:50},svg:this.createArrowSVG("left",28,this.tintColor),color:this.tintColor,radius:"100%",mar:[{a:"1rem"}]}),rightButton:new n.$("R").set({frame:{width:50,height:50},svg:this.createArrowSVG("right",28,this.tintColor),color:this.tintColor,radius:"100%",mar:[{a:"1rem"}]})};this.buttons=i}this.createSlider(),this.init()},e=[{key:"createArrowSVG",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"left",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:28,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"currentColor",n="http://www.w3.org/2000/svg",o=document.createElementNS(n,"svg");o.setAttribute("viewBox","0 0 24 24"),o.setAttribute("width",String(e)),o.setAttribute("height",String(e)),o.setAttribute("aria-hidden","true"),o.style.display="block",o.style.pointerEvents="none";var i=document.createElementNS(n,"path");return i.setAttribute("fill",r),"left"===t?i.setAttribute("d","M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"):i.setAttribute("d","M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6z"),o.appendChild(i),o}},{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(){var t,e=this;this.slider=document.createElement("div"),this.slider.style.width="100%",this.slider.style.height=null!==(t=this.options.height)&&void 0!==t?t:"400px",this.slider.style.borderRadius="20px",this.slider.style.overflow="hidden",this.slider.style.position="relative",this.slider.style.marginBottom="15px";var r=document.createElement("div");this.slidesWrapper=r,r.style.display="flex",r.style.overflowX="scroll",r.style.scrollBehavior="smooth",r.style.scrollSnapType="x mandatory",this.elements.forEach(function(t,n){var o=document.createElement("div");o.setAttribute("class","slide"),o.style.display="flex",o.style.justifyContent="center",o.style.alignItems="center",o.style.flexShrink="0",o.style.width="100%",o.style.height="400px",o.style.transformOrigin="center center",o.style.transform="scale(1)",o.style.scrollSnapAlign="center";var i=t.render();o.appendChild(i),i.style.cursor="pointer",i.addEventListener("click",function(){e.showLightbox(n)}),r.appendChild(o)}),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.arrowPrev.style.display="flex",this.arrowPrev.style.alignItems="center",this.arrowPrev.style.justifyContent="center",this.arrowPrev.style.backgroundColor="white",this.arrowPrev.style.padding=".4rem",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",this.arrowNext.style.display="flex",this.arrowNext.style.alignItems="center",this.arrowNext.style.justifyContent="center",this.arrowNext.style.backgroundColor="white",this.arrowNext.style.padding=".4rem";var n=document.createElement("div");n.style.position="absolute",n.style.bottom="10%",n.style.left="50%",n.style.transform="translateX(-50%)",n.style.textAlign="center",n.style.background="#ffffff",n.style.borderRadius="1rem",n.style.padding=".2rem",n.style.boxShadow="3px 3px 10px #000",this.options.hideSelector&&(n.style.display="none"),this.elements.forEach(function(t,r){var o=document.createElement("a");o.style.display="inline-block",o.style.height="15px",o.style.width="15px",o.style.borderRadius="50%",o.style.backgroundColor=e.inactiveColor,o.style.margin="0 10px",o.style.cursor="pointer",o.dataset.index=r,n.appendChild(o)});var o=document.createElement("div");o.style.display="flex",o.style.justifyContent="flex-start",o.style.margin="1rem",o.style.gap="10px",o.style.flexWrap="nowrap",o.style.overflowX="auto",this.options.hideThumbnails&&(o.style.display="none"),r.querySelectorAll(".slide").forEach(function(t,r){var n=document.createElement("div");n.className="slider-thumb",n.dataset.index=r.toString(),n.style.width="60px",n.style.height="40px",n.style.border="2px solid ".concat(e.inactiveColor),n.style.borderRadius="5px",n.style.overflow="hidden",n.style.cursor="pointer",n.style.flexShrink="0",n.style.position="relative";var i=(t.firstElementChild||t.cloneNode(!0)).cloneNode(!0);i.style.transform="scale(0.2)",i.style.transformOrigin="top left",i.style.width="300px",i.style.height="300px",i.style.backgroundSize="contain",i.style.pointerEvents="none",n.appendChild(i),o.appendChild(n)}),this.slider.appendChild(this.arrowPrev),this.slider.appendChild(this.arrowNext),this.slider.appendChild(r),this.slider.appendChild(n),this.container.appendChild(this.slider),this.container.appendChild(o),this.slidesWrapper=r,this.navLinks=Array.from(n.querySelectorAll("a")),this.thumbs=Array.from(o.querySelectorAll(".slider-thumb"))}},{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)})}),this.thumbs.forEach(function(e){e.addEventListener("click",function(){var r=parseInt(e.dataset.index,10);t.moveToSlide(r)})}),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){var r=parseInt(e.dataset.index,10);e.style.backgroundColor=r===t.currentSlideIndex?t.tintColor:t.inactiveColor}),this.thumbs.forEach(function(e){var r=parseInt(e.dataset.index,10);e.style.borderColor=r===t.currentSlideIndex?t.tintColor:t.inactiveColor});var e=this.slidesWrapper.querySelector(".slide"),r=e?e.offsetWidth:this.slidesWrapper.clientWidth;this.slidesWrapper.scrollTo({left:this.currentSlideIndex*r,behavior:"smooth"})}},{key:"showLightbox",value:function(t){var e=this,r=t,n=document.createElement("div");n.style.position="fixed",n.style.top="0",n.style.left="0",n.style.width="100vw",n.style.height="100vh",n.style.backgroundColor="rgba(0,0,0,0.9)",n.style.display="flex",n.style.alignItems="center",n.style.justifyContent="center",n.style.zIndex="9999",n.style.cursor="default";var o=document.createElement("div");o.style.position="relative",o.style.display="flex",o.style.alignItems="center",o.style.justifyContent="center",o.style.maxWidth="90%",o.style.maxHeight="90%",n.appendChild(o);var i=function(t){o.innerHTML="";var r,n=e.elements[t].render();if(r="IMG"===n.tagName?n:n.querySelector("img")){var i=document.createElement("img");i.src=r.src,i.style.maxWidth="90vw",i.style.maxHeight="90vh",i.style.objectFit="contain",i.style.pointerEvents="none",i.style.display="block",o.appendChild(i)}else{var a=n.cloneNode(!0);a.style.width="90vw",a.style.height="90vh",a.style.maxWidth="90vw",a.style.maxHeight="90vh",a.style.pointerEvents="none",o.appendChild(a)}};i(r);var a=this.buttons.leftButton.render().cloneNode(!0),s=this.buttons.rightButton.render().cloneNode(!0),l={position:"absolute",top:"50%",transform:"translateY(-50%)",background:"white",border:"none",borderRadius:"50%",display:"flex",alignItems:"center",justifyContent:"center",width:"50px",height:"50px",margin:"1rem",padding:"0",zIndex:"10000",cursor:"pointer",boxShadow:"0 2px 8px rgba(0,0,0,0.4)"};Object.assign(a.style,l,{left:"10px"}),Object.assign(s.style,l,{right:"10px"}),a.addEventListener("click",function(t){t.stopPropagation(),r=r-1<0?e.elements.length-1:r-1,i(r)}),s.addEventListener("click",function(t){t.stopPropagation(),r=(r+1)%e.elements.length,i(r)}),n.appendChild(a),n.appendChild(s);var c=document.createElement("div");c.innerHTML="✕",c.style.position="absolute",c.style.top="15px",c.style.right="20px",c.style.fontSize="2rem",c.style.color="white",c.style.cursor="pointer",c.style.zIndex="10000",c.style.userSelect="none",c.style.transition="transform 0.2s ease",c.addEventListener("mouseenter",function(){c.style.transform="scale(1.2)"}),c.addEventListener("mouseleave",function(){c.style.transform="scale(1)"}),c.addEventListener("click",function(t){t.stopPropagation(),document.body.removeChild(n),document.removeEventListener("keydown",u)}),n.appendChild(c),n.addEventListener("click",function(){document.body.removeChild(n),document.removeEventListener("keydown",u)});var u=function(t){"Escape"===t.key?(document.body.removeChild(n),document.removeEventListener("keydown",u)):"ArrowLeft"===t.key?(r=r-1<0?e.elements.length-1:r-1,i(r)):"ArrowRight"===t.key&&(r=(r+1)%e.elements.length,i(r))};document.addEventListener("keydown",u),document.body.appendChild(n)}},{key:"render",value:function(t){if(!t)return this.container;document.querySelector(t).appendChild(this.container)}}],e&&i(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e}()},1371:(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 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,i(n.key),n)}}function i(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:()=>a}),r(2332);var a=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,this.radioCount=t.items.length;for(var e=document.createElement("div"),r=t.items,n=0;n<r.length;n++){var o=document.createElement("label");r.font&&(o.style.font=r.font),r.color&&(o.style.color=r.color),r.exact&&(o.style.fontSize=r.exact);var i=document.createTextNode(r[n]);o.appendChild(i),o.setAttribute("for",r[n]);var a=document.createElement("input");a.setAttribute("type","radio"),a.setAttribute("id","S".concat(n)),a.setAttribute("value",r[n].split(" ").join("")),a.style.appearance="none",a.style.width="20px",a.style.height="20px",a.style.border=this.options.tint?"2px solid ".concat(this.options.tint):"2px solid #007BFF",a.style.borderRadius="50%",a.style.outline="none",a.style.cursor="pointer",a.style.transition="0.3s",this.options.font&&(o.style.fontFamily=this.options.font),t.multiple?a.setAttribute("name",r[n].split(" ").join("")):a.setAttribute("name",t.name),e.appendChild(a),e.appendChild(o),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(){for(var t=[],e=0;e<this.radioCount;e++)if(document.querySelector("#S".concat(e)).checked){var r=document.querySelector("#S".concat(e));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){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)}}])&&o(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e}();"undefined"!=typeof window&&(window.RadioGroup=a)},1382:(t,e,r)=>{r.d(e,{_H:()=>o,sy:()=>i});var n='"([A-Za-z_$][A-Za-z0-9_$]*)"\\s*:';function o(){return new RegExp(n,"g")}function i(t){var e,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:4;return"string"!=typeof(e=JSON.stringify(t,null,r))?e:e.replace(o(),"$1:")}},1557:(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 o(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 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,a(n.key),n)}}function a(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 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,s()?Reflect.construct(e,r||[],l(t).constructor):e.apply(t,r))}(this,e)).res=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,(a=[{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 o=document.createElement("input");o.type="checkbox",o.style.position="relative",o.style.marginRight="0.5rem";var i=t.size||"24px";o.style.width=i,o.style.height=i,t.customStyle&&(o.style.appearance="none"),o.style.border="2px solid #ccc",o.style.borderRadius="4px",o.style.backgroundColor=t.backgroundColor||"white",o.style.cursor="pointer",o.style.transition="background-color 0.2s ease, border-color 0.2s ease",o.style.display="inline-block",o.style.setProperty("--checked-bg-color",t.checkedBackgroundColor||"#4CAF50"),o.style.setProperty("--checkmark-color","white"),o.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 a=document.createElement("style");a.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(a),t.mar&&this.mar(t.mar),t.pad&&this.pad(t.pad),t.respad&&this.respad(t.respad),t.resmar&&this.resmar(t.resmar),o.addEventListener("change",function(){o.checked?(o.style.backgroundColor=t.checkedBackgroundColor||"#4CAF50",o.style.borderColor=t.checkedBackgroundColor||"#4CAF50"):(o.style.backgroundColor=t.backgroundColor||"white",o.style.borderColor="#ccc")}),t.name&&o.setAttribute("name",t.name),n.appendChild(o);var s=document.createElement("div");if("function"==typeof(null===(r=t.label)||void 0===r?void 0:r.render))s.appendChild(t.label.render());else{var l=document.createTextNode(t.title||"Label");s.appendChild(l)}return s.style.opacity=.8,s.style.transition="opacity ease 0.2s, transform ease 0.2s",n.appendChild(s),this.res=n,this}},{key:"getValue",value:function(){return this.res.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,o,i,a,s=[],l=!0,c=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==e);l=!0);}catch(t){c=!0,o=t}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(t,e)||function(t,e){if(t){if("string"==typeof t)return o(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)?o(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],i=e[1];return"string"==typeof i?"".concat(r,': "').concat(i,'"'):"object"===n(i)&&null!==i?"function"==typeof i.toCode?"".concat(r,": ").concat(i.toCode()[0]):"".concat(r,": ").concat(JSON.stringify(i,null,4)):"".concat(r,": ").concat(i)}).join(",\n ");return["new Checkbox().set({\n ".concat(t,"\n})")]}},{key:"render",value:function(t){if(!t)return this.res;document.querySelector(t).appendChild(this.res)}}])&&i(r.prototype,a),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,a}(r(2332).y);"undefined"!=typeof window&&(window.Checkbox=u)},1632:(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 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,i(n.key),n)}}function i(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 s(t){return s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},s(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,{B:()=>c});var c=function(t){function e(t){var r;!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=s(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||[],s(t).constructor):e.apply(t,r))}(this,e))._noTheme=!0,r.code=[],r.setup();for(var o=0;o<t.length;o++)r.res.appendChild(t[o].render().render());return 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&&l(t,e)}(e,t),r=e,(i=[{key:"setup",value:function(){var t=document.createElement("div");t.style.padding=0,t.style.margin=0,this.res=t}},{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:"padding",value:function(t){return this.res.style.padding="".concat(t,"px"),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:"border",value:function(t,e){return this.res.style.border="".concat(e,"px solid ").concat(t),this}},{key:"render",value:function(t){if(!t)return this.res;document.querySelector(t).appendChild(this.res)}}])&&o(r.prototype,i),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,i}(r(2332).y)},1873:(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 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,i(n.key),n)}}function i(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 s(t){return s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},s(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,{o:()=>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=s(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||[],s(t).constructor):e.apply(t,r))}(this,e)).setup(),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,(i=[{key:"setup",value:function(){var t=document.createElement("div");t.style.display="flex",t.style.flexDirection="column",t.style.justifyContent="center",t.style.alignItems="center",t.style.width="100%",t.style.height="auto",t.style.margin=0,t.style.padding=0,this.res=t}},{key:"set",value:function(t){return t.id&&this.res.setAttribute("id",id),this.commonMethods(t),this}},{key:"toCode",value:function(){return[""]}},{key:"items",value:function(t){for(var e=0;e<t.length;e++){var r=t[e].render();this.res.appendChild(r)}return this}},{key:"add",value:function(t){for(var e=0;e<t.length;e++){var r=t[e].render();this.res.appendChild(r)}return this}},{key:"render",value:function(t){if(!t)return this.res;document.querySelector(t).appendChild(this.res)}}])&&o(r.prototype,i),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,i}(r(2332).y)},1980:(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 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,i(n.key),n)}}function i(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 s(t){return s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},s(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,{W:()=>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=s(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||[],s(t).constructor):e.apply(t,r))}(this,e))._noTheme=!0,t.res=document.createElement("meta"),t.res.setAttribute("name","viewport"),t.res.setAttribute("content","width=device-width, initial-scale=1"),t.charset=document.createElement("meta"),t.charset.setAttribute("charset","UTF-8"),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,(i=[{key:"add",value:function(){document.head.appendChild(this.res),document.head.appendChild(this.charset)}}])&&o(r.prototype,i),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,i}(r(2332).y)},2027:(t,e,r)=>{r.d(e,{a:()=>s});var n=r(7108);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 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,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 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)},e=[{key:"style",value:function(t){for(var e=t.bst,r=t.el,o=t.re,i=(t.options,[]),a=0;a<e.length;a++)e[a].target&&(r.id,e[a].target[0]);for(a=0;a<e.length;a++){var s=!0;e[a].target&&(s=!1,r.id===e[a].target[0]&&(s=!0));var l=e[a].op.ops.split("-");s&&l.includes("air")&&(o.borderObj={color:"#1abc9c",radius:"0rem",width:"3px"},o.color="#1abc9c",o.background="transparent"),s&&l.includes("round")&&(l.includes("air")?o.borderObj={width:"4px",radius:"0.7rem",color:"#1abc9c"}:o.borderObj={width:"0px",radius:"0.7rem",color:"#1abc9c"}),s&&l.includes("full")&&(o.background="#3498db",o.borderObj&&o.borderObj.radius&&(o.borderObj.radius="0.3rem"),o.color="white"),s&&l.includes("pill")&&(o.background="#3498db",o.borderObj.radius="9999px",o.color="white"),s&&l.includes("hover")&&(o.hover={color:"#1abc9c",background:"orange"}),i.push((new n.N).set(o))}return i}}],null&&i(t.prototype,null),e&&i(t,e),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e}()},2332:(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)}r.d(e,{y:()=>m});var o="nodality.theme.mode",i="nodality:theme",a={mode:function(){try{var t=localStorage.getItem(o);if("light"===t||"dark"===t)return t}catch(t){}return"undefined"!=typeof window&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}(),tokens:{light:{},dark:{}},defaults:{light:{color:"#111"},dark:{}},setDefaults:function(t){return t&&"object"===n(t)&&(t.light&&(this.defaults.light=Object.assign({},this.defaults.light,t.light)),t.dark&&(this.defaults.dark=Object.assign({},this.defaults.dark,t.dark)),this._broadcast()),this},setTokens:function(t){return t&&"object"===n(t)&&(t.light&&Object.assign(this.tokens.light,t.light),t.dark&&Object.assign(this.tokens.dark,t.dark)),this},get current(){return this.tokens[this.mode]||{}},set:function(t){if("light"!==t&&"dark"!==t)return this;if(t===this.mode)return this;this.mode=t;try{localStorage.setItem(o,t)}catch(t){}return this._broadcast(),this},toggle:function(){return this.set("dark"===this.mode?"light":"dark")},subscribe:function(t){if("undefined"==typeof document)return function(){};var e=function(e){return t(e.detail.mode,e.detail.tokens)};document.addEventListener(i,e);try{t(this.mode,this.current)}catch(t){}return function(){return document.removeEventListener(i,e)}},_broadcast:function(){"undefined"!=typeof document&&document.dispatchEvent(new CustomEvent(i,{detail:{mode:this.mode,tokens:this.current}}))}},s=r(9828),l=r(1382);function c(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,o,i,a,s=[],l=!0,c=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==e);l=!0);}catch(t){c=!0,o=t}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(t,e)||d(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 u(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=d(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return a=t.done,t},e:function(t){s=!0,i=t},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw i}}}}function d(t,e){if(t){if("string"==typeof t)return f(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)?f(t,e):void 0}}function f(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 p(t){return p="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},p(t)}function h(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,y(n.key),n)}}function y(t){var e=function(t){if("object"!=p(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=p(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==p(e)?e:e+""}var m=function(){function t(){var e,r,n,o=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){var e=t.op;t.transform||(e=t.op),e.duration||(e.duration="3s-ease-in-out"),o.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="",i="",a="",s="",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:")?i=t.replace("tz:",""):t.startsWith("scale(")?a=t:t.startsWith("skew(")?s=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=o.setDefault(r),n=o.setDefault(n),i=o.setDefault(i);var f="";if("0px"!=n&&"0px"!=r&&"0px"!=i?f+="translate3d(".concat(r,", ").concat(n,", ").concat(i,")"):"0px"==n&&"0px"==r||(f+="translate(".concat(r,", ").concat(n,")")),a&&(f+=" ".concat(a)),l&&(f+=" ".concat(l)),s&&(f+=" ".concat(s)),c&&(f+=" ".concat(c)),u&&(f+=" ".concat(u)),f){if(t.op.duration){var p=t.op.duration.replace(/^(\d+)(s)-/,function(t,e,r){return e/2+r+" "}),h="transform ".concat(p,", opacity ").concat(p);o.res.style.transition=h}else o.res.style.transition="transform 3s ease-in-out, opacity 3s ease-in-out";t.op.static&&(o.res.style.transition=""),(o.blastTarget||o.res).style.transform=f,o.res.style.opacity=d}else console.warn("[nodality] transform produced no geometric value - check `values`")}};e.on?o.res.addEventListener(e.on,function(){e.delay?setTimeout(function(){r()},e.delay):r()}):o._on(window,"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) "),o.res.style.opacity="1"}),t&&(o.res.style.transform=t.trim())};if(e.on)o.res.addEventListener("mouseout",function(){e.keep||n()});else{var i=1e3*parseFloat(e.duration),a=e.closeAfter?e.closeAfter:0;setTimeout(function(){e.keep||n()},i/2+a)}e.hardCSS&&(o.res.style.transform=e.hardCSS)}else console.warn("[nodality] reactOnTransform: unrecognised transform descriptor - ignored")},(r=y(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},this.openedElements=new WeakMap,"undefined"!=typeof document&&(this._themeUnsub=a.subscribe(function(t){return o._applyTheme(t)}),Promise.resolve().then(function(){return o._applyTheme(a.mode)}))}return e=t,r=[{key:"rasterize",value:function(t){var e=this;if(t&&0!==t.length&&!this._rasterHandle&&!this._rasterCancelled&&"undefined"!=typeof document&&"undefined"!=typeof setTimeout){var r=0,n=function(){if(!e._rasterHandle&&!e._rasterCancelled){if(e.res&&e.res.isConnected){try{e._rasterHandle=(0,s.applyRasterPipeline)(e.res,t)}catch(t){return void console.warn("[nodality] raster pipeline skipped:",t)}if(e._rasterHandle)return}++r<80&&(e._rasterTimer=setTimeout(n,50))}};this._rasterTimer=setTimeout(n,0),this._track(function(){return clearTimeout(e._rasterTimer)})}}},{key:"isHidden",value:function(t){t&&(this.res.style.display="none")}},{key:"theme",value:function(t){var e=this;return t&&"object"===p(t)?(this._themeMap=t,this._applyTheme(a.mode),this._themeUnsub||(this._themeUnsub=a.subscribe(function(t){return e._applyTheme(t)})),this):this}},{key:"_track",value:function(t){return"function"!=typeof t||(this._disposables||(this._disposables=[])).push(t),t}},{key:"_on",value:function(t,e,r,n){return t&&"function"==typeof t.addEventListener?(t.addEventListener(e,r,n),this._track(function(){return t.removeEventListener(e,r,n)}),r):r}},{key:"destroy",value:function(){if("function"==typeof this._themeUnsub&&(this._themeUnsub(),this._themeUnsub=null),this._rasterHandle&&"function"==typeof this._rasterHandle.destroy)try{this._rasterHandle.destroy()}catch(t){}if(this._rasterHandle=null,this._rasterCancelled=!0,this._disposables){var t,e=u(this._disposables);try{for(e.s();!(t=e.n()).done;){var r=t.value;try{r()}catch(t){}}}catch(t){e.e(t)}finally{e.f()}this._disposables.length=0}return this._responsiveTasks=null,this._responsiveHandler=null,this.res&&this.res.parentNode&&this.res.parentNode.removeChild(this.res),this}},{key:"_applyTheme",value:function(t){if(!this._noTheme&&this.res)if(this._themeMap){var e=this._themeMap[t];if(!e)return;for(var r in e)this.res.style[r]=e[r]}else{var n=a.defaults&&a.defaults[t];if(n)for(var o in this._themeOriginal||(this._themeOriginal={}),n)o in this._themeOriginal||(this._themeOriginal[o]=this.res.style[o]||""),this._themeOriginal[o]||(this.res.style[o]=n[o])}}},{key:"vars",value:function(t){if(!t||"object"!==p(t))return this;for(var e in t)this.res.style.setProperty(e,String(t[e]));return this}},{key:"keySet",value:function(t){if(this.temporaryVal=1,Array.isArray(t)){for(var e=0;e<t.length;e++)t[e]&&null!=t[e].key&&(this.res.style[t[e].key]=t[e].value);return this}return this.res.style[t.key]=t.value,this}},{key:"commonMethods",value:function(t){var e={exact:"fontSize",cursor:"cursor",width:"width",maxWidth:"maxWidth",height:"height",maxHeight:"maxHeight",radius:"borderRadius",lineHeight:"lineHeight",background:"background",color:"color",font:"fontFamily",opacity:"opacity",gap:"gap",minHeight:"minHeight",position:"position",inset:"inset",top:"top",right:"right",bottom:"bottom",left:"left",zIndex:"zIndex",flex:"flex",flexShrink:"flexShrink",flexGrow:"flexGrow",flexBasis:"flexBasis",flexWrap:"flexWrap",alignSelf:"alignSelf",display:"display",gridTemplateColumns:"gridTemplateColumns",gridTemplateRows:"gridTemplateRows",rowGap:"rowGap",columnGap:"columnGap",cols:"gridTemplateColumns",rows:"gridTemplateRows",areas:"gridTemplateAreas",area:"gridArea",letterSpacing:"letterSpacing",textTransform:"textTransform",whiteSpace:"whiteSpace",overflowWrap:"overflowWrap",wordBreak:"wordBreak",wordWrap:"wordWrap",boxShadow:"boxShadow",backdropFilter:"backdropFilter",WebkitBackdropFilter:"WebkitBackdropFilter",overflow:"overflow",overflowX:"overflowX",overflowY:"overflowY",WebkitOverflowScrolling:"WebkitOverflowScrolling",WebkitTapHighlightColor:"WebkitTapHighlightColor",minWidth:"minWidth",boxSizing:"boxSizing",pointerEvents:"pointerEvents",userSelect:"userSelect",WebkitUserSelect:"WebkitUserSelect",textAlign:"textAlign",transition:"transition"};for(var r in e)null!=t[r]&&(this.res.style[e[r]]=t[r]);return"string"==typeof t.transform&&(this.res.style.transform=t.transform),t.pad&&this.pad(t.pad),t.mar&&this.mar(t.mar),t.respad&&this.respad(t.respad),t.borderObj&&t.borderObj.width&&this.borderObj(t.borderObj),t.resmar&&this.resmar(t.resmar),t.hover&&this.hover(t.hover),t.size&&this.fluidCopy(t.size),t.resprop&&this.resprop(t.resprop,t),t.vars&&this.vars(t.vars),t.keySet&&this.keySet(t.keySet),t.noTheme&&(this._noTheme=!0),t.theme&&this.theme(t.theme),t.hide&&this.isHidden(t.hide),t.raster&&this.rasterize(t.raster),t.center&&this.center(t.center,{display:t.disp||t.display,flexDirection:t.flexDir||t.flexDirection}),t.transform&&"object"===p(t.transform)&&this.reactOnTransform(t.transform),void 0!==t.opacity&&(this.res.style.opacity=t.opacity),t.bold?this.res.style.fontWeight="bold":null!=t.weight&&(this.res.style.fontWeight=t.weight),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&&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,this.prevBoxShadow=this.res.style.boxShadow,t.animation&&(this.res.style.transition="".concat(t.animation),this.res.style.transitionProperty="background-color, color, border, box-shadow, transform"),this.prevTransform=this.res.style.transform,this.res.onmouseout=function(){e.res.style.backgroundColor="".concat(e.prevColor),e.res.style.color="".concat(e.foreColor),e.res.style.border=e.prevBorder,null==t.scale&&null==t.transform||(e.res.style.transform=e.prevTransform||""),null!=t.boxShadow&&(e.res.style.boxShadow=e.prevBoxShadow||"")},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,o=null!==(r=t.border.color)&&void 0!==r?r:"#2ECC71";e.res.style.border=n?"".concat(n,"px solid ").concat(o):"1px solid #2ECC71"}if(null!=t.scale||null!=t.transform){var i=e.prevTransform?"".concat(e.prevTransform," "):"",a=[];null!=t.transform&&a.push(t.transform),null!=t.scale&&a.push("scale(".concat(t.scale,")")),e.res.style.transform="".concat(i).concat(a.join(" "))}null!=t.boxShadow&&(e.res.style.boxShadow=t.boxShadow)},this}},{key:"onScroll",value:function(t){var e=this,r=function(t){if(null==t)return{num:0,unit:"px"};var e=String(t).match(/^(-?[\d.]+)(.*)$/);return e?{num:parseFloat(e[1]),unit:e[2]||"px"}:{num:0,unit:"px"}},n=function(t){var r=t&&null!=t.tx?t.tx:"0px",n=t&&null!=t.ty?t.ty:"0px";e.res.style.transform="translate3d(".concat(r,", ").concat(n,", 0)")};"opacity"===t.value?this.res.style.opacity=t.valMin:"scale"===t.value?this.res.style.transform="scale(".concat(t.valMin,")"):"trn"===t.value&&n(t.valMin);var o=function(){if("trn"!==t.value){var o=e.smartRange(window.scrollY,{min:t.from,max:t.to},{min:t.valMin,max:t.valMax});"opacity"===t.value?e.res.style.opacity=o:"scale"===t.value&&(e.res.style.transform="scale(".concat(o,")"))}else{for(var i={},a=["tx","ty"],s=0;s<a.length;s++){var l=a[s],c=t.valMin&&null!=t.valMin[l],u=t.valMax&&null!=t.valMax[l];if(c||u){var d=r(c?t.valMin[l]:u?t.valMax[l]:"0px"),f=r(u?t.valMax[l]:c?t.valMin[l]:"0px"),p=e.smartRange(window.scrollY,{min:t.from,max:t.to},{min:d.num,max:f.num});i[l]="".concat(p).concat(d.unit)}}n(i)}};this._on(window,"scroll",o),0===t.from&&o()}},{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:"_setupResponsiveManager",value:function(){var t=this;this._responsiveTasks=this._responsiveTasks||[];var e=function(){t._responsiveTasks.forEach(function(t){t()})};this._responsiveHandler||(this._responsiveHandler=e,this._on(window,"resize",e)),setTimeout(function(){e()},0)}},{key:"resprop",value:function(e,r){var n=this;this.options=r;var o={default:[0,1e5],xs:[0,575],sm:[576,767],md:[768,991],lg:[992,1199],xl:[1200,1399],xxl:[1400,1e5]},i=["resprop","breakpoint","value","values","range"],a={flexDir:"flexDirection",dir:"flexDirection",justify:"justifyContent",align:"alignItems",wrap:"flexWrap",bg:"background",radius:"borderRadius",z:"zIndex",exact:"fontSize"},s=function(t){var e=a[t]||t;return"undefined"==typeof console||"function"==typeof n[t]||e in n.res.style||console.warn('[nodality] resprop: "'.concat(t,'" is not a CSS property or component method — ignored.')+(a[t]?"":" Did you mean one of: ".concat(Object.keys(a).join(", "),"?"))),e};e.forEach(function(t){void 0!==o[t.breakpoint]?t.range=o[t.breakpoint]:Array.isArray(t.breakpoint)&&2===t.breakpoint.length?t.range=[parseInt(t.breakpoint[0],10),parseInt(t.breakpoint[1],10)]:t.range=[0,parseInt(t.breakpoint,10)]}),e.sort(function(t,e){return t.range[1]-e.range[1]});var l=e.find(function(t){return"default"===t.breakpoint});l||(l={breakpoint:"default",range:o.default},e.unshift(l));var u=new Set;e.forEach(function(t){Object.keys(t).forEach(function(t){i.includes(t)||"range"===t||u.add(t)})}),u.forEach(function(t){void 0===l[t]&&(l[t]=n.options[t]||"initial")}),this._responsiveTasks=this._responsiveTasks||[],this._responsiveTasks.push(function(){for(var r=t.viewportWidth(),o=l,a=0;a<e.length;a++){var d=e[a],f=c(d.range,2),p=f[0],h=f[1];if("default"!==d.breakpoint&&r>=p&&r<=h){o=d;break}}for(var y in u.forEach(function(t){if("keySet"===t){var e=l[t];e&&e.key&&(n.res.style[e.key]=e.value)}else n.res.style[s(t)]=l[t]}),o)if("exact"!==y){if(!i.includes(y)&&"range"!==y){var m=o[y];"keySet"===y&&m&&m.key?n.res.style[m.key]=m.value:"function"==typeof n[y]?n[y](m):n.res.style[s(y)]=m}}else n.res.style.fontSize=o[y]}),this._setupResponsiveManager()}},{key:"respad",value:function(e){var r=this,n={default:[0,1e5],xs:[0,575],sm:[576,767],md:[768,991],lg:[992,1199],xl:[1200,1399],xxl:[1400,1e5]};e.forEach(function(t){void 0!==n[t.breakpoint]?t.range=n[t.breakpoint]:Array.isArray(t.breakpoint)&&2===t.breakpoint.length?t.range=[parseInt(t.breakpoint[0],10),parseInt(t.breakpoint[1],10)]:t.range=[parseInt(t.breakpoint,10),1e5]}),e.sort(function(t,e){return t.range[0]-e.range[0]});var o=e.find(function(t){return"default"===t.breakpoint});o||(o={breakpoint:"default",range:n.default},e.unshift(o)),void 0===o.values&&(o.values=this.options&&this.options.pad||null),this._responsiveTasks=this._responsiveTasks||[],this._responsiveTasks.push(function(){for(var n=t.viewportWidth(),i=o,a=0;a<e.length;a++){var s=e[a],l=c(s.range,2),u=l[0],d=l[1];if("default"!==s.breakpoint&&n>=u&&n<=d){i=s;break}}var f=void 0!==i.values?i.values:o.values;null!=f&&r.pad(f)}),this._setupResponsiveManager()}},{key:"resmar",value:function(e){var r=this,n={default:[0,1e5],xs:[0,575],sm:[576,767],md:[768,991],lg:[992,1199],xl:[1200,1399],xxl:[1400,1e5]};e.forEach(function(t){void 0!==n[t.breakpoint]?t.range=n[t.breakpoint]:Array.isArray(t.breakpoint)&&2===t.breakpoint.length?t.range=[parseInt(t.breakpoint[0],10),parseInt(t.breakpoint[1],10)]:t.range=[parseInt(t.breakpoint,10),1e5]}),e.sort(function(t,e){return t.range[0]-e.range[0]});var o=e.find(function(t){return"default"===t.breakpoint});o||(o={breakpoint:"default",range:n.default},e.unshift(o)),void 0===o.values&&(o.values=this.options&&(this.options.mar||this.options.pad)||null),this._responsiveTasks=this._responsiveTasks||[],this._responsiveTasks.push(function(){for(var n=t.viewportWidth(),i=o,a=0;a<e.length;a++){var s=e[a],l=c(s.range,2),u=l[0],d=l[1];if("default"!==s.breakpoint&&n>=u&&n<=d){i=s;break}}var f=void 0!==i.values?i.values:o.values;null!=f&&r.mar(f)}),this._setupResponsiveManager()}},{key:"color",value:function(t){return this.res.style.color=t,this}},{key:"onTap",value:function(t){return this.res.addEventListener("click",t),this}},{key:"setArea",value:function(t){return this.res.style.gridArea=t,this}},{key:"font",value:function(t){return this.res.style.fontFamily=t,this}},{key:"radius",value:function(t){return this.res.style.borderRadius="number"==typeof t?"".concat(t,"px"):t,this}},{key:"width",value:function(t){return this.res.style.width=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:"round",value:function(t){return this.deprecatedOption("round()","radius()"),this.radius(t)}},{key:"toCSS",value:function(){return this.css}},{key:"toHTMLA",value:function(){return this.html}},{key:"background",value:function(t){return this.res.style.background=t,this}},{key:"deprecatedOption",value:function(t,e){return console.error("nodality: `".concat(t,"` is deprecated — use `").concat(e,"` instead.")),this}},{key:"center",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=this.res.style,n=r.display||e.display||"",o=r.flexDirection||e.flexDirection||"",i=!0===t||"both"===t||"x"===t,a=!0===t||"both"===t||"y"===t;if(n.includes("grid"))return i&&(r.justifyItems="center",r.justifyContent="center"),a&&(r.alignItems="center",r.alignContent="center"),this;n.includes("flex")||(r.display="flex"),r.flexDirection||(r.flexDirection=o||"column");var s=(r.flexDirection||"column").startsWith("column");return(s?a:i)&&(r.justifyContent="center"),(s?i:a)&&(r.alignItems="center"),this}},{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 o=r[n],i=t[e][o],a=0;a<o.length;a++)switch(o[a]){case"a":this.res.style.padding=this.isNumber(i)?"".concat(i,"px"):i;break;case"t":this.res.style.paddingTop=this.isNumber(i)?"".concat(i,"px"):i;break;case"l":this.res.style.paddingLeft=this.isNumber(i)?"".concat(i,"px"):i;break;case"r":this.res.style.paddingRight=this.isNumber(i)?"".concat(i,"px"):i;break;case"b":this.res.style.paddingBottom=this.isNumber(i)?"".concat(i,"px"):i}return this}},{key:"as",value:function(t){return this.res.style.alignSelf=t,this}},{key:"mar",value:function(t){if("center"===t)return this.res.style.marginLeft="auto",this.res.style.marginRight="auto",this;for(var e=0;e<t.length;e++)for(var r=Object.keys(t[e]),n=0;n<r.length;n++){for(var o=r[n],i=t[e][o],a=0;a<o.length;a++)switch(o[a]){case"a":"auto"===i?(this.res.style.marginLeft="auto",this.res.style.marginRight="auto"):this.res.style.margin=this.isNumber(i)?"".concat(i,"px"):i;break;case"t":this.res.style.marginTop=this.isNumber(i)?"".concat(i,"px"):i;break;case"l":this.res.style.marginLeft=this.isNumber(i)?"".concat(i,"px"):i;break;case"r":this.res.style.marginRight=this.isNumber(i)?"".concat(i,"px"):i;break;case"b":this.res.style.marginBottom=this.isNumber(i)?"".concat(i,"px"):i}"center"===o&&!0===i&&(this.res.style.marginLeft="auto",this.res.style.marginRight="auto"),"auto"===i&&(o.includes("l")||o.includes("r"))&&(o.includes("l")&&(this.res.style.marginLeft="auto"),o.includes("r")&&(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);return e.min>e.max&&(n=(t-e.max)/(e.min-e.max)),r.min+(r.max-r.min)*n}},{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 o=document.createTextNode(this.text);this.res.appendChild(o),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 i=document.createTextNode(this.text);this.res.appendChild(i),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 a=document.createTextNode(this.text);this.res.appendChild(a),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),void 0!==t.radius&&(this.res.style.borderRadius=t.radius),this}},{key:"setPref",value:function(t){this.preffersId=t}},{key:"setClass",value:function(t){this.class=t}},{key:"setTags",value:function(t){this.openTag=t.open,this.closeTag=t.close}},{key:"chainReact",value:function(e,r,n){var o=this;this.ap=!1,this.cta=0,this.once=!1;var i,a=u(e);try{for(a.s();!(i=a.n()).done;){var s=i.value;s.range||(s.range=["0px","999999px"])}}catch(t){a.e(t)}finally{a.f()}e.sort(function(t,e){return parseInt(t.range[0])-parseInt(e.range[0])});var l=function(i){var a=t.viewportWidth(),s=[],l=[];o.resCopy=o.res,o.storedQueries=e.map(function(t){return t.target}).filter(function(t){return null!=t});var d,f=u(e);try{for(f.s();!(d=f.n()).done;){var p=d.value;o.counterIndex++;var h=c(p.range,2),y=h[0],m=h[1],b=parseInt(y),v=parseInt(m),g=!0;if(p.target){g=!1;for(var w=0;w<p.target.length;w++)p.target[w]===r&&(g=!0)}a>=b&&a<=v&&g&&(s.push(p.log),l.push(p),p.op&&p.op.margin&&(o.useMargin=p.op.margin))}}catch(t){f.e(t)}finally{f.f()}if(n&&!n.includes("background")&&(o.res.style.background="",o.res.style.backgroundColor=""),o.res.style.textShadow="",n&&!n.includes("border")&&(o.res.style.border=""),n&&!n.includes("margin")&&(o.res.style.margin=""),o.res.style["-webkit-text-fill-color"]="",o.res.style["-webkit-text-stroke-color"]="",o.res.style["-webkit-text-stroke-width"]="",o.res.style.filter="",o.options.background&&(o.res.style.background=o.options.background),s.includes("gradient"),(s.includes("gradient")||s.includes("shadow"))&&(o.res.style.position="relative"),s.includes("blast")){var _,k=l.filter(function(t){return"blast"===t.log})[0].op.color,O=null!==(_=l.filter(function(t){return"blast"===t.log})[0].op.width)&&void 0!==_?_:"1px";"FlexRowLayoutElement"===o.getType()||"LayoutWrapperElement"===o.getType()?(o.res.style.border="".concat("number"==typeof O?O+"px":O," solid orange"),o.res.style.display="inline-block","FlexRowLayoutElement"===o.getType()&&(o.res.style.display="flex"),o.res.style.boxSizing="border-box",o.res.style.transformOrigin="center",o.blastTarget=o.res):(o.text,o.res.style["-webkit-text-fill-color"]="transparent",o.res.style["-webkit-text-stroke-color"]=k,o.res.style["-webkit-text-stroke-width"]="".concat(O))}if(s.includes("filter")){var x=l.filter(function(t){return"filter"===t.log})[0].op.filter;o.res.style.filter=x}if(s.includes("background")&&(o.res.style.backgroundColor="green"),s.includes("gradient")&&("LayoutWrapperElement"!==o.getType()&&"FlexRowLayoutElement"!==o.getType()&&(o.res.style["-webkit-text-fill-color"]="transparent"),o.res.style.background=o.globalGradient,"LayoutWrapperElement"!==o.getType()&&"FlexRowLayoutElement"!==o.getType()&&(o.res.style["background-clip"]="text")),s.includes("shadow")){var S,j,E,C,P=o.options.shadow.op,T=null!==(S=P.steps)&&void 0!==S?S:1,A=null!==(j=P.colors)&&void 0!==j?j:["gray"],R=null!==(E=P.movements)&&void 0!==E?E:["3px","3px"],M=null!==(C=P.radius)&&void 0!==C?C:"3px";if(1===R.length&&(R=[R[0],R[0]]),"FlexRowLayoutElement"===o.getType()||"LayoutWrapperElement"===o.getType()){for(var I=[],D=0;D<T;D++){var L,W=null!==(L=A[D])&&void 0!==L?L:A[0],B=R[0],z=R[1];I.push("".concat(B," ").concat(z," ").concat(M," ").concat(W))}o.res.style.boxShadow=I.join(", ")}else{for(var N=[],q=0;q<T;q++){var F,U=null!==(F=A[q])&&void 0!==F?F:A[0],H=R[0],K=R[1];N.push("drop-shadow(".concat(H," ").concat(K," ").concat(M," ").concat(U,")"))}o.res.style.filter=N.join(" ")}}if(s.includes("margin"))for(w=0;w<e.length;w++)if(e[w].op){var J=e[w].op.offsets;J&&void 0!==o.index&&(o.res.style.margin=J[Number(o.index)]+"px")}if(s.includes("spana")||s.includes("span")){var $=document.createElement("div");if($.setAttribute("id","oroa"),Object.assign($.style,{position:"absolute",inset:"0",background:"linear-gradient(90deg, rgb(52,152,219), rgb(26,188,156))",WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent",pointerEvents:"none"}),o.res&&o.res.querySelector("span"))return;o.res=o.resCopy,o.res.textContent="",o.options.span&&(Array.isArray(o.options.span)?o.options.span:[o.options.span]).forEach(function(t){if(t.op&&"span"===t.op.name&&Array.isArray(t.op.parts)){var e=0,r=o.prevText||"";if(t.op.parts.forEach(function(t){var n=t.text,i=t.style||{};if(e<r.length){var a=r.indexOf(n,e);if(a>e){var s=r.substring(e,a);o.res.appendChild(new o.constructor(s).setup({type:"span",id:i.id,animation:i.animation}).set({}).render())}e=a+n.length}var l=new o.constructor(n).setup({type:"span",id:i.id,animation:i.animation}).set(i).render();o.res.appendChild(l)}),e<r.length){var n=r.substring(e);o.res.appendChild(new o.constructor(n).setup({type:"span"}).set({}).render())}}})}else{var G=new o.constructor(o.prevText).set({}).render();o.prevText&&o.prevText.length>0&&i&&o.res.appendChild(G)}if(s.includes("animation")){if(o.options.animation&&!o.hasAnimated&&!o.options.animation.op.fireAt){o.hasAnimated=!0;var V=o.options.animation.op;o._on(window,"sidebar:open",function(){o.res.animate(V.keyframesOpen,V.openOptions)}),o._on(window,"sidebar:closed",function(){o.res.animate(V.keyframesClose,V.closeOptions)}),o.res.animate(V.keyframesClose,{duration:0,fill:"forwards"}),o.openTag&&o.closeTag&&(o._on(window,o.openTag,function(){o.res.animate(V.keyframesOpen,V.openOptions)}),o._on(window,o.closeTag,function(){o.res.animate(V.keyframesClose,V.closeOptions)}))}if(o.options.animation&&o.options.animation.op.fireAt&&o.options.animation.op.fireAt.endsWith("px")){var Q=o.options.animation.op;o.res.animate(Q.keyframesClose,{duration:0,fill:"forwards"});var X=function(){window.scrollY>parseFloat(Q.fireAt)&&(o.res.animate(Q.keyframesOpen,Q.openOptions),window.removeEventListener("scroll",X))};o._on(window,"scroll",X)}if(o.options.animation&&"inview"===o.options.animation.op.fireAt){var Y=o.options.animation.op;o.res.animate(Y.keyframesClose,{duration:0,fill:"forwards"});var Z=!1,tt=new IntersectionObserver(function(t,e){t.forEach(function(t){t.isIntersecting&&!Z&&(Z=!0,o.res.animate(Y.keyframesOpen,Y.openOptions),e.disconnect())})});tt.observe(o.res),o._track(function(){return tt.disconnect()})}}};this.options.animation||this._on(window,"resize",function(){return l()}),l()}},{key:"maxWidth",value:function(t){return this.res.style.maxWidth=t,this}},{key:"removeQuotesFromFirstWord",value:function(t){return t.replace((0,l._H)(),"$1:")}}],n=[{key:"viewportWidth",value:function(){if("undefined"==typeof window)return 0;var t=window.visualViewport;return t&&"number"==typeof t.width?t.width:window.innerWidth}}],r&&h(e.prototype,r),n&&h(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,r,n}()},2387:(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 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,i(n.key),n)}}function i(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 s(t){return s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},s(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,{C:()=>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=s(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||[],s(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.navContent.style.alignItems="center",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&&l(t,e)}(e,t),r=e,(i=[{key:"set",value:function(t){return this.obj=t,this.setStyles(t),t.background&&(this.res.style.backgroundColor=t.background),t.brand&&this.setBrand(t.brand),t.radius&&(this.res.style.borderRadius=t.radius),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.maxHeight&&(this.res.style.maxHeight=t.maxHeight),t.hamburgerColour&&(this.hamburgerColour=t.hamburgerColour),this}},{key:"setStyles",value:function(){var t;this.navbar.style.display="flex",this.navbar.style.flexDirection="column",this.navbar.style.padding="1rem",this.navbar.style.backgroundColor=null!==(t=this.obj.background)&&void 0!==t?t:"#333",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 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(){var t=this.items.map(function(t){return t.toCode()}).flatMap(function(t){return t});return"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}}])&&o(r.prototype,i),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,i}(r(2332).y)},2588:(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 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,i(n.key),n)}}function i(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 s(t){return s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},s(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=s(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||[],s(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,i=[{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.res=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.commonMethods(t),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)}}],i&&o(r.prototype,i),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,i}(r(2332).y);"undefined"!=typeof window&&(window.Picker=c)},2689:(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 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,i(n.key),n)}}function i(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 s(t){return s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},s(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,{C:()=>c});var c=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=s(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||[],s(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&&l(t,e)}(e,t),r=e,(i=[{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=t.radius),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)}}])&&o(r.prototype,i),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,i}(r(2332).y)},2789:(t,e,r)=>{r.d(e,{C:()=>f});var n=r(2332),o=r(1382);function i(t){return i="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},i(t)}function a(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"!=i(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==i(e)?e:e+""}function l(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(l=function(){return!!t})()}function c(){return c="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,r){var n=function(t,e){for(;!{}.hasOwnProperty.call(t,e)&&null!==(t=u(t)););return t}(t,e);if(n){var o=Object.getOwnPropertyDescriptor(n,e);return o.get?o.get.call(arguments.length<3?t:r):o.value}},c.apply(null,arguments)}function u(t){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},u(t)}function d(t,e){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},d(t,e)}var f=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=u(e),function(t,e){if(e&&("object"==i(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,l()?Reflect.construct(e,r||[],u(t).constructor):e.apply(t,r))}(this,e)).res=document.createElement("code"),t.pre=document.createElement("pre"),t.res.style.background="#18232e",t.res.style.display="block",t.res.style.width="auto",t.res.style.height="auto",t.res.style.borderRadius="1rem",t.pre.appendChild(t.res),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&&d(t,e)}(e,t),r=e,n=[{key:"getType",value:function(){return"LayoutWrapperElement"}},{key:"toCode",value:function(){var t=this.options;Object.keys(t).forEach(function(e){return void 0===t[e]&&delete t[e]});var e=JSON.stringify(t,null,2).replace((0,o._H)(),"$1:").replace(/"([^"]+)"/g,function(t,e){return e.includes("\n")||e.includes("'")||e.includes('"')?"`"+e.replace(/`/g,"\\`")+"`":'"'.concat(e,'"')});return"new Code().set(".concat(e,")")}},{key:"callReact",value:function(t){this.options=t;var r,n,o,a=[],s=t.transform&&"object"===i(t.transform);if(t.stroke||t.gradient||t.span||t.backgroundOp||t.layout||t.shadow||t.animation||t.filtera||s){t.gradient&&(this.globalGradient=t.gradient.op.gradient,"radial"===t.gradient.op.direction&&(this.globalGradient="radial-gradient(circle at center, orange, green)")),t.stroke&&(r=e,n=this,"function"==typeof(o=c(u(1&3?r.prototype:r),"setAny",n))?function(t){return o.apply(n,t)}:o)([{globalBlast:"".concat(t.stroke.op.width," ").concat(t.stroke.op.color)}]),t.span&&(t.span.prevText=this.text);var l=[t.stroke,t.gradient,t.animation,t.span,t.backgroundOp,t.layout,t.marginOp,t.shadow,t.animation,t.filtera,s?t.transform:void 0];l=l.filter(function(t){return null!=t});for(var d=0;d<l.length;d++)a.push({range:l[d].range,log:l[d].op.name,target:l[d].target,op:l[d].op});var f=[];t.borderObj&&f.push("border"),t.background&&f.push("background"),t.mar&&f.push("margin"),t.animation&&f.push("animation"),t.span&&f.push("span"),this.chainReact(a,t.id,f)}}},{key:"set",value:function(t){return t.code&&(this.pre.children[0].innerHTML=t.code),t.class&&this.pre.children[0].setAttribute("class","".concat(t.class)),t.pad&&this.pad(t.pad),t.mar&&this.mar(t.mar),t.respad&&this.respad(t.respad),t.resmar&&this.resmar(t.resmar),t.resprop&&this.resprop(t.resprop),t.width&&(this.res.style.width=t.width),t.background&&(this.res.style.background=t.background),t.color&&(this.res.style.color=t.color),t.borderRadius&&(this.res.style.background=t.borderRadius),t.borderObj&&(this.res.style.border="".concat(t.borderObj.width," solid ").concat(t.borderObj.color),this.res.style.borderRadius="".concat(t.borderObj.radius)),this.callReact(t),this}},{key:"render",value:function(t){return t&&document.querySelector(t).appendChild(this.pre),this.res}}],n&&a(r.prototype,n),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n}(n.y)},3014:(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 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,i(n.key),n)}}function i(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 s(t){return s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},s(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,{A:()=>c});var c=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=s(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||[],s(t).constructor):e.apply(t,r))}(this,e)).text=t,r.res=null,r.valid=!1,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&&l(t,e)}(e,t),r=e,i=[{key:"setup",value:function(){var t=document.createElement("input");return this.res=t,this.res.style.padding=0,this.res.style.margin=0,this.res.style.padding=".4rem .75rem",this.res.style.fontSize="1rem",window.matchMedia("(max-device-width: 415px)").matches&&(this.res.style.width="100%"),this}},{key:"set",value:function(t){var e;return this.options=t,this.res.setAttribute("type",null!==(e=t.type)&&void 0!==e?e:"text"),t.placeholder&&(this.res.placeholder=t.placeholder),t.name&&this.res.setAttribute("name",t.name),t.id&&this.res.setAttribute("id",t.id),t.required&&this.res.setAttribute("required",""),t.pad&&this.pad(t.pad),t.mar&&this.mar(t.mar),t.maxWidth&&(this.res.style.maxWidth=t.maxWidth),t.exact&&(this.res.style.fontSize=t.exact),t.radius&&this.round(t.radius),t.color&&(this.res.style.color=t.color),t.background&&(this.res.style.background=t.background),t.font&&(this.res.style.fontFamily=t.font),t.weight&&(this.res.style.fontWeight=t.weight),t.bold&&(this.res.style.fontWeight="bold"),t.theme&&this.theme(t.theme),this.commonMethods(t),this}},{key:"toCode",value:function(){var t=JSON.stringify(this.options,null,4);return["new TextField().set(".concat(t,")")]}},{key:"setValid",value:function(t,e){return this.res.style.border=t?"6px solid green":"6px solid red",0===e.length&&(this.res.style.border="none"),this}},{key:"auto",value:function(){var t=this,e=function(){window.matchMedia("(max-device-width: 415px)").matches?t.res.style.fontSize="3rem":t.res.style.fontSize="1rem"};return e(),window.addEventListener("resize",e),this}},{key:"value",value:function(t){return this.res.setAttribute("value",t),this}},{key:"password",value:function(){return this.res.setAttribute("type","password"),this}},{key:"number",value:function(){return this.res.setAttribute("type","number"),this}},{key:"process",value:function(t){return this.res.value}},{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:"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:"placeholder",value:function(t){return this.res.setAttribute("placeholder",t),this}},{key:"border",value:function(t,e){return this.res.style.border="".concat(e,"px solid ").concat(t),this}},{key:"onChange",value:function(t){var e=this;return this.res.value,this.res.addEventListener("input",function(r){t(e.res.value)}),this}},{key:"render",value:function(t){return t?(document.querySelector(t).appendChild(this.res),this.res):this.res}}],i&&o(r.prototype,i),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,i}(r(2332).y)},3050:(t,e,r)=>{r.d(e,{Y:()=>h});var n=r(2332),o=r(1382);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,o,i,a,s=[],l=!0,c=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==e);l=!0);}catch(t){c=!0,o=t}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(t,e)||function(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}}(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){(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 s(t){return s="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},s(t)}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"!=s(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=s(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==s(e)?e:e+""}function u(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(u=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 o=Object.getOwnPropertyDescriptor(n,e);return o.get?o.get.call(arguments.length<3?t:r):o.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 p(t,e){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},p(t,e)}var h=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"==s(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,u()?Reflect.construct(e,r||[],f(t).constructor):e.apply(t,r))}(this,e)).code=[],n.saveEl=r,n.frs=t,n.res=null,n.setup(),n.responsive(),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&&p(t,e)}(e,t),r=e,n=[{key:"getType",value:function(){return"FlexRowLayoutElement"}},{key:"set",value:function(t){this.options=t;var e=t;return e.onTap&&this.onTap(e.onTap),e.id&&this.res.setAttribute("id",e.id),e.position&&(this.res.style.position=e.position),void 0!==e.top&&(this.res.style.top=e.top),t.id&&this.res.setAttribute("id",t.id),this.commonMethods(e),t.padding&&this.pad([{a:t.padding}]),t.background&&(this.res.style.backgroundColor="#ecf0f1",this.res.style.cornerRadius="#3rem"),t.alignTo&&(this.res.style.justifyContent=t.alignTo),t.background&&(this.res.style.backgroundColor=t.background),t.justify&&(this.res.style.justifyContent=t.justify),t.border&&("top"===t.border[0]&&(this.res.style.borderTop="".concat(t.border[1]," solid white")),"all"===t.border[0]&&(this.res.style.border="".concat(t.border[1]," solid orange"))),t.borderObj&&(this.borderObj(t.borderObj),JSON.stringify(t.borderObj)),t.width&&(this.res.style.width=t.width),t.height&&(this.res.style.height=t.height),t.gap&&(this.res.style.gap=t.gap),t.align&&(JSON.stringify(t.align),this.res.style.alignItems="flex-start",this.res.style.alignItems="flex-start"),t.wrap&&this.wrap(),t.alignIts&&(JSON.stringify(t.alignIts),this.res.style.alignItems="flex-start"),t.owrap&&this.onlyWrap(),null!=t.owrap&&!1===t.owrap&&(this.res.style.flexWrap="nowrap",this.res.style.background="yellow"),t.toColumn&&this.deprecatedOption("toColumn","colat"),t.column&&this.makeCol(),t.colat&&t.colat&&this.toColumnAt(t.colat),t.align&&this.makeJustify(t.justify),t.justify&&this.makeAlign(t.justify),"flex-start"===t.justifo&&(this.res.style.justifyContent="flex-start"),t.radius&&(this.res.style.borderRadius=t.radius),t.aligns&&this.aligns(t.aligns),this.callReact(e),!0===t.center&&(this.res.style.marginLeft="auto",this.res.style.marginRight="auto"),this}},{key:"callReact",value:function(t){this.options=t;var r,n,o,i=[],a=t.transform&&"object"===s(t.transform);if(t.stroke||t.gradient||t.span||t.backgroundOp||t.layout||t.shadow||t.animation||t.filtera||a){t.gradient&&(this.globalGradient=t.gradient.op.gradient,"radial"===t.gradient.op.direction&&(this.globalGradient="radial-gradient(circle at center, orange, green)")),t.stroke&&(r=e,n=this,"function"==typeof(o=d(f(1&3?r.prototype:r),"setAny",n))?function(t){return o.apply(n,t)}:o)([{globalBlast:"".concat(t.stroke.op.width," ").concat(t.stroke.op.color)}]),t.span&&(t.span.prevText=this.text);var l=[t.stroke,t.gradient,t.animation,t.span,t.backgroundOp,t.layout,t.marginOp,t.shadow,t.animation,t.filtera,a?t.transform:void 0];l=l.filter(function(t){return null!=t});for(var c=0;c<l.length;c++)i.push({range:l[c].range,log:l[c].op.name,target:l[c].target,op:l[c].op});var u=[];t.borderObj&&u.push("border"),t.background&&u.push("background"),t.mar&&u.push("margin"),t.animation&&u.push("animation"),t.span&&u.push("span"),this.chainReact(i,t.id,u)}}},{key:"toColumnAt",value:function(t){var e=this;if(!this.columnAlways){var r=function(){var r=window.matchMedia("(max-width: ".concat(t,")")),n=window.matchMedia("(max-device-width: 415px)");r.matches||n.matches?e.res.style.flexDirection="column":e.res.style.flexDirection="row"};r(),window.addEventListener("resize",r)}return this}},{key:"onlyWrap",value:function(){return this.res.style.flexWrap="wrap",this}},{key:"wrap",value:function(){return this.res.style.flexWrap="wrap",this.res.style.justifyContent="space-between",this}},{key:"aligns",value:function(t){return"start"===t&&(this.res.style.alignItems="flex-start"),"end"===t&&(this.res.style.alignItems="flex-end"),"center"===t&&(this.res.style.alignItems="center"),this}},{key:"toCode",value:function(){for(var t={},e=0,r=Object.entries(this.options||{});e<r.length;e++){var n=i(r[e],2),a=n[0],s=n[1];null!=s&&""!==s&&(t[a]=s)}var l=JSON.stringify(t,null,4).replace((0,o._H)(),"$1:").replace(/"([^"]*)"/g,function(t,e){return e.includes("\n")?"`"+e.replace(/`/g,"\\`")+"`":'"'.concat(e,'"')}),c=(this.items||[]).map(function(t){return null!=t&&t.toCode?t.toCode():"/* element */"}).join(",\n ");return[["new FlexRow().set(".concat(l,")"),c?".items([\n ".concat(c,"\n])"):""].join("")]}},{key:"cornerRadius",value:function(t){return this.res.style.borderRadius=t,this}},{key:"makeJustify",value:function(t){return"start"===t&&(this.res.style.justifyContent="flex-start"),this}},{key:"makeAlign",value:function(t){return"center"===t?this.res.style.alignItems="center":this.res.style.justifyContent=t,this}},{key:"makeCol",value:function(){return this.res.style.flexDirection="column",this}},{key:"setClass",value:function(t){return this.res.setAttribute("class",t),this}},{key:"setup",value:function(){var t=document.createElement("div");return t.style.display="flex",t.style.justifyContent="space-around",t.style.alignItems="center",this.res=t,this}},{key:"frame",value:function(t){return this.res.style.width=t.width,this.res.style.height=t.height,window.matchMedia("(max-device-width: 415px)").matches&&t.mobile&&(this.res.style.width=t.mobile),this}},{key:"radius",value:function(t){return this.res.style.borderRadius="".concat(t,"px"),this}},{key:"shadow",value:function(t,e,r){return this.res.style.boxShadow="0px 1px 10px 0px rgb(145 145 145)",this}},{key:"items",value:function(t){this.els=t,this.items=t;for(var e=0;e<t.length;e++){if(null!=t[e])if(t[e].render instanceof Function){var r=t[e].render();this.res.appendChild(r)}else this.res.appendChild(t[e]);if(null!=t[e]&&t[e].render instanceof Function){var n=t[e].render();this.res.appendChild(n),void 0!==t[e].toCode&&this.code.push(t[e].toCode().flatMap(function(t){return t}))}}return this}},{key:"responsive",value:function(t){var e=this,r=window.matchMedia("(max-device-width: 415px)");return window.innerWidth<t||r.matches?this.res.style.gridTemplateColumns="1fr":this.res.style.gridTemplateColumns="1fr 1fr",window.addEventListener("resize",function(){window.innerWidth<t||r.matches?e.res.style.gridTemplateColumns="1fr":e.res.style.gridTemplateColumns="1fr 1fr"}),this}},{key:"render",value:function(t){if(!t)return this.res;document.querySelector(t).appendChild(this.res)}}],n&&l(r.prototype,n),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n}(n.y)},3180:(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 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,i(n.key),n)}}function i(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(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)}function s(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(s=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,{h:()=>u});var u=function(t){function e(t){var r,n,o,i;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),n=this,o=l(o=e),(r=a(n,s()?Reflect.construct(o,[],l(n).constructor):o.apply(n,i)))._noTheme=!0;var c=document.createElement("div");return c.style.flex="1",r.res=c,r.res.setAttribute("class","innerHider"),a(r,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&&c(t,e)}(e,t),r=e,(n=[{key:"toCode",value:function(){return["new Spacer(".concat(this.hide,")")]}},{key:"render",value:function(){return this.res}}])&&o(r.prototype,n),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n}(r(2332).y)},3243:(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 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,i(n.key),n)}}function i(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 s(t){return s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},s(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,{a:()=>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=s(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||[],s(t).constructor):e.apply(t,r))}(this,e))._noTheme=!0,t.el=null,t.obj=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,(i=[{key:"set",value:function(t){var e=document.createElement("div");return e.style.width="100vw",e.style.height="100vh",e.style.backgroundColor=t.background,e.style.zIndex="1",e.style.position="absolute",e.style.overflowY="scroll",this.obj=t,this.res=e,t.close&&this.close(),this}},{key:"close",value:function(){return this.res.style.display="none",this}},{key:"show",value:function(){return this.res.style.display="block",this}},{key:"add",value:function(t){var e=document.createElement("div");e.style.width=this.obj.width,e.style.height="auto",e.style.marginLeft="auto",e.style.marginRight="auto",e.style.backgroundColor="white",window.matchMedia("(max-device-width: 415px)").matches&&(e.style.marginTop="200px",e.style.width="100%");for(var r=0;r<t.length;r++)e.appendChild(t[r].render());return this.res.appendChild(e),this}},{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)}}])&&o(r.prototype,i),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,i}(r(2332).y)},3257:(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 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,i(n.key),n)}}function i(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 s(t){return s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},s(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=s(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||[],s(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,(i=[{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 o=document.createElement("input");return"textarea"===t.type&&(o=document.createElement("textarea")),o.style.position="relative",o.placeholder=t.title,o.style.fontSize="1rem",o.style.padding=".4rem .75rem",e.appendChild(r),e.appendChild(o),this.res=e,t.mar&&this.mar(t.mar),t.pad&&this.pad(t.pad),o.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",o.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)}),o.addEventListener("focusout",function(){r.style.transform="scale(1.0)",o.placeholder=t.title,r.style.opacity="0.0"}),t.name&&o.setAttribute("name",t.name),window.matchMedia("(max-device-width: 415px)").matches&&(o.style.width="100%",e.style.width="100%"),o.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)}}])&&o(r.prototype,i),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,i}(r(2332).y);"undefined"!=typeof window&&(window.FloatingInput=c)},3420:(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 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,i(n.key),n)}}function i(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 s(t){return s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},s(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,{f:()=>c});var c=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=s(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||[],s(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&&l(t,e)}(e,t),r=e,(i=[{key:"setup",value:function(){this.res=document.createElement("audio"),this.res.setAttribute("src",this.url),this.res.setAttribute("controls","controls")}},{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)}}])&&o(r.prototype,i),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,i}(r(2332).y)},3440:(t,e,r)=>{r.d(e,{X:()=>h});var n=r(2332),o=r(1382);function i(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(i=function(){return!!t})()}function a(t){return a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},a(t)}function s(t,e){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},s(t,e)}function l(t){return l="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},l(t)}function c(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(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,f(n.key),n)}}function d(t,e,r){return e&&u(t.prototype,e),r&&u(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function f(t){var e=function(t){if("object"!=l(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=l(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==l(e)?e:e+""}var p=function(){return d(function t(e,r){c(this,t),this.obj=e||{},this.items=r||[]},[{key:"render",value:function(){var t=document.createElement("div");t.style.display="flex",t.style.width="100%",t.style.justifyContent="space-around",t.setAttribute("id","innerItemsWrapper");var e=window.matchMedia("(max-device-width: 415px)"),r=window.matchMedia("(max-width: 600px)");(e.matches||r.matches)&&(t.style.marginTop="3rem");for(var n=0;n<this.items.length;n++){var o=this.items[n];t.appendChild(o.render())}var i=document.createElement("div");return i.style.width=this.obj.isSide?"333px":"100%",i.style.background=this.obj.background||"white",i.style.display="flex",i.style.justifyContent="center",i.style.alignItems="center",i.style.height="100%",i.setAttribute("id","outerItemsWrapper"),i.appendChild(t),this.obj.customStyle&&(t.style.width="auto",t.style.top="0rem",t.style.borderRadius="1rem",t.style.background=this.obj.background||"white",t.style.margin="1rem",t.style.position="absolute",t.style.opacity=.8),i}}])}(),h=function(t){function e(t){var r,n,o,s;return c(this,e),r=function(t,e,r){return e=a(e),function(t,e){if(e&&("object"==l(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,i()?Reflect.construct(e,r||[],a(t).constructor):e.apply(t,r))}(this,e),n=r,s=function(){var t,e=window.matchMedia("(max-device-width: 415px)"),n=document.createElement("button");if(n.setAttribute("id","hamburger"),n.setAttribute("type","button"),n.setAttribute("aria-label","Menu"),n.setAttribute("aria-expanded","false"),n.setAttribute("aria-controls","innerItemsWrapper"),n.style.border="none",n.style.fontWeight="bold",n.style.position="absolute",n.style.color=null!==(t=r.hamburgerColour)&&void 0!==t?t:"orange",n.style.backgroundColor="transparent",n.style.fontSize=e.matches?"2.1em":"2em",r.hamburgerInset){var o=String(r.hamburgerInset).trim().split(/\s+/);n.style.padding=o.length>1?"".concat(o[0]," ").concat(o[1]):"".concat(o[0]," ").concat(o[0])}var i=document.createTextNode(r.symbol?r.symbol:"☰");return n.appendChild(i),n.style.marginLeft="auto",r.isShown=!1,n.addEventListener("click",function(){r.isShown=!r.isShown,n.setAttribute("aria-expanded",String(r.isShown)),r.hasAnimatedToWide=!1;var t=r.items[0].options;if(t&&t.animation){var e=t.animation.op,o=r.res.children[0].children[1].children[0];if(e){if(r.isShown)for(var i=0;i<o.children.length;i++)o.children[i].animate(e.keyframesClose,{duration:1,fill:"forwards",delay:0}).onfinish=function(){o.parentElement.style.display="block"};else o.parentElement.style.display="none";for(i=0;i<o.children.length;i++){var a=o.children[i];a.animate(e.keyframesClose,{duration:1,fill:"forwards",delay:0}),r.isShown?a.animate(e.keyframesOpen,e.openOptions):a.animate(e.keyframesClose,e.closeOptions)}}}else r.isShown?innerItemsWrapper.parentElement.style.display="block":innerItemsWrapper.parentElement.style.display="none"}),n},(o=f(o="addHamburger"))in n?Object.defineProperty(n,o,{value:s,enumerable:!0,configurable:!0,writable:!0}):n[o]=s,r.titleText="",r.hasHamburger=!1,r.code=[],r.attributes={},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&&s(t,e)}(e,t),d(e,[{key:"toCode",value:function(){var t="new UINavBar()";return Object.keys(this.attributes).length>0?t+=".setup(".concat((0,o.sy)(this.attributes,2),")"):t+=".setup({})",t+=".items([\n",t+=this.items.map(function(t){return t.toCode().join("").trim()}).join(",\n"),[t+="\n])"]}},{key:"styled",value:function(t){return this.setup(t),this.styles=t,this}},{key:"setup",value:function(t){this.obj=t,this.obj.isSide||(this.obj.animate=!1),this.attributes=t;var e=document.createElement("div");e.setAttribute("id","sars"),e.style.padding=0,e.style.margin=0;var r=document.createElement("div");return r.setAttribute("id","covid"),r.style.position="absolute",r.style.width="100%",r.style.zIndex=1,r.style.alignItems="flex-start",document.createElement("div").style.position="absolute",r.style.margin="20px",r.style.display="flex",r.style.alignItems="flex-end",r.style.margin=0,r.style.padding=0,r.style.margin=0,e.appendChild(r),this.addCloseButton=!1,this.res=e,t.background&&this.background({color:t.background}),t.openColor&&(this.openColor=t.openColor),t.sticky&&this.sticky(),t.pad&&this.pad(t.pad),t.hamburgerColour&&(this.hamburgerColour=t.hamburgerColour),t.hamburgerInset&&(this.hamburgerInset=t.hamburgerInset),t.mobileSize&&(this.mobileSize=t.mobileSize),t.desktopSize&&(this.desktopSize=t.desktopSize),t.height&&(this.res.children[0].style.height=t.height),this._ui={gap:t.gap,justify:t.justify,alignItems:t.alignItems,barPad:t.barPad,maxWidth:t.maxWidth,borderBottom:t.borderBottom},this.res.setAttribute("role","navigation"),this.res.setAttribute("aria-label",t.ariaLabel||"Primary"),this}},{key:"items",value:function(t){this.items=t;var e=["Link","Image","Spacer","Dropdown"].some(function(e){return t[0].__proto__.constructor.toString().startsWith("class ".concat(e))});this.itemCount=t.length;var r=new p(this.obj,this.items).render();this.res.children[0].appendChild(r);var n=this.res.children[0].children[0].children[0],o=this.items[0].options;if(o&&o.animation){var i=o.animation.op;if(i){var a=window.matchMedia("(max-device-width: 415px)"),s=window.matchMedia("(max-width: 600px)");if(a.matches||s.matches){var l={duration:1,fill:"forwards",delay:1};for(c=0;c<n.children.length;c++)n.children[c].animate(i.keyframesClose,l)}else for(var c=0;c<n.children.length;c++)n.children[c].animate(i.keyframesClose,{duration:1,fill:"forwards",delay:1}),n.children[c].animate(i.keyframesOpen,i.openOptions)}}if(this.adjust(),!e){this.itemCount=t.length;var u=document.createElement("div");for(u.style.backgroundColor="orange",c=0;c<t.length;c++){var d=t[c];if(d.logo){var f=new Image(d.logo).width("100px"),h=document.createElement("div");h.style.flex="1",h.style.height=23;var y=document.createElement("div");y.setAttribute("id","WR"),y.style.display="flex",y.style.flexDirection="row",y.appendChild(f.render()),this.res.children[0].appendChild(f.render()),this.obj.spacing&&this.res.children[0].appendChild(h)}if(d.logo&&(this.allowPad=!0),d.logo&&this.obj.spacing&&(this.res.children[0].children[0].style.marginLeft=this.obj.spacing.sides,this.res.children[0].children[0].style.marginRight=this.obj.spacing.sides),d.title){var m=void 0;m=this.allowPad?d.type?new Dropdown(d.items,d.title):new Link(d.title,d.url).pad([{lr:"1em"}]):d.type?new Link("DRPA",d.url):new Link(d.title,d.url),u.appendChild(m.render())}}this.res.children[0].appendChild(u),this.adjust()}var b=this.addHamburger();this.itemCount,this.obj.spacing,b.style.zIndex=1;var v=this.res.children[0];return v&&!v.querySelector("#hamburger")&&v.insertBefore(b,v.firstChild),this}},{key:"instance",value:function(){return this.res.children[0]}},{key:"sticky",value:function(){return this.res.style.position="sticky",this.res.style.top=this.res.style.top||"0px",this.res.style.zIndex=this.res.style.zIndex||50,this._sticky=!0,this}},{key:"font",value:function(t){for(var e=0;e<this.res.children[0].children;e++)this.res.children[0].children[e].style.fontFamily=t;return this}},{key:"background",value:function(t){return t.background?(this.res.children[0].style.backgroundColor=t.color,this.res.children[0].style.opacity=t.opacity,this):(this.res.children[0].style.backgroundColor="transparent",this)}},{key:"adjust",value:function(t){var e=this,r=window.matchMedia("(max-width: 600px)"),n=window.matchMedia("(max-device-width: 415px)"),o=function(){e.isShown=!1,e.res.children[0],function(){for(var t=0;t<e.res.children[0].children.length;t++){var r=e.res.children[0].children[t];r.style.fontSize=n.matches?e.mobileSize?e.mobileSize:"1.2em":e.desktopSize?e.desktopSize:"1em","☰"===r.textContent&&(r.style.fontSize="2em")}}(),e.res.children[0].style.flexDirection="column";for(var t=0;t<e.res.children[0].children.length;t++)"☰"==e.res.children[0].children[t].textContent||e.res.children[0].children[t].textContent==e.keepItem?(e.res.children[0].children[t].id,e.res.children[0].children[t].style.display="flex"):e.res.children[0].children[t].style.display="none"};if(this.obj.isSide)o();else{var i=this.res.children[1];null!=i&&(i.style.background="yellow"),r.matches||n.matches?o():function(){e.res.children[0];for(var t=0;t<e.res.children[0].children.length;t++){var r=e.res.children[0].children[t];r.style.marginTop="0em",r.id,r.style.display="flex",r.textContent===e.titleText&&e.titleText.length>0&&(r.style.fontSize="2em")}var n=e.items[0].options;if(n&&n.animation){var o=n.animation.op,i=e.res.children[0].children[1].children[0];if(i.style.marginTop="0",o&&!e.hasAnimatedToWide)for(e.hasAnimatedToWide=!0,t=0;t<i.children.length;t++)i.children[t].animate(o.keyframesOpen,o.openOptions)}}()}return this}},{key:"render",value:function(t){var e=this,r=function(){var t=window.matchMedia("(max-width: 600px)"),r=window.matchMedia("(max-device-width: 415px)"),n=e.res.querySelector("#outerItemsWrapper")||e.res.children[0].children[1],o=n&&(n.querySelector("#innerItemsWrapper")||n.children[0]),i=e._ui||{};if(o&&(i.gap&&(o.style.gap=i.gap),i.justify&&(o.style.justifyContent=i.justify),i.alignItems&&(o.style.alignItems=i.alignItems),i.barPad&&(o.style.padding=i.barPad),i.maxWidth&&(o.style.maxWidth=i.maxWidth,o.style.marginLeft="auto",o.style.marginRight="auto")),n&&i.borderBottom&&(n.style.borderBottom=i.borderBottom),r.matches&&(o.style.position="relative"),(t.matches||r.matches)&&null!=o?o.style.flexDirection="column":null==o||e.obj.isSide||(o.style.flexDirection="row"),!e.obj.isSide&&!t.matches&&!r.matches){var a=e.res.querySelector("#hamburger");a&&(a.style.display="none")}e.obj.isSide&&(o.style.flexDirection="column"),e.obj.isSide||t.matches||(e.res.children[0].style.position="relative",n.style.transform="translateY(0px)"),!e.obj.isSide&&t.matches,e.obj.customStyle&&(e.res.children[0].style.marginTop="1rem",e.res.children[0].style.position="absolute",e.res.children[0].style.borderRadius="1rem",n.style.borderRadius="1rem"),e.obj.radius&&(e.res.children[0].style.borderRadius="1rem",n.style.borderRadius="1rem")};return window.addEventListener("resize",function(){return r()}),r(),t?(document.querySelector(t).style.padding=0,document.querySelector(t).style.margin=0,document.querySelector(t).appendChild(this.res),this.res):this.res}}])}(n.y)},3665:(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 o(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}}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 a(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 l(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(l=function(){return!!t})()}function c(t){return c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},c(t)}function u(t,e){return u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},u(t,e)}r.d(e,{m:()=>d});var d=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=c(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,l()?Reflect.construct(e,r||[],c(t).constructor):e.apply(t,r))}(this,e)).res=document.createElement("div"),t.res.style.position="relative",t.toggleWrap=document.createElement("div"),t.toggleWrap.style.zIndex=9999,t.toggleWrap.style.borderRadius="0.3rem",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="fixed",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.width="250px",t.contentWrap.style.display="none",t.contentWrap.style.zIndex=99999,document.addEventListener("DOMContentLoaded",function(){document.body.appendChild(t.contentWrap)}),document.body&&document.body.appendChild(t.contentWrap),t.styles={},t.children=[],t.isExpanded=!1,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&&u(t,e)}(e,t),r=e,s=[{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.radius&&(this.contentWrap.style.borderRadius=t.radius);var r=function(){var t=e.toggleWrap.getBoundingClientRect(),r=e.contentWrap.style.display,n=e.contentWrap.style.visibility;"none"===r&&(e.contentWrap.style.visibility="hidden",e.contentWrap.style.display="block");var o=e.contentWrap.getBoundingClientRect();"none"===r&&(e.contentWrap.style.display=r,e.contentWrap.style.visibility=n||"");var i=window.innerWidth,a=t.left+t.width/2-o.width/2;a<8&&(a=8),a+o.width>i-8&&(a=i-8-o.width),a<8&&(a=8),e.contentWrap.style.top=t.bottom+4+"px",e.contentWrap.style.left=a+"px"};this._positionContent=r;var n=function(){"none"!==e.contentWrap.style.display&&r()};if(window.addEventListener("resize",n),window.addEventListener("scroll",n,!0),t.behaviour){var o=t.behaviour;if("mouseover"===o||"mouseenter"===o){var i,a=function(){clearTimeout(i),e.contentWrap.style.display="block",r()},s=function(){i=setTimeout(function(){e.contentWrap.style.display="none"},200)};this.toggleWrap.addEventListener("mouseenter",a),this.toggleWrap.addEventListener("mouseleave",s),this.contentWrap.addEventListener("mouseenter",a),this.contentWrap.addEventListener("mouseleave",s),this.toggleWrap.addEventListener("click",function(t){t.stopPropagation(),"block"===e.contentWrap.style.display?e.contentWrap.style.display="none":(e.contentWrap.style.display="block",r())}),document.addEventListener("click",function(t){"block"!==e.contentWrap.style.display||e.contentWrap.contains(t.target)||e.toggleWrap.contains(t.target)||(e.contentWrap.style.display="none")})}else"click"===o?this.res.addEventListener("click",function(){e.toggle(),"block"===e.contentWrap.style.display&&r()}):this.res.addEventListener(o,function(){e.contentWrap.style.display="block",r()})}else this.res.addEventListener("click",function(){e.toggle(),"block"===e.contentWrap.style.display&&r()});return t.mar&&this.mar(t.mar),t.pad&&this.pad(t.pad),t.respad&&this.respad(t.respad),t.resmar&&this.resmar(t.resmar),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 i(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||o(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,o,i,a,s=[],l=!0,c=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==e);l=!0);}catch(t){c=!0,o=t}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(t,e)||o(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],i=e[1];return"string"==typeof i?"".concat(r,': "').concat(i,'"'):"object"===n(i)?"".concat(r,": ").concat(JSON.stringify(i)):"".concat(r,": ").concat(i)}).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}}],s&&a(r.prototype,s),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,s}(r(2332).y)},4550:(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 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,i(n.key),n)}}function i(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 s(t){return s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},s(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,{U:()=>c});var c=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=s(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||[],s(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&&l(t,e)}(e,t),r=e,(i=[{key:"set",value:function(t){return this.imageUrl=t.url,this.createCard(),t.useBrightness&&(this.useBrightness=!0),t.useBrightness&&"\n useBrightness: ".concat(this.useBrightness),t.pad&&this.pad(t.pad),t.mar&&this.mar(t.mar),t.inpad&&this.inpad(t.inpad),t.inpad&&"\n inpad: {".concat(t.inpad,"}"),t.font&&(this.res.style.fontFamily=t.font),t.inpad&&"\n font: ".concat(t.font),this.addListeners(),this}},{key:"inpad",value:function(t){return this.res.children[1].style.boxSizing="border-box",this.res.children[1].style.padding=t,this}},{key:"items",value:function(t){for(var e=0;e<t.length;e++)this.res.children[1].appendChild(t[e].render());return this}},{key:"createCard",value:function(){var t=document.createElement("div");t.style.display="grid",t.style.width="300px",t.style.height="400px",t.setAttribute("id","AAA");var e=document.createElement("div");e.style.gridArea="1/1",e.style.height="400px",e.style.borderRadius="15px",e.style.boxShadow="0 4px 8px 0 rgba(0,0,0,0.2)",e.style.overflow="hidden";var r=document.createElement("div");r.style.width="100%",r.style.height="100%",r.style.transition="0.9s",r.style.backgroundImage="url(".concat(this.imageUrl,")"),r.style.backgroundSize="cover",r.style.backgroundPostion="cover",r.style.backgroundRepeat="no-repeat",e.appendChild(r);var n=document.createElement("div");return n.style.gridArea="1/1",n.style.zIndex="1",t.appendChild(e),t.appendChild(n),this.res=t,this}},{key:"addListeners",value:function(){var t=this,e=this.res.children[0].children[0];return this.res.onmouseover=function(){e.style.transform="scale(1.3)",t.useBrightness&&(e.style.filter="brightness(31%)")},this.res.onmouseout=function(){e.style.transform="scale(1.0)",t.useBrightness&&(e.style.filter="brightness(100%)")},this}},{key:"render",value:function(t){if(!t)return this.res;this.options.id&&this.res.setAttribute("id",this.options.id),document.querySelector(t).appendChild(this.res)}}])&&o(r.prototype,i),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,i}(r(2332).y)},4617:(t,e,r)=>{function n(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){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 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,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+""}function s(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(s=function(){return!!t})()}function l(){return l="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,r){var n=function(t,e){for(;!{}.hasOwnProperty.call(t,e)&&null!==(t=c(t)););return t}(t,e);if(n){var o=Object.getOwnPropertyDescriptor(n,e);return o.get?o.get.call(arguments.length<3?t:r):o.value}},l.apply(null,arguments)}function c(t){return c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},c(t)}function u(t,e){return u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},u(t,e)}r.d(e,{e:()=>d});var d=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=c(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,s()?Reflect.construct(e,r||[],c(t).constructor):e.apply(t,r))}(this,e)).res=null,t.items=[],t.setup(),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&&u(t,e)}(e,t),r=e,a=[{key:"set",value:function(t){return this.options=t,t.pad&&this.pad(t.pad),t.mar&&this.mar(t.mar),this.commonMethods(t),this.callReact(t),this}},{key:"callReact",value:function(t){var r,n,i,a=[],s=t.transform&&"object"===o(t.transform);if(t.stroke||t.gradient||t.span||t.backgroundOp||t.layout||t.shadow||t.animation||t.filtera||s){t.gradient&&(this.globalGradient=t.gradient.op.gradient,"radial"===t.gradient.op.direction&&(this.globalGradient="radial-gradient(circle at center, orange, green)")),t.stroke&&(r=e,n=this,"function"==typeof(i=l(c(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)}]),t.span&&(t.span.prevText=this.text);var u=[t.stroke,t.gradient,t.animation,t.span,t.backgroundOp,t.layout,t.marginOp,t.shadow,t.animation,t.filtera,s?t.transform:void 0];u=u.filter(function(t){return null!=t});for(var d=0;d<u.length;d++)a.push({range:u[d].range,log:u[d].op.name,target:u[d].target,op:u[d].op});var f=[];t.borderObj&&f.push("border"),t.background&&f.push("background"),t.mar&&f.push("margin"),t.animation&&f.push("animation"),t.span&&f.push("span"),this.chainReact(a,this.options.id,f)}}},{key:"setup",value:function(){var t=document.createElement("ul");return this.res=t,this.res.style.padding=0,this.res.style.margin=0,this}},{key:"setItems",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 n(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)?n(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var o=0,i=function(){};return{s:i,n:function(){return o>=t.length?{done:!0}:{done:!1,value:t[o++]}},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 a,s=!0,l=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return s=t.done,t},e:function(t){l=!0,a=t},f:function(){try{s||null==r.return||r.return()}finally{if(l)throw a}}}}(t);try{for(r.s();!(e=r.n()).done;){var o=e.value;if("string"==typeof o){var i=document.createElement("li");i.textContent=o,this.res.appendChild(i)}else{var a=o.render();this.res.appendChild(a)}}}catch(t){r.e(t)}finally{r.f()}return this}},{key:"font",value:function(t){return this.res.style.fontFamily=t,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:"border",value:function(t,e){return this.res.style.border="".concat(t,"px solid ").concat(e),this}},{key:"toCode",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if(this.code=[],this.excludeFromCodeTrue)return[""];var e=" ".repeat(t),r="".concat(e,"new UList()");return this.items&&this.items.length&&(r+="\n".concat(e," .setItems([\n")+this.items.map(function(e){return"string"==typeof e?"".concat(" ".repeat(t+4),'"').concat(e,'"'):e.toCode(t+4)}).join(",\n")+"\n".concat(e," ])")),[r+="\n".concat(e)]}},{key:"render",value:function(t){if(!t)return this.res;document.querySelector(t).appendChild(this.res)}}],a&&i(r.prototype,a),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,a}(r(2332).y)},4753:(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 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,i(n.key),n)}}function i(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:()=>a});var a=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){for(var n=[],o=0;o<t.children.length;o++){var i=t.children[o];"text"===i&&this.insertTextToCard(n,e,t,r),"image"!==i||t.backgroundCard||n.push('\n new Image("https://upload.wikimedia.org/wikipedia/commons/3/3a/Starship_S20.jpg").set({})'),"link"===i&&(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 o="\n ".concat(n.tabSpace(6)," ").concat(n.text[e.op.theme.toLowerCase()].code),i=n.ops[e.op.theme.toLowerCase()].blast.code;r.backgroundCard||(i=n.ops[e.op.theme.toLowerCase()].blastFun(1));var a=this.insertTextBetween(o,i);t.push(a)}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;return t.slice(0,n)+", "+e+", "+t.slice(n)}return t}}],null&&o(t.prototype,null),e&&o(t,e),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e}()},5367:(t,e,r)=>{r(2332)},5594:(t,e,r)=>{r.d(e,{A:()=>C,G:()=>E});var n=r(9828),o=r(8597),i={"t-vhs":{summary:"Tape-glitch morph: chroma splits and the image tears, strongest at the midpoint, gone at both ends.",nodes:[{op:"aberration",amount:[0,18,0]},{op:"flow",strength:[0,34,0],scale:60,speed:0,window:[.15,.95],ease:"in-out"}]},"t-dissolve":{summary:"Ordered-dither dissolve — the old state breaks into pixels before the new one resolves.",nodes:[{op:"dither",levels:[8,2,8],size:[1,7,1],amount:[0,1,0],ease:"in-out"}]},"t-split":{summary:"Per-side morph: the old state posterises to duotone while the new one resolves through a halftone screen.",nodes:[{op:"duotone",side:"old",amount:[0,1,1],dark:"#0B1B2B",light:"#1abc9c"},{op:"halftone",side:"new",size:[10,6,2],amount:[1,1,0],softness:.35,angle:15}]},"t-bloom":{summary:"A soft halftone bloom through the middle of the morph.",nodes:[{op:"halftone",size:[2,9,2],amount:[0,1,0],softness:.4,angle:15,window:[.1,.9]}]},"liquid-hero":{summary:"A ripple that trails the pointer, then relaxes back in ~1.5s.",live:"enhanced",nodes:[{op:"stir",by:"mouse",radius:.055,force:2.2,strength:16,curl:.8,resolution:256,decay:.988}]},linger:{summary:"The same current, held for four or five seconds. Only `decay` differs.",live:"enhanced",nodes:[{op:"stir",by:"mouse",radius:.055,force:2.2,strength:7,curl:.8,resolution:256,decay:.9985,dye:0,sheen:0}]},"flow-field":{summary:"A standing current across the whole element. No solver, runs anywhere.",nodes:[{op:"flow",strength:18,scale:120,speed:.25}]},"flow-pointer":{summary:"The same current, but only around the pointer.",nodes:[{op:"flow",by:"mouse",strength:26,scale:100,radius:320}]},"print-shop":{summary:"Offset-litho dot screen with white seams under the glyphs.",nodes:[{op:"halftone",size:6,angle:15},{op:"edges",color:"#FFFFFF"}]},newsprint:{summary:"One-bit ordered dither — ink on paper, no greys.",nodes:[{op:"dither",mono:!0,ink:"#0B1B2B"}]},crt:{summary:"Posterised to a few levels, with a lens-like colour split.",nodes:[{op:"dither",levels:3},{op:"aberration",amount:6}]},glass:{summary:"Refractive metaball lens over untouched content.",nodes:[{op:"blobs",refract:70,dispersion:1,frost:.25}]},"hex-lens":{summary:"Hex cells rise toward the pointer; flush and invisible at rest.",nodes:[{op:"hexalize",size:26,lift:.3,by:"hover",radius:220}]},ripple:{summary:"The coordinate space pushes away from the pointer.",nodes:[{op:"offset",by:"mouse",strength:22,radius:280}]},spotlight:{summary:"A duotone disc that travels with the pointer; the rest is untouched.",nodes:[{op:"mask",from:"radial",as:"spot",by:"mouse",radius:200},{op:"duotone",masked:"spot",colors:["#104B87","#E8FF00"]}]},turbulent:{summary:"Animated noise drives the displacement, so the warp breathes.",nodes:[{op:"noise",as:"turbulence",scale:3,speed:.4},{op:"offset",masked:"turbulence",by:"static",strength:30}]},echoes:{summary:"Changing content leaves a fading trail behind it.",live:"required",nodes:[{op:"echo",decay:.92,strength:.85}]},comet:{summary:"A long, tinted comet tail. Needs live capture — on snapshot you see nothing move.",live:"required",nodes:[{op:"echo",decay:.975,strength:.95,tint:"#7FD4FF",tintAmount:.65}]}};function a(t){var e,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=i[t];if(!n)throw new Error("[nodality] "+(0,o.au)(t,Object.keys(i),"raster preset"));return(e=n.nodes,JSON.parse(JSON.stringify(e))).map(function(t){return Object.assign(t,r)})}var s={linear:function(t){return t},in:function(t){return t*t*t},out:function(t){return 1-Math.pow(1-t,3)},"in-out":function(t){return t<.5?4*t*t*t:1-Math.pow(-2*t+2,3)/2}},l=function(){return"undefined"!=typeof performance?performance.now():Date.now()},c=function(){return"undefined"!=typeof window&&"function"==typeof window.matchMedia&&window.matchMedia("(prefers-reduced-motion: reduce)").matches};function u(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!t||"function"!=typeof t.setProgress){var r=0;t={setProgress:function(t){return r=Math.min(1,Math.max(0,Number(t)||0))},get progress(){return r}}}var n=null!=e.duration?e.duration:600,o=s[e.easing]||s["in-out"],i=!1!==e.respectReducedMotion,a=0,u=t.progress||0,d=u,f=0,p=0,h=!1,y=null,m=null,b=!1,v=function(){if(!b){var e=l()-f,r=p<=0?1:Math.min(1,e/p);if(t.setProgress(u+(d-u)*o(r)),r>=1)return function(){h=!1,a=0;var e=y;y=null,e&&e(t.progress)}();a=requestAnimationFrame(v)}},g={get value(){return t.progress},get running(){return h},set:function(e){return g.stop(),t.setProgress(e),t.progress},to:function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(b)return Promise.resolve(t.progress);var o=Math.min(1,Math.max(0,Number(e)||0));if(i&&c())return g.set(o),Promise.resolve(o);if(y){var s=y;y=null,s(t.progress)}a&&cancelAnimationFrame(a),u=t.progress,d=o;var m=Math.abs(d-u);return m<1e-4?(t.setProgress(o),Promise.resolve(o)):(p=(null!=r.duration?r.duration:n)*m,f=l(),h=!0,a=requestAnimationFrame(v),new Promise(function(t){y=t}))},stop:function(){if(a&&cancelAnimationFrame(a),a=0,h=!1,y){var e=y;y=null,e(t.progress)}return t.progress},bindScroll:function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n="string"==typeof e?document.querySelector(e):e;if(!n)return g;g.unbindScroll(),g.stop();var o=null!=r.start?r.start:0,i=null!=r.end?r.end:1,a=function(){if(!b){var e=n.getBoundingClientRect(),r=window.innerHeight||1,a=(r-e.top)/(r+e.height||1),s=(Math.min(1,Math.max(0,a))-o)/(i-o||1);t.setProgress(Math.min(1,Math.max(0,s)))}};return m={node:n,update:a},window.addEventListener("scroll",a,{passive:!0}),window.addEventListener("resize",a,{passive:!0}),a(),g},unbindScroll:function(){return m?(window.removeEventListener("scroll",m.update),window.removeEventListener("resize",m.update),m=null,g):g},drive:function(t){return g.set(t)},destroy:function(){b=!0,g.stop(),g.unbindScroll()}};return g}function d(){var t,e,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function i(r,n,o,i){var l=n&&n.prototype instanceof s?n:s,c=Object.create(l.prototype);return f(c,"_invoke",function(r,n,o){var i,s,l,c=0,u=o||[],d=!1,f={p:0,n:0,v:t,a:p,f:p.bind(t,4),d:function(e,r){return i=e,s=0,l=t,f.n=r,a}};function p(r,n){for(s=r,l=n,e=0;!d&&c&&!o&&e<u.length;e++){var o,i=u[e],p=f.p,h=i[2];r>3?(o=h===n)&&(l=i[(s=i[4])?5:(s=3,3)],i[4]=i[5]=t):i[0]<=p&&((o=r<2&&p<i[1])?(s=0,f.v=n,f.n=i[1]):p<h&&(o=r<3||i[0]>n||n>h)&&(i[4]=r,i[5]=n,f.n=h,s=0))}if(o||r>1)return a;throw d=!0,n}return function(o,u,h){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&p(u,h),s=u,l=h;(e=s<2?t:l)||!d;){i||(s?s<3?(s>1&&(f.n=-1),p(s,l)):f.n=l:f.v=l);try{if(c=2,i){if(s||(o="next"),e=i[o]){if(!(e=e.call(i,l)))throw TypeError("iterator result is not an object");if(!e.done)return e;l=e.value,s<2&&(s=0)}else 1===s&&(e=i.return)&&e.call(i),s<2&&(l=TypeError("The iterator does not provide a '"+o+"' method"),s=1);i=t}else if((e=(d=f.n<0)?l:r.call(n,f))!==a)break}catch(e){i=t,s=1,l=e}finally{c=1}}return{value:e,done:d}}}(r,o,i),!0),c}var a={};function s(){}function l(){}function c(){}e=Object.getPrototypeOf;var u=[][n]?e(e([][n]())):(f(e={},n,function(){return this}),e),p=c.prototype=s.prototype=Object.create(u);function h(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,c):(t.__proto__=c,f(t,o,"GeneratorFunction")),t.prototype=Object.create(p),t}return l.prototype=c,f(p,"constructor",c),f(c,"constructor",l),l.displayName="GeneratorFunction",f(c,o,"GeneratorFunction"),f(p),f(p,o,"Generator"),f(p,n,function(){return this}),f(p,"toString",function(){return"[object Generator]"}),(d=function(){return{w:i,m:h}})()}function f(t,e,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(t){o=0}f=function(t,e,r,n){if(e)o?o(t,e,{value:r,enumerable:!n,configurable:!n,writable:!n}):t[e]=r;else{var i=function(e,r){f(t,e,function(t){return this._invoke(e,r,t)})};i("next",0),i("throw",1),i("return",2)}},f(t,e,r,n)}function p(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=m(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return a=t.done,t},e:function(t){s=!0,i=t},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw i}}}}function h(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,o,i,a,s=[],l=!0,c=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==e);l=!0);}catch(t){c=!0,o=t}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(t,e)||m(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 y(t){return function(t){if(Array.isArray(t))return b(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||m(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.")}()}function m(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}}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 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 g(t,e,r,n,o,i,a){try{var s=t[i](a),l=s.value}catch(t){return void r(t)}s.done?e(l):Promise.resolve(l).then(n,o)}function w(t){return function(){var e=this,r=arguments;return new Promise(function(n,o){var i=t.apply(e,r);function a(t){g(i,n,o,a,s,"next",t)}function s(t){g(i,n,o,a,s,"throw",t)}a(void 0)})}}var _=function(t,e){var r=t.getBoundingClientRect(),n=e.getBoundingClientRect();return{x:n.x-r.x,y:n.y-r.y,w:n.width,h:n.height}};function k(t,e,r){return O.apply(this,arguments)}function O(){return O=w(d().m(function t(e,r,n){var o,i,a,s,l,c,u,f;return d().w(function(t){for(;;)switch(t.n){case 0:for((o=e.cloneNode(!0)).style.position="static",o.style.left=o.style.top="0",o.style.margin="0",o.style.visibility="visible",i=[e].concat(y(e.querySelectorAll("*"))),a=[o].concat(y(o.querySelectorAll("*"))),s=0;s<i.length;s++)l=getComputedStyle(i[s]),a[s].style.fontSize=l.fontSize,a[s].style.lineHeight=l.lineHeight,a[s].style.fontWeight=l.fontWeight,a[s].style.fontFamily=l.fontFamily,a[s].style.letterSpacing=l.letterSpacing,a[s].style.width=l.width,a[s].style.height=l.height,a[s].style.padding=l.padding,a[s].style.boxSizing="content-box";return c=Math.max(1,Math.min("undefined"!=typeof window&&window.devicePixelRatio||1,3)),u='<svg xmlns="http://www.w3.org/2000/svg" width="'.concat(r*c,'" ')+'height="'.concat(n*c,'" viewBox="0 0 ').concat(r," ").concat(n,'">')+'<foreignObject width="100%" height="100%"><div xmlns="http://www.w3.org/1999/xhtml">'+(new XMLSerializer).serializeToString(o)+"</div></foreignObject></svg>",f=document.createElement("img"),t.n=1,new Promise(function(t,e){f.onload=t,f.onerror=e,f.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(u)});case 1:return t.a(2,f)}},t)})),O.apply(this,arguments)}var x=function(t){if(!t)return[];if(Array.isArray(t))return t;try{return a(t)||[]}catch(t){return[]}},S=function(t){return String(t||"").replace(/\s+/g," ").trim().toLowerCase()},j=function(t){return"string"==typeof t&&t.startsWith("#")?t.slice(1):t},E=function(t){return(Array.isArray(t.chain)&&t.chain.length?t.chain:[{from:t.from,to:t.to}]).map(function(e){var r=function(r,n){return void 0!==e[r]?e[r]:void 0!==t[r]?t[r]:n},n=e.to&&!Array.isArray(e.to)&&"object"===v(e.to)?e.to:null,o=n?y(new Set(Object.values(e.to))).map(j):(Array.isArray(e.to)?e.to:[e.to]).map(j),i=new Map;if(n)for(var a=0,s=Object.entries(e.to);a<s.length;a++){var l=h(s[a],2),c=l[0],u=l[1];i.set(S(c),j(u))}return{from:j(e.from),byLabel:n,toIds:o,labelToId:i,effect:r("effect"),duration:r("duration",900),back:!1!==r("back",!0),live:!0===r("live"),fade:r("fade","morph")}})};function C(t,e,r){if(!t||"undefined"==typeof document)return[];var o=(r||[]).filter(function(t){return t&&"morph"===t.op});if(!o.length)return[];var i=y(t.children),a=function(r){var n=j(r),o=document.getElementById(n);if(o&&t.contains(o))return o;var a=(e||[]).findIndex(function(t){return t&&j(t.id)===n});return a>=0?i[a]:null};return o.map(function(e){return function(t,e,r){var o=E(e),i=o[0],a=i&&i.from,s=null!=a?r(a):null,l=new Map;s&&l.set(a,s);var c,f=p(o);try{for(f.s();!(c=f.n()).done;){var m=c.value,b=r(m.from);b&&!l.has(m.from)&&l.set(m.from,b);var v,g=p(m.toIds);try{for(g.s();!(v=g.n()).done;){var O=v.value,j=r(O);j&&!l.has(O)&&l.set(O,j)}}catch(t){g.e(t)}finally{g.f()}}}catch(t){f.e(t)}finally{f.f()}if(!s||!i.toIds.some(function(t){return l.has(t)}))return console.warn("[nodality] morph: could not resolve",a,"->",i?i.toIds:[]),null;var C=function(t){return o.find(function(e){return e.from===t})||null},P=document.createElement("div");P.className="nod-morph",P.style.cssText="position:relative;",t.insertBefore(P,s);var T=document.createElement("div");T.className="nod-morph-host",T.style.cssText="position:absolute;inset:0;";var A=document.createElement("div");A.className="nod-morph-live",A.style.cssText="position:absolute;inset:0;",P.appendChild(T),P.appendChild(A),A.appendChild(s),s.style.position="absolute",s.style.left=s.style.top="0";var R,M=p(l);try{for(M.s();!(R=M.n()).done;){var I=h(R.value,2),D=I[0],L=I[1];D!==a&&L.remove()}}catch(t){M.e(t)}finally{M.f()}var W=a,B=[],z=function(){return l.get(W)||s},N=function(t){P.style.minHeight=Math.max(z().getBoundingClientRect().height,t||0)+24+"px"};N(0);var q=null,F=null,U=-1,H=null,K=null,J=null,$=!1,G=null,V=null,Q=o.length>1,X=function(){var t=w(d().m(function t(e,r,o){var i,a,s,l,c,f,p;return d().w(function(t){for(;;)switch(t.n){case 0:if(!(i=y(r.querySelectorAll("img"))).length){t.n=2;break}return t.n=1,Promise.all(i.map(function(t){return t.complete&&t.naturalWidth?null:"function"==typeof t.decode?t.decode().catch(function(){}):new Promise(function(e){t.addEventListener("load",e,{once:!0}),t.addEventListener("error",e,{once:!0})})}));case 1:return t.n=2,new Promise(function(t){return requestAnimationFrame(t)});case 2:return a=_(T,e),s=_(T,r),N(Math.max(a.y+a.h,s.y+s.h)),t.n=3,Promise.all([k(e,a.w,a.h),k(r,s.w,s.h)]);case 3:l=t.v,c=h(l,2),f=c[0],p=c[1],q=(0,n.applyRasterPipeline)(T,x(o.effect),{transition:{oldImage:f,newImage:p,oldRect:a,oldTo:s,newRect:s,newFrom:a,standDownAtStart:!0,live:!0===o.live,fade:o.fade||"morph"}}),F&&F.destroy(),F=u(q,{duration:null!=o.duration?o.duration:900});case 4:return t.a(2)}},t)}));return function(e,r,n){return t.apply(this,arguments)}}(),Y=function(){var t=w(d().m(function t(e){var r,o,i,a,s,c,u,f,h,m;return d().w(function(t){for(;;)switch(t.n){case 0:if((r=C(W))&&r.toIds.includes(e)){t.n=1;break}return t.a(2);case 1:if(o=l.get(e)){t.n=2;break}return t.a(2);case 2:i=z(),U=r.toIds.indexOf(e),J=W,a=p((0,n.activeRasterPipelines)());try{for(a.s();!(s=a.n()).done;)c=s.value,P.contains(c.canvas)&&c.destroy()}catch(t){a.e(t)}finally{a.f()}for(u=0,f=y(T.children);u<f.length;u++)(h=f[u])!==i&&h.remove();return T.appendChild(o),K=i,H=o,o.style.visibility="hidden",m=_(T,i),Object.assign(o.style,{position:"absolute",left:"0",top:Math.round(Q?m.y:m.h+20)+"px"}),t.n=3,X(i,o,r);case 3:if(F){t.n=4;break}return t.a(2);case 4:return G=J,V=e,F.set(0),lt(e),r.back&&at(o),t.n=5,F.to(1);case 5:1===t.v&&H===o&&it(e,i,r);case 6:return t.a(2)}},t)}));return function(e){return t.apply(this,arguments)}}(),Z=!1,tt=0,et=function(){var t=w(d().m(function t(){var e,r,n;return d().w(function(t){for(;;)switch(t.n){case 0:if(B.length){t.n=1;break}return t.a(2);case 1:if(e=B[B.length-1],r=l.get(e)){t.n=2;break}return t.a(2);case 2:if(n=z(),!q||!F||G!==e||V!==W){t.n=4;break}return t.n=3,F.to(0);case 3:return 0===t.v&&ot(e),t.a(2);case 4:return t.n=5,nt(e,r,n);case 5:return t.a(2)}},t)}));return function(){return t.apply(this,arguments)}}(),rt=function(){var t=w(d().m(function t(){return d().w(function(t){for(;;)switch(t.p=t.n){case 0:if(!Z){t.n=1;break}return tt++,t.a(2);case 1:return Z=!0,t.p=2,t.n=3,et();case 3:if(!(tt>0&&B.length)){t.n=5;break}return tt--,t.n=4,et();case 4:t.n=3;break;case 5:return t.p=5,Z=!1,tt=0,t.f(5);case 6:return t.a(2)}},t,null,[[2,,5,6]])}));return function(){return t.apply(this,arguments)}}(),nt=function(){var t=w(d().m(function t(e,r,o){var i,a,l,c,u;return d().w(function(t){for(;;)switch(t.n){case 0:return i=y((0,n.activeRasterPipelines)()).filter(function(t){return P.contains(t.canvas)}),a=C(e)||{},r===s?($=!0,A.style.display=""):r.parentNode!==T&&(r.style.visibility="hidden",T.appendChild(r),l=_(T,o),Object.assign(r.style,{position:"absolute",left:"0",top:Math.round(Q?l.y:0)+"px"})),t.n=1,X(r,o,a);case 1:c=p(i);try{for(c.s();!(u=c.n()).done;)u.value.destroy()}catch(t){c.e(t)}finally{c.f()}if($=!1,F){t.n=2;break}return t.a(2);case 2:return G=e,V=W,K=r,H=o,F.set(1),t.n=3,F.to(0);case 3:0===t.v&&ot(e);case 4:return t.a(2)}},t)}));return function(e,r,n){return t.apply(this,arguments)}}(),ot=function(t){B[B.length-1]===t&&B.pop(),W=t;var e,r=p((0,n.activeRasterPipelines)());try{for(r.s();!(e=r.n()).done;){var o=e.value;P.contains(o.canvas)&&o.destroy()}}catch(t){r.e(t)}finally{r.f()}q=null,F=null,G=null,V=null,J=B.length?B[B.length-1]:null,lt(t)},it=function(t,e,r){null!=J&&J!==t&&B.push(J),W=t,K=e&&e!==s?e:null,lt(t),r&&r.back&&at(l.get(t))},at=function(t){if(t){var e=y(t.querySelectorAll("button")).find(function(t){return!t.dataset.nodMorphWired&&!t.dataset.nodMorphBack});e&&(e.dataset.nodMorphBack="1",e.addEventListener("click",function(){rt()}))}},st=new Set,lt=function(t){var e=C(t),r=l.get(t);if(e&&r){var n=function(t){var e=y(t.querySelectorAll("a"));if(e.length)return e;var r=y(t.querySelectorAll("button, [role=button]"));return r.length?r:[t]}(r),o=!!e.byLabel&&n.some(function(t){return e.labelToId.has(S(t.textContent))});n.forEach(function(t){return function(t,e,r,n){if(!t.dataset.nodMorphWired&&!t.dataset.nodMorphBack){var o=n?e.labelToId.get(S(t.textContent)):1===e.toIds.length?e.toIds[0]:e.byLabel?e.labelToId.get(S(t.textContent)):e.toIds[r.indexOf(t)];o&&l.has(o)&&(t.dataset.nodMorphWired="1",t.dataset.nodMorphTo=o,t.addEventListener("click",function(t){l.has(o)&&(t.preventDefault(),Y(o))}))}}(t,e,n,o)}),"undefined"==typeof MutationObserver||st.has(t)||(st.add(t),new MutationObserver(function(){return lt(t)}).observe(r,{childList:!0,subtree:!0}))}};lt(a);var ct=function(){if(P.isConnected){var t=q?q.progress:0,e=T.querySelector("canvas"),r=!!e&&"visible"===(e.style.visibility||"visible"),n=!q||!r,o=$||n&&t<=0&&(W===a||K===s)?"":"none";A.style.display!==o&&(A.style.display=o);var i=H||T.firstElementChild;if(i&&i.style){var l=q&&n&&t>=1?"":"hidden";i.style.visibility!==l&&(i.style.visibility=l)}if(K&&K!==s&&K.style){var c=n&&t<=0?"":"hidden";K.style.visibility!==c&&(K.style.visibility=c)}requestAnimationFrame(ct)}};return requestAnimationFrame(ct),{stage:P,from:s,get destinations(){return i.toIds.map(function(t){return l.get(t)||null})},get states(){return l},get current(){return W},get history(){return[].concat(B)},get progress(){return q?q.progress:0},get active(){return U},goTo:function(t){var e=C(W);return e?Y(e.toIds[t]):void 0},goToState:Y,back:function(){F&&F.to(0)},goBack:rt,destroy:function(){F&&F.destroy();var t,e=p((0,n.activeRasterPipelines)());try{for(e.s();!(t=e.n()).done;){var r=t.value;P.contains(r.canvas)&&r.destroy()}}catch(t){e.e(t)}finally{e.f()}P.remove()}}}(t,e,a)}).filter(Boolean)}},5613:(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 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,i(n.key),n)}}function i(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,{Q:()=>a}),r(2332);var a=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 o=document.createElement("input");if(o.setAttribute("id","slider"),o.setAttribute("type","range"),o.setAttribute("min",t.min),o.setAttribute("max",t.max),o.setAttribute("value",t.min),o.style.width=null!==(e=t.width)&&void 0!==e?e:"100%",!t.plain){var i,a;o.style.setProperty("-webkit-appearance","none"),o.style.appearance="none",o.style.height="9px",o.style.background=null!==(i=t.style.trackColor)&&void 0!==i?i:"orange",o.style.borderRadius="5px";var 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: ".concat(null!==(a=t.style.thumbColor)&&void 0!==a?a:"4CAF50",";\n cursor: pointer;\n }\n "),l=document.createElement("style");l.appendChild(document.createTextNode(s)),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=o.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)),o.addEventListener("input",function(){n.currentLabel.textContent=o.value}),window.matchMedia("(max-device-width: 415px)").matches)if(t.plain)o.style.width="80%";else{var d,f;o.style.height="20px",o.style.background=null!==(d=t.style.trackColor)&&void 0!==d?d:"1abc9C",o.style.borderRadius="10px",o.style.fontSize="3rem",o.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!==(f=t.style.thumbColor)&&void 0!==f?f:"blue",";\n cursor: pointer;\n }\n "),h=document.createElement("style");h.appendChild(document.createTextNode(p)),document.head.appendChild(h)}return c.appendChild(u),c.appendChild(o),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)}}])&&o(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e}();"undefined"!=typeof window&&(window.Range=a)},5632:(t,e,r)=>{r.d(e,{j:()=>p});var n=r(2332),o=r(1382);function i(t){return i="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},i(t)}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 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,l(n.key),n)}}function l(t){var e=function(t){if("object"!=i(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==i(e)?e:e+""}function c(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(c=function(){return!!t})()}function u(){return u="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,r){var n=function(t,e){for(;!{}.hasOwnProperty.call(t,e)&&null!==(t=d(t)););return t}(t,e);if(n){var o=Object.getOwnPropertyDescriptor(n,e);return o.get?o.get.call(arguments.length<3?t:r):o.value}},u.apply(null,arguments)}function d(t){return d=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},d(t)}function f(t,e){return f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},f(t,e)}var p=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=d(e),function(t,e){if(e&&("object"==i(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,c()?Reflect.construct(e,r||[],d(t).constructor):e.apply(t,r))}(this,e)).res=null,t.options={},t.code=[],t.elCSS=[],t.html=[],t.react=[],t.setup(),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&&f(t,e)}(e,t),r=e,n=[{key:"setup",value:function(){var t=document.createElement("div");return this.res=t,this.res.style.padding=0,this.res.style.margin=0,this.res.style.borderRadius="50%",this}},{key:"toCode",value:function(){if(this.excludeFromCodeTrue)return[""];var t=Object.fromEntries(Object.entries(this.options||{}).filter(function(t){return null!=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,o,i,a,s=[],l=!0,c=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==e);l=!0);}catch(t){c=!0,o=t}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(t,e)||function(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}}(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)[1]})),e=(0,o.sy)(t,4);return["new Circle().set(".concat(e,")")]}},{key:"setArea",value:function(t){return this.res.style.gridArea=t,this}},{key:"diameter",value:function(t){return this.res.style.width=this.res.style.height="number"==typeof t?t+"px":t,this.res.style.borderRadius="50%",this}},{key:"size",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t;return this.res.style.width="number"==typeof t?t+"px":t,this.res.style.height="number"==typeof e?e+"px":e,this.res.style.borderRadius="50%",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:"border",value:function(t){return this.res.style.border="string"==typeof t?t:"".concat((null==t?void 0:t.width)||1,"px solid ").concat((null==t?void 0:t.color)||"black"),this}},{key:"radius",value:function(t){return this.res.style.borderRadius="number"==typeof t?t+"px":t,this}},{key:"set",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.options=t,t.top&&(this.res.style.top=t.top),t.left&&(this.res.style.left=t.left),(t.top||t.left)&&(this.res.style.position="absolute"),t.diameter&&this.diameter(t.diameter),t.size&&this.size(t.size.w||t.size,t.size.h||t.size),t.width&&(this.res.style.width=t.width),t.height&&(this.res.style.height=t.height),t.radius&&this.radius(t.radius),t.id&&this.res.setAttribute("id",t.id),t.class&&this.res.setAttribute("class",t.class),t.zIndex&&(this.res.style.zIndex=t.zIndex),t.pad&&(this.res.style.padding=t.pad),t.mar&&(this.res.style.margin=t.mar),t.background&&(this.res.style.background=t.background),t.color&&this.color(t.color),t.border&&this.border(t.border),t.shadow&&(this.res.style.boxShadow=t.shadow),t.cursor&&(this.res.style.cursor=!0===t.cursor?"pointer":t.cursor);var r,n,o,i=[];if(t.stroke||t.gradient||t.backgroundOp||t.layout||t.marginOp||t.shadow||t.animation||t.filtera||t.transform){var a;t.gradient&&(this.globalGradient=t.gradient.op.gradient),"radial"===t.gradient.op.direction&&(this.globalGradient="radial-gradient(circle at center, orange, green)"),t.stroke&&(null===(r=e,n=this,a="function"==typeof(o=u(d(1&3?r.prototype:r),"setAny",n))?function(t){return o.apply(n,t)}:o)||void 0===a||a([{globalBlast:"".concat(t.stroke.op.width," ").concat(t.stroke.op.color)}]));for(var s=[t.stroke,t.gradient,t.animation,t.backgroundOp,t.layout,t.marginOp,t.shadow,t.animation,t.filtera,t.transform].filter(function(t){return null!=t}),l=0;l<s.length;l++)i.push({range:s[l].range,log:s[l].op.name,target:s[l].target,op:s[l].op});var c=[];t.border&&c.push("border"),t.background&&c.push("background"),(t.mar||t.margin)&&c.push("margin"),t.animation&&c.push("animation"),this.chainReact(i,this.options.id,c)}return this}},{key:"getType",value:function(){return"LayoutWrapperElement"}},{key:"excludeFromCode",value:function(){return this.excludeFromCodeTrue=!0,this}},{key:"setClass",value:function(t){return this.res.setAttribute("class",t),this}},{key:"onTap",value:function(t){return this.res.addEventListener("click",t),this}},{key:"render",value:function(t){var e;return t&&(null===(e=document.querySelector(t))||void 0===e||e.appendChild(this.res)),this.res}}],n&&s(r.prototype,n),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n}(n.y)},5860:(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 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,i(n.key),n)}}function i(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 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=l(t)););return t}(t,e);if(n){var o=Object.getOwnPropertyDescriptor(n,e);return o.get?o.get.call(arguments.length<3?t:r):o.value}},s.apply(null,arguments)}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,{M:()=>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)).code=[],t.setup(),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,i=[{key:"toCode",value:function(){return this.code}},{key:"setup",value:function(){this.code.push("new FlexGrid()"),this.code.push(".setup()");var t=document.createElement("div");return t.style.display="flex",t.style.padding=0,t.style.margin=0,this.res=t,this}},{key:"getType",value:function(){return"FlexRowLayoutElement"}},{key:"set",value:function(t){t.id&&this.res.setAttribute("id",t.id),this.commonMethods(t),t.onTap&&this.onTap(t.onTap),this.code.push(".set({"),t.gap&&this.code.push("gap: ".concat(t.gap)),t.gap&&(this.res.style.gap=t.gap),t.flex&&(this.res.style.flex=t.flex),t.flex&&this.code.push("flex: ".concat(t.flex,",")),t.wrap&&(this.res.style.flexWrap="wrap"),t.wrap&&this.code.push("wrap: ".concat(t.wrap,",")),t.align&&(this.res.style.justifyContent=t.align),t.align&&this.code.push("align: ".concat(t.align,",")),t.colat&&this.toColumnAt(t.colat),t.colat&&this.code.push('\n colat: "'.concat(t.colat,'",')),this.code.push("}),");var e=t;return this.callReact(e),this}},{key:"callReact",value:function(t){this.options=t;var r,o,i,a=[],c=t.transform&&"object"===n(t.transform);if(t.stroke||t.gradient||t.span||t.backgroundOp||t.layout||t.shadow||t.animation||t.filtera||c){t.gradient&&(this.globalGradient=t.gradient.op.gradient,"radial"===t.gradient.op.direction&&(this.globalGradient="radial-gradient(orange, green)")),t.stroke&&(r=e,o=this,"function"==typeof(i=s(l(1&3?r.prototype:r),"setAny",o))?function(t){return i.apply(o,t)}:i)([{globalBlast:"".concat(t.stroke.op.width," ").concat(t.stroke.op.color)}]),t.span&&(t.span.prevText=this.text);var u=[t.stroke,t.gradient,t.animation,t.span,t.backgroundOp,t.layout,t.marginOp,t.shadow,t.animation,t.filtera,c?t.transform:void 0];u=u.filter(function(t){return null!=t});for(var d=0;d<u.length;d++)a.push({range:u[d].range,log:u[d].op.name,target:u[d].target,op:u[d].op});var f=[];t.borderObj&&f.push("border"),t.background&&f.push("background"),t.mar&&f.push("margin"),t.animation&&f.push("animation"),t.span&&f.push("span"),this.chainReact(a,t.id,f)}}},{key:"toColumnAt",value:function(t){var e=this;if(!this.columnAlways){var r=function(){var r=window.matchMedia("(max-width: ".concat(t,")")),n=window.matchMedia("(max-device-width: 415px)");r.matches||n.matches?(e.res.style.flexDirection="column",e.res.style.alignItems="center"):e.res.style.flexDirection="row"};r(),window.addEventListener("resize",r)}}},{key:"flex",value:function(t){return this.arra=Array.from(t.replace(/\s/g,"")),this.areas=Array.from(Array(t.replace(/\s/g,"")).join("")),this.save='"'.concat(t,'"'),this}},{key:"items",value:function(t){this.items=t,this.code.push("\n .items([");for(var e=0;e<t.length;e++){var r=t[e];if(null!=r){var n=r.render();void 0!==r.toCode&&this.code.push(r.toCode().flatMap(function(t){return t})),this.res.appendChild(n)}}return this.code.push("\n ])"),this}},{key:"border",value:function(t,e){return this.res.style.border="".concat(e,"px solid ").concat(t),this}},{key:"adjust",value:function(t){var e=this,r=function(){var r=window.matchMedia("(max-device-width: 415px)");if(window.innerWidth<t||r.matches)for(var n=0;n<e.res.children.length;n++)e.res.children[n].style.flex="",e.res.children[n].style.width="100%";else for(n=0;n<e.res.children.length;n++)e.res.children[n].style.flex="".concat(e.arra[n])};return r(),window.addEventListener("resize",r),this}},{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)}}],i&&o(r.prototype,i),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,i}(r(2332).y)},6131:(t,e,r)=>{r.d(e,{E:()=>h});var n=r(2332),o=r(1382);function i(t){return i="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},i(t)}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 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,l(n.key),n)}}function l(t){var e=function(t){if("object"!=i(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==i(e)?e:e+""}function c(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(c=function(){return!!t})()}function u(t,e,r,n){var o=d(f(1&n?t.prototype:t),e,r);return 2&n&&"function"==typeof o?function(t){return o.apply(r,t)}:o}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 o=Object.getOwnPropertyDescriptor(n,e);return o.get?o.get.call(arguments.length<3?t:r):o.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 p(t,e){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},p(t,e)}var h=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"==i(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,c()?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&&p(t,e)}(e,t),r=e,n=[{key:"toCode",value:function(){if(this.excludeFromCodeTrue)return[""];var t=Object.fromEntries(Object.entries(this.options).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,o,i,a,s=[],l=!0,c=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==e);l=!0);}catch(t){c=!0,o=t}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(t,e)||function(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}}(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]})),e=(0,o.sy)(t,4);return['new Text("'.concat(this.text,'").set(').concat(e,")")]}},{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:"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:"setClass",value:function(t){return this.res.setAttribute("class",t),this}},{key:"styled",value:function(t){return this.set(t),this}},{key:"removeQuotesFromFirstWord",value:function(t){return t.replace((0,o._H)(),"$1:")}},{key:"looksLikeMarkdown",value:function(t){return/(\*\*.*\*\*|\*.*\*|`[^`]+`|\[.*?\]\(.*?\)|^# )/m.test(t)}},{key:"parseMarkdown",value:function(t){var e=t;return(e=(e=(e=(e=(e=(e=(e=e.replace(/^### (.*$)/gim,"<h3>$1</h3>")).replace(/^## (.*$)/gim,"<h2>$1</h2>")).replace(/^# (.*$)/gim,"<h1>$1</h1>")).replace(/\*\*(.*?)\*\*/g,"<strong>$1</strong>")).replace(/\*(.*?)\*/g,"<em>$1</em>")).replace(/`([^`]+)`/g,"<code>$1</code>")).replace(/\[([^\]]+)\]\(([^)]+)\)/g,'<a href="$2">$1</a>')).replace(/\n/g,"<br>")}},{key:"set",value:function(t){return this.resCopy=this.res,this.options=t,u(e,"setPrevText",this,3)([this.text]),t.raster&&this.rasterize(t.raster),this.commonMethods(t),t.left&&(this.res.style.left=t.left),t.flex&&(this.res.style.display="flex"),(t.left||t.top)&&(this.res.style.position="absolute"),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&&u(e,"setIndex",this,3)([t.index]),t.index&&(this.index=t.index),t.preffersId&&(this.preffersId=t.preffersId),u(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),this.options.id&&this.res.setAttribute("id",this.options.id),u(e,"setID",this,3)([this.options.id]),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.class&&this.res.setAttribute("class",this.options.class),u(e,"setClass",this,3)([this.options.class]),t.clampc&&this.clampCopy(t.clampc),t.absolute&&(this.res.style.position="absolute"),t.em&&this.em(t.em),t.fluid&&this.fluid(t.fluid),t.fluidc&&this.elCSS.push("font-family: ".concat(t.font,"; \n")),t.align&&(this.res.style.textAlign=t.align),t.breakWord&&(this.res.style.wordWrap="break-word"),t.center&&this.deprecatedOption("center on Text",'mar: "center"'),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),this.callReact(t),this}},{key:"callReact",value:function(t){var r=[],n=t.transform&&"object"===i(t.transform);if(t.stroke||t.gradient||t.span||t.backgroundOp||t.layout||t.shadow||t.animation||t.filtera||n){t.gradient&&(this.globalGradient=t.gradient.op.gradient,"radial"===t.gradient.op.direction&&(this.globalGradient="radial-gradient(circle at center, orange, green)")),t.stroke&&u(e,"setAny",this,3)([{globalBlast:"".concat(t.stroke.op.width," ").concat(t.stroke.op.color)}]),t.span&&(t.span.prevText=this.text);var o=[t.stroke,t.gradient,t.animation,t.span,t.backgroundOp,t.layout,t.marginOp,t.shadow,t.animation,t.filtera,n?t.transform:void 0];o=o.filter(function(t){return null!=t});for(var a=0;a<o.length;a++)r.push({range:o[a].range,log:o[a].op.name,target:o[a].target,op:o[a].op});var s=[];t.borderObj&&s.push("border"),t.background&&s.push("background"),t.mar&&s.push("margin"),t.animation&&s.push("animation"),t.span&&s.push("span"),this.chainReact(r,this.options.id,s)}}},{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:"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:"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:"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 o=document.createTextNode(this.text);this.res.appendChild(o),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:"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:"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:"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),"span"===t.type&&t.animation&&(e.style.position="relative",e.style.display="block")):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:"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:"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:"apply",value:function(t){var e=this,r=this.res.styles,n=function(){for(var n=0;n<t.length;n++){var o=t[n];o.min&&o.max?window.matchMedia("(min-width: ".concat(o.min,"px) and (max-width: ").concat(o.max,"px)")).matches?Object.assign(e.res.style,o.styles):Object.assign(e.res.style,r):window.matchMedia("(max-width: ".concat(o.max,"px)")).matches?Object.assign(e.res.style,o.styles):Object.assign(e.res.style,r)}};return n(),window.addEventListener("resize",n),this}},{key:"render",value:function(t){if(!t)return this.options&&!this.options.span&&(this.res.textContent=this.text),this.looksLikeMarkdown(this.text)&&(this.res.innerHTML=this.parseMarkdown(this.text)),this.res;this.options&&this.options.id&&this.res.setAttribute("id",this.options.id),this.options&&!this.options.span&&(this.res.textContent=this.text),this.looksLikeMarkdown(this.text)&&(this.res.innerHTML=this.parseMarkdown(this.text)),document.querySelector(t).appendChild(this.res)}}],n&&s(r.prototype,n),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n}(n.y)},6182:(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 o(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 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&&t&&"number"==typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,l=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return s=t.done,t},e:function(t){l=!0,a=t},f:function(){try{s||null==r.return||r.return()}finally{if(l)throw a}}}}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 a(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 l(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(l=function(){return!!t})()}function c(){return c="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,r){var n=function(t,e){for(;!{}.hasOwnProperty.call(t,e)&&null!==(t=u(t)););return t}(t,e);if(n){var o=Object.getOwnPropertyDescriptor(n,e);return o.get?o.get.call(arguments.length<3?t:r):o.value}},c.apply(null,arguments)}function u(t){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},u(t)}function d(t,e){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},d(t,e)}r.d(e,{X:()=>f});var f=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=u(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,l()?Reflect.construct(e,r||[],u(t).constructor):e.apply(t,r))}(this,e)).res=document.createElement("table"),t.res.style.borderCollapse="separate",t.res.style.borderSpacing="0",t.res.style.overflow="hidden",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&&d(t,e)}(e,t),r=e,i=[{key:"add",value:function(t){this.data=t,this.datas=t;var e=Object.keys(t[0]);return this.generateTable(this.res,t),this.generateTableHead(this.res,e),this}},{key:"style",value:function(t){return t.font&&(this.res.style.fontFamily=t.font),this}},{key:"getType",value:function(){return"LayoutWrapperElement"}},{key:"set",value:function(t){return t.cellPadding&&this.cellPadding(t.cellPadding),t.cellAlign&&this.cellAlign(t.cellAlign),t.style&&this.style(t.style),t.headStyle&&this.headStyle(t.headStyle),t.border&&this.border(t.border),t.center&&this.center(t.center),t.borderRadius&&this.borderRadius(t.borderRadius),t.gradient&&(this.res.style.background=t.gradient.op.gradient,this.res.style.backgroundClip="padding-box"),this.obj=t,this.options=t,this.callReact(t),this}},{key:"callReact",value:function(t){var r,n,o,i=[];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,"radial"===t.gradient.op.direction&&(this.globalGradient="radial-gradient(circle at center, orange, green)")),t.stroke&&(r=e,n=this,"function"==typeof(o=c(u(1&3?r.prototype:r),"setAny",n))?function(t){return o.apply(n,t)}:o)([{globalBlast:"".concat(t.stroke.op.width," ").concat(t.stroke.op.color)}]),t.span&&(t.span.prevText=this.text);var a=[t.stroke,t.gradient,t.animation,t.span,t.backgroundOp,t.layout,t.marginOp,t.shadow,t.animation,t.filtera,t.transform];a=a.filter(function(t){return null!=t});for(var s=0;s<a.length;s++)i.push({range:a[s].range,log:a[s].op.name,target:a[s].target,op:a[s].op});var l=[];t.borderObj&&l.push("border"),t.background&&l.push("background"),t.mar&&l.push("margin"),t.animation&&l.push("animation"),t.span&&l.push("span"),l.push("border"),this.chainReact(i,this.options.id,l)}}},{key:"toCode",value:function(){var t=JSON.stringify(this.data,null,2),e=JSON.stringify(this.obj,null,2);return t=t.replace(/"(\w+)"\s*:/g,"$1:"),e=e.replace(/"(\w+)"\s*:/g,"$1:"),["new Table()\n .add(".concat(t,")\n .set(").concat(e,")")]}},{key:"borderRadius",value:function(t){return this.res.style.borderRadius="".concat(4*t,"px"),this.res.style.overflow="hidden",this}},{key:"cellPadding",value:function(t){var e,r=o(this.res.rows);try{for(r.s();!(e=r.n()).done;){var n,i=o(e.value.cells);try{for(i.s();!(n=i.n()).done;)n.value.style.padding=t}catch(t){i.e(t)}finally{i.f()}}}catch(t){r.e(t)}finally{r.f()}return this}},{key:"cellAlign",value:function(t){var e,r=o(this.res.rows);try{for(r.s();!(e=r.n()).done;){var n,i=o(e.value.cells);try{for(i.s();!(n=i.n()).done;)n.value.style.textAlign=t}catch(t){i.e(t)}finally{i.f()}}}catch(t){r.e(t)}finally{r.f()}return this}},{key:"headStyle",value:function(t){var e=this.res.rows[0];return e&&(e.style.color=t.color,t.background&&(e.style.backgroundColor=t.background)),this}},{key:"border",value:function(t){var e;this.res.style.borderCollapse="separate",this.res.style.borderSpacing="0",this.res.style.border=t,this.res.style.borderRadius="12px";var r,n=o(this.res.rows);try{for(n.s();!(r=n.n()).done;){var i,a=o(r.value.cells);try{for(a.s();!(i=a.n()).done;)i.value.style.border="none"}catch(t){a.e(t)}finally{a.f()}}}catch(t){n.e(t)}finally{n.f()}for(var s=0;s<this.res.rows.length-1;s++){var l,c=o(this.res.rows[s].cells);try{for(c.s();!(l=c.n()).done;)l.value.style.borderBottom=t}catch(t){c.e(t)}finally{c.f()}}var u,d=(null===(e=this.res.rows[0])||void 0===e?void 0:e.cells.length)||0,f=o(this.res.rows);try{for(f.s();!(u=f.n()).done;)for(var p=u.value,h=0;h<d-1;h++)p.cells[h].style.borderRight=t}catch(t){f.e(t)}finally{f.f()}return this}},{key:"generateTableHead",value:function(t,e){var r,n=t.createTHead().insertRow(),i=o(e);try{for(i.s();!(r=i.n()).done;){var a=r.value,s=document.createElement("th");s.textContent=a,n.appendChild(s)}}catch(t){i.e(t)}finally{i.f()}}},{key:"generateTable",value:function(t,e){var r,n=o(e);try{for(n.s();!(r=n.n()).done;){var i=r.value,a=t.insertRow();for(var s in i)a.insertCell().textContent=i[s]}}catch(t){n.e(t)}finally{n.f()}}},{key:"render",value:function(t){var e=document.createElement("div");if(e.style.overflowX="auto",e.appendChild(this.res),!t)return e;document.querySelector(t).appendChild(e)}}],i&&a(r.prototype,i),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,i}(r(2332).y)},6679:(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 o(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(o=function(){return!!t})()}function i(t){return i="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},i(t)}function a(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"!=i(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==i(e)?e:e+""}r.d(e,{T:()=>l}),r(2332);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 o=t.data,i=0,a=o.length,s=document.createElement("datalist");for(s.id="dlCities",i=0;i<a;i+=1){var l=document.createElement("option");l.value=o[i],s.appendChild(l)}return n.appendChild(s),n.addEventListener("change",function(){var t=document.querySelector("#my").value;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 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 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)}}])&&a(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(o())return Reflect.construct.apply(null,arguments);var i=[null];i.push.apply(i,e);var a=new(t.bind.apply(t,i));return r&&n(a,r.prototype),a}(c,e)},"undefined"!=typeof window&&(window.DataList=l)},7108:(t,e,r)=>{r.d(e,{N:()=>h});var n=r(2332),o=r(1382);function i(t){return i="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},i(t)}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 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,l(n.key),n)}}function l(t){var e=function(t){if("object"!=i(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==i(e)?e:e+""}function c(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(c=function(){return!!t})()}function u(t,e,r,n){var o=d(f(1&n?t.prototype:t),e,r);return 2&n&&"function"==typeof o?function(t){return o.apply(r,t)}:o}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 o=Object.getOwnPropertyDescriptor(n,e);return o.get?o.get.call(arguments.length<3?t:r):o.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 p(t,e){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},p(t,e)}var h=function(t){function e(t,r,n){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=f(e),function(t,e){if(e&&("object"==i(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,c()?Reflect.construct(e,r||[],f(t).constructor):e.apply(t,r))}(this,e)).link=r,o.text=t,o.code=[],o.css=[],o.elCSS=[],o.html=[],o.res=null,o.stopEM=n,o.setup(),o.inlineBlock(),o.res.addEventListener("click",function(t){var e=o.link||o.res.getAttribute("href");if(e){var r=new URL(e,window.location.href).href,n=/^https?:\/\//i.test(r),i=r.startsWith("#"),a=/^[a-zA-Z]+:/.test(r);n||i||r.endsWith(".html")||a||(t.preventDefault(),"navigation"in window?navigation.navigate(r):(history.pushState({},"",r),document.dispatchEvent(new PopStateEvent("popstate"))))}}),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&&p(t,e)}(e,t),r=e,(n=[{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(){if(this.excludeFromCodeTrue)return[""];var t=Object.fromEntries(Object.entries(this.options).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,o,i,a,s=[],l=!0,c=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==e);l=!0);}catch(t){c=!0,o=t}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(t,e)||function(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}}(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]})),e=(0,o.sy)(t,4);return["new Link().set(".concat(e,")")]}},{key:"setup",value:function(){var t=document.createElement("a");t.setAttribute("href",this.link),t.style.textDecoration="none",t.style.color="black",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),t.options.pad&&(this.res.style.padding=t.options.pad),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((0,o._H)(),"$1:")}},{key:"set",value:function(t){this.elCSS.push("text-decoration: none; \n"),this.options=t;var r="";t.onTap&&this.onTap(t.onTap),t.tags&&u(e,"setTags",this,3)([t.tags]),t.id&&this.res.setAttribute("id",t.id),t.id&&u(e,"setID",this,3)([t.id]),this.commonMethods(t),t.flex&&(this.res.style.display="flex"),t.fixMobileTap&&this.fixMobileTap(t.fixMobileTap);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&&u(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 o=this.removeQuotesFromFirstWord(JSON.stringify(t.borderObj));r+="\n borderObj: ".concat(o,",")}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 i=this.removeQuotesFromFirstWord(JSON.stringify(t.blastData));u(e,"setAny",this,3)([{globalBlast:"1px ".concat(t.blastData.color)}]),t.blastData&&(r+="\n blastData: ".concat(i,","))}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.clampc&&this.clampCopy(t.clampc),this.options.id&&(r+='\n id: "'.concat(this.options.id,'",')),t.align&&this.leftAlign(t.align),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 a=this.removeQuotesFromFirstWord(JSON.stringify(t.background));t.background&&(r+="\n background: ".concat(a,",")),t.hover&&this.hover(t.hover);var s=this.removeQuotesFromFirstWord(JSON.stringify(t.hover));if(t.hover&&(r+="\n hover: ".concat(s,",")),t.blast&&(this.blastData=t.blast),t.bold&&(r+="\n bold: ".concat(t.bold,",")),t.block&&this.toBlock(),t.block&&(r+="\n block: ".concat(t.block,",")),t.radius&&(r+='\n radius: "'.concat(t.radius,'",')),t.width&&(r+='\n width: "'.concat(t.width,'",')),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 l=this.removeQuotesFromFirstWord(JSON.stringify(t.data));t.data&&(r+="\n data: ".concat(l))}if(t.icon){this.addIcon(t.icon);var c=this.removeQuotesFromFirstWord(JSON.stringify(t.icon));r+="\n icon: ".concat(c,",")}if(t.shadow){var d=t.shadow,f=this.removeQuotesFromFirstWord(JSON.stringify(d));r+="\n shadow: ".concat(f,",")}if(t.stroke){var p=this.removeQuotesFromFirstWord(JSON.stringify(t.stroke));t.stroke&&(r+="\n stroke: ".concat(p,","))}if(t.backgroundOp){var h=this.removeQuotesFromFirstWord(JSON.stringify(t.backgroundOp));r+="\n backgroundOp: ".concat(h,",")}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 b=this.removeQuotesFromFirstWord(JSON.stringify(t.animation));r+="\n animation: ".concat(b,",")}if(t.transform){var v=this.removeQuotesFromFirstWord(JSON.stringify(t.transform));r+="\n transform: ".concat(v,",")}if(t.blast){var g=this.removeQuotesFromFirstWord(JSON.stringify(t.blast));r+="\n blast: ".concat(g,",")}var w="new Link().set({".concat(r,"}) \n");this.code.push(w),t.color&&this.color(t.color),t.rounded&&this.round(),t.new&&(this.res.setAttribute("target","_blank"),this.res.setAttribute("rel","noopener noreferrer")),t.transform&&this.reactOnTransform(t.transform);var _=[],k=[t.border,t.blast,t.gradient,t.animation,t.span,t.shadow,t.backgroundOp,t.animation,t.transform];if((k=k.filter(function(t){return null!=t})).length>0){t.gradient&&(this.globalGradient=t.gradient.op.gradient,"radial"===t.gradient.op.direction&&(this.globalGradient="radial-gradient(circle at center, orange, green)")),t.stroke&&u(e,"setAny",this,3)([{globalBlast:"".concat(t.stroke.op.width," ").concat(t.stroke.op.color)}]);for(var O=0;O<k.length;O++)_.push({range:k[O].range,log:k[O].op.name,target:k[O].target,op:k[O].op});var x=[];t.borderObj&&x.push("border"),t.background&&x.push("background"),t.mar&&x.push("margin"),t.animation&&x.push("animation"),this.chainReact(_,t.id,x,t.isNavA),this.res.style.zIndex=1}return this}},{key:"fixMobileTap",value:function(t){this.res.style.pointerEvents="auto",this.res.style.touchAction="manipulation",this.res.style.cursor="pointer",this.res.style.zIndex="1",this.res.style.position="relative"}},{key:"maxWidth",value:function(t){return this.res.style.maxWidth=t,this}},{key:"leftAlign",value:function(t){return this.res.style.textAlign=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:"color",value:function(t){return this.res.style.color=t,this}},{key:"newWindow",value:function(){return this.res.target="_new",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:"italic",value:function(){return this.res.style.fontStyle="italic",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:"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}}])&&s(r.prototype,n),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n}(n.y)},7135:(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 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,i(n.key),n)}}function i(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,{J:()=>a});var a=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.setupa()},e=[{key:"seto",value:function(t){return this.e=t.a,t.speed&&(this.divisor=t.speed),t.height&&(this.setH=t.height),this}},{key:"setupa",value:function(){return this.parallaxIDs(["#rta"]),this.divisor(1),this}},{key:"add",value:function(t){return this.items=t,this.setup(),this}},{key:"parallaxIDs",value:function(t){return this.parallaxIDs=t,this}},{key:"divisor",value:function(t){return this.divisor=t,this}},{key:"setup",value:function(){var t,e=this;this.pts=0;var r=document.createElement("div");r.style.width="100%",r.style.height=null!==(t=this.setH)&&void 0!==t?t:"100%";var n=document.createElement("div");n.style.display="flex",n.style.width="100%";for(var o=0;o<this.items.length;o++){var i=this.items[o].render();n.appendChild(i)}r.appendChild(n);var a=window.localStorage.getItem("pts");null!==a&&(this.pts=a),r.addEventListener("wheel",function(t){t.deltaY<0?e.pts--:t.deltaY>0&&e.pts++,window.localStorage.setItem("pts",e.pts),t.preventDefault();for(var r=0;r<n.childNodes.length;r++){var o=n.childNodes[r];e.parallaxIDs.includes(o.id)&&(o.style.transform="translateX(".concat(e.pts/e.divisor,"%)"))}n.style.transform="translateX(".concat(e.pts/e.divisor,"%)"),window.localStorage.setItem("translation",e.pts/e.divisor)});var s=window.localStorage.getItem("translation");null!==s&&(n.style.transform="translateX(".concat(s,"%)")),this.div=r}},{key:"render",value:function(t){if(!t)return this.div;document.querySelector(t).appendChild(this.div)}}],e&&o(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e}()},7258:(t,e,r)=>{r.d(e,{b:()=>f});var n=r(2332),o=r(1382);function i(t){return i="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},i(t)}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 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,l(n.key),n)}}function l(t){var e=function(t){if("object"!=i(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==i(e)?e:e+""}function c(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(c=function(){return!!t})()}function u(t){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},u(t)}function d(t,e){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},d(t,e)}var f=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=u(e),function(t,e){if(e&&("object"==i(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,c()?Reflect.construct(e,r||[],u(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&&d(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,o=document.createElement("div");o.classList.add("container"),o.style.display="grid",o.style.gridTemplateColumns="repeat(".concat(n,", 1fr)"),o.style.gridTemplateRows="repeat(".concat(r,", 1fr)"),o.style.width="100%",o.style.height="100vh";var i=t.map(function(t,e){return{row:Math.floor(r/2)+e,col:Math.floor(n/2)+e}});return t.forEach(function(o,a){var s=i[a],l=s.row,c=s.col,u=function(e){var r=0,n=0;return t.forEach(function(t,o){var a=t.weight,s=t.direction,l=i[e],c=i[o],u=l.col-c.col,d=l.row-c.row,f=a*(1/(Math.sqrt(u*u+d*d)+1));switch(s){case"L":r-=f;break;case"R":r+=f;break;case"U":n-=f;break;case"B":n+=f}}),{forceX:r,forceY:n}}(a),d=u.forceX,f=u.forceY;c=Math.max(1,Math.min(n,c+Math.round(d))),l=Math.max(1,Math.min(r,l+Math.round(f)));var p=e.items.filter(function(t){return t.id===o.attract.slice(1)})[0].render();p.style.gridRowStart=l,p.style.gridColumnStart=c,p.style.display="flex",p.style.alignItems="center",p.style.justifyContent="center",p.style.fontWeight="bold",e.res.appendChild(p)}),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 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}}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,s=!0,l=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return s=t.done,t},e:function(t){l=!0,i=t},f:function(){try{s||null==r.return||r.return()}finally{if(l)throw i}}}}(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),this}},{key:"toCode",value:function(){if(this.excludeFromCodeTrue)return[""];var t=(0,o.sy)(this.options,4),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(!t)return this.res;document.querySelector(t).appendChild(this.res)}}],n&&s(r.prototype,n),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n}(n.y)},7698:(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 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,i(n.key),n)}}function i(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 s(t){return s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},s(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,{t:()=>c});var c=function(t){function e(){var t,r,o,i;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(r=this,o=e,o=s(o),t=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)}(r,a()?Reflect.construct(o,i||[],s(r).constructor):o.apply(r,i)))._noTheme=!0,t.gridContainer=document.createElement("div"),t.gridContainer.classList.add("grid-container"),t.gridContainer.style.display="grid",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,i=[{key:"set",value:function(t){return t.gap&&(this.gridContainer.style.gap=t.gap),t.height&&(this.gridContainer.style.height=t.height),t.width&&(this.gridContainer.style.width=t.width),this}},{key:"react",value:function(t){var e=this,r=function(){for(var r=0;r<t.length-1;r++){var n=parseInt(t[r].at),o=parseInt(t[r+1].at);if(window.innerWidth>n&&window.innerWidth<o){var i=t[r].template.map(function(t){return t.split("").join(" ")}).map(function(t){return'"'.concat(t,'"')}).join(" ");e.gridContainer.style.gridTemplateAreas=i}else if(window.innerWidth>o){var a=t[t.length-1].template.map(function(t){return t.split("").join(" ")}).map(function(t){return'"'.concat(t,'"')}).join(" ");e.gridContainer.style.gridTemplateAreas=a}}};return r(),window.addEventListener("resize",r),this}},{key:"add",value:function(t){for(var e=function(t){for(var e=[],r=0;r<t;r++){var n="",o=r;do{n=String.fromCharCode(65+o%26)+n,o=Math.floor(o/26)-1}while(o>=0);e.push(n)}return e}(t.length),r=0;r<t.length;r++){var n=t[r].render();n.style.gridArea=e[r].toLowerCase();var o=document.createElement("div");o.textContent=t[r].text,o.style.gridArea=e[r].toLowerCase(),this.gridContainer.appendChild(n)}return this}},{key:"render",value:function(t){return t&&document.querySelector(t).appendChild(this.gridContainer),this.gridContainer}},{key:"toCode",value:function(){return"new Simple().set({}).react([])"}}],i&&o(r.prototype,i),c&&o(r,c),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,i,c}(r(2332).y)},7879:(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 o(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 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&&t&&"number"==typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,l=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return s=t.done,t},e:function(t){l=!0,a=t},f:function(){try{s||null==r.return||r.return()}finally{if(l)throw a}}}}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 a(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 l(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(l=function(){return!!t})()}function c(t){return c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},c(t)}function u(t,e){return u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},u(t,e)}r.d(e,{f:()=>d});var d=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=c(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,l()?Reflect.construct(e,r||[],c(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&&u(t,e)}(e,t),r=e,(i=[{key:"setup",value:function(t){return this.obj=t,this.setTags(this.obj.tags),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){var e=this;this.closed=!this.closed;var r=this.res.children[0];if(this.closed)if(r.style.overflowX="hidden",t.style.opacity=1,this.animate){this.ope=r.animate([{transform:"translateX(0)"},{transform:"translateX(100%)"}],{duration:300,fill:"forwards"}),this.ope.finished.then(function(){var t=new CustomEvent(e.obj.tags.close);window.dispatchEvent(t)});var n,i=-1,a=o(r.children);try{for(a.s();!(n=a.n()).done;){var s=n.value;if(i+=1,this.masterEL[i]){var l,c=o(s.children);try{for(c.s();!(l=c.n()).done;){var u=l.value,d=this.masterEL[i].options.animation;d&&this.mappedIDS.includes(u.id)&&u.animate(d.op.keyframesClose,d.op.closeOptions)}}catch(t){c.e(t)}finally{c.f()}}}}catch(t){a.e(t)}finally{a.f()}}else r.style.display="none";else{r.style.overflowX="none";var f,p=-1,h=o(r.children);try{for(h.s();!(f=h.n()).done;){var y=f.value;p+=1;var m,b=o(y.children);try{for(b.s();!(m=b.n()).done;){var v=m.value;if(this.mappedIDS.includes(v.id)&&void 0!==this.masterEL[0]){var g=this.masterEL[p].options.animation;if(g){var w=g.op.openOptions;w.delay||(w.delay=1),w.duration||(w.duration=300),v.animate(g.op.keyframesOpen,w)}}}}catch(t){b.e(t)}finally{b.f()}}}catch(t){h.e(t)}finally{h.f()}t.style.opacity=0,this.animate?(r.style.display="flex",this.opeClose=r.animate([{transform:"translateX(100%)"},{transform:"translateX(0)"}],{duration:300,fill:"forwards"}),this.opeClose.finished.then(function(){var t=new CustomEvent(e.obj.tags.open);window.dispatchEvent(t)})):r.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",this.obj.fixed&&(e.style.position="fixed"),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 o=this.createToggleButton(this.obj.hamColour.opened),i=this.createCloseButton(this.obj.hamColour.closed);return o.addEventListener("click",function(){return e.toggleSideNav(o)}),i.addEventListener("click",function(){return e.toggleSideNav(o)}),n.appendChild(i),r.appendChild(n),r.appendChild(o),r}},{key:"items",value:function(t){this.masterEL=t.items.filter(function(t){return void 0!==t.link});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]){var r=this.masterEL[0].options.animation;if(r){var n,i=o(this.res.children[0].children);try{for(i.s();!(n=i.n()).done;){var a,s=o(n.value.children);try{for(s.s();!(a=s.n()).done;){var l=a.value;this.mappedIDS.includes(l.id)&&(r.op.closeOptions.delay=0,l.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}}])&&a(r.prototype,i),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,i}(r(2332).y)},7926:(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 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,i(n.key),n)}}function i(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 s(t){return s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},s(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,{B:()=>c});var c=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=s(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||[],s(t).constructor):e.apply(t,r))}(this,e))._noTheme=!0,r.res=null,r.st=t,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&&l(t,e)}(e,t),r=e,(i=[{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)}}])&&o(r.prototype,i),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,i}(r(2332).y)},8424:(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 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,i(n.key),n)}}function i(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 s(t){return s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},s(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,{$:()=>c});var c=function(t){function e(t,r){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=s(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||[],s(t).constructor):e.apply(t,r))}(this,e)).text=t,o.res=null,o.val=r,o.setup(),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&&l(t,e)}(e,t),r=e,(i=[{key:"setup",value:function(t){return this}},{key:"set",value:function(t){this.options=t;var e=document.createElement("button");if(e.style.background="transparent",e.style.border="none",t.img)e.append(t.img.render());else if(t.svg)if("string"==typeof t.svg){var r=(new DOMParser).parseFromString(t.svg,"image/svg+xml").documentElement;e.appendChild(r)}else t.svg instanceof SVGElement&&e.appendChild(t.svg);else if(t.url&&!t.img){var n,o,i=document.createElement("img");i.setAttribute("src",t.url),i.style.width=(null===(n=t.frame)||void 0===n?void 0:n.width)||"50px",i.style.height=(null===(o=t.frame)||void 0===o?void 0:o.height)||"50px",e.appendChild(i)}else{var a=document.createTextNode(this.text.replace("$",this.val));e.appendChild(a)}return this.res=e,this.commonMethods(t),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.deprecatedOption("padding","pad"),this.pad([{a:t.padding}])),t.margin&&(this.deprecatedOption("margin","mar"),this.mar([{a:t.margin}])),t.respad&&this.respad(t.respad),t.resmar&&this.resmar(t.resmar),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.keySet&&this.keySet(t.keySet),t.align&&(this.res.style.textAlign=t.align),t.weight&&(this.res.style.fontWeight=t.weight),t.bold&&(this.res.style.fontWeight="bold"),t.width&&(this.res.style.width=t.width),t.exact&&(this.res.style.fontSize=t.exact),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 o=document.createTextNode(this.text);this.res.appendChild(o),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 i=document.createTextNode(this.text);this.res.appendChild(i),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 a=document.createTextNode(this.text);this.res.appendChild(a),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:"borderRadius",value:function(t){return this.res.style.borderRadius=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?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:"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)}}])&&o(r.prototype,i),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,i}(r(2332).y)},8597:(t,e,r)=>{function n(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"value",n=function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:2,n=String(t);return e.filter(function(t){return function(t,e){if(t===e)return 0;for(var r=new Array(e.length+1),n=0;n<=e.length;n++)r[n]=n;for(var o=1;o<=t.length;o++){for(var i=[o],a=1;a<=e.length;a++){var s=t.charCodeAt(o-1)===e.charCodeAt(a-1)?0:1;i[a]=Math.min(r[a]+1,i[a-1]+1,r[a-1]+s)}r=i}return r[e.length]}(n,t)<=r})}(t,e),o="Unknown ".concat(r,' "').concat(t,'".');return n.length&&(o+=' Did you mean "'.concat(n[0],'"?')),e.length&&(o+=" Valid ".concat(r,"s: ").concat(e.join(", "),".")),o}r.d(e,{au:()=>n})},8807:(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 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,i(n.key),n)}}function i(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 a=function(){return t=function t(e,r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.obj=e||{},this.items=r||[]},(e=[{key:"render",value:function(){var t=document.createElement("div");t.style.display="flex",t.style.width="100%",t.style.justifyContent="space-around",t.setAttribute("id","innerItemsWrapper");var e=window.matchMedia("(max-device-width: 415px)"),r=window.matchMedia("(max-width: 600px)");(e.matches||r.matches)&&(t.style.marginTop="3rem");for(var n=0;n<this.items.length;n++){var o=this.items[n];t.appendChild(o.render())}var i=document.createElement("div");return i.style.width=this.obj.isSide?"333px":"100%",i.style.background=this.obj.background||"white",i.style.display="flex",i.style.justifyContent="center",i.style.alignItems="center",i.style.height="100%",i.setAttribute("id","outerItemsWrapper"),i.appendChild(t),this.obj.customStyle&&(t.style.width="auto",t.style.top="0rem",t.style.borderRadius="1rem",t.style.background=this.obj.background||"white",t.style.margin="1rem",t.style.position="absolute",t.style.opacity=.8),i}}])&&o(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e}();"undefined"!=typeof window&&(window.CustomDivRenderer=a)},9110:(t,e,r)=>{r.d(e,{Ko:()=>N});var n=r(5594),o=["kind","formId"];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,o,i,a,s=[],l=!0,c=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==e);l=!0);}catch(t){c=!0,o=t}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(t,e)||h(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){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 s(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?a(Object(r),!0).forEach(function(e){l(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):a(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function l(t,e,r){return(e=function(t){var e=function(t){if("object"!=m(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=m(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==m(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function c(t){if(null!=t){var e=t["function"==typeof Symbol&&Symbol.iterator||"@@iterator"],r=0;if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length))return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}}}throw new TypeError(m(t)+" is not iterable")}function u(){var t,e,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function i(r,n,o,i){var l=n&&n.prototype instanceof s?n:s,c=Object.create(l.prototype);return d(c,"_invoke",function(r,n,o){var i,s,l,c=0,u=o||[],d=!1,f={p:0,n:0,v:t,a:p,f:p.bind(t,4),d:function(e,r){return i=e,s=0,l=t,f.n=r,a}};function p(r,n){for(s=r,l=n,e=0;!d&&c&&!o&&e<u.length;e++){var o,i=u[e],p=f.p,h=i[2];r>3?(o=h===n)&&(l=i[(s=i[4])?5:(s=3,3)],i[4]=i[5]=t):i[0]<=p&&((o=r<2&&p<i[1])?(s=0,f.v=n,f.n=i[1]):p<h&&(o=r<3||i[0]>n||n>h)&&(i[4]=r,i[5]=n,f.n=h,s=0))}if(o||r>1)return a;throw d=!0,n}return function(o,u,h){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&p(u,h),s=u,l=h;(e=s<2?t:l)||!d;){i||(s?s<3?(s>1&&(f.n=-1),p(s,l)):f.n=l:f.v=l);try{if(c=2,i){if(s||(o="next"),e=i[o]){if(!(e=e.call(i,l)))throw TypeError("iterator result is not an object");if(!e.done)return e;l=e.value,s<2&&(s=0)}else 1===s&&(e=i.return)&&e.call(i),s<2&&(l=TypeError("The iterator does not provide a '"+o+"' method"),s=1);i=t}else if((e=(d=f.n<0)?l:r.call(n,f))!==a)break}catch(e){i=t,s=1,l=e}finally{c=1}}return{value:e,done:d}}}(r,o,i),!0),c}var a={};function s(){}function l(){}function c(){}e=Object.getPrototypeOf;var f=[][n]?e(e([][n]())):(d(e={},n,function(){return this}),e),p=c.prototype=s.prototype=Object.create(f);function h(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,c):(t.__proto__=c,d(t,o,"GeneratorFunction")),t.prototype=Object.create(p),t}return l.prototype=c,d(p,"constructor",c),d(c,"constructor",l),l.displayName="GeneratorFunction",d(c,o,"GeneratorFunction"),d(p),d(p,o,"Generator"),d(p,n,function(){return this}),d(p,"toString",function(){return"[object Generator]"}),(u=function(){return{w:i,m:h}})()}function d(t,e,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(t){o=0}d=function(t,e,r,n){if(e)o?o(t,e,{value:r,enumerable:!n,configurable:!n,writable:!n}):t[e]=r;else{var i=function(e,r){d(t,e,function(t){return this._invoke(e,r,t)})};i("next",0),i("throw",1),i("return",2)}},d(t,e,r,n)}var f=u().m(w);function p(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=h(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return a=t.done,t},e:function(t){s=!0,i=t},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw i}}}}function h(t,e){if(t){if("string"==typeof t)return y(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)?y(t,e):void 0}}function y(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 m(t){return m="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},m(t)}var b=new Set(["input","labelInput","checkbox","radio","picker"]),v={text:{type:"string"},email:{type:"string",format:"email"},tel:{type:"string"},url:{type:"string",format:"uri"},number:{type:"number"},password:{type:"string"},date:{type:"string",format:"date"},time:{type:"string",format:"time"},search:{type:"string"}},g=function(t){return!!t&&"object"===m(t)};function w(t){var e,r,n,o,i;return u().w(function(a){for(;;)switch(a.p=a.n){case 0:if(g(t)){a.n=1;break}return a.a(2);case 1:return a.n=2,t;case 2:e=Array.isArray(t.children)?t.children:[],r=p(e),a.p=3,r.s();case 4:if((n=r.n()).done){a.n=6;break}return o=n.value,a.d(c(w(o)),5);case 5:a.n=4;break;case 6:a.n=8;break;case 7:a.p=7,i=a.v,r.e(i);case 8:return a.p=8,r.f(),a.f(8);case 9:return a.a(2)}},f,null,[[3,7,8,9]])}function _(t){var e,r="string"==typeof t.name?t.name:t.id;if("string"!=typeof r||!r)return null;if("checkbox"===t.type)e={type:"boolean"};else if("radio"===t.type||"picker"===t.type){var n=Array.isArray(t.items)?t.items.filter(function(t){return"string"==typeof t}):[];e=n.length?{type:"string",enum:n}:{type:"string"},"radio"===t.type&&!0===t.multiple&&(e={type:"array",items:e})}else e=s({},v[t.inputType]||v.text);var o=[t.label,t.placeholder,t.title].find(function(t){return"string"==typeof t&&t.trim()});return o&&(e.description=o.trim()),{key:r,schema:e,required:!0===t.required}}function k(t){return t.routes.map(function(t){var e=t.to.map(function(t){return t.label?"".concat(t.label," → ").concat(t.to):t.to}).join(", ");return"from ".concat(t.from,": ").concat(e)}).join("; ")}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 x(){var t,e,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function i(r,n,o,i){var l=n&&n.prototype instanceof s?n:s,c=Object.create(l.prototype);return S(c,"_invoke",function(r,n,o){var i,s,l,c=0,u=o||[],d=!1,f={p:0,n:0,v:t,a:p,f:p.bind(t,4),d:function(e,r){return i=e,s=0,l=t,f.n=r,a}};function p(r,n){for(s=r,l=n,e=0;!d&&c&&!o&&e<u.length;e++){var o,i=u[e],p=f.p,h=i[2];r>3?(o=h===n)&&(l=i[(s=i[4])?5:(s=3,3)],i[4]=i[5]=t):i[0]<=p&&((o=r<2&&p<i[1])?(s=0,f.v=n,f.n=i[1]):p<h&&(o=r<3||i[0]>n||n>h)&&(i[4]=r,i[5]=n,f.n=h,s=0))}if(o||r>1)return a;throw d=!0,n}return function(o,u,h){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&p(u,h),s=u,l=h;(e=s<2?t:l)||!d;){i||(s?s<3?(s>1&&(f.n=-1),p(s,l)):f.n=l:f.v=l);try{if(c=2,i){if(s||(o="next"),e=i[o]){if(!(e=e.call(i,l)))throw TypeError("iterator result is not an object");if(!e.done)return e;l=e.value,s<2&&(s=0)}else 1===s&&(e=i.return)&&e.call(i),s<2&&(l=TypeError("The iterator does not provide a '"+o+"' method"),s=1);i=t}else if((e=(d=f.n<0)?l:r.call(n,f))!==a)break}catch(e){i=t,s=1,l=e}finally{c=1}}return{value:e,done:d}}}(r,o,i),!0),c}var a={};function s(){}function l(){}function c(){}e=Object.getPrototypeOf;var u=[][n]?e(e([][n]())):(S(e={},n,function(){return this}),e),d=c.prototype=s.prototype=Object.create(u);function f(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,c):(t.__proto__=c,S(t,o,"GeneratorFunction")),t.prototype=Object.create(d),t}return l.prototype=c,S(d,"constructor",c),S(c,"constructor",l),l.displayName="GeneratorFunction",S(c,o,"GeneratorFunction"),S(d),S(d,o,"Generator"),S(d,n,function(){return this}),S(d,"toString",function(){return"[object Generator]"}),(x=function(){return{w:i,m:f}})()}function S(t,e,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(t){o=0}S=function(t,e,r,n){if(e)o?o(t,e,{value:r,enumerable:!n,configurable:!n,writable:!n}):t[e]=r;else{var i=function(e,r){S(t,e,function(t){return this._invoke(e,r,t)})};i("next",0),i("throw",1),i("return",2)}},S(t,e,r,n)}function j(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 E(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?j(Object(r),!0).forEach(function(e){C(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):j(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function C(t,e,r){return(e=function(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+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function P(t){return function(t){if(Array.isArray(t))return I(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||M(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.")}()}function T(t,e,r,n,o,i,a){try{var s=t[i](a),l=s.value}catch(t){return void r(t)}s.done?e(l):Promise.resolve(l).then(n,o)}function A(t){return function(){var e=this,r=arguments;return new Promise(function(n,o){var i=t.apply(e,r);function a(t){T(i,n,o,a,s,"next",t)}function s(t){T(i,n,o,a,s,"throw",t)}a(void 0)})}}function R(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=M(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return a=t.done,t},e:function(t){s=!0,i=t},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw i}}}}function M(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}}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}var D="2026-07-21",L="nodality-agent-manifest",W=function(t){var e=String(t);return"undefined"!=typeof CSS&&"function"==typeof CSS.escape?CSS.escape(e):e.replace(/([^a-zA-Z0-9_-])/g,"\\$1")};function B(t){if(!t)return{text:"",actions:[]};var e,r=function(t){var e=getComputedStyle(t);if("none"===e.display||"0"===e.opacity)return!1;var r=t.getBoundingClientRect();return r.width>0&&r.height>0},n=[],o=R(t.querySelectorAll("h1,h2,h3,h4,h5,h6,p,li"));try{for(o.s();!(e=o.n()).done;){var i=e.value;if(r(i)){var a=(i.textContent||"").replace(/\s+/g," ").trim();if(a){var s=i.tagName.toLowerCase();n.push(/^h[1-6]$/.test(s)?"".concat("#".repeat(+s[1])," ").concat(a):a)}}}}catch(t){o.e(t)}finally{o.f()}var l,c=[],u=R(t.querySelectorAll("a,button,[role=button]"));try{for(u.s();!(l=u.n()).done;){var d=l.value;if(r(d)){var f=(d.textContent||"").replace(/\s+/g," ").trim();f&&!c.includes(f)&&c.push(f)}}}catch(t){u.e(t)}finally{u.f()}return{text:n.join("\n"),actions:c}}var z=function(t,e,r){return{ok:!1,code:t,got:e,valid:r}};function N(t){var e=t.mount,r=t.elements,a=t.nodes,l=t.morphs,c=function(t,e){var r=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).specDraft,a=void 0===r?null:r,l=(Array.isArray(e)?e:[]).find(function(t){return g(t)&&"agent-surface"===t.op});if(!l)return null;var c,u=function(t){var e,r=[],n=p(Array.isArray(t)?t:[]);try{for(n.s();!(e=n.n()).done;){var o,i=p(w(e.value));try{for(i.s();!(o=i.n()).done;){var a=o.value;r.push(a)}}catch(t){i.e(t)}finally{i.f()}}}catch(t){n.e(t)}finally{n.f()}return r}(t),d=new Map,f=p(u);try{for(f.s();!(c=f.n()).done;){var m=c.value;"string"==typeof m.id&&d.set(m.id,m)}}catch(t){f.e(t)}finally{f.f()}var v=new Set((Array.isArray(l.exclude)?l.exclude:[]).filter(function(t){return"string"==typeof t})),O="string"==typeof l.name&&l.name.trim()?l.name.trim().replace(/[^a-zA-Z0-9_-]/g,"_"):null,x=function(t){return O?"".concat(O,"_").concat(t):t},S=[],j=function(t,e){var r=(Array.isArray(t)?t:[]).filter(function(t){return g(t)&&"morph"===t.op});if(!r.length)return null;var o,a,s=[],l=p(r);try{for(l.s();!(o=l.n()).done;){var c,u=o.value,d=p((0,n.G)(u));try{for(d.s();!(c=d.n()).done;){var f=c.value;"string"==typeof f.from&&s.push(f)}}catch(t){d.e(t)}finally{d.f()}}}catch(t){l.e(t)}finally{l.f()}if(!s.length)return null;for(var m=s[0].from,b=function(t){return s.filter(function(e){return e.from===t})},v=new Set([m]),w=[m];w.length;){var _,k=p(b(w.shift()));try{for(k.s();!(_=k.n()).done;){var O,x=p(_.value.toIds);try{for(x.s();!(O=x.n()).done;){var S=O.value;"string"!=typeof S||v.has(S)||(v.add(S),w.push(S))}}catch(t){x.e(t)}finally{x.f()}}}catch(t){k.e(t)}finally{k.f()}}for(var j=[],E=0,C=s;E<C.length;E++){var P=C[E];if(v.has(P.from)&&!e.has(P.from)){var T=[];if(P.byLabel)for(var A=0,R=Object.entries(P.byLabel);A<R.length;A++){var M=i(R[A],2),I=M[0],D=M[1],L="string"==typeof D&&D.startsWith("#")?D.slice(1):D;e.has(L)||T.push({label:I,to:L})}else{var W,B=p(P.toIds);try{for(B.s();!(W=B.n()).done;){var z=W.value;e.has(z)||T.push({label:null,to:z})}}catch(t){B.e(t)}finally{B.f()}}T.length&&j.push({from:P.from,to:T,back:!0===P.back})}}for(var N=[],q=0,F=j;q<F.length;q++){var U,H=p(F[q].to);try{for(H.s();!(U=H.n()).done;){var K=U.value;N.includes(K.to)||N.push(K.to)}}catch(t){H.e(t)}finally{H.f()}}return{root:m,states:[m].concat((a=N.filter(function(t){return t!==m}),function(t){if(Array.isArray(t))return y(t)}(a)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(a)||h(a)||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.")}())),destinations:N,routes:j,canGoBack:j.some(function(t){return t.back})}}(e,v);if(j){var E=j.destinations.filter(function(t){return!v.has(t)});E.length&&S.push({name:x("navigate"),kind:"navigate",description:"Move to another view of this page. These are in-page views reached by a transition, not separate URLs. Routes: "+k(j)+".",inputSchema:{type:"object",properties:{destination:{type:"string",enum:E,description:"The view to move to."}},required:["destination"]}}),j.canGoBack&&S.push({name:x("go_back"),kind:"back",description:"Return to the previous view, unwinding the path actually taken rather than following an edge.",inputSchema:{type:"object",properties:{}}})}var C,P=p((Array.isArray(l.forms)?l.forms:[]).filter(function(t){return"string"==typeof t}));try{for(P.s();!(C=P.n()).done;){var T=C.value,A=d.get(T);if(A&&"form"===A.type){var R,M={},I=[],D=p(w(A));try{for(D.s();!(R=D.n()).done;){var L=R.value;if(b.has(L.type)){var W=_(L);W&&!M[W.key]&&(M[W.key]=W.schema,W.required&&I.push(W.key))}}}catch(t){D.e(t)}finally{D.f()}Object.keys(M).length&&S.push({name:x("submit_".concat(T.replace(/[^a-zA-Z0-9_-]/g,"_"))),kind:"submit",formId:T,description:"string"==typeof A.title&&A.title.trim()?A.title.trim():'Fill and submit the "'.concat(T,'" form on this page.'),inputSchema:s({type:"object",properties:M},I.length?{required:I}:{})})}}}catch(t){P.e(t)}finally{P.f()}S.push({name:x("read_view"),kind:"read",description:"Read the content currently on screen as structured text: headings, body text and the labels of anything actionable.",inputSchema:{type:"object",properties:{}}});var B=s({spec:a,tools:S.map(function(t){return t.kind,t.formId,function(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if({}.hasOwnProperty.call(t,n)){if(-1!==e.indexOf(n))continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],-1===e.indexOf(r)&&{}.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}(t,o)})},j?{views:{root:j.root,states:j.states.filter(function(t){return!v.has(t)}),routes:j.routes}}:{});return{tools:S,manifest:B}}(r,a,{specDraft:D});if(!c)return null;var u=c.tools,d=c.manifest,f=Array.isArray(l)?l.filter(Boolean):[],m=function(t){return f.find(function(e){return e.states&&e.states.has(t)})||null},v=function(){var t,r=R(f);try{for(r.s();!(t=r.n()).done;){var n=t.value,o=n.states&&null!=n.current?n.states.get(n.current):null;if(o)return o}}catch(t){r.e(t)}finally{r.f()}return e},O=function(t){var r=function(e){if(!e||"function"!=typeof e.querySelector)return null;if(e.id===t)return"FORM"===e.tagName?e:e.querySelector("form");var r=e.querySelector("#".concat(W(t)));return r?"FORM"===r.tagName?r:r.querySelector("form"):null},n=r(e);if(n)return n;var o,i=R(f);try{for(i.s();!(o=i.n()).done;){var a=o.value;if(a.states){var s,l=R(a.states.values());try{for(l.s();!(s=l.n()).done;){var c=r(s.value);if(c)return c}}catch(t){l.e(t)}finally{l.f()}}}}catch(t){i.e(t)}finally{i.f()}return null};if("undefined"!=typeof document){var S=document.getElementById(L);S&&S.remove();var j=document.createElement("script");j.type="application/json",j.id=L,j.textContent=JSON.stringify(d,null,2),(document.body||document.documentElement).appendChild(j)}var C,T=R(u);try{for(T.s();!(C=T.n()).done;){var M=C.value;if("submit"===M.kind&&e){var I=O(M.formId);I&&(I.setAttribute("toolname",M.name),I.setAttribute("tooldescription",M.description))}}}catch(t){T.e(t)}finally{T.f()}var N,q,F=Promise.resolve(),U=function(t){var e=F.then(t,t);return F=e.then(function(){},function(){}),e},H=function(){var t,e=R(f);try{for(e.s();!(t=e.n()).done;){var r=t.value;if(null!=r.current)return r.current}}catch(t){e.e(t)}finally{e.f()}return null},K={navigate:function(){var t=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).destination;return U(A(x().m(function r(){var n,o,i;return x().w(function(r){for(;;)switch(r.n){case 0:if(n=m(t)){r.n=1;break}return r.a(2,z("UNKNOWN_VIEW",t,f.flatMap(function(t){return P(t.states.keys())})));case 1:return o=n.current,r.n=2,n.goToState(t);case 2:if(n.current===t){r.n=3;break}return i=P(n.states.keys()),r.a(2,z("UNREACHABLE_FROM_HERE",t,i.filter(function(t){return t!==o})));case 3:return r.a(2,E({ok:!0,view:n.current},B(n.states.get(n.current)||e)))}},r)})))},back:function(){return U(A(x().m(function t(){var r;return x().w(function(t){for(;;)switch(t.n){case 0:if(r=f.find(function(t){return t.history&&t.history.length})){t.n=1;break}return t.a(2,z("NO_HISTORY",null,[]));case 1:return t.n=2,r.goBack();case 2:return t.a(2,E({ok:!0,view:r.current},B(r.states.get(r.current)||e)))}},t)})))},read:(q=A(x().m(function t(){return x().w(function(t){for(;;)if(0===t.n)return t.a(2,E({ok:!0,view:H()},B(v())))},t)})),function(){return q.apply(this,arguments)}),submit:(N=A(x().m(function t(){var e,r,n,o,i,a,s,l,c,u,d,f=arguments;return x().w(function(t){for(;;)switch(t.n){case 0:if(e=f.length>0&&void 0!==f[0]?f[0]:{},n=O((r=f.length>1?f[1]:void 0).formId)){t.n=1;break}return t.a(2,z("NO_FORM",r.formId,[]));case 1:if(o=r.inputSchema&&r.inputSchema.properties||{},i=r.inputSchema&&r.inputSchema.required||[],!(a=i.filter(function(t){return void 0===e[t]||""===e[t]||null===e[t]})).length){t.n=2;break}return t.a(2,z("MISSING_REQUIRED",a,Object.keys(o)));case 2:s=[],l=0,c=Object.keys(o);case 3:if(!(l<c.length)){t.n=7;break}if(u=c[l],void 0!==e[u]){t.n=4;break}return t.a(3,6);case 4:if(d=n.querySelector('[name="'.concat(u,'"], #').concat(CSS.escape(u)))){t.n=5;break}return t.a(3,6);case 5:"checkbox"===d.type?d.checked=!!e[u]:d.value=String(e[u]),d.dispatchEvent(new Event("input",{bubbles:!0})),d.dispatchEvent(new Event("change",{bubbles:!0})),s.push(u);case 6:l++,t.n=3;break;case 7:return"function"==typeof n.requestSubmit?n.requestSubmit():n.submit(),t.a(2,{ok:!0,submitted:r.formId,filled:s})}},t)})),function(){return N.apply(this,arguments)})},J="undefined"!=typeof document&&document.modelContext?document.modelContext:"undefined"!=typeof navigator&&navigator.modelContext?navigator.modelContext:null,$=!1;if(J&&"function"==typeof J.registerTool){var G,V=R(u);try{var Q=function(){var t=G.value;try{J.registerTool({name:t.name,description:t.description,inputSchema:t.inputSchema,execute:function(e){return K[t.kind](e,t)}}),$=!0}catch(e){console.warn("[nodality] agent surface: tool rejected",t.name,e)}};for(V.s();!(G=V.n()).done;)Q()}catch(t){V.e(t)}finally{V.f()}}return{manifest:d,tools:u,registered:$,destroy:function(){if(J&&"function"==typeof J.unregisterTool){var t,e=R(u);try{for(e.s();!(t=e.n()).done;){var r=t.value;try{J.unregisterTool(r.name)}catch(t){}}}catch(t){e.e(t)}finally{e.f()}}if("undefined"!=typeof document){var n=document.getElementById(L);n&&n.remove()}}}}},9290:(t,e,r)=>{r(2332)},9310:(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 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,i(n.key),n)}}function i(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 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=l(t)););return t}(t,e);if(n){var o=Object.getOwnPropertyDescriptor(n,e);return o.get?o.get.call(arguments.length<3?t:r):o.value}},s.apply(null,arguments)}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,{Z:()=>u});var u=function(t){function e(t,r){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=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)).text=t,o.url=r,o.setup(),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,i=[{key:"getType",value:function(){return"LayoutWrapperElement"}},{key:"setup",value:function(){window.matchMedia("(max-device-width: 415px)");var t=document.createElement("div");return t.style.display="flex",t.style.flexDirection="column",t.style.alignItems="center",t.style.backgroundColor="#fff",t.style.fontFamily="Arial",t.style.width="100%",t.style.overflow="hidden",this.res=t,this}},{key:"set",value:function(t){return this.obj=t,t.onTap&&this.onTap(t.onTap),t.background&&(this.res.style.background=t.background),t.border&&(this.res.style.border=t.border),t.radius&&(this.res.style.borderRadius=t.radius),t.width&&(this.res.style.width=t.width),this.options=t,this.callReact(t),this.commonMethods(t),this}},{key:"callReact",value:function(t){var r,n,o,i=[];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,"radial"===t.gradient.op.direction&&(this.globalGradient="radial-gradient(circle at center, orange, green)")),t.stroke&&(r=e,n=this,"function"==typeof(o=s(l(1&3?r.prototype:r),"setAny",n))?function(t){return o.apply(n,t)}:o)([{globalBlast:"".concat(t.stroke.op.width," ").concat(t.stroke.op.color)}]),t.span&&(t.span.prevText=this.text);var a=[t.stroke,t.gradient,t.animation,t.span,t.backgroundOp,t.layout,t.marginOp,t.shadow,t.animation,t.filtera,t.transform];a=a.filter(function(t){return null!=t});for(var c=0;c<a.length;c++)i.push({range:a[c].range,log:a[c].op.name,target:a[c].target,op:a[c].op});var u=[];t.borderObj&&u.push("border"),t.backgroundOp&&u.push("background"),t.mar&&u.push("margin"),t.animation&&u.push("animation"),t.span&&u.push("span"),u.push("border"),this.chainReact(i,this.options.id,u)}}},{key:"frame",value:function(t){return t.height&&(this.res.style.height=t.height),t.width&&(this.res.style.width=t.width),this}},{key:"items",value:function(t){for(var e=0;e<t.length;e++)this.res.appendChild(t[e].render());return this}},{key:"shadow",value:function(){return this.res.style.boxShadow="1px 1px 20px rgba(0, 0, 0, 0.60)",this}},{key:"render",value:function(t){if(!t)return this.res;document.querySelector(t).appendChild(this.res)}}],i&&o(r.prototype,i),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,i}(r(2332).y)},9383:(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 o(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 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,a(n.key),n)}}function a(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 l(t,e,r,n){var o=c(u(1&n?t.prototype:t),e,r);return 2&n&&"function"==typeof o?function(t){return o.apply(r,t)}:o}function c(){return c="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,r){var n=function(t,e){for(;!{}.hasOwnProperty.call(t,e)&&null!==(t=u(t)););return t}(t,e);if(n){var o=Object.getOwnPropertyDescriptor(n,e);return o.get?o.get.call(arguments.length<3?t:r):o.value}},c.apply(null,arguments)}function u(t){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},u(t)}function d(t,e){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},d(t,e)}r.d(e,{_:()=>f});var f=function(t){function e(t,r,o,i){var a;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(a=function(t,e,r){return e=u(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||[],u(t).constructor):e.apply(t,r))}(this,e)).url=t,a.res=null,a.code=[],a}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&&d(t,e)}(e,t),r=e,a=[{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 o='new Image("'.concat(this.url,'", "uncover")');this.code.push(o)}else this.code.push("new Image('".concat(this.url,"')"));return this.image(this.url,r,e),this}},{key:"hand",value:function(){return this.res.style.cursor="hand",this}},{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,o,i,a,s=[],l=!0,c=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==e);l=!0);}catch(t){c=!0,o=t}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(t,e)||function(t,e){if(t){if("string"==typeof t)return o(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)?o(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;n.onTap&&this.onTap(n.onTap);var o=t.isFull;if(o?this.image(t.url,"exact",o,"a"):this.setup(),t.url&&this.res.setAttribute("src",t.url),"IMG"===this.res.tagName&&(t.srcset&&this.res.setAttribute("srcset",t.srcset),t.sizes&&this.res.setAttribute("sizes",t.sizes),void 0!==t.alt&&this.res.setAttribute("alt",t.alt),t.loading&&this.res.setAttribute("loading",t.loading),t.decoding&&this.res.setAttribute("decoding",t.decoding),t.fetchPriority&&this.res.setAttribute("fetchpriority",t.fetchPriority)),t.id&&this.res.setAttribute("id",t.id),t.id&&(r+=' id: "'.concat(t.id,'", \n')),this.id=t.id,"exact"===o?'new Image("'.concat(this.url,'", "exact")'):"uncover"===o&&'new Image("'.concat(this.url,'", "uncover")'),this.commonMethods(n),t.vtn&&(this.res.style.viewTransitionName=t.vtn),this.vtn=t.vtn,t.minHeight&&(this.res.style.minHeight=t.minHeight),t.index&&l(e,"setIndex",this,3)([t.index]),t.index&&(this.index=t.index),t.index&&(r+='\n index: "'.concat(t.index,'",')),t.resprop&&this.resprop(t.resprop),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.objectPosition&&(this.res.style.objectPosition=t.objectPosition),t.objectPosition&&(r+='\n objectPosition: "'.concat(t.objectPosition,'",')),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)?n.filtera.filter(function(t){return"filter"===t.op.name})[0]:t.filtera;var a=this.removeQuotesFromFirstWord(JSON.stringify(i));r+="\n filtera: ".concat(a,", \n")}if(t.keySet&&this.keySet(t.keySet),t.stype&&this.setType(t.stype),t.isBackground&&(this.isBackground=t.isBackground),t.zIndex&&(r+='\n zIndex: "'.concat(t.zIndex,'", \n')),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.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 s=this.removeQuotesFromFirstWord(JSON.stringify(t.marginOp));r+="\n marginOp: ".concat(s,",")}if(t.clipPath&&this.clipPath(t.clipPath),t.clipPath&&(r+='clipPath: "'.concat(t.clipPath,'", \n')),n.stroke||n.gradient||n.span||n.backgroundOp||n.layout||n.marginOp||n.shadow||n.filtera||n.animation){n.gradient,n.gradient&&(this.globalGradient=n.gradient.op.gradient),n.stroke&&l(e,"setAny",this,3)([{globalBlast:"".concat(n.stroke.op.width," ").concat(n.stroke.op.color)}]);var c=[n.stroke,n.gradient,n.animation,n.span,n.backgroundOp,n.layout,n.marginOp,n.shadow,n.filtera,n.animation];c=c.filter(function(t){return null!=t});for(var u=[],d=0;d<c.length;d++)u.push({range:c[d].range,log:c[d].op.name,target:c[d].target,op:c[d].op});this.chainReact(u,this.options.id)}if(n.shadow){var f=n.shadow,p=this.removeQuotesFromFirstWord(JSON.stringify(f));r+="\n shadow: ".concat(p,",")}if(n.animation){var h=n.animation,y=this.removeQuotesFromFirstWord(JSON.stringify(h));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:"setID",value:function(t){return this.res.setAttribute("id",t),this}},{key:"opacity",value:function(t){return this.res.style.opacity="".concat(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:"setClass",value:function(t){return this.res.setAttribute("class",t),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:"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,o){var i=window.matchMedia("(max-device-width: 415px)"),a=document.createElement("div");return a.style.viewTransitionName=n,a.style.width="100%",a.style.height=this.options.height?this.options.height:"400px",o&&(a.style.gridColumn=o.gridColumn,a.style.gridRow=o.gridRow),i.matches&&(a.style.height="500"),a.style.backgroundImage="url(".concat(t,")"),a.style.backgroundPosition="center center",a.style.backgroundRepeat="no-repeat",a.style.backgroundSize="cover","uncover"===r&&(a.style.backgroundSize="contain"),"contain"===e&&(a.style.backgroundSize="contain"),this.res=a,this}},{key:"setup",value:function(){var t=document.createElement("img");return t.style.width="100%",t.src=this.url,this.res=t,this}},{key:"float",value:function(t){return this.res.style.float="".concat(t),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 o=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(o,"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:"dimensions",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:"size",value:function(t,e){return this.deprecatedOption("size() on this component","dimensions(w, h)"),this.dimensions(t,e)}},{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:"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:"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)}}],a&&i(r.prototype,a),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,a}(r(2332).y)},9521:(t,e,r)=>{r.d(e,{m:()=>f});var n=r(2332),o=r(1382);function i(t){return i="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},i(t)}function a(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"!=i(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==i(e)?e:e+""}function l(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(l=function(){return!!t})()}function c(){return c="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,r){var n=function(t,e){for(;!{}.hasOwnProperty.call(t,e)&&null!==(t=u(t)););return t}(t,e);if(n){var o=Object.getOwnPropertyDescriptor(n,e);return o.get?o.get.call(arguments.length<3?t:r):o.value}},c.apply(null,arguments)}function u(t){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},u(t)}function d(t,e){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},d(t,e)}var f=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=u(e),function(t,e){if(e&&("object"==i(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,l()?Reflect.construct(e,r||[],u(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&&d(t,e)}(e,t),r=e,n=[{key:"removeQuotesFromFirstWord",value:function(t){if(t)return t.replace((0,o._H)(),"$1:")}},{key:"toCode",value:function(){var t=this.items.map(function(t){return t.toCode()}).flatMap(function(t){return t}),e=(this.removeQuotesFromFirstWord(JSON.stringify(this.obj)),'\nbackground: "'.concat(this.obj.background,'",\nbrand: ').concat(this.obj.brand.toCode(),",\nmar: ").concat(JSON.stringify(this.obj.mar),",\npad: ").concat(JSON.stringify(this.obj.pad),",\nresmar: ").concat(JSON.stringify(this.obj.resmar),",\nrespad: ").concat(JSON.stringify(this.obj.respad),",\nradius: ").concat(JSON.stringify(this.obj.radius),",\n"));return"new MobileBar().set({".concat(e,"}).add([\n ").concat(t.join(","),"\n\n ])")}},{key:"set",value:function(t){var r,n,o;return this.obj=t,this.obj=t,this.makeNavbar(t),t.mar&&(r=e,n=this,"function"==typeof(o=c(u(1&3?r.prototype:r),"mar",n))?function(t){return o.apply(n,t)}:o)([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,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"),t.brand&&"function"==typeof r.render&&(console.log("Appending brand:",r.render()),this.brand.appendChild(r.render())),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:"#34495e",this.toggleButton.style.fontSize="1.5rem",this.toggleButton.style.cursor="pointer",this.navContent.style.display="none"}},{key:"add",value:function(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&&a(r.prototype,n),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n}(n.y)},9668:(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 o(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 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,a(n.key),n)}}function a(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,{l:()=>s}),r(2332);var s=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,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())}),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,o,i,a,s=[],l=!0,c=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==e);l=!0);}catch(t){c=!0,o=t}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(t,e)||function(t,e){if(t){if("string"==typeof t)return o(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)?o(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["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),t.id&&(this.formElement.id=t.id),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&&i(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e}()},9793:(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 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,i(n.key),n)}}function i(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 s(t){return s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},s(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,{C:()=>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=s(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||[],s(t).constructor):e.apply(t,r))}(this,e))._noTheme=!0,t.oldLength=0,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,(i=[{key:"observe",value:function(t){return this.initialState=t,this.Proxima(t)}},{key:"Proxima",value:function(t){var e=this;return new Proxy(t,{set:function(t,r,n){return t[r]=n,e.initialState&&e.initialState.data&&"function"==typeof e.initialState.data.push&&e.initialState.data.push(r),"length"!==r&&e.refreshUI("Added"),!0},has:function(t,r){return"length"!==r&&e.refreshUI("Deleted"),Reflect.has(t,r)}})}},{key:"refreshUI",value:function(t){var e=this.initialState;this.adjustState(e)}},{key:"loadState",value:function(t,e){return this.loadEl=e,this.initialState=t,this.observe(this.state.data)}},{key:"adjustState",value:function(t){document.querySelector(this.loadEl);var e=t[t.length-1],r=document.createElement("p"),n=document.createTextNode(e);r.appendChild(n),document.body.appendChild(r)}},{key:"mount",value:function(t){this.res=t,this.render(t).render(t)}},{key:"toCode",value:function(){return[""]}}])&&o(r.prototype,i),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,i}(r(2332).y)},9800:(t,e,r)=>{r.d(e,{t:()=>y});var n=r(2332),o=r(1382);function i(t){return i="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},i(t)}function a(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 s(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?a(Object(r),!0).forEach(function(e){l(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):a(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function l(t,e,r){return(e=u(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}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"!=i(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==i(e)?e:e+""}function d(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(d=function(){return!!t})()}function f(){return f="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,r){var n=function(t,e){for(;!{}.hasOwnProperty.call(t,e)&&null!==(t=p(t)););return t}(t,e);if(n){var o=Object.getOwnPropertyDescriptor(n,e);return o.get?o.get.call(arguments.length<3?t:r):o.value}},f.apply(null,arguments)}function p(t){return p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},p(t)}function h(t,e){return h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},h(t,e)}var y=function(t){function e(){var t,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};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=p(e),function(t,e){if(e&&("object"==i(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||[],p(t).constructor):e.apply(t,r))}(this,e)).res=null,t.options={},t.code=[],t.elCSS=[],t.html=[],t.react=[],t.setup(r),t.code.push("new Polygon(".concat(JSON.stringify(r),")")),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&&h(t,e)}(e,t),r=e,n=[{key:"setup",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=document.createElement("div");return t.id&&e.setAttribute("id",t.id),this.res=e,this.res.style.padding=0,this.res.style.margin=0,this.res.style.display=t.inline?"inline-block":"block",this}},{key:"toCode",value:function(){var t=this.options||{},e=(0,o.sy)(t,2);return"new Polygon().set(".concat(e,")")}},{key:"getType",value:function(){return"LayoutWrapperElement"}},{key:"set",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.options=s(s({},this.options),t),t.id&&(this.res.id=t.id),t.class&&(this.res.className=t.class),t.sides&&this.sides(t.sides),t.size&&this.size(t.size.width||t.size,t.size.height),t.color&&this.color(t.color),t.border&&this.border(t.border),t.margin&&this.mar([{a:t.margin}]),t.padding&&this.pad([{a:t.padding}]),t.background&&this.background(t.background),t.center&&this.center();var r=t;this.obj=t;var n,o,i,a=[];if(r.stroke||r.gradient||r.backgroundOp||r.layout||r.marginOp||r.shadow||r.animation||r.filtera||r.transform){var l;r.gradient&&(this.globalGradient=r.gradient.op.gradient),r.stroke&&(null===(n=e,o=this,l="function"==typeof(i=f(p(1&3?n.prototype:n),"setAny",o))?function(t){return i.apply(o,t)}:i)||void 0===l||l([{globalBlast:"".concat(r.stroke.op.width," ").concat(r.stroke.op.color)}]));for(var c=[r.stroke,r.gradient,r.animation,r.backgroundOp,r.layout,r.marginOp,r.shadow,r.animation,r.filtera,r.transform].filter(function(t){return null!=t}),u=0;u<c.length;u++)a.push({range:c[u].range,log:c[u].op.name,target:c[u].target,op:c[u].op});var d=[];r.border&&d.push("border"),r.background&&d.push("background"),(r.mar||r.margin)&&d.push("margin"),r.animation&&d.push("animation"),"radial"===r.gradient.op.direction&&(this.globalGradient="radial-gradient(circle at center, orange, green)"),this.chainReact(a,this.options.id,d)}return this}},{key:"size",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t;return this.res.style.width="number"==typeof t?t+"px":t,this.res.style.height="number"==typeof e?e+"px":e,this}},{key:"sides",value:function(t){return t<3&&(t=3),this.res.style.clipPath=e.makePolygon(t),this}},{key:"color",value:function(t){return this.res.style.color=t,this}},{key:"border",value:function(t){return this.res.style.border="string"==typeof t?t:"".concat((null==t?void 0:t.width)||"1px"," solid ").concat((null==t?void 0:t.color)||"black"),this}},{key:"background",value:function(t){return this.res.style.background=t,this}},{key:"render",value:function(t){return"string"==typeof t?document.querySelector(t).appendChild(this.res):t instanceof HTMLElement&&t.appendChild(this.res),this}}],a=[{key:"makePolygon",value:function(t){for(var e=2*Math.PI/t,r=[],n=0;n<t;n++){var o=50+50*Math.cos(n*e-Math.PI/2),i=50+50*Math.sin(n*e-Math.PI/2);r.push("".concat(o,"% ").concat(i,"%"))}return"polygon(".concat(r.join(","),")")}}],n&&c(r.prototype,n),a&&c(r,a),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,a}(n.y)},9828:(t,e,r)=>{var n,o;t.exports=(n={RASTER_OP_NAMES:()=>__WEBPACK_EXTERNAL_MODULE__lib_raster_ops_js_a0b88e38__.RASTER_OP_NAMES,activeRasterPipelines:()=>__WEBPACK_EXTERNAL_MODULE__lib_raster_ops_js_a0b88e38__.activeRasterPipelines,applyRasterPipeline:()=>__WEBPACK_EXTERNAL_MODULE__lib_raster_ops_js_a0b88e38__.applyRasterPipeline},o={},r.d(o,n),o)},9932:(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 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,i(n.key),n)}}function i(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 s(t){return s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},s(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,{I:()=>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=s(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||[],s(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&&l(t,e)}(e,t),r=e,(i=[{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 o=document.createElement("input");o.setAttribute("type","file"),o.setAttribute("name",t.name),t.accept&&(o.accept=t.accept),o.setAttribute("id",t.id),o.style.visibility="hidden",o.style.display="none",window.matchMedia("(max-device-width: 415px)").matches&&(o.style.fontSize="1rem");var i=document.createElement("label");return i.setAttribute("for",t.id),i.innerText=t.title,i.style.marginRight=12,i.style.padding="0.5em",t.color&&(i.style.color=t.color),t.background&&(i.style.background=t.background,i.style.padding="10"),o.addEventListener("change",function(){n.style.display="block",t.hideField&&(n.style.display="none"),i.innerText="Change",e.file=o.files[0],e.onLoad(e.file),u[t.index]=e.file,n.setAttribute("value",e.file.name),n.setAttribute("readonly","true"),e.getLoaded(),e.highlight()}),r.appendChild(o),r.appendChild(i),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}}])&&o(r.prototype,i),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,i}(r(2332).y),u=[]}},__nodality_wp_module_cache__={};function __nodality_wp_require__(t){var e=__nodality_wp_module_cache__[t];if(void 0!==e)return e.exports;var r=__nodality_wp_module_cache__[t]={exports:{}};return __nodality_wp_modules__[t](r,r.exports,__nodality_wp_require__),r.exports}__nodality_wp_require__.d=(t,e)=>{for(var r in e)__nodality_wp_require__.o(e,r)&&!__nodality_wp_require__.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},__nodality_wp_require__.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var __nodality_wp_exports__={};__nodality_wp_require__.d(__nodality_wp_exports__,{H:()=>Des});var _lib_element_mapper_js__WEBPACK_IMPORTED_MODULE_0__=__nodality_wp_require__(849),_lib_morph_node_js__WEBPACK_IMPORTED_MODULE_1__=__nodality_wp_require__(5594),_lib_webmcp_adapter_js__WEBPACK_IMPORTED_MODULE_2__=__nodality_wp_require__(9110),_layout_animator_js__WEBPACK_IMPORTED_MODULE_3__=__nodality_wp_require__(2332),_layout_base_js__WEBPACK_IMPORTED_MODULE_4__=__nodality_wp_require__(9793),_layout_text_js__WEBPACK_IMPORTED_MODULE_5__=__nodality_wp_require__(6131),_layout_image_js__WEBPACK_IMPORTED_MODULE_6__=__nodality_wp_require__(9383),_layout_link_js__WEBPACK_IMPORTED_MODULE_7__=__nodality_wp_require__(7108),_layout_flex_row_js__WEBPACK_IMPORTED_MODULE_8__=__nodality_wp_require__(3050),_layout_nav_factor_custom_div_js__WEBPACK_IMPORTED_MODULE_9__=__nodality_wp_require__(8807),_layout_new_nav_bar_js__WEBPACK_IMPORTED_MODULE_10__=__nodality_wp_require__(3440),_layout_side_bar_js__WEBPACK_IMPORTED_MODULE_11__=__nodality_wp_require__(5367),_layout_side_nav_bar_js__WEBPACK_IMPORTED_MODULE_12__=__nodality_wp_require__(7879),_layout_free_js__WEBPACK_IMPORTED_MODULE_13__=__nodality_wp_require__(7258),_layout_audio_js__WEBPACK_IMPORTED_MODULE_14__=__nodality_wp_require__(3420),_layout_progress_js__WEBPACK_IMPORTED_MODULE_15__=__nodality_wp_require__(827),_layout_center_js__WEBPACK_IMPORTED_MODULE_16__=__nodality_wp_require__(1873),_layout_code_js__WEBPACK_IMPORTED_MODULE_17__=__nodality_wp_require__(2789),_layout_stack_js__WEBPACK_IMPORTED_MODULE_18__=__nodality_wp_require__(7926),_layout_container_js__WEBPACK_IMPORTED_MODULE_19__=__nodality_wp_require__(153),_layout_meta_adder_js__WEBPACK_IMPORTED_MODULE_20__=__nodality_wp_require__(1980),_layout_table_js__WEBPACK_IMPORTED_MODULE_21__=__nodality_wp_require__(6182),_layout_dropdown_2025_js__WEBPACK_IMPORTED_MODULE_22__=__nodality_wp_require__(3665),_layout_modal_2025_js__WEBPACK_IMPORTED_MODULE_23__=__nodality_wp_require__(3243),_layout_text_field_js__WEBPACK_IMPORTED_MODULE_24__=__nodality_wp_require__(3014),_layout_flex_card_js__WEBPACK_IMPORTED_MODULE_25__=__nodality_wp_require__(9310),_layout_wrap_js__WEBPACK_IMPORTED_MODULE_26__=__nodality_wp_require__(1632),_layout_flex_grid_js__WEBPACK_IMPORTED_MODULE_27__=__nodality_wp_require__(5860),_layout_zoom_card_js__WEBPACK_IMPORTED_MODULE_28__=__nodality_wp_require__(4550),_layout_simple_bar_js__WEBPACK_IMPORTED_MODULE_29__=__nodality_wp_require__(9290),_layout_beta_desktop_bar_js__WEBPACK_IMPORTED_MODULE_30__=__nodality_wp_require__(2387),_layout_beta_mobile_bar_js__WEBPACK_IMPORTED_MODULE_31__=__nodality_wp_require__(9521),_layout_multiswitcher_js__WEBPACK_IMPORTED_MODULE_32__=__nodality_wp_require__(1236),_layout_spacer_js__WEBPACK_IMPORTED_MODULE_33__=__nodality_wp_require__(3180),_layout_horizontal_scroller_js__WEBPACK_IMPORTED_MODULE_34__=__nodality_wp_require__(7135),_layout_checkbox_js__WEBPACK_IMPORTED_MODULE_35__=__nodality_wp_require__(1557),_layout_video_js__WEBPACK_IMPORTED_MODULE_36__=__nodality_wp_require__(2689),_layout_ulist_js__WEBPACK_IMPORTED_MODULE_37__=__nodality_wp_require__(4617),_layout_slider_2025_js__WEBPACK_IMPORTED_MODULE_38__=__nodality_wp_require__(1353),_layout_form_components_floating_input_js__WEBPACK_IMPORTED_MODULE_39__=__nodality_wp_require__(3257),_layout_form_components_range_js__WEBPACK_IMPORTED_MODULE_40__=__nodality_wp_require__(5613),_layout_form_components_radio_js__WEBPACK_IMPORTED_MODULE_41__=__nodality_wp_require__(1371),_layout_form_components_picker_js__WEBPACK_IMPORTED_MODULE_42__=__nodality_wp_require__(2588),_layout_form_components_image_picker_js__WEBPACK_IMPORTED_MODULE_43__=__nodality_wp_require__(9932),_layout_form_components_data_list_js__WEBPACK_IMPORTED_MODULE_44__=__nodality_wp_require__(6679),_layout_form_components_form_js__WEBPACK_IMPORTED_MODULE_45__=__nodality_wp_require__(9668),_layout_button_js__WEBPACK_IMPORTED_MODULE_46__=__nodality_wp_require__(8424),_lib_link_getter_js__WEBPACK_IMPORTED_MODULE_47__=__nodality_wp_require__(2027),_lib_card_getter_js__WEBPACK_IMPORTED_MODULE_48__=__nodality_wp_require__(4753),_layout_grid_switcher_js__WEBPACK_IMPORTED_MODULE_49__=__nodality_wp_require__(7698),_layout_polygon_js__WEBPACK_IMPORTED_MODULE_50__=__nodality_wp_require__(9800),_layout_circle_js__WEBPACK_IMPORTED_MODULE_51__=__nodality_wp_require__(5632);function _construct(t,e,r){if(_isNativeReflectConstruct())return Reflect.construct.apply(null,arguments);var n=[null];n.push.apply(n,e);var o=new(t.bind.apply(t,n));return r&&_setPrototypeOf(o,r.prototype),o}function _setPrototypeOf(t,e){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},_setPrototypeOf(t,e)}function _isNativeReflectConstruct(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(_isNativeReflectConstruct=function(){return!!t})()}function ownKeys(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 _objectSpread(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?ownKeys(Object(r),!0).forEach(function(e){_defineProperty(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ownKeys(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function _defineProperty(t,e,r){return(e=_toPropertyKey(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}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" }, mar: { "t": 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 AreaSwitcher()\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){Array.isArray(this.options)||(this.options=[]),Array.isArray(this.protoOptions)||(this.protoOptions=[]);var e=Des.cloneNodes([t])[0];return this.options.push(e),this.protoOptions.push(e),this}},{key:"nodes",value:function(t){return this.options=Des.cloneNodes(t),this.protoOptions=Des.cloneNodes(t),this}},{key:"getElType",value:function(t){return"p"===t?"S6":"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._elements=Array.isArray(arr)?arr:[],this.css=[],this.elCSS=[],this.elHTML=[];var customOptions=this.options;customOptions.forEach(function(t){"radial"===t.direction&&(t.gradient="radial-gradient(orange, green)")}),arr=[].concat(_toConsumableArray(arr.filter(function(t){return t&&("nav"===t.type||"sideNav"===t.type)})),_toConsumableArray(arr.filter(function(t){return!t||"nav"!==t.type&&"sideNav"!==t.type})));for(var _loop=function _loop(){var el=arr[i],ela=null,ops=["blast","gradient","shadow","filter","animation","transform","span"],replacementObjects=[{op:{name:"blast",color:"green",width:"1px"}},{op:{name:"gradient",gradient:"linear-gradient(orange, green)"}},{op:{name:"shadow",color:"#1abc9c",steps:3,colors:["orange","green","yellow"]}},{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(3deg)","skew(3deg, 0deg)","perspective(100px)","matrix(1, 0, 0, 1, 50, 50)"]}},{op:{name:"span",parts:[{text:"The first time",style:{italic:!0,arrpad:{sides:["left"],value:"3rem"},stroke:{range:["950px","1000px"],op:{name:"blast",background:["header","button"],color:"yellow",width:"1px"}}}},{text:"We went to the Moon",style:{}}]}}];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,color=customOptions[index].color,width=customOptions[index].width,as=Des.cloneNodes([replacementObjects[q]])[0];as.target=target,null!=range&&(as.range=range),null!=filter&&(as.op.filter=filter),null!=gradient&&(as.op.gradient=gradient),"blast"===ops[q]&&(null!=color&&(as.op.color=color),null!=width&&(as.op.width=width)),customOptions[index]=as}}for(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=[],_customOptions$q,_customOptions$q2,_customOptions$q3;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","tx:30px","rotate(3deg)","skew(40deg, 0deg)"],customOptions[q].op={name:"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],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}}}function replaceMedium(t){for(var e=0,r=Object.keys(t);e<r.length;e++){var n=r[e];if("object"===_typeof(t[n])&&null!==t[n])replaceMedium(t[n]);else if("string"==typeof t[n])switch(t[n].toLowerCase()){case"medium":t[n]="6s-ease-in-out";break;case"fast":t[n]="3s-ease-in-out";break;case"slow":t[n]="9s-ease-in-out";break;case"default":delete t[n]}}}replaceMedium(customOptions);var matchEls=["h1","h2","h3","h4","h5","h6","p"].includes(el.type)||"img"===el.type||"a"===el.type;matchEls?(ela=_lib_element_mapper_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?(ela=_lib_element_mapper_js__WEBPACK_IMPORTED_MODULE_0__.I.mapType({el,customOptions,i,storage:_this.stor}),_this.code.push(ela.toCode())):"slider"===el.type?_this.code.push(' \nlet texts = [\n\nnew Text("One").set({size: "S1", color: "#1abc9c", font: "Arial"}),\n /*new Image().set({\n url: "https://image.datart.cz/foto/500/7/0/8/product_7766807.jpg",\n width: "400px",\n height: "auto"\n }),*/\n\n new Text("Two").set({size: "S1", color: "#1abc9c", font: "Arial"}),\n \n new Text("Three").set({size: "S1", color: "#1abc9c", font: "Arial"}),\n\n new Text("Four").set({size: "S1", color: "#1abc9c", font: "Arial"}),\n];\n\nnew Slider(texts, null, { tintColor: "#e74c3c", inactiveColor: "#ccc" })\n \n'):"hslider"===el.type?_this.code.push('\n new HScroller()\n .seto({\n height: "300px",\n speed: 1.0 // the bigger the slower\n })\n .add([\n new Text("First").set({size: "S1", pad: [{"a": 40}] }),\n new Text("Second").set({size: "S1", pad: [{"a": 40}] }),\n new Text("Third").set({size: "S1", pad: [{"a": 40}] })\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/modal-2025.js";\n import {Stack} from "../layout/stack.js";\n import {Image} from "../layout/image.js";\n import {FlexRow} from "../layout/flex-row.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?(ela=_lib_element_mapper_js__WEBPACK_IMPORTED_MODULE_0__.I.mapType({el,customOptions,i,storage:_this.stor}),_this.code.push(ela.toCode())):"cards"===el.type?(ela=_lib_element_mapper_js__WEBPACK_IMPORTED_MODULE_0__.I.mapType({el,customOptions,i,storage:_this.stor}),_this.code.push(ela)):"wrap"===el.type?(ela=_lib_element_mapper_js__WEBPACK_IMPORTED_MODULE_0__.I.mapType({el,customOptions,i,storage:_this.stor}),_this.code.push(ela.toCode()),_this.ready2Render.push(ela)):"responsive"===el.type?_this.code.push(_this.stor.complex.code):"free"===el.type||"nav"===el.type||"sideNav"===el.type||"dropdown"===el.type?(ela=_lib_element_mapper_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()):(ela=_lib_element_mapper_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(t){var e=t||"#mount",r=document.createElement("textarea");r.style.width=300,r.style.height=300,r.setAttribute("id","elements"),r.value=this.code.join(""),this.target="#elements";var n=document.createElement("pre"),o=document.createElement("code"),i=this.code.map(function(t){return"".concat(t,'.render("').concat(e,'"); \n \n')});return this.code=i,o.textContent=this.code,n.appendChild(o),n.setAttribute("class","nonLayout"),document.body.appendChild(n),document.body.appendChild(r),this._codeEl=r,this._preEl=n,this}},{key:"set",value:function(t){if("undefined"!=typeof globalThis&&!0===globalThis.NODALITY_EMIT){var e=this.code.map(function(e){return"".concat(e,'.render("').concat(t&&t.mount||"#mount",'")')});return globalThis.__NODALITY_EMITTED__=e,this}this.toTextArea(t&&t.mount),this._codeEl.style.display="none",this._preEl.style.display="block",!1===t.elements&&(this._preEl.style.display="none"),!1===t.layout&&null!=document.querySelector("#layoutPre")&&(document.querySelector("#layoutPre").style.display="none"),!1===t.code&&(this._preEl.style.display="none");for(var r={Text:_layout_text_js__WEBPACK_IMPORTED_MODULE_5__.E,Image:_layout_image_js__WEBPACK_IMPORTED_MODULE_6__._,Link:_layout_link_js__WEBPACK_IMPORTED_MODULE_7__.N,FlexRow:_layout_flex_row_js__WEBPACK_IMPORTED_MODULE_8__.Y,UINavBar:_layout_new_nav_bar_js__WEBPACK_IMPORTED_MODULE_10__.X,Free:_layout_free_js__WEBPACK_IMPORTED_MODULE_13__.b,Audio:_layout_audio_js__WEBPACK_IMPORTED_MODULE_14__.f,Progress:_layout_progress_js__WEBPACK_IMPORTED_MODULE_15__.k,Center:_layout_center_js__WEBPACK_IMPORTED_MODULE_16__.o,Code:_layout_code_js__WEBPACK_IMPORTED_MODULE_17__.C,Stack:_layout_stack_js__WEBPACK_IMPORTED_MODULE_18__.B,Wrapper:_layout_container_js__WEBPACK_IMPORTED_MODULE_19__.m,MetaAdder:_layout_meta_adder_js__WEBPACK_IMPORTED_MODULE_20__.W,Table:_layout_table_js__WEBPACK_IMPORTED_MODULE_21__.X,Dropdown:_layout_dropdown_2025_js__WEBPACK_IMPORTED_MODULE_22__.m,Modal:_layout_modal_2025_js__WEBPACK_IMPORTED_MODULE_23__.a,TextField:_layout_text_field_js__WEBPACK_IMPORTED_MODULE_24__.A,Card:_layout_flex_card_js__WEBPACK_IMPORTED_MODULE_25__.Z,Wrap:_layout_wrap_js__WEBPACK_IMPORTED_MODULE_26__.B,FlexGrid:_layout_flex_grid_js__WEBPACK_IMPORTED_MODULE_27__.M,ZoomCard:_layout_zoom_card_js__WEBPACK_IMPORTED_MODULE_28__.U,Switcher:_layout_multiswitcher_js__WEBPACK_IMPORTED_MODULE_32__.i,MobileBar:_layout_beta_mobile_bar_js__WEBPACK_IMPORTED_MODULE_31__.m,DesktopBar:_layout_beta_desktop_bar_js__WEBPACK_IMPORTED_MODULE_30__.C,SideNav:_layout_side_nav_bar_js__WEBPACK_IMPORTED_MODULE_12__.f,Spacer:_layout_spacer_js__WEBPACK_IMPORTED_MODULE_33__.h,HScroller:_layout_horizontal_scroller_js__WEBPACK_IMPORTED_MODULE_34__.J,Polygon:_layout_polygon_js__WEBPACK_IMPORTED_MODULE_50__.t,Circle:_layout_circle_js__WEBPACK_IMPORTED_MODULE_51__.j,UList:_layout_ulist_js__WEBPACK_IMPORTED_MODULE_37__.e},n={FloatingInput:_layout_form_components_floating_input_js__WEBPACK_IMPORTED_MODULE_39__.l,Range:_layout_form_components_range_js__WEBPACK_IMPORTED_MODULE_40__.Q,RadioGroup:_layout_form_components_radio_js__WEBPACK_IMPORTED_MODULE_41__.z,Picker:_layout_form_components_picker_js__WEBPACK_IMPORTED_MODULE_42__.L,FilePickera:_layout_form_components_image_picker_js__WEBPACK_IMPORTED_MODULE_43__.I,DataList:_layout_form_components_data_list_js__WEBPACK_IMPORTED_MODULE_44__.T,Base:_layout_base_js__WEBPACK_IMPORTED_MODULE_4__.C,Form:_layout_form_components_form_js__WEBPACK_IMPORTED_MODULE_45__.l,Button:_layout_button_js__WEBPACK_IMPORTED_MODULE_46__.$,Slider:_layout_slider_2025_js__WEBPACK_IMPORTED_MODULE_38__.A,Video:_layout_video_js__WEBPACK_IMPORTED_MODULE_36__.C,Checkbox:_layout_checkbox_js__WEBPACK_IMPORTED_MODULE_35__.S},o={ElementMapper:_lib_element_mapper_js__WEBPACK_IMPORTED_MODULE_0__.I,Animator:_layout_animator_js__WEBPACK_IMPORTED_MODULE_3__.y,LinkStyler:_lib_link_getter_js__WEBPACK_IMPORTED_MODULE_47__.a,CardGen:_lib_card_getter_js__WEBPACK_IMPORTED_MODULE_48__.Z,AreaSwitcher:_layout_grid_switcher_js__WEBPACK_IMPORTED_MODULE_49__.t},i=_objectSpread(_objectSpread(_objectSpread({},r),n),o),a=0;a<this.code.length;a++){var s=this.code[a];_construct(Function,_toConsumableArray(Object.keys(i)).concat([s])).apply(void 0,_toConsumableArray(Object.values(i)))}try{var l=document.querySelector(t&&t.mount||"#mount");this._morphs=(0,_lib_morph_node_js__WEBPACK_IMPORTED_MODULE_1__.A)(l,this._elements,this.protoOptions)}catch(t){console.warn("[nodality] morph node skipped:",t)}try{this._agentSurface=(0,_lib_webmcp_adapter_js__WEBPACK_IMPORTED_MODULE_2__.Ko)({mount:document.querySelector(t&&t.mount||"#mount"),elements:this._elements,nodes:this.protoOptions,morphs:this._morphs})}catch(t){console.warn("[nodality] agent surface skipped:",t)}}}],[{key:"cloneNodes",value:function(t){if(!Array.isArray(t))return[];try{if("function"==typeof structuredClone)return structuredClone(t)}catch(t){}var e=function(t){if(Array.isArray(t))return t.map(e);if(t&&"object"===_typeof(t)){var r={};for(var n in t)r[n]=e(t[n]);return r}return t};return t.map(e)}}])}();const __nodality_wp_exports__Des=__nodality_wp_exports__.H;export{__nodality_wp_exports__Des as Des};
2
+ import*as __WEBPACK_EXTERNAL_MODULE__lib_raster_ops_js_a0b88e38__ from"../lib/raster-ops.js";var __nodality_wp_modules__={153:(t,e,r)=>{r.d(e,{m:()=>y});var n=r(2332),o=r(1382);function i(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,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,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,i=t},f:function(){try{a||null==r.return||r.return()}finally{if(l)throw i}}}}function a(t){return a="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},a(t)}function s(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"!=a(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=a(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==a(e)?e:e+""}function d(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(d=function(){return!!t})()}function f(){return f="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,r){var n=function(t,e){for(;!{}.hasOwnProperty.call(t,e)&&null!==(t=p(t)););return t}(t,e);if(n){var o=Object.getOwnPropertyDescriptor(n,e);return o.get?o.get.call(arguments.length<3?t:r):o.value}},f.apply(null,arguments)}function p(t){return p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},p(t)}function h(t,e){return h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},h(t,e)}var y=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=p(e),function(t,e){if(e&&("object"==a(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||[],p(t).constructor):e.apply(t,r))}(this,e)).res=null,r.setup(t),r.code=[],r.isLast=!1,r.constrObj=t,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&&h(t,e)}(e,t),r=e,n=[{key:"toCode",value:function(){var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if(this.code=[],this.excludeFromCodeTrue)return[""];var r=" ".repeat(e),n="".concat(r,'new Wrapper("').concat(this.constrObj,'")');if(this.constrObj||(n="".concat(r,"new Wrapper()")),Object.keys(this.obj).length){var i=Object.fromEntries(Object.entries(this.obj).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,o,i,a,s=[],l=!0,c=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==e);l=!0);}catch(t){c=!0,o=t}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(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.")}()}(t,2);return e[0],null!==e[1]})),a=(0,o.sy)(i,2);n+="\n".concat(r," .set(").concat(a,")")}return null!==(t=this.items)&&void 0!==t&&t.length&&(n+="\n".concat(r," .add([\n")+this.items.map(function(t){return t.toCode(e+4)}).join(",\n")+"\n".concat(r," ])")),[n+="\n".concat(r)]}},{key:"getType",value:function(){return"LayoutWrapperElement"}},{key:"set",value:function(t){this.obj=t,this.commonMethods(t),t.onTap&&this.onTap(t.onTap);var r=".set({";t.isHidden&&this.isHidden(t.isHidden),t.scale&&(this.res.style.scale=t.scale),t.scale&&(r+="scale: ".concat(t.scale)),t.keySet&&this.keySet(t.keySet),t.resprop&&this.resprop(t.resprop),t.position&&(this.res.style.position=t.position),void 0!==t.top&&(this.res.style.top=t.top),t.pad&&this.pad(t.pad),t.mar&&this.mar(t.mar),t.gpos&&this.gpos(t.gpos);var n,o,s,l=[],c=t.transform&&"object"===a(t.transform);if(t.stroke||t.gradient||t.span||t.backgroundOp||t.layout||t.shadow||t.animation||t.filtera||c){t.gradient&&(this.globalGradient=t.gradient.op.gradient,"radial"===t.gradient.op.direction&&(this.globalGradient="radial-gradient(circle at center, orange, green)")),t.stroke&&(n=e,o=this,"function"==typeof(s=f(p(1&3?n.prototype:n),"setAny",o))?function(t){return s.apply(o,t)}:s)([{globalBlast:"".concat(t.stroke.op.width," ").concat(t.stroke.op.color)}]),t.span&&(t.span.prevText=this.text);var u=[t.stroke,t.gradient,t.animation,t.span,t.backgroundOp,t.layout,t.marginOp,t.shadow,t.animation,t.filtera,c?t.transform:void 0];u=u.filter(function(t){return null!=t});for(var d=0;d<u.length;d++)l.push({range:u[d].range,log:u[d].op.name,target:u[d].target,op:u[d].op});var h=[];t.borderObj&&h.push("border"),t.background&&h.push("background"),t.mar&&h.push("margin"),t.animation&&h.push("animation"),t.span&&h.push("span"),c&&h.push("transform"),t.gradient&&h.push("gradient"),t.blast,this.options=t,this.chainReact(l,this.options.id,h)}if(t.centerColumn&&this.deprecatedOption("centerColumn",'center: "x"'),t.mboth&&(this.deprecatedOption("mboth",'mar: "center"'),this.mar("center")),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.simpleCenter&&this.deprecatedOption("simpleCenter","center: true"),t.filter&&(this.res.style.backdropFilter="blur(3px)"),t.radius&&this.corner(t.radius),t.radius&&(r+='\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&&(r+='\n width: "'.concat(t.width,'",')),t.overflow&&(r+='\n overflow: "'.concat(t.overflow,'",')),t.height&&this.heightNoAuto(t.height),t.height&&(r+='\n height: "'.concat(t.height,'",')),t.align&&this.flexAlign(t.align),t.align&&(r+='\n align: "'.concat(t.align,'",')),t.borderObj&&(this.res.style.border="".concat(t.borderObj.width," solid ").concat(t.borderObj.color),void 0!==t.borderObj.radius&&(this.res.style.borderRadius=t.borderObj.radius)),t.borderObja&&(this.res.style.border="".concat(t.borderObja.width," solid ").concat(t.borderObja.color),void 0!==t.borderObja.radius&&(this.res.style.borderRadius=t.borderObja.radius)),t.font&&this.font(t.font),t.font&&(r+='font: "'.concat(t.font,'",')),t.maxWidth&&this.maxWidth(t.maxWidth),t.flexCenter&&this.deprecatedOption("flexCenter",'center: "y"'),t.color&&this.color(t.color),t.background&&this.background(t.background),t.background&&(r+='background: "'.concat(t.background,'",')),t.weight&&this.weight(t.weight),t.area&&this.setArea(t.area),t.area&&(r+='area: "'.concat(t.area,'"')),t.column&&this.makeCol(),t.column&&(r+='\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&&(r+='\n flexDir: "'.concat(t.flexDir,'",')),t.center&&(r+="center: ".concat(JSON.stringify(t.center),",")),t.zIndex&&(this.res.style.zIndex=t.zIndex),t.transform&&"object"===a(t.transform)&&this.reactOnTransform(t.transform),t.name&&(this.name=t.name),t.responsive&&this.rsp(t.responsive),t.stretch){t.stretch&&this.stretch(t.stretch);var y=this.removeQuotesFromFirstWord(JSON.stringify(t.stretch));r+="\n stretch: ".concat(y,",")}for(var m in t)if("margin"===m){var b=t[m];if(Array.isArray(b)&&b.length>0){var v,g=i(b);try{for(g.s();!(v=g.n()).done;){var w=v.value;w.hasOwnProperty("top")&&(this.res.style.marginTop=w.top),w.hasOwnProperty("right")&&(this.res.style.marginRight=w.right),w.hasOwnProperty("bottom")&&(this.res.style.marginBottom=w.bottom),w.hasOwnProperty("left")&&(this.res.style.marginLeft=w.left)}}catch(t){g.e(t)}finally{g.f()}}}return 8===(r+="})\n").length&&(r=""),this.code.push(r),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 o=0;o<n.length-1;o++)(window.matchMedia("(min-width: ".concat(n[o],") and (max-width: ").concat(n[o+1],")")).matches||window.matchMedia("(min-width: ".concat(n[n.length-1],")")).matches)&&("row"===r[o]&&(e.res.style.flexDirection="row",e.res.style.border="3px solid green"),"col"===r[o]&&(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:"color",value:function(t){return this.res.style.color=t,this}},{key:"weight",value:function(t){return this.res.style.fontWeight=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:"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.border="".concat(t.width,"px solid ").concat(t.color),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:"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=null;return t?(t.isLink&&(e=document.createElement("a")),"aside"===t&&(e=document.createElement("aside")),"article"===t&&(e=document.createElement("article")),"main"===t&&(e=document.createElement("main")),"section"===t&&(e=document.createElement("section")),"header"===t&&(e=document.createElement("header")),"footer"===t&&(e=document.createElement("footer"))):e=document.createElement("div"),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:"dimensions",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:"size",value:function(t,e){return this.deprecatedOption("size() on this component","dimensions(w, h)"),this.dimensions(t,e)}},{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:"apply",value:function(t){var e=this,r=function(){for(var r=0;r<t.length;r++){var n=t[r],o=window.matchMedia("(max-width: ".concat(n.width,"px)"));n.device&&(o=window.matchMedia("(max-device-width: ".concat(n.width,"px)"))),o.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&&c(r.prototype,n),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n}(n.y)},827:(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 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,i(n.key),n)}}function i(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 s(t){return s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},s(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,{k:()=>c});var c=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=s(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||[],s(t).constructor):e.apply(t,r))}(this,e))._noTheme=!0,r.res=null,r.value=t,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&&l(t,e)}(e,t),r=e,i=[{key:"setup",value:function(){var t=document.createElement("div"),e=document.createElement("div"),r=document.createElement("div");return e.style.position="absolute",r.style.position="relative",t.appendChild(e),t.appendChild(r),this.res=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:"size",value:function(t){var e=this,r=t.width.split("%")[0],n=t.height;this.res.children[0].style.width=r/100*window.innerWidth,this.res.children[0].style.height=n,this.res.children[1].style.width=r/100*window.innerWidth*this.value,this.res.children[1].style.height=n;var o=function(){e.res.children[0].style.width=r/100*window.innerWidth,e.res.children[0].style.height=n,e.res.children[1].style.width=r/100*window.innerWidth*e.value,e.res.children[1].style.height=n};return window.addEventListener("resize",o),o(),this}},{key:"colors",value:function(t,e){return this.res.children[0].style.background=t,this.res.children[1].style.background=e,this}},{key:"round",value:function(t){return this.res.children[0].style.borderRadius="".concat(t,"px"),this.res.children[1].style.borderRadius="".concat(t,"px"),this}},{key:"render",value:function(t){if(Array.from(this.res.children).forEach(function(t){return t.style.padding=0}),Array.from(this.res.children).forEach(function(t){return t.style.margin=0}),!t)return this.res;document.querySelector(t).appendChild(this.res)}}],i&&o(r.prototype,i),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,i}(r(2332).y)},849:(t,e,r)=>{r.d(e,{I:()=>F}),r(2332);var n=r(9828),o=r(8597),i=(r(9793),r(6131)),a=r(9383),s=r(7108),l=r(3050),c=(r(8807),r(3440),r(5367),r(7879)),u=r(7258),d=r(3420),f=(r(827),r(1873),r(2789)),p=r(7926),h=r(153),y=(r(1980),r(6182)),m=r(3665),b=(r(3243),r(3014)),v=(r(9310),r(1632),r(5860),r(4550),r(9290),r(2387)),g=r(9521),w=r(1236),_=r(3180),k=r(1557),O=r(2689),x=r(4617),S=(r(1353),r(3257)),j=(r(5613),r(1371)),E=r(2588),C=r(9932),P=(r(6679),r(9668)),T=r(8424),A=r(2027),R=(r(7698),r(9800)),M=r(5632);function I(t){return I="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},I(t)}function D(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){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 W(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?L(Object(r),!0).forEach(function(e){B(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):L(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function B(t,e,r){return(e=N(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function z(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(n.key),n)}}function N(t){var e=function(t){if("object"!=I(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=I(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==I(e)?e:e+""}var q=["h1","h2","h3","h4","h5","h6","p","img","a","cards","free","nav","sideNav","row","dropdown","radio","input","labelInput","filePicker","picker","video","audio","multiswitcher","button","form","checkbox","stack","simple","copy","wrap","circle","polygon","code","table","ulist"],F=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){if(["h1","h2","h3","h4","h5","h6","p"].includes(t.el.type))return this.mapText(t);if("img"===t.el.type)return this.mapImage(t);if("a"===t.el.type)return this.mapLink(t);if("cards"===t.el.type)return this.mapGrid(t);if("free"===t.el.type)return this.mapFree(t);if("nav"===t.el.type)return this.protoNav(t);if("sideNav"===t.el.type)return this.sideNav(t);if("row"===t.el.type)return this.mapRow(t);if("dropdown"===t.el.type)return this.dropdown(t);if("radio"===t.el.type)return this.radio(t);if("input"===t.el.type)return this.input(t);if("labelInput"===t.el.type)return this.floatInput(t);if("filePicker"===t.el.type)return this.filePicker(t);if("picker"===t.el.type)return this.picker(t);if("video"===t.el.type)return this.video(t);if("audio"===t.el.type)return this.audio(t);if("multiswitcher"===t.el.type)return this.multiswitcher(t);if("button"===t.el.type)return this.button(t);if("form"===t.el.type)return this.form(t);if("checkbox"===t.el.type)return this.checkbox(t);if("stack"===t.el.type)return this.stack(t);if("simple"===t.el.type)return this.simple(t);if("copy"===t.el.type)return this.mapCopy(t);if("wrap"===t.el.type)return this.mapWrap(t);if("circle"===t.el.type)return this.mapCircle(t);if("polygon"===t.el.type)return this.mapPolygon(t);if("code"===t.el.type)return this.mapCode(t);if("table"===t.el.type)return this.mapTable(t);if("ulist"===t.el.type)return this.mapUList(t);throw new Error("[nodality] "+(0,o.au)(t.el.type,q,"element type"))}},{key:"mapTable",value:function(t){var e=t.el;return(new y.X).add([{abbr:"AUIUI/AK9PT",name:"Pokročilé mobilní technologie",grade:"A",date:"09.01.2024"},{abbr:"AUIUI/AK9PT",name:"Pokročilé mobilní technologie",grade:"A",date:"09.01.2024"},{abbr:"AUIUI/AK9PT",name:"Pokročilé mobilní technologie",grade:"A",date:"09.01.2024"}]).set({cellPadding:"0.3em",cellAlign:"center",style:{font:"Arial"},headStyle:{color:"white",background:"#ff6d22"},border:"2px solid black",center:!0,borderRadius:2.2,stroke:this.filtero("blast",e.id,t.customOptions),gradient:this.filtero("gradient",e.id,t.customOptions),animation:this.filtero("animation",e.id,t.customOptions),shadow:this.filtero("shadow",e.id,t.customOptions),span:this.filtero("span",e.id,t.customOptions),backgroundOp:this.filtero("background",e.id,t.customOptions),marginOp:this.filtero("margin",e.id,t.customOptions),transform:this.filtero("transform",e.id,t.customOptions),filtera:this.filtero("filter",e.id,t.customOptions),raster:this.filteroRaster(e.id,t.customOptions)})}},{key:"mapRow",value:function(t){var e=t.el;return(new l.Y).set({stroke:this.filtero("blast",e.id,t.customOptions),gradient:this.filtero("gradient",e.id,t.customOptions),animation:this.filtero("animation",e.id,t.customOptions),shadow:this.filtero("shadow",e.id,t.customOptions),span:this.filtero("span",e.id,t.customOptions),backgroundOp:this.filtero("background",e.id,t.customOptions),marginOp:this.filtero("margin",e.id,t.customOptions),transform:this.filtero("transform",e.id,t.customOptions),filtera:this.filtero("filter",e.id,t.customOptions),raster:this.filteroRaster(e.id,t.customOptions)}).items([new i.E("This").set({size:"S3"}),new i.E("is").set({size:"S3",text:"Hello"}),new i.E("row.").set({size:"S3",text:"Hello"})])}},{key:"mapCode",value:function(t){var e=t.el;return(new f.C).set({stroke:this.filtero("blast",e.id,t.customOptions),gradient:this.filtero("gradient",e.id,t.customOptions),animation:this.filtero("animation",e.id,t.customOptions),shadow:this.filtero("shadow",e.id,t.customOptions),span:this.filtero("span",e.id,t.customOptions),backgroundOp:this.filtero("background",e.id,t.customOptions),marginOp:this.filtero("margin",e.id,t.customOptions),transform:this.filtero("transform",e.id,t.customOptions),filtera:this.filtero("filter",e.id,t.customOptions),raster:this.filteroRaster(e.id,t.customOptions),pad:[{l:30}],mar:[{a:30}],class:"language-js",code:'new Text("Modality").set({ font: "Arial" })'})}},{key:"mapCopy",value:function(t){var e,r=t.customOptions,n=r.filter(function(t){return"copy"===t.op})[0],o=null!==(e=null==n?void 0:n.count)&&void 0!==e?e:3,i=(this.filteroRaster(t.el.id,r)||[]).filter(function(t){return t!==n}),a=300;return'new Wrapper()\n.set({\n width: "'.concat(a,'px",\n height: "').concat(a,'px",\n display: "flex",\n justifyContent: "center",\n alignItems: "center",\n position: "absolute",\n id: "#first",\n scale: 0.3,\n ').concat(null!=n&&n.animation?'\nanimation: {\n op: {\n name: "animation",\n color: "green",\n width: "1px",\n fireAt: "inview",\n keyframesOpen: [\n {\n transform: "rotate(360deg)",\n opacity: 0\n },\n {\n transform: "rotate(0deg)",\n opacity: 1\n }\n ],\n keyframesClose: [\n {\n transform: "rotate(0deg)",\n opacity: 1\n },\n {\n transform: "rotate(0deg)",\n opacity: 0\n }\n ],\n openOptions: {\n duration: 300,\n fill: "forwards",\n delay: 1000\n },\n closeOptions: {\n duration: 1,\n fill: "forwards",\n delay: 1000\n }\n },\n target: [\n "#first"\n ]\n },\n ':"").concat(i.length?",\n raster: ".concat(JSON.stringify(i)):"","\n})\n.add(\n Array.from({ length: ").concat(o,' }).map((_, i) => {\n\n const bbox = {width: "').concat(a,'px", height: "').concat(a,'px"};\n\n const elHeight = bbox.height;\n\n const cx = ').concat(150,";\n const cy = ").concat(150,";\n\n const R = ").concat(150,";\n\n const n = ").concat(o,';\n\n // Evenly spaced angles, starting at top (-90°)\n const angle = (i / n) * Math.PI * 2 - Math.PI/2;\n const dist = R + parseFloat(elHeight)/2;\n\n const x = cx + dist * Math.cos(angle);\n const y = cy + dist * Math.sin(angle);\n\n let rot = angle * 180 / Math.PI + 90;\n rot = (rot % 360 + 360) % 360;\n rot = (rot % 360 + 360) % 360;\n\n return new Text("Hello").set({\n size: "S1",\n color: "green",\n font: "Arial",\n left: `${x}px`,\n top: `${y}px`,\n transform: {\n op: {\n name: "transform",\n transform: {\n static: true,\n keep: true,\n values: [\n "tx:-50%",\n "ty:-50%",\n `rotate(${rot}deg)`\n ]\n }\n }\n }\n })\n\n \n })\n)')}},{key:"button",value:function(t){var e,r=t.el;return new T.$(null!==(e=r.text)&&void 0!==e?e:"Button").set(W(W({fluidc:"S6"},this.elOpts(r)),{},{raster:this.filteroRaster(r.id,t.customOptions)}))}},{key:"multiswitcher",value:function(t){var e=this,r=Array.isArray(t.el.breakpoints)?t.el.breakpoints:null;if(!r||!r.length)throw new Error('[nodality] a "multiswitcher" element needs a non-empty `breakpoints` array of { at, view }.');return(new w.i).set({id:t.el.id,area:t.el.area,breakpoints:r.map(function(r){return{at:r.at,view:r.view&&"function"==typeof r.view.render?r.view:e.mapType(W(W({},t),{},{el:r.view}))}})})}},{key:"video",value:function(t){var e=t.el;if(!e.url)throw new Error('[nodality] a "video" element needs a `url`.');return this.attachRaster(new O.C(e.url).set(this.elOpts(e)),e,t.customOptions)}},{key:"audio",value:function(t){var e=t.el;if(!e.url)throw new Error('[nodality] an "audio" element needs a `url`.');return this.attachRaster(new d.f(e.url),e,t.customOptions)}},{key:"radio",value:function(t){var e,r=t.el;return(new j.z).set(W({items:Array.isArray(r.items)?r.items:[],multiple:null!==(e=r.multiple)&&void 0!==e&&e},this.elOpts(r)))}},{key:"input",value:function(t){var e,r=t.el;return(new b.A).set(W(W({type:null!==(e=r.inputType)&&void 0!==e?e:"text"},this.elOpts(r)),{},{raster:this.filteroRaster(r.id,t.customOptions)}))}},{key:"floatInput",value:function(t){var e,r=t.el;return this.attachRaster((new S.l).set(W({type:null!==(e=r.inputType)&&void 0!==e?e:"input"},this.elOpts(r))),r,t.customOptions)}},{key:"filePicker",value:function(t){var e,r=t.el;return this.attachRaster((new C.I).set(W({title:null!==(e=r.title)&&void 0!==e?e:"Choose a file"},this.elOpts(r))),r,t.customOptions)}},{key:"picker",value:function(t){var e=t.el;return(new E.L).set(W(W({items:Array.isArray(e.items)?e.items:[],arrayPadding:{sides:["all"],value:"0.5rem"},rounded:!0},this.elOpts(e)),{},{raster:this.filteroRaster(e.id,t.customOptions)}))}},{key:"dropdown",value:function(t){t.el.items||(t.el.items=["Flower","Car","Maseratti"]);var e=t.el.items.map(function(t){return(new s.N).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}})}),r=(new m.m).set({behaviour:"click",pad:[{a:"1rem"}],mar:[{a:"1rem"}],border:"1px solid black",width:"180px",radius:"1rem"}).add([new i.E(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 h.m).set({border:"1px solid green",background:"#1abc9c",radius:"0.7rem",socenter:!0}).add(e.slice(1))]),n=this.filteroRaster(t.el.id,t.customOptions);return n&&r.rasterize(n),r}},{key:"protoNav",value:function(t){var e=t.customOptions,r=[{title:"Fire",link:"@e"},{title:"and",link:"@e"},{title:"smoke",link:"@e"}],n=r.map(function(t,e){return new s.N('"'.concat(t.title,'"')).set({fluidc:"S6",text:t.title,link:t.link,font:"Arial",pad:[{a:40}],bold:!0,hover:{color:"wheat",animation:.3}})}),o=r.map(function(t,e){return new s.N('"'.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 a=(new m.m).set({behaviour:"mouseover",pad:[{a:40}],padding:"10px",border:"1px solid black"}).add([new i.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 h.m).set({centerColumn:!0,radius:"0.7rem",background:"#1abc9c",makeResponsiveBehaviour:"undefined"}).add([(new s.N).set({pad:[{a:10}],font:"Arial",hover:{color:"wheat",animation:.3},bold:!0,link:"https://www.apple.com",text:"Second",icon:{padding:30,url:"https://cdn-icons-png.flaticon.com/512/32/32339.png"}}),(new s.N).set({pad:[{a:10}],font:"Arial",hover:{color:"wheat",animation:.3},bold:!0,link:"https://www.apple.com",text:"Third",icon:{padding:30,url:"https://cdn-icons-png.flaticon.com/512/32/32339.png"}})])]);o.push(a),n.push(a)}t.el.animation;var l=(new w.i).set({breakpoints:[{at:"0px",view:(new g.m).set({background:"#ecf0f1",mar:[{a:21}],brand:new i.E("Company").set({size:"S6",font:"Helvetica"}),hamburgerColour:"#3498db",radius:"1rem"}).add([(new s.N).set({text:"About",url:"#a"}),(new m.m).set({behaviour:"mouseover",pad:[{a:40}],mar:[{lr:"auto"}],breakpoint:"1200px",padding:"10px",border:"1px solid black",height:"auto"}).add([new i.E("More").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 i.E("Our story").set({cursor:"hand",fluidc:"S6",pad:[{l:10,r:10}],font:"Arial",align:"center",weight:"bold"}),new i.E("Team").set({cursor:"hand",fluidc:"S6",pad:[{l:10,r:10}],font:"Arial",align:"center",weight:"bold"})]),new s.N("B").set({text:"About",url:"#b"}),new s.N("C").set({text:"Contact",url:"https://www.abcnews.com"})])},{at:"1200px",view:(new v.C).set({background:"#ecf0f1",mar:[{a:21}],maxHeight:"100px",radius:"1rem"}).add([new i.E("Company").set({size:"S6",font:"Helvetica"}),new _.h(!0),(new m.m).set({behaviour:"mouseover",pad:[{a:40}],padding:"10px",border:"1px solid black",radius:"30px",width:"130px"}).add([new i.E("More").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 h.m).set({flexDir:"column",mar:[{t:"10px"}],radius:".3rem"}).add([new s.N("").set({text:"Who we are",url:"jk",cursor:"hand",fluidc:"S6",pad:[{l:10,r:10}],font:"Arial",align:"center",weight:"bold"}),new s.N("").set({text:"Info",url:"#u",cursor:"hand",fluidc:"S6",pad:[{l:10,r:10}],font:"Arial",align:"center",weight:"bold"}),new s.N("").set({text:"About",url:"#u",cursor:"hand",fluidc:"S6",pad:[{l:10,r:10}],font:"Arial",align:"center",weight:"bold"})])]),(new s.N).set({text:"About",url:"#a"}),(new s.N).set({text:"Services",url:"#a"}),(new s.N).set({text:"Contact",url:"#a"})])}]});return this.attachRaster(l,t.el,e)}},{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 s.N('"'.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,tags:{open:"sidebar:open",close:"sidebar:closed"},align:"left",hover:{color:"wheat",animation:.3}})}),n=(new m.m).set({behaviour:"mouseover",pad:[{a:40}],padding:"10px",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 i.E("More").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 h.m).set({centerColumn:!0,radius:"0.7rem",background:"#1abc9c",makeResponsiveBehaviour:"undefined"}).add([(new s.N).set({pad:[{a:10}],font:"Arial",hover:{color:"wheat",animation:.3},bold:!0,link:"https://www.apple.com",text:"Second",icon:{padding:30,url:"https://cdn-icons-png.flaticon.com/512/32/32339.png"}}),(new s.N).set({pad:[{a:10}],font:"Arial",hover:{color:"wheat",animation:.3},bold:!0,link:"https://www.apple.com",text:"Third",icon:{padding:30,url:"https://cdn-icons-png.flaticon.com/512/32/32339.png"}})])]),o=e.map(function(t,e){return new s.N('"'.concat(t.title,'"')).set({fluidc:"S4",text:t.title,link:t.link,isNavA:!0,url:"#myURL",id:"#"+t.title.toLowerCase(),font:"Arial",pad:[{a:20}],bold:!0,tags:{open:"sidebar:open",close:"sidebar:closed"},align:"left",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}}}})});t.el.dropdown&&(o.push(n),r.push(n));var a=(new h.m).set({column:!0}).add([new i.E("Sidebar").set({size:"S6",font:"Arial",id:"#olod",italic:!0,animation:{range:["0px","1900px"],op:{name:"animation",color:"green",width:"1px"}},pad:[{l:20},{t:20}]}),t.el.animation?o[0]:r[0],t.el.animation?o[1]:r[1],t.el.animation?o[2]:r[2],t.el.animation&&t.el.dropdown?o[3]:new i.E("").set({}).excludeFromCode(),new i.E("Company, 2025").set({pad:[{a:20}],animation:{range:["0px","1900px"],op:{name:"animation",color:"green",width:"1px"}}})]),l=(new h.m).set({column:!0}).add([new i.E("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}]})]),u=(new c.f).setup({animate:!0,radius:"1rem",isSide:!0,background:"#ecf0f1",hamColour:{opened:"#1abc9c",closed:"#e67e22"},mobileSize:"1.2em",fixed:!0,tags:{open:"sidebar:open",close:"sidebar:closed"}}).items(t.el.offcanvas?l:a),d=this.filteroRaster(t.el.id,t.customOptions);return d&&u.rasterize(d),u}},{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};"text-above-image"!==e.op.value&&"image-above-text"!==e.op.value||(r=null,n=null),"img-overlay-text"===e.op.value&&(r={text:{row:"1 / span 2",col:"3 / span 2"},image:{row:"2 / span 3",col:"3 / 3"}}),"img-leftof-text"===e.op.value&&(r={text:{row:"1",col:"1 / 3"},image:{row:"1",col:"3 / 4"}});var o=(new u.b).set({id:"#3",templateCols:n,height:"600px"}).add([new i.E("I am free").set({border:"3px solid green",font:"Arial",size:"S1",color:"#1abc9c",gpos:null!=r?r.text:null,zIndex:1}),(new a._).set({url:"https://upload.wikimedia.org/wikipedia/commons/a/ac/MSC_World_Europa_-_Saint-Nazaire_-_June_2022.jpg",width:"400px",height:"auto",gpos:null!=r?r.image:null})]),s=this.filteroRaster(t.el.id,t.customOptions);return s&&o.rasterize(s),o}},{key:"mapCircle",value:function(t){var e=t.el;return(new M.j).set({diameter:108,background:"#1abc9c",stroke:this.filtero("blast",e.id,t.customOptions),gradient:this.filtero("gradient",e.id,t.customOptions),animation:this.filtero("animation",e.id,t.customOptions),shadow:this.filtero("shadow",e.id,t.customOptions),span:this.filtero("span",e.id,t.customOptions),backgroundOp:this.filtero("background",e.id,t.customOptions),marginOp:this.filtero("margin",e.id,t.customOptions),transform:this.filtero("transform",e.id,t.customOptions),filtera:this.filtero("filter",e.id,t.customOptions),raster:this.filteroRaster(e.id,t.customOptions)})}},{key:"mapPolygon",value:function(t){var e,r=t.el,n=null!==(e=t.el.sides)&&void 0!==e?e:7;return new R.t({id:"hex"}).set({sides:n,size:300,background:"#1abc9c",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),filtera:this.filtero("filter",r.id,t.customOptions),raster:this.filteroRaster(r.id,t.customOptions)})}},{key:"mapText",value:function(t){var e,r,n=t.el;return new i.E(n.text||n.value).set({id:n.id,class:n.class,color:n.color,size:this.getElType(n.type),font:null!==(e=n.font)&&void 0!==e?e:"Arial",stroke:this.filtero("blast",n.id,t.customOptions),gradient:this.filtero("gradient",n.id,t.customOptions),animation:this.filtero("animation",n.id,t.customOptions),shadow:this.filtero("shadow",n.id,t.customOptions),span:this.filtero("span",n.id,t.customOptions),backgroundOp:this.filtero("background",n.id,t.customOptions),marginOp:this.filtero("margin",n.id,t.customOptions),transform:this.filtero("transform",n.id,t.customOptions),filtera:this.filtero("filter",n.id,t.customOptions),raster:this.filteroRaster(n.id,t.customOptions),resprop:null!==(r=n.resprop)&&void 0!==r?r:null})}},{key:"mapImage",value:function(t){var e=t.el;return new a._(e.url).set(W(W({},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),raster:this.filteroRaster(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.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.transform=this.filtero("transform",t.el.id,t.customOptions),r.shadow=this.filtero("shadow",t.el.id,t.customOptions),r.gradient=this.filtero("gradient",t.el.id,t.customOptions),r.blast=this.filtero("blast",t.el.id,t.customOptions),r.backgroundOp=this.filtero("background",t.el.id,t.customOptions),r.raster=this.filteroRaster(t.el.id,t.customOptions),r.pad=[{a:10}],e.length>0?A.a.style({el:t.el,re:r,bst:e,options:t.customOptions})[e.length-1]:(new s.N).set(r)}},{key:"mapGrid",value:function(t){var e=t.el,r=(t.customOptions.find(function(t){return"card-style"===t.op.name}),this.filtero("gradient",e.id,t.customOptions)),n=this.filtero("animation",e.id,t.customOptions),o=this.filtero("shadow",e.id,t.customOptions),i=this.filtero("margin",e.id,t.customOptions),a=this.filtero("filter",e.id,t.customOptions),s=this.filteroRaster(e.id,t.customOptions),l=this.filtero("blast",e.id,t.customOptions),c='\n new Card()\n .set({\n width: "300px", \n height: "700px",\n radius: "0.7rem", \n mar: { sides: ["all"], value: "0.8rem" }\n '.concat(void 0!==r?",\n gradient: ".concat(JSON.stringify(r)):"").concat(void 0!==n?",\n animation: ".concat(JSON.stringify(n)):"").concat(void 0!==o?",\n shadow: ".concat(JSON.stringify(o)):"").concat(void 0!==i?",\n marginOp: ".concat(JSON.stringify(i)):"").concat(void 0!==a?",\n filtera: ".concat(JSON.stringify(a)):"").concat(void 0!==l?",\n blast: ".concat(JSON.stringify(l)):"",'\n })\n .items([\n new Image(item.img).set({isFull: true, url: item.img}),\n new Text(item.title).set({ size: "S5", color: "orange" }),\n new Link("Link").set({\n text: item.title, \n url: item.link, \n background: "#3498db", \n pad: [{ lr: "0.5rem", tb: "1rem" }], \n radius: "0.4rem", \n color: "white",\n mar: [{"a": 21}]\n })\n ])'),u=t.el.backgroundCard?'\n new ZoomCard()\n .set({\n url: item.img, \n font: "Arial", \n mar: { sides: ["all"], value: "0.8rem" }, \n inpad: "1rem", \n useBrightness: true\n })\n .items([\n new Text(item.title).set({ fluidc: "S6", color: "orange" }),\n new Link("Link").set({\n text: item.title, \n url: item.link, \n background: "#3498db", \n pad: [{ lr: "0.5rem", tb: "1rem" }], \n radius: "0.4rem", \n color: "white"\n })\n ])':c;return' new FlexGrid()\n .set({\n colat: "700px",\n wrap: true,\n align: "center",\n gap: "1rem"\n '.concat(void 0!==r?",\n gradient: ".concat(JSON.stringify(r)):"").concat(void 0!==n?",\n animation: ".concat(JSON.stringify(n)):"").concat(void 0!==o?",\n shadow: ".concat(JSON.stringify(o)):"").concat(void 0!==i?",\n marginOp: ".concat(JSON.stringify(i)):"").concat(void 0!==a?",\n filtera: ".concat(JSON.stringify(a)):"").concat(void 0!==l?",\n blast: ".concat(JSON.stringify(l)):"").concat(void 0!==s?",\n raster: ".concat(JSON.stringify(s)):"",'\n })\n .items(\n [\n { img: "https://upload.wikimedia.org/wikipedia/commons/3/3a/Starship_S20.jpg", title: "Starship", link: "#ship" },\n { img: "https://upload.wikimedia.org/wikipedia/commons/1/16/Apollo_11_Launch_-_GPN-2000-000630.jpg", title: "Saturn V", link: "#saturn" },\n { img: "https://upload.wikimedia.org/wikipedia/commons/d/d6/STS120LaunchHiRes-edit1.jpg", title: "Shuttle", link: "#shuttle" }\n ].map(item => \n ').concat(u,"\n )\n )\n ")}},{key:"checkbox",value:function(t){var e=t.el,r="string"==typeof e.label?new i.E(e.label).set({size:"S6"}):e.label;return this.attachRaster((new k.S).set(W(W({},this.elOpts(e,["label"])),void 0!==r?{label:r}:{})),e,t.customOptions)}},{key:"stack",value:function(t){var e=this,r=t.el,n=(new p.B).set(this.elOpts(r)),o=Array.isArray(r.children)?r.children:null;return o&&n.add(o.map(function(r){return e.mapType(W(W({},t),{},{el:r}))})),this.attachRaster(n,r,t.customOptions)}},{key:"form",value:function(t){var e,r=this,n=t.el,o=(new P.l).set(W(W({action:null!==(e=n.action)&&void 0!==e?e:""},void 0!==n.method?{method:n.method}:{}),void 0!==n.id?{id:n.id}:{})),i=Array.isArray(n.children)?n.children:null;return i&&o.add(i.map(function(e){return r.mapType(W(W({},t),{},{el:e}))})),o}},{key:"simple",value:function(t){var e,r,n=this,o=t.el,i=Array.isArray(o.react)?o.react:[];if(!i.length)throw new Error('[nodality] a "simple" element needs a non-empty `react` array of { at, template }.');var a=(Array.isArray(o.children)?o.children:[]).map(function(e){var r=n.mapType(W(W({},t),{},{el:e})).toCode();return Array.isArray(r)?r.join(""):String(r)}).join(",\n ");return"new AreaSwitcher()\n .set(".concat(JSON.stringify(W({gap:null!==(e=o.gap)&&void 0!==e?e:"10px",height:null!==(r=o.height)&&void 0!==r?r:"700px"},void 0!==o.id?{id:o.id}:{})),")\n .react(").concat(JSON.stringify(i,null,2),")\n .add([\n ").concat(a,"\n ])")}},{key:"mapWrap",value:function(t){var e,r,n=this,o=t.el,i=null!==(e=t.el.kind)&&void 0!==e?e:"",a=new h.m(i).set(W(W({},o),{},{font:null!==(r=o.font)&&void 0!==r?r:"Arial",stroke:this.filtero("blast",o.id,t.customOptions),gradient:this.filtero("gradient",o.id,t.customOptions),animation:this.filtero("animation",o.id,t.customOptions),shadow:this.filtero("shadow",o.id,t.customOptions),transform:this.filtero("transform",o.id,t.customOptions),filtera:this.filtero("filter",o.id,t.customOptions),raster:this.filteroRaster(o.id,t.customOptions)})),s=Array.isArray(o.children)?o.children:null;return s&&a.add(s.map(function(e){return n.mapType(W(W({},t),{},{el:e}))})),a}},{key:"mapUList",value:function(t){var e,r,n=this,o=t.el,a=null!==(e=t.el.kind)&&void 0!==e?e:"",s=new x.e(a).set(W(W({},o),{},{font:null!==(r=o.font)&&void 0!==r?r:"Arial",stroke:this.filtero("blast",o.id,t.customOptions),gradient:this.filtero("gradient",o.id,t.customOptions),animation:this.filtero("animation",o.id,t.customOptions),shadow:this.filtero("shadow",o.id,t.customOptions),transform:this.filtero("transform",o.id,t.customOptions),filtera:this.filtero("filter",o.id,t.customOptions),raster:this.filteroRaster(o.id,t.customOptions)})),l=Array.isArray(o.items)?o.items:null;return l&&s.setItems(l.map(function(e){return"string"==typeof e?new i.E(e).set({}):n.mapType(W(W({},t),{},{el:e}))})),s}},{key:"getElType",value:function(t){return"p"===t?"S6":"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:"elOpts",value:function(t){for(var e=new Set(["type","children","items","breakpoints","inputType","text","url"].concat(function(t){return function(t){if(Array.isArray(t))return D(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return D(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)?D(t,e):void 0}}(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.")}()}(arguments.length>1&&void 0!==arguments[1]?arguments[1]:[]))),r={},n=0,o=Object.keys(t);n<o.length;n++){var i=o[n];e.has(i)||(r[i]=t[i])}return r}},{key:"attachRaster",value:function(t,e,r){var n=this.filteroRaster(e.id,r);return n&&t&&"function"==typeof t.rasterize&&t.rasterize(n),t}},{key:"filteroRaster",value:function(t,e){var r=(e||[]).filter(function(e){return e&&"string"==typeof e.op&&n.RASTER_OP_NAMES.includes(e.op)&&(!e.target||t&&e.target.includes(t))});return r.length>0?r:void 0}}],null&&z(t.prototype,null),e&&z(t,e),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e}()},1236:(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 o(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 i(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?o(Object(r),!0).forEach(function(e){a(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):o(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function a(t,e,r){return(e=l(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,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,l(n.key),n)}}function l(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 c(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(c=function(){return!!t})()}function u(t){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},u(t)}function d(t,e){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},d(t,e)}r.d(e,{i:()=>f});var f=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=u(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,c()?Reflect.construct(e,r||[],u(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&&d(t,e)}(e,t),r=e,o=[{key:"set",value:function(t){var e=t.breakpoints,r=t.id,n=t.area;if(this.options={breakpoints:e},this._id=r,this._area=n,!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 i(i({},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.res=this.internalDiv,this._id&&this.internalDiv.setAttribute("id",this._id),this._area&&(this.internalDiv.style.gridArea=this._area),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 o=e[n],a=n<e.length-1?e[n+1]-1:r;return i(i({},t),{},{range:{from:o,to:a}})})}},{key:"applyView",value:function(){var t=this,e=(window.innerWidth,this.breakpoints.map(function(t){return t.at})),r=this.breakpoints.map(function(t){return t.at});this.createRanges(r),this.addRanges(this.breakpoints,e).forEach(function(e){var r="(min-width: ".concat(e.range.from,"px) and (max-width: ").concat(e.range.to,"px)");window.matchMedia(r).matches&&t.currentView!==e.view.render()&&(t.internalDiv.innerHTML="",t.internalDiv.appendChild(e.view.render()),t.currentView=e.view.render())})}},{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}}],o&&s(r.prototype,o),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,o}(r(2332).y)},1353:(t,e,r)=>{r.d(e,{A:()=>s});var n=r(8424);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 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,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 s=function(){return t=function t(e,r){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};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.container.style.width="100%",this.container.style.margin="20px auto",this.container.style.textAlign="center",this.elements=e,this.currentSlideIndex=0,this.buttons=r,this.tintColor=o.tintColor||"green",this.inactiveColor=o.inactiveColor||"gray",this.options=o,!this.buttons){var i={leftButton:new n.$("L").set({frame:{width:50,height:50},svg:this.createArrowSVG("left",28,this.tintColor),color:this.tintColor,radius:"100%",mar:[{a:"1rem"}]}),rightButton:new n.$("R").set({frame:{width:50,height:50},svg:this.createArrowSVG("right",28,this.tintColor),color:this.tintColor,radius:"100%",mar:[{a:"1rem"}]})};this.buttons=i}this.createSlider(),this.init()},e=[{key:"createArrowSVG",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"left",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:28,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"currentColor",n="http://www.w3.org/2000/svg",o=document.createElementNS(n,"svg");o.setAttribute("viewBox","0 0 24 24"),o.setAttribute("width",String(e)),o.setAttribute("height",String(e)),o.setAttribute("aria-hidden","true"),o.style.display="block",o.style.pointerEvents="none";var i=document.createElementNS(n,"path");return i.setAttribute("fill",r),"left"===t?i.setAttribute("d","M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"):i.setAttribute("d","M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6z"),o.appendChild(i),o}},{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(){var t,e=this;this.slider=document.createElement("div"),this.slider.style.width="100%",this.slider.style.height=null!==(t=this.options.height)&&void 0!==t?t:"400px",this.slider.style.borderRadius="20px",this.slider.style.overflow="hidden",this.slider.style.position="relative",this.slider.style.marginBottom="15px";var r=document.createElement("div");this.slidesWrapper=r,r.style.display="flex",r.style.overflowX="scroll",r.style.scrollBehavior="smooth",r.style.scrollSnapType="x mandatory",this.elements.forEach(function(t,n){var o=document.createElement("div");o.setAttribute("class","slide"),o.style.display="flex",o.style.justifyContent="center",o.style.alignItems="center",o.style.flexShrink="0",o.style.width="100%",o.style.height="400px",o.style.transformOrigin="center center",o.style.transform="scale(1)",o.style.scrollSnapAlign="center";var i=t.render();o.appendChild(i),i.style.cursor="pointer",i.addEventListener("click",function(){e.showLightbox(n)}),r.appendChild(o)}),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.arrowPrev.style.display="flex",this.arrowPrev.style.alignItems="center",this.arrowPrev.style.justifyContent="center",this.arrowPrev.style.backgroundColor="white",this.arrowPrev.style.padding=".4rem",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",this.arrowNext.style.display="flex",this.arrowNext.style.alignItems="center",this.arrowNext.style.justifyContent="center",this.arrowNext.style.backgroundColor="white",this.arrowNext.style.padding=".4rem";var n=document.createElement("div");n.style.position="absolute",n.style.bottom="10%",n.style.left="50%",n.style.transform="translateX(-50%)",n.style.textAlign="center",n.style.background="#ffffff",n.style.borderRadius="1rem",n.style.padding=".2rem",n.style.boxShadow="3px 3px 10px #000",this.options.hideSelector&&(n.style.display="none"),this.elements.forEach(function(t,r){var o=document.createElement("a");o.style.display="inline-block",o.style.height="15px",o.style.width="15px",o.style.borderRadius="50%",o.style.backgroundColor=e.inactiveColor,o.style.margin="0 10px",o.style.cursor="pointer",o.dataset.index=r,n.appendChild(o)});var o=document.createElement("div");o.style.display="flex",o.style.justifyContent="flex-start",o.style.margin="1rem",o.style.gap="10px",o.style.flexWrap="nowrap",o.style.overflowX="auto",this.options.hideThumbnails&&(o.style.display="none"),r.querySelectorAll(".slide").forEach(function(t,r){var n=document.createElement("div");n.className="slider-thumb",n.dataset.index=r.toString(),n.style.width="60px",n.style.height="40px",n.style.border="2px solid ".concat(e.inactiveColor),n.style.borderRadius="5px",n.style.overflow="hidden",n.style.cursor="pointer",n.style.flexShrink="0",n.style.position="relative";var i=(t.firstElementChild||t.cloneNode(!0)).cloneNode(!0);i.style.transform="scale(0.2)",i.style.transformOrigin="top left",i.style.width="300px",i.style.height="300px",i.style.backgroundSize="contain",i.style.pointerEvents="none",n.appendChild(i),o.appendChild(n)}),this.slider.appendChild(this.arrowPrev),this.slider.appendChild(this.arrowNext),this.slider.appendChild(r),this.slider.appendChild(n),this.container.appendChild(this.slider),this.container.appendChild(o),this.slidesWrapper=r,this.navLinks=Array.from(n.querySelectorAll("a")),this.thumbs=Array.from(o.querySelectorAll(".slider-thumb"))}},{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)})}),this.thumbs.forEach(function(e){e.addEventListener("click",function(){var r=parseInt(e.dataset.index,10);t.moveToSlide(r)})}),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){var r=parseInt(e.dataset.index,10);e.style.backgroundColor=r===t.currentSlideIndex?t.tintColor:t.inactiveColor}),this.thumbs.forEach(function(e){var r=parseInt(e.dataset.index,10);e.style.borderColor=r===t.currentSlideIndex?t.tintColor:t.inactiveColor});var e=this.slidesWrapper.querySelector(".slide"),r=e?e.offsetWidth:this.slidesWrapper.clientWidth;this.slidesWrapper.scrollTo({left:this.currentSlideIndex*r,behavior:"smooth"})}},{key:"showLightbox",value:function(t){var e=this,r=t,n=document.createElement("div");n.style.position="fixed",n.style.top="0",n.style.left="0",n.style.width="100vw",n.style.height="100vh",n.style.backgroundColor="rgba(0,0,0,0.9)",n.style.display="flex",n.style.alignItems="center",n.style.justifyContent="center",n.style.zIndex="9999",n.style.cursor="default";var o=document.createElement("div");o.style.position="relative",o.style.display="flex",o.style.alignItems="center",o.style.justifyContent="center",o.style.maxWidth="90%",o.style.maxHeight="90%",n.appendChild(o);var i=function(t){o.innerHTML="";var r,n=e.elements[t].render();if(r="IMG"===n.tagName?n:n.querySelector("img")){var i=document.createElement("img");i.src=r.src,i.style.maxWidth="90vw",i.style.maxHeight="90vh",i.style.objectFit="contain",i.style.pointerEvents="none",i.style.display="block",o.appendChild(i)}else{var a=n.cloneNode(!0);a.style.width="90vw",a.style.height="90vh",a.style.maxWidth="90vw",a.style.maxHeight="90vh",a.style.pointerEvents="none",o.appendChild(a)}};i(r);var a=this.buttons.leftButton.render().cloneNode(!0),s=this.buttons.rightButton.render().cloneNode(!0),l={position:"absolute",top:"50%",transform:"translateY(-50%)",background:"white",border:"none",borderRadius:"50%",display:"flex",alignItems:"center",justifyContent:"center",width:"50px",height:"50px",margin:"1rem",padding:"0",zIndex:"10000",cursor:"pointer",boxShadow:"0 2px 8px rgba(0,0,0,0.4)"};Object.assign(a.style,l,{left:"10px"}),Object.assign(s.style,l,{right:"10px"}),a.addEventListener("click",function(t){t.stopPropagation(),r=r-1<0?e.elements.length-1:r-1,i(r)}),s.addEventListener("click",function(t){t.stopPropagation(),r=(r+1)%e.elements.length,i(r)}),n.appendChild(a),n.appendChild(s);var c=document.createElement("div");c.innerHTML="✕",c.style.position="absolute",c.style.top="15px",c.style.right="20px",c.style.fontSize="2rem",c.style.color="white",c.style.cursor="pointer",c.style.zIndex="10000",c.style.userSelect="none",c.style.transition="transform 0.2s ease",c.addEventListener("mouseenter",function(){c.style.transform="scale(1.2)"}),c.addEventListener("mouseleave",function(){c.style.transform="scale(1)"}),c.addEventListener("click",function(t){t.stopPropagation(),document.body.removeChild(n),document.removeEventListener("keydown",u)}),n.appendChild(c),n.addEventListener("click",function(){document.body.removeChild(n),document.removeEventListener("keydown",u)});var u=function(t){"Escape"===t.key?(document.body.removeChild(n),document.removeEventListener("keydown",u)):"ArrowLeft"===t.key?(r=r-1<0?e.elements.length-1:r-1,i(r)):"ArrowRight"===t.key&&(r=(r+1)%e.elements.length,i(r))};document.addEventListener("keydown",u),document.body.appendChild(n)}},{key:"render",value:function(t){if(!t)return this.container;document.querySelector(t).appendChild(this.container)}}],e&&i(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e}()},1371:(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 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,i(n.key),n)}}function i(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:()=>a}),r(2332);var a=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,this.radioCount=t.items.length;for(var e=document.createElement("div"),r=t.items,n=0;n<r.length;n++){var o=document.createElement("label");r.font&&(o.style.font=r.font),r.color&&(o.style.color=r.color),r.exact&&(o.style.fontSize=r.exact);var i=document.createTextNode(r[n]);o.appendChild(i),o.setAttribute("for",r[n]);var a=document.createElement("input");a.setAttribute("type","radio"),a.setAttribute("id","S".concat(n)),a.setAttribute("value",r[n].split(" ").join("")),a.style.appearance="none",a.style.width="20px",a.style.height="20px",a.style.border=this.options.tint?"2px solid ".concat(this.options.tint):"2px solid #007BFF",a.style.borderRadius="50%",a.style.outline="none",a.style.cursor="pointer",a.style.transition="0.3s",this.options.font&&(o.style.fontFamily=this.options.font),t.multiple?a.setAttribute("name",r[n].split(" ").join("")):a.setAttribute("name",t.name),e.appendChild(a),e.appendChild(o),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(){for(var t=[],e=0;e<this.radioCount;e++)if(document.querySelector("#S".concat(e)).checked){var r=document.querySelector("#S".concat(e));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){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)}}])&&o(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e}();"undefined"!=typeof window&&(window.RadioGroup=a)},1382:(t,e,r)=>{r.d(e,{_H:()=>o,sy:()=>i});var n='"([A-Za-z_$][A-Za-z0-9_$]*)"\\s*:';function o(){return new RegExp(n,"g")}function i(t){var e,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:4;return"string"!=typeof(e=JSON.stringify(t,null,r))?e:e.replace(o(),"$1:")}},1557:(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 o(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 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,a(n.key),n)}}function a(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 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,s()?Reflect.construct(e,r||[],l(t).constructor):e.apply(t,r))}(this,e)).res=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,(a=[{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 o=document.createElement("input");o.type="checkbox",o.style.position="relative",o.style.marginRight="0.5rem";var i=t.size||"24px";o.style.width=i,o.style.height=i,t.customStyle&&(o.style.appearance="none"),o.style.border="2px solid #ccc",o.style.borderRadius="4px",o.style.backgroundColor=t.backgroundColor||"white",o.style.cursor="pointer",o.style.transition="background-color 0.2s ease, border-color 0.2s ease",o.style.display="inline-block",o.style.setProperty("--checked-bg-color",t.checkedBackgroundColor||"#4CAF50"),o.style.setProperty("--checkmark-color","white"),o.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 a=document.createElement("style");a.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(a),t.mar&&this.mar(t.mar),t.pad&&this.pad(t.pad),t.respad&&this.respad(t.respad),t.resmar&&this.resmar(t.resmar),o.addEventListener("change",function(){o.checked?(o.style.backgroundColor=t.checkedBackgroundColor||"#4CAF50",o.style.borderColor=t.checkedBackgroundColor||"#4CAF50"):(o.style.backgroundColor=t.backgroundColor||"white",o.style.borderColor="#ccc")}),t.name&&o.setAttribute("name",t.name),n.appendChild(o);var s=document.createElement("div");if("function"==typeof(null===(r=t.label)||void 0===r?void 0:r.render))s.appendChild(t.label.render());else{var l=document.createTextNode(t.title||"Label");s.appendChild(l)}return s.style.opacity=.8,s.style.transition="opacity ease 0.2s, transform ease 0.2s",n.appendChild(s),this.res=n,this}},{key:"getValue",value:function(){return this.res.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,o,i,a,s=[],l=!0,c=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==e);l=!0);}catch(t){c=!0,o=t}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(t,e)||function(t,e){if(t){if("string"==typeof t)return o(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)?o(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],i=e[1];return"string"==typeof i?"".concat(r,': "').concat(i,'"'):"object"===n(i)&&null!==i?"function"==typeof i.toCode?"".concat(r,": ").concat(i.toCode()[0]):"".concat(r,": ").concat(JSON.stringify(i,null,4)):"".concat(r,": ").concat(i)}).join(",\n ");return["new Checkbox().set({\n ".concat(t,"\n})")]}},{key:"render",value:function(t){if(!t)return this.res;document.querySelector(t).appendChild(this.res)}}])&&i(r.prototype,a),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,a}(r(2332).y);"undefined"!=typeof window&&(window.Checkbox=u)},1632:(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 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,i(n.key),n)}}function i(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 s(t){return s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},s(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,{B:()=>c});var c=function(t){function e(t){var r;!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=s(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||[],s(t).constructor):e.apply(t,r))}(this,e))._noTheme=!0,r.code=[],r.setup();for(var o=0;o<t.length;o++)r.res.appendChild(t[o].render().render());return 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&&l(t,e)}(e,t),r=e,(i=[{key:"setup",value:function(){var t=document.createElement("div");t.style.padding=0,t.style.margin=0,this.res=t}},{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:"padding",value:function(t){return this.res.style.padding="".concat(t,"px"),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:"border",value:function(t,e){return this.res.style.border="".concat(e,"px solid ").concat(t),this}},{key:"render",value:function(t){if(!t)return this.res;document.querySelector(t).appendChild(this.res)}}])&&o(r.prototype,i),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,i}(r(2332).y)},1873:(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 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,i(n.key),n)}}function i(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 s(t){return s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},s(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,{o:()=>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=s(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||[],s(t).constructor):e.apply(t,r))}(this,e)).setup(),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,(i=[{key:"setup",value:function(){var t=document.createElement("div");t.style.display="flex",t.style.flexDirection="column",t.style.justifyContent="center",t.style.alignItems="center",t.style.width="100%",t.style.height="auto",t.style.margin=0,t.style.padding=0,this.res=t}},{key:"set",value:function(t){return void 0!==t.id&&null!==t.id&&this.res.setAttribute("id",t.id),this.commonMethods(t),this}},{key:"toCode",value:function(){return[""]}},{key:"items",value:function(t){for(var e=0;e<t.length;e++){var r=t[e].render();this.res.appendChild(r)}return this}},{key:"add",value:function(t){for(var e=0;e<t.length;e++){var r=t[e].render();this.res.appendChild(r)}return this}},{key:"render",value:function(t){if(!t)return this.res;document.querySelector(t).appendChild(this.res)}}])&&o(r.prototype,i),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,i}(r(2332).y)},1980:(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 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,i(n.key),n)}}function i(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 s(t){return s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},s(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,{W:()=>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=s(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||[],s(t).constructor):e.apply(t,r))}(this,e))._noTheme=!0,t.res=document.createElement("meta"),t.res.setAttribute("name","viewport"),t.res.setAttribute("content","width=device-width, initial-scale=1"),t.charset=document.createElement("meta"),t.charset.setAttribute("charset","UTF-8"),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,(i=[{key:"add",value:function(){document.head.appendChild(this.res),document.head.appendChild(this.charset)}}])&&o(r.prototype,i),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,i}(r(2332).y)},2027:(t,e,r)=>{r.d(e,{a:()=>s});var n=r(7108);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 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,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 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)},e=[{key:"style",value:function(t){for(var e=t.bst,r=t.el,o=t.re,i=(t.options,[]),a=0;a<e.length;a++)e[a].target&&(r.id,e[a].target[0]);for(a=0;a<e.length;a++){var s=!0;e[a].target&&(s=!1,r.id===e[a].target[0]&&(s=!0));var l=e[a].op.ops.split("-");s&&l.includes("air")&&(o.borderObj={color:"#1abc9c",radius:"0rem",width:"3px"},o.color="#1abc9c",o.background="transparent"),s&&l.includes("round")&&(l.includes("air")?o.borderObj={width:"4px",radius:"0.7rem",color:"#1abc9c"}:o.borderObj={width:"0px",radius:"0.7rem",color:"#1abc9c"}),s&&l.includes("full")&&(o.background="#3498db",o.borderObj&&o.borderObj.radius&&(o.borderObj.radius="0.3rem"),o.color="white"),s&&l.includes("pill")&&(o.background="#3498db",o.borderObj.radius="9999px",o.color="white"),s&&l.includes("hover")&&(o.hover={color:"#1abc9c",background:"orange"}),i.push((new n.N).set(o))}return i}}],null&&i(t.prototype,null),e&&i(t,e),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e}()},2332:(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)}r.d(e,{y:()=>m});var o="nodality.theme.mode",i="nodality:theme",a={mode:function(){try{var t=localStorage.getItem(o);if("light"===t||"dark"===t)return t}catch(t){}return"undefined"!=typeof window&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}(),tokens:{light:{},dark:{}},defaults:{light:{color:"#111"},dark:{}},setDefaults:function(t){return t&&"object"===n(t)&&(t.light&&(this.defaults.light=Object.assign({},this.defaults.light,t.light)),t.dark&&(this.defaults.dark=Object.assign({},this.defaults.dark,t.dark)),this._broadcast()),this},setTokens:function(t){return t&&"object"===n(t)&&(t.light&&Object.assign(this.tokens.light,t.light),t.dark&&Object.assign(this.tokens.dark,t.dark)),this},get current(){return this.tokens[this.mode]||{}},set:function(t){if("light"!==t&&"dark"!==t)return this;if(t===this.mode)return this;this.mode=t;try{localStorage.setItem(o,t)}catch(t){}return this._broadcast(),this},toggle:function(){return this.set("dark"===this.mode?"light":"dark")},subscribe:function(t){if("undefined"==typeof document)return function(){};var e=function(e){return t(e.detail.mode,e.detail.tokens)};document.addEventListener(i,e);try{t(this.mode,this.current)}catch(t){}return function(){return document.removeEventListener(i,e)}},_broadcast:function(){"undefined"!=typeof document&&document.dispatchEvent(new CustomEvent(i,{detail:{mode:this.mode,tokens:this.current}}))}},s=r(9828),l=r(1382);function c(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,o,i,a,s=[],l=!0,c=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==e);l=!0);}catch(t){c=!0,o=t}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(t,e)||d(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 u(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=d(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return a=t.done,t},e:function(t){s=!0,i=t},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw i}}}}function d(t,e){if(t){if("string"==typeof t)return f(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)?f(t,e):void 0}}function f(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 p(t){return p="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},p(t)}function h(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,y(n.key),n)}}function y(t){var e=function(t){if("object"!=p(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=p(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==p(e)?e:e+""}var m=function(){function t(){var e,r,n,o=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){var e=t.op;t.transform||(e=t.op),e.duration||(e.duration="3s-ease-in-out"),o.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="",i="",a="",s="",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:")?i=t.replace("tz:",""):t.startsWith("scale(")?a=t:t.startsWith("skew(")?s=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=o.setDefault(r),n=o.setDefault(n),i=o.setDefault(i);var f="";if("0px"!=n&&"0px"!=r&&"0px"!=i?f+="translate3d(".concat(r,", ").concat(n,", ").concat(i,")"):"0px"==n&&"0px"==r||(f+="translate(".concat(r,", ").concat(n,")")),a&&(f+=" ".concat(a)),l&&(f+=" ".concat(l)),s&&(f+=" ".concat(s)),c&&(f+=" ".concat(c)),u&&(f+=" ".concat(u)),f){if(t.op.duration){var p=t.op.duration.replace(/^(\d+)(s)-/,function(t,e,r){return e/2+r+" "}),h="transform ".concat(p,", opacity ").concat(p);o.res.style.transition=h}else o.res.style.transition="transform 3s ease-in-out, opacity 3s ease-in-out";t.op.static&&(o.res.style.transition=""),(o.blastTarget||o.res).style.transform=f,o.res.style.opacity=d}else console.warn("[nodality] transform produced no geometric value - check `values`")}};e.on?o.res.addEventListener(e.on,function(){e.delay?setTimeout(function(){r()},e.delay):r()}):o._on(window,"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) "),o.res.style.opacity="1"}),t&&(o.res.style.transform=t.trim())};if(e.on)o.res.addEventListener("mouseout",function(){e.keep||n()});else{var i=1e3*parseFloat(e.duration),a=e.closeAfter?e.closeAfter:0;setTimeout(function(){e.keep||n()},i/2+a)}e.hardCSS&&(o.res.style.transform=e.hardCSS)}else console.warn("[nodality] reactOnTransform: unrecognised transform descriptor - ignored")},(r=y(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},this.openedElements=new WeakMap,"undefined"!=typeof document&&(this._themeUnsub=a.subscribe(function(t){return o._applyTheme(t)}),Promise.resolve().then(function(){return o._applyTheme(a.mode)}))}return e=t,r=[{key:"rasterize",value:function(t){var e=this;if(t&&0!==t.length&&!this._rasterHandle&&!this._rasterCancelled&&"undefined"!=typeof document&&"undefined"!=typeof setTimeout){var r=0,n=function(){if(!e._rasterHandle&&!e._rasterCancelled){if(e.res&&e.res.isConnected){try{e._rasterHandle=(0,s.applyRasterPipeline)(e.res,t)}catch(t){return void console.warn("[nodality] raster pipeline skipped:",t)}if(e._rasterHandle)return}++r<80&&(e._rasterTimer=setTimeout(n,50))}};this._rasterTimer=setTimeout(n,0),this._track(function(){return clearTimeout(e._rasterTimer)})}}},{key:"isHidden",value:function(t){t&&(this.res.style.display="none")}},{key:"theme",value:function(t){var e=this;return t&&"object"===p(t)?(this._themeMap=t,this._applyTheme(a.mode),this._themeUnsub||(this._themeUnsub=a.subscribe(function(t){return e._applyTheme(t)})),this):this}},{key:"_track",value:function(t){return"function"!=typeof t||(this._disposables||(this._disposables=[])).push(t),t}},{key:"_on",value:function(t,e,r,n){return t&&"function"==typeof t.addEventListener?(t.addEventListener(e,r,n),this._track(function(){return t.removeEventListener(e,r,n)}),r):r}},{key:"destroy",value:function(){if("function"==typeof this._themeUnsub&&(this._themeUnsub(),this._themeUnsub=null),this._rasterHandle&&"function"==typeof this._rasterHandle.destroy)try{this._rasterHandle.destroy()}catch(t){}if(this._rasterHandle=null,this._rasterCancelled=!0,this._disposables){var t,e=u(this._disposables);try{for(e.s();!(t=e.n()).done;){var r=t.value;try{r()}catch(t){}}}catch(t){e.e(t)}finally{e.f()}this._disposables.length=0}return this._responsiveTasks=null,this._responsiveHandler=null,this.res&&this.res.parentNode&&this.res.parentNode.removeChild(this.res),this}},{key:"_applyTheme",value:function(t){if(!this._noTheme&&this.res)if(this._themeMap){var e=this._themeMap[t];if(!e)return;for(var r in e)this.res.style[r]=e[r]}else{var n=a.defaults&&a.defaults[t];if(n)for(var o in this._themeOriginal||(this._themeOriginal={}),n)o in this._themeOriginal||(this._themeOriginal[o]=this.res.style[o]||""),this._themeOriginal[o]||(this.res.style[o]=n[o])}}},{key:"vars",value:function(t){if(!t||"object"!==p(t))return this;for(var e in t)this.res.style.setProperty(e,String(t[e]));return this}},{key:"keySet",value:function(t){if(this.temporaryVal=1,Array.isArray(t)){for(var e=0;e<t.length;e++)t[e]&&null!=t[e].key&&(this.res.style[t[e].key]=t[e].value);return this}return this.res.style[t.key]=t.value,this}},{key:"commonMethods",value:function(t){var e={exact:"fontSize",cursor:"cursor",width:"width",maxWidth:"maxWidth",height:"height",maxHeight:"maxHeight",radius:"borderRadius",lineHeight:"lineHeight",background:"background",color:"color",font:"fontFamily",opacity:"opacity",gap:"gap",minHeight:"minHeight",position:"position",inset:"inset",top:"top",right:"right",bottom:"bottom",left:"left",zIndex:"zIndex",flex:"flex",flexShrink:"flexShrink",flexGrow:"flexGrow",flexBasis:"flexBasis",flexWrap:"flexWrap",alignSelf:"alignSelf",display:"display",gridTemplateColumns:"gridTemplateColumns",gridTemplateRows:"gridTemplateRows",rowGap:"rowGap",columnGap:"columnGap",cols:"gridTemplateColumns",rows:"gridTemplateRows",areas:"gridTemplateAreas",area:"gridArea",letterSpacing:"letterSpacing",textTransform:"textTransform",whiteSpace:"whiteSpace",overflowWrap:"overflowWrap",wordBreak:"wordBreak",wordWrap:"wordWrap",boxShadow:"boxShadow",backdropFilter:"backdropFilter",WebkitBackdropFilter:"WebkitBackdropFilter",overflow:"overflow",overflowX:"overflowX",overflowY:"overflowY",WebkitOverflowScrolling:"WebkitOverflowScrolling",WebkitTapHighlightColor:"WebkitTapHighlightColor",minWidth:"minWidth",boxSizing:"boxSizing",pointerEvents:"pointerEvents",userSelect:"userSelect",WebkitUserSelect:"WebkitUserSelect",textAlign:"textAlign",transition:"transition"};for(var r in e)null!=t[r]&&(this.res.style[e[r]]=t[r]);return"string"==typeof t.transform&&(this.res.style.transform=t.transform),t.pad&&this.pad(t.pad),t.mar&&this.mar(t.mar),t.respad&&this.respad(t.respad),t.borderObj&&t.borderObj.width&&this.borderObj(t.borderObj),t.resmar&&this.resmar(t.resmar),t.hover&&this.hover(t.hover),t.size&&this.fluidCopy(t.size),t.resprop&&this.resprop(t.resprop,t),t.vars&&this.vars(t.vars),t.keySet&&this.keySet(t.keySet),t.noTheme&&(this._noTheme=!0),t.theme&&this.theme(t.theme),t.hide&&this.isHidden(t.hide),t.raster&&this.rasterize(t.raster),t.center&&this.center(t.center,{display:t.disp||t.display,flexDirection:t.flexDir||t.flexDirection}),t.transform&&"object"===p(t.transform)&&this.reactOnTransform(t.transform),void 0!==t.opacity&&(this.res.style.opacity=t.opacity),t.bold?this.res.style.fontWeight="bold":null!=t.weight&&(this.res.style.fontWeight=t.weight),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&&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,this.prevBoxShadow=this.res.style.boxShadow,t.animation&&(this.res.style.transition="".concat(t.animation),this.res.style.transitionProperty="background-color, color, border, box-shadow, transform"),this.prevTransform=this.res.style.transform,this.res.onmouseout=function(){e.res.style.backgroundColor="".concat(e.prevColor),e.res.style.color="".concat(e.foreColor),e.res.style.border=e.prevBorder,null==t.scale&&null==t.transform||(e.res.style.transform=e.prevTransform||""),null!=t.boxShadow&&(e.res.style.boxShadow=e.prevBoxShadow||"")},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,o=null!==(r=t.border.color)&&void 0!==r?r:"#2ECC71";e.res.style.border=n?"".concat(n,"px solid ").concat(o):"1px solid #2ECC71"}if(null!=t.scale||null!=t.transform){var i=e.prevTransform?"".concat(e.prevTransform," "):"",a=[];null!=t.transform&&a.push(t.transform),null!=t.scale&&a.push("scale(".concat(t.scale,")")),e.res.style.transform="".concat(i).concat(a.join(" "))}null!=t.boxShadow&&(e.res.style.boxShadow=t.boxShadow)},this}},{key:"onScroll",value:function(t){var e=this,r=function(t){if(null==t)return{num:0,unit:"px"};var e=String(t).match(/^(-?[\d.]+)(.*)$/);return e?{num:parseFloat(e[1]),unit:e[2]||"px"}:{num:0,unit:"px"}},n=function(t){var r=t&&null!=t.tx?t.tx:"0px",n=t&&null!=t.ty?t.ty:"0px";e.res.style.transform="translate3d(".concat(r,", ").concat(n,", 0)")};"opacity"===t.value?this.res.style.opacity=t.valMin:"scale"===t.value?this.res.style.transform="scale(".concat(t.valMin,")"):"trn"===t.value&&n(t.valMin);var o=function(){if("trn"!==t.value){var o=e.smartRange(window.scrollY,{min:t.from,max:t.to},{min:t.valMin,max:t.valMax});"opacity"===t.value?e.res.style.opacity=o:"scale"===t.value&&(e.res.style.transform="scale(".concat(o,")"))}else{for(var i={},a=["tx","ty"],s=0;s<a.length;s++){var l=a[s],c=t.valMin&&null!=t.valMin[l],u=t.valMax&&null!=t.valMax[l];if(c||u){var d=r(c?t.valMin[l]:u?t.valMax[l]:"0px"),f=r(u?t.valMax[l]:c?t.valMin[l]:"0px"),p=e.smartRange(window.scrollY,{min:t.from,max:t.to},{min:d.num,max:f.num});i[l]="".concat(p).concat(d.unit)}}n(i)}};this._on(window,"scroll",o),0===t.from&&o()}},{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:"_setupResponsiveManager",value:function(){var t=this;this._responsiveTasks=this._responsiveTasks||[];var e=function(){t._responsiveTasks.forEach(function(t){t()})};this._responsiveHandler||(this._responsiveHandler=e,this._on(window,"resize",e)),setTimeout(function(){e()},0)}},{key:"resprop",value:function(e,r){var n=this;this.options=r;var o={default:[0,1e5],xs:[0,575],sm:[576,767],md:[768,991],lg:[992,1199],xl:[1200,1399],xxl:[1400,1e5]},i=["resprop","breakpoint","value","values","range"],a={flexDir:"flexDirection",dir:"flexDirection",justify:"justifyContent",align:"alignItems",wrap:"flexWrap",bg:"background",radius:"borderRadius",z:"zIndex",exact:"fontSize"},s=function(t){var e=a[t]||t;return"undefined"==typeof console||"function"==typeof n[t]||e in n.res.style||console.warn('[nodality] resprop: "'.concat(t,'" is not a CSS property or component method — ignored.')+(a[t]?"":" Did you mean one of: ".concat(Object.keys(a).join(", "),"?"))),e};e.forEach(function(t){void 0!==o[t.breakpoint]?t.range=o[t.breakpoint]:Array.isArray(t.breakpoint)&&2===t.breakpoint.length?t.range=[parseInt(t.breakpoint[0],10),parseInt(t.breakpoint[1],10)]:t.range=[0,parseInt(t.breakpoint,10)]}),e.sort(function(t,e){return t.range[1]-e.range[1]});var l=e.find(function(t){return"default"===t.breakpoint});l||(l={breakpoint:"default",range:o.default},e.unshift(l));var u=new Set;e.forEach(function(t){Object.keys(t).forEach(function(t){i.includes(t)||"range"===t||u.add(t)})}),u.forEach(function(t){void 0===l[t]&&(l[t]=n.options[t]||"initial")}),this._responsiveTasks=this._responsiveTasks||[],this._responsiveTasks.push(function(){for(var r=t.viewportWidth(),o=l,a=0;a<e.length;a++){var d=e[a],f=c(d.range,2),p=f[0],h=f[1];if("default"!==d.breakpoint&&r>=p&&r<=h){o=d;break}}for(var y in u.forEach(function(t){if("keySet"===t){var e=l[t];e&&e.key&&(n.res.style[e.key]=e.value)}else n.res.style[s(t)]=l[t]}),o)if("exact"!==y){if(!i.includes(y)&&"range"!==y){var m=o[y];"keySet"===y&&m&&m.key?n.res.style[m.key]=m.value:"function"==typeof n[y]?n[y](m):n.res.style[s(y)]=m}}else n.res.style.fontSize=o[y]}),this._setupResponsiveManager()}},{key:"respad",value:function(e){var r=this,n={default:[0,1e5],xs:[0,575],sm:[576,767],md:[768,991],lg:[992,1199],xl:[1200,1399],xxl:[1400,1e5]};e.forEach(function(t){void 0!==n[t.breakpoint]?t.range=n[t.breakpoint]:Array.isArray(t.breakpoint)&&2===t.breakpoint.length?t.range=[parseInt(t.breakpoint[0],10),parseInt(t.breakpoint[1],10)]:t.range=[parseInt(t.breakpoint,10),1e5]}),e.sort(function(t,e){return t.range[0]-e.range[0]});var o=e.find(function(t){return"default"===t.breakpoint});o||(o={breakpoint:"default",range:n.default},e.unshift(o)),void 0===o.values&&(o.values=this.options&&this.options.pad||null),this._responsiveTasks=this._responsiveTasks||[],this._responsiveTasks.push(function(){for(var n=t.viewportWidth(),i=o,a=0;a<e.length;a++){var s=e[a],l=c(s.range,2),u=l[0],d=l[1];if("default"!==s.breakpoint&&n>=u&&n<=d){i=s;break}}var f=void 0!==i.values?i.values:o.values;null!=f&&r.pad(f)}),this._setupResponsiveManager()}},{key:"resmar",value:function(e){var r=this,n={default:[0,1e5],xs:[0,575],sm:[576,767],md:[768,991],lg:[992,1199],xl:[1200,1399],xxl:[1400,1e5]};e.forEach(function(t){void 0!==n[t.breakpoint]?t.range=n[t.breakpoint]:Array.isArray(t.breakpoint)&&2===t.breakpoint.length?t.range=[parseInt(t.breakpoint[0],10),parseInt(t.breakpoint[1],10)]:t.range=[parseInt(t.breakpoint,10),1e5]}),e.sort(function(t,e){return t.range[0]-e.range[0]});var o=e.find(function(t){return"default"===t.breakpoint});o||(o={breakpoint:"default",range:n.default},e.unshift(o)),void 0===o.values&&(o.values=this.options&&(this.options.mar||this.options.pad)||null),this._responsiveTasks=this._responsiveTasks||[],this._responsiveTasks.push(function(){for(var n=t.viewportWidth(),i=o,a=0;a<e.length;a++){var s=e[a],l=c(s.range,2),u=l[0],d=l[1];if("default"!==s.breakpoint&&n>=u&&n<=d){i=s;break}}var f=void 0!==i.values?i.values:o.values;null!=f&&r.mar(f)}),this._setupResponsiveManager()}},{key:"color",value:function(t){return this.res.style.color=t,this}},{key:"onTap",value:function(t){return this.res.addEventListener("click",t),this}},{key:"setArea",value:function(t){return this.res.style.gridArea=t,this}},{key:"font",value:function(t){return this.res.style.fontFamily=t,this}},{key:"radius",value:function(t){return this.res.style.borderRadius="number"==typeof t?"".concat(t,"px"):t,this}},{key:"width",value:function(t){return this.res.style.width=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:"round",value:function(t){return this.deprecatedOption("round()","radius()"),this.radius(t)}},{key:"toCSS",value:function(){return this.css}},{key:"toHTMLA",value:function(){return this.html}},{key:"background",value:function(t){return this.res.style.background=t,this}},{key:"deprecatedOption",value:function(t,e){return console.error("nodality: `".concat(t,"` is deprecated — use `").concat(e,"` instead.")),this}},{key:"center",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=this.res.style,n=r.display||e.display||"",o=r.flexDirection||e.flexDirection||"",i=!0===t||"both"===t||"x"===t,a=!0===t||"both"===t||"y"===t;if(n.includes("grid"))return i&&(r.justifyItems="center",r.justifyContent="center"),a&&(r.alignItems="center",r.alignContent="center"),this;n.includes("flex")||(r.display="flex"),r.flexDirection||(r.flexDirection=o||"column");var s=(r.flexDirection||"column").startsWith("column");return(s?a:i)&&(r.justifyContent="center"),(s?i:a)&&(r.alignItems="center"),this}},{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 o=r[n],i=t[e][o],a=0;a<o.length;a++)switch(o[a]){case"a":this.res.style.padding=this.isNumber(i)?"".concat(i,"px"):i;break;case"t":this.res.style.paddingTop=this.isNumber(i)?"".concat(i,"px"):i;break;case"l":this.res.style.paddingLeft=this.isNumber(i)?"".concat(i,"px"):i;break;case"r":this.res.style.paddingRight=this.isNumber(i)?"".concat(i,"px"):i;break;case"b":this.res.style.paddingBottom=this.isNumber(i)?"".concat(i,"px"):i}return this}},{key:"as",value:function(t){return this.res.style.alignSelf=t,this}},{key:"mar",value:function(t){if("center"===t)return this.res.style.marginLeft="auto",this.res.style.marginRight="auto",this;for(var e=0;e<t.length;e++)for(var r=Object.keys(t[e]),n=0;n<r.length;n++){for(var o=r[n],i=t[e][o],a=0;a<o.length;a++)switch(o[a]){case"a":"auto"===i?(this.res.style.marginLeft="auto",this.res.style.marginRight="auto"):this.res.style.margin=this.isNumber(i)?"".concat(i,"px"):i;break;case"t":this.res.style.marginTop=this.isNumber(i)?"".concat(i,"px"):i;break;case"l":this.res.style.marginLeft=this.isNumber(i)?"".concat(i,"px"):i;break;case"r":this.res.style.marginRight=this.isNumber(i)?"".concat(i,"px"):i;break;case"b":this.res.style.marginBottom=this.isNumber(i)?"".concat(i,"px"):i}"center"===o&&!0===i&&(this.res.style.marginLeft="auto",this.res.style.marginRight="auto"),"auto"===i&&(o.includes("l")||o.includes("r"))&&(o.includes("l")&&(this.res.style.marginLeft="auto"),o.includes("r")&&(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);return e.min>e.max&&(n=(t-e.max)/(e.min-e.max)),r.min+(r.max-r.min)*n}},{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 o=document.createTextNode(this.text);this.res.appendChild(o),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 i=document.createTextNode(this.text);this.res.appendChild(i),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 a=document.createTextNode(this.text);this.res.appendChild(a),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),void 0!==t.radius&&(this.res.style.borderRadius=t.radius),this}},{key:"setPref",value:function(t){this.preffersId=t}},{key:"setClass",value:function(t){this.class=t}},{key:"setTags",value:function(t){this.openTag=t.open,this.closeTag=t.close}},{key:"chainReact",value:function(e,r,n){var o=this;this.ap=!1,this.cta=0,this.once=!1;var i,a=u(e);try{for(a.s();!(i=a.n()).done;){var s=i.value;s.range||(s.range=["0px","999999px"])}}catch(t){a.e(t)}finally{a.f()}e.sort(function(t,e){return parseInt(t.range[0])-parseInt(e.range[0])});var l=function(i){var a=t.viewportWidth(),s=[],l=[];o.resCopy=o.res,o.storedQueries=e.map(function(t){return t.target}).filter(function(t){return null!=t});var d,f=u(e);try{for(f.s();!(d=f.n()).done;){var p=d.value;o.counterIndex++;var h=c(p.range,2),y=h[0],m=h[1],b=parseInt(y),v=parseInt(m),g=!0;if(p.target){g=!1;for(var w=0;w<p.target.length;w++)p.target[w]===r&&(g=!0)}a>=b&&a<=v&&g&&(s.push(p.log),l.push(p),p.op&&p.op.margin&&(o.useMargin=p.op.margin))}}catch(t){f.e(t)}finally{f.f()}if(n&&!n.includes("background")&&(o.res.style.background="",o.res.style.backgroundColor=""),o.res.style.textShadow="",n&&!n.includes("border")&&(o.res.style.border=""),n&&!n.includes("margin")&&(o.res.style.margin=""),o.res.style["-webkit-text-fill-color"]="",o.res.style["-webkit-text-stroke-color"]="",o.res.style["-webkit-text-stroke-width"]="",o.res.style.filter="",o.options.background&&(o.res.style.background=o.options.background),s.includes("gradient"),(s.includes("gradient")||s.includes("shadow"))&&(o.res.style.position="relative"),s.includes("blast")){var _,k=l.filter(function(t){return"blast"===t.log})[0].op.color,O=null!==(_=l.filter(function(t){return"blast"===t.log})[0].op.width)&&void 0!==_?_:"1px";"FlexRowLayoutElement"===o.getType()||"LayoutWrapperElement"===o.getType()?(o.res.style.border="".concat("number"==typeof O?O+"px":O," solid orange"),o.res.style.display="inline-block","FlexRowLayoutElement"===o.getType()&&(o.res.style.display="flex"),o.res.style.boxSizing="border-box",o.res.style.transformOrigin="center",o.blastTarget=o.res):(o.text,o.res.style["-webkit-text-fill-color"]="transparent",o.res.style["-webkit-text-stroke-color"]=k,o.res.style["-webkit-text-stroke-width"]="".concat(O))}if(s.includes("filter")){var x=l.filter(function(t){return"filter"===t.log})[0].op.filter;o.res.style.filter=x}if(s.includes("background")&&(o.res.style.backgroundColor="green"),s.includes("gradient")&&("LayoutWrapperElement"!==o.getType()&&"FlexRowLayoutElement"!==o.getType()&&(o.res.style["-webkit-text-fill-color"]="transparent"),o.res.style.background=o.globalGradient,"LayoutWrapperElement"!==o.getType()&&"FlexRowLayoutElement"!==o.getType()&&(o.res.style["background-clip"]="text")),s.includes("shadow")){var S,j,E,C,P=o.options.shadow.op,T=null!==(S=P.steps)&&void 0!==S?S:1,A=null!==(j=P.colors)&&void 0!==j?j:["gray"],R=null!==(E=P.movements)&&void 0!==E?E:["3px","3px"],M=null!==(C=P.radius)&&void 0!==C?C:"3px";if(1===R.length&&(R=[R[0],R[0]]),"FlexRowLayoutElement"===o.getType()||"LayoutWrapperElement"===o.getType()){for(var I=[],D=0;D<T;D++){var L,W=null!==(L=A[D])&&void 0!==L?L:A[0],B=R[0],z=R[1];I.push("".concat(B," ").concat(z," ").concat(M," ").concat(W))}o.res.style.boxShadow=I.join(", ")}else{for(var N=[],q=0;q<T;q++){var F,U=null!==(F=A[q])&&void 0!==F?F:A[0],H=R[0],K=R[1];N.push("drop-shadow(".concat(H," ").concat(K," ").concat(M," ").concat(U,")"))}o.res.style.filter=N.join(" ")}}if(s.includes("margin"))for(w=0;w<e.length;w++)if(e[w].op){var J=e[w].op.offsets;J&&void 0!==o.index&&(o.res.style.margin=J[Number(o.index)]+"px")}if(s.includes("spana")||s.includes("span")){var $=document.createElement("div");if($.setAttribute("id","oroa"),Object.assign($.style,{position:"absolute",inset:"0",background:"linear-gradient(90deg, rgb(52,152,219), rgb(26,188,156))",WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent",pointerEvents:"none"}),o.res&&o.res.querySelector("span"))return;o.res=o.resCopy,o.res.textContent="",o.options.span&&(Array.isArray(o.options.span)?o.options.span:[o.options.span]).forEach(function(t){if(t.op&&"span"===t.op.name&&Array.isArray(t.op.parts)){var e=0,r=o.prevText||"";if(t.op.parts.forEach(function(t){var n=t.text,i=t.style||{};if(e<r.length){var a=r.indexOf(n,e);if(a>e){var s=r.substring(e,a);o.res.appendChild(new o.constructor(s).setup({type:"span",id:i.id,animation:i.animation}).set({}).render())}e=a+n.length}var l=new o.constructor(n).setup({type:"span",id:i.id,animation:i.animation}).set(i).render();o.res.appendChild(l)}),e<r.length){var n=r.substring(e);o.res.appendChild(new o.constructor(n).setup({type:"span"}).set({}).render())}}})}else{var G=new o.constructor(o.prevText).set({}).render();o.prevText&&o.prevText.length>0&&i&&o.res.appendChild(G)}if(s.includes("animation")){if(o.options.animation&&!o.hasAnimated&&!o.options.animation.op.fireAt){o.hasAnimated=!0;var V=o.options.animation.op;o._on(window,"sidebar:open",function(){o.res.animate(V.keyframesOpen,V.openOptions)}),o._on(window,"sidebar:closed",function(){o.res.animate(V.keyframesClose,V.closeOptions)}),o.res.animate(V.keyframesClose,{duration:0,fill:"forwards"}),o.openTag&&o.closeTag&&(o._on(window,o.openTag,function(){o.res.animate(V.keyframesOpen,V.openOptions)}),o._on(window,o.closeTag,function(){o.res.animate(V.keyframesClose,V.closeOptions)}))}if(o.options.animation&&o.options.animation.op.fireAt&&o.options.animation.op.fireAt.endsWith("px")){var Q=o.options.animation.op;o.res.animate(Q.keyframesClose,{duration:0,fill:"forwards"});var X=function(){window.scrollY>parseFloat(Q.fireAt)&&(o.res.animate(Q.keyframesOpen,Q.openOptions),window.removeEventListener("scroll",X))};o._on(window,"scroll",X)}if(o.options.animation&&"inview"===o.options.animation.op.fireAt){var Y=o.options.animation.op;o.res.animate(Y.keyframesClose,{duration:0,fill:"forwards"});var Z=!1,tt=new IntersectionObserver(function(t,e){t.forEach(function(t){t.isIntersecting&&!Z&&(Z=!0,o.res.animate(Y.keyframesOpen,Y.openOptions),e.disconnect())})});tt.observe(o.res),o._track(function(){return tt.disconnect()})}}};this.options.animation||this._on(window,"resize",function(){return l()}),l()}},{key:"maxWidth",value:function(t){return this.res.style.maxWidth=t,this}},{key:"removeQuotesFromFirstWord",value:function(t){return t.replace((0,l._H)(),"$1:")}}],n=[{key:"viewportWidth",value:function(){if("undefined"==typeof window)return 0;var t=window.visualViewport;return t&&"number"==typeof t.width?t.width:window.innerWidth}}],r&&h(e.prototype,r),n&&h(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,r,n}()},2387:(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 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,i(n.key),n)}}function i(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 s(t){return s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},s(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,{C:()=>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=s(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||[],s(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.navContent.style.alignItems="center",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&&l(t,e)}(e,t),r=e,(i=[{key:"set",value:function(t){return this.obj=t,this.setStyles(t),t.background&&(this.res.style.backgroundColor=t.background),t.brand&&this.setBrand(t.brand),t.radius&&(this.res.style.borderRadius=t.radius),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.maxHeight&&(this.res.style.maxHeight=t.maxHeight),t.hamburgerColour&&(this.hamburgerColour=t.hamburgerColour),this}},{key:"setStyles",value:function(){var t;this.navbar.style.display="flex",this.navbar.style.flexDirection="column",this.navbar.style.padding="1rem",this.navbar.style.backgroundColor=null!==(t=this.obj.background)&&void 0!==t?t:"#333",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 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(){var t=this.items.map(function(t){return t.toCode()}).flatMap(function(t){return t});return"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}}])&&o(r.prototype,i),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,i}(r(2332).y)},2588:(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 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,i(n.key),n)}}function i(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 s(t){return s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},s(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=s(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||[],s(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,i=[{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.res=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.commonMethods(t),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)}}],i&&o(r.prototype,i),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,i}(r(2332).y);"undefined"!=typeof window&&(window.Picker=c)},2689:(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 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,i(n.key),n)}}function i(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 s(t){return s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},s(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,{C:()=>c});var c=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=s(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||[],s(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&&l(t,e)}(e,t),r=e,(i=[{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=t.radius),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)}}])&&o(r.prototype,i),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,i}(r(2332).y)},2789:(t,e,r)=>{r.d(e,{C:()=>f});var n=r(2332),o=r(1382);function i(t){return i="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},i(t)}function a(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"!=i(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==i(e)?e:e+""}function l(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(l=function(){return!!t})()}function c(){return c="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,r){var n=function(t,e){for(;!{}.hasOwnProperty.call(t,e)&&null!==(t=u(t)););return t}(t,e);if(n){var o=Object.getOwnPropertyDescriptor(n,e);return o.get?o.get.call(arguments.length<3?t:r):o.value}},c.apply(null,arguments)}function u(t){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},u(t)}function d(t,e){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},d(t,e)}var f=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=u(e),function(t,e){if(e&&("object"==i(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,l()?Reflect.construct(e,r||[],u(t).constructor):e.apply(t,r))}(this,e)).res=document.createElement("code"),t.pre=document.createElement("pre"),t.res.style.background="#18232e",t.res.style.display="block",t.res.style.width="auto",t.res.style.height="auto",t.res.style.borderRadius="1rem",t.pre.appendChild(t.res),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&&d(t,e)}(e,t),r=e,n=[{key:"getType",value:function(){return"LayoutWrapperElement"}},{key:"toCode",value:function(){var t=this.options;Object.keys(t).forEach(function(e){return void 0===t[e]&&delete t[e]});var e=JSON.stringify(t,null,2).replace((0,o._H)(),"$1:").replace(/"([^"]+)"/g,function(t,e){return e.includes("\n")||e.includes("'")||e.includes('"')?"`"+e.replace(/`/g,"\\`")+"`":'"'.concat(e,'"')});return"new Code().set(".concat(e,")")}},{key:"callReact",value:function(t){this.options=t;var r,n,o,a=[],s=t.transform&&"object"===i(t.transform);if(t.stroke||t.gradient||t.span||t.backgroundOp||t.layout||t.shadow||t.animation||t.filtera||s){t.gradient&&(this.globalGradient=t.gradient.op.gradient,"radial"===t.gradient.op.direction&&(this.globalGradient="radial-gradient(circle at center, orange, green)")),t.stroke&&(r=e,n=this,"function"==typeof(o=c(u(1&3?r.prototype:r),"setAny",n))?function(t){return o.apply(n,t)}:o)([{globalBlast:"".concat(t.stroke.op.width," ").concat(t.stroke.op.color)}]),t.span&&(t.span.prevText=this.text);var l=[t.stroke,t.gradient,t.animation,t.span,t.backgroundOp,t.layout,t.marginOp,t.shadow,t.animation,t.filtera,s?t.transform:void 0];l=l.filter(function(t){return null!=t});for(var d=0;d<l.length;d++)a.push({range:l[d].range,log:l[d].op.name,target:l[d].target,op:l[d].op});var f=[];t.borderObj&&f.push("border"),t.background&&f.push("background"),t.mar&&f.push("margin"),t.animation&&f.push("animation"),t.span&&f.push("span"),this.chainReact(a,t.id,f)}}},{key:"set",value:function(t){return t.code&&(this.pre.children[0].innerHTML=t.code),t.class&&this.pre.children[0].setAttribute("class","".concat(t.class)),t.pad&&this.pad(t.pad),t.mar&&this.mar(t.mar),t.respad&&this.respad(t.respad),t.resmar&&this.resmar(t.resmar),t.resprop&&this.resprop(t.resprop),t.width&&(this.res.style.width=t.width),t.background&&(this.res.style.background=t.background),t.color&&(this.res.style.color=t.color),t.borderRadius&&(this.res.style.background=t.borderRadius),t.borderObj&&(this.res.style.border="".concat(t.borderObj.width," solid ").concat(t.borderObj.color),this.res.style.borderRadius="".concat(t.borderObj.radius)),this.callReact(t),this}},{key:"render",value:function(t){return t&&document.querySelector(t).appendChild(this.pre),this.res}}],n&&a(r.prototype,n),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n}(n.y)},3014:(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 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,i(n.key),n)}}function i(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 s(t){return s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},s(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,{A:()=>c});var c=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=s(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||[],s(t).constructor):e.apply(t,r))}(this,e)).text=t,r.res=null,r.valid=!1,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&&l(t,e)}(e,t),r=e,i=[{key:"setup",value:function(){var t=document.createElement("input");return this.res=t,this.res.style.padding=0,this.res.style.margin=0,this.res.style.padding=".4rem .75rem",this.res.style.fontSize="1rem",window.matchMedia("(max-device-width: 415px)").matches&&(this.res.style.width="100%"),this}},{key:"set",value:function(t){var e;return this.options=t,this.res.setAttribute("type",null!==(e=t.type)&&void 0!==e?e:"text"),t.placeholder&&(this.res.placeholder=t.placeholder),t.name&&this.res.setAttribute("name",t.name),t.id&&this.res.setAttribute("id",t.id),t.required&&this.res.setAttribute("required",""),t.pad&&this.pad(t.pad),t.mar&&this.mar(t.mar),t.maxWidth&&(this.res.style.maxWidth=t.maxWidth),t.exact&&(this.res.style.fontSize=t.exact),t.radius&&this.round(t.radius),t.color&&(this.res.style.color=t.color),t.background&&(this.res.style.background=t.background),t.font&&(this.res.style.fontFamily=t.font),t.weight&&(this.res.style.fontWeight=t.weight),t.bold&&(this.res.style.fontWeight="bold"),t.theme&&this.theme(t.theme),this.commonMethods(t),this}},{key:"toCode",value:function(){var t=JSON.stringify(this.options,null,4);return["new TextField().set(".concat(t,")")]}},{key:"setValid",value:function(t,e){return this.res.style.border=t?"6px solid green":"6px solid red",0===e.length&&(this.res.style.border="none"),this}},{key:"auto",value:function(){var t=this,e=function(){window.matchMedia("(max-device-width: 415px)").matches?t.res.style.fontSize="3rem":t.res.style.fontSize="1rem"};return e(),window.addEventListener("resize",e),this}},{key:"value",value:function(t){return this.res.setAttribute("value",t),this}},{key:"password",value:function(){return this.res.setAttribute("type","password"),this}},{key:"number",value:function(){return this.res.setAttribute("type","number"),this}},{key:"process",value:function(t){return this.res.value}},{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:"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:"placeholder",value:function(t){return this.res.setAttribute("placeholder",t),this}},{key:"border",value:function(t,e){return this.res.style.border="".concat(e,"px solid ").concat(t),this}},{key:"onChange",value:function(t){var e=this;return this.res.value,this.res.addEventListener("input",function(r){t(e.res.value)}),this}},{key:"render",value:function(t){return t?(document.querySelector(t).appendChild(this.res),this.res):this.res}}],i&&o(r.prototype,i),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,i}(r(2332).y)},3050:(t,e,r)=>{r.d(e,{Y:()=>h});var n=r(2332),o=r(1382);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,o,i,a,s=[],l=!0,c=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==e);l=!0);}catch(t){c=!0,o=t}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(t,e)||function(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}}(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){(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 s(t){return s="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},s(t)}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"!=s(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=s(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==s(e)?e:e+""}function u(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(u=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 o=Object.getOwnPropertyDescriptor(n,e);return o.get?o.get.call(arguments.length<3?t:r):o.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 p(t,e){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},p(t,e)}var h=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"==s(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,u()?Reflect.construct(e,r||[],f(t).constructor):e.apply(t,r))}(this,e)).code=[],n.saveEl=r,n.frs=t,n.res=null,n.setup(),n.responsive(),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&&p(t,e)}(e,t),r=e,n=[{key:"getType",value:function(){return"FlexRowLayoutElement"}},{key:"set",value:function(t){this.options=t;var e=t;return e.onTap&&this.onTap(e.onTap),e.id&&this.res.setAttribute("id",e.id),e.position&&(this.res.style.position=e.position),void 0!==e.top&&(this.res.style.top=e.top),t.id&&this.res.setAttribute("id",t.id),this.commonMethods(e),t.padding&&this.pad([{a:t.padding}]),t.background&&(this.res.style.backgroundColor="#ecf0f1",this.res.style.cornerRadius="#3rem"),t.alignTo&&(this.res.style.justifyContent=t.alignTo),t.background&&(this.res.style.backgroundColor=t.background),t.justify&&(this.res.style.justifyContent=t.justify),t.border&&("top"===t.border[0]&&(this.res.style.borderTop="".concat(t.border[1]," solid white")),"all"===t.border[0]&&(this.res.style.border="".concat(t.border[1]," solid orange"))),t.borderObj&&(this.borderObj(t.borderObj),JSON.stringify(t.borderObj)),t.width&&(this.res.style.width=t.width),t.height&&(this.res.style.height=t.height),t.gap&&(this.res.style.gap=t.gap),t.align&&(JSON.stringify(t.align),this.res.style.alignItems="flex-start",this.res.style.alignItems="flex-start"),t.wrap&&this.wrap(),t.alignIts&&(JSON.stringify(t.alignIts),this.res.style.alignItems="flex-start"),t.owrap&&this.onlyWrap(),null!=t.owrap&&!1===t.owrap&&(this.res.style.flexWrap="nowrap",this.res.style.background="yellow"),t.toColumn&&this.deprecatedOption("toColumn","colat"),t.column&&this.makeCol(),t.colat&&t.colat&&this.toColumnAt(t.colat),t.align&&this.makeJustify(t.justify),t.justify&&this.makeAlign(t.justify),"flex-start"===t.justifo&&(this.res.style.justifyContent="flex-start"),t.radius&&(this.res.style.borderRadius=t.radius),t.aligns&&this.aligns(t.aligns),this.callReact(e),!0===t.center&&(this.res.style.marginLeft="auto",this.res.style.marginRight="auto"),this}},{key:"callReact",value:function(t){this.options=t;var r,n,o,i=[],a=t.transform&&"object"===s(t.transform);if(t.stroke||t.gradient||t.span||t.backgroundOp||t.layout||t.shadow||t.animation||t.filtera||a){t.gradient&&(this.globalGradient=t.gradient.op.gradient,"radial"===t.gradient.op.direction&&(this.globalGradient="radial-gradient(circle at center, orange, green)")),t.stroke&&(r=e,n=this,"function"==typeof(o=d(f(1&3?r.prototype:r),"setAny",n))?function(t){return o.apply(n,t)}:o)([{globalBlast:"".concat(t.stroke.op.width," ").concat(t.stroke.op.color)}]),t.span&&(t.span.prevText=this.text);var l=[t.stroke,t.gradient,t.animation,t.span,t.backgroundOp,t.layout,t.marginOp,t.shadow,t.animation,t.filtera,a?t.transform:void 0];l=l.filter(function(t){return null!=t});for(var c=0;c<l.length;c++)i.push({range:l[c].range,log:l[c].op.name,target:l[c].target,op:l[c].op});var u=[];t.borderObj&&u.push("border"),t.background&&u.push("background"),t.mar&&u.push("margin"),t.animation&&u.push("animation"),t.span&&u.push("span"),this.chainReact(i,t.id,u)}}},{key:"toColumnAt",value:function(t){var e=this;if(!this.columnAlways){var r=function(){var r=window.matchMedia("(max-width: ".concat(t,")")),n=window.matchMedia("(max-device-width: 415px)");r.matches||n.matches?e.res.style.flexDirection="column":e.res.style.flexDirection="row"};r(),window.addEventListener("resize",r)}return this}},{key:"onlyWrap",value:function(){return this.res.style.flexWrap="wrap",this}},{key:"wrap",value:function(){return this.res.style.flexWrap="wrap",this.res.style.justifyContent="space-between",this}},{key:"aligns",value:function(t){return"start"===t&&(this.res.style.alignItems="flex-start"),"end"===t&&(this.res.style.alignItems="flex-end"),"center"===t&&(this.res.style.alignItems="center"),this}},{key:"toCode",value:function(){for(var t={},e=0,r=Object.entries(this.options||{});e<r.length;e++){var n=i(r[e],2),a=n[0],s=n[1];null!=s&&""!==s&&(t[a]=s)}var l=JSON.stringify(t,null,4).replace((0,o._H)(),"$1:").replace(/"([^"]*)"/g,function(t,e){return e.includes("\n")?"`"+e.replace(/`/g,"\\`")+"`":'"'.concat(e,'"')}),c=(this.items||[]).map(function(t){return null!=t&&t.toCode?t.toCode():"/* element */"}).join(",\n ");return[["new FlexRow().set(".concat(l,")"),c?".items([\n ".concat(c,"\n])"):""].join("")]}},{key:"cornerRadius",value:function(t){return this.res.style.borderRadius=t,this}},{key:"makeJustify",value:function(t){return"start"===t&&(this.res.style.justifyContent="flex-start"),this}},{key:"makeAlign",value:function(t){return"center"===t?this.res.style.alignItems="center":this.res.style.justifyContent=t,this}},{key:"makeCol",value:function(){return this.res.style.flexDirection="column",this}},{key:"setClass",value:function(t){return this.res.setAttribute("class",t),this}},{key:"setup",value:function(){var t=document.createElement("div");return t.style.display="flex",t.style.justifyContent="space-around",t.style.alignItems="center",this.res=t,this}},{key:"frame",value:function(t){return this.res.style.width=t.width,this.res.style.height=t.height,window.matchMedia("(max-device-width: 415px)").matches&&t.mobile&&(this.res.style.width=t.mobile),this}},{key:"radius",value:function(t){return this.res.style.borderRadius="".concat(t,"px"),this}},{key:"shadow",value:function(t,e,r){return this.res.style.boxShadow="0px 1px 10px 0px rgb(145 145 145)",this}},{key:"items",value:function(t){this.els=t,this.items=t;for(var e=0;e<t.length;e++){if(null!=t[e])if(t[e].render instanceof Function){var r=t[e].render();this.res.appendChild(r)}else this.res.appendChild(t[e]);if(null!=t[e]&&t[e].render instanceof Function){var n=t[e].render();this.res.appendChild(n),void 0!==t[e].toCode&&this.code.push(t[e].toCode().flatMap(function(t){return t}))}}return this}},{key:"responsive",value:function(t){var e=this,r=window.matchMedia("(max-device-width: 415px)");return window.innerWidth<t||r.matches?this.res.style.gridTemplateColumns="1fr":this.res.style.gridTemplateColumns="1fr 1fr",window.addEventListener("resize",function(){window.innerWidth<t||r.matches?e.res.style.gridTemplateColumns="1fr":e.res.style.gridTemplateColumns="1fr 1fr"}),this}},{key:"render",value:function(t){if(!t)return this.res;document.querySelector(t).appendChild(this.res)}}],n&&l(r.prototype,n),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n}(n.y)},3180:(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 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,i(n.key),n)}}function i(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(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)}function s(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(s=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,{h:()=>u});var u=function(t){function e(t){var r,n,o,i;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),n=this,o=l(o=e),(r=a(n,s()?Reflect.construct(o,[],l(n).constructor):o.apply(n,i)))._noTheme=!0;var c=document.createElement("div");return c.style.flex="1",r.res=c,r.res.setAttribute("class","innerHider"),a(r,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&&c(t,e)}(e,t),r=e,(n=[{key:"toCode",value:function(){return["new Spacer(".concat(this.hide,")")]}},{key:"render",value:function(){return this.res}}])&&o(r.prototype,n),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n}(r(2332).y)},3243:(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 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,i(n.key),n)}}function i(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 s(t){return s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},s(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,{a:()=>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=s(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||[],s(t).constructor):e.apply(t,r))}(this,e))._noTheme=!0,t.el=null,t.obj=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,(i=[{key:"set",value:function(t){var e=document.createElement("div");return e.style.width="100vw",e.style.height="100vh",e.style.backgroundColor=t.background,e.style.zIndex="1",e.style.position="absolute",e.style.overflowY="scroll",this.obj=t,this.res=e,t.close&&this.close(),this}},{key:"close",value:function(){return this.res.style.display="none",this}},{key:"show",value:function(){return this.res.style.display="block",this}},{key:"add",value:function(t){var e=document.createElement("div");e.style.width=this.obj.width,e.style.height="auto",e.style.marginLeft="auto",e.style.marginRight="auto",e.style.backgroundColor="white",window.matchMedia("(max-device-width: 415px)").matches&&(e.style.marginTop="200px",e.style.width="100%");for(var r=0;r<t.length;r++)e.appendChild(t[r].render());return this.res.appendChild(e),this}},{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)}}])&&o(r.prototype,i),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,i}(r(2332).y)},3257:(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 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,i(n.key),n)}}function i(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 s(t){return s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},s(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=s(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||[],s(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,(i=[{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 o=document.createElement("input");return"textarea"===t.type&&(o=document.createElement("textarea")),o.style.position="relative",o.placeholder=t.title,o.style.fontSize="1rem",o.style.padding=".4rem .75rem",e.appendChild(r),e.appendChild(o),this.res=e,t.mar&&this.mar(t.mar),t.pad&&this.pad(t.pad),o.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",o.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)}),o.addEventListener("focusout",function(){r.style.transform="scale(1.0)",o.placeholder=t.title,r.style.opacity="0.0"}),t.name&&o.setAttribute("name",t.name),window.matchMedia("(max-device-width: 415px)").matches&&(o.style.width="100%",e.style.width="100%"),o.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)}}])&&o(r.prototype,i),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,i}(r(2332).y);"undefined"!=typeof window&&(window.FloatingInput=c)},3420:(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 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,i(n.key),n)}}function i(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 s(t){return s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},s(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,{f:()=>c});var c=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=s(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||[],s(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&&l(t,e)}(e,t),r=e,(i=[{key:"setup",value:function(){this.res=document.createElement("audio"),this.res.setAttribute("src",this.url),this.res.setAttribute("controls","controls")}},{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)}}])&&o(r.prototype,i),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,i}(r(2332).y)},3440:(t,e,r)=>{r.d(e,{X:()=>h});var n=r(2332),o=r(1382);function i(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(i=function(){return!!t})()}function a(t){return a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},a(t)}function s(t,e){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},s(t,e)}function l(t){return l="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},l(t)}function c(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(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,f(n.key),n)}}function d(t,e,r){return e&&u(t.prototype,e),r&&u(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function f(t){var e=function(t){if("object"!=l(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=l(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==l(e)?e:e+""}var p=function(){return d(function t(e,r){c(this,t),this.obj=e||{},this.items=r||[]},[{key:"render",value:function(){var t=document.createElement("div");t.style.display="flex",t.style.width="100%",t.style.justifyContent="space-around",t.setAttribute("id","innerItemsWrapper");var e=window.matchMedia("(max-device-width: 415px)"),r=window.matchMedia("(max-width: 600px)");(e.matches||r.matches)&&(t.style.marginTop="3rem");for(var n=0;n<this.items.length;n++){var o=this.items[n];t.appendChild(o.render())}var i=document.createElement("div");return i.style.width=this.obj.isSide?"333px":"100%",i.style.background=this.obj.background||"white",i.style.display="flex",i.style.justifyContent="center",i.style.alignItems="center",i.style.height="100%",i.setAttribute("id","outerItemsWrapper"),i.appendChild(t),this.obj.customStyle&&(t.style.width="auto",t.style.top="0rem",t.style.borderRadius="1rem",t.style.background=this.obj.background||"white",t.style.margin="1rem",t.style.position="absolute",t.style.opacity=.8),i}}])}(),h=function(t){function e(t){var r,n,o,s;return c(this,e),r=function(t,e,r){return e=a(e),function(t,e){if(e&&("object"==l(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,i()?Reflect.construct(e,r||[],a(t).constructor):e.apply(t,r))}(this,e),n=r,s=function(){var t,e=window.matchMedia("(max-device-width: 415px)"),n=document.createElement("button");if(n.setAttribute("id","hamburger"),n.setAttribute("type","button"),n.setAttribute("aria-label","Menu"),n.setAttribute("aria-expanded","false"),n.setAttribute("aria-controls","innerItemsWrapper"),n.style.border="none",n.style.fontWeight="bold",n.style.position="absolute",n.style.color=null!==(t=r.hamburgerColour)&&void 0!==t?t:"orange",n.style.backgroundColor="transparent",n.style.fontSize=e.matches?"2.1em":"2em",r.hamburgerInset){var o=String(r.hamburgerInset).trim().split(/\s+/);n.style.padding=o.length>1?"".concat(o[0]," ").concat(o[1]):"".concat(o[0]," ").concat(o[0])}var i=document.createTextNode(r.symbol?r.symbol:"☰");return n.appendChild(i),n.style.marginLeft="auto",r.isShown=!1,n.addEventListener("click",function(){r.isShown=!r.isShown,n.setAttribute("aria-expanded",String(r.isShown)),r.hasAnimatedToWide=!1;var t=r.items[0].options;if(t&&t.animation){var e=t.animation.op,o=r.res.children[0].children[1].children[0];if(e){if(r.isShown)for(var i=0;i<o.children.length;i++)o.children[i].animate(e.keyframesClose,{duration:1,fill:"forwards",delay:0}).onfinish=function(){o.parentElement.style.display="block"};else o.parentElement.style.display="none";for(i=0;i<o.children.length;i++){var a=o.children[i];a.animate(e.keyframesClose,{duration:1,fill:"forwards",delay:0}),r.isShown?a.animate(e.keyframesOpen,e.openOptions):a.animate(e.keyframesClose,e.closeOptions)}}}else r.isShown?innerItemsWrapper.parentElement.style.display="block":innerItemsWrapper.parentElement.style.display="none"}),n},(o=f(o="addHamburger"))in n?Object.defineProperty(n,o,{value:s,enumerable:!0,configurable:!0,writable:!0}):n[o]=s,r.titleText="",r.hasHamburger=!1,r.code=[],r.attributes={},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&&s(t,e)}(e,t),d(e,[{key:"toCode",value:function(){var t="new UINavBar()";return Object.keys(this.attributes).length>0?t+=".setup(".concat((0,o.sy)(this.attributes,2),")"):t+=".setup({})",t+=".items([\n",t+=this.items.map(function(t){return t.toCode().join("").trim()}).join(",\n"),[t+="\n])"]}},{key:"styled",value:function(t){return this.setup(t),this.styles=t,this}},{key:"setup",value:function(t){this.obj=t,this.obj.isSide||(this.obj.animate=!1),this.attributes=t;var e=document.createElement("div");e.setAttribute("id","sars"),e.style.padding=0,e.style.margin=0;var r=document.createElement("div");return r.setAttribute("id","covid"),r.style.position="absolute",r.style.width="100%",r.style.zIndex=1,r.style.alignItems="flex-start",document.createElement("div").style.position="absolute",r.style.margin="20px",r.style.display="flex",r.style.alignItems="flex-end",r.style.margin=0,r.style.padding=0,r.style.margin=0,e.appendChild(r),this.addCloseButton=!1,this.res=e,t.background&&this.background({color:t.background}),t.openColor&&(this.openColor=t.openColor),t.sticky&&this.sticky(),t.pad&&this.pad(t.pad),t.hamburgerColour&&(this.hamburgerColour=t.hamburgerColour),t.hamburgerInset&&(this.hamburgerInset=t.hamburgerInset),t.mobileSize&&(this.mobileSize=t.mobileSize),t.desktopSize&&(this.desktopSize=t.desktopSize),t.height&&(this.res.children[0].style.height=t.height),this._ui={gap:t.gap,justify:t.justify,alignItems:t.alignItems,barPad:t.barPad,maxWidth:t.maxWidth,borderBottom:t.borderBottom},this.res.setAttribute("role","navigation"),this.res.setAttribute("aria-label",t.ariaLabel||"Primary"),this}},{key:"items",value:function(t){this.items=t;var e=["Link","Image","Spacer","Dropdown"].some(function(e){return t[0].__proto__.constructor.toString().startsWith("class ".concat(e))});this.itemCount=t.length;var r=new p(this.obj,this.items).render();this.res.children[0].appendChild(r);var n=this.res.children[0].children[0].children[0],o=this.items[0].options;if(o&&o.animation){var i=o.animation.op;if(i){var a=window.matchMedia("(max-device-width: 415px)"),s=window.matchMedia("(max-width: 600px)");if(a.matches||s.matches){var l={duration:1,fill:"forwards",delay:1};for(c=0;c<n.children.length;c++)n.children[c].animate(i.keyframesClose,l)}else for(var c=0;c<n.children.length;c++)n.children[c].animate(i.keyframesClose,{duration:1,fill:"forwards",delay:1}),n.children[c].animate(i.keyframesOpen,i.openOptions)}}if(this.adjust(),!e){this.itemCount=t.length;var u=document.createElement("div");for(u.style.backgroundColor="orange",c=0;c<t.length;c++){var d=t[c];if(d.logo){var f=new Image(d.logo).width("100px"),h=document.createElement("div");h.style.flex="1",h.style.height=23;var y=document.createElement("div");y.setAttribute("id","WR"),y.style.display="flex",y.style.flexDirection="row",y.appendChild(f.render()),this.res.children[0].appendChild(f.render()),this.obj.spacing&&this.res.children[0].appendChild(h)}if(d.logo&&(this.allowPad=!0),d.logo&&this.obj.spacing&&(this.res.children[0].children[0].style.marginLeft=this.obj.spacing.sides,this.res.children[0].children[0].style.marginRight=this.obj.spacing.sides),d.title){var m=void 0;m=this.allowPad?d.type?new Dropdown(d.items,d.title):new Link(d.title,d.url).pad([{lr:"1em"}]):d.type?new Link("DRPA",d.url):new Link(d.title,d.url),u.appendChild(m.render())}}this.res.children[0].appendChild(u),this.adjust()}var b=this.addHamburger();this.itemCount,this.obj.spacing,b.style.zIndex=1;var v=this.res.children[0];return v&&!v.querySelector("#hamburger")&&v.insertBefore(b,v.firstChild),this}},{key:"instance",value:function(){return this.res.children[0]}},{key:"sticky",value:function(){return this.res.style.position="sticky",this.res.style.top=this.res.style.top||"0px",this.res.style.zIndex=this.res.style.zIndex||50,this._sticky=!0,this}},{key:"font",value:function(t){for(var e=0;e<this.res.children[0].children;e++)this.res.children[0].children[e].style.fontFamily=t;return this}},{key:"background",value:function(t){return t.background?(this.res.children[0].style.backgroundColor=t.color,this.res.children[0].style.opacity=t.opacity,this):(this.res.children[0].style.backgroundColor="transparent",this)}},{key:"adjust",value:function(t){var e=this,r=window.matchMedia("(max-width: 600px)"),n=window.matchMedia("(max-device-width: 415px)"),o=function(){e.isShown=!1,e.res.children[0],function(){for(var t=0;t<e.res.children[0].children.length;t++){var r=e.res.children[0].children[t];r.style.fontSize=n.matches?e.mobileSize?e.mobileSize:"1.2em":e.desktopSize?e.desktopSize:"1em","☰"===r.textContent&&(r.style.fontSize="2em")}}(),e.res.children[0].style.flexDirection="column";for(var t=0;t<e.res.children[0].children.length;t++)"☰"==e.res.children[0].children[t].textContent||e.res.children[0].children[t].textContent==e.keepItem?(e.res.children[0].children[t].id,e.res.children[0].children[t].style.display="flex"):e.res.children[0].children[t].style.display="none"};if(this.obj.isSide)o();else{var i=this.res.children[1];null!=i&&(i.style.background="yellow"),r.matches||n.matches?o():function(){e.res.children[0];for(var t=0;t<e.res.children[0].children.length;t++){var r=e.res.children[0].children[t];r.style.marginTop="0em",r.id,r.style.display="flex",r.textContent===e.titleText&&e.titleText.length>0&&(r.style.fontSize="2em")}var n=e.items[0].options;if(n&&n.animation){var o=n.animation.op,i=e.res.children[0].children[1].children[0];if(i.style.marginTop="0",o&&!e.hasAnimatedToWide)for(e.hasAnimatedToWide=!0,t=0;t<i.children.length;t++)i.children[t].animate(o.keyframesOpen,o.openOptions)}}()}return this}},{key:"render",value:function(t){var e=this,r=function(){var t=window.matchMedia("(max-width: 600px)"),r=window.matchMedia("(max-device-width: 415px)"),n=e.res.querySelector("#outerItemsWrapper")||e.res.children[0].children[1],o=n&&(n.querySelector("#innerItemsWrapper")||n.children[0]),i=e._ui||{};if(o&&(i.gap&&(o.style.gap=i.gap),i.justify&&(o.style.justifyContent=i.justify),i.alignItems&&(o.style.alignItems=i.alignItems),i.barPad&&(o.style.padding=i.barPad),i.maxWidth&&(o.style.maxWidth=i.maxWidth,o.style.marginLeft="auto",o.style.marginRight="auto")),n&&i.borderBottom&&(n.style.borderBottom=i.borderBottom),r.matches&&(o.style.position="relative"),(t.matches||r.matches)&&null!=o?o.style.flexDirection="column":null==o||e.obj.isSide||(o.style.flexDirection="row"),!e.obj.isSide&&!t.matches&&!r.matches){var a=e.res.querySelector("#hamburger");a&&(a.style.display="none")}e.obj.isSide&&(o.style.flexDirection="column"),e.obj.isSide||t.matches||(e.res.children[0].style.position="relative",n.style.transform="translateY(0px)"),!e.obj.isSide&&t.matches,e.obj.customStyle&&(e.res.children[0].style.marginTop="1rem",e.res.children[0].style.position="absolute",e.res.children[0].style.borderRadius="1rem",n.style.borderRadius="1rem"),e.obj.radius&&(e.res.children[0].style.borderRadius="1rem",n.style.borderRadius="1rem")};return window.addEventListener("resize",function(){return r()}),r(),t?(document.querySelector(t).style.padding=0,document.querySelector(t).style.margin=0,document.querySelector(t).appendChild(this.res),this.res):this.res}}])}(n.y)},3665:(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 o(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}}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 a(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 l(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(l=function(){return!!t})()}function c(t){return c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},c(t)}function u(t,e){return u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},u(t,e)}r.d(e,{m:()=>d});var d=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=c(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,l()?Reflect.construct(e,r||[],c(t).constructor):e.apply(t,r))}(this,e)).res=document.createElement("div"),t.res.style.position="relative",t.toggleWrap=document.createElement("div"),t.toggleWrap.style.zIndex=9999,t.toggleWrap.style.borderRadius="0.3rem",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="fixed",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.width="250px",t.contentWrap.style.display="none",t.contentWrap.style.zIndex=99999,document.addEventListener("DOMContentLoaded",function(){document.body.appendChild(t.contentWrap)}),document.body&&document.body.appendChild(t.contentWrap),t.styles={},t.children=[],t.isExpanded=!1,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&&u(t,e)}(e,t),r=e,s=[{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.radius&&(this.contentWrap.style.borderRadius=t.radius);var r=function(){var t=e.toggleWrap.getBoundingClientRect(),r=e.contentWrap.style.display,n=e.contentWrap.style.visibility;"none"===r&&(e.contentWrap.style.visibility="hidden",e.contentWrap.style.display="block");var o=e.contentWrap.getBoundingClientRect();"none"===r&&(e.contentWrap.style.display=r,e.contentWrap.style.visibility=n||"");var i=window.innerWidth,a=t.left+t.width/2-o.width/2;a<8&&(a=8),a+o.width>i-8&&(a=i-8-o.width),a<8&&(a=8),e.contentWrap.style.top=t.bottom+4+"px",e.contentWrap.style.left=a+"px"};this._positionContent=r;var n=function(){"none"!==e.contentWrap.style.display&&r()};if(window.addEventListener("resize",n),window.addEventListener("scroll",n,!0),t.behaviour){var o=t.behaviour;if("mouseover"===o||"mouseenter"===o){var i,a=function(){clearTimeout(i),e.contentWrap.style.display="block",r()},s=function(){i=setTimeout(function(){e.contentWrap.style.display="none"},200)};this.toggleWrap.addEventListener("mouseenter",a),this.toggleWrap.addEventListener("mouseleave",s),this.contentWrap.addEventListener("mouseenter",a),this.contentWrap.addEventListener("mouseleave",s),this.toggleWrap.addEventListener("click",function(t){t.stopPropagation(),"block"===e.contentWrap.style.display?e.contentWrap.style.display="none":(e.contentWrap.style.display="block",r())}),document.addEventListener("click",function(t){"block"!==e.contentWrap.style.display||e.contentWrap.contains(t.target)||e.toggleWrap.contains(t.target)||(e.contentWrap.style.display="none")})}else"click"===o?this.res.addEventListener("click",function(){e.toggle(),"block"===e.contentWrap.style.display&&r()}):this.res.addEventListener(o,function(){e.contentWrap.style.display="block",r()})}else this.res.addEventListener("click",function(){e.toggle(),"block"===e.contentWrap.style.display&&r()});return t.mar&&this.mar(t.mar),t.pad&&this.pad(t.pad),t.respad&&this.respad(t.respad),t.resmar&&this.resmar(t.resmar),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 i(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||o(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,o,i,a,s=[],l=!0,c=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==e);l=!0);}catch(t){c=!0,o=t}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(t,e)||o(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],i=e[1];return"string"==typeof i?"".concat(r,': "').concat(i,'"'):"object"===n(i)?"".concat(r,": ").concat(JSON.stringify(i)):"".concat(r,": ").concat(i)}).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}}],s&&a(r.prototype,s),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,s}(r(2332).y)},4550:(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 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,i(n.key),n)}}function i(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 s(t){return s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},s(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,{U:()=>c});var c=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=s(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||[],s(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&&l(t,e)}(e,t),r=e,(i=[{key:"set",value:function(t){return this.imageUrl=t.url,this.createCard(),t.useBrightness&&(this.useBrightness=!0),t.useBrightness&&"\n useBrightness: ".concat(this.useBrightness),t.pad&&this.pad(t.pad),t.mar&&this.mar(t.mar),t.inpad&&this.inpad(t.inpad),t.inpad&&"\n inpad: {".concat(t.inpad,"}"),t.font&&(this.res.style.fontFamily=t.font),t.inpad&&"\n font: ".concat(t.font),this.addListeners(),this}},{key:"inpad",value:function(t){return this.res.children[1].style.boxSizing="border-box",this.res.children[1].style.padding=t,this}},{key:"items",value:function(t){for(var e=0;e<t.length;e++)this.res.children[1].appendChild(t[e].render());return this}},{key:"createCard",value:function(){var t=document.createElement("div");t.style.display="grid",t.style.width="300px",t.style.height="400px",t.setAttribute("id","AAA");var e=document.createElement("div");e.style.gridArea="1/1",e.style.height="400px",e.style.borderRadius="15px",e.style.boxShadow="0 4px 8px 0 rgba(0,0,0,0.2)",e.style.overflow="hidden";var r=document.createElement("div");r.style.width="100%",r.style.height="100%",r.style.transition="0.9s",r.style.backgroundImage="url(".concat(this.imageUrl,")"),r.style.backgroundSize="cover",r.style.backgroundPostion="cover",r.style.backgroundRepeat="no-repeat",e.appendChild(r);var n=document.createElement("div");return n.style.gridArea="1/1",n.style.zIndex="1",t.appendChild(e),t.appendChild(n),this.res=t,this}},{key:"addListeners",value:function(){var t=this,e=this.res.children[0].children[0];return this.res.onmouseover=function(){e.style.transform="scale(1.3)",t.useBrightness&&(e.style.filter="brightness(31%)")},this.res.onmouseout=function(){e.style.transform="scale(1.0)",t.useBrightness&&(e.style.filter="brightness(100%)")},this}},{key:"render",value:function(t){if(!t)return this.res;this.options.id&&this.res.setAttribute("id",this.options.id),document.querySelector(t).appendChild(this.res)}}])&&o(r.prototype,i),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,i}(r(2332).y)},4617:(t,e,r)=>{function n(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){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 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,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+""}function s(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(s=function(){return!!t})()}function l(){return l="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,r){var n=function(t,e){for(;!{}.hasOwnProperty.call(t,e)&&null!==(t=c(t)););return t}(t,e);if(n){var o=Object.getOwnPropertyDescriptor(n,e);return o.get?o.get.call(arguments.length<3?t:r):o.value}},l.apply(null,arguments)}function c(t){return c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},c(t)}function u(t,e){return u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},u(t,e)}r.d(e,{e:()=>d});var d=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=c(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,s()?Reflect.construct(e,r||[],c(t).constructor):e.apply(t,r))}(this,e)).res=null,t.items=[],t.setup(),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&&u(t,e)}(e,t),r=e,a=[{key:"set",value:function(t){return this.options=t,t.pad&&this.pad(t.pad),t.mar&&this.mar(t.mar),this.commonMethods(t),this.callReact(t),this}},{key:"callReact",value:function(t){var r,n,i,a=[],s=t.transform&&"object"===o(t.transform);if(t.stroke||t.gradient||t.span||t.backgroundOp||t.layout||t.shadow||t.animation||t.filtera||s){t.gradient&&(this.globalGradient=t.gradient.op.gradient,"radial"===t.gradient.op.direction&&(this.globalGradient="radial-gradient(circle at center, orange, green)")),t.stroke&&(r=e,n=this,"function"==typeof(i=l(c(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)}]),t.span&&(t.span.prevText=this.text);var u=[t.stroke,t.gradient,t.animation,t.span,t.backgroundOp,t.layout,t.marginOp,t.shadow,t.animation,t.filtera,s?t.transform:void 0];u=u.filter(function(t){return null!=t});for(var d=0;d<u.length;d++)a.push({range:u[d].range,log:u[d].op.name,target:u[d].target,op:u[d].op});var f=[];t.borderObj&&f.push("border"),t.background&&f.push("background"),t.mar&&f.push("margin"),t.animation&&f.push("animation"),t.span&&f.push("span"),this.chainReact(a,this.options.id,f)}}},{key:"setup",value:function(){var t=document.createElement("ul");return this.res=t,this.res.style.padding=0,this.res.style.margin=0,this}},{key:"setItems",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 n(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)?n(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var o=0,i=function(){};return{s:i,n:function(){return o>=t.length?{done:!0}:{done:!1,value:t[o++]}},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 a,s=!0,l=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return s=t.done,t},e:function(t){l=!0,a=t},f:function(){try{s||null==r.return||r.return()}finally{if(l)throw a}}}}(t);try{for(r.s();!(e=r.n()).done;){var o=e.value;if("string"==typeof o){var i=document.createElement("li");i.textContent=o,this.res.appendChild(i)}else{var a=o.render();this.res.appendChild(a)}}}catch(t){r.e(t)}finally{r.f()}return this}},{key:"font",value:function(t){return this.res.style.fontFamily=t,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:"border",value:function(t,e){return this.res.style.border="".concat(t,"px solid ").concat(e),this}},{key:"toCode",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if(this.code=[],this.excludeFromCodeTrue)return[""];var e=" ".repeat(t),r="".concat(e,"new UList()");return this.items&&this.items.length&&(r+="\n".concat(e," .setItems([\n")+this.items.map(function(e){return"string"==typeof e?"".concat(" ".repeat(t+4),'"').concat(e,'"'):e.toCode(t+4)}).join(",\n")+"\n".concat(e," ])")),[r+="\n".concat(e)]}},{key:"render",value:function(t){if(!t)return this.res;document.querySelector(t).appendChild(this.res)}}],a&&i(r.prototype,a),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,a}(r(2332).y)},4753:(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 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,i(n.key),n)}}function i(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:()=>a});var a=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){for(var n=[],o=0;o<t.children.length;o++){var i=t.children[o];"text"===i&&this.insertTextToCard(n,e,t,r),"image"!==i||t.backgroundCard||n.push('\n new Image("https://upload.wikimedia.org/wikipedia/commons/3/3a/Starship_S20.jpg").set({})'),"link"===i&&(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 o="\n ".concat(n.tabSpace(6)," ").concat(n.text[e.op.theme.toLowerCase()].code),i=n.ops[e.op.theme.toLowerCase()].blast.code;r.backgroundCard||(i=n.ops[e.op.theme.toLowerCase()].blastFun(1));var a=this.insertTextBetween(o,i);t.push(a)}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;return t.slice(0,n)+", "+e+", "+t.slice(n)}return t}}],null&&o(t.prototype,null),e&&o(t,e),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e}()},5367:(t,e,r)=>{r(2332)},5594:(t,e,r)=>{r.d(e,{A:()=>C,G:()=>E});var n=r(9828),o=r(8597),i={"t-vhs":{summary:"Tape-glitch morph: chroma splits and the image tears, strongest at the midpoint, gone at both ends.",nodes:[{op:"aberration",amount:[0,18,0]},{op:"flow",strength:[0,34,0],scale:60,speed:0,window:[.15,.95],ease:"in-out"}]},"t-dissolve":{summary:"Ordered-dither dissolve — the old state breaks into pixels before the new one resolves.",nodes:[{op:"dither",levels:[8,2,8],size:[1,7,1],amount:[0,1,0],ease:"in-out"}]},"t-split":{summary:"Per-side morph: the old state posterises to duotone while the new one resolves through a halftone screen.",nodes:[{op:"duotone",side:"old",amount:[0,1,1],dark:"#0B1B2B",light:"#1abc9c"},{op:"halftone",side:"new",size:[10,6,2],amount:[1,1,0],softness:.35,angle:15}]},"t-bloom":{summary:"A soft halftone bloom through the middle of the morph.",nodes:[{op:"halftone",size:[2,9,2],amount:[0,1,0],softness:.4,angle:15,window:[.1,.9]}]},"liquid-hero":{summary:"A ripple that trails the pointer, then relaxes back in ~1.5s.",live:"enhanced",nodes:[{op:"stir",by:"mouse",radius:.055,force:2.2,strength:16,curl:.8,resolution:256,decay:.988}]},linger:{summary:"The same current, held for four or five seconds. Only `decay` differs.",live:"enhanced",nodes:[{op:"stir",by:"mouse",radius:.055,force:2.2,strength:7,curl:.8,resolution:256,decay:.9985,dye:0,sheen:0}]},"flow-field":{summary:"A standing current across the whole element. No solver, runs anywhere.",nodes:[{op:"flow",strength:18,scale:120,speed:.25}]},"flow-pointer":{summary:"The same current, but only around the pointer.",nodes:[{op:"flow",by:"mouse",strength:26,scale:100,radius:320}]},"print-shop":{summary:"Offset-litho dot screen with white seams under the glyphs.",nodes:[{op:"halftone",size:6,angle:15},{op:"edges",color:"#FFFFFF"}]},newsprint:{summary:"One-bit ordered dither — ink on paper, no greys.",nodes:[{op:"dither",mono:!0,ink:"#0B1B2B"}]},crt:{summary:"Posterised to a few levels, with a lens-like colour split.",nodes:[{op:"dither",levels:3},{op:"aberration",amount:6}]},glass:{summary:"Refractive metaball lens over untouched content.",nodes:[{op:"blobs",refract:70,dispersion:1,frost:.25}]},"hex-lens":{summary:"Hex cells rise toward the pointer; flush and invisible at rest.",nodes:[{op:"hexalize",size:26,lift:.3,by:"hover",radius:220}]},ripple:{summary:"The coordinate space pushes away from the pointer.",nodes:[{op:"offset",by:"mouse",strength:22,radius:280}]},spotlight:{summary:"A duotone disc that travels with the pointer; the rest is untouched.",nodes:[{op:"mask",from:"radial",as:"spot",by:"mouse",radius:200},{op:"duotone",masked:"spot",colors:["#104B87","#E8FF00"]}]},turbulent:{summary:"Animated noise drives the displacement, so the warp breathes.",nodes:[{op:"noise",as:"turbulence",scale:3,speed:.4},{op:"offset",masked:"turbulence",by:"static",strength:30}]},echoes:{summary:"Changing content leaves a fading trail behind it.",live:"required",nodes:[{op:"echo",decay:.92,strength:.85}]},comet:{summary:"A long, tinted comet tail. Needs live capture — on snapshot you see nothing move.",live:"required",nodes:[{op:"echo",decay:.975,strength:.95,tint:"#7FD4FF",tintAmount:.65}]}};function a(t){var e,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=i[t];if(!n)throw new Error("[nodality] "+(0,o.au)(t,Object.keys(i),"raster preset"));return(e=n.nodes,JSON.parse(JSON.stringify(e))).map(function(t){return Object.assign(t,r)})}var s={linear:function(t){return t},in:function(t){return t*t*t},out:function(t){return 1-Math.pow(1-t,3)},"in-out":function(t){return t<.5?4*t*t*t:1-Math.pow(-2*t+2,3)/2}},l=function(){return"undefined"!=typeof performance?performance.now():Date.now()},c=function(){return"undefined"!=typeof window&&"function"==typeof window.matchMedia&&window.matchMedia("(prefers-reduced-motion: reduce)").matches};function u(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!t||"function"!=typeof t.setProgress){var r=0;t={setProgress:function(t){return r=Math.min(1,Math.max(0,Number(t)||0))},get progress(){return r}}}var n=null!=e.duration?e.duration:600,o=s[e.easing]||s["in-out"],i=!1!==e.respectReducedMotion,a=0,u=t.progress||0,d=u,f=0,p=0,h=!1,y=null,m=null,b=!1,v=function(){if(!b){var e=l()-f,r=p<=0?1:Math.min(1,e/p);if(t.setProgress(u+(d-u)*o(r)),r>=1)return function(){h=!1,a=0;var e=y;y=null,e&&e(t.progress)}();a=requestAnimationFrame(v)}},g={get value(){return t.progress},get running(){return h},set:function(e){return g.stop(),t.setProgress(e),t.progress},to:function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(b)return Promise.resolve(t.progress);var o=Math.min(1,Math.max(0,Number(e)||0));if(i&&c())return g.set(o),Promise.resolve(o);if(y){var s=y;y=null,s(t.progress)}a&&cancelAnimationFrame(a),u=t.progress,d=o;var m=Math.abs(d-u);return m<1e-4?(t.setProgress(o),Promise.resolve(o)):(p=(null!=r.duration?r.duration:n)*m,f=l(),h=!0,a=requestAnimationFrame(v),new Promise(function(t){y=t}))},stop:function(){if(a&&cancelAnimationFrame(a),a=0,h=!1,y){var e=y;y=null,e(t.progress)}return t.progress},bindScroll:function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n="string"==typeof e?document.querySelector(e):e;if(!n)return g;g.unbindScroll(),g.stop();var o=null!=r.start?r.start:0,i=null!=r.end?r.end:1,a=function(){if(!b){var e=n.getBoundingClientRect(),r=window.innerHeight||1,a=(r-e.top)/(r+e.height||1),s=(Math.min(1,Math.max(0,a))-o)/(i-o||1);t.setProgress(Math.min(1,Math.max(0,s)))}};return m={node:n,update:a},window.addEventListener("scroll",a,{passive:!0}),window.addEventListener("resize",a,{passive:!0}),a(),g},unbindScroll:function(){return m?(window.removeEventListener("scroll",m.update),window.removeEventListener("resize",m.update),m=null,g):g},drive:function(t){return g.set(t)},destroy:function(){b=!0,g.stop(),g.unbindScroll()}};return g}function d(){var t,e,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function i(r,n,o,i){var l=n&&n.prototype instanceof s?n:s,c=Object.create(l.prototype);return f(c,"_invoke",function(r,n,o){var i,s,l,c=0,u=o||[],d=!1,f={p:0,n:0,v:t,a:p,f:p.bind(t,4),d:function(e,r){return i=e,s=0,l=t,f.n=r,a}};function p(r,n){for(s=r,l=n,e=0;!d&&c&&!o&&e<u.length;e++){var o,i=u[e],p=f.p,h=i[2];r>3?(o=h===n)&&(l=i[(s=i[4])?5:(s=3,3)],i[4]=i[5]=t):i[0]<=p&&((o=r<2&&p<i[1])?(s=0,f.v=n,f.n=i[1]):p<h&&(o=r<3||i[0]>n||n>h)&&(i[4]=r,i[5]=n,f.n=h,s=0))}if(o||r>1)return a;throw d=!0,n}return function(o,u,h){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&p(u,h),s=u,l=h;(e=s<2?t:l)||!d;){i||(s?s<3?(s>1&&(f.n=-1),p(s,l)):f.n=l:f.v=l);try{if(c=2,i){if(s||(o="next"),e=i[o]){if(!(e=e.call(i,l)))throw TypeError("iterator result is not an object");if(!e.done)return e;l=e.value,s<2&&(s=0)}else 1===s&&(e=i.return)&&e.call(i),s<2&&(l=TypeError("The iterator does not provide a '"+o+"' method"),s=1);i=t}else if((e=(d=f.n<0)?l:r.call(n,f))!==a)break}catch(e){i=t,s=1,l=e}finally{c=1}}return{value:e,done:d}}}(r,o,i),!0),c}var a={};function s(){}function l(){}function c(){}e=Object.getPrototypeOf;var u=[][n]?e(e([][n]())):(f(e={},n,function(){return this}),e),p=c.prototype=s.prototype=Object.create(u);function h(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,c):(t.__proto__=c,f(t,o,"GeneratorFunction")),t.prototype=Object.create(p),t}return l.prototype=c,f(p,"constructor",c),f(c,"constructor",l),l.displayName="GeneratorFunction",f(c,o,"GeneratorFunction"),f(p),f(p,o,"Generator"),f(p,n,function(){return this}),f(p,"toString",function(){return"[object Generator]"}),(d=function(){return{w:i,m:h}})()}function f(t,e,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(t){o=0}f=function(t,e,r,n){if(e)o?o(t,e,{value:r,enumerable:!n,configurable:!n,writable:!n}):t[e]=r;else{var i=function(e,r){f(t,e,function(t){return this._invoke(e,r,t)})};i("next",0),i("throw",1),i("return",2)}},f(t,e,r,n)}function p(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=m(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return a=t.done,t},e:function(t){s=!0,i=t},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw i}}}}function h(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,o,i,a,s=[],l=!0,c=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==e);l=!0);}catch(t){c=!0,o=t}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(t,e)||m(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 y(t){return function(t){if(Array.isArray(t))return b(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||m(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.")}()}function m(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}}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 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 g(t,e,r,n,o,i,a){try{var s=t[i](a),l=s.value}catch(t){return void r(t)}s.done?e(l):Promise.resolve(l).then(n,o)}function w(t){return function(){var e=this,r=arguments;return new Promise(function(n,o){var i=t.apply(e,r);function a(t){g(i,n,o,a,s,"next",t)}function s(t){g(i,n,o,a,s,"throw",t)}a(void 0)})}}var _=function(t,e){var r=t.getBoundingClientRect(),n=e.getBoundingClientRect();return{x:n.x-r.x,y:n.y-r.y,w:n.width,h:n.height}};function k(t,e,r){return O.apply(this,arguments)}function O(){return O=w(d().m(function t(e,r,n){var o,i,a,s,l,c,u,f;return d().w(function(t){for(;;)switch(t.n){case 0:for((o=e.cloneNode(!0)).style.position="static",o.style.left=o.style.top="0",o.style.margin="0",o.style.visibility="visible",i=[e].concat(y(e.querySelectorAll("*"))),a=[o].concat(y(o.querySelectorAll("*"))),s=0;s<i.length;s++)l=getComputedStyle(i[s]),a[s].style.fontSize=l.fontSize,a[s].style.lineHeight=l.lineHeight,a[s].style.fontWeight=l.fontWeight,a[s].style.fontFamily=l.fontFamily,a[s].style.letterSpacing=l.letterSpacing,a[s].style.width=l.width,a[s].style.height=l.height,a[s].style.padding=l.padding,a[s].style.boxSizing="content-box";return c=Math.max(1,Math.min("undefined"!=typeof window&&window.devicePixelRatio||1,3)),u='<svg xmlns="http://www.w3.org/2000/svg" width="'.concat(r*c,'" ')+'height="'.concat(n*c,'" viewBox="0 0 ').concat(r," ").concat(n,'">')+'<foreignObject width="100%" height="100%"><div xmlns="http://www.w3.org/1999/xhtml">'+(new XMLSerializer).serializeToString(o)+"</div></foreignObject></svg>",f=document.createElement("img"),t.n=1,new Promise(function(t,e){f.onload=t,f.onerror=e,f.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(u)});case 1:return t.a(2,f)}},t)})),O.apply(this,arguments)}var x=function(t){if(!t)return[];if(Array.isArray(t))return t;try{return a(t)||[]}catch(t){return[]}},S=function(t){return String(t||"").replace(/\s+/g," ").trim().toLowerCase()},j=function(t){return"string"==typeof t&&t.startsWith("#")?t.slice(1):t},E=function(t){return(Array.isArray(t.chain)&&t.chain.length?t.chain:[{from:t.from,to:t.to}]).map(function(e){var r=function(r,n){return void 0!==e[r]?e[r]:void 0!==t[r]?t[r]:n},n=e.to&&!Array.isArray(e.to)&&"object"===v(e.to)?e.to:null,o=n?y(new Set(Object.values(e.to))).map(j):(Array.isArray(e.to)?e.to:[e.to]).map(j),i=new Map;if(n)for(var a=0,s=Object.entries(e.to);a<s.length;a++){var l=h(s[a],2),c=l[0],u=l[1];i.set(S(c),j(u))}return{from:j(e.from),byLabel:n,toIds:o,labelToId:i,effect:r("effect"),duration:r("duration",900),back:!1!==r("back",!0),live:!0===r("live"),fade:r("fade","morph")}})};function C(t,e,r){if(!t||"undefined"==typeof document)return[];var o=(r||[]).filter(function(t){return t&&"morph"===t.op});if(!o.length)return[];var i=y(t.children),a=function(r){var n=j(r),o=document.getElementById(n);if(o&&t.contains(o))return o;var a=(e||[]).findIndex(function(t){return t&&j(t.id)===n});return a>=0?i[a]:null};return o.map(function(e){return function(t,e,r){var o=E(e),i=o[0],a=i&&i.from,s=null!=a?r(a):null,l=new Map;s&&l.set(a,s);var c,f=p(o);try{for(f.s();!(c=f.n()).done;){var m=c.value,b=r(m.from);b&&!l.has(m.from)&&l.set(m.from,b);var v,g=p(m.toIds);try{for(g.s();!(v=g.n()).done;){var O=v.value,j=r(O);j&&!l.has(O)&&l.set(O,j)}}catch(t){g.e(t)}finally{g.f()}}}catch(t){f.e(t)}finally{f.f()}if(!s||!i.toIds.some(function(t){return l.has(t)}))return console.warn("[nodality] morph: could not resolve",a,"->",i?i.toIds:[]),null;var C=function(t){return o.find(function(e){return e.from===t})||null},P=document.createElement("div");P.className="nod-morph",P.style.cssText="position:relative;",t.insertBefore(P,s);var T=document.createElement("div");T.className="nod-morph-host",T.style.cssText="position:absolute;inset:0;";var A=document.createElement("div");A.className="nod-morph-live",A.style.cssText="position:absolute;inset:0;",P.appendChild(T),P.appendChild(A),A.appendChild(s),s.style.position="absolute",s.style.left=s.style.top="0";var R,M=p(l);try{for(M.s();!(R=M.n()).done;){var I=h(R.value,2),D=I[0],L=I[1];D!==a&&L.remove()}}catch(t){M.e(t)}finally{M.f()}var W=a,B=[],z=function(){return l.get(W)||s},N=function(t){P.style.minHeight=Math.max(z().getBoundingClientRect().height,t||0)+24+"px"};N(0);var q=null,F=null,U=-1,H=null,K=null,J=null,$=!1,G=null,V=null,Q=o.length>1,X=function(){var t=w(d().m(function t(e,r,o){var i,a,s,l,c,f,p;return d().w(function(t){for(;;)switch(t.n){case 0:if(!(i=y(r.querySelectorAll("img"))).length){t.n=2;break}return t.n=1,Promise.all(i.map(function(t){return t.complete&&t.naturalWidth?null:"function"==typeof t.decode?t.decode().catch(function(){}):new Promise(function(e){t.addEventListener("load",e,{once:!0}),t.addEventListener("error",e,{once:!0})})}));case 1:return t.n=2,new Promise(function(t){return requestAnimationFrame(t)});case 2:return a=_(T,e),s=_(T,r),N(Math.max(a.y+a.h,s.y+s.h)),t.n=3,Promise.all([k(e,a.w,a.h),k(r,s.w,s.h)]);case 3:l=t.v,c=h(l,2),f=c[0],p=c[1],q=(0,n.applyRasterPipeline)(T,x(o.effect),{transition:{oldImage:f,newImage:p,oldRect:a,oldTo:s,newRect:s,newFrom:a,standDownAtStart:!0,live:!0===o.live,fade:o.fade||"morph"}}),F&&F.destroy(),F=u(q,{duration:null!=o.duration?o.duration:900});case 4:return t.a(2)}},t)}));return function(e,r,n){return t.apply(this,arguments)}}(),Y=function(){var t=w(d().m(function t(e){var r,o,i,a,s,c,u,f,h,m;return d().w(function(t){for(;;)switch(t.n){case 0:if((r=C(W))&&r.toIds.includes(e)){t.n=1;break}return t.a(2);case 1:if(o=l.get(e)){t.n=2;break}return t.a(2);case 2:i=z(),U=r.toIds.indexOf(e),J=W,a=p((0,n.activeRasterPipelines)());try{for(a.s();!(s=a.n()).done;)c=s.value,P.contains(c.canvas)&&c.destroy()}catch(t){a.e(t)}finally{a.f()}for(u=0,f=y(T.children);u<f.length;u++)(h=f[u])!==i&&h.remove();return T.appendChild(o),K=i,H=o,o.style.visibility="hidden",m=_(T,i),Object.assign(o.style,{position:"absolute",left:"0",top:Math.round(Q?m.y:m.h+20)+"px"}),t.n=3,X(i,o,r);case 3:if(F){t.n=4;break}return t.a(2);case 4:return G=J,V=e,F.set(0),lt(e),r.back&&at(o),t.n=5,F.to(1);case 5:1===t.v&&H===o&&it(e,i,r);case 6:return t.a(2)}},t)}));return function(e){return t.apply(this,arguments)}}(),Z=!1,tt=0,et=function(){var t=w(d().m(function t(){var e,r,n;return d().w(function(t){for(;;)switch(t.n){case 0:if(B.length){t.n=1;break}return t.a(2);case 1:if(e=B[B.length-1],r=l.get(e)){t.n=2;break}return t.a(2);case 2:if(n=z(),!q||!F||G!==e||V!==W){t.n=4;break}return t.n=3,F.to(0);case 3:return 0===t.v&&ot(e),t.a(2);case 4:return t.n=5,nt(e,r,n);case 5:return t.a(2)}},t)}));return function(){return t.apply(this,arguments)}}(),rt=function(){var t=w(d().m(function t(){return d().w(function(t){for(;;)switch(t.p=t.n){case 0:if(!Z){t.n=1;break}return tt++,t.a(2);case 1:return Z=!0,t.p=2,t.n=3,et();case 3:if(!(tt>0&&B.length)){t.n=5;break}return tt--,t.n=4,et();case 4:t.n=3;break;case 5:return t.p=5,Z=!1,tt=0,t.f(5);case 6:return t.a(2)}},t,null,[[2,,5,6]])}));return function(){return t.apply(this,arguments)}}(),nt=function(){var t=w(d().m(function t(e,r,o){var i,a,l,c,u;return d().w(function(t){for(;;)switch(t.n){case 0:return i=y((0,n.activeRasterPipelines)()).filter(function(t){return P.contains(t.canvas)}),a=C(e)||{},r===s?($=!0,A.style.display=""):r.parentNode!==T&&(r.style.visibility="hidden",T.appendChild(r),l=_(T,o),Object.assign(r.style,{position:"absolute",left:"0",top:Math.round(Q?l.y:0)+"px"})),t.n=1,X(r,o,a);case 1:c=p(i);try{for(c.s();!(u=c.n()).done;)u.value.destroy()}catch(t){c.e(t)}finally{c.f()}if($=!1,F){t.n=2;break}return t.a(2);case 2:return G=e,V=W,K=r,H=o,F.set(1),t.n=3,F.to(0);case 3:0===t.v&&ot(e);case 4:return t.a(2)}},t)}));return function(e,r,n){return t.apply(this,arguments)}}(),ot=function(t){B[B.length-1]===t&&B.pop(),W=t;var e,r=p((0,n.activeRasterPipelines)());try{for(r.s();!(e=r.n()).done;){var o=e.value;P.contains(o.canvas)&&o.destroy()}}catch(t){r.e(t)}finally{r.f()}q=null,F=null,G=null,V=null,J=B.length?B[B.length-1]:null,lt(t)},it=function(t,e,r){null!=J&&J!==t&&B.push(J),W=t,K=e&&e!==s?e:null,lt(t),r&&r.back&&at(l.get(t))},at=function(t){if(t){var e=y(t.querySelectorAll("button")).find(function(t){return!t.dataset.nodMorphWired&&!t.dataset.nodMorphBack});e&&(e.dataset.nodMorphBack="1",e.addEventListener("click",function(){rt()}))}},st=new Set,lt=function(t){var e=C(t),r=l.get(t);if(e&&r){var n=function(t){var e=y(t.querySelectorAll("a"));if(e.length)return e;var r=y(t.querySelectorAll("button, [role=button]"));return r.length?r:[t]}(r),o=!!e.byLabel&&n.some(function(t){return e.labelToId.has(S(t.textContent))});n.forEach(function(t){return function(t,e,r,n){if(!t.dataset.nodMorphWired&&!t.dataset.nodMorphBack){var o=n?e.labelToId.get(S(t.textContent)):1===e.toIds.length?e.toIds[0]:e.byLabel?e.labelToId.get(S(t.textContent)):e.toIds[r.indexOf(t)];o&&l.has(o)&&(t.dataset.nodMorphWired="1",t.dataset.nodMorphTo=o,t.addEventListener("click",function(t){l.has(o)&&(t.preventDefault(),Y(o))}))}}(t,e,n,o)}),"undefined"==typeof MutationObserver||st.has(t)||(st.add(t),new MutationObserver(function(){return lt(t)}).observe(r,{childList:!0,subtree:!0}))}};lt(a);var ct=function(){if(P.isConnected){var t=q?q.progress:0,e=T.querySelector("canvas"),r=!!e&&"visible"===(e.style.visibility||"visible"),n=!q||!r,o=$||n&&t<=0&&(W===a||K===s)?"":"none";A.style.display!==o&&(A.style.display=o);var i=H||T.firstElementChild;if(i&&i.style){var l=q&&n&&t>=1?"":"hidden";i.style.visibility!==l&&(i.style.visibility=l)}if(K&&K!==s&&K.style){var c=n&&t<=0?"":"hidden";K.style.visibility!==c&&(K.style.visibility=c)}requestAnimationFrame(ct)}};return requestAnimationFrame(ct),{stage:P,from:s,get destinations(){return i.toIds.map(function(t){return l.get(t)||null})},get states(){return l},get current(){return W},get history(){return[].concat(B)},get progress(){return q?q.progress:0},get active(){return U},goTo:function(t){var e=C(W);return e?Y(e.toIds[t]):void 0},goToState:Y,back:function(){F&&F.to(0)},goBack:rt,destroy:function(){F&&F.destroy();var t,e=p((0,n.activeRasterPipelines)());try{for(e.s();!(t=e.n()).done;){var r=t.value;P.contains(r.canvas)&&r.destroy()}}catch(t){e.e(t)}finally{e.f()}P.remove()}}}(t,e,a)}).filter(Boolean)}},5613:(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 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,i(n.key),n)}}function i(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,{Q:()=>a}),r(2332);var a=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 o=document.createElement("input");if(o.setAttribute("id","slider"),o.setAttribute("type","range"),o.setAttribute("min",t.min),o.setAttribute("max",t.max),o.setAttribute("value",t.min),o.style.width=null!==(e=t.width)&&void 0!==e?e:"100%",!t.plain){var i,a;o.style.setProperty("-webkit-appearance","none"),o.style.appearance="none",o.style.height="9px",o.style.background=null!==(i=t.style.trackColor)&&void 0!==i?i:"orange",o.style.borderRadius="5px";var 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: ".concat(null!==(a=t.style.thumbColor)&&void 0!==a?a:"4CAF50",";\n cursor: pointer;\n }\n "),l=document.createElement("style");l.appendChild(document.createTextNode(s)),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=o.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)),o.addEventListener("input",function(){n.currentLabel.textContent=o.value}),window.matchMedia("(max-device-width: 415px)").matches)if(t.plain)o.style.width="80%";else{var d,f;o.style.height="20px",o.style.background=null!==(d=t.style.trackColor)&&void 0!==d?d:"1abc9C",o.style.borderRadius="10px",o.style.fontSize="3rem",o.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!==(f=t.style.thumbColor)&&void 0!==f?f:"blue",";\n cursor: pointer;\n }\n "),h=document.createElement("style");h.appendChild(document.createTextNode(p)),document.head.appendChild(h)}return c.appendChild(u),c.appendChild(o),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)}}])&&o(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e}();"undefined"!=typeof window&&(window.Range=a)},5632:(t,e,r)=>{r.d(e,{j:()=>p});var n=r(2332),o=r(1382);function i(t){return i="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},i(t)}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 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,l(n.key),n)}}function l(t){var e=function(t){if("object"!=i(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==i(e)?e:e+""}function c(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(c=function(){return!!t})()}function u(){return u="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,r){var n=function(t,e){for(;!{}.hasOwnProperty.call(t,e)&&null!==(t=d(t)););return t}(t,e);if(n){var o=Object.getOwnPropertyDescriptor(n,e);return o.get?o.get.call(arguments.length<3?t:r):o.value}},u.apply(null,arguments)}function d(t){return d=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},d(t)}function f(t,e){return f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},f(t,e)}var p=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=d(e),function(t,e){if(e&&("object"==i(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,c()?Reflect.construct(e,r||[],d(t).constructor):e.apply(t,r))}(this,e)).res=null,t.options={},t.code=[],t.elCSS=[],t.html=[],t.react=[],t.setup(),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&&f(t,e)}(e,t),r=e,n=[{key:"setup",value:function(){var t=document.createElement("div");return this.res=t,this.res.style.padding=0,this.res.style.margin=0,this.res.style.borderRadius="50%",this}},{key:"toCode",value:function(){if(this.excludeFromCodeTrue)return[""];var t=Object.fromEntries(Object.entries(this.options||{}).filter(function(t){return null!=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,o,i,a,s=[],l=!0,c=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==e);l=!0);}catch(t){c=!0,o=t}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(t,e)||function(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}}(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)[1]})),e=(0,o.sy)(t,4);return["new Circle().set(".concat(e,")")]}},{key:"setArea",value:function(t){return this.res.style.gridArea=t,this}},{key:"diameter",value:function(t){return this.res.style.width=this.res.style.height="number"==typeof t?t+"px":t,this.res.style.borderRadius="50%",this}},{key:"size",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t;return this.res.style.width="number"==typeof t?t+"px":t,this.res.style.height="number"==typeof e?e+"px":e,this.res.style.borderRadius="50%",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:"border",value:function(t){return this.res.style.border="string"==typeof t?t:"".concat((null==t?void 0:t.width)||1,"px solid ").concat((null==t?void 0:t.color)||"black"),this}},{key:"radius",value:function(t){return this.res.style.borderRadius="number"==typeof t?t+"px":t,this}},{key:"set",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.options=t,t.top&&(this.res.style.top=t.top),t.left&&(this.res.style.left=t.left),(t.top||t.left)&&(this.res.style.position="absolute"),t.diameter&&this.diameter(t.diameter),t.size&&this.size(t.size.w||t.size,t.size.h||t.size),t.width&&(this.res.style.width=t.width),t.height&&(this.res.style.height=t.height),t.radius&&this.radius(t.radius),t.id&&this.res.setAttribute("id",t.id),t.class&&this.res.setAttribute("class",t.class),t.zIndex&&(this.res.style.zIndex=t.zIndex),t.pad&&(this.res.style.padding=t.pad),t.mar&&(this.res.style.margin=t.mar),t.background&&(this.res.style.background=t.background),t.color&&this.color(t.color),t.border&&this.border(t.border),t.shadow&&(this.res.style.boxShadow=t.shadow),t.cursor&&(this.res.style.cursor=!0===t.cursor?"pointer":t.cursor);var r,n,o,i=[];if(t.stroke||t.gradient||t.backgroundOp||t.layout||t.marginOp||t.shadow||t.animation||t.filtera||t.transform){var a;t.gradient&&(this.globalGradient=t.gradient.op.gradient),"radial"===t.gradient.op.direction&&(this.globalGradient="radial-gradient(circle at center, orange, green)"),t.stroke&&(null===(r=e,n=this,a="function"==typeof(o=u(d(1&3?r.prototype:r),"setAny",n))?function(t){return o.apply(n,t)}:o)||void 0===a||a([{globalBlast:"".concat(t.stroke.op.width," ").concat(t.stroke.op.color)}]));for(var s=[t.stroke,t.gradient,t.animation,t.backgroundOp,t.layout,t.marginOp,t.shadow,t.animation,t.filtera,t.transform].filter(function(t){return null!=t}),l=0;l<s.length;l++)i.push({range:s[l].range,log:s[l].op.name,target:s[l].target,op:s[l].op});var c=[];t.border&&c.push("border"),t.background&&c.push("background"),(t.mar||t.margin)&&c.push("margin"),t.animation&&c.push("animation"),this.chainReact(i,this.options.id,c)}return this}},{key:"getType",value:function(){return"LayoutWrapperElement"}},{key:"excludeFromCode",value:function(){return this.excludeFromCodeTrue=!0,this}},{key:"setClass",value:function(t){return this.res.setAttribute("class",t),this}},{key:"onTap",value:function(t){return this.res.addEventListener("click",t),this}},{key:"render",value:function(t){var e;return t&&(null===(e=document.querySelector(t))||void 0===e||e.appendChild(this.res)),this.res}}],n&&s(r.prototype,n),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n}(n.y)},5860:(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 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,i(n.key),n)}}function i(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 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=l(t)););return t}(t,e);if(n){var o=Object.getOwnPropertyDescriptor(n,e);return o.get?o.get.call(arguments.length<3?t:r):o.value}},s.apply(null,arguments)}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,{M:()=>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)).code=[],t.setup(),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,i=[{key:"toCode",value:function(){return this.code}},{key:"setup",value:function(){this.code.push("new FlexGrid()"),this.code.push(".setup()");var t=document.createElement("div");return t.style.display="flex",t.style.padding=0,t.style.margin=0,this.res=t,this}},{key:"getType",value:function(){return"FlexRowLayoutElement"}},{key:"set",value:function(t){t.id&&this.res.setAttribute("id",t.id),this.commonMethods(t),t.onTap&&this.onTap(t.onTap),this.code.push(".set({"),t.gap&&this.code.push("gap: ".concat(t.gap)),t.gap&&(this.res.style.gap=t.gap),t.flex&&(this.res.style.flex=t.flex),t.flex&&this.code.push("flex: ".concat(t.flex,",")),t.wrap&&(this.res.style.flexWrap="wrap"),t.wrap&&this.code.push("wrap: ".concat(t.wrap,",")),t.align&&(this.res.style.justifyContent=t.align),t.align&&this.code.push("align: ".concat(t.align,",")),t.colat&&this.toColumnAt(t.colat),t.colat&&this.code.push('\n colat: "'.concat(t.colat,'",')),this.code.push("}),");var e=t;return this.callReact(e),this}},{key:"callReact",value:function(t){this.options=t;var r,o,i,a=[],c=t.transform&&"object"===n(t.transform);if(t.stroke||t.gradient||t.span||t.backgroundOp||t.layout||t.shadow||t.animation||t.filtera||c){t.gradient&&(this.globalGradient=t.gradient.op.gradient,"radial"===t.gradient.op.direction&&(this.globalGradient="radial-gradient(orange, green)")),t.stroke&&(r=e,o=this,"function"==typeof(i=s(l(1&3?r.prototype:r),"setAny",o))?function(t){return i.apply(o,t)}:i)([{globalBlast:"".concat(t.stroke.op.width," ").concat(t.stroke.op.color)}]),t.span&&(t.span.prevText=this.text);var u=[t.stroke,t.gradient,t.animation,t.span,t.backgroundOp,t.layout,t.marginOp,t.shadow,t.animation,t.filtera,c?t.transform:void 0];u=u.filter(function(t){return null!=t});for(var d=0;d<u.length;d++)a.push({range:u[d].range,log:u[d].op.name,target:u[d].target,op:u[d].op});var f=[];t.borderObj&&f.push("border"),t.background&&f.push("background"),t.mar&&f.push("margin"),t.animation&&f.push("animation"),t.span&&f.push("span"),this.chainReact(a,t.id,f)}}},{key:"toColumnAt",value:function(t){var e=this;if(!this.columnAlways){var r=function(){var r=window.matchMedia("(max-width: ".concat(t,")")),n=window.matchMedia("(max-device-width: 415px)");r.matches||n.matches?(e.res.style.flexDirection="column",e.res.style.alignItems="center"):e.res.style.flexDirection="row"};r(),window.addEventListener("resize",r)}}},{key:"flex",value:function(t){return this.arra=Array.from(t.replace(/\s/g,"")),this.areas=Array.from(Array(t.replace(/\s/g,"")).join("")),this.save='"'.concat(t,'"'),this}},{key:"items",value:function(t){this.items=t,this.code.push("\n .items([");for(var e=0;e<t.length;e++){var r=t[e];if(null!=r){var n=r.render();void 0!==r.toCode&&this.code.push(r.toCode().flatMap(function(t){return t})),this.res.appendChild(n)}}return this.code.push("\n ])"),this}},{key:"border",value:function(t,e){return this.res.style.border="".concat(e,"px solid ").concat(t),this}},{key:"adjust",value:function(t){var e=this,r=function(){var r=window.matchMedia("(max-device-width: 415px)");if(window.innerWidth<t||r.matches)for(var n=0;n<e.res.children.length;n++)e.res.children[n].style.flex="",e.res.children[n].style.width="100%";else for(n=0;n<e.res.children.length;n++)e.res.children[n].style.flex="".concat(e.arra[n])};return r(),window.addEventListener("resize",r),this}},{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)}}],i&&o(r.prototype,i),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,i}(r(2332).y)},6131:(t,e,r)=>{r.d(e,{E:()=>h});var n=r(2332),o=r(1382);function i(t){return i="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},i(t)}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 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,l(n.key),n)}}function l(t){var e=function(t){if("object"!=i(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==i(e)?e:e+""}function c(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(c=function(){return!!t})()}function u(t,e,r,n){var o=d(f(1&n?t.prototype:t),e,r);return 2&n&&"function"==typeof o?function(t){return o.apply(r,t)}:o}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 o=Object.getOwnPropertyDescriptor(n,e);return o.get?o.get.call(arguments.length<3?t:r):o.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 p(t,e){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},p(t,e)}var h=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"==i(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,c()?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&&p(t,e)}(e,t),r=e,n=[{key:"toCode",value:function(){if(this.excludeFromCodeTrue)return[""];var t=Object.fromEntries(Object.entries(this.options).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,o,i,a,s=[],l=!0,c=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==e);l=!0);}catch(t){c=!0,o=t}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(t,e)||function(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}}(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]})),e=(0,o.sy)(t,4);return['new Text("'.concat(this.text,'").set(').concat(e,")")]}},{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:"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:"setClass",value:function(t){return this.res.setAttribute("class",t),this}},{key:"styled",value:function(t){return this.set(t),this}},{key:"removeQuotesFromFirstWord",value:function(t){return t.replace((0,o._H)(),"$1:")}},{key:"looksLikeMarkdown",value:function(t){return/(\*\*.*\*\*|\*.*\*|`[^`]+`|\[.*?\]\(.*?\)|^# )/m.test(t)}},{key:"parseMarkdown",value:function(t){var e=t;return(e=(e=(e=(e=(e=(e=(e=e.replace(/^### (.*$)/gim,"<h3>$1</h3>")).replace(/^## (.*$)/gim,"<h2>$1</h2>")).replace(/^# (.*$)/gim,"<h1>$1</h1>")).replace(/\*\*(.*?)\*\*/g,"<strong>$1</strong>")).replace(/\*(.*?)\*/g,"<em>$1</em>")).replace(/`([^`]+)`/g,"<code>$1</code>")).replace(/\[([^\]]+)\]\(([^)]+)\)/g,'<a href="$2">$1</a>')).replace(/\n/g,"<br>")}},{key:"set",value:function(t){return this.resCopy=this.res,this.options=t,u(e,"setPrevText",this,3)([this.text]),t.raster&&this.rasterize(t.raster),this.commonMethods(t),t.left&&(this.res.style.left=t.left),t.flex&&(this.res.style.display="flex"),(t.left||t.top)&&(this.res.style.position="absolute"),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&&u(e,"setIndex",this,3)([t.index]),t.index&&(this.index=t.index),t.preffersId&&(this.preffersId=t.preffersId),u(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),this.options.id&&this.res.setAttribute("id",this.options.id),u(e,"setID",this,3)([this.options.id]),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.class&&this.res.setAttribute("class",this.options.class),u(e,"setClass",this,3)([this.options.class]),t.clampc&&this.clampCopy(t.clampc),t.absolute&&(this.res.style.position="absolute"),t.em&&this.em(t.em),t.fluid&&this.fluid(t.fluid),t.fluidc&&this.elCSS.push("font-family: ".concat(t.font,"; \n")),t.align&&(this.res.style.textAlign=t.align),t.breakWord&&(this.res.style.wordWrap="break-word"),t.center&&this.deprecatedOption("center on Text",'mar: "center"'),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),this.callReact(t),this}},{key:"callReact",value:function(t){var r=[],n=t.transform&&"object"===i(t.transform);if(t.stroke||t.gradient||t.span||t.backgroundOp||t.layout||t.shadow||t.animation||t.filtera||n){t.gradient&&(this.globalGradient=t.gradient.op.gradient,"radial"===t.gradient.op.direction&&(this.globalGradient="radial-gradient(circle at center, orange, green)")),t.stroke&&u(e,"setAny",this,3)([{globalBlast:"".concat(t.stroke.op.width," ").concat(t.stroke.op.color)}]),t.span&&(t.span.prevText=this.text);var o=[t.stroke,t.gradient,t.animation,t.span,t.backgroundOp,t.layout,t.marginOp,t.shadow,t.animation,t.filtera,n?t.transform:void 0];o=o.filter(function(t){return null!=t});for(var a=0;a<o.length;a++)r.push({range:o[a].range,log:o[a].op.name,target:o[a].target,op:o[a].op});var s=[];t.borderObj&&s.push("border"),t.background&&s.push("background"),t.mar&&s.push("margin"),t.animation&&s.push("animation"),t.span&&s.push("span"),this.chainReact(r,this.options.id,s)}}},{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:"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:"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:"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 o=document.createTextNode(this.text);this.res.appendChild(o),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:"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:"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:"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),void 0!==t.id&&null!==t.id&&e.setAttribute("id",t.id),"span"===t.type&&t.animation&&(e.style.position="relative",e.style.display="block")):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:"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:"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:"apply",value:function(t){var e=this,r=this.res.styles,n=function(){for(var n=0;n<t.length;n++){var o=t[n];o.min&&o.max?window.matchMedia("(min-width: ".concat(o.min,"px) and (max-width: ").concat(o.max,"px)")).matches?Object.assign(e.res.style,o.styles):Object.assign(e.res.style,r):window.matchMedia("(max-width: ".concat(o.max,"px)")).matches?Object.assign(e.res.style,o.styles):Object.assign(e.res.style,r)}};return n(),window.addEventListener("resize",n),this}},{key:"render",value:function(t){if(!t)return this.options&&!this.options.span&&(this.res.textContent=this.text),this.looksLikeMarkdown(this.text)&&(this.res.innerHTML=this.parseMarkdown(this.text)),this.res;this.options&&this.options.id&&this.res.setAttribute("id",this.options.id),this.options&&!this.options.span&&(this.res.textContent=this.text),this.looksLikeMarkdown(this.text)&&(this.res.innerHTML=this.parseMarkdown(this.text)),document.querySelector(t).appendChild(this.res)}}],n&&s(r.prototype,n),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n}(n.y)},6182:(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 o(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 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&&t&&"number"==typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,l=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return s=t.done,t},e:function(t){l=!0,a=t},f:function(){try{s||null==r.return||r.return()}finally{if(l)throw a}}}}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 a(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 l(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(l=function(){return!!t})()}function c(){return c="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,r){var n=function(t,e){for(;!{}.hasOwnProperty.call(t,e)&&null!==(t=u(t)););return t}(t,e);if(n){var o=Object.getOwnPropertyDescriptor(n,e);return o.get?o.get.call(arguments.length<3?t:r):o.value}},c.apply(null,arguments)}function u(t){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},u(t)}function d(t,e){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},d(t,e)}r.d(e,{X:()=>f});var f=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=u(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,l()?Reflect.construct(e,r||[],u(t).constructor):e.apply(t,r))}(this,e)).res=document.createElement("table"),t.res.style.borderCollapse="separate",t.res.style.borderSpacing="0",t.res.style.overflow="hidden",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&&d(t,e)}(e,t),r=e,i=[{key:"add",value:function(t){this.data=t,this.datas=t;var e=Object.keys(t[0]);return this.generateTable(this.res,t),this.generateTableHead(this.res,e),this}},{key:"style",value:function(t){return t.font&&(this.res.style.fontFamily=t.font),this}},{key:"getType",value:function(){return"LayoutWrapperElement"}},{key:"set",value:function(t){return t.cellPadding&&this.cellPadding(t.cellPadding),t.cellAlign&&this.cellAlign(t.cellAlign),t.style&&this.style(t.style),t.headStyle&&this.headStyle(t.headStyle),t.border&&this.border(t.border),t.center&&this.center(t.center),t.borderRadius&&this.borderRadius(t.borderRadius),t.gradient&&(this.res.style.background=t.gradient.op.gradient,this.res.style.backgroundClip="padding-box"),this.obj=t,this.options=t,this.callReact(t),this}},{key:"callReact",value:function(t){var r,n,o,i=[];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,"radial"===t.gradient.op.direction&&(this.globalGradient="radial-gradient(circle at center, orange, green)")),t.stroke&&(r=e,n=this,"function"==typeof(o=c(u(1&3?r.prototype:r),"setAny",n))?function(t){return o.apply(n,t)}:o)([{globalBlast:"".concat(t.stroke.op.width," ").concat(t.stroke.op.color)}]),t.span&&(t.span.prevText=this.text);var a=[t.stroke,t.gradient,t.animation,t.span,t.backgroundOp,t.layout,t.marginOp,t.shadow,t.animation,t.filtera,t.transform];a=a.filter(function(t){return null!=t});for(var s=0;s<a.length;s++)i.push({range:a[s].range,log:a[s].op.name,target:a[s].target,op:a[s].op});var l=[];t.borderObj&&l.push("border"),t.background&&l.push("background"),t.mar&&l.push("margin"),t.animation&&l.push("animation"),t.span&&l.push("span"),l.push("border"),this.chainReact(i,this.options.id,l)}}},{key:"toCode",value:function(){var t=JSON.stringify(this.data,null,2),e=JSON.stringify(this.obj,null,2);return t=t.replace(/"(\w+)"\s*:/g,"$1:"),e=e.replace(/"(\w+)"\s*:/g,"$1:"),["new Table()\n .add(".concat(t,")\n .set(").concat(e,")")]}},{key:"borderRadius",value:function(t){return this.res.style.borderRadius="".concat(4*t,"px"),this.res.style.overflow="hidden",this}},{key:"cellPadding",value:function(t){var e,r=o(this.res.rows);try{for(r.s();!(e=r.n()).done;){var n,i=o(e.value.cells);try{for(i.s();!(n=i.n()).done;)n.value.style.padding=t}catch(t){i.e(t)}finally{i.f()}}}catch(t){r.e(t)}finally{r.f()}return this}},{key:"cellAlign",value:function(t){var e,r=o(this.res.rows);try{for(r.s();!(e=r.n()).done;){var n,i=o(e.value.cells);try{for(i.s();!(n=i.n()).done;)n.value.style.textAlign=t}catch(t){i.e(t)}finally{i.f()}}}catch(t){r.e(t)}finally{r.f()}return this}},{key:"headStyle",value:function(t){var e=this.res.rows[0];return e&&(e.style.color=t.color,t.background&&(e.style.backgroundColor=t.background)),this}},{key:"border",value:function(t){var e;this.res.style.borderCollapse="separate",this.res.style.borderSpacing="0",this.res.style.border=t,this.res.style.borderRadius="12px";var r,n=o(this.res.rows);try{for(n.s();!(r=n.n()).done;){var i,a=o(r.value.cells);try{for(a.s();!(i=a.n()).done;)i.value.style.border="none"}catch(t){a.e(t)}finally{a.f()}}}catch(t){n.e(t)}finally{n.f()}for(var s=0;s<this.res.rows.length-1;s++){var l,c=o(this.res.rows[s].cells);try{for(c.s();!(l=c.n()).done;)l.value.style.borderBottom=t}catch(t){c.e(t)}finally{c.f()}}var u,d=(null===(e=this.res.rows[0])||void 0===e?void 0:e.cells.length)||0,f=o(this.res.rows);try{for(f.s();!(u=f.n()).done;)for(var p=u.value,h=0;h<d-1;h++)p.cells[h].style.borderRight=t}catch(t){f.e(t)}finally{f.f()}return this}},{key:"generateTableHead",value:function(t,e){var r,n=t.createTHead().insertRow(),i=o(e);try{for(i.s();!(r=i.n()).done;){var a=r.value,s=document.createElement("th");s.textContent=a,n.appendChild(s)}}catch(t){i.e(t)}finally{i.f()}}},{key:"generateTable",value:function(t,e){var r,n=o(e);try{for(n.s();!(r=n.n()).done;){var i=r.value,a=t.insertRow();for(var s in i)a.insertCell().textContent=i[s]}}catch(t){n.e(t)}finally{n.f()}}},{key:"render",value:function(t){var e=document.createElement("div");if(e.style.overflowX="auto",e.appendChild(this.res),!t)return e;document.querySelector(t).appendChild(e)}}],i&&a(r.prototype,i),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,i}(r(2332).y)},6679:(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 o(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(o=function(){return!!t})()}function i(t){return i="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},i(t)}function a(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"!=i(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==i(e)?e:e+""}r.d(e,{T:()=>l}),r(2332);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 o=t.data,i=0,a=o.length,s=document.createElement("datalist");for(s.id="dlCities",i=0;i<a;i+=1){var l=document.createElement("option");l.value=o[i],s.appendChild(l)}return n.appendChild(s),n.addEventListener("change",function(){var t=document.querySelector("#my").value;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 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 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)}}])&&a(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(o())return Reflect.construct.apply(null,arguments);var i=[null];i.push.apply(i,e);var a=new(t.bind.apply(t,i));return r&&n(a,r.prototype),a}(c,e)},"undefined"!=typeof window&&(window.DataList=l)},7108:(t,e,r)=>{r.d(e,{N:()=>h});var n=r(2332),o=r(1382);function i(t){return i="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},i(t)}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 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,l(n.key),n)}}function l(t){var e=function(t){if("object"!=i(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==i(e)?e:e+""}function c(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(c=function(){return!!t})()}function u(t,e,r,n){var o=d(f(1&n?t.prototype:t),e,r);return 2&n&&"function"==typeof o?function(t){return o.apply(r,t)}:o}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 o=Object.getOwnPropertyDescriptor(n,e);return o.get?o.get.call(arguments.length<3?t:r):o.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 p(t,e){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},p(t,e)}var h=function(t){function e(t,r,n){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=f(e),function(t,e){if(e&&("object"==i(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,c()?Reflect.construct(e,r||[],f(t).constructor):e.apply(t,r))}(this,e)).link=r,o.text=t,o.code=[],o.css=[],o.elCSS=[],o.html=[],o.res=null,o.stopEM=n,o.setup(),o.inlineBlock(),o.res.addEventListener("click",function(t){var e=o.link||o.res.getAttribute("href");if(e){var r=new URL(e,window.location.href).href,n=/^https?:\/\//i.test(r),i=r.startsWith("#"),a=/^[a-zA-Z]+:/.test(r);n||i||r.endsWith(".html")||a||(t.preventDefault(),"navigation"in window?navigation.navigate(r):(history.pushState({},"",r),document.dispatchEvent(new PopStateEvent("popstate"))))}}),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&&p(t,e)}(e,t),r=e,(n=[{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(){if(this.excludeFromCodeTrue)return[""];var t=Object.fromEntries(Object.entries(this.options).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,o,i,a,s=[],l=!0,c=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==e);l=!0);}catch(t){c=!0,o=t}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(t,e)||function(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}}(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]})),e=(0,o.sy)(t,4);return["new Link().set(".concat(e,")")]}},{key:"setup",value:function(){var t=document.createElement("a");t.setAttribute("href",this.link),t.style.textDecoration="none",t.style.color="black",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),t.options.pad&&(this.res.style.padding=t.options.pad),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((0,o._H)(),"$1:")}},{key:"set",value:function(t){this.elCSS.push("text-decoration: none; \n"),this.options=t;var r="";t.onTap&&this.onTap(t.onTap),t.tags&&u(e,"setTags",this,3)([t.tags]),t.id&&this.res.setAttribute("id",t.id),t.id&&u(e,"setID",this,3)([t.id]),this.commonMethods(t),t.flex&&(this.res.style.display="flex"),t.fixMobileTap&&this.fixMobileTap(t.fixMobileTap);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&&u(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 o=this.removeQuotesFromFirstWord(JSON.stringify(t.borderObj));r+="\n borderObj: ".concat(o,",")}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 i=this.removeQuotesFromFirstWord(JSON.stringify(t.blastData));u(e,"setAny",this,3)([{globalBlast:"1px ".concat(t.blastData.color)}]),t.blastData&&(r+="\n blastData: ".concat(i,","))}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.clampc&&this.clampCopy(t.clampc),this.options.id&&(r+='\n id: "'.concat(this.options.id,'",')),t.align&&this.leftAlign(t.align),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 a=this.removeQuotesFromFirstWord(JSON.stringify(t.background));t.background&&(r+="\n background: ".concat(a,",")),t.hover&&this.hover(t.hover);var s=this.removeQuotesFromFirstWord(JSON.stringify(t.hover));if(t.hover&&(r+="\n hover: ".concat(s,",")),t.blast&&(this.blastData=t.blast),t.bold&&(r+="\n bold: ".concat(t.bold,",")),t.block&&this.toBlock(),t.block&&(r+="\n block: ".concat(t.block,",")),t.radius&&(r+='\n radius: "'.concat(t.radius,'",')),t.width&&(r+='\n width: "'.concat(t.width,'",')),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 l=this.removeQuotesFromFirstWord(JSON.stringify(t.data));t.data&&(r+="\n data: ".concat(l))}if(t.icon){this.addIcon(t.icon);var c=this.removeQuotesFromFirstWord(JSON.stringify(t.icon));r+="\n icon: ".concat(c,",")}if(t.shadow){var d=t.shadow,f=this.removeQuotesFromFirstWord(JSON.stringify(d));r+="\n shadow: ".concat(f,",")}if(t.stroke){var p=this.removeQuotesFromFirstWord(JSON.stringify(t.stroke));t.stroke&&(r+="\n stroke: ".concat(p,","))}if(t.backgroundOp){var h=this.removeQuotesFromFirstWord(JSON.stringify(t.backgroundOp));r+="\n backgroundOp: ".concat(h,",")}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 b=this.removeQuotesFromFirstWord(JSON.stringify(t.animation));r+="\n animation: ".concat(b,",")}if(t.transform){var v=this.removeQuotesFromFirstWord(JSON.stringify(t.transform));r+="\n transform: ".concat(v,",")}if(t.blast){var g=this.removeQuotesFromFirstWord(JSON.stringify(t.blast));r+="\n blast: ".concat(g,",")}var w="new Link().set({".concat(r,"}) \n");this.code.push(w),t.color&&this.color(t.color),t.rounded&&this.round(),t.new&&(this.res.setAttribute("target","_blank"),this.res.setAttribute("rel","noopener noreferrer")),t.transform&&this.reactOnTransform(t.transform);var _=[],k=[t.border,t.blast,t.gradient,t.animation,t.span,t.shadow,t.backgroundOp,t.animation,t.transform];if((k=k.filter(function(t){return null!=t})).length>0){t.gradient&&(this.globalGradient=t.gradient.op.gradient,"radial"===t.gradient.op.direction&&(this.globalGradient="radial-gradient(circle at center, orange, green)")),t.stroke&&u(e,"setAny",this,3)([{globalBlast:"".concat(t.stroke.op.width," ").concat(t.stroke.op.color)}]);for(var O=0;O<k.length;O++)_.push({range:k[O].range,log:k[O].op.name,target:k[O].target,op:k[O].op});var x=[];t.borderObj&&x.push("border"),t.background&&x.push("background"),t.mar&&x.push("margin"),t.animation&&x.push("animation"),this.chainReact(_,t.id,x,t.isNavA),this.res.style.zIndex=1}return this}},{key:"fixMobileTap",value:function(t){this.res.style.pointerEvents="auto",this.res.style.touchAction="manipulation",this.res.style.cursor="pointer",this.res.style.zIndex="1",this.res.style.position="relative"}},{key:"maxWidth",value:function(t){return this.res.style.maxWidth=t,this}},{key:"leftAlign",value:function(t){return this.res.style.textAlign=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:"color",value:function(t){return this.res.style.color=t,this}},{key:"newWindow",value:function(){return this.res.target="_new",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:"italic",value:function(){return this.res.style.fontStyle="italic",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:"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}}])&&s(r.prototype,n),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n}(n.y)},7135:(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 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,i(n.key),n)}}function i(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,{J:()=>a});var a=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.setupa()},e=[{key:"seto",value:function(t){return this.e=t.a,t.speed&&(this.divisor=t.speed),t.height&&(this.setH=t.height),this}},{key:"setupa",value:function(){return this.parallaxIDs(["#rta"]),this.divisor(1),this}},{key:"add",value:function(t){return this.items=t,this.setup(),this}},{key:"parallaxIDs",value:function(t){return this.parallaxIDs=t,this}},{key:"divisor",value:function(t){return this.divisor=t,this}},{key:"setup",value:function(){var t,e=this;this.pts=0;var r=document.createElement("div");r.style.width="100%",r.style.height=null!==(t=this.setH)&&void 0!==t?t:"100%";var n=document.createElement("div");n.style.display="flex",n.style.width="100%";for(var o=0;o<this.items.length;o++){var i=this.items[o].render();n.appendChild(i)}r.appendChild(n);var a=window.localStorage.getItem("pts");null!==a&&(this.pts=a),r.addEventListener("wheel",function(t){t.deltaY<0?e.pts--:t.deltaY>0&&e.pts++,window.localStorage.setItem("pts",e.pts),t.preventDefault();for(var r=0;r<n.childNodes.length;r++){var o=n.childNodes[r];e.parallaxIDs.includes(o.id)&&(o.style.transform="translateX(".concat(e.pts/e.divisor,"%)"))}n.style.transform="translateX(".concat(e.pts/e.divisor,"%)"),window.localStorage.setItem("translation",e.pts/e.divisor)});var s=window.localStorage.getItem("translation");null!==s&&(n.style.transform="translateX(".concat(s,"%)")),this.div=r}},{key:"render",value:function(t){if(!t)return this.div;document.querySelector(t).appendChild(this.div)}}],e&&o(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e}()},7258:(t,e,r)=>{r.d(e,{b:()=>f});var n=r(2332),o=r(1382);function i(t){return i="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},i(t)}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 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,l(n.key),n)}}function l(t){var e=function(t){if("object"!=i(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==i(e)?e:e+""}function c(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(c=function(){return!!t})()}function u(t){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},u(t)}function d(t,e){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},d(t,e)}var f=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=u(e),function(t,e){if(e&&("object"==i(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,c()?Reflect.construct(e,r||[],u(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&&d(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,o=document.createElement("div");o.classList.add("container"),o.style.display="grid",o.style.gridTemplateColumns="repeat(".concat(n,", 1fr)"),o.style.gridTemplateRows="repeat(".concat(r,", 1fr)"),o.style.width="100%",o.style.height="100vh";var i=t.map(function(t,e){return{row:Math.floor(r/2)+e,col:Math.floor(n/2)+e}});return t.forEach(function(o,a){var s=i[a],l=s.row,c=s.col,u=function(e){var r=0,n=0;return t.forEach(function(t,o){var a=t.weight,s=t.direction,l=i[e],c=i[o],u=l.col-c.col,d=l.row-c.row,f=a*(1/(Math.sqrt(u*u+d*d)+1));switch(s){case"L":r-=f;break;case"R":r+=f;break;case"U":n-=f;break;case"B":n+=f}}),{forceX:r,forceY:n}}(a),d=u.forceX,f=u.forceY;c=Math.max(1,Math.min(n,c+Math.round(d))),l=Math.max(1,Math.min(r,l+Math.round(f)));var p=e.items.filter(function(t){return t.id===o.attract.slice(1)})[0].render();p.style.gridRowStart=l,p.style.gridColumnStart=c,p.style.display="flex",p.style.alignItems="center",p.style.justifyContent="center",p.style.fontWeight="bold",e.res.appendChild(p)}),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 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}}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,s=!0,l=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return s=t.done,t},e:function(t){l=!0,i=t},f:function(){try{s||null==r.return||r.return()}finally{if(l)throw i}}}}(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),this}},{key:"toCode",value:function(){if(this.excludeFromCodeTrue)return[""];var t=(0,o.sy)(this.options,4),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(!t)return this.res;document.querySelector(t).appendChild(this.res)}}],n&&s(r.prototype,n),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n}(n.y)},7698:(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 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,i(n.key),n)}}function i(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 s(t){return s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},s(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,{t:()=>c});var c=function(t){function e(){var t,r,o,i;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(r=this,o=e,o=s(o),t=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)}(r,a()?Reflect.construct(o,i||[],s(r).constructor):o.apply(r,i)))._noTheme=!0,t.gridContainer=document.createElement("div"),t.gridContainer.classList.add("grid-container"),t.gridContainer.style.display="grid",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,i=[{key:"set",value:function(t){return t.gap&&(this.gridContainer.style.gap=t.gap),t.height&&(this.gridContainer.style.height=t.height),t.width&&(this.gridContainer.style.width=t.width),this}},{key:"react",value:function(t){var e=this,r=function(){for(var r=0;r<t.length-1;r++){var n=parseInt(t[r].at),o=parseInt(t[r+1].at);if(window.innerWidth>n&&window.innerWidth<o){var i=t[r].template.map(function(t){return t.split("").join(" ")}).map(function(t){return'"'.concat(t,'"')}).join(" ");e.gridContainer.style.gridTemplateAreas=i}else if(window.innerWidth>o){var a=t[t.length-1].template.map(function(t){return t.split("").join(" ")}).map(function(t){return'"'.concat(t,'"')}).join(" ");e.gridContainer.style.gridTemplateAreas=a}}};return r(),window.addEventListener("resize",r),this}},{key:"add",value:function(t){for(var e=function(t){for(var e=[],r=0;r<t;r++){var n="",o=r;do{n=String.fromCharCode(65+o%26)+n,o=Math.floor(o/26)-1}while(o>=0);e.push(n)}return e}(t.length),r=0;r<t.length;r++){var n=t[r].render();n.style.gridArea=e[r].toLowerCase();var o=document.createElement("div");o.textContent=t[r].text,o.style.gridArea=e[r].toLowerCase(),this.gridContainer.appendChild(n)}return this}},{key:"render",value:function(t){return t&&document.querySelector(t).appendChild(this.gridContainer),this.gridContainer}},{key:"toCode",value:function(){return"new Simple().set({}).react([])"}}],i&&o(r.prototype,i),c&&o(r,c),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,i,c}(r(2332).y)},7879:(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 o(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 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&&t&&"number"==typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,l=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return s=t.done,t},e:function(t){l=!0,a=t},f:function(){try{s||null==r.return||r.return()}finally{if(l)throw a}}}}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 a(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 l(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(l=function(){return!!t})()}function c(t){return c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},c(t)}function u(t,e){return u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},u(t,e)}r.d(e,{f:()=>d});var d=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=c(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,l()?Reflect.construct(e,r||[],c(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&&u(t,e)}(e,t),r=e,(i=[{key:"setup",value:function(t){return this.obj=t,this.setTags(this.obj.tags),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){var e=this;this.closed=!this.closed;var r=this.res.children[0];if(this.closed)if(r.style.overflowX="hidden",t.style.opacity=1,this.animate){this.ope=r.animate([{transform:"translateX(0)"},{transform:"translateX(100%)"}],{duration:300,fill:"forwards"}),this.ope.finished.then(function(){var t=new CustomEvent(e.obj.tags.close);window.dispatchEvent(t)});var n,i=-1,a=o(r.children);try{for(a.s();!(n=a.n()).done;){var s=n.value;if(i+=1,this.masterEL[i]){var l,c=o(s.children);try{for(c.s();!(l=c.n()).done;){var u=l.value,d=this.masterEL[i].options.animation;d&&this.mappedIDS.includes(u.id)&&u.animate(d.op.keyframesClose,d.op.closeOptions)}}catch(t){c.e(t)}finally{c.f()}}}}catch(t){a.e(t)}finally{a.f()}}else r.style.display="none";else{r.style.overflowX="none";var f,p=-1,h=o(r.children);try{for(h.s();!(f=h.n()).done;){var y=f.value;p+=1;var m,b=o(y.children);try{for(b.s();!(m=b.n()).done;){var v=m.value;if(this.mappedIDS.includes(v.id)&&void 0!==this.masterEL[0]){var g=this.masterEL[p].options.animation;if(g){var w=g.op.openOptions;w.delay||(w.delay=1),w.duration||(w.duration=300),v.animate(g.op.keyframesOpen,w)}}}}catch(t){b.e(t)}finally{b.f()}}}catch(t){h.e(t)}finally{h.f()}t.style.opacity=0,this.animate?(r.style.display="flex",this.opeClose=r.animate([{transform:"translateX(100%)"},{transform:"translateX(0)"}],{duration:300,fill:"forwards"}),this.opeClose.finished.then(function(){var t=new CustomEvent(e.obj.tags.open);window.dispatchEvent(t)})):r.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",this.obj.fixed&&(e.style.position="fixed"),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 o=this.createToggleButton(this.obj.hamColour.opened),i=this.createCloseButton(this.obj.hamColour.closed);return o.addEventListener("click",function(){return e.toggleSideNav(o)}),i.addEventListener("click",function(){return e.toggleSideNav(o)}),n.appendChild(i),r.appendChild(n),r.appendChild(o),r}},{key:"items",value:function(t){this.masterEL=t.items.filter(function(t){return void 0!==t.link});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]){var r=this.masterEL[0].options.animation;if(r){var n,i=o(this.res.children[0].children);try{for(i.s();!(n=i.n()).done;){var a,s=o(n.value.children);try{for(s.s();!(a=s.n()).done;){var l=a.value;this.mappedIDS.includes(l.id)&&(r.op.closeOptions.delay=0,l.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}}])&&a(r.prototype,i),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,i}(r(2332).y)},7926:(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 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,i(n.key),n)}}function i(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 s(t){return s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},s(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,{B:()=>c});var c=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=s(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||[],s(t).constructor):e.apply(t,r))}(this,e))._noTheme=!0,r.res=null,r.st=t,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&&l(t,e)}(e,t),r=e,(i=[{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)}}])&&o(r.prototype,i),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,i}(r(2332).y)},8424:(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 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,i(n.key),n)}}function i(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 s(t){return s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},s(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,{$:()=>c});var c=function(t){function e(t,r){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=s(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||[],s(t).constructor):e.apply(t,r))}(this,e)).text=t,o.res=null,o.val=r,o.setup(),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&&l(t,e)}(e,t),r=e,(i=[{key:"setup",value:function(t){return this}},{key:"set",value:function(t){this.options=t;var e=document.createElement("button");if(e.style.background="transparent",e.style.border="none",t.img)e.append(t.img.render());else if(t.svg)if("string"==typeof t.svg){var r=(new DOMParser).parseFromString(t.svg,"image/svg+xml").documentElement;e.appendChild(r)}else t.svg instanceof SVGElement&&e.appendChild(t.svg);else if(t.url&&!t.img){var n,o,i=document.createElement("img");i.setAttribute("src",t.url),i.style.width=(null===(n=t.frame)||void 0===n?void 0:n.width)||"50px",i.style.height=(null===(o=t.frame)||void 0===o?void 0:o.height)||"50px",e.appendChild(i)}else{var a=document.createTextNode(this.text.replace("$",this.val));e.appendChild(a)}return this.res=e,this.commonMethods(t),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.deprecatedOption("padding","pad"),this.pad([{a:t.padding}])),t.margin&&(this.deprecatedOption("margin","mar"),this.mar([{a:t.margin}])),t.respad&&this.respad(t.respad),t.resmar&&this.resmar(t.resmar),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.keySet&&this.keySet(t.keySet),t.align&&(this.res.style.textAlign=t.align),t.weight&&(this.res.style.fontWeight=t.weight),t.bold&&(this.res.style.fontWeight="bold"),t.width&&(this.res.style.width=t.width),t.exact&&(this.res.style.fontSize=t.exact),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 o=document.createTextNode(this.text);this.res.appendChild(o),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 i=document.createTextNode(this.text);this.res.appendChild(i),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 a=document.createTextNode(this.text);this.res.appendChild(a),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:"borderRadius",value:function(t){return this.res.style.borderRadius=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?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:"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)}}])&&o(r.prototype,i),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,i}(r(2332).y)},8597:(t,e,r)=>{function n(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"value",n=function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:2,n=String(t);return e.filter(function(t){return function(t,e){if(t===e)return 0;for(var r=new Array(e.length+1),n=0;n<=e.length;n++)r[n]=n;for(var o=1;o<=t.length;o++){for(var i=[o],a=1;a<=e.length;a++){var s=t.charCodeAt(o-1)===e.charCodeAt(a-1)?0:1;i[a]=Math.min(r[a]+1,i[a-1]+1,r[a-1]+s)}r=i}return r[e.length]}(n,t)<=r})}(t,e),o="Unknown ".concat(r,' "').concat(t,'".');return n.length&&(o+=' Did you mean "'.concat(n[0],'"?')),e.length&&(o+=" Valid ".concat(r,"s: ").concat(e.join(", "),".")),o}r.d(e,{au:()=>n})},8807:(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 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,i(n.key),n)}}function i(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 a=function(){return t=function t(e,r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.obj=e||{},this.items=r||[]},(e=[{key:"render",value:function(){var t=document.createElement("div");t.style.display="flex",t.style.width="100%",t.style.justifyContent="space-around",t.setAttribute("id","innerItemsWrapper");var e=window.matchMedia("(max-device-width: 415px)"),r=window.matchMedia("(max-width: 600px)");(e.matches||r.matches)&&(t.style.marginTop="3rem");for(var n=0;n<this.items.length;n++){var o=this.items[n];t.appendChild(o.render())}var i=document.createElement("div");return i.style.width=this.obj.isSide?"333px":"100%",i.style.background=this.obj.background||"white",i.style.display="flex",i.style.justifyContent="center",i.style.alignItems="center",i.style.height="100%",i.setAttribute("id","outerItemsWrapper"),i.appendChild(t),this.obj.customStyle&&(t.style.width="auto",t.style.top="0rem",t.style.borderRadius="1rem",t.style.background=this.obj.background||"white",t.style.margin="1rem",t.style.position="absolute",t.style.opacity=.8),i}}])&&o(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e}();"undefined"!=typeof window&&(window.CustomDivRenderer=a)},9110:(t,e,r)=>{r.d(e,{Ko:()=>N});var n=r(5594),o=["kind","formId"];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,o,i,a,s=[],l=!0,c=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==e);l=!0);}catch(t){c=!0,o=t}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(t,e)||h(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){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 s(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?a(Object(r),!0).forEach(function(e){l(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):a(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function l(t,e,r){return(e=function(t){var e=function(t){if("object"!=m(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=m(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==m(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function c(t){if(null!=t){var e=t["function"==typeof Symbol&&Symbol.iterator||"@@iterator"],r=0;if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length))return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}}}throw new TypeError(m(t)+" is not iterable")}function u(){var t,e,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function i(r,n,o,i){var l=n&&n.prototype instanceof s?n:s,c=Object.create(l.prototype);return d(c,"_invoke",function(r,n,o){var i,s,l,c=0,u=o||[],d=!1,f={p:0,n:0,v:t,a:p,f:p.bind(t,4),d:function(e,r){return i=e,s=0,l=t,f.n=r,a}};function p(r,n){for(s=r,l=n,e=0;!d&&c&&!o&&e<u.length;e++){var o,i=u[e],p=f.p,h=i[2];r>3?(o=h===n)&&(l=i[(s=i[4])?5:(s=3,3)],i[4]=i[5]=t):i[0]<=p&&((o=r<2&&p<i[1])?(s=0,f.v=n,f.n=i[1]):p<h&&(o=r<3||i[0]>n||n>h)&&(i[4]=r,i[5]=n,f.n=h,s=0))}if(o||r>1)return a;throw d=!0,n}return function(o,u,h){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&p(u,h),s=u,l=h;(e=s<2?t:l)||!d;){i||(s?s<3?(s>1&&(f.n=-1),p(s,l)):f.n=l:f.v=l);try{if(c=2,i){if(s||(o="next"),e=i[o]){if(!(e=e.call(i,l)))throw TypeError("iterator result is not an object");if(!e.done)return e;l=e.value,s<2&&(s=0)}else 1===s&&(e=i.return)&&e.call(i),s<2&&(l=TypeError("The iterator does not provide a '"+o+"' method"),s=1);i=t}else if((e=(d=f.n<0)?l:r.call(n,f))!==a)break}catch(e){i=t,s=1,l=e}finally{c=1}}return{value:e,done:d}}}(r,o,i),!0),c}var a={};function s(){}function l(){}function c(){}e=Object.getPrototypeOf;var f=[][n]?e(e([][n]())):(d(e={},n,function(){return this}),e),p=c.prototype=s.prototype=Object.create(f);function h(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,c):(t.__proto__=c,d(t,o,"GeneratorFunction")),t.prototype=Object.create(p),t}return l.prototype=c,d(p,"constructor",c),d(c,"constructor",l),l.displayName="GeneratorFunction",d(c,o,"GeneratorFunction"),d(p),d(p,o,"Generator"),d(p,n,function(){return this}),d(p,"toString",function(){return"[object Generator]"}),(u=function(){return{w:i,m:h}})()}function d(t,e,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(t){o=0}d=function(t,e,r,n){if(e)o?o(t,e,{value:r,enumerable:!n,configurable:!n,writable:!n}):t[e]=r;else{var i=function(e,r){d(t,e,function(t){return this._invoke(e,r,t)})};i("next",0),i("throw",1),i("return",2)}},d(t,e,r,n)}var f=u().m(w);function p(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=h(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return a=t.done,t},e:function(t){s=!0,i=t},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw i}}}}function h(t,e){if(t){if("string"==typeof t)return y(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)?y(t,e):void 0}}function y(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 m(t){return m="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},m(t)}var b=new Set(["input","labelInput","checkbox","radio","picker"]),v={text:{type:"string"},email:{type:"string",format:"email"},tel:{type:"string"},url:{type:"string",format:"uri"},number:{type:"number"},password:{type:"string"},date:{type:"string",format:"date"},time:{type:"string",format:"time"},search:{type:"string"}},g=function(t){return!!t&&"object"===m(t)};function w(t){var e,r,n,o,i;return u().w(function(a){for(;;)switch(a.p=a.n){case 0:if(g(t)){a.n=1;break}return a.a(2);case 1:return a.n=2,t;case 2:e=Array.isArray(t.children)?t.children:[],r=p(e),a.p=3,r.s();case 4:if((n=r.n()).done){a.n=6;break}return o=n.value,a.d(c(w(o)),5);case 5:a.n=4;break;case 6:a.n=8;break;case 7:a.p=7,i=a.v,r.e(i);case 8:return a.p=8,r.f(),a.f(8);case 9:return a.a(2)}},f,null,[[3,7,8,9]])}function _(t){var e,r="string"==typeof t.name?t.name:t.id;if("string"!=typeof r||!r)return null;if("checkbox"===t.type)e={type:"boolean"};else if("radio"===t.type||"picker"===t.type){var n=Array.isArray(t.items)?t.items.filter(function(t){return"string"==typeof t}):[];e=n.length?{type:"string",enum:n}:{type:"string"},"radio"===t.type&&!0===t.multiple&&(e={type:"array",items:e})}else e=s({},v[t.inputType]||v.text);var o=[t.label,t.placeholder,t.title].find(function(t){return"string"==typeof t&&t.trim()});return o&&(e.description=o.trim()),{key:r,schema:e,required:!0===t.required}}function k(t){return t.routes.map(function(t){var e=t.to.map(function(t){return t.label?"".concat(t.label," → ").concat(t.to):t.to}).join(", ");return"from ".concat(t.from,": ").concat(e)}).join("; ")}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 x(){var t,e,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function i(r,n,o,i){var l=n&&n.prototype instanceof s?n:s,c=Object.create(l.prototype);return S(c,"_invoke",function(r,n,o){var i,s,l,c=0,u=o||[],d=!1,f={p:0,n:0,v:t,a:p,f:p.bind(t,4),d:function(e,r){return i=e,s=0,l=t,f.n=r,a}};function p(r,n){for(s=r,l=n,e=0;!d&&c&&!o&&e<u.length;e++){var o,i=u[e],p=f.p,h=i[2];r>3?(o=h===n)&&(l=i[(s=i[4])?5:(s=3,3)],i[4]=i[5]=t):i[0]<=p&&((o=r<2&&p<i[1])?(s=0,f.v=n,f.n=i[1]):p<h&&(o=r<3||i[0]>n||n>h)&&(i[4]=r,i[5]=n,f.n=h,s=0))}if(o||r>1)return a;throw d=!0,n}return function(o,u,h){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&p(u,h),s=u,l=h;(e=s<2?t:l)||!d;){i||(s?s<3?(s>1&&(f.n=-1),p(s,l)):f.n=l:f.v=l);try{if(c=2,i){if(s||(o="next"),e=i[o]){if(!(e=e.call(i,l)))throw TypeError("iterator result is not an object");if(!e.done)return e;l=e.value,s<2&&(s=0)}else 1===s&&(e=i.return)&&e.call(i),s<2&&(l=TypeError("The iterator does not provide a '"+o+"' method"),s=1);i=t}else if((e=(d=f.n<0)?l:r.call(n,f))!==a)break}catch(e){i=t,s=1,l=e}finally{c=1}}return{value:e,done:d}}}(r,o,i),!0),c}var a={};function s(){}function l(){}function c(){}e=Object.getPrototypeOf;var u=[][n]?e(e([][n]())):(S(e={},n,function(){return this}),e),d=c.prototype=s.prototype=Object.create(u);function f(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,c):(t.__proto__=c,S(t,o,"GeneratorFunction")),t.prototype=Object.create(d),t}return l.prototype=c,S(d,"constructor",c),S(c,"constructor",l),l.displayName="GeneratorFunction",S(c,o,"GeneratorFunction"),S(d),S(d,o,"Generator"),S(d,n,function(){return this}),S(d,"toString",function(){return"[object Generator]"}),(x=function(){return{w:i,m:f}})()}function S(t,e,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(t){o=0}S=function(t,e,r,n){if(e)o?o(t,e,{value:r,enumerable:!n,configurable:!n,writable:!n}):t[e]=r;else{var i=function(e,r){S(t,e,function(t){return this._invoke(e,r,t)})};i("next",0),i("throw",1),i("return",2)}},S(t,e,r,n)}function j(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 E(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?j(Object(r),!0).forEach(function(e){C(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):j(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function C(t,e,r){return(e=function(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+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function P(t){return function(t){if(Array.isArray(t))return I(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||M(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.")}()}function T(t,e,r,n,o,i,a){try{var s=t[i](a),l=s.value}catch(t){return void r(t)}s.done?e(l):Promise.resolve(l).then(n,o)}function A(t){return function(){var e=this,r=arguments;return new Promise(function(n,o){var i=t.apply(e,r);function a(t){T(i,n,o,a,s,"next",t)}function s(t){T(i,n,o,a,s,"throw",t)}a(void 0)})}}function R(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=M(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return a=t.done,t},e:function(t){s=!0,i=t},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw i}}}}function M(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}}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}var D="2026-07-21",L="nodality-agent-manifest",W=function(t){var e=String(t);return"undefined"!=typeof CSS&&"function"==typeof CSS.escape?CSS.escape(e):e.replace(/([^a-zA-Z0-9_-])/g,"\\$1")};function B(t){if(!t)return{text:"",actions:[]};var e,r=function(t){var e=getComputedStyle(t);if("none"===e.display||"0"===e.opacity)return!1;var r=t.getBoundingClientRect();return r.width>0&&r.height>0},n=[],o=R(t.querySelectorAll("h1,h2,h3,h4,h5,h6,p,li"));try{for(o.s();!(e=o.n()).done;){var i=e.value;if(r(i)){var a=(i.textContent||"").replace(/\s+/g," ").trim();if(a){var s=i.tagName.toLowerCase();n.push(/^h[1-6]$/.test(s)?"".concat("#".repeat(+s[1])," ").concat(a):a)}}}}catch(t){o.e(t)}finally{o.f()}var l,c=[],u=R(t.querySelectorAll("a,button,[role=button]"));try{for(u.s();!(l=u.n()).done;){var d=l.value;if(r(d)){var f=(d.textContent||"").replace(/\s+/g," ").trim();f&&!c.includes(f)&&c.push(f)}}}catch(t){u.e(t)}finally{u.f()}return{text:n.join("\n"),actions:c}}var z=function(t,e,r){return{ok:!1,code:t,got:e,valid:r}};function N(t){var e=t.mount,r=t.elements,a=t.nodes,l=t.morphs,c=function(t,e){var r=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).specDraft,a=void 0===r?null:r,l=(Array.isArray(e)?e:[]).find(function(t){return g(t)&&"agent-surface"===t.op});if(!l)return null;var c,u=function(t){var e,r=[],n=p(Array.isArray(t)?t:[]);try{for(n.s();!(e=n.n()).done;){var o,i=p(w(e.value));try{for(i.s();!(o=i.n()).done;){var a=o.value;r.push(a)}}catch(t){i.e(t)}finally{i.f()}}}catch(t){n.e(t)}finally{n.f()}return r}(t),d=new Map,f=p(u);try{for(f.s();!(c=f.n()).done;){var m=c.value;"string"==typeof m.id&&d.set(m.id,m)}}catch(t){f.e(t)}finally{f.f()}var v=new Set((Array.isArray(l.exclude)?l.exclude:[]).filter(function(t){return"string"==typeof t})),O="string"==typeof l.name&&l.name.trim()?l.name.trim().replace(/[^a-zA-Z0-9_-]/g,"_"):null,x=function(t){return O?"".concat(O,"_").concat(t):t},S=[],j=function(t,e){var r=(Array.isArray(t)?t:[]).filter(function(t){return g(t)&&"morph"===t.op});if(!r.length)return null;var o,a,s=[],l=p(r);try{for(l.s();!(o=l.n()).done;){var c,u=o.value,d=p((0,n.G)(u));try{for(d.s();!(c=d.n()).done;){var f=c.value;"string"==typeof f.from&&s.push(f)}}catch(t){d.e(t)}finally{d.f()}}}catch(t){l.e(t)}finally{l.f()}if(!s.length)return null;for(var m=s[0].from,b=function(t){return s.filter(function(e){return e.from===t})},v=new Set([m]),w=[m];w.length;){var _,k=p(b(w.shift()));try{for(k.s();!(_=k.n()).done;){var O,x=p(_.value.toIds);try{for(x.s();!(O=x.n()).done;){var S=O.value;"string"!=typeof S||v.has(S)||(v.add(S),w.push(S))}}catch(t){x.e(t)}finally{x.f()}}}catch(t){k.e(t)}finally{k.f()}}for(var j=[],E=0,C=s;E<C.length;E++){var P=C[E];if(v.has(P.from)&&!e.has(P.from)){var T=[];if(P.byLabel)for(var A=0,R=Object.entries(P.byLabel);A<R.length;A++){var M=i(R[A],2),I=M[0],D=M[1],L="string"==typeof D&&D.startsWith("#")?D.slice(1):D;e.has(L)||T.push({label:I,to:L})}else{var W,B=p(P.toIds);try{for(B.s();!(W=B.n()).done;){var z=W.value;e.has(z)||T.push({label:null,to:z})}}catch(t){B.e(t)}finally{B.f()}}T.length&&j.push({from:P.from,to:T,back:!0===P.back})}}for(var N=[],q=0,F=j;q<F.length;q++){var U,H=p(F[q].to);try{for(H.s();!(U=H.n()).done;){var K=U.value;N.includes(K.to)||N.push(K.to)}}catch(t){H.e(t)}finally{H.f()}}return{root:m,states:[m].concat((a=N.filter(function(t){return t!==m}),function(t){if(Array.isArray(t))return y(t)}(a)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(a)||h(a)||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.")}())),destinations:N,routes:j,canGoBack:j.some(function(t){return t.back})}}(e,v);if(j){var E=j.destinations.filter(function(t){return!v.has(t)});E.length&&S.push({name:x("navigate"),kind:"navigate",description:"Move to another view of this page. These are in-page views reached by a transition, not separate URLs. Routes: "+k(j)+".",inputSchema:{type:"object",properties:{destination:{type:"string",enum:E,description:"The view to move to."}},required:["destination"]}}),j.canGoBack&&S.push({name:x("go_back"),kind:"back",description:"Return to the previous view, unwinding the path actually taken rather than following an edge.",inputSchema:{type:"object",properties:{}}})}var C,P=p((Array.isArray(l.forms)?l.forms:[]).filter(function(t){return"string"==typeof t}));try{for(P.s();!(C=P.n()).done;){var T=C.value,A=d.get(T);if(A&&"form"===A.type){var R,M={},I=[],D=p(w(A));try{for(D.s();!(R=D.n()).done;){var L=R.value;if(b.has(L.type)){var W=_(L);W&&!M[W.key]&&(M[W.key]=W.schema,W.required&&I.push(W.key))}}}catch(t){D.e(t)}finally{D.f()}Object.keys(M).length&&S.push({name:x("submit_".concat(T.replace(/[^a-zA-Z0-9_-]/g,"_"))),kind:"submit",formId:T,description:"string"==typeof A.title&&A.title.trim()?A.title.trim():'Fill and submit the "'.concat(T,'" form on this page.'),inputSchema:s({type:"object",properties:M},I.length?{required:I}:{})})}}}catch(t){P.e(t)}finally{P.f()}S.push({name:x("read_view"),kind:"read",description:"Read the content currently on screen as structured text: headings, body text and the labels of anything actionable.",inputSchema:{type:"object",properties:{}}});var B=s({spec:a,tools:S.map(function(t){return t.kind,t.formId,function(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if({}.hasOwnProperty.call(t,n)){if(-1!==e.indexOf(n))continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],-1===e.indexOf(r)&&{}.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}(t,o)})},j?{views:{root:j.root,states:j.states.filter(function(t){return!v.has(t)}),routes:j.routes}}:{});return{tools:S,manifest:B}}(r,a,{specDraft:D});if(!c)return null;var u=c.tools,d=c.manifest,f=Array.isArray(l)?l.filter(Boolean):[],m=function(t){return f.find(function(e){return e.states&&e.states.has(t)})||null},v=function(){var t,r=R(f);try{for(r.s();!(t=r.n()).done;){var n=t.value,o=n.states&&null!=n.current?n.states.get(n.current):null;if(o)return o}}catch(t){r.e(t)}finally{r.f()}return e},O=function(t){var r=function(e){if(!e||"function"!=typeof e.querySelector)return null;if(e.id===t)return"FORM"===e.tagName?e:e.querySelector("form");var r=e.querySelector("#".concat(W(t)));return r?"FORM"===r.tagName?r:r.querySelector("form"):null},n=r(e);if(n)return n;var o,i=R(f);try{for(i.s();!(o=i.n()).done;){var a=o.value;if(a.states){var s,l=R(a.states.values());try{for(l.s();!(s=l.n()).done;){var c=r(s.value);if(c)return c}}catch(t){l.e(t)}finally{l.f()}}}}catch(t){i.e(t)}finally{i.f()}return null};if("undefined"!=typeof document){var S=document.getElementById(L);S&&S.remove();var j=document.createElement("script");j.type="application/json",j.id=L,j.textContent=JSON.stringify(d,null,2),(document.body||document.documentElement).appendChild(j)}var C,T=R(u);try{for(T.s();!(C=T.n()).done;){var M=C.value;if("submit"===M.kind&&e){var I=O(M.formId);I&&(I.setAttribute("toolname",M.name),I.setAttribute("tooldescription",M.description))}}}catch(t){T.e(t)}finally{T.f()}var N,q,F=Promise.resolve(),U=function(t){var e=F.then(t,t);return F=e.then(function(){},function(){}),e},H=function(){var t,e=R(f);try{for(e.s();!(t=e.n()).done;){var r=t.value;if(null!=r.current)return r.current}}catch(t){e.e(t)}finally{e.f()}return null},K={navigate:function(){var t=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).destination;return U(A(x().m(function r(){var n,o,i;return x().w(function(r){for(;;)switch(r.n){case 0:if(n=m(t)){r.n=1;break}return r.a(2,z("UNKNOWN_VIEW",t,f.flatMap(function(t){return P(t.states.keys())})));case 1:return o=n.current,r.n=2,n.goToState(t);case 2:if(n.current===t){r.n=3;break}return i=P(n.states.keys()),r.a(2,z("UNREACHABLE_FROM_HERE",t,i.filter(function(t){return t!==o})));case 3:return r.a(2,E({ok:!0,view:n.current},B(n.states.get(n.current)||e)))}},r)})))},back:function(){return U(A(x().m(function t(){var r;return x().w(function(t){for(;;)switch(t.n){case 0:if(r=f.find(function(t){return t.history&&t.history.length})){t.n=1;break}return t.a(2,z("NO_HISTORY",null,[]));case 1:return t.n=2,r.goBack();case 2:return t.a(2,E({ok:!0,view:r.current},B(r.states.get(r.current)||e)))}},t)})))},read:(q=A(x().m(function t(){return x().w(function(t){for(;;)if(0===t.n)return t.a(2,E({ok:!0,view:H()},B(v())))},t)})),function(){return q.apply(this,arguments)}),submit:(N=A(x().m(function t(){var e,r,n,o,i,a,s,l,c,u,d,f=arguments;return x().w(function(t){for(;;)switch(t.n){case 0:if(e=f.length>0&&void 0!==f[0]?f[0]:{},n=O((r=f.length>1?f[1]:void 0).formId)){t.n=1;break}return t.a(2,z("NO_FORM",r.formId,[]));case 1:if(o=r.inputSchema&&r.inputSchema.properties||{},i=r.inputSchema&&r.inputSchema.required||[],!(a=i.filter(function(t){return void 0===e[t]||""===e[t]||null===e[t]})).length){t.n=2;break}return t.a(2,z("MISSING_REQUIRED",a,Object.keys(o)));case 2:s=[],l=0,c=Object.keys(o);case 3:if(!(l<c.length)){t.n=7;break}if(u=c[l],void 0!==e[u]){t.n=4;break}return t.a(3,6);case 4:if(d=n.querySelector('[name="'.concat(u,'"], #').concat(CSS.escape(u)))){t.n=5;break}return t.a(3,6);case 5:"checkbox"===d.type?d.checked=!!e[u]:d.value=String(e[u]),d.dispatchEvent(new Event("input",{bubbles:!0})),d.dispatchEvent(new Event("change",{bubbles:!0})),s.push(u);case 6:l++,t.n=3;break;case 7:return"function"==typeof n.requestSubmit?n.requestSubmit():n.submit(),t.a(2,{ok:!0,submitted:r.formId,filled:s})}},t)})),function(){return N.apply(this,arguments)})},J="undefined"!=typeof document&&document.modelContext?document.modelContext:"undefined"!=typeof navigator&&navigator.modelContext?navigator.modelContext:null,$=!1;if(J&&"function"==typeof J.registerTool){var G,V=R(u);try{var Q=function(){var t=G.value;try{J.registerTool({name:t.name,description:t.description,inputSchema:t.inputSchema,execute:function(e){return K[t.kind](e,t)}}),$=!0}catch(e){console.warn("[nodality] agent surface: tool rejected",t.name,e)}};for(V.s();!(G=V.n()).done;)Q()}catch(t){V.e(t)}finally{V.f()}}return{manifest:d,tools:u,registered:$,destroy:function(){if(J&&"function"==typeof J.unregisterTool){var t,e=R(u);try{for(e.s();!(t=e.n()).done;){var r=t.value;try{J.unregisterTool(r.name)}catch(t){}}}catch(t){e.e(t)}finally{e.f()}}if("undefined"!=typeof document){var n=document.getElementById(L);n&&n.remove()}}}}},9290:(t,e,r)=>{r(2332)},9310:(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 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,i(n.key),n)}}function i(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 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=l(t)););return t}(t,e);if(n){var o=Object.getOwnPropertyDescriptor(n,e);return o.get?o.get.call(arguments.length<3?t:r):o.value}},s.apply(null,arguments)}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,{Z:()=>u});var u=function(t){function e(t,r){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=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)).text=t,o.url=r,o.setup(),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,i=[{key:"getType",value:function(){return"LayoutWrapperElement"}},{key:"setup",value:function(){window.matchMedia("(max-device-width: 415px)");var t=document.createElement("div");return t.style.display="flex",t.style.flexDirection="column",t.style.alignItems="center",t.style.backgroundColor="#fff",t.style.fontFamily="Arial",t.style.width="100%",t.style.overflow="hidden",this.res=t,this}},{key:"set",value:function(t){return this.obj=t,t.onTap&&this.onTap(t.onTap),t.background&&(this.res.style.background=t.background),t.border&&(this.res.style.border=t.border),t.radius&&(this.res.style.borderRadius=t.radius),t.width&&(this.res.style.width=t.width),this.options=t,this.callReact(t),this.commonMethods(t),this}},{key:"callReact",value:function(t){var r,n,o,i=[];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,"radial"===t.gradient.op.direction&&(this.globalGradient="radial-gradient(circle at center, orange, green)")),t.stroke&&(r=e,n=this,"function"==typeof(o=s(l(1&3?r.prototype:r),"setAny",n))?function(t){return o.apply(n,t)}:o)([{globalBlast:"".concat(t.stroke.op.width," ").concat(t.stroke.op.color)}]),t.span&&(t.span.prevText=this.text);var a=[t.stroke,t.gradient,t.animation,t.span,t.backgroundOp,t.layout,t.marginOp,t.shadow,t.animation,t.filtera,t.transform];a=a.filter(function(t){return null!=t});for(var c=0;c<a.length;c++)i.push({range:a[c].range,log:a[c].op.name,target:a[c].target,op:a[c].op});var u=[];t.borderObj&&u.push("border"),t.backgroundOp&&u.push("background"),t.mar&&u.push("margin"),t.animation&&u.push("animation"),t.span&&u.push("span"),u.push("border"),this.chainReact(i,this.options.id,u)}}},{key:"frame",value:function(t){return t.height&&(this.res.style.height=t.height),t.width&&(this.res.style.width=t.width),this}},{key:"items",value:function(t){for(var e=0;e<t.length;e++)this.res.appendChild(t[e].render());return this}},{key:"shadow",value:function(){return this.res.style.boxShadow="1px 1px 20px rgba(0, 0, 0, 0.60)",this}},{key:"render",value:function(t){if(!t)return this.res;document.querySelector(t).appendChild(this.res)}}],i&&o(r.prototype,i),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,i}(r(2332).y)},9383:(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 o(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 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,a(n.key),n)}}function a(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 l(t,e,r,n){var o=c(u(1&n?t.prototype:t),e,r);return 2&n&&"function"==typeof o?function(t){return o.apply(r,t)}:o}function c(){return c="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,r){var n=function(t,e){for(;!{}.hasOwnProperty.call(t,e)&&null!==(t=u(t)););return t}(t,e);if(n){var o=Object.getOwnPropertyDescriptor(n,e);return o.get?o.get.call(arguments.length<3?t:r):o.value}},c.apply(null,arguments)}function u(t){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},u(t)}function d(t,e){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},d(t,e)}r.d(e,{_:()=>f});var f=function(t){function e(t,r,o,i){var a;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(a=function(t,e,r){return e=u(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||[],u(t).constructor):e.apply(t,r))}(this,e)).url=t,a.res=null,a.code=[],a}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&&d(t,e)}(e,t),r=e,a=[{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 o='new Image("'.concat(this.url,'", "uncover")');this.code.push(o)}else this.code.push("new Image('".concat(this.url,"')"));return this.image(this.url,r,e),this}},{key:"hand",value:function(){return this.res.style.cursor="hand",this}},{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,o,i,a,s=[],l=!0,c=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==e);l=!0);}catch(t){c=!0,o=t}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(t,e)||function(t,e){if(t){if("string"==typeof t)return o(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)?o(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;n.onTap&&this.onTap(n.onTap);var o=t.isFull;if(o?this.image(t.url,"exact",o,"a"):this.setup(),t.url&&this.res.setAttribute("src",t.url),"IMG"===this.res.tagName&&(t.srcset&&this.res.setAttribute("srcset",t.srcset),t.sizes&&this.res.setAttribute("sizes",t.sizes),void 0!==t.alt&&this.res.setAttribute("alt",t.alt),t.loading&&this.res.setAttribute("loading",t.loading),t.decoding&&this.res.setAttribute("decoding",t.decoding),t.fetchPriority&&this.res.setAttribute("fetchpriority",t.fetchPriority)),t.id&&this.res.setAttribute("id",t.id),t.id&&(r+=' id: "'.concat(t.id,'", \n')),this.id=t.id,"exact"===o?'new Image("'.concat(this.url,'", "exact")'):"uncover"===o&&'new Image("'.concat(this.url,'", "uncover")'),this.commonMethods(n),t.vtn&&(this.res.style.viewTransitionName=t.vtn),this.vtn=t.vtn,t.minHeight&&(this.res.style.minHeight=t.minHeight),t.index&&l(e,"setIndex",this,3)([t.index]),t.index&&(this.index=t.index),t.index&&(r+='\n index: "'.concat(t.index,'",')),t.resprop&&this.resprop(t.resprop),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.objectPosition&&(this.res.style.objectPosition=t.objectPosition),t.objectPosition&&(r+='\n objectPosition: "'.concat(t.objectPosition,'",')),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)?n.filtera.filter(function(t){return"filter"===t.op.name})[0]:t.filtera;var a=this.removeQuotesFromFirstWord(JSON.stringify(i));r+="\n filtera: ".concat(a,", \n")}if(t.keySet&&this.keySet(t.keySet),t.stype&&this.setType(t.stype),t.isBackground&&(this.isBackground=t.isBackground),t.zIndex&&(r+='\n zIndex: "'.concat(t.zIndex,'", \n')),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.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 s=this.removeQuotesFromFirstWord(JSON.stringify(t.marginOp));r+="\n marginOp: ".concat(s,",")}if(t.clipPath&&this.clipPath(t.clipPath),t.clipPath&&(r+='clipPath: "'.concat(t.clipPath,'", \n')),n.stroke||n.gradient||n.span||n.backgroundOp||n.layout||n.marginOp||n.shadow||n.filtera||n.animation){n.gradient,n.gradient&&(this.globalGradient=n.gradient.op.gradient),n.stroke&&l(e,"setAny",this,3)([{globalBlast:"".concat(n.stroke.op.width," ").concat(n.stroke.op.color)}]);var c=[n.stroke,n.gradient,n.animation,n.span,n.backgroundOp,n.layout,n.marginOp,n.shadow,n.filtera,n.animation];c=c.filter(function(t){return null!=t});for(var u=[],d=0;d<c.length;d++)u.push({range:c[d].range,log:c[d].op.name,target:c[d].target,op:c[d].op});this.chainReact(u,this.options.id)}if(n.shadow){var f=n.shadow,p=this.removeQuotesFromFirstWord(JSON.stringify(f));r+="\n shadow: ".concat(p,",")}if(n.animation){var h=n.animation,y=this.removeQuotesFromFirstWord(JSON.stringify(h));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:"setID",value:function(t){return null!=t&&this.res.setAttribute("id",t),this}},{key:"opacity",value:function(t){return this.res.style.opacity="".concat(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:"setClass",value:function(t){return this.res.setAttribute("class",t),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:"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,o){var i=window.matchMedia("(max-device-width: 415px)"),a=document.createElement("div");return a.style.viewTransitionName=n,a.style.width="100%",a.style.height=this.options.height?this.options.height:"400px",o&&(a.style.gridColumn=o.gridColumn,a.style.gridRow=o.gridRow),i.matches&&(a.style.height="500"),a.style.backgroundImage="url(".concat(t,")"),a.style.backgroundPosition="center center",a.style.backgroundRepeat="no-repeat",a.style.backgroundSize="cover","uncover"===r&&(a.style.backgroundSize="contain"),"contain"===e&&(a.style.backgroundSize="contain"),this.res=a,this}},{key:"setup",value:function(){var t=document.createElement("img");return t.style.width="100%",t.src=this.url,this.res=t,this}},{key:"float",value:function(t){return this.res.style.float="".concat(t),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 o=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(o,"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:"dimensions",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:"size",value:function(t,e){return this.deprecatedOption("size() on this component","dimensions(w, h)"),this.dimensions(t,e)}},{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:"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:"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)}}],a&&i(r.prototype,a),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,a}(r(2332).y)},9521:(t,e,r)=>{r.d(e,{m:()=>f});var n=r(2332),o=r(1382);function i(t){return i="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},i(t)}function a(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"!=i(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==i(e)?e:e+""}function l(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(l=function(){return!!t})()}function c(){return c="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,r){var n=function(t,e){for(;!{}.hasOwnProperty.call(t,e)&&null!==(t=u(t)););return t}(t,e);if(n){var o=Object.getOwnPropertyDescriptor(n,e);return o.get?o.get.call(arguments.length<3?t:r):o.value}},c.apply(null,arguments)}function u(t){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},u(t)}function d(t,e){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},d(t,e)}var f=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=u(e),function(t,e){if(e&&("object"==i(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,l()?Reflect.construct(e,r||[],u(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&&d(t,e)}(e,t),r=e,n=[{key:"removeQuotesFromFirstWord",value:function(t){if(t)return t.replace((0,o._H)(),"$1:")}},{key:"toCode",value:function(){var t=this.items.map(function(t){return t.toCode()}).flatMap(function(t){return t}),e=(this.removeQuotesFromFirstWord(JSON.stringify(this.obj)),'\nbackground: "'.concat(this.obj.background,'",\nbrand: ').concat(this.obj.brand.toCode(),",\nmar: ").concat(JSON.stringify(this.obj.mar),",\npad: ").concat(JSON.stringify(this.obj.pad),",\nresmar: ").concat(JSON.stringify(this.obj.resmar),",\nrespad: ").concat(JSON.stringify(this.obj.respad),",\nradius: ").concat(JSON.stringify(this.obj.radius),",\n"));return"new MobileBar().set({".concat(e,"}).add([\n ").concat(t.join(","),"\n\n ])")}},{key:"set",value:function(t){var r,n,o;return this.obj=t,this.obj=t,this.makeNavbar(t),t.mar&&(r=e,n=this,"function"==typeof(o=c(u(1&3?r.prototype:r),"mar",n))?function(t){return o.apply(n,t)}:o)([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,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"),t.brand&&"function"==typeof r.render&&(console.log("Appending brand:",r.render()),this.brand.appendChild(r.render())),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:"#34495e",this.toggleButton.style.fontSize="1.5rem",this.toggleButton.style.cursor="pointer",this.navContent.style.display="none"}},{key:"add",value:function(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&&a(r.prototype,n),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n}(n.y)},9668:(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 o(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 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,a(n.key),n)}}function a(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,{l:()=>s}),r(2332);var s=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,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())}),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,o,i,a,s=[],l=!0,c=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==e);l=!0);}catch(t){c=!0,o=t}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(t,e)||function(t,e){if(t){if("string"==typeof t)return o(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)?o(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["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),t.id&&(this.formElement.id=t.id),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&&i(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e}()},9793:(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 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,i(n.key),n)}}function i(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 s(t){return s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},s(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,{C:()=>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=s(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||[],s(t).constructor):e.apply(t,r))}(this,e))._noTheme=!0,t.oldLength=0,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,(i=[{key:"observe",value:function(t){return this.initialState=t,this.Proxima(t)}},{key:"Proxima",value:function(t){var e=this;return new Proxy(t,{set:function(t,r,n){return t[r]=n,e.initialState&&e.initialState.data&&"function"==typeof e.initialState.data.push&&e.initialState.data.push(r),"length"!==r&&e.refreshUI("Added"),!0},has:function(t,r){return"length"!==r&&e.refreshUI("Deleted"),Reflect.has(t,r)}})}},{key:"refreshUI",value:function(t){var e=this.initialState;this.adjustState(e)}},{key:"loadState",value:function(t,e){return this.loadEl=e,this.initialState=t,this.observe(this.state.data)}},{key:"adjustState",value:function(t){document.querySelector(this.loadEl);var e=t[t.length-1],r=document.createElement("p"),n=document.createTextNode(e);r.appendChild(n),document.body.appendChild(r)}},{key:"mount",value:function(t){this.res=t,this.render(t).render(t)}},{key:"toCode",value:function(){return[""]}}])&&o(r.prototype,i),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,i}(r(2332).y)},9800:(t,e,r)=>{r.d(e,{t:()=>y});var n=r(2332),o=r(1382);function i(t){return i="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},i(t)}function a(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 s(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?a(Object(r),!0).forEach(function(e){l(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):a(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function l(t,e,r){return(e=u(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}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"!=i(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==i(e)?e:e+""}function d(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(d=function(){return!!t})()}function f(){return f="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,r){var n=function(t,e){for(;!{}.hasOwnProperty.call(t,e)&&null!==(t=p(t)););return t}(t,e);if(n){var o=Object.getOwnPropertyDescriptor(n,e);return o.get?o.get.call(arguments.length<3?t:r):o.value}},f.apply(null,arguments)}function p(t){return p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},p(t)}function h(t,e){return h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},h(t,e)}var y=function(t){function e(){var t,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};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=p(e),function(t,e){if(e&&("object"==i(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||[],p(t).constructor):e.apply(t,r))}(this,e)).res=null,t.options={},t.code=[],t.elCSS=[],t.html=[],t.react=[],t.setup(r),t.code.push("new Polygon(".concat(JSON.stringify(r),")")),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&&h(t,e)}(e,t),r=e,n=[{key:"setup",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=document.createElement("div");return t.id&&e.setAttribute("id",t.id),this.res=e,this.res.style.padding=0,this.res.style.margin=0,this.res.style.display=t.inline?"inline-block":"block",this}},{key:"toCode",value:function(){var t=this.options||{},e=(0,o.sy)(t,2);return"new Polygon().set(".concat(e,")")}},{key:"getType",value:function(){return"LayoutWrapperElement"}},{key:"set",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.options=s(s({},this.options),t),t.id&&(this.res.id=t.id),t.class&&(this.res.className=t.class),t.sides&&this.sides(t.sides),t.size&&this.size(t.size.width||t.size,t.size.height),t.color&&this.color(t.color),t.border&&this.border(t.border),t.margin&&this.mar([{a:t.margin}]),t.padding&&this.pad([{a:t.padding}]),t.background&&this.background(t.background),t.center&&this.center();var r=t;this.obj=t;var n,o,i,a=[];if(r.stroke||r.gradient||r.backgroundOp||r.layout||r.marginOp||r.shadow||r.animation||r.filtera||r.transform){var l;r.gradient&&(this.globalGradient=r.gradient.op.gradient),r.stroke&&(null===(n=e,o=this,l="function"==typeof(i=f(p(1&3?n.prototype:n),"setAny",o))?function(t){return i.apply(o,t)}:i)||void 0===l||l([{globalBlast:"".concat(r.stroke.op.width," ").concat(r.stroke.op.color)}]));for(var c=[r.stroke,r.gradient,r.animation,r.backgroundOp,r.layout,r.marginOp,r.shadow,r.animation,r.filtera,r.transform].filter(function(t){return null!=t}),u=0;u<c.length;u++)a.push({range:c[u].range,log:c[u].op.name,target:c[u].target,op:c[u].op});var d=[];r.border&&d.push("border"),r.background&&d.push("background"),(r.mar||r.margin)&&d.push("margin"),r.animation&&d.push("animation"),"radial"===r.gradient.op.direction&&(this.globalGradient="radial-gradient(circle at center, orange, green)"),this.chainReact(a,this.options.id,d)}return this}},{key:"size",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t;return this.res.style.width="number"==typeof t?t+"px":t,this.res.style.height="number"==typeof e?e+"px":e,this}},{key:"sides",value:function(t){return t<3&&(t=3),this.res.style.clipPath=e.makePolygon(t),this}},{key:"color",value:function(t){return this.res.style.color=t,this}},{key:"border",value:function(t){return this.res.style.border="string"==typeof t?t:"".concat((null==t?void 0:t.width)||"1px"," solid ").concat((null==t?void 0:t.color)||"black"),this}},{key:"background",value:function(t){return this.res.style.background=t,this}},{key:"render",value:function(t){return"string"==typeof t?document.querySelector(t).appendChild(this.res):t instanceof HTMLElement&&t.appendChild(this.res),this}}],a=[{key:"makePolygon",value:function(t){for(var e=2*Math.PI/t,r=[],n=0;n<t;n++){var o=50+50*Math.cos(n*e-Math.PI/2),i=50+50*Math.sin(n*e-Math.PI/2);r.push("".concat(o,"% ").concat(i,"%"))}return"polygon(".concat(r.join(","),")")}}],n&&c(r.prototype,n),a&&c(r,a),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,a}(n.y)},9828:(t,e,r)=>{var n,o;t.exports=(n={RASTER_OP_NAMES:()=>__WEBPACK_EXTERNAL_MODULE__lib_raster_ops_js_a0b88e38__.RASTER_OP_NAMES,activeRasterPipelines:()=>__WEBPACK_EXTERNAL_MODULE__lib_raster_ops_js_a0b88e38__.activeRasterPipelines,applyRasterPipeline:()=>__WEBPACK_EXTERNAL_MODULE__lib_raster_ops_js_a0b88e38__.applyRasterPipeline},o={},r.d(o,n),o)},9932:(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 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,i(n.key),n)}}function i(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 s(t){return s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},s(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,{I:()=>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=s(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||[],s(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&&l(t,e)}(e,t),r=e,(i=[{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 o=document.createElement("input");o.setAttribute("type","file"),o.setAttribute("name",t.name),t.accept&&(o.accept=t.accept),void 0!==t.id&&null!==t.id&&o.setAttribute("id",t.id),o.style.visibility="hidden",o.style.display="none",window.matchMedia("(max-device-width: 415px)").matches&&(o.style.fontSize="1rem");var i=document.createElement("label");return i.setAttribute("for",t.id),i.innerText=t.title,i.style.marginRight=12,i.style.padding="0.5em",t.color&&(i.style.color=t.color),t.background&&(i.style.background=t.background,i.style.padding="10"),o.addEventListener("change",function(){n.style.display="block",t.hideField&&(n.style.display="none"),i.innerText="Change",e.file=o.files[0],e.onLoad(e.file),u[t.index]=e.file,n.setAttribute("value",e.file.name),n.setAttribute("readonly","true"),e.getLoaded(),e.highlight()}),r.appendChild(o),r.appendChild(i),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}}])&&o(r.prototype,i),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,i}(r(2332).y),u=[]}},__nodality_wp_module_cache__={};function __nodality_wp_require__(t){var e=__nodality_wp_module_cache__[t];if(void 0!==e)return e.exports;var r=__nodality_wp_module_cache__[t]={exports:{}};return __nodality_wp_modules__[t](r,r.exports,__nodality_wp_require__),r.exports}__nodality_wp_require__.d=(t,e)=>{for(var r in e)__nodality_wp_require__.o(e,r)&&!__nodality_wp_require__.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},__nodality_wp_require__.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var __nodality_wp_exports__={};__nodality_wp_require__.d(__nodality_wp_exports__,{H:()=>Des});var _lib_element_mapper_js__WEBPACK_IMPORTED_MODULE_0__=__nodality_wp_require__(849),_lib_morph_node_js__WEBPACK_IMPORTED_MODULE_1__=__nodality_wp_require__(5594),_lib_webmcp_adapter_js__WEBPACK_IMPORTED_MODULE_2__=__nodality_wp_require__(9110),_layout_animator_js__WEBPACK_IMPORTED_MODULE_3__=__nodality_wp_require__(2332),_layout_base_js__WEBPACK_IMPORTED_MODULE_4__=__nodality_wp_require__(9793),_layout_text_js__WEBPACK_IMPORTED_MODULE_5__=__nodality_wp_require__(6131),_layout_image_js__WEBPACK_IMPORTED_MODULE_6__=__nodality_wp_require__(9383),_layout_link_js__WEBPACK_IMPORTED_MODULE_7__=__nodality_wp_require__(7108),_layout_flex_row_js__WEBPACK_IMPORTED_MODULE_8__=__nodality_wp_require__(3050),_layout_nav_factor_custom_div_js__WEBPACK_IMPORTED_MODULE_9__=__nodality_wp_require__(8807),_layout_new_nav_bar_js__WEBPACK_IMPORTED_MODULE_10__=__nodality_wp_require__(3440),_layout_side_bar_js__WEBPACK_IMPORTED_MODULE_11__=__nodality_wp_require__(5367),_layout_side_nav_bar_js__WEBPACK_IMPORTED_MODULE_12__=__nodality_wp_require__(7879),_layout_free_js__WEBPACK_IMPORTED_MODULE_13__=__nodality_wp_require__(7258),_layout_audio_js__WEBPACK_IMPORTED_MODULE_14__=__nodality_wp_require__(3420),_layout_progress_js__WEBPACK_IMPORTED_MODULE_15__=__nodality_wp_require__(827),_layout_center_js__WEBPACK_IMPORTED_MODULE_16__=__nodality_wp_require__(1873),_layout_code_js__WEBPACK_IMPORTED_MODULE_17__=__nodality_wp_require__(2789),_layout_stack_js__WEBPACK_IMPORTED_MODULE_18__=__nodality_wp_require__(7926),_layout_container_js__WEBPACK_IMPORTED_MODULE_19__=__nodality_wp_require__(153),_layout_meta_adder_js__WEBPACK_IMPORTED_MODULE_20__=__nodality_wp_require__(1980),_layout_table_js__WEBPACK_IMPORTED_MODULE_21__=__nodality_wp_require__(6182),_layout_dropdown_2025_js__WEBPACK_IMPORTED_MODULE_22__=__nodality_wp_require__(3665),_layout_modal_2025_js__WEBPACK_IMPORTED_MODULE_23__=__nodality_wp_require__(3243),_layout_text_field_js__WEBPACK_IMPORTED_MODULE_24__=__nodality_wp_require__(3014),_layout_flex_card_js__WEBPACK_IMPORTED_MODULE_25__=__nodality_wp_require__(9310),_layout_wrap_js__WEBPACK_IMPORTED_MODULE_26__=__nodality_wp_require__(1632),_layout_flex_grid_js__WEBPACK_IMPORTED_MODULE_27__=__nodality_wp_require__(5860),_layout_zoom_card_js__WEBPACK_IMPORTED_MODULE_28__=__nodality_wp_require__(4550),_layout_simple_bar_js__WEBPACK_IMPORTED_MODULE_29__=__nodality_wp_require__(9290),_layout_beta_desktop_bar_js__WEBPACK_IMPORTED_MODULE_30__=__nodality_wp_require__(2387),_layout_beta_mobile_bar_js__WEBPACK_IMPORTED_MODULE_31__=__nodality_wp_require__(9521),_layout_multiswitcher_js__WEBPACK_IMPORTED_MODULE_32__=__nodality_wp_require__(1236),_layout_spacer_js__WEBPACK_IMPORTED_MODULE_33__=__nodality_wp_require__(3180),_layout_horizontal_scroller_js__WEBPACK_IMPORTED_MODULE_34__=__nodality_wp_require__(7135),_layout_checkbox_js__WEBPACK_IMPORTED_MODULE_35__=__nodality_wp_require__(1557),_layout_video_js__WEBPACK_IMPORTED_MODULE_36__=__nodality_wp_require__(2689),_layout_ulist_js__WEBPACK_IMPORTED_MODULE_37__=__nodality_wp_require__(4617),_layout_slider_2025_js__WEBPACK_IMPORTED_MODULE_38__=__nodality_wp_require__(1353),_layout_form_components_floating_input_js__WEBPACK_IMPORTED_MODULE_39__=__nodality_wp_require__(3257),_layout_form_components_range_js__WEBPACK_IMPORTED_MODULE_40__=__nodality_wp_require__(5613),_layout_form_components_radio_js__WEBPACK_IMPORTED_MODULE_41__=__nodality_wp_require__(1371),_layout_form_components_picker_js__WEBPACK_IMPORTED_MODULE_42__=__nodality_wp_require__(2588),_layout_form_components_image_picker_js__WEBPACK_IMPORTED_MODULE_43__=__nodality_wp_require__(9932),_layout_form_components_data_list_js__WEBPACK_IMPORTED_MODULE_44__=__nodality_wp_require__(6679),_layout_form_components_form_js__WEBPACK_IMPORTED_MODULE_45__=__nodality_wp_require__(9668),_layout_button_js__WEBPACK_IMPORTED_MODULE_46__=__nodality_wp_require__(8424),_lib_link_getter_js__WEBPACK_IMPORTED_MODULE_47__=__nodality_wp_require__(2027),_lib_card_getter_js__WEBPACK_IMPORTED_MODULE_48__=__nodality_wp_require__(4753),_layout_grid_switcher_js__WEBPACK_IMPORTED_MODULE_49__=__nodality_wp_require__(7698),_layout_polygon_js__WEBPACK_IMPORTED_MODULE_50__=__nodality_wp_require__(9800),_layout_circle_js__WEBPACK_IMPORTED_MODULE_51__=__nodality_wp_require__(5632);function _construct(t,e,r){if(_isNativeReflectConstruct())return Reflect.construct.apply(null,arguments);var n=[null];n.push.apply(n,e);var o=new(t.bind.apply(t,n));return r&&_setPrototypeOf(o,r.prototype),o}function _setPrototypeOf(t,e){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},_setPrototypeOf(t,e)}function _isNativeReflectConstruct(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(_isNativeReflectConstruct=function(){return!!t})()}function ownKeys(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 _objectSpread(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?ownKeys(Object(r),!0).forEach(function(e){_defineProperty(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ownKeys(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function _defineProperty(t,e,r){return(e=_toPropertyKey(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}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" }, mar: { "t": 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 AreaSwitcher()\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){Array.isArray(this.options)||(this.options=[]),Array.isArray(this.protoOptions)||(this.protoOptions=[]);var e=Des.cloneNodes([t])[0];return this.options.push(e),this.protoOptions.push(e),this}},{key:"nodes",value:function(t){return this.options=Des.cloneNodes(t),this.protoOptions=Des.cloneNodes(t),this}},{key:"getElType",value:function(t){return"p"===t?"S6":"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._elements=Array.isArray(arr)?arr:[],this.css=[],this.elCSS=[],this.elHTML=[];var customOptions=this.options;customOptions.forEach(function(t){"radial"===t.direction&&(t.gradient="radial-gradient(orange, green)")}),arr=[].concat(_toConsumableArray(arr.filter(function(t){return t&&("nav"===t.type||"sideNav"===t.type)})),_toConsumableArray(arr.filter(function(t){return!t||"nav"!==t.type&&"sideNav"!==t.type})));for(var _loop=function _loop(){var el=arr[i],ela=null,ops=["blast","gradient","shadow","filter","animation","transform","span"],replacementObjects=[{op:{name:"blast",color:"green",width:"1px"}},{op:{name:"gradient",gradient:"linear-gradient(orange, green)"}},{op:{name:"shadow",color:"#1abc9c",steps:3,colors:["orange","green","yellow"]}},{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(3deg)","skew(3deg, 0deg)","perspective(100px)","matrix(1, 0, 0, 1, 50, 50)"]}},{op:{name:"span",parts:[{text:"The first time",style:{italic:!0,arrpad:{sides:["left"],value:"3rem"},stroke:{range:["950px","1000px"],op:{name:"blast",background:["header","button"],color:"yellow",width:"1px"}}}},{text:"We went to the Moon",style:{}}]}}];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,color=customOptions[index].color,width=customOptions[index].width,as=Des.cloneNodes([replacementObjects[q]])[0];as.target=target,null!=range&&(as.range=range),null!=filter&&(as.op.filter=filter),null!=gradient&&(as.op.gradient=gradient),"blast"===ops[q]&&(null!=color&&(as.op.color=color),null!=width&&(as.op.width=width)),customOptions[index]=as}}for(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=[],_customOptions$q,_customOptions$q2,_customOptions$q3;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","tx:30px","rotate(3deg)","skew(40deg, 0deg)"],customOptions[q].op={name:"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],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}}}function replaceMedium(t){for(var e=0,r=Object.keys(t);e<r.length;e++){var n=r[e];if("object"===_typeof(t[n])&&null!==t[n])replaceMedium(t[n]);else if("string"==typeof t[n])switch(t[n].toLowerCase()){case"medium":t[n]="6s-ease-in-out";break;case"fast":t[n]="3s-ease-in-out";break;case"slow":t[n]="9s-ease-in-out";break;case"default":delete t[n]}}}replaceMedium(customOptions);var matchEls=["h1","h2","h3","h4","h5","h6","p"].includes(el.type)||"img"===el.type||"a"===el.type;matchEls?(ela=_lib_element_mapper_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?(ela=_lib_element_mapper_js__WEBPACK_IMPORTED_MODULE_0__.I.mapType({el,customOptions,i,storage:_this.stor}),_this.code.push(ela.toCode())):"slider"===el.type?_this.code.push(' \nlet texts = [\n\nnew Text("One").set({size: "S1", color: "#1abc9c", font: "Arial"}),\n /*new Image().set({\n url: "https://image.datart.cz/foto/500/7/0/8/product_7766807.jpg",\n width: "400px",\n height: "auto"\n }),*/\n\n new Text("Two").set({size: "S1", color: "#1abc9c", font: "Arial"}),\n \n new Text("Three").set({size: "S1", color: "#1abc9c", font: "Arial"}),\n\n new Text("Four").set({size: "S1", color: "#1abc9c", font: "Arial"}),\n];\n\nnew Slider(texts, null, { tintColor: "#e74c3c", inactiveColor: "#ccc" })\n \n'):"hslider"===el.type?_this.code.push('\n new HScroller()\n .seto({\n height: "300px",\n speed: 1.0 // the bigger the slower\n })\n .add([\n new Text("First").set({size: "S1", pad: [{"a": 40}] }),\n new Text("Second").set({size: "S1", pad: [{"a": 40}] }),\n new Text("Third").set({size: "S1", pad: [{"a": 40}] })\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/modal-2025.js";\n import {Stack} from "../layout/stack.js";\n import {Image} from "../layout/image.js";\n import {FlexRow} from "../layout/flex-row.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?(ela=_lib_element_mapper_js__WEBPACK_IMPORTED_MODULE_0__.I.mapType({el,customOptions,i,storage:_this.stor}),_this.code.push(ela.toCode())):"cards"===el.type?(ela=_lib_element_mapper_js__WEBPACK_IMPORTED_MODULE_0__.I.mapType({el,customOptions,i,storage:_this.stor}),_this.code.push(ela)):"wrap"===el.type?(ela=_lib_element_mapper_js__WEBPACK_IMPORTED_MODULE_0__.I.mapType({el,customOptions,i,storage:_this.stor}),_this.code.push(ela.toCode()),_this.ready2Render.push(ela)):"responsive"===el.type?_this.code.push(_this.stor.complex.code):"free"===el.type||"nav"===el.type||"sideNav"===el.type||"dropdown"===el.type?(ela=_lib_element_mapper_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()):(ela=_lib_element_mapper_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(t){var e=t||"#mount",r=document.createElement("textarea");r.style.width=300,r.style.height=300,r.setAttribute("id","elements"),r.value=this.code.join(""),this.target="#elements";var n=document.createElement("pre"),o=document.createElement("code"),i=this.code.map(function(t){return"".concat(t,'.render("').concat(e,'"); \n \n')});return this.code=i,o.textContent=this.code,n.appendChild(o),n.setAttribute("class","nonLayout"),document.body.appendChild(n),document.body.appendChild(r),this._codeEl=r,this._preEl=n,this}},{key:"set",value:function(t){if("undefined"!=typeof globalThis&&!0===globalThis.NODALITY_EMIT){var e=this.code.map(function(e){return"".concat(e,'.render("').concat(t&&t.mount||"#mount",'")')});return globalThis.__NODALITY_EMITTED__=e,this}this.toTextArea(t&&t.mount),this._codeEl.style.display="none",this._preEl.style.display="block",!1===t.elements&&(this._preEl.style.display="none"),!1===t.layout&&null!=document.querySelector("#layoutPre")&&(document.querySelector("#layoutPre").style.display="none"),!1===t.code&&(this._preEl.style.display="none");for(var r={Text:_layout_text_js__WEBPACK_IMPORTED_MODULE_5__.E,Image:_layout_image_js__WEBPACK_IMPORTED_MODULE_6__._,Link:_layout_link_js__WEBPACK_IMPORTED_MODULE_7__.N,FlexRow:_layout_flex_row_js__WEBPACK_IMPORTED_MODULE_8__.Y,UINavBar:_layout_new_nav_bar_js__WEBPACK_IMPORTED_MODULE_10__.X,Free:_layout_free_js__WEBPACK_IMPORTED_MODULE_13__.b,Audio:_layout_audio_js__WEBPACK_IMPORTED_MODULE_14__.f,Progress:_layout_progress_js__WEBPACK_IMPORTED_MODULE_15__.k,Center:_layout_center_js__WEBPACK_IMPORTED_MODULE_16__.o,Code:_layout_code_js__WEBPACK_IMPORTED_MODULE_17__.C,Stack:_layout_stack_js__WEBPACK_IMPORTED_MODULE_18__.B,Wrapper:_layout_container_js__WEBPACK_IMPORTED_MODULE_19__.m,MetaAdder:_layout_meta_adder_js__WEBPACK_IMPORTED_MODULE_20__.W,Table:_layout_table_js__WEBPACK_IMPORTED_MODULE_21__.X,Dropdown:_layout_dropdown_2025_js__WEBPACK_IMPORTED_MODULE_22__.m,Modal:_layout_modal_2025_js__WEBPACK_IMPORTED_MODULE_23__.a,TextField:_layout_text_field_js__WEBPACK_IMPORTED_MODULE_24__.A,Card:_layout_flex_card_js__WEBPACK_IMPORTED_MODULE_25__.Z,Wrap:_layout_wrap_js__WEBPACK_IMPORTED_MODULE_26__.B,FlexGrid:_layout_flex_grid_js__WEBPACK_IMPORTED_MODULE_27__.M,ZoomCard:_layout_zoom_card_js__WEBPACK_IMPORTED_MODULE_28__.U,Switcher:_layout_multiswitcher_js__WEBPACK_IMPORTED_MODULE_32__.i,MobileBar:_layout_beta_mobile_bar_js__WEBPACK_IMPORTED_MODULE_31__.m,DesktopBar:_layout_beta_desktop_bar_js__WEBPACK_IMPORTED_MODULE_30__.C,SideNav:_layout_side_nav_bar_js__WEBPACK_IMPORTED_MODULE_12__.f,Spacer:_layout_spacer_js__WEBPACK_IMPORTED_MODULE_33__.h,HScroller:_layout_horizontal_scroller_js__WEBPACK_IMPORTED_MODULE_34__.J,Polygon:_layout_polygon_js__WEBPACK_IMPORTED_MODULE_50__.t,Circle:_layout_circle_js__WEBPACK_IMPORTED_MODULE_51__.j,UList:_layout_ulist_js__WEBPACK_IMPORTED_MODULE_37__.e},n={FloatingInput:_layout_form_components_floating_input_js__WEBPACK_IMPORTED_MODULE_39__.l,Range:_layout_form_components_range_js__WEBPACK_IMPORTED_MODULE_40__.Q,RadioGroup:_layout_form_components_radio_js__WEBPACK_IMPORTED_MODULE_41__.z,Picker:_layout_form_components_picker_js__WEBPACK_IMPORTED_MODULE_42__.L,FilePickera:_layout_form_components_image_picker_js__WEBPACK_IMPORTED_MODULE_43__.I,DataList:_layout_form_components_data_list_js__WEBPACK_IMPORTED_MODULE_44__.T,Base:_layout_base_js__WEBPACK_IMPORTED_MODULE_4__.C,Form:_layout_form_components_form_js__WEBPACK_IMPORTED_MODULE_45__.l,Button:_layout_button_js__WEBPACK_IMPORTED_MODULE_46__.$,Slider:_layout_slider_2025_js__WEBPACK_IMPORTED_MODULE_38__.A,Video:_layout_video_js__WEBPACK_IMPORTED_MODULE_36__.C,Checkbox:_layout_checkbox_js__WEBPACK_IMPORTED_MODULE_35__.S},o={ElementMapper:_lib_element_mapper_js__WEBPACK_IMPORTED_MODULE_0__.I,Animator:_layout_animator_js__WEBPACK_IMPORTED_MODULE_3__.y,LinkStyler:_lib_link_getter_js__WEBPACK_IMPORTED_MODULE_47__.a,CardGen:_lib_card_getter_js__WEBPACK_IMPORTED_MODULE_48__.Z,AreaSwitcher:_layout_grid_switcher_js__WEBPACK_IMPORTED_MODULE_49__.t},i=_objectSpread(_objectSpread(_objectSpread({},r),n),o),a=0;a<this.code.length;a++){var s=this.code[a];_construct(Function,_toConsumableArray(Object.keys(i)).concat([s])).apply(void 0,_toConsumableArray(Object.values(i)))}try{var l=document.querySelector(t&&t.mount||"#mount");this._morphs=(0,_lib_morph_node_js__WEBPACK_IMPORTED_MODULE_1__.A)(l,this._elements,this.protoOptions)}catch(t){console.warn("[nodality] morph node skipped:",t)}try{this._agentSurface=(0,_lib_webmcp_adapter_js__WEBPACK_IMPORTED_MODULE_2__.Ko)({mount:document.querySelector(t&&t.mount||"#mount"),elements:this._elements,nodes:this.protoOptions,morphs:this._morphs})}catch(t){console.warn("[nodality] agent surface skipped:",t)}}}],[{key:"cloneNodes",value:function(t){if(!Array.isArray(t))return[];try{if("function"==typeof structuredClone)return structuredClone(t)}catch(t){}var e=function(t){if(Array.isArray(t))return t.map(e);if(t&&"object"===_typeof(t)){var r={};for(var n in t)r[n]=e(t[n]);return r}return t};return t.map(e)}}])}();const __nodality_wp_exports__Des=__nodality_wp_exports__.H;export{__nodality_wp_exports__Des as Des};