nodality 1.0.84 → 1.0.104

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 (335) hide show
  1. package/dist/animator.cjs.js +1 -2
  2. package/dist/animator.esm.js +1 -2
  3. package/dist/appleanim.cjs.js +1 -1
  4. package/dist/appleanim.esm.js +1 -1
  5. package/dist/audionew.cjs.js +1 -2
  6. package/dist/audionew.esm.js +1 -2
  7. package/dist/base.cjs.js +0 -1
  8. package/dist/base.esm.js +1 -2
  9. package/dist/beta-desktop-bar.cjs.js +1 -0
  10. package/dist/beta-desktop-bar.esm.js +1 -0
  11. package/dist/beta-mobile-bar.cjs.js +1 -0
  12. package/dist/beta-mobile-bar.esm.js +1 -0
  13. package/dist/betaDesktopBar.esm.js +1 -1
  14. package/dist/betaMobileBar.esm.js +1 -1
  15. package/dist/bundle.umd.js +1 -2
  16. package/dist/button.cjs.js +1 -2
  17. package/dist/button.esm.js +1 -2
  18. package/dist/card-getter.cjs.js +1 -0
  19. package/dist/card-getter.esm.js +1 -0
  20. package/dist/cardGetter.esm.js +1 -1
  21. package/dist/center.cjs.js +1 -2
  22. package/dist/center.esm.js +1 -2
  23. package/dist/checkbox.cjs.js +1 -2
  24. package/dist/checkbox.esm.js +1 -2
  25. package/dist/code.cjs.js +1 -2
  26. package/dist/code.esm.js +1 -2
  27. package/dist/container.cjs.js +1 -2
  28. package/dist/container.esm.js +1 -2
  29. package/dist/data-list.cjs.js +1 -0
  30. package/dist/data-list.esm.js +1 -0
  31. package/dist/designer.cjs.js +1 -2
  32. package/dist/designer.esm.js +1 -2
  33. package/dist/dropdown.cjs.js +1 -2
  34. package/dist/dropdown.esm.js +1 -2
  35. package/dist/element-mapper.cjs.js +1 -0
  36. package/dist/element-mapper.esm.js +1 -0
  37. package/dist/elementMapper.cjs.js +1 -1
  38. package/dist/elementMapper.esm.js +1 -1
  39. package/dist/finalresult.esm.js +1 -2
  40. package/dist/flex-card.cjs.js +1 -0
  41. package/dist/flex-card.esm.js +1 -0
  42. package/dist/flex-grid.cjs.js +1 -0
  43. package/dist/flex-grid.esm.js +1 -0
  44. package/dist/flex-row.cjs.js +1 -0
  45. package/dist/flex-row.esm.js +1 -0
  46. package/dist/flexCard.cjs.js +1 -1
  47. package/dist/flexCard.esm.js +1 -1
  48. package/dist/floating-input.cjs.js +1 -0
  49. package/dist/floating-input.esm.js +1 -0
  50. package/dist/free.cjs.js +1 -2
  51. package/dist/free.esm.js +1 -2
  52. package/dist/horizontal-scroller.cjs.js +1 -0
  53. package/dist/horizontal-scroller.esm.js +1 -0
  54. package/dist/image-picker.cjs.js +1 -0
  55. package/dist/image-picker.esm.js +1 -0
  56. package/dist/image.cjs.js +1 -2
  57. package/dist/image.esm.js +1 -2
  58. package/dist/index.cjs.js +1 -2
  59. package/dist/index.esm.js +1 -2
  60. package/dist/keyframe-animation.cjs.js +1 -0
  61. package/dist/keyframe-animation.esm.js +1 -0
  62. package/dist/link-getter.cjs.js +1 -0
  63. package/dist/link-getter.esm.js +1 -0
  64. package/dist/link.cjs.js +1 -2
  65. package/dist/link.esm.js +1 -2
  66. package/dist/linkGetter.cjs.js +1 -1
  67. package/dist/linkGetter.esm.js +1 -1
  68. package/dist/meta-adder.cjs.js +1 -0
  69. package/dist/meta-adder.esm.js +1 -0
  70. package/dist/modal-2025.cjs.js +1 -0
  71. package/dist/modal-2025.esm.js +1 -0
  72. package/dist/multiswitcher.cjs.js +1 -0
  73. package/dist/multiswitcher.esm.js +1 -0
  74. package/dist/new-nav-bar.cjs.js +1 -0
  75. package/dist/new-nav-bar.esm.js +1 -0
  76. package/dist/picker.cjs.js +1 -2
  77. package/dist/picker.esm.js +1 -2
  78. package/dist/progress.cjs.js +1 -2
  79. package/dist/progress.esm.js +1 -2
  80. package/dist/radio.cjs.js +1 -2
  81. package/dist/radio.esm.js +1 -2
  82. package/dist/range.cjs.js +1 -2
  83. package/dist/range.esm.js +1 -2
  84. package/dist/scroll-video.cjs.js +1 -0
  85. package/dist/scroll-video.esm.js +1 -0
  86. package/dist/scrollvideo.cjs.js +1 -1
  87. package/dist/scrollvideo.esm.js +1 -1
  88. package/dist/side-bar.cjs.js +1 -0
  89. package/dist/side-bar.esm.js +1 -0
  90. package/dist/side-nav-bar.cjs.js +1 -0
  91. package/dist/side-nav-bar.esm.js +1 -0
  92. package/dist/simple-bar.cjs.js +1 -0
  93. package/dist/simple-bar.esm.js +1 -0
  94. package/dist/slider-2025.cjs.js +1 -0
  95. package/dist/slider-2025.esm.js +1 -0
  96. package/dist/spacer.cjs.js +0 -1
  97. package/dist/spacer.esm.js +1 -0
  98. package/dist/stack.cjs.js +1 -2
  99. package/dist/stack.esm.js +1 -2
  100. package/dist/stacker.cjs.js +1 -2
  101. package/dist/stacker.esm.js +1 -2
  102. package/dist/table.cjs.js +1 -2
  103. package/dist/table.esm.js +1 -2
  104. package/dist/text-field.cjs.js +1 -0
  105. package/dist/text-field.esm.js +1 -0
  106. package/dist/text.cjs.js +1 -2
  107. package/dist/text.esm.js +1 -2
  108. package/dist/transform-anim.cjs.js +1 -0
  109. package/dist/transform-anim.esm.js +1 -0
  110. package/dist/transformanim.cjs.js +1 -1
  111. package/dist/transformanim.esm.js +1 -1
  112. package/dist/ulist.cjs.js +1 -2
  113. package/dist/ulist.esm.js +1 -2
  114. package/dist/video.cjs.js +1 -0
  115. package/dist/video.esm.js +1 -2
  116. package/dist/wrap.cjs.js +0 -1
  117. package/dist/wrap.esm.js +1 -2
  118. package/dist/zoom-card.cjs.js +1 -0
  119. package/dist/zoom-card.esm.js +1 -0
  120. package/layout/animator.js +1 -1
  121. package/layout/audio.js +1 -1
  122. package/layout/audionew.js +1 -1
  123. package/layout/base-2.js +1 -1
  124. package/layout/base.js +1 -1
  125. package/layout/{betaDesktopBar.js → beta-desktop-bar.js} +1 -1
  126. package/layout/{betaMobileBar.js → beta-mobile-bar.js} +1 -1
  127. package/layout/box.js +1 -1
  128. package/layout/button.js +1 -1
  129. package/layout/cards.js +2 -1
  130. package/layout/center.js +1 -1
  131. package/layout/checkbox.js +1 -1
  132. package/layout/circle.js +1 -1
  133. package/layout/{cleanRow.js → clean-row.js} +1 -1
  134. package/layout/code.js +1 -1
  135. package/layout/container.js +1 -1
  136. package/layout/custom.js +1 -1
  137. package/layout/{divImage.js → div-image.js} +1 -1
  138. package/layout/{dropdown2025.js → dropdown-2025.js} +6 -1
  139. package/layout/dropdown.js +1 -1
  140. package/layout/{emptyElement.js → empty-element.js} +1 -1
  141. package/layout/{externalStylesheet.js → external-stylesheet.js} +1 -1
  142. package/layout/{flexCard.js → flex-card.js} +3 -1
  143. package/layout/{flexGrid.js → flex-grid.js} +1 -1
  144. package/layout/{flexrow.js → flex-row.js} +1 -1
  145. package/layout/footer.js +1 -1
  146. package/layout/{formComponents → form-components}/custom.js +1 -1
  147. package/layout/{formComponents/dataList.js → form-components/data-list.js} +1 -1
  148. package/layout/{formComponents/floatingInput.js → form-components/floating-input.js} +1 -1
  149. package/layout/{formComponents → form-components}/form-all.js +1 -1
  150. package/layout/{formComponents → form-components}/form.js +1 -1
  151. package/layout/{formComponents/imagePicker.js → form-components/image-picker.js} +1 -1
  152. package/layout/{formComponents → form-components}/picker.js +1 -1
  153. package/layout/{formComponents → form-components}/radio.js +1 -1
  154. package/layout/{formComponents → form-components}/radiogroup.js +1 -1
  155. package/layout/{formComponents → form-components}/range.js +1 -1
  156. package/layout/free.js +1 -1
  157. package/layout/grid-new.js +1 -1
  158. package/layout/{gridSwitcher.js → grid-switcher.js} +1 -1
  159. package/layout/grid.js +1 -1
  160. package/layout/group.js +1 -1
  161. package/layout/header.js +1 -1
  162. package/layout/{horizontalScroller.js → horizontal-scroller.js} +1 -1
  163. package/layout/image-old.js +1 -1
  164. package/layout/image.js +1 -1
  165. package/layout/index.js +49 -37
  166. package/layout/label.js +1 -1
  167. package/layout/link.js +1 -1
  168. package/layout/list-OLD.js +1 -1
  169. package/layout/list.js +1 -1
  170. package/layout/{metaAdder.js → meta-adder.js} +1 -1
  171. package/layout/{modal2025.js → modal-2025.js} +1 -1
  172. package/layout/modernwrap.js +1 -1
  173. package/layout/multiswitcher.js +1 -1
  174. package/layout/multiswitcherBeta.js +1 -1
  175. package/layout/{navBar.js → nav-bar.js} +1 -1
  176. package/layout/{navFactor/customDiv.js → nav-factor/custom-div.js} +1 -1
  177. package/layout/navBar-OLD.js +1 -1
  178. package/layout/{newFlatAdder.js → new-flat-adder.js} +1 -1
  179. package/layout/{newNavBar.js → new-nav-bar.js} +1 -1
  180. package/layout/{offsetContainer.js → offset-container.js} +1 -1
  181. package/layout/polygon.js +1 -1
  182. package/layout/progress.js +1 -1
  183. package/layout/row.js +1 -1
  184. package/layout/{savedNewNavBar.js → saved-new-nav-bar.js} +1 -1
  185. package/layout/{scrollvideo.js → scroll-video.js} +1 -1
  186. package/layout/{sideBar.js → side-bar.js} +1 -1
  187. package/layout/{sideNavBar.js → side-nav-bar.js} +1 -1
  188. package/layout/{simpleBar.js → simple-bar.js} +1 -1
  189. package/layout/{slider2025.js → slider-2025.js} +1 -1
  190. package/layout/spacer.js +1 -1
  191. package/layout/stack.js +1 -1
  192. package/layout/styler.js +1 -1
  193. package/layout/switcher.js +1 -1
  194. package/layout/table.js +1 -1
  195. package/layout/{textField.js → text-field.js} +1 -1
  196. package/layout/text.js +1 -1
  197. package/layout/ulist.js +1 -1
  198. package/layout/video.js +1 -1
  199. package/layout/{withoutNew.js → without-new.js} +1 -1
  200. package/layout/wrap.js +1 -1
  201. package/layout/{zoomCard.js → zoom-card.js} +1 -1
  202. package/lib/{cardGetter.js → card-getter.js} +1 -1
  203. package/lib/designer.js +49 -49
  204. package/lib/{elementMapper.js → element-mapper.js} +56 -37
  205. package/lib/{KeyframeAnimation.js → keyframe-animation.js} +1 -1
  206. package/lib/{linkGetter.js → link-getter.js} +1 -1
  207. package/lib/{scrollvideo.js → scroll-video.js} +1 -1
  208. package/lib/{Stacker.js → stacker.js} +2 -1
  209. package/lib/{TransformAnim.js → transform-anim.js} +1 -1
  210. package/package.json +4 -2
  211. package/dist/KeyframeAnimation.cjs.js +0 -2
  212. package/dist/KeyframeAnimation.cjs.js.LICENSE.txt +0 -5
  213. package/dist/KeyframeAnimation.esm.js +0 -2
  214. package/dist/KeyframeAnimation.esm.js.LICENSE.txt +0 -5
  215. package/dist/animator.cjs.js.LICENSE.txt +0 -5
  216. package/dist/animator.esm.js.LICENSE.txt +0 -5
  217. package/dist/appleanim.cjs.js.LICENSE.txt +0 -5
  218. package/dist/appleanim.esm.js.LICENSE.txt +0 -5
  219. package/dist/audionew.cjs.js.LICENSE.txt +0 -5
  220. package/dist/audionew.esm.js.LICENSE.txt +0 -5
  221. package/dist/base.cjs.js.LICENSE.txt +0 -5
  222. package/dist/base.esm.js.LICENSE.txt +0 -5
  223. package/dist/betaDesktopBar.esm.js.LICENSE.txt +0 -5
  224. package/dist/betaMobileBar.esm.js.LICENSE.txt +0 -5
  225. package/dist/bundle.umd.js.LICENSE.txt +0 -5
  226. package/dist/button.cjs.js.LICENSE.txt +0 -5
  227. package/dist/button.esm.js.LICENSE.txt +0 -5
  228. package/dist/cardGetter.cjs.js.LICENSE.txt +0 -5
  229. package/dist/cardGetter.esm.js.LICENSE.txt +0 -5
  230. package/dist/center.cjs.js.LICENSE.txt +0 -5
  231. package/dist/center.esm.js.LICENSE.txt +0 -5
  232. package/dist/checkbox.cjs.js.LICENSE.txt +0 -5
  233. package/dist/checkbox.esm.js.LICENSE.txt +0 -5
  234. package/dist/circle.cjs.js +0 -2
  235. package/dist/circle.cjs.js.LICENSE.txt +0 -5
  236. package/dist/circle.esm.js +0 -2
  237. package/dist/circle.esm.js.LICENSE.txt +0 -5
  238. package/dist/code.cjs.js.LICENSE.txt +0 -5
  239. package/dist/code.esm.js.LICENSE.txt +0 -5
  240. package/dist/container.cjs.js.LICENSE.txt +0 -5
  241. package/dist/container.esm.js.LICENSE.txt +0 -5
  242. package/dist/datalist.cjs.js.LICENSE.txt +0 -5
  243. package/dist/datalist.esm.js.LICENSE.txt +0 -5
  244. package/dist/designer.cjs.js.LICENSE.txt +0 -5
  245. package/dist/designer.esm.js.LICENSE.txt +0 -5
  246. package/dist/dropdown.cjs.js.LICENSE.txt +0 -5
  247. package/dist/dropdown.esm.js.LICENSE.txt +0 -5
  248. package/dist/elementMapper.cjs.js.LICENSE.txt +0 -5
  249. package/dist/elementMapper.esm.js.LICENSE.txt +0 -5
  250. package/dist/finalresult.esm.js.LICENSE.txt +0 -5
  251. package/dist/flexCard.cjs.js.LICENSE.txt +0 -5
  252. package/dist/flexCard.esm.js.LICENSE.txt +0 -5
  253. package/dist/flexGrid.cjs.js.LICENSE.txt +0 -5
  254. package/dist/flexGrid.esm.js.LICENSE.txt +0 -5
  255. package/dist/flexRow.cjs.js.LICENSE.txt +0 -5
  256. package/dist/flexRow.esm.js.LICENSE.txt +0 -5
  257. package/dist/floatingInput.cjs.js.LICENSE.txt +0 -5
  258. package/dist/floatingInput.esm.js.LICENSE.txt +0 -5
  259. package/dist/free.cjs.js.LICENSE.txt +0 -5
  260. package/dist/free.esm.js.LICENSE.txt +0 -5
  261. package/dist/gridSwitcher.cjs.js +0 -2
  262. package/dist/gridSwitcher.cjs.js.LICENSE.txt +0 -5
  263. package/dist/gridSwitcher.esm.js +0 -2
  264. package/dist/gridSwitcher.esm.js.LICENSE.txt +0 -5
  265. package/dist/horizontalScroller.esm.js.LICENSE.txt +0 -5
  266. package/dist/image.cjs.js.LICENSE.txt +0 -5
  267. package/dist/image.esm.js.LICENSE.txt +0 -5
  268. package/dist/imagePicker.cjs.js.LICENSE.txt +0 -5
  269. package/dist/imagePicker.esm.js.LICENSE.txt +0 -5
  270. package/dist/index.cjs.js.LICENSE.txt +0 -5
  271. package/dist/index.esm.js.LICENSE.txt +0 -5
  272. package/dist/link.cjs.js.LICENSE.txt +0 -5
  273. package/dist/link.esm.js.LICENSE.txt +0 -5
  274. package/dist/linkGetter.cjs.js.LICENSE.txt +0 -5
  275. package/dist/linkGetter.esm.js.LICENSE.txt +0 -5
  276. package/dist/metaAdder.cjs.js.LICENSE.txt +0 -5
  277. package/dist/metaAdder.esm.js.LICENSE.txt +0 -5
  278. package/dist/modal2025.cjs.js.LICENSE.txt +0 -5
  279. package/dist/modal2025.esm.js.LICENSE.txt +0 -5
  280. package/dist/multiswitchers.esm.js.LICENSE.txt +0 -5
  281. package/dist/newNavBar.cjs.js.LICENSE.txt +0 -5
  282. package/dist/newNavBar.esm.js.LICENSE.txt +0 -5
  283. package/dist/picker.cjs.js.LICENSE.txt +0 -5
  284. package/dist/picker.esm.js.LICENSE.txt +0 -5
  285. package/dist/polygon.cjs.js +0 -2
  286. package/dist/polygon.cjs.js.LICENSE.txt +0 -5
  287. package/dist/polygon.esm.js +0 -2
  288. package/dist/polygon.esm.js.LICENSE.txt +0 -5
  289. package/dist/progress.cjs.js.LICENSE.txt +0 -5
  290. package/dist/progress.esm.js.LICENSE.txt +0 -5
  291. package/dist/radio.cjs.js.LICENSE.txt +0 -5
  292. package/dist/radio.esm.js.LICENSE.txt +0 -5
  293. package/dist/range.cjs.js.LICENSE.txt +0 -5
  294. package/dist/range.esm.js.LICENSE.txt +0 -5
  295. package/dist/scrollvideo.cjs.js.LICENSE.txt +0 -5
  296. package/dist/scrollvideo.esm.js.LICENSE.txt +0 -5
  297. package/dist/sideBar.cjs.js.LICENSE.txt +0 -5
  298. package/dist/sideBar.esm.js.LICENSE.txt +0 -5
  299. package/dist/sideNavBar.cjs.js.LICENSE.txt +0 -5
  300. package/dist/sideNavBar.esm.js.LICENSE.txt +0 -5
  301. package/dist/simpleBar.cjs.js.LICENSE.txt +0 -5
  302. package/dist/simpleBar.esm.js.LICENSE.txt +0 -5
  303. package/dist/slider2025.cjs.js +0 -2
  304. package/dist/slider2025.cjs.js.LICENSE.txt +0 -5
  305. package/dist/slider2025.esm.js +0 -2
  306. package/dist/slider2025.esm.js.LICENSE.txt +0 -5
  307. package/dist/spacer.cjs.js.LICENSE.txt +0 -5
  308. package/dist/stack.cjs.js.LICENSE.txt +0 -5
  309. package/dist/stack.esm.js.LICENSE.txt +0 -5
  310. package/dist/stacker.cjs.js.LICENSE.txt +0 -5
  311. package/dist/stacker.esm.js.LICENSE.txt +0 -5
  312. package/dist/table.cjs.js.LICENSE.txt +0 -5
  313. package/dist/table.esm.js.LICENSE.txt +0 -5
  314. package/dist/text.cjs.js.LICENSE.txt +0 -5
  315. package/dist/text.esm.js.LICENSE.txt +0 -5
  316. package/dist/textField.cjs.js.LICENSE.txt +0 -5
  317. package/dist/textField.esm.js.LICENSE.txt +0 -5
  318. package/dist/transformanim.cjs.js.LICENSE.txt +0 -5
  319. package/dist/transformanim.esm.js.LICENSE.txt +0 -5
  320. package/dist/ulist.cjs.js.LICENSE.txt +0 -5
  321. package/dist/ulist.esm.js.LICENSE.txt +0 -5
  322. package/dist/video.esm.js.LICENSE.txt +0 -5
  323. package/dist/wrap.cjs.js.LICENSE.txt +0 -5
  324. package/dist/wrap.esm.js.LICENSE.txt +0 -5
  325. package/dist/zoomCard.cjs.js.LICENSE.txt +0 -5
  326. package/dist/zoomCard.esm.js.LICENSE.txt +0 -5
  327. package/layout/<head> +0 -59
  328. package/layout/DEADJOE +0 -49
  329. package/layout/DEPRECATED-PARAGRAPH.js +0 -109
  330. package/layout/edit.sh +0 -39
  331. package/layout/formComponents/edit.sh +0 -39
  332. package/layout/navFactor/edit.sh +0 -39
  333. package/layout/newNavBar copy 2.js +0 -921
  334. package/layout/newNavBar copy.js +0 -780
  335. package/lib/AppleAnim.js +0 -794
@@ -0,0 +1 @@
1
+ (()=>{"use strict";var t={d:(e,i)=>{for(var a in i)t.o(i,a)&&!t.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:i[a]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r:t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}},e={};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 i=0;i<e.length;i++){var a=e[i];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,r(a.key),a)}}function n(t,e,i){return(e=r(e))in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function r(t){var e=function(t){if("object"!=i(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var a=e.call(t,"string");if("object"!=i(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==i(e)?e:e+""}t.r(e),t.d(e,{KeyframeAnim:()=>s});var s=function(){return t=function t(e){var i=this;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),n(this,"scrollFunction",function(){void 0===i.flagValue&&(i.flagValue=0);var t=(i.html.scrollTop-i.flagValue)/(i.html.scrollHeight-window.innerHeight)*16,e=Math.min(i.frameCount-1,Math.ceil(t*i.frameCount));isNaN(e)&&(e=1),e<0&&(e=0),i.data.limit?e<i.data.limit&&requestAnimationFrame(function(){return i.updateImage(e+1)}):requestAnimationFrame(function(){return i.updateImage(e+1)}),window.matchMedia("(max-device-width: 415px)")}),n(this,"currentFrame",function(t){return"".concat(i.data.path).concat(t.toString().padStart(4,"0"),".").concat(i.data.extension)}),n(this,"preloadImages",function(){for(var t=1;t<i.frameCount;t++)new Image,i.img.src=i.currentFrame(t)}),n(this,"updateImage",function(t){i.img.src=i.currentFrame(t)}),this.fromFirstImageFlag=!1,this.flag=0,this.flagValue=e.flagValue,this.data=e,this.mask=e.mask,this.maskData=e.maskData,this.id=e.id,this.halfHeight=e.halfHeight,void 0===this.data.type?this.type="default":this.type=this.data.type,this.stickData=e.stickData,this.targetHeight=this.data.targetHeight,this.html=document.body,this.res=document.createElement("div"),this.res.setAttribute("id",this.data.id),this.res.style.border="1px solid green",this.res.style.width="100%",this.res.style.display="grid",this.res.style.position="sticky",this.res.style.top=0,this.res.style.alignSelf="flex-start",this.res.style.justifyContent="center",this.res.style.alignItems="center",this.data.added||(this.res.style.marginTop=this.data.noAddedDistance),this.frameCount=100,this.lastScrollTop=window.scrollY,this.setupTopElement(),this.scrollFunction(),window.addEventListener("scroll",function(){i.scrollFunction()}),this.preloadImages(),this},e=[{key:"marginTop",value:function(t){return this.res.style.marginTop=t,this}},{key:"toCode",value:function(){return[""]}},{key:"drawImageProp",value:function(t,e,i,a,n,r,s,o){2===arguments.length&&(i=a=0,n=t.canvas.width,r=t.canvas.height),(s="number"==typeof s?s:.5)<0&&(s=0),(o="number"==typeof o?o:.5)<0&&(o=0),s>1&&(s=1),o>1&&(o=1);var l,c,d,h,u=e.width,m=e.height,y=Math.min(n/u,r/m),p=u*y,g=m*y,f=1;p<n&&(f=n/p),Math.abs(f-1)<1e-14&&g<r&&(f=r/g),(l=(u-(d=u/((p*=f)/n)))*s)<0&&(l=0),(c=(m-(h=m/((g*=f)/r)))*o)<0&&(c=0),d>u&&(d=u),h>m&&(h=m),console.log("WEIRD"),console.log(e),console.log(c),console.log(d),t.drawImage(e,l,c,d,h,i,a,n,r)}},{key:"maska",value:function(t){var e=this;return window.addEventListener("scroll",function(){e.innerMask(t)}),this}},{key:"innerMask",value:function(t){if(t){var e=smartRange(window.scrollY,{min:t.start,max:t.end},{min:0,max:7}),i=smartRange(window.scrollY,{min:t.start,max:t.end},{min:37,max:37});this.res.style.clipPath="inset(".concat(e,"% ").concat(e,"% round 0 0 ").concat(i,"px ").concat(i,"px)")}}},{key:"setupTopElement",value:function(){var t=this;console.warn("TOP INIT");var e=document.createElement("canvas");if(e.style.gridArea="1/1",e.zIndex=1,e.style.display="grid",e.style.gridTemplate="1fr/1fr",e.style.justifyContent="center",e.style.alignItems="center",e.style.marginLeft="auto",e.style.marginRight="auto",this.context=e.getContext("2d"),this.context.canvas.width=window.innerWidth,this.context.canvas.height=1.2*window.innerHeight,this.img=new Image,this.img.onload=function(){t.data.halfHeight?t.drawImageProp(t.context,t.img,0,0,window.innerWidth,window.innerHeight/2):t.drawImageProp(t.context,t.img,0,0,window.innerWidth,1.2*window.innerHeight)},window.addEventListener("resize",function(){t.context.canvas.width=window.innerWidth,t.context.canvas.height=1.2*window.innerHeight,t.drawImageProp(t.context,t.img,0,0,window.innerWidth,1.2*window.innerHeight)}),this.res.appendChild(e),this.data.text){var i=document.createElement("div");i.style.gridArea="1/1";var a=this.data.text.render();if(this.h2a=a,i.appendChild(a),i.setAttribute("id","rem"),this.data.hasRect){var n=document.createElement("div");n.style.width="30px",n.style.height="30px",n.style.backgroundColor="orange"}else for(var r=0;r<this.res.children.length;r++)"rem"===this.res.children[r].id&&this.res.removeChild(this.res.children[r]);this.res.appendChild(i)}this.lastScrollTop=0,this.count=1,this.isUp=!1,this.done=!1,this.fireOnce=!0,this.dec=1,this.tdec=1,this.atdec=0,this.textOpacity=1,this.res.children[this.res.children.length-1].children[0].style.opacity=0,this.data.text&&window.addEventListener("scroll",function(){t.h2a.style.backgroundColor="rgba(0, 0, 0, 0.8)",t.h2a.style.opacity=1}),window.addEventListener("scroll",function(e){if(t.data.stickyData&&t.data.stickyData.top){var i=t.data.stickyData.top;t.data.uncomment&&(window.scrollY>i?(wrapDiv.style.background="pink",wrapDiv.style.position="relative",wrapDiv.style.top=i):(wrapDiv.style.background="orange",wrapDiv.style.top=0,wrapDiv.style.position="fixed"))}var a=window.scrollY||document.documentElement.scrollTop;if(a>t.lastScrollTop?t.isUp=!1:t.isUp=!0,t.lastScrollTop=a<=0?0:a,t.isUp&&t.textOpacity<.98&&(t.textOpacity+=.01),!1===t.isUp&&t.textOpacity>.02&&(t.textOpacity-=.01),t.data.mask){var n=t.res,r=smartRange(window.scrollY,{min:t.data.maskData.start,max:t.data.maskData.end},{min:0,max:7});if(n.style.clipPath="inset(".concat(r,"% ").concat(r,"% round 20px)"),!t.hasH2){var s=document.createElement("div");s.style.background="#ecf0f1",s.style.width="86%",s.style.marginLeft="7%",s.style.borderRadius="1rem",t.hasH2=!0,s.appendChild(t.data.newSection.render()),n.parentElement.appendChild(s)}}t.data.targetHeight})}},{key:"setLazyText",value:function(t){var e=this;return this.lazyText=t,window.addEventListener("scroll",function(){for(var t=smartRange(window.scrollY,{min:e.lazyText.start,max:e.lazyText.end},{min:0,max:200}),i=smartRange(window.scrollY,{min:e.lazyText.start,max:e.lazyText.end},{min:0,max:1}),a=0;a<e.h2a.children[0].children.length;a++)console.log("P"),e.h2a.children[0].children[a].style.transform="matrix(1, 0, 0, 1, 0, -".concat(t,")"),e.h2a.children[0].children[a].style.opacity="".concat(i-.2*a)}),this}},{key:"setProps",value:function(t){return t.targetHeight&&(this.data.targetHeight=t.targetHeight),t.flagValue&&(this.flagValue=t.flagValue),this}},{key:"fixedToRelative",value:function(t){this.data.uncomment=t}},{key:"toSticky",value:function(){return this.res.style.position="sticky",this.res.style.top="0",this}},{key:"setOpacityRange",value:function(t){var e=this;return this.data.opacityRange=t.opacityRange,this.data.scaleRange=t.scaleRange,window.addEventListener("scroll",function(){var t=smartRange(window.scrollY,{min:e.data.opacityRange.start,max:e.data.opacityRange.end},{min:0,max:1});e.h2a.style.opacity=t;var i=smartRange(window.scrollY,{min:e.data.scaleRange.start,max:e.data.scaleRange.end},{min:3,max:1});window.matchMedia("(max-device-width: 415px)").matches||(e.h2a.children[0].style.transform="scale(".concat(i,")"))}),this}},{key:"stick",value:function(t){return t?(t.offset&&(null!=this.data.stickyData?this.data.stickyData.top=t.offset:this.data.stickyData={top:t.offset}),t.value?this.makeSticky():this.noSticky(),this):(this.makeSticky(),this)}},{key:"to100vh",value:function(){this.res.style.height="100vh"}},{key:"makeSticky",value:function(){return this.res.style.position="sticky",this.res.style.top=0,this}},{key:"noSticky",value:function(){return this.res.style.position="",this}},{key:"toOpacity",value:function(t){this.res.style.opacity="".concat(t)}},{key:"render",value:function(t){if(!t)return this.res;document.querySelector(t).appendChild(this.res)}}],e&&a(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e}();module.exports=e})();
@@ -0,0 +1 @@
1
+ var t={d:(e,i)=>{for(var a in i)t.o(i,a)&&!t.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:i[a]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e)},e={};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 i=0;i<e.length;i++){var a=e[i];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,r(a.key),a)}}function n(t,e,i){return(e=r(e))in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function r(t){var e=function(t){if("object"!=i(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var a=e.call(t,"string");if("object"!=i(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==i(e)?e:e+""}t.d(e,{_:()=>s});var s=function(){return t=function t(e){var i=this;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),n(this,"scrollFunction",function(){void 0===i.flagValue&&(i.flagValue=0);var t=(i.html.scrollTop-i.flagValue)/(i.html.scrollHeight-window.innerHeight)*16,e=Math.min(i.frameCount-1,Math.ceil(t*i.frameCount));isNaN(e)&&(e=1),e<0&&(e=0),i.data.limit?e<i.data.limit&&requestAnimationFrame(function(){return i.updateImage(e+1)}):requestAnimationFrame(function(){return i.updateImage(e+1)}),window.matchMedia("(max-device-width: 415px)")}),n(this,"currentFrame",function(t){return"".concat(i.data.path).concat(t.toString().padStart(4,"0"),".").concat(i.data.extension)}),n(this,"preloadImages",function(){for(var t=1;t<i.frameCount;t++)new Image,i.img.src=i.currentFrame(t)}),n(this,"updateImage",function(t){i.img.src=i.currentFrame(t)}),this.fromFirstImageFlag=!1,this.flag=0,this.flagValue=e.flagValue,this.data=e,this.mask=e.mask,this.maskData=e.maskData,this.id=e.id,this.halfHeight=e.halfHeight,void 0===this.data.type?this.type="default":this.type=this.data.type,this.stickData=e.stickData,this.targetHeight=this.data.targetHeight,this.html=document.body,this.res=document.createElement("div"),this.res.setAttribute("id",this.data.id),this.res.style.border="1px solid green",this.res.style.width="100%",this.res.style.display="grid",this.res.style.position="sticky",this.res.style.top=0,this.res.style.alignSelf="flex-start",this.res.style.justifyContent="center",this.res.style.alignItems="center",this.data.added||(this.res.style.marginTop=this.data.noAddedDistance),this.frameCount=100,this.lastScrollTop=window.scrollY,this.setupTopElement(),this.scrollFunction(),window.addEventListener("scroll",function(){i.scrollFunction()}),this.preloadImages(),this},e=[{key:"marginTop",value:function(t){return this.res.style.marginTop=t,this}},{key:"toCode",value:function(){return[""]}},{key:"drawImageProp",value:function(t,e,i,a,n,r,s,o){2===arguments.length&&(i=a=0,n=t.canvas.width,r=t.canvas.height),(s="number"==typeof s?s:.5)<0&&(s=0),(o="number"==typeof o?o:.5)<0&&(o=0),s>1&&(s=1),o>1&&(o=1);var l,c,d,h,u=e.width,m=e.height,y=Math.min(n/u,r/m),p=u*y,g=m*y,f=1;p<n&&(f=n/p),Math.abs(f-1)<1e-14&&g<r&&(f=r/g),(l=(u-(d=u/((p*=f)/n)))*s)<0&&(l=0),(c=(m-(h=m/((g*=f)/r)))*o)<0&&(c=0),d>u&&(d=u),h>m&&(h=m),console.log("WEIRD"),console.log(e),console.log(c),console.log(d),t.drawImage(e,l,c,d,h,i,a,n,r)}},{key:"maska",value:function(t){var e=this;return window.addEventListener("scroll",function(){e.innerMask(t)}),this}},{key:"innerMask",value:function(t){if(t){var e=smartRange(window.scrollY,{min:t.start,max:t.end},{min:0,max:7}),i=smartRange(window.scrollY,{min:t.start,max:t.end},{min:37,max:37});this.res.style.clipPath="inset(".concat(e,"% ").concat(e,"% round 0 0 ").concat(i,"px ").concat(i,"px)")}}},{key:"setupTopElement",value:function(){var t=this;console.warn("TOP INIT");var e=document.createElement("canvas");if(e.style.gridArea="1/1",e.zIndex=1,e.style.display="grid",e.style.gridTemplate="1fr/1fr",e.style.justifyContent="center",e.style.alignItems="center",e.style.marginLeft="auto",e.style.marginRight="auto",this.context=e.getContext("2d"),this.context.canvas.width=window.innerWidth,this.context.canvas.height=1.2*window.innerHeight,this.img=new Image,this.img.onload=function(){t.data.halfHeight?t.drawImageProp(t.context,t.img,0,0,window.innerWidth,window.innerHeight/2):t.drawImageProp(t.context,t.img,0,0,window.innerWidth,1.2*window.innerHeight)},window.addEventListener("resize",function(){t.context.canvas.width=window.innerWidth,t.context.canvas.height=1.2*window.innerHeight,t.drawImageProp(t.context,t.img,0,0,window.innerWidth,1.2*window.innerHeight)}),this.res.appendChild(e),this.data.text){var i=document.createElement("div");i.style.gridArea="1/1";var a=this.data.text.render();if(this.h2a=a,i.appendChild(a),i.setAttribute("id","rem"),this.data.hasRect){var n=document.createElement("div");n.style.width="30px",n.style.height="30px",n.style.backgroundColor="orange"}else for(var r=0;r<this.res.children.length;r++)"rem"===this.res.children[r].id&&this.res.removeChild(this.res.children[r]);this.res.appendChild(i)}this.lastScrollTop=0,this.count=1,this.isUp=!1,this.done=!1,this.fireOnce=!0,this.dec=1,this.tdec=1,this.atdec=0,this.textOpacity=1,this.res.children[this.res.children.length-1].children[0].style.opacity=0,this.data.text&&window.addEventListener("scroll",function(){t.h2a.style.backgroundColor="rgba(0, 0, 0, 0.8)",t.h2a.style.opacity=1}),window.addEventListener("scroll",function(e){if(t.data.stickyData&&t.data.stickyData.top){var i=t.data.stickyData.top;t.data.uncomment&&(window.scrollY>i?(wrapDiv.style.background="pink",wrapDiv.style.position="relative",wrapDiv.style.top=i):(wrapDiv.style.background="orange",wrapDiv.style.top=0,wrapDiv.style.position="fixed"))}var a=window.scrollY||document.documentElement.scrollTop;if(a>t.lastScrollTop?t.isUp=!1:t.isUp=!0,t.lastScrollTop=a<=0?0:a,t.isUp&&t.textOpacity<.98&&(t.textOpacity+=.01),!1===t.isUp&&t.textOpacity>.02&&(t.textOpacity-=.01),t.data.mask){var n=t.res,r=smartRange(window.scrollY,{min:t.data.maskData.start,max:t.data.maskData.end},{min:0,max:7});if(n.style.clipPath="inset(".concat(r,"% ").concat(r,"% round 20px)"),!t.hasH2){var s=document.createElement("div");s.style.background="#ecf0f1",s.style.width="86%",s.style.marginLeft="7%",s.style.borderRadius="1rem",t.hasH2=!0,s.appendChild(t.data.newSection.render()),n.parentElement.appendChild(s)}}t.data.targetHeight})}},{key:"setLazyText",value:function(t){var e=this;return this.lazyText=t,window.addEventListener("scroll",function(){for(var t=smartRange(window.scrollY,{min:e.lazyText.start,max:e.lazyText.end},{min:0,max:200}),i=smartRange(window.scrollY,{min:e.lazyText.start,max:e.lazyText.end},{min:0,max:1}),a=0;a<e.h2a.children[0].children.length;a++)console.log("P"),e.h2a.children[0].children[a].style.transform="matrix(1, 0, 0, 1, 0, -".concat(t,")"),e.h2a.children[0].children[a].style.opacity="".concat(i-.2*a)}),this}},{key:"setProps",value:function(t){return t.targetHeight&&(this.data.targetHeight=t.targetHeight),t.flagValue&&(this.flagValue=t.flagValue),this}},{key:"fixedToRelative",value:function(t){this.data.uncomment=t}},{key:"toSticky",value:function(){return this.res.style.position="sticky",this.res.style.top="0",this}},{key:"setOpacityRange",value:function(t){var e=this;return this.data.opacityRange=t.opacityRange,this.data.scaleRange=t.scaleRange,window.addEventListener("scroll",function(){var t=smartRange(window.scrollY,{min:e.data.opacityRange.start,max:e.data.opacityRange.end},{min:0,max:1});e.h2a.style.opacity=t;var i=smartRange(window.scrollY,{min:e.data.scaleRange.start,max:e.data.scaleRange.end},{min:3,max:1});window.matchMedia("(max-device-width: 415px)").matches||(e.h2a.children[0].style.transform="scale(".concat(i,")"))}),this}},{key:"stick",value:function(t){return t?(t.offset&&(null!=this.data.stickyData?this.data.stickyData.top=t.offset:this.data.stickyData={top:t.offset}),t.value?this.makeSticky():this.noSticky(),this):(this.makeSticky(),this)}},{key:"to100vh",value:function(){this.res.style.height="100vh"}},{key:"makeSticky",value:function(){return this.res.style.position="sticky",this.res.style.top=0,this}},{key:"noSticky",value:function(){return this.res.style.position="",this}},{key:"toOpacity",value:function(t){this.res.style.opacity="".concat(t)}},{key:"render",value:function(t){if(!t)return this.res;document.querySelector(t).appendChild(this.res)}}],e&&a(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e}();const o=e._;export{o as KeyframeAnim};
@@ -0,0 +1 @@
1
+ (()=>{"use strict";var t={d:(e,r)=>{for(var n in r)t.o(r,n)&&!t.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:r[n]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r:t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}},e={};function r(t){return r="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},r(t)}function n(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,i,s,o,a=[],l=!0,c=!1;try{if(s=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=s.call(r)).done)&&(a.push(n.value),a.length!==e);l=!0);}catch(t){c=!0,i=t}finally{try{if(!l&&null!=r.return&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return a}}(t,e)||s(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function 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,i=function(){};return{s:i,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,l=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return a=t.done,t},e:function(t){l=!0,o=t},f:function(){try{a||null==r.return||r.return()}finally{if(l)throw o}}}}function s(t,e){if(t){if("string"==typeof t)return 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}}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 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,l(n.key),n)}}function l(t){var e=function(t){if("object"!=r(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=r(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==r(e)?e:e+""}function c(t){return c="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},c(t)}function u(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 d(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,h(n.key),n)}}function h(t){var e=function(t){if("object"!=c(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=c(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==c(e)?e:e+""}function p(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(p=function(){return!!t})()}function f(t,e,r,n){var i=y(m(1&n?t.prototype:t),e,r);return 2&n&&"function"==typeof i?function(t){return i.apply(r,t)}:i}function y(){return y="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,r){var n=function(t,e){for(;!{}.hasOwnProperty.call(t,e)&&null!==(t=m(t)););return t}(t,e);if(n){var i=Object.getOwnPropertyDescriptor(n,e);return i.get?i.get.call(arguments.length<3?t:r):i.value}},y.apply(null,arguments)}function m(t){return m=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},m(t)}function v(t,e){return v=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},v(t,e)}t.r(e),t.d(e,{LinkStyler:()=>w});var g=function(t){function e(t,r,n){var i;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(i=function(t,e,r){return e=m(e),function(t,e){if(e&&("object"==c(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,p()?Reflect.construct(e,r||[],m(t).constructor):e.apply(t,r))}(this,e)).link=r,i.text=t,i.code=[],i.css=[],i.elCSS=[],i.html=[],i.res=null,i.stopEM=n,i.setup(),i.inlineBlock(),i.res.addEventListener("click",function(t){var e=i.link||i.res.getAttribute("href");if(e){var r=new URL(e,window.location.href).href,n=/^https?:\/\//i.test(r),s=r.startsWith("#"),o=/^[a-zA-Z]+:/.test(r);n||s||r.endsWith(".html")||o||(t.preventDefault(),"navigation"in window?navigation.navigate(r):(history.pushState({},"",r),document.dispatchEvent(new PopStateEvent("popstate"))))}}),i}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&v(t,e)}(e,t),r=e,(n=[{key:"toCSS",value:function(){return this.css}},{key:"toHTMLA",value:function(){return this.html}},{key:"toElCSS",value:function(){return this.preffersId?this.elCSS.unshift(this.res.id+" { \n"):this.elCSS.unshift("."+this.class+" { \n"),this.elCSS.push(" } \n \n"),this.elCSS}},{key:"getType",value:function(){return"HTMLAnchorElement"}},{key:"toCode",value:function(){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,i,s,o,a=[],l=!0,c=!1;try{if(s=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=s.call(r)).done)&&(a.push(n.value),a.length!==e);l=!0);}catch(t){c=!0,i=t}finally{try{if(!l&&null!=r.return&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return a}}(t,e)||function(t,e){if(t){if("string"==typeof t)return u(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)?u(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=JSON.stringify(t,null,4).replace(/"([^"]+)":/g,"$1:");return["new Link().set(".concat(e,")")]}},{key:"setArea",value:function(t){return this.res.style.gridArea=t,this}},{key:"setup",value:function(){var t=document.createElement("a");t.setAttribute("href",this.link),t.style.textDecoration="none",t.style.color="black",t.style.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),t.options.padRight&&(this.res.style.paddingRight=t.options.padRight),r.appendChild(n)),this.res=r,e&&(this.res.style.marginLeft=e),this}},{key:"addIcon",value:function(t){var e=document.createElement("img");return e.style.width="20px",e.style.height="auto",e.style.marginLeft=t.padding?t.padding:"10px",e.setAttribute("src",t.url),this.res.appendChild(e),this}},{key:"removeQuotesFromFirstWord",value:function(t){if(t)return t.replace(/"([^"]+)":/g,"$1:")}},{key:"set",value:function(t){this.elCSS.push("text-decoration: none; \n"),this.options=t;var r="";t.tags&&f(e,"setTags",this,3)([t.tags]),t.id&&this.res.setAttribute("id",t.id),t.id&&f(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&&f(e,"setClass",this,3)([t.class]),t.class&&(r+='\n class: "'.concat(t.class,'",')),t.borderObj){this.res.style.border="".concat(t.borderObj.width," solid ").concat(t.borderObj.color),this.res.style.borderRadius="".concat(t.borderObj.radius);var i=this.removeQuotesFromFirstWord(JSON.stringify(t.borderObj));r+="\n borderObj: ".concat(i,",")}if(!1===this.options.preffersId?this.html.push('<a class="'.concat(t.class,'" href="#hello">').concat(t.text,"</a> \n \n")):t.id&&this.html.push('<a id="'.concat(t.id.substr(1),'" href="#hello">').concat(t.text,"</a> \n \n")),null!=t.blastData){var s=this.removeQuotesFromFirstWord(JSON.stringify(t.blastData));f(e,"setAny",this,3)([{globalBlast:"1px ".concat(t.blastData.color)}]),t.blastData&&(r+="\n blastData: ".concat(s,","))}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 o=this.removeQuotesFromFirstWord(JSON.stringify(t.background));t.background&&(r+="\n background: ".concat(o,",")),t.hover&&this.hover(t.hover);var a=this.removeQuotesFromFirstWord(JSON.stringify(t.hover));if(t.hover&&(r+="\n hover: ".concat(a,",")),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.arrayPadding){var l=t.arrayPadding.sides.map(function(t){return'"'.concat(t,'"')}).join(", ");t.arrayPadding&&this.arrayPadding(t.arrayPadding.sides,t.arrayPadding.value),t.arrayPadding&&(r+="\n arrayPadding: {sides: [".concat(l,'], value: "').concat(t.arrayPadding.value,'"},'))}if(t.arrayMargin&&this.arrayMargin(t.arrayMargin.sides,t.arrayMargin.value),t.arrayMargin&&(r+="\n arrayMargin: {sides: [".concat(t.arrayMargin.sides.map(function(t){return'"'.concat(t,'", ')}),'], value: "').concat(t.arrayMargin.value,'"},')),t.maxWidth&&this.maxWidth(t.maxWidth),t.url&&this.res.setAttribute("href",t.url),r+='\n url: "'.concat(t.url,'",'),t.text&&(this.res.textContent=t.text),r+='\n text: "'.concat(t.text,'",'),t.data){t.data&&this.appendImageAsChild(t.data,"20px");var c=this.removeQuotesFromFirstWord(JSON.stringify(t.data));t.data&&(r+="\n data: ".concat(c))}if(t.icon){this.addIcon(t.icon);var u=this.removeQuotesFromFirstWord(JSON.stringify(t.icon));r+="\n icon: ".concat(u,",")}if(t.shadow){var d=t.shadow,h=this.removeQuotesFromFirstWord(JSON.stringify(d));r+="\n shadow: ".concat(h,",")}if(t.stroke){var p=this.removeQuotesFromFirstWord(JSON.stringify(t.stroke));t.stroke&&(r+="\n stroke: ".concat(p,","))}if(t.backgroundOp){var y=this.removeQuotesFromFirstWord(JSON.stringify(t.backgroundOp));r+="\n backgroundOp: ".concat(y,",")}if(t.marginOp){var m=this.removeQuotesFromFirstWord(JSON.stringify(t.marginOp));r+="\n marginOp: ".concat(m,",")}if(t.gradient){var v=this.removeQuotesFromFirstWord(JSON.stringify(t.gradient));r+="\n gradient: ".concat(v,",")}if(t.animation){var g=this.removeQuotesFromFirstWord(JSON.stringify(t.animation));r+="\n animation: ".concat(g,",")}if(t.transform){var b=this.removeQuotesFromFirstWord(JSON.stringify(t.transform));r+="\n transform: ".concat(b,",")}if(t.blast){var x=this.removeQuotesFromFirstWord(JSON.stringify(t.blast));r+="\n blast: ".concat(x,",")}var k="new Link().set({".concat(r,"}) \n");this.code.push(k),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 w=[],S=[t.border,t.blast,t.gradient,t.animation,t.span,t.shadow,t.backgroundOp,t.animation,t.transform];if((S=S.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&&f(e,"setAny",this,3)([{globalBlast:"".concat(t.stroke.op.width," ").concat(t.stroke.op.color)}]);for(var O=0;O<S.length;O++)w.push({range:S[O].range,log:S[O].op.name,target:S[O].target,op:S[O].op});var T=[];t.borderObj&&T.push("border"),t.background&&T.push("background"),t.mar&&T.push("margin"),t.animation&&T.push("animation"),this.chainReact(w,t.id,T,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:"color",value:function(t){return this.res.style.color=t,this}},{key:"maxWidth",value:function(t){return this.res.style.maxWidth=t,this}},{key:"background",value:function(t){return this.res.style.backgroundColor=t,this}},{key:"leftAlign",value:function(t){return this.res.style.textAlign=t,this}},{key:"arrayPadding",value:function(t,e){return e||(this.res.style.marginLeft="".concat(t[0],"px"),this.res.style.marginTop="".concat(t[1],"px"),this.res.style.marginRight="".concat(t[2],"px"),this.res.style.marginBottom="".concat(t[3],"px")),"all"===t[0]&&(this.res.style.paddingLeft=e,this.res.style.paddingTop=e,this.res.style.paddingRight=e,this.res.style.paddingBottom=e),t.includes("left")&&(this.res.style.paddingLeft=e),t.includes("right")&&(this.res.style.paddingRight=e),t.includes("top")&&(this.res.style.paddingTop=e),t.includes("bottom")&&(this.res.style.paddingBottom=e),e||(this.res.style.paddingBottom=t),this}},{key:"arrayMargin",value:function(t,e){return t.includes("left")&&(this.res.style.marginLeft=e),t.includes("right")&&(this.res.style.marginRight=e),t.includes("top")&&(this.res.style.marginTop=e),t.includes("bottom")&&(this.res.style.marginBottom=e),t.includes("all")&&(this.res.style.margin=e),e||(this.res.style.marginBottom=t),this}},{key:"getClampValue",value:function(t){return"S6"===t?"clamp(2.25rem, 2vw+1.5rem, 3.25rem)":"S5"===t?"clamp(2.75rem, 2vw + 1.5rem, 3.25rem)":"S4"===t?"clamp(3.5rem, 2vw + 1.5rem, 3.25rem)":"S3"===t?"clamp(4.25rem, 2vw + 1.5rem, 3.25rem)":"S2"===t?"clamp(5rem, 2vw + 1.5rem, 3.25rem)":"S1"===t?"clamp(6rem, 2vw + 1.5rem, 3.25rem)":void 0}},{key:"clampCopy",value:function(t){return this.res.style.fontSize=this.getClampValue(t),this}},{key:"fluidCopy",value:function(t){return"S1"===t&&(this.res.style.fontSize="calc(1.625rem + 5.075vw)"),"S2"===t&&(this.res.style.fontSize="calc(1.500rem + 4.3vw)"),"S3"===t&&(this.res.style.fontSize="calc(1.375rem + 3.525vw)"),"S4"===t&&(this.res.style.fontSize="calc(1.250rem + 2.75vw)"),"S5"===t&&(this.res.style.fontSize="calc(1.125rem + 1.975vw)"),"S6"===t&&(this.res.style.fontSize="calc(1rem + 0.5vw)"),this}},{key:"inlineBlock",value:function(){return this.res.style.display="inline-block",this}},{key:"toBlock",value:function(){return this.res.style.display="block",this}},{key:"myself",value:function(t){var e=this,r=function(){window.matchMedia("(max-device-width: 415px)").matches?e.res.style.fontSize=t.desktop:e.res.style.fontSize=t.phone};return r(),window.addEventListener("resize",r),this}},{key:"style",value:function(t){return this.res.style.color=t.styles.color,this.res.style.fontWeight=t.styles.fontWeight,this.res.style.paddingLeft=t.styles.padding[0],this.res.style.paddingTop=t.styles.padding[1],this.res.style.paddingRight=t.styles.padding[2],this.res.style.paddingBottom=t.styles.padding[3],this}},{key:"round",value:function(){return this.res.style.borderRadius="0.5rem",this.options.rounded&&(this.res.children[0].style.borderRadius="0.5rem"),this}},{key:"newWindow",value:function(){return this.res.target="_new",this}},{key:"radius",value:function(t){return this.res.style.borderRadius="".concat(t),this}},{key:"transition",value:function(t){return this.res.style.transition="".concat(t,"s ease-in-out"),this.res.style.transionProperty="background, color",this}},{key:"width",value:function(t){return this.res.style.width=t,this}},{key:"italic",value:function(){return this.res.style.fontStyle="italic",this}},{key:"padding",value:function(t,e,r,n){return t&&e&&r&&n?(this.res.style.paddingLeft=t,this.res.style.paddingTop=e,this.res.style.paddingRight=r,this.res.style.paddingBottom=n):this.res.style.padding=t,this}},{key:"medium",value:function(){var t=this,e=function(){window.matchMedia("(max-device-width: 415px)").matches?t.res.style.fontSize="2rem":t.res.style.fontSize="1.5em"};return e(),window.addEventListener("resize",e),this}},{key:"opacity",value:function(t){return this.res.style.opacity=t,this}},{key:"margin",value:function(t,e,r,n){return this.res.style.marginTop=t,this.res.style.marginLeft=e,this.res.style.marginRight=r,this.res.style.marginBottom=n,this}},{key:"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}}])&&d(r.prototype,n),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n}(function(){return t=function t(){var e,r,n,i=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),e=this,n=function(t){if(console.log("LOBJO IS"),console.log(t),t.transform||t.op&&t.op.transform){var e=t.transform;t.transform||(e=t.op.transform),e.duration||(e.duration="3s-ease-in-out"),i.setDefault=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"0px";return 0===t.length?e+" ":t};var r=function(){var r="",n="",s="",o="",a="",l="",c="",u="",d="";if(0!==e.values.length){e.values.forEach(function(t){t.startsWith("tx:")&&(r=t.replace("tx:","")),t.startsWith("ty:")&&(n=t.replace("ty:","")),t.startsWith("tz:")?s=t.replace("tz:",""):t.startsWith("scale(")?o=t:t.startsWith("skew(")?a=t:t.startsWith("rotate(")?l=function(t){var e=t.match(/rotate\(([^)]+)\)/);if(!e)return t;var r=e[1].split(",").map(function(t){return t.trim()});return 1===r.length?"rotate(".concat(r[0],")"):2===r.length?"rotateX(".concat(r[0],") rotateY(").concat(r[1],")"):3===r.length?"rotateX(".concat(r[0],") rotateY(").concat(r[1],") rotate(").concat(r[2],")"):t}(t):t.startsWith("perspective(")?c=t:t.startsWith("matrix(")?u=t:t.startsWith("opacity:")&&(d=t.replace("opacity:",""))}),r=i.setDefault(r),n=i.setDefault(n),s=i.setDefault(s);var h="";if("0px"!=n&&"0px"!=r&&"0px"!=s?h+="translate3d(".concat(r,", ").concat(n,", ").concat(s,")"):"0px"==n&&"0px"==r||(h+="translate(".concat(r,", ").concat(n,")")),o&&(h+=" ".concat(o)),l&&(h+=" ".concat(l)),a&&(h+=" ".concat(a)),c&&(h+=" ".concat(c)),u&&(h+=" ".concat(u)),h){if(t.op.transform.duration){var p=t.op.transform.duration.replace(/^(\d+)(s)-/,function(t,e,r){return e/2+r+" "}),f="transform ".concat(p,", opacity ").concat(p);i.res.style.transition=f}else i.res.style.transition="transform 3s ease-in-out, opacity 3s ease-in-out";t.op.transform.static&&(i.res.style.transition=""),(i.blastTarget||i.res).style.transform=h,i.res.style.opacity=d}else alert("OPE")}};e.on?i.res.addEventListener(e.on,function(){e.delay?setTimeout(function(){r()},e.delay):r()}):window.addEventListener("load",function(){e.delay?setTimeout(function(){r()},e.delay):r()});var n=function(){var t="";e.values.forEach(function(e){e.startsWith("tx:")?t+="translateX(0) ":e.startsWith("ty:")?t+="translateY(0) ":e.startsWith("tz:")?t+="translateZ(0) ":e.startsWith("scale(")?t+="scale(1) ":e.startsWith("skew(")?t+="skew(0, 0) ":e.startsWith("rotate(")?t+="rotate(0) ":e.startsWith("perspective(")?t+="perspective(0) ":e.startsWith("matrix(")&&(t+="matrix(1, 0, 0, 1, 0, 0) "),i.res.style.opacity="1"}),t&&(i.res.style.transform=t.trim())};if(e.on)i.res.addEventListener("mouseout",function(){e.keep||n()});else{var s=1e3*parseFloat(e.duration),o=e.closeAfter?e.closeAfter:0;setTimeout(function(){e.keep||n()},s/2+o)}e.hardCSS&&(i.res.style.transform=e.hardCSS)}else alert("THIS FIRE WITH GRADIENT (invalid block"),console.log("INVALID BLOCKA"),console.log(t)},(r=l(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},e=[{key:"isHidden",value:function(t){t&&(this.res.style.display="none")}},{key:"keySet",value:function(t){return this.temporaryVal=1,this.res.style[t.key]=t.value,this}},{key:"commonMethods",value:function(t){var e={exact:"fontSize",zIndex:"zIndex",position:"position",top:"top",cursor:"cursor",width:"width",maxWidth:"maxWidth",height:"height",maxHeight:"maxHeight",radius:"borderRadius",lineHeight:"lineHeight",background:"background",font:"fontFamily",opacity:"opacity"};for(var r in e)null!=t[r]&&(this.res.style[e[r]]=t[r]);return 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.hover&&this.hover(t.hover),t.size&&this.fluidCopy(t.size),t.resprop&&this.resprop(t.resprop),t.keySet&&this.keySet(t.keySet),t.hide&&this.isHidden(t.hide),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.borderObj;return n&&(this.res.style.border="".concat(n.width,"px solid ").concat(n.color)),this.prevColor=this.res.style.backgroundColor,this.foreColor=this.res.style.color,this.prevBorder=this.res.style.border,t.animation&&(this.res.style.transition="".concat(t.animation),this.res.style.transionProperty="background, color"),this.res.onmouseout=function(){e.res.style.backgroundColor="".concat(e.prevColor),e.res.style.color="".concat(e.foreColor),e.res.style.border=e.prevBorder},this.res.onmouseover=function(){if(e.res.style.color=t.color,e.res.style.backgroundColor=t.background,t.border){var r,n=t.border.width,i=null!==(r=t.border.color)&&void 0!==r?r:"#2ECC71";e.res.style.border=n?"".concat(n,"px solid ").concat(i):"1px solid #2ECC71"}},this}},{key:"onScroll",value:function(t){var e=this;"opacity"===t.value?this.res.style.opacity=t.valMin:"scale"===t.value&&(this.res.style.transform="scale(".concat(t.valMax,")")),window.addEventListener("scroll",function(){var r=e.smartRange(window.scrollY,{min:t.from,max:t.to},{min:t.valMin,max:t.valMax});"opacity"===t.value?e.res.style.opacity=r:"scale"===t.value&&(e.res.style.transform="scale(".concat(r,")"))})}},{key:"setAny",value:function(t){this[Object.keys(t)[0]]=[Object.values(t)[0]]}},{key:"setID",value:function(t){this.id=t}},{key:"setPrevText",value:function(t){this.prevText=t}},{key:"getCSS",value:function(){return this.css}},{key:"getPX",value:function(t){return{xs:"0px",sm:"576px",md:"768px",lg:"992px",xl:"1200px",xxl:"1400px",mxxl:"1800px"}[t]||"Invalid breakpoint"}},{key:"respad",value:function(t){var e=this;this._applyResponsive(t,function(t){console.log("Applying padding for",t.breakpoint),e.pad(t.values)})}},{key:"_applyResponsive",value:function(t,e){var r={default:0,xs:0,sm:576,md:768,lg:992,xl:1200,xxl:1400};t.forEach(function(t){void 0!==r[t.breakpoint]?t._value=r[t.breakpoint]:t._value=parseInt(t.breakpoint,10)}),t.sort(function(t,e){return t._value-e._value});var n=t.find(function(t){return"default"===t.breakpoint}),i=function(){for(var r=window.innerWidth,i=n||null,s=0;s<t.length;s++){var o=t[s];if("default"!==o.breakpoint&&r<=o._value){i=o;break}}i&&e(i)};this._responsiveHandler&&window.removeEventListener("resize",this._responsiveHandler),this._responsiveHandler=i,window.addEventListener("resize",i),i()}},{key:"resmar",value:function(t){var e=this;this._applyResponsive(t,function(t){console.log("Applying margin for",t.breakpoint),e.mar(t.values)})}},{key:"resprop",value:function(t){var e=this;this.prevStyles={};for(var r=0;r<this.res.style.length;r++){var n=this.res.style[r];this.prevStyles[n]=this.res.style[n]}this._applyResponsive(t,function(t){for(var r in console.log("Applying styles for",t.breakpoint),e.prevStyles)e.res.style[r]=e.prevStyles[r];for(var n in t)"breakpoint"!==n&&"_value"!==n&&"values"!==n&&(e.res.style[n]=t[n])})}},{key:"isNumber",value:function(t){return"number"==typeof t&&!isNaN(t)}},{key:"pad",value:function(t){for(var e=0;e<t.length;e++)for(var r=Object.keys(t[e]),n=0;n<r.length;n++)for(var i=r[n],s=t[e][i],o=0;o<i.length;o++)switch(i[o]){case"a":this.res.style.padding=this.isNumber(s)?"".concat(s,"px"):s;break;case"t":this.res.style.paddingTop=this.isNumber(s)?"".concat(s,"px"):s;break;case"l":this.res.style.paddingLeft=this.isNumber(s)?"".concat(s,"px"):s;break;case"r":this.res.style.paddingRight=this.isNumber(s)?"".concat(s,"px"):s;break;case"b":this.res.style.paddingBottom=this.isNumber(s)?"".concat(s,"px"):s}return this}},{key:"as",value:function(t){return this.res.style.alignSelf=t,this}},{key:"mar",value:function(t){for(var e=0;e<t.length;e++)for(var r=Object.keys(t[e]),n=0;n<r.length;n++)for(var i=r[n],s=t[e][i],o=0;o<i.length;o++){switch(i[o]){case"a":this.res.style.margin=this.isNumber(s)?"".concat(s,"px"):s;break;case"t":this.res.style.marginTop=this.isNumber(s)?"".concat(s,"px"):s;break;case"l":this.res.style.marginLeft=this.isNumber(s)?"".concat(s,"px"):s;break;case"r":this.res.style.marginRight=this.isNumber(s)?"".concat(s,"px"):s;break;case"b":this.res.style.marginBottom=this.isNumber(s)?"".concat(s,"px"):s}"auto"===i[o]&&(this.res.style.marginLeft="auto",this.res.style.marginRight="auto")}return this}},{key:"smartRange",value:function(t,e,r){t<e.min&&(t=e.min),t>e.max&&(t=e.max);var n=(t-e.min)/(e.max-e.min);e.min>e.max&&(n=(t-e.max)/(e.min-e.max));var i=(r.min-r.max)*n-r.min;if(i=Math.abs(i),r.min<r.max){var s=(r.max+Math.abs(r.min))*n;i=r.min+s}return i}},{key:"gpos",value:function(t){return this.res.style.gridColumn=t.col,this.res.style.gridRow=t.row,this}},{key:"fluidCopy",value:function(t){if(t instanceof Object){this.prevStylex=this.res.style,this.res=document.createElement("h1"),this.res.style.cssText=this.prevStylex.cssText;var e=document.createTextNode(this.text);return this.res.appendChild(e),this.res.style.fontSize=t.exact,this}if("S1"===t){this.prevStylex=this.res.style,this.res=document.createElement("h1"),this.res.style.cssText=this.prevStylex.cssText;var r=document.createTextNode(this.text);this.res.appendChild(r),this.res.style.fontSize="calc(1.625rem + 5.075vw)"}if("S2"===t){this.prevStylex=this.res.style,this.res=document.createElement("h2"),this.res.style.cssText=this.prevStylex.cssText;var n=document.createTextNode(this.text);this.res.appendChild(n),this.res.style.fontSize="calc(1.500rem + 4.3vw)"}if("S3"===t){this.prevStylex=this.res.style,this.res=document.createElement("h3"),this.res.style.cssText=this.prevStylex.cssText;var i=document.createTextNode(this.text);this.res.appendChild(i),this.res.style.fontSize="calc(1.375rem + 3.525vw)"}if("S4"===t){this.prevStylex=this.res.style,this.res=document.createElement("h4"),this.res.style.cssText=this.prevStylex.cssText;var s=document.createTextNode(this.text);this.res.appendChild(s),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 o=document.createTextNode(this.text);this.res.appendChild(o),this.res.style.fontSize="calc(1.125rem + 1.975vw)"}return"S6"===t&&(this.res.style.fontSize="calc(1rem + 0.5vw)"),this}},{key:"setIndex",value:function(t){this.index=t}},{key:"borderObj",value:function(t){var e,r=null!==(e=t.type)&&void 0!==e?e:"solid";return this.res.style.border="".concat(t.width," ").concat(r," ").concat(t.color),this.res.style.borderRadius=t.radius,this}},{key:"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,console.log("TAGS SET"),console.log(t)}},{key:"chainReact",value:function(t,e,r){var s=this;console.log("0P"),this.ap=!1,this.cta=0,this.once=!1;var o,a=i(t);try{for(a.s();!(o=a.n()).done;){var l=o.value;l.range||(l.range=["0px","999999px"])}}catch(t){a.e(t)}finally{a.f()}t.sort(function(t,e){return parseInt(t.range[0])-parseInt(e.range[0])});var c=function(o){var a=window.visualViewport.width,l=[],c=[];s.resCopy=s.res,s.storedQueries=t.map(function(t){return t.target}).filter(function(t){return null!=t});var u,d=i(t);try{for(d.s();!(u=d.n()).done;){var h=u.value;s.counterIndex++;var p=n(h.range,2),f=p[0],y=p[1],m=parseInt(f),v=parseInt(y),g=!0;if(h.target){g=!1;for(var b=0;b<h.target.length;b++)h.target[b]===e&&(g=!0)}a>=m&&a<=v&&g&&(l.push(h.log),c.push(h),h.op&&h.op.margin&&(s.useMargin=h.op.margin))}}catch(t){d.e(t)}finally{d.f()}if(r&&!r.includes("background")&&(s.res.style.background="",s.res.style.backgroundColor=""),s.res.style.textShadow="",r&&!r.includes("border")&&(s.res.style.border=""),r&&!r.includes("margin")&&(s.res.style.margin=""),s.res.style["-webkit-text-fill-color"]="",s.res.style["-webkit-text-stroke-color"]="",s.res.style["-webkit-text-stroke-width"]="",s.res.style.filter="",s.options.background&&(console.log(s.options.background),s.res.style.background=s.options.background),l.includes("gradient"),(l.includes("gradient")||l.includes("shadow"))&&(s.res.style.position="relative"),l.includes("blast")){var x,k=c.filter(function(t){return"blast"===t.log})[0].op.color,w=null!==(x=c.filter(function(t){return"blast"===t.log})[0].op.width)&&void 0!==x?x:"1px";"FlexRowLayoutElement"===s.getType()||"LayoutWrapperElement"===s.getType()?(s.res.style.border="".concat("number"==typeof w?w+"px":w," solid orange"),s.res.style.display="inline-block","FlexRowLayoutElement"===s.getType()&&(s.res.style.display="flex"),s.res.style.boxSizing="border-box",s.res.style.transformOrigin="center",s.blastTarget=s.res):(s.text,s.res.style["-webkit-text-fill-color"]="transparent",s.res.style["-webkit-text-stroke-color"]=k,s.res.style["-webkit-text-stroke-width"]="".concat(w))}if(l.includes("filter")){var S=c.filter(function(t){return"filter"===t.log})[0].op.filter;s.res.style.filter=S}if(l.includes("background")&&(s.res.style.backgroundColor="green"),l.includes("gradient")&&("LayoutWrapperElement"!==s.getType()&&"FlexRowLayoutElement"!==s.getType()&&(s.res.style["-webkit-text-fill-color"]="transparent"),s.res.style.background=s.globalGradient,"LayoutWrapperElement"!==s.getType()&&"FlexRowLayoutElement"!==s.getType()&&(s.res.style["background-clip"]="text")),l.includes("shadow")){var O,T,E,C,j=s.options.shadow.op;console.log("OP IS",j);var A=null!==(O=j.steps)&&void 0!==O?O:1,W=null!==(T=j.colors)&&void 0!==T?T:["gray"],L=null!==(E=j.movements)&&void 0!==E?E:["3px","3px"],F=null!==(C=j.radius)&&void 0!==C?C:"3px";if(1===L.length&&(L=[L[0],L[0]]),"FlexRowLayoutElement"===s.getType()||"LayoutWrapperElement"===s.getType()){for(var I=[],P=0;P<A;P++){var R,N=null!==(R=W[P])&&void 0!==R?R:W[0],z=L[0],M=L[1];I.push("".concat(z," ").concat(M," ").concat(F," ").concat(N))}s.res.style.boxShadow=I.join(", ")}else{for(var B=[],_=0;_<A;_++){var D,Q=null!==(D=W[_])&&void 0!==D?D:W[0],J=L[0],H=L[1];B.push("drop-shadow(".concat(J," ").concat(H," ").concat(F," ").concat(Q,")"))}s.res.style.filter=B.join(" ")}}if(l.includes("margin"))for(b=0;b<t.length;b++)if(t[b].op){var G=t[b].op.offsets;G&&void 0!==s.index&&(s.res.style.margin=G[Number(s.index)]+"px")}if(l.includes("spana")||l.includes("span")){var V=document.createElement("div");if(V.setAttribute("id","oroa"),Object.assign(V.style,{position:"absolute",inset:"0",background:"linear-gradient(90deg, rgb(52,152,219), rgb(26,188,156))",WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent",pointerEvents:"none"}),s.res&&s.res.querySelector("span"))return;s.res=s.resCopy,s.res.textContent="",s.options.span&&(Array.isArray(s.options.span)?s.options.span:[s.options.span]).forEach(function(t){if(t.op&&"span"===t.op.name&&Array.isArray(t.op.parts)){var e=0,r=s.prevText||"";if(t.op.parts.forEach(function(t){var n=t.text,i=t.style||{};if(e<r.length){var o=r.indexOf(n,e);if(o>e){var a=r.substring(e,o);s.res.appendChild(new s.constructor(a).setup({type:"span",id:i.id,animation:i.animation}).set({}).render())}e=o+n.length}var l=new s.constructor(n).setup({type:"span",id:i.id,animation:i.animation}).set(i).render();s.res.appendChild(l)}),e<r.length){var n=r.substring(e);s.res.appendChild(new s.constructor(n).setup({type:"span"}).set({}).render())}}})}else{var Y=new s.constructor(s.prevText).set({}).render();s.prevText&&s.prevText.length>0&&o&&s.res.appendChild(Y)}if(l.includes("animation")){if(s.options.animation&&!s.hasAnimated&&!s.options.animation.op.fireAt){console.warn(s.openTag),s.hasAnimated=!0;var $=s.options.animation.op;window.addEventListener("sidebar:open",function(){s.res.animate($.keyframesOpen,$.openOptions)}),window.addEventListener("sidebar:closed",function(){s.res.animate($.keyframesClose,$.closeOptions)}),s.res.animate($.keyframesClose,{duration:0,fill:"forwards"}),s.openTag&&s.closeTag&&(window.addEventListener(s.openTag,function(){s.res.animate($.keyframesOpen,$.openOptions)}),window.addEventListener(s.closeTag,function(){s.res.animate($.keyframesClose,$.closeOptions)}))}if(s.options.animation&&s.options.animation.op.fireAt&&s.options.animation.op.fireAt.endsWith("px")){var U=s.options.animation.op;s.res.animate(U.keyframesClose,{duration:0,fill:"forwards"});var X=function(){window.scrollY>parseFloat(U.fireAt)&&(s.res.animate(U.keyframesOpen,U.openOptions),window.removeEventListener("scroll",X))};window.addEventListener("scroll",X)}if(s.options.animation&&"inview"===s.options.animation.op.fireAt){var q=s.options.animation.op;s.res.animate(q.keyframesClose,{duration:0,fill:"forwards"});var Z=!1;new IntersectionObserver(function(t,e){t.forEach(function(t){t.isIntersecting&&!Z&&(Z=!0,s.res.animate(q.keyframesOpen,q.openOptions),e.disconnect())})}).observe(s.res)}}};this.options.animation||window.addEventListener("resize",function(){return c()}),c()}},{key:"maxWidth",value:function(t){return this.res.style.maxWidth=t,this}},{key:"removeQuotesFromFirstWord",value:function(t){return t.replace(/"([^"]+)":/g,"$1:")}},{key:"arrayMargin",value:function(t,e){return t.includes("left")&&(this.res.style.marginLeft=e),t.includes("right")&&(this.res.style.marginRight=e),t.includes("top")&&(this.res.style.marginTop=e),t.includes("bottom")&&(this.res.style.marginBottom=e),t.includes("all")&&(this.res.style.margin=e),e||(this.res.style.marginBottom=t),this}}],e&&a(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e}());function b(t){return b="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},b(t)}function x(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,k(n.key),n)}}function k(t){var e=function(t){if("object"!=b(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=b(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==b(e)?e:e+""}var w=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){var e=t.bst,r=t.el,n=t.re;console.log("OLESTE"),console.log(e),console.log(r),console.log(n),t.options;for(var i=[],s=0;s<e.length;s++)e[s].target&&(r.id,e[s].target[0]);for(s=0;s<e.length;s++){var o=!0;e[s].target&&(o=!1,r.id===e[s].target[0]&&(o=!0)),console.log("OMESTE"),console.log(t);var a=e[s].op.ops.split("-");o&&a.includes("air")&&(n.borderObj={color:"#1abc9c",radius:"0rem",width:"3px"},n.color="#1abc9c",n.background="transparent"),o&&a.includes("round")&&(a.includes("air")?n.borderObj={width:"4px",radius:"0.7rem",color:"#1abc9c"}:n.borderObj={width:"0px",radius:"0.7rem",color:"#1abc9c"}),o&&a.includes("full")&&(n.background="#3498db",n.borderObj&&n.borderObj.radius&&(n.borderObj.radius="0.3rem"),n.color="white"),o&&a.includes("pill")&&(n.background="#3498db",n.borderObj.radius="9999px",n.color="white"),o&&a.includes("hover")&&(n.hover={color:"#1abc9c",background:"orange"}),i.push((new g).set(n))}return i}}],null&&x(t.prototype,null),e&&x(t,e),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e}();module.exports=e})();
@@ -0,0 +1 @@
1
+ var t={};function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},e(t)}function r(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,i,s,o,a=[],l=!0,c=!1;try{if(s=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=s.call(r)).done)&&(a.push(n.value),a.length!==e);l=!0);}catch(t){c=!0,i=t}finally{try{if(!l&&null!=r.return&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return a}}(t,e)||i(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 n(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=i(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,s=function(){};return{s,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:s}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,l=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return a=t.done,t},e:function(t){l=!0,o=t},f:function(){try{a||null==r.return||r.return()}finally{if(l)throw o}}}}function i(t,e){if(t){if("string"==typeof t)return s(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)?s(t,e):void 0}}function s(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function o(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,a(n.key),n)}}function a(t){var r=function(t){if("object"!=e(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!=e(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==e(r)?r:r+""}t.d=(e,r)=>{for(var n in r)t.o(r,n)&&!t.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:r[n]})},t.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var l=function(){return t=function t(){var e,r,n,i=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),e=this,n=function(t){if(console.log("LOBJO IS"),console.log(t),t.transform||t.op&&t.op.transform){var e=t.transform;t.transform||(e=t.op.transform),e.duration||(e.duration="3s-ease-in-out"),i.setDefault=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"0px";return 0===t.length?e+" ":t};var r=function(){var r="",n="",s="",o="",a="",l="",c="",u="",d="";if(0!==e.values.length){e.values.forEach(function(t){t.startsWith("tx:")&&(r=t.replace("tx:","")),t.startsWith("ty:")&&(n=t.replace("ty:","")),t.startsWith("tz:")?s=t.replace("tz:",""):t.startsWith("scale(")?o=t:t.startsWith("skew(")?a=t:t.startsWith("rotate(")?l=function(t){var e=t.match(/rotate\(([^)]+)\)/);if(!e)return t;var r=e[1].split(",").map(function(t){return t.trim()});return 1===r.length?"rotate(".concat(r[0],")"):2===r.length?"rotateX(".concat(r[0],") rotateY(").concat(r[1],")"):3===r.length?"rotateX(".concat(r[0],") rotateY(").concat(r[1],") rotate(").concat(r[2],")"):t}(t):t.startsWith("perspective(")?c=t:t.startsWith("matrix(")?u=t:t.startsWith("opacity:")&&(d=t.replace("opacity:",""))}),r=i.setDefault(r),n=i.setDefault(n),s=i.setDefault(s);var h="";if("0px"!=n&&"0px"!=r&&"0px"!=s?h+="translate3d(".concat(r,", ").concat(n,", ").concat(s,")"):"0px"==n&&"0px"==r||(h+="translate(".concat(r,", ").concat(n,")")),o&&(h+=" ".concat(o)),l&&(h+=" ".concat(l)),a&&(h+=" ".concat(a)),c&&(h+=" ".concat(c)),u&&(h+=" ".concat(u)),h){if(t.op.transform.duration){var p=t.op.transform.duration.replace(/^(\d+)(s)-/,function(t,e,r){return e/2+r+" "}),f="transform ".concat(p,", opacity ").concat(p);i.res.style.transition=f}else i.res.style.transition="transform 3s ease-in-out, opacity 3s ease-in-out";t.op.transform.static&&(i.res.style.transition=""),(i.blastTarget||i.res).style.transform=h,i.res.style.opacity=d}else alert("OPE")}};e.on?i.res.addEventListener(e.on,function(){e.delay?setTimeout(function(){r()},e.delay):r()}):window.addEventListener("load",function(){e.delay?setTimeout(function(){r()},e.delay):r()});var n=function(){var t="";e.values.forEach(function(e){e.startsWith("tx:")?t+="translateX(0) ":e.startsWith("ty:")?t+="translateY(0) ":e.startsWith("tz:")?t+="translateZ(0) ":e.startsWith("scale(")?t+="scale(1) ":e.startsWith("skew(")?t+="skew(0, 0) ":e.startsWith("rotate(")?t+="rotate(0) ":e.startsWith("perspective(")?t+="perspective(0) ":e.startsWith("matrix(")&&(t+="matrix(1, 0, 0, 1, 0, 0) "),i.res.style.opacity="1"}),t&&(i.res.style.transform=t.trim())};if(e.on)i.res.addEventListener("mouseout",function(){e.keep||n()});else{var s=1e3*parseFloat(e.duration),o=e.closeAfter?e.closeAfter:0;setTimeout(function(){e.keep||n()},s/2+o)}e.hardCSS&&(i.res.style.transform=e.hardCSS)}else alert("THIS FIRE WITH GRADIENT (invalid block"),console.log("INVALID BLOCKA"),console.log(t)},(r=a(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},e=[{key:"isHidden",value:function(t){t&&(this.res.style.display="none")}},{key:"keySet",value:function(t){return this.temporaryVal=1,this.res.style[t.key]=t.value,this}},{key:"commonMethods",value:function(t){var e={exact:"fontSize",zIndex:"zIndex",position:"position",top:"top",cursor:"cursor",width:"width",maxWidth:"maxWidth",height:"height",maxHeight:"maxHeight",radius:"borderRadius",lineHeight:"lineHeight",background:"background",font:"fontFamily",opacity:"opacity"};for(var r in e)null!=t[r]&&(this.res.style[e[r]]=t[r]);return 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.hover&&this.hover(t.hover),t.size&&this.fluidCopy(t.size),t.resprop&&this.resprop(t.resprop),t.keySet&&this.keySet(t.keySet),t.hide&&this.isHidden(t.hide),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.borderObj;return n&&(this.res.style.border="".concat(n.width,"px solid ").concat(n.color)),this.prevColor=this.res.style.backgroundColor,this.foreColor=this.res.style.color,this.prevBorder=this.res.style.border,t.animation&&(this.res.style.transition="".concat(t.animation),this.res.style.transionProperty="background, color"),this.res.onmouseout=function(){e.res.style.backgroundColor="".concat(e.prevColor),e.res.style.color="".concat(e.foreColor),e.res.style.border=e.prevBorder},this.res.onmouseover=function(){if(e.res.style.color=t.color,e.res.style.backgroundColor=t.background,t.border){var r,n=t.border.width,i=null!==(r=t.border.color)&&void 0!==r?r:"#2ECC71";e.res.style.border=n?"".concat(n,"px solid ").concat(i):"1px solid #2ECC71"}},this}},{key:"onScroll",value:function(t){var e=this;"opacity"===t.value?this.res.style.opacity=t.valMin:"scale"===t.value&&(this.res.style.transform="scale(".concat(t.valMax,")")),window.addEventListener("scroll",function(){var r=e.smartRange(window.scrollY,{min:t.from,max:t.to},{min:t.valMin,max:t.valMax});"opacity"===t.value?e.res.style.opacity=r:"scale"===t.value&&(e.res.style.transform="scale(".concat(r,")"))})}},{key:"setAny",value:function(t){this[Object.keys(t)[0]]=[Object.values(t)[0]]}},{key:"setID",value:function(t){this.id=t}},{key:"setPrevText",value:function(t){this.prevText=t}},{key:"getCSS",value:function(){return this.css}},{key:"getPX",value:function(t){return{xs:"0px",sm:"576px",md:"768px",lg:"992px",xl:"1200px",xxl:"1400px",mxxl:"1800px"}[t]||"Invalid breakpoint"}},{key:"respad",value:function(t){var e=this;this._applyResponsive(t,function(t){console.log("Applying padding for",t.breakpoint),e.pad(t.values)})}},{key:"_applyResponsive",value:function(t,e){var r={default:0,xs:0,sm:576,md:768,lg:992,xl:1200,xxl:1400};t.forEach(function(t){void 0!==r[t.breakpoint]?t._value=r[t.breakpoint]:t._value=parseInt(t.breakpoint,10)}),t.sort(function(t,e){return t._value-e._value});var n=t.find(function(t){return"default"===t.breakpoint}),i=function(){for(var r=window.innerWidth,i=n||null,s=0;s<t.length;s++){var o=t[s];if("default"!==o.breakpoint&&r<=o._value){i=o;break}}i&&e(i)};this._responsiveHandler&&window.removeEventListener("resize",this._responsiveHandler),this._responsiveHandler=i,window.addEventListener("resize",i),i()}},{key:"resmar",value:function(t){var e=this;this._applyResponsive(t,function(t){console.log("Applying margin for",t.breakpoint),e.mar(t.values)})}},{key:"resprop",value:function(t){var e=this;this.prevStyles={};for(var r=0;r<this.res.style.length;r++){var n=this.res.style[r];this.prevStyles[n]=this.res.style[n]}this._applyResponsive(t,function(t){for(var r in console.log("Applying styles for",t.breakpoint),e.prevStyles)e.res.style[r]=e.prevStyles[r];for(var n in t)"breakpoint"!==n&&"_value"!==n&&"values"!==n&&(e.res.style[n]=t[n])})}},{key:"isNumber",value:function(t){return"number"==typeof t&&!isNaN(t)}},{key:"pad",value:function(t){for(var e=0;e<t.length;e++)for(var r=Object.keys(t[e]),n=0;n<r.length;n++)for(var i=r[n],s=t[e][i],o=0;o<i.length;o++)switch(i[o]){case"a":this.res.style.padding=this.isNumber(s)?"".concat(s,"px"):s;break;case"t":this.res.style.paddingTop=this.isNumber(s)?"".concat(s,"px"):s;break;case"l":this.res.style.paddingLeft=this.isNumber(s)?"".concat(s,"px"):s;break;case"r":this.res.style.paddingRight=this.isNumber(s)?"".concat(s,"px"):s;break;case"b":this.res.style.paddingBottom=this.isNumber(s)?"".concat(s,"px"):s}return this}},{key:"as",value:function(t){return this.res.style.alignSelf=t,this}},{key:"mar",value:function(t){for(var e=0;e<t.length;e++)for(var r=Object.keys(t[e]),n=0;n<r.length;n++)for(var i=r[n],s=t[e][i],o=0;o<i.length;o++){switch(i[o]){case"a":this.res.style.margin=this.isNumber(s)?"".concat(s,"px"):s;break;case"t":this.res.style.marginTop=this.isNumber(s)?"".concat(s,"px"):s;break;case"l":this.res.style.marginLeft=this.isNumber(s)?"".concat(s,"px"):s;break;case"r":this.res.style.marginRight=this.isNumber(s)?"".concat(s,"px"):s;break;case"b":this.res.style.marginBottom=this.isNumber(s)?"".concat(s,"px"):s}"auto"===i[o]&&(this.res.style.marginLeft="auto",this.res.style.marginRight="auto")}return this}},{key:"smartRange",value:function(t,e,r){t<e.min&&(t=e.min),t>e.max&&(t=e.max);var n=(t-e.min)/(e.max-e.min);e.min>e.max&&(n=(t-e.max)/(e.min-e.max));var i=(r.min-r.max)*n-r.min;if(i=Math.abs(i),r.min<r.max){var s=(r.max+Math.abs(r.min))*n;i=r.min+s}return i}},{key:"gpos",value:function(t){return this.res.style.gridColumn=t.col,this.res.style.gridRow=t.row,this}},{key:"fluidCopy",value:function(t){if(t instanceof Object){this.prevStylex=this.res.style,this.res=document.createElement("h1"),this.res.style.cssText=this.prevStylex.cssText;var e=document.createTextNode(this.text);return this.res.appendChild(e),this.res.style.fontSize=t.exact,this}if("S1"===t){this.prevStylex=this.res.style,this.res=document.createElement("h1"),this.res.style.cssText=this.prevStylex.cssText;var r=document.createTextNode(this.text);this.res.appendChild(r),this.res.style.fontSize="calc(1.625rem + 5.075vw)"}if("S2"===t){this.prevStylex=this.res.style,this.res=document.createElement("h2"),this.res.style.cssText=this.prevStylex.cssText;var n=document.createTextNode(this.text);this.res.appendChild(n),this.res.style.fontSize="calc(1.500rem + 4.3vw)"}if("S3"===t){this.prevStylex=this.res.style,this.res=document.createElement("h3"),this.res.style.cssText=this.prevStylex.cssText;var i=document.createTextNode(this.text);this.res.appendChild(i),this.res.style.fontSize="calc(1.375rem + 3.525vw)"}if("S4"===t){this.prevStylex=this.res.style,this.res=document.createElement("h4"),this.res.style.cssText=this.prevStylex.cssText;var s=document.createTextNode(this.text);this.res.appendChild(s),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 o=document.createTextNode(this.text);this.res.appendChild(o),this.res.style.fontSize="calc(1.125rem + 1.975vw)"}return"S6"===t&&(this.res.style.fontSize="calc(1rem + 0.5vw)"),this}},{key:"setIndex",value:function(t){this.index=t}},{key:"borderObj",value:function(t){var e,r=null!==(e=t.type)&&void 0!==e?e:"solid";return this.res.style.border="".concat(t.width," ").concat(r," ").concat(t.color),this.res.style.borderRadius=t.radius,this}},{key:"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,console.log("TAGS SET"),console.log(t)}},{key:"chainReact",value:function(t,e,i){var s=this;console.log("0P"),this.ap=!1,this.cta=0,this.once=!1;var o,a=n(t);try{for(a.s();!(o=a.n()).done;){var l=o.value;l.range||(l.range=["0px","999999px"])}}catch(t){a.e(t)}finally{a.f()}t.sort(function(t,e){return parseInt(t.range[0])-parseInt(e.range[0])});var c=function(o){var a=window.visualViewport.width,l=[],c=[];s.resCopy=s.res,s.storedQueries=t.map(function(t){return t.target}).filter(function(t){return null!=t});var u,d=n(t);try{for(d.s();!(u=d.n()).done;){var h=u.value;s.counterIndex++;var p=r(h.range,2),f=p[0],y=p[1],m=parseInt(f),v=parseInt(y),g=!0;if(h.target){g=!1;for(var b=0;b<h.target.length;b++)h.target[b]===e&&(g=!0)}a>=m&&a<=v&&g&&(l.push(h.log),c.push(h),h.op&&h.op.margin&&(s.useMargin=h.op.margin))}}catch(t){d.e(t)}finally{d.f()}if(i&&!i.includes("background")&&(s.res.style.background="",s.res.style.backgroundColor=""),s.res.style.textShadow="",i&&!i.includes("border")&&(s.res.style.border=""),i&&!i.includes("margin")&&(s.res.style.margin=""),s.res.style["-webkit-text-fill-color"]="",s.res.style["-webkit-text-stroke-color"]="",s.res.style["-webkit-text-stroke-width"]="",s.res.style.filter="",s.options.background&&(console.log(s.options.background),s.res.style.background=s.options.background),l.includes("gradient"),(l.includes("gradient")||l.includes("shadow"))&&(s.res.style.position="relative"),l.includes("blast")){var x,k=c.filter(function(t){return"blast"===t.log})[0].op.color,w=null!==(x=c.filter(function(t){return"blast"===t.log})[0].op.width)&&void 0!==x?x:"1px";"FlexRowLayoutElement"===s.getType()||"LayoutWrapperElement"===s.getType()?(s.res.style.border="".concat("number"==typeof w?w+"px":w," solid orange"),s.res.style.display="inline-block","FlexRowLayoutElement"===s.getType()&&(s.res.style.display="flex"),s.res.style.boxSizing="border-box",s.res.style.transformOrigin="center",s.blastTarget=s.res):(s.text,s.res.style["-webkit-text-fill-color"]="transparent",s.res.style["-webkit-text-stroke-color"]=k,s.res.style["-webkit-text-stroke-width"]="".concat(w))}if(l.includes("filter")){var S=c.filter(function(t){return"filter"===t.log})[0].op.filter;s.res.style.filter=S}if(l.includes("background")&&(s.res.style.backgroundColor="green"),l.includes("gradient")&&("LayoutWrapperElement"!==s.getType()&&"FlexRowLayoutElement"!==s.getType()&&(s.res.style["-webkit-text-fill-color"]="transparent"),s.res.style.background=s.globalGradient,"LayoutWrapperElement"!==s.getType()&&"FlexRowLayoutElement"!==s.getType()&&(s.res.style["background-clip"]="text")),l.includes("shadow")){var O,T,E,C,j=s.options.shadow.op;console.log("OP IS",j);var A=null!==(O=j.steps)&&void 0!==O?O:1,W=null!==(T=j.colors)&&void 0!==T?T:["gray"],L=null!==(E=j.movements)&&void 0!==E?E:["3px","3px"],F=null!==(C=j.radius)&&void 0!==C?C:"3px";if(1===L.length&&(L=[L[0],L[0]]),"FlexRowLayoutElement"===s.getType()||"LayoutWrapperElement"===s.getType()){for(var I=[],R=0;R<A;R++){var P,N=null!==(P=W[R])&&void 0!==P?P:W[0],z=L[0],M=L[1];I.push("".concat(z," ").concat(M," ").concat(F," ").concat(N))}s.res.style.boxShadow=I.join(", ")}else{for(var B=[],_=0;_<A;_++){var D,Q=null!==(D=W[_])&&void 0!==D?D:W[0],J=L[0],H=L[1];B.push("drop-shadow(".concat(J," ").concat(H," ").concat(F," ").concat(Q,")"))}s.res.style.filter=B.join(" ")}}if(l.includes("margin"))for(b=0;b<t.length;b++)if(t[b].op){var G=t[b].op.offsets;G&&void 0!==s.index&&(s.res.style.margin=G[Number(s.index)]+"px")}if(l.includes("spana")||l.includes("span")){var V=document.createElement("div");if(V.setAttribute("id","oroa"),Object.assign(V.style,{position:"absolute",inset:"0",background:"linear-gradient(90deg, rgb(52,152,219), rgb(26,188,156))",WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent",pointerEvents:"none"}),s.res&&s.res.querySelector("span"))return;s.res=s.resCopy,s.res.textContent="",s.options.span&&(Array.isArray(s.options.span)?s.options.span:[s.options.span]).forEach(function(t){if(t.op&&"span"===t.op.name&&Array.isArray(t.op.parts)){var e=0,r=s.prevText||"";if(t.op.parts.forEach(function(t){var n=t.text,i=t.style||{};if(e<r.length){var o=r.indexOf(n,e);if(o>e){var a=r.substring(e,o);s.res.appendChild(new s.constructor(a).setup({type:"span",id:i.id,animation:i.animation}).set({}).render())}e=o+n.length}var l=new s.constructor(n).setup({type:"span",id:i.id,animation:i.animation}).set(i).render();s.res.appendChild(l)}),e<r.length){var n=r.substring(e);s.res.appendChild(new s.constructor(n).setup({type:"span"}).set({}).render())}}})}else{var Y=new s.constructor(s.prevText).set({}).render();s.prevText&&s.prevText.length>0&&o&&s.res.appendChild(Y)}if(l.includes("animation")){if(s.options.animation&&!s.hasAnimated&&!s.options.animation.op.fireAt){console.warn(s.openTag),s.hasAnimated=!0;var $=s.options.animation.op;window.addEventListener("sidebar:open",function(){s.res.animate($.keyframesOpen,$.openOptions)}),window.addEventListener("sidebar:closed",function(){s.res.animate($.keyframesClose,$.closeOptions)}),s.res.animate($.keyframesClose,{duration:0,fill:"forwards"}),s.openTag&&s.closeTag&&(window.addEventListener(s.openTag,function(){s.res.animate($.keyframesOpen,$.openOptions)}),window.addEventListener(s.closeTag,function(){s.res.animate($.keyframesClose,$.closeOptions)}))}if(s.options.animation&&s.options.animation.op.fireAt&&s.options.animation.op.fireAt.endsWith("px")){var U=s.options.animation.op;s.res.animate(U.keyframesClose,{duration:0,fill:"forwards"});var X=function(){window.scrollY>parseFloat(U.fireAt)&&(s.res.animate(U.keyframesOpen,U.openOptions),window.removeEventListener("scroll",X))};window.addEventListener("scroll",X)}if(s.options.animation&&"inview"===s.options.animation.op.fireAt){var q=s.options.animation.op;s.res.animate(q.keyframesClose,{duration:0,fill:"forwards"});var Z=!1;new IntersectionObserver(function(t,e){t.forEach(function(t){t.isIntersecting&&!Z&&(Z=!0,s.res.animate(q.keyframesOpen,q.openOptions),e.disconnect())})}).observe(s.res)}}};this.options.animation||window.addEventListener("resize",function(){return c()}),c()}},{key:"maxWidth",value:function(t){return this.res.style.maxWidth=t,this}},{key:"removeQuotesFromFirstWord",value:function(t){return t.replace(/"([^"]+)":/g,"$1:")}},{key:"arrayMargin",value:function(t,e){return t.includes("left")&&(this.res.style.marginLeft=e),t.includes("right")&&(this.res.style.marginRight=e),t.includes("top")&&(this.res.style.marginTop=e),t.includes("bottom")&&(this.res.style.marginBottom=e),t.includes("all")&&(this.res.style.margin=e),e||(this.res.style.marginBottom=t),this}}],e&&o(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e}();function c(t){return c="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},c(t)}function u(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 d(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,h(n.key),n)}}function h(t){var e=function(t){if("object"!=c(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=c(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==c(e)?e:e+""}function p(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(p=function(){return!!t})()}function f(t,e,r,n){var i=y(m(1&n?t.prototype:t),e,r);return 2&n&&"function"==typeof i?function(t){return i.apply(r,t)}:i}function y(){return y="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,r){var n=function(t,e){for(;!{}.hasOwnProperty.call(t,e)&&null!==(t=m(t)););return t}(t,e);if(n){var i=Object.getOwnPropertyDescriptor(n,e);return i.get?i.get.call(arguments.length<3?t:r):i.value}},y.apply(null,arguments)}function m(t){return m=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},m(t)}function v(t,e){return v=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},v(t,e)}var g=function(){function t(e,r,n){var i;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),(i=function(t,e,r){return e=m(e),function(t,e){if(e&&("object"==c(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,p()?Reflect.construct(e,r||[],m(t).constructor):e.apply(t,r))}(this,t)).link=r,i.text=e,i.code=[],i.css=[],i.elCSS=[],i.html=[],i.res=null,i.stopEM=n,i.setup(),i.inlineBlock(),i.res.addEventListener("click",function(t){var e=i.link||i.res.getAttribute("href");if(e){var r=new URL(e,window.location.href).href,n=/^https?:\/\//i.test(r),s=r.startsWith("#"),o=/^[a-zA-Z]+:/.test(r);n||s||r.endsWith(".html")||o||(t.preventDefault(),"navigation"in window?navigation.navigate(r):(history.pushState({},"",r),document.dispatchEvent(new PopStateEvent("popstate"))))}}),i}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&v(t,e)}(t,l),e=t,(r=[{key:"toCSS",value:function(){return this.css}},{key:"toHTMLA",value:function(){return this.html}},{key:"toElCSS",value:function(){return this.preffersId?this.elCSS.unshift(this.res.id+" { \n"):this.elCSS.unshift("."+this.class+" { \n"),this.elCSS.push(" } \n \n"),this.elCSS}},{key:"getType",value:function(){return"HTMLAnchorElement"}},{key:"toCode",value:function(){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,i,s,o,a=[],l=!0,c=!1;try{if(s=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=s.call(r)).done)&&(a.push(n.value),a.length!==e);l=!0);}catch(t){c=!0,i=t}finally{try{if(!l&&null!=r.return&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return a}}(t,e)||function(t,e){if(t){if("string"==typeof t)return u(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)?u(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=JSON.stringify(t,null,4).replace(/"([^"]+)":/g,"$1:");return["new Link().set(".concat(e,")")]}},{key:"setArea",value:function(t){return this.res.style.gridArea=t,this}},{key:"setup",value:function(){var t=document.createElement("a");t.setAttribute("href",this.link),t.style.textDecoration="none",t.style.color="black",t.style.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),t.options.padRight&&(this.res.style.paddingRight=t.options.padRight),r.appendChild(n)),this.res=r,e&&(this.res.style.marginLeft=e),this}},{key:"addIcon",value:function(t){var e=document.createElement("img");return e.style.width="20px",e.style.height="auto",e.style.marginLeft=t.padding?t.padding:"10px",e.setAttribute("src",t.url),this.res.appendChild(e),this}},{key:"removeQuotesFromFirstWord",value:function(t){if(t)return t.replace(/"([^"]+)":/g,"$1:")}},{key:"set",value:function(e){this.elCSS.push("text-decoration: none; \n"),this.options=e;var r="";e.tags&&f(t,"setTags",this,3)([e.tags]),e.id&&this.res.setAttribute("id",e.id),e.id&&f(t,"setID",this,3)([e.id]),this.commonMethods(e),e.flex&&(this.res.style.display="flex"),e.fixMobileTap&&this.fixMobileTap(e.fixMobileTap);var n=this.removeQuotesFromFirstWord(JSON.stringify(e.pad));if(e.pad&&(r+="\n pad: ".concat(n,",")),e.preffersId&&(this.preffersId=e.preffersId),null!=e.preffersId&&(r+="\n preffersId: ".concat(e.preffersId,",")),e.class&&f(t,"setClass",this,3)([e.class]),e.class&&(r+='\n class: "'.concat(e.class,'",')),e.borderObj){this.res.style.border="".concat(e.borderObj.width," solid ").concat(e.borderObj.color),this.res.style.borderRadius="".concat(e.borderObj.radius);var i=this.removeQuotesFromFirstWord(JSON.stringify(e.borderObj));r+="\n borderObj: ".concat(i,",")}if(!1===this.options.preffersId?this.html.push('<a class="'.concat(e.class,'" href="#hello">').concat(e.text,"</a> \n \n")):e.id&&this.html.push('<a id="'.concat(e.id.substr(1),'" href="#hello">').concat(e.text,"</a> \n \n")),null!=e.blastData){var s=this.removeQuotesFromFirstWord(JSON.stringify(e.blastData));f(t,"setAny",this,3)([{globalBlast:"1px ".concat(e.blastData.color)}]),e.blastData&&(r+="\n blastData: ".concat(s,","))}e.nowrap&&(this.res.style.whiteSpace="nowrap"),e.font&&this.font(e.font),e.font&&(r+='\n font: "'.concat(e.font,'",')),e.font&&this.elCSS.push('font-family: "'.concat(e.font,'"; \n')),e.fluidc&&this.fluidCopy(e.fluidc),e.fluidc&&(r+='\n fluidc: "'.concat(e.fluidc,'",')),e.clampc&&this.clampCopy(e.clampc),this.options.id&&(r+='\n id: "'.concat(this.options.id,'",')),e.align&&this.leftAlign(e.align),e.align&&(r+='\n align: "'.concat(e.align,'",')),e.type&&(this.res.style.display="block"),e.color&&this.color(e.color),e.color&&(r+='\n color: "'.concat(e.color,'",')),e.color&&this.elCSS.push('color: "'.concat(e.color,'"; \n')),e.background&&this.background(e.background);var o=this.removeQuotesFromFirstWord(JSON.stringify(e.background));e.background&&(r+="\n background: ".concat(o,",")),e.hover&&this.hover(e.hover);var a=this.removeQuotesFromFirstWord(JSON.stringify(e.hover));if(e.hover&&(r+="\n hover: ".concat(a,",")),e.blast&&(this.blastData=e.blast),e.bold&&(r+="\n bold: ".concat(e.bold,",")),e.block&&this.toBlock(),e.block&&(r+="\n block: ".concat(e.block,",")),e.radius&&(r+='\n radius: "'.concat(e.radius,'",')),e.width&&(r+='\n width: "'.concat(e.width,'",')),e.arrayPadding){var l=e.arrayPadding.sides.map(function(t){return'"'.concat(t,'"')}).join(", ");e.arrayPadding&&this.arrayPadding(e.arrayPadding.sides,e.arrayPadding.value),e.arrayPadding&&(r+="\n arrayPadding: {sides: [".concat(l,'], value: "').concat(e.arrayPadding.value,'"},'))}if(e.arrayMargin&&this.arrayMargin(e.arrayMargin.sides,e.arrayMargin.value),e.arrayMargin&&(r+="\n arrayMargin: {sides: [".concat(e.arrayMargin.sides.map(function(t){return'"'.concat(t,'", ')}),'], value: "').concat(e.arrayMargin.value,'"},')),e.maxWidth&&this.maxWidth(e.maxWidth),e.url&&this.res.setAttribute("href",e.url),r+='\n url: "'.concat(e.url,'",'),e.text&&(this.res.textContent=e.text),r+='\n text: "'.concat(e.text,'",'),e.data){e.data&&this.appendImageAsChild(e.data,"20px");var c=this.removeQuotesFromFirstWord(JSON.stringify(e.data));e.data&&(r+="\n data: ".concat(c))}if(e.icon){this.addIcon(e.icon);var u=this.removeQuotesFromFirstWord(JSON.stringify(e.icon));r+="\n icon: ".concat(u,",")}if(e.shadow){var d=e.shadow,h=this.removeQuotesFromFirstWord(JSON.stringify(d));r+="\n shadow: ".concat(h,",")}if(e.stroke){var p=this.removeQuotesFromFirstWord(JSON.stringify(e.stroke));e.stroke&&(r+="\n stroke: ".concat(p,","))}if(e.backgroundOp){var y=this.removeQuotesFromFirstWord(JSON.stringify(e.backgroundOp));r+="\n backgroundOp: ".concat(y,",")}if(e.marginOp){var m=this.removeQuotesFromFirstWord(JSON.stringify(e.marginOp));r+="\n marginOp: ".concat(m,",")}if(e.gradient){var v=this.removeQuotesFromFirstWord(JSON.stringify(e.gradient));r+="\n gradient: ".concat(v,",")}if(e.animation){var g=this.removeQuotesFromFirstWord(JSON.stringify(e.animation));r+="\n animation: ".concat(g,",")}if(e.transform){var b=this.removeQuotesFromFirstWord(JSON.stringify(e.transform));r+="\n transform: ".concat(b,",")}if(e.blast){var x=this.removeQuotesFromFirstWord(JSON.stringify(e.blast));r+="\n blast: ".concat(x,",")}var k="new Link().set({".concat(r,"}) \n");this.code.push(k),e.color&&this.color(e.color),e.rounded&&this.round(),e.new&&(this.res.setAttribute("target","_blank"),this.res.setAttribute("rel","noopener noreferrer")),e.transform&&this.reactOnTransform(e.transform);var w=[],S=[e.border,e.blast,e.gradient,e.animation,e.span,e.shadow,e.backgroundOp,e.animation,e.transform];if((S=S.filter(function(t){return null!=t})).length>0){e.gradient&&(this.globalGradient=e.gradient.op.gradient,"radial"===e.gradient.op.direction&&(this.globalGradient="radial-gradient(circle at center, orange, green)")),e.stroke&&f(t,"setAny",this,3)([{globalBlast:"".concat(e.stroke.op.width," ").concat(e.stroke.op.color)}]);for(var O=0;O<S.length;O++)w.push({range:S[O].range,log:S[O].op.name,target:S[O].target,op:S[O].op});var T=[];e.borderObj&&T.push("border"),e.background&&T.push("background"),e.mar&&T.push("margin"),e.animation&&T.push("animation"),this.chainReact(w,e.id,T,e.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:"color",value:function(t){return this.res.style.color=t,this}},{key:"maxWidth",value:function(t){return this.res.style.maxWidth=t,this}},{key:"background",value:function(t){return this.res.style.backgroundColor=t,this}},{key:"leftAlign",value:function(t){return this.res.style.textAlign=t,this}},{key:"arrayPadding",value:function(t,e){return e||(this.res.style.marginLeft="".concat(t[0],"px"),this.res.style.marginTop="".concat(t[1],"px"),this.res.style.marginRight="".concat(t[2],"px"),this.res.style.marginBottom="".concat(t[3],"px")),"all"===t[0]&&(this.res.style.paddingLeft=e,this.res.style.paddingTop=e,this.res.style.paddingRight=e,this.res.style.paddingBottom=e),t.includes("left")&&(this.res.style.paddingLeft=e),t.includes("right")&&(this.res.style.paddingRight=e),t.includes("top")&&(this.res.style.paddingTop=e),t.includes("bottom")&&(this.res.style.paddingBottom=e),e||(this.res.style.paddingBottom=t),this}},{key:"arrayMargin",value:function(t,e){return t.includes("left")&&(this.res.style.marginLeft=e),t.includes("right")&&(this.res.style.marginRight=e),t.includes("top")&&(this.res.style.marginTop=e),t.includes("bottom")&&(this.res.style.marginBottom=e),t.includes("all")&&(this.res.style.margin=e),e||(this.res.style.marginBottom=t),this}},{key:"getClampValue",value:function(t){return"S6"===t?"clamp(2.25rem, 2vw+1.5rem, 3.25rem)":"S5"===t?"clamp(2.75rem, 2vw + 1.5rem, 3.25rem)":"S4"===t?"clamp(3.5rem, 2vw + 1.5rem, 3.25rem)":"S3"===t?"clamp(4.25rem, 2vw + 1.5rem, 3.25rem)":"S2"===t?"clamp(5rem, 2vw + 1.5rem, 3.25rem)":"S1"===t?"clamp(6rem, 2vw + 1.5rem, 3.25rem)":void 0}},{key:"clampCopy",value:function(t){return this.res.style.fontSize=this.getClampValue(t),this}},{key:"fluidCopy",value:function(t){return"S1"===t&&(this.res.style.fontSize="calc(1.625rem + 5.075vw)"),"S2"===t&&(this.res.style.fontSize="calc(1.500rem + 4.3vw)"),"S3"===t&&(this.res.style.fontSize="calc(1.375rem + 3.525vw)"),"S4"===t&&(this.res.style.fontSize="calc(1.250rem + 2.75vw)"),"S5"===t&&(this.res.style.fontSize="calc(1.125rem + 1.975vw)"),"S6"===t&&(this.res.style.fontSize="calc(1rem + 0.5vw)"),this}},{key:"inlineBlock",value:function(){return this.res.style.display="inline-block",this}},{key:"toBlock",value:function(){return this.res.style.display="block",this}},{key:"myself",value:function(t){var e=this,r=function(){window.matchMedia("(max-device-width: 415px)").matches?e.res.style.fontSize=t.desktop:e.res.style.fontSize=t.phone};return r(),window.addEventListener("resize",r),this}},{key:"style",value:function(t){return this.res.style.color=t.styles.color,this.res.style.fontWeight=t.styles.fontWeight,this.res.style.paddingLeft=t.styles.padding[0],this.res.style.paddingTop=t.styles.padding[1],this.res.style.paddingRight=t.styles.padding[2],this.res.style.paddingBottom=t.styles.padding[3],this}},{key:"round",value:function(){return this.res.style.borderRadius="0.5rem",this.options.rounded&&(this.res.children[0].style.borderRadius="0.5rem"),this}},{key:"newWindow",value:function(){return this.res.target="_new",this}},{key:"radius",value:function(t){return this.res.style.borderRadius="".concat(t),this}},{key:"transition",value:function(t){return this.res.style.transition="".concat(t,"s ease-in-out"),this.res.style.transionProperty="background, color",this}},{key:"width",value:function(t){return this.res.style.width=t,this}},{key:"italic",value:function(){return this.res.style.fontStyle="italic",this}},{key:"padding",value:function(t,e,r,n){return t&&e&&r&&n?(this.res.style.paddingLeft=t,this.res.style.paddingTop=e,this.res.style.paddingRight=r,this.res.style.paddingBottom=n):this.res.style.padding=t,this}},{key:"medium",value:function(){var t=this,e=function(){window.matchMedia("(max-device-width: 415px)").matches?t.res.style.fontSize="2rem":t.res.style.fontSize="1.5em"};return e(),window.addEventListener("resize",e),this}},{key:"opacity",value:function(t){return this.res.style.opacity=t,this}},{key:"margin",value:function(t,e,r,n){return this.res.style.marginTop=t,this.res.style.marginLeft=e,this.res.style.marginRight=r,this.res.style.marginBottom=n,this}},{key:"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}}])&&d(e.prototype,r),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,r}();function b(t){return b="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},b(t)}function x(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,k(n.key),n)}}function k(t){var e=function(t){if("object"!=b(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=b(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==b(e)?e:e+""}var w=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){var e=t.bst,r=t.el,n=t.re;console.log("OLESTE"),console.log(e),console.log(r),console.log(n),t.options;for(var i=[],s=0;s<e.length;s++)e[s].target&&(r.id,e[s].target[0]);for(s=0;s<e.length;s++){var o=!0;e[s].target&&(o=!1,r.id===e[s].target[0]&&(o=!0)),console.log("OMESTE"),console.log(t);var a=e[s].op.ops.split("-");o&&a.includes("air")&&(n.borderObj={color:"#1abc9c",radius:"0rem",width:"3px"},n.color="#1abc9c",n.background="transparent"),o&&a.includes("round")&&(a.includes("air")?n.borderObj={width:"4px",radius:"0.7rem",color:"#1abc9c"}:n.borderObj={width:"0px",radius:"0.7rem",color:"#1abc9c"}),o&&a.includes("full")&&(n.background="#3498db",n.borderObj&&n.borderObj.radius&&(n.borderObj.radius="0.3rem"),n.color="white"),o&&a.includes("pill")&&(n.background="#3498db",n.borderObj.radius="9999px",n.color="white"),o&&a.includes("hover")&&(n.hover={color:"#1abc9c",background:"orange"}),i.push((new g).set(n))}return i}}],null&&x(t.prototype,null),e&&x(t,e),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e}();export{w as LinkStyler};
package/dist/link.cjs.js CHANGED
@@ -1,2 +1 @@
1
- /*! For license information please see link.cjs.js.LICENSE.txt */
2
- (()=>{"use strict";var t={d:(e,r)=>{for(var n in r)t.o(r,n)&&!t.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:r[n]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r:t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}},e={};function r(t){return r="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},r(t)}function n(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,i,s,o,a=[],l=!0,c=!1;try{if(s=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=s.call(r)).done)&&(a.push(n.value),a.length!==e);l=!0);}catch(t){c=!0,i=t}finally{try{if(!l&&null!=r.return&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return a}}(t,e)||s(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function 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,i=function(){};return{s:i,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,l=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return a=t.done,t},e:function(t){l=!0,o=t},f:function(){try{a||null==r.return||r.return()}finally{if(l)throw o}}}}function s(t,e){if(t){if("string"==typeof t)return 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}}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 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,l(n.key),n)}}function l(t){var e=function(t){if("object"!=r(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=r(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==r(e)?e:e+""}function c(t){return c="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},c(t)}function u(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 d(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,h(n.key),n)}}function h(t){var e=function(t){if("object"!=c(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=c(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==c(e)?e:e+""}function p(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(p=function(){return!!t})()}function f(t,e,r,n){var i=y(m(1&n?t.prototype:t),e,r);return 2&n&&"function"==typeof i?function(t){return i.apply(r,t)}:i}function y(){return y="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,r){var n=function(t,e){for(;!{}.hasOwnProperty.call(t,e)&&null!==(t=m(t)););return t}(t,e);if(n){var i=Object.getOwnPropertyDescriptor(n,e);return i.get?i.get.call(arguments.length<3?t:r):i.value}},y.apply(null,arguments)}function m(t){return m=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},m(t)}function v(t,e){return v=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},v(t,e)}t.r(e),t.d(e,{Link:()=>g});var g=function(t){function e(t,r,n){var i;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(i=function(t,e,r){return e=m(e),function(t,e){if(e&&("object"==c(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,p()?Reflect.construct(e,r||[],m(t).constructor):e.apply(t,r))}(this,e)).link=r,i.text=t,i.code=[],i.css=[],i.elCSS=[],i.html=[],i.res=null,i.stopEM=n,i.setup(),i.inlineBlock(),i.res.addEventListener("click",(function(t){var e=i.link||i.res.getAttribute("href");if(e){var r=new URL(e,window.location.href).href,n=/^https?:\/\//i.test(r),s=r.startsWith("#"),o=/^[a-zA-Z]+:/.test(r);n||s||r.endsWith(".html")||o||(t.preventDefault(),"navigation"in window?navigation.navigate(r):(history.pushState({},"",r),document.dispatchEvent(new PopStateEvent("popstate"))))}})),i}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&v(t,e)}(e,t),r=e,(n=[{key:"toCSS",value:function(){return this.css}},{key:"toHTMLA",value:function(){return this.html}},{key:"toElCSS",value:function(){return this.preffersId?this.elCSS.unshift(this.res.id+" { \n"):this.elCSS.unshift("."+this.class+" { \n"),this.elCSS.push(" } \n \n"),this.elCSS}},{key:"getType",value:function(){return"HTMLAnchorElement"}},{key:"toCode",value:function(){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,i,s,o,a=[],l=!0,c=!1;try{if(s=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=s.call(r)).done)&&(a.push(n.value),a.length!==e);l=!0);}catch(t){c=!0,i=t}finally{try{if(!l&&null!=r.return&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return a}}(t,e)||function(t,e){if(t){if("string"==typeof t)return u(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)?u(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=JSON.stringify(t,null,4).replace(/"([^"]+)":/g,"$1:");return["new Link().set(".concat(e,")")]}},{key:"setArea",value:function(t){return this.res.style.gridArea=t,this}},{key:"setup",value:function(){var t=document.createElement("a");t.setAttribute("href",this.link),t.style.textDecoration="none",t.style.color="black",t.style.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),t.options.padRight&&(this.res.style.paddingRight=t.options.padRight),r.appendChild(n)),this.res=r,e&&(this.res.style.marginLeft=e),this}},{key:"addIcon",value:function(t){var e=document.createElement("img");return e.style.width="20px",e.style.height="auto",e.style.marginLeft=t.padding?t.padding:"10px",e.setAttribute("src",t.url),this.res.appendChild(e),this}},{key:"removeQuotesFromFirstWord",value:function(t){if(t)return t.replace(/"([^"]+)":/g,"$1:")}},{key:"set",value:function(t){this.elCSS.push("text-decoration: none; \n"),this.options=t;var r="";t.tags&&f(e,"setTags",this,3)([t.tags]),t.id&&this.res.setAttribute("id",t.id),t.id&&f(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&&f(e,"setClass",this,3)([t.class]),t.class&&(r+='\n class: "'.concat(t.class,'",')),t.borderObj){this.res.style.border="".concat(t.borderObj.width," solid ").concat(t.borderObj.color),this.res.style.borderRadius="".concat(t.borderObj.radius);var i=this.removeQuotesFromFirstWord(JSON.stringify(t.borderObj));r+="\n borderObj: ".concat(i,",")}if(!1===this.options.preffersId?this.html.push('<a class="'.concat(t.class,'" href="#hello">').concat(t.text,"</a> \n \n")):t.id&&this.html.push('<a id="'.concat(t.id.substr(1),'" href="#hello">').concat(t.text,"</a> \n \n")),null!=t.blastData){var s=this.removeQuotesFromFirstWord(JSON.stringify(t.blastData));f(e,"setAny",this,3)([{globalBlast:"1px ".concat(t.blastData.color)}]),t.blastData&&(r+="\n blastData: ".concat(s,","))}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 o=this.removeQuotesFromFirstWord(JSON.stringify(t.background));t.background&&(r+="\n background: ".concat(o,",")),t.hover&&this.hover(t.hover);var a=this.removeQuotesFromFirstWord(JSON.stringify(t.hover));if(t.hover&&(r+="\n hover: ".concat(a,",")),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.arrayPadding){var l=t.arrayPadding.sides.map((function(t){return'"'.concat(t,'"')})).join(", ");t.arrayPadding&&this.arrayPadding(t.arrayPadding.sides,t.arrayPadding.value),t.arrayPadding&&(r+="\n arrayPadding: {sides: [".concat(l,'], value: "').concat(t.arrayPadding.value,'"},'))}if(t.arrayMargin&&this.arrayMargin(t.arrayMargin.sides,t.arrayMargin.value),t.arrayMargin&&(r+="\n arrayMargin: {sides: [".concat(t.arrayMargin.sides.map((function(t){return'"'.concat(t,'", ')})),'], value: "').concat(t.arrayMargin.value,'"},')),t.maxWidth&&this.maxWidth(t.maxWidth),t.url&&this.res.setAttribute("href",t.url),r+='\n url: "'.concat(t.url,'",'),t.text&&(this.res.textContent=t.text),r+='\n text: "'.concat(t.text,'",'),t.data){t.data&&this.appendImageAsChild(t.data,"20px");var c=this.removeQuotesFromFirstWord(JSON.stringify(t.data));t.data&&(r+="\n data: ".concat(c))}if(t.icon){this.addIcon(t.icon);var u=this.removeQuotesFromFirstWord(JSON.stringify(t.icon));r+="\n icon: ".concat(u,",")}if(t.shadow){var d=t.shadow,h=this.removeQuotesFromFirstWord(JSON.stringify(d));r+="\n shadow: ".concat(h,",")}if(t.stroke){var p=this.removeQuotesFromFirstWord(JSON.stringify(t.stroke));t.stroke&&(r+="\n stroke: ".concat(p,","))}if(t.backgroundOp){var y=this.removeQuotesFromFirstWord(JSON.stringify(t.backgroundOp));r+="\n backgroundOp: ".concat(y,",")}if(t.marginOp){var m=this.removeQuotesFromFirstWord(JSON.stringify(t.marginOp));r+="\n marginOp: ".concat(m,",")}if(t.gradient){var v=this.removeQuotesFromFirstWord(JSON.stringify(t.gradient));r+="\n gradient: ".concat(v,",")}if(t.animation){var g=this.removeQuotesFromFirstWord(JSON.stringify(t.animation));r+="\n animation: ".concat(g,",")}if(t.transform){var b=this.removeQuotesFromFirstWord(JSON.stringify(t.transform));r+="\n transform: ".concat(b,",")}if(t.blast){var x=this.removeQuotesFromFirstWord(JSON.stringify(t.blast));r+="\n blast: ".concat(x,",")}var k="new Link().set({".concat(r,"}) \n");this.code.push(k),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 w=[],S=[t.border,t.blast,t.gradient,t.animation,t.span,t.shadow,t.backgroundOp,t.animation,t.transform];if((S=S.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&&f(e,"setAny",this,3)([{globalBlast:"".concat(t.stroke.op.width," ").concat(t.stroke.op.color)}]);for(var O=0;O<S.length;O++)w.push({range:S[O].range,log:S[O].op.name,target:S[O].target,op:S[O].op});var T=[];t.borderObj&&T.push("border"),t.background&&T.push("background"),t.mar&&T.push("margin"),t.animation&&T.push("animation"),this.chainReact(w,t.id,T,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:"color",value:function(t){return this.res.style.color=t,this}},{key:"maxWidth",value:function(t){return this.res.style.maxWidth=t,this}},{key:"background",value:function(t){return this.res.style.backgroundColor=t,this}},{key:"leftAlign",value:function(t){return this.res.style.textAlign=t,this}},{key:"arrayPadding",value:function(t,e){return e||(this.res.style.marginLeft="".concat(t[0],"px"),this.res.style.marginTop="".concat(t[1],"px"),this.res.style.marginRight="".concat(t[2],"px"),this.res.style.marginBottom="".concat(t[3],"px")),"all"===t[0]&&(this.res.style.paddingLeft=e,this.res.style.paddingTop=e,this.res.style.paddingRight=e,this.res.style.paddingBottom=e),t.includes("left")&&(this.res.style.paddingLeft=e),t.includes("right")&&(this.res.style.paddingRight=e),t.includes("top")&&(this.res.style.paddingTop=e),t.includes("bottom")&&(this.res.style.paddingBottom=e),e||(this.res.style.paddingBottom=t),this}},{key:"arrayMargin",value:function(t,e){return t.includes("left")&&(this.res.style.marginLeft=e),t.includes("right")&&(this.res.style.marginRight=e),t.includes("top")&&(this.res.style.marginTop=e),t.includes("bottom")&&(this.res.style.marginBottom=e),t.includes("all")&&(this.res.style.margin=e),e||(this.res.style.marginBottom=t),this}},{key:"getClampValue",value:function(t){return"S6"===t?"clamp(2.25rem, 2vw+1.5rem, 3.25rem)":"S5"===t?"clamp(2.75rem, 2vw + 1.5rem, 3.25rem)":"S4"===t?"clamp(3.5rem, 2vw + 1.5rem, 3.25rem)":"S3"===t?"clamp(4.25rem, 2vw + 1.5rem, 3.25rem)":"S2"===t?"clamp(5rem, 2vw + 1.5rem, 3.25rem)":"S1"===t?"clamp(6rem, 2vw + 1.5rem, 3.25rem)":void 0}},{key:"clampCopy",value:function(t){return this.res.style.fontSize=this.getClampValue(t),this}},{key:"fluidCopy",value:function(t){return"S1"===t&&(this.res.style.fontSize="calc(1.625rem + 5.075vw)"),"S2"===t&&(this.res.style.fontSize="calc(1.500rem + 4.3vw)"),"S3"===t&&(this.res.style.fontSize="calc(1.375rem + 3.525vw)"),"S4"===t&&(this.res.style.fontSize="calc(1.250rem + 2.75vw)"),"S5"===t&&(this.res.style.fontSize="calc(1.125rem + 1.975vw)"),"S6"===t&&(this.res.style.fontSize="calc(1rem + 0.5vw)"),this}},{key:"inlineBlock",value:function(){return this.res.style.display="inline-block",this}},{key:"toBlock",value:function(){return this.res.style.display="block",this}},{key:"myself",value:function(t){var e=this,r=function(){window.matchMedia("(max-device-width: 415px)").matches?e.res.style.fontSize=t.desktop:e.res.style.fontSize=t.phone};return r(),window.addEventListener("resize",r),this}},{key:"style",value:function(t){return this.res.style.color=t.styles.color,this.res.style.fontWeight=t.styles.fontWeight,this.res.style.paddingLeft=t.styles.padding[0],this.res.style.paddingTop=t.styles.padding[1],this.res.style.paddingRight=t.styles.padding[2],this.res.style.paddingBottom=t.styles.padding[3],this}},{key:"round",value:function(){return this.res.style.borderRadius="0.5rem",this.options.rounded&&(this.res.children[0].style.borderRadius="0.5rem"),this}},{key:"newWindow",value:function(){return this.res.target="_new",this}},{key:"radius",value:function(t){return this.res.style.borderRadius="".concat(t),this}},{key:"transition",value:function(t){return this.res.style.transition="".concat(t,"s ease-in-out"),this.res.style.transionProperty="background, color",this}},{key:"width",value:function(t){return this.res.style.width=t,this}},{key:"italic",value:function(){return this.res.style.fontStyle="italic",this}},{key:"padding",value:function(t,e,r,n){return t&&e&&r&&n?(this.res.style.paddingLeft=t,this.res.style.paddingTop=e,this.res.style.paddingRight=r,this.res.style.paddingBottom=n):this.res.style.padding=t,this}},{key:"medium",value:function(){var t=this,e=function(){window.matchMedia("(max-device-width: 415px)").matches?t.res.style.fontSize="2rem":t.res.style.fontSize="1.5em"};return e(),window.addEventListener("resize",e),this}},{key:"opacity",value:function(t){return this.res.style.opacity=t,this}},{key:"margin",value:function(t,e,r,n){return this.res.style.marginTop=t,this.res.style.marginLeft=e,this.res.style.marginRight=r,this.res.style.marginBottom=n,this}},{key:"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}}])&&d(r.prototype,n),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n}(function(){return t=function t(){var e,r,n,i=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),e=this,n=function(t){if(console.log("LOBJO IS"),console.log(t),t.transform||t.op&&t.op.transform){var e=t.transform;t.transform||(e=t.op.transform),e.duration||(e.duration="3s-ease-in-out"),i.setDefault=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"0px";return 0===t.length?e+" ":t};var r=function(){var r="",n="",s="",o="",a="",l="",c="",u="",d="";if(0!==e.values.length){e.values.forEach((function(t){t.startsWith("tx:")&&(r=t.replace("tx:","")),t.startsWith("ty:")&&(n=t.replace("ty:","")),t.startsWith("tz:")?s=t.replace("tz:",""):t.startsWith("scale(")?o=t:t.startsWith("skew(")?a=t:t.startsWith("rotate(")?l=function(t){var e=t.match(/rotate\(([^)]+)\)/);if(!e)return t;var r=e[1].split(",").map((function(t){return t.trim()}));return 1===r.length?"rotate(".concat(r[0],")"):2===r.length?"rotateX(".concat(r[0],") rotateY(").concat(r[1],")"):3===r.length?"rotateX(".concat(r[0],") rotateY(").concat(r[1],") rotate(").concat(r[2],")"):t}(t):t.startsWith("perspective(")?c=t:t.startsWith("matrix(")?u=t:t.startsWith("opacity:")&&(d=t.replace("opacity:",""))})),r=i.setDefault(r),n=i.setDefault(n),s=i.setDefault(s);var h="";if("0px"!=n&&"0px"!=r&&"0px"!=s?h+="translate3d(".concat(r,", ").concat(n,", ").concat(s,")"):"0px"==n&&"0px"==r||(h+="translate(".concat(r,", ").concat(n,")")),o&&(h+=" ".concat(o)),l&&(h+=" ".concat(l)),a&&(h+=" ".concat(a)),c&&(h+=" ".concat(c)),u&&(h+=" ".concat(u)),h){if(t.op.transform.duration){var p=t.op.transform.duration.replace(/^(\d+)(s)-/,(function(t,e,r){return e/2+r+" "})),f="transform ".concat(p,", opacity ").concat(p);i.res.style.transition=f}else i.res.style.transition="transform 3s ease-in-out, opacity 3s ease-in-out";t.op.transform.static&&(i.res.style.transition=""),(i.blastTarget||i.res).style.transform=h,i.res.style.opacity=d}else alert("OPE")}};e.on?i.res.addEventListener(e.on,(function(){e.delay?setTimeout((function(){r()}),e.delay):r()})):window.addEventListener("load",(function(){e.delay?setTimeout((function(){r()}),e.delay):r()}));var n=function(){var t="";e.values.forEach((function(e){e.startsWith("tx:")?t+="translateX(0) ":e.startsWith("ty:")?t+="translateY(0) ":e.startsWith("tz:")?t+="translateZ(0) ":e.startsWith("scale(")?t+="scale(1) ":e.startsWith("skew(")?t+="skew(0, 0) ":e.startsWith("rotate(")?t+="rotate(0) ":e.startsWith("perspective(")?t+="perspective(0) ":e.startsWith("matrix(")&&(t+="matrix(1, 0, 0, 1, 0, 0) "),i.res.style.opacity="1"})),t&&(i.res.style.transform=t.trim())};if(e.on)i.res.addEventListener("mouseout",(function(){e.keep||n()}));else{var s=1e3*parseFloat(e.duration),o=e.closeAfter?e.closeAfter:0;setTimeout((function(){e.keep||n()}),s/2+o)}e.hardCSS&&(i.res.style.transform=e.hardCSS)}else alert("THIS FIRE WITH GRADIENT (invalid block"),console.log("INVALID BLOCKA"),console.log(t)},(r=l(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},e=[{key:"isHidden",value:function(t){t&&(this.res.style.display="none")}},{key:"keySet",value:function(t){return this.temporaryVal=1,this.res.style[t.key]=t.value,this}},{key:"commonMethods",value:function(t){var e={exact:"fontSize",zIndex:"zIndex",position:"position",top:"top",cursor:"cursor",width:"width",maxWidth:"maxWidth",height:"height",maxHeight:"maxHeight",radius:"borderRadius",lineHeight:"lineHeight",background:"background",font:"fontFamily",opacity:"opacity"};for(var r in e)null!=t[r]&&(this.res.style[e[r]]=t[r]);return 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.hover&&this.hover(t.hover),t.size&&this.fluidCopy(t.size),t.resprop&&this.resprop(t.resprop),t.keySet&&this.keySet(t.keySet),t.hide&&this.isHidden(t.hide),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.borderObj;return n&&(this.res.style.border="".concat(n.width,"px solid ").concat(n.color)),this.prevColor=this.res.style.backgroundColor,this.foreColor=this.res.style.color,this.prevBorder=this.res.style.border,t.animation&&(this.res.style.transition="".concat(t.animation),this.res.style.transionProperty="background, color"),this.res.onmouseout=function(){e.res.style.backgroundColor="".concat(e.prevColor),e.res.style.color="".concat(e.foreColor),e.res.style.border=e.prevBorder},this.res.onmouseover=function(){if(e.res.style.color=t.color,e.res.style.backgroundColor=t.background,t.border){var r,n=t.border.width,i=null!==(r=t.border.color)&&void 0!==r?r:"#2ECC71";e.res.style.border=n?"".concat(n,"px solid ").concat(i):"1px solid #2ECC71"}},this}},{key:"onScroll",value:function(t){var e=this;"opacity"===t.value?this.res.style.opacity=t.valMin:"scale"===t.value&&(this.res.style.transform="scale(".concat(t.valMax,")")),window.addEventListener("scroll",(function(){var r=e.smartRange(window.scrollY,{min:t.from,max:t.to},{min:t.valMin,max:t.valMax});"opacity"===t.value?e.res.style.opacity=r:"scale"===t.value&&(e.res.style.transform="scale(".concat(r,")"))}))}},{key:"setAny",value:function(t){this[Object.keys(t)[0]]=[Object.values(t)[0]]}},{key:"setID",value:function(t){this.id=t}},{key:"setPrevText",value:function(t){this.prevText=t}},{key:"getCSS",value:function(){return this.css}},{key:"getPX",value:function(t){return{xs:"0px",sm:"576px",md:"768px",lg:"992px",xl:"1200px",xxl:"1400px",mxxl:"1800px"}[t]||"Invalid breakpoint"}},{key:"respad",value:function(t){var e=this;this._applyResponsive(t,(function(t){console.log("Applying padding for",t.breakpoint),e.pad(t.values)}))}},{key:"_applyResponsive",value:function(t,e){var r={default:0,xs:0,sm:576,md:768,lg:992,xl:1200,xxl:1400};t.forEach((function(t){void 0!==r[t.breakpoint]?t._value=r[t.breakpoint]:t._value=parseInt(t.breakpoint,10)})),t.sort((function(t,e){return t._value-e._value}));var n=t.find((function(t){return"default"===t.breakpoint})),i=function(){for(var r=window.innerWidth,i=n||null,s=0;s<t.length;s++){var o=t[s];if("default"!==o.breakpoint&&r<=o._value){i=o;break}}i&&e(i)};this._responsiveHandler&&window.removeEventListener("resize",this._responsiveHandler),this._responsiveHandler=i,window.addEventListener("resize",i),i()}},{key:"resmar",value:function(t){var e=this;this._applyResponsive(t,(function(t){console.log("Applying margin for",t.breakpoint),e.mar(t.values)}))}},{key:"resprop",value:function(t){var e=this;this.prevStyles={};for(var r=0;r<this.res.style.length;r++){var n=this.res.style[r];this.prevStyles[n]=this.res.style[n]}this._applyResponsive(t,(function(t){for(var r in console.log("Applying styles for",t.breakpoint),e.prevStyles)e.res.style[r]=e.prevStyles[r];for(var n in t)"breakpoint"!==n&&"_value"!==n&&"values"!==n&&(e.res.style[n]=t[n])}))}},{key:"isNumber",value:function(t){return"number"==typeof t&&!isNaN(t)}},{key:"pad",value:function(t){for(var e=0;e<t.length;e++)for(var r=Object.keys(t[e]),n=0;n<r.length;n++)for(var i=r[n],s=t[e][i],o=0;o<i.length;o++)switch(i[o]){case"a":this.res.style.padding=this.isNumber(s)?"".concat(s,"px"):s;break;case"t":this.res.style.paddingTop=this.isNumber(s)?"".concat(s,"px"):s;break;case"l":this.res.style.paddingLeft=this.isNumber(s)?"".concat(s,"px"):s;break;case"r":this.res.style.paddingRight=this.isNumber(s)?"".concat(s,"px"):s;break;case"b":this.res.style.paddingBottom=this.isNumber(s)?"".concat(s,"px"):s}return this}},{key:"as",value:function(t){return this.res.style.alignSelf=t,this}},{key:"mar",value:function(t){for(var e=0;e<t.length;e++)for(var r=Object.keys(t[e]),n=0;n<r.length;n++)for(var i=r[n],s=t[e][i],o=0;o<i.length;o++){switch(i[o]){case"a":this.res.style.margin=this.isNumber(s)?"".concat(s,"px"):s;break;case"t":this.res.style.marginTop=this.isNumber(s)?"".concat(s,"px"):s;break;case"l":this.res.style.marginLeft=this.isNumber(s)?"".concat(s,"px"):s;break;case"r":this.res.style.marginRight=this.isNumber(s)?"".concat(s,"px"):s;break;case"b":this.res.style.marginBottom=this.isNumber(s)?"".concat(s,"px"):s}"auto"===i[o]&&(this.res.style.marginLeft="auto",this.res.style.marginRight="auto")}return this}},{key:"smartRange",value:function(t,e,r){t<e.min&&(t=e.min),t>e.max&&(t=e.max);var n=(t-e.min)/(e.max-e.min);e.min>e.max&&(n=(t-e.max)/(e.min-e.max));var i=(r.min-r.max)*n-r.min;if(i=Math.abs(i),r.min<r.max){var s=(r.max+Math.abs(r.min))*n;i=r.min+s}return i}},{key:"gpos",value:function(t){return this.res.style.gridColumn=t.col,this.res.style.gridRow=t.row,this}},{key:"fluidCopy",value:function(t){if(t instanceof Object){this.prevStylex=this.res.style,this.res=document.createElement("h1"),this.res.style.cssText=this.prevStylex.cssText;var e=document.createTextNode(this.text);return this.res.appendChild(e),this.res.style.fontSize=t.exact,this}if("S1"===t){this.prevStylex=this.res.style,this.res=document.createElement("h1"),this.res.style.cssText=this.prevStylex.cssText;var r=document.createTextNode(this.text);this.res.appendChild(r),this.res.style.fontSize="calc(1.625rem + 5.075vw)"}if("S2"===t){this.prevStylex=this.res.style,this.res=document.createElement("h2"),this.res.style.cssText=this.prevStylex.cssText;var n=document.createTextNode(this.text);this.res.appendChild(n),this.res.style.fontSize="calc(1.500rem + 4.3vw)"}if("S3"===t){this.prevStylex=this.res.style,this.res=document.createElement("h3"),this.res.style.cssText=this.prevStylex.cssText;var i=document.createTextNode(this.text);this.res.appendChild(i),this.res.style.fontSize="calc(1.375rem + 3.525vw)"}if("S4"===t){this.prevStylex=this.res.style,this.res=document.createElement("h4"),this.res.style.cssText=this.prevStylex.cssText;var s=document.createTextNode(this.text);this.res.appendChild(s),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 o=document.createTextNode(this.text);this.res.appendChild(o),this.res.style.fontSize="calc(1.125rem + 1.975vw)"}return"S6"===t&&(this.res.style.fontSize="calc(1rem + 0.5vw)"),this}},{key:"setIndex",value:function(t){this.index=t}},{key:"borderObj",value:function(t){var e,r=null!==(e=t.type)&&void 0!==e?e:"solid";return this.res.style.border="".concat(t.width," ").concat(r," ").concat(t.color),this.res.style.borderRadius=t.radius,this}},{key:"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,console.log("TAGS SET"),console.log(t)}},{key:"chainReact",value:function(t,e,r){var s=this;console.log("0P"),this.ap=!1,this.cta=0,this.once=!1;var o,a=i(t);try{for(a.s();!(o=a.n()).done;){var l=o.value;l.range||(l.range=["0px","999999px"])}}catch(t){a.e(t)}finally{a.f()}t.sort((function(t,e){return parseInt(t.range[0])-parseInt(e.range[0])}));var c=function(o){var a=window.visualViewport.width,l=[],c=[];s.resCopy=s.res,s.storedQueries=t.map((function(t){return t.target})).filter((function(t){return null!=t}));var u,d=i(t);try{for(d.s();!(u=d.n()).done;){var h=u.value;s.counterIndex++;var p=n(h.range,2),f=p[0],y=p[1],m=parseInt(f),v=parseInt(y),g=!0;if(h.target){g=!1;for(var b=0;b<h.target.length;b++)h.target[b]===e&&(g=!0)}a>=m&&a<=v&&g&&(l.push(h.log),c.push(h),h.op&&h.op.margin&&(s.useMargin=h.op.margin))}}catch(t){d.e(t)}finally{d.f()}if(r&&!r.includes("background")&&(s.res.style.background="",s.res.style.backgroundColor=""),s.res.style.textShadow="",r&&!r.includes("border")&&(s.res.style.border=""),r&&!r.includes("margin")&&(s.res.style.margin=""),s.res.style["-webkit-text-fill-color"]="",s.res.style["-webkit-text-stroke-color"]="",s.res.style["-webkit-text-stroke-width"]="",s.res.style.filter="",s.options.background&&(console.log(s.options.background),s.res.style.background=s.options.background),l.includes("gradient"),(l.includes("gradient")||l.includes("shadow"))&&(s.res.style.position="relative"),l.includes("blast")){var x,k=c.filter((function(t){return"blast"===t.log}))[0].op.color,w=null!==(x=c.filter((function(t){return"blast"===t.log}))[0].op.width)&&void 0!==x?x:"1px";"FlexRowLayoutElement"===s.getType()||"LayoutWrapperElement"===s.getType()?(s.res.style.border="".concat("number"==typeof w?w+"px":w," solid orange"),s.res.style.display="inline-block","FlexRowLayoutElement"===s.getType()&&(s.res.style.display="flex"),s.res.style.boxSizing="border-box",s.res.style.transformOrigin="center",s.blastTarget=s.res):(s.text,s.res.style["-webkit-text-fill-color"]="transparent",s.res.style["-webkit-text-stroke-color"]=k,s.res.style["-webkit-text-stroke-width"]="".concat(w))}if(l.includes("filter")){var S=c.filter((function(t){return"filter"===t.log}))[0].op.filter;s.res.style.filter=S}if(l.includes("background")&&(s.res.style.backgroundColor="green"),l.includes("gradient")&&("LayoutWrapperElement"!==s.getType()&&"FlexRowLayoutElement"!==s.getType()&&(s.res.style["-webkit-text-fill-color"]="transparent"),s.res.style.background=s.globalGradient,"LayoutWrapperElement"!==s.getType()&&"FlexRowLayoutElement"!==s.getType()&&(s.res.style["background-clip"]="text")),l.includes("shadow")){var O,T,C,E,A=s.options.shadow.op;console.log("OP IS",A);var W=null!==(O=A.steps)&&void 0!==O?O:1,j=null!==(T=A.colors)&&void 0!==T?T:["gray"],L=null!==(C=A.movements)&&void 0!==C?C:["3px","3px"],F=null!==(E=A.radius)&&void 0!==E?E:"3px";if(1===L.length&&(L=[L[0],L[0]]),"FlexRowLayoutElement"===s.getType()||"LayoutWrapperElement"===s.getType()){for(var I=[],R=0;R<W;R++){var N,P=null!==(N=j[R])&&void 0!==N?N:j[0],z=L[0],M=L[1];I.push("".concat(z," ").concat(M," ").concat(F," ").concat(P))}s.res.style.boxShadow=I.join(", ")}else{for(var B=[],_=0;_<W;_++){var D,Q=null!==(D=j[_])&&void 0!==D?D:j[0],J=L[0],H=L[1];B.push("drop-shadow(".concat(J," ").concat(H," ").concat(F," ").concat(Q,")"))}s.res.style.filter=B.join(" ")}}if(l.includes("margin"))for(b=0;b<t.length;b++)if(t[b].op){var G=t[b].op.offsets;G&&void 0!==s.index&&(s.res.style.margin=G[Number(s.index)]+"px")}if(l.includes("spana")||l.includes("span")){var V=document.createElement("div");if(V.setAttribute("id","oroa"),Object.assign(V.style,{position:"absolute",inset:"0",background:"linear-gradient(90deg, rgb(52,152,219), rgb(26,188,156))",WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent",pointerEvents:"none"}),s.res&&s.res.querySelector("span"))return;s.res=s.resCopy,s.res.textContent="",s.options.span&&(Array.isArray(s.options.span)?s.options.span:[s.options.span]).forEach((function(t){if(t.op&&"span"===t.op.name&&Array.isArray(t.op.parts)){var e=0,r=s.prevText||"";if(t.op.parts.forEach((function(t){var n=t.text,i=t.style||{};if(e<r.length){var o=r.indexOf(n,e);if(o>e){var a=r.substring(e,o);s.res.appendChild(new s.constructor(a).setup({type:"span",id:i.id,animation:i.animation}).set({}).render())}e=o+n.length}var l=new s.constructor(n).setup({type:"span",id:i.id,animation:i.animation}).set(i).render();s.res.appendChild(l)})),e<r.length){var n=r.substring(e);s.res.appendChild(new s.constructor(n).setup({type:"span"}).set({}).render())}}}))}else{var Y=new s.constructor(s.prevText).set({}).render();s.prevText&&s.prevText.length>0&&o&&s.res.appendChild(Y)}if(l.includes("animation")){if(s.options.animation&&!s.hasAnimated&&!s.options.animation.op.fireAt){console.warn(s.openTag),s.hasAnimated=!0;var $=s.options.animation.op;window.addEventListener("sidebar:open",(function(){s.res.animate($.keyframesOpen,$.openOptions)})),window.addEventListener("sidebar:closed",(function(){s.res.animate($.keyframesClose,$.closeOptions)})),s.res.animate($.keyframesClose,{duration:0,fill:"forwards"}),s.openTag&&s.closeTag&&(window.addEventListener(s.openTag,(function(){s.res.animate($.keyframesOpen,$.openOptions)})),window.addEventListener(s.closeTag,(function(){s.res.animate($.keyframesClose,$.closeOptions)})))}if(s.options.animation&&s.options.animation.op.fireAt&&s.options.animation.op.fireAt.endsWith("px")){var U=s.options.animation.op;s.res.animate(U.keyframesClose,{duration:0,fill:"forwards"});var X=function(){window.scrollY>parseFloat(U.fireAt)&&(s.res.animate(U.keyframesOpen,U.openOptions),window.removeEventListener("scroll",X))};window.addEventListener("scroll",X)}if(s.options.animation&&"inview"===s.options.animation.op.fireAt){var q=s.options.animation.op;s.res.animate(q.keyframesClose,{duration:0,fill:"forwards"});var Z=!1;new IntersectionObserver((function(t,e){t.forEach((function(t){t.isIntersecting&&!Z&&(Z=!0,s.res.animate(q.keyframesOpen,q.openOptions),e.disconnect())}))})).observe(s.res)}}};this.options.animation||window.addEventListener("resize",(function(){return c()})),c()}},{key:"maxWidth",value:function(t){return this.res.style.maxWidth=t,this}},{key:"removeQuotesFromFirstWord",value:function(t){return t.replace(/"([^"]+)":/g,"$1:")}},{key:"arrayMargin",value:function(t,e){return t.includes("left")&&(this.res.style.marginLeft=e),t.includes("right")&&(this.res.style.marginRight=e),t.includes("top")&&(this.res.style.marginTop=e),t.includes("bottom")&&(this.res.style.marginBottom=e),t.includes("all")&&(this.res.style.margin=e),e||(this.res.style.marginBottom=t),this}}],e&&a(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e}());module.exports=e})();
1
+ (()=>{"use strict";var t={d:(e,r)=>{for(var n in r)t.o(r,n)&&!t.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:r[n]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r:t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}},e={};function r(t){return r="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},r(t)}function n(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,i,s,o,a=[],l=!0,c=!1;try{if(s=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=s.call(r)).done)&&(a.push(n.value),a.length!==e);l=!0);}catch(t){c=!0,i=t}finally{try{if(!l&&null!=r.return&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return a}}(t,e)||s(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function 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,i=function(){};return{s:i,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,l=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return a=t.done,t},e:function(t){l=!0,o=t},f:function(){try{a||null==r.return||r.return()}finally{if(l)throw o}}}}function s(t,e){if(t){if("string"==typeof t)return 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}}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 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,l(n.key),n)}}function l(t){var e=function(t){if("object"!=r(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=r(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==r(e)?e:e+""}function c(t){return c="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},c(t)}function u(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 d(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,h(n.key),n)}}function h(t){var e=function(t){if("object"!=c(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=c(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==c(e)?e:e+""}function p(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(p=function(){return!!t})()}function f(t,e,r,n){var i=y(m(1&n?t.prototype:t),e,r);return 2&n&&"function"==typeof i?function(t){return i.apply(r,t)}:i}function y(){return y="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,r){var n=function(t,e){for(;!{}.hasOwnProperty.call(t,e)&&null!==(t=m(t)););return t}(t,e);if(n){var i=Object.getOwnPropertyDescriptor(n,e);return i.get?i.get.call(arguments.length<3?t:r):i.value}},y.apply(null,arguments)}function m(t){return m=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},m(t)}function v(t,e){return v=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},v(t,e)}t.r(e),t.d(e,{Link:()=>g});var g=function(t){function e(t,r,n){var i;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(i=function(t,e,r){return e=m(e),function(t,e){if(e&&("object"==c(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,p()?Reflect.construct(e,r||[],m(t).constructor):e.apply(t,r))}(this,e)).link=r,i.text=t,i.code=[],i.css=[],i.elCSS=[],i.html=[],i.res=null,i.stopEM=n,i.setup(),i.inlineBlock(),i.res.addEventListener("click",function(t){var e=i.link||i.res.getAttribute("href");if(e){var r=new URL(e,window.location.href).href,n=/^https?:\/\//i.test(r),s=r.startsWith("#"),o=/^[a-zA-Z]+:/.test(r);n||s||r.endsWith(".html")||o||(t.preventDefault(),"navigation"in window?navigation.navigate(r):(history.pushState({},"",r),document.dispatchEvent(new PopStateEvent("popstate"))))}}),i}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&v(t,e)}(e,t),r=e,(n=[{key:"toCSS",value:function(){return this.css}},{key:"toHTMLA",value:function(){return this.html}},{key:"toElCSS",value:function(){return this.preffersId?this.elCSS.unshift(this.res.id+" { \n"):this.elCSS.unshift("."+this.class+" { \n"),this.elCSS.push(" } \n \n"),this.elCSS}},{key:"getType",value:function(){return"HTMLAnchorElement"}},{key:"toCode",value:function(){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,i,s,o,a=[],l=!0,c=!1;try{if(s=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=s.call(r)).done)&&(a.push(n.value),a.length!==e);l=!0);}catch(t){c=!0,i=t}finally{try{if(!l&&null!=r.return&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return a}}(t,e)||function(t,e){if(t){if("string"==typeof t)return u(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)?u(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=JSON.stringify(t,null,4).replace(/"([^"]+)":/g,"$1:");return["new Link().set(".concat(e,")")]}},{key:"setArea",value:function(t){return this.res.style.gridArea=t,this}},{key:"setup",value:function(){var t=document.createElement("a");t.setAttribute("href",this.link),t.style.textDecoration="none",t.style.color="black",t.style.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),t.options.padRight&&(this.res.style.paddingRight=t.options.padRight),r.appendChild(n)),this.res=r,e&&(this.res.style.marginLeft=e),this}},{key:"addIcon",value:function(t){var e=document.createElement("img");return e.style.width="20px",e.style.height="auto",e.style.marginLeft=t.padding?t.padding:"10px",e.setAttribute("src",t.url),this.res.appendChild(e),this}},{key:"removeQuotesFromFirstWord",value:function(t){if(t)return t.replace(/"([^"]+)":/g,"$1:")}},{key:"set",value:function(t){this.elCSS.push("text-decoration: none; \n"),this.options=t;var r="";t.tags&&f(e,"setTags",this,3)([t.tags]),t.id&&this.res.setAttribute("id",t.id),t.id&&f(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&&f(e,"setClass",this,3)([t.class]),t.class&&(r+='\n class: "'.concat(t.class,'",')),t.borderObj){this.res.style.border="".concat(t.borderObj.width," solid ").concat(t.borderObj.color),this.res.style.borderRadius="".concat(t.borderObj.radius);var i=this.removeQuotesFromFirstWord(JSON.stringify(t.borderObj));r+="\n borderObj: ".concat(i,",")}if(!1===this.options.preffersId?this.html.push('<a class="'.concat(t.class,'" href="#hello">').concat(t.text,"</a> \n \n")):t.id&&this.html.push('<a id="'.concat(t.id.substr(1),'" href="#hello">').concat(t.text,"</a> \n \n")),null!=t.blastData){var s=this.removeQuotesFromFirstWord(JSON.stringify(t.blastData));f(e,"setAny",this,3)([{globalBlast:"1px ".concat(t.blastData.color)}]),t.blastData&&(r+="\n blastData: ".concat(s,","))}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 o=this.removeQuotesFromFirstWord(JSON.stringify(t.background));t.background&&(r+="\n background: ".concat(o,",")),t.hover&&this.hover(t.hover);var a=this.removeQuotesFromFirstWord(JSON.stringify(t.hover));if(t.hover&&(r+="\n hover: ".concat(a,",")),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.arrayPadding){var l=t.arrayPadding.sides.map(function(t){return'"'.concat(t,'"')}).join(", ");t.arrayPadding&&this.arrayPadding(t.arrayPadding.sides,t.arrayPadding.value),t.arrayPadding&&(r+="\n arrayPadding: {sides: [".concat(l,'], value: "').concat(t.arrayPadding.value,'"},'))}if(t.arrayMargin&&this.arrayMargin(t.arrayMargin.sides,t.arrayMargin.value),t.arrayMargin&&(r+="\n arrayMargin: {sides: [".concat(t.arrayMargin.sides.map(function(t){return'"'.concat(t,'", ')}),'], value: "').concat(t.arrayMargin.value,'"},')),t.maxWidth&&this.maxWidth(t.maxWidth),t.url&&this.res.setAttribute("href",t.url),r+='\n url: "'.concat(t.url,'",'),t.text&&(this.res.textContent=t.text),r+='\n text: "'.concat(t.text,'",'),t.data){t.data&&this.appendImageAsChild(t.data,"20px");var c=this.removeQuotesFromFirstWord(JSON.stringify(t.data));t.data&&(r+="\n data: ".concat(c))}if(t.icon){this.addIcon(t.icon);var u=this.removeQuotesFromFirstWord(JSON.stringify(t.icon));r+="\n icon: ".concat(u,",")}if(t.shadow){var d=t.shadow,h=this.removeQuotesFromFirstWord(JSON.stringify(d));r+="\n shadow: ".concat(h,",")}if(t.stroke){var p=this.removeQuotesFromFirstWord(JSON.stringify(t.stroke));t.stroke&&(r+="\n stroke: ".concat(p,","))}if(t.backgroundOp){var y=this.removeQuotesFromFirstWord(JSON.stringify(t.backgroundOp));r+="\n backgroundOp: ".concat(y,",")}if(t.marginOp){var m=this.removeQuotesFromFirstWord(JSON.stringify(t.marginOp));r+="\n marginOp: ".concat(m,",")}if(t.gradient){var v=this.removeQuotesFromFirstWord(JSON.stringify(t.gradient));r+="\n gradient: ".concat(v,",")}if(t.animation){var g=this.removeQuotesFromFirstWord(JSON.stringify(t.animation));r+="\n animation: ".concat(g,",")}if(t.transform){var b=this.removeQuotesFromFirstWord(JSON.stringify(t.transform));r+="\n transform: ".concat(b,",")}if(t.blast){var x=this.removeQuotesFromFirstWord(JSON.stringify(t.blast));r+="\n blast: ".concat(x,",")}var k="new Link().set({".concat(r,"}) \n");this.code.push(k),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 w=[],S=[t.border,t.blast,t.gradient,t.animation,t.span,t.shadow,t.backgroundOp,t.animation,t.transform];if((S=S.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&&f(e,"setAny",this,3)([{globalBlast:"".concat(t.stroke.op.width," ").concat(t.stroke.op.color)}]);for(var O=0;O<S.length;O++)w.push({range:S[O].range,log:S[O].op.name,target:S[O].target,op:S[O].op});var T=[];t.borderObj&&T.push("border"),t.background&&T.push("background"),t.mar&&T.push("margin"),t.animation&&T.push("animation"),this.chainReact(w,t.id,T,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:"color",value:function(t){return this.res.style.color=t,this}},{key:"maxWidth",value:function(t){return this.res.style.maxWidth=t,this}},{key:"background",value:function(t){return this.res.style.backgroundColor=t,this}},{key:"leftAlign",value:function(t){return this.res.style.textAlign=t,this}},{key:"arrayPadding",value:function(t,e){return e||(this.res.style.marginLeft="".concat(t[0],"px"),this.res.style.marginTop="".concat(t[1],"px"),this.res.style.marginRight="".concat(t[2],"px"),this.res.style.marginBottom="".concat(t[3],"px")),"all"===t[0]&&(this.res.style.paddingLeft=e,this.res.style.paddingTop=e,this.res.style.paddingRight=e,this.res.style.paddingBottom=e),t.includes("left")&&(this.res.style.paddingLeft=e),t.includes("right")&&(this.res.style.paddingRight=e),t.includes("top")&&(this.res.style.paddingTop=e),t.includes("bottom")&&(this.res.style.paddingBottom=e),e||(this.res.style.paddingBottom=t),this}},{key:"arrayMargin",value:function(t,e){return t.includes("left")&&(this.res.style.marginLeft=e),t.includes("right")&&(this.res.style.marginRight=e),t.includes("top")&&(this.res.style.marginTop=e),t.includes("bottom")&&(this.res.style.marginBottom=e),t.includes("all")&&(this.res.style.margin=e),e||(this.res.style.marginBottom=t),this}},{key:"getClampValue",value:function(t){return"S6"===t?"clamp(2.25rem, 2vw+1.5rem, 3.25rem)":"S5"===t?"clamp(2.75rem, 2vw + 1.5rem, 3.25rem)":"S4"===t?"clamp(3.5rem, 2vw + 1.5rem, 3.25rem)":"S3"===t?"clamp(4.25rem, 2vw + 1.5rem, 3.25rem)":"S2"===t?"clamp(5rem, 2vw + 1.5rem, 3.25rem)":"S1"===t?"clamp(6rem, 2vw + 1.5rem, 3.25rem)":void 0}},{key:"clampCopy",value:function(t){return this.res.style.fontSize=this.getClampValue(t),this}},{key:"fluidCopy",value:function(t){return"S1"===t&&(this.res.style.fontSize="calc(1.625rem + 5.075vw)"),"S2"===t&&(this.res.style.fontSize="calc(1.500rem + 4.3vw)"),"S3"===t&&(this.res.style.fontSize="calc(1.375rem + 3.525vw)"),"S4"===t&&(this.res.style.fontSize="calc(1.250rem + 2.75vw)"),"S5"===t&&(this.res.style.fontSize="calc(1.125rem + 1.975vw)"),"S6"===t&&(this.res.style.fontSize="calc(1rem + 0.5vw)"),this}},{key:"inlineBlock",value:function(){return this.res.style.display="inline-block",this}},{key:"toBlock",value:function(){return this.res.style.display="block",this}},{key:"myself",value:function(t){var e=this,r=function(){window.matchMedia("(max-device-width: 415px)").matches?e.res.style.fontSize=t.desktop:e.res.style.fontSize=t.phone};return r(),window.addEventListener("resize",r),this}},{key:"style",value:function(t){return this.res.style.color=t.styles.color,this.res.style.fontWeight=t.styles.fontWeight,this.res.style.paddingLeft=t.styles.padding[0],this.res.style.paddingTop=t.styles.padding[1],this.res.style.paddingRight=t.styles.padding[2],this.res.style.paddingBottom=t.styles.padding[3],this}},{key:"round",value:function(){return this.res.style.borderRadius="0.5rem",this.options.rounded&&(this.res.children[0].style.borderRadius="0.5rem"),this}},{key:"newWindow",value:function(){return this.res.target="_new",this}},{key:"radius",value:function(t){return this.res.style.borderRadius="".concat(t),this}},{key:"transition",value:function(t){return this.res.style.transition="".concat(t,"s ease-in-out"),this.res.style.transionProperty="background, color",this}},{key:"width",value:function(t){return this.res.style.width=t,this}},{key:"italic",value:function(){return this.res.style.fontStyle="italic",this}},{key:"padding",value:function(t,e,r,n){return t&&e&&r&&n?(this.res.style.paddingLeft=t,this.res.style.paddingTop=e,this.res.style.paddingRight=r,this.res.style.paddingBottom=n):this.res.style.padding=t,this}},{key:"medium",value:function(){var t=this,e=function(){window.matchMedia("(max-device-width: 415px)").matches?t.res.style.fontSize="2rem":t.res.style.fontSize="1.5em"};return e(),window.addEventListener("resize",e),this}},{key:"opacity",value:function(t){return this.res.style.opacity=t,this}},{key:"margin",value:function(t,e,r,n){return this.res.style.marginTop=t,this.res.style.marginLeft=e,this.res.style.marginRight=r,this.res.style.marginBottom=n,this}},{key:"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}}])&&d(r.prototype,n),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n}(function(){return t=function t(){var e,r,n,i=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),e=this,n=function(t){if(console.log("LOBJO IS"),console.log(t),t.transform||t.op&&t.op.transform){var e=t.transform;t.transform||(e=t.op.transform),e.duration||(e.duration="3s-ease-in-out"),i.setDefault=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"0px";return 0===t.length?e+" ":t};var r=function(){var r="",n="",s="",o="",a="",l="",c="",u="",d="";if(0!==e.values.length){e.values.forEach(function(t){t.startsWith("tx:")&&(r=t.replace("tx:","")),t.startsWith("ty:")&&(n=t.replace("ty:","")),t.startsWith("tz:")?s=t.replace("tz:",""):t.startsWith("scale(")?o=t:t.startsWith("skew(")?a=t:t.startsWith("rotate(")?l=function(t){var e=t.match(/rotate\(([^)]+)\)/);if(!e)return t;var r=e[1].split(",").map(function(t){return t.trim()});return 1===r.length?"rotate(".concat(r[0],")"):2===r.length?"rotateX(".concat(r[0],") rotateY(").concat(r[1],")"):3===r.length?"rotateX(".concat(r[0],") rotateY(").concat(r[1],") rotate(").concat(r[2],")"):t}(t):t.startsWith("perspective(")?c=t:t.startsWith("matrix(")?u=t:t.startsWith("opacity:")&&(d=t.replace("opacity:",""))}),r=i.setDefault(r),n=i.setDefault(n),s=i.setDefault(s);var h="";if("0px"!=n&&"0px"!=r&&"0px"!=s?h+="translate3d(".concat(r,", ").concat(n,", ").concat(s,")"):"0px"==n&&"0px"==r||(h+="translate(".concat(r,", ").concat(n,")")),o&&(h+=" ".concat(o)),l&&(h+=" ".concat(l)),a&&(h+=" ".concat(a)),c&&(h+=" ".concat(c)),u&&(h+=" ".concat(u)),h){if(t.op.transform.duration){var p=t.op.transform.duration.replace(/^(\d+)(s)-/,function(t,e,r){return e/2+r+" "}),f="transform ".concat(p,", opacity ").concat(p);i.res.style.transition=f}else i.res.style.transition="transform 3s ease-in-out, opacity 3s ease-in-out";t.op.transform.static&&(i.res.style.transition=""),(i.blastTarget||i.res).style.transform=h,i.res.style.opacity=d}else alert("OPE")}};e.on?i.res.addEventListener(e.on,function(){e.delay?setTimeout(function(){r()},e.delay):r()}):window.addEventListener("load",function(){e.delay?setTimeout(function(){r()},e.delay):r()});var n=function(){var t="";e.values.forEach(function(e){e.startsWith("tx:")?t+="translateX(0) ":e.startsWith("ty:")?t+="translateY(0) ":e.startsWith("tz:")?t+="translateZ(0) ":e.startsWith("scale(")?t+="scale(1) ":e.startsWith("skew(")?t+="skew(0, 0) ":e.startsWith("rotate(")?t+="rotate(0) ":e.startsWith("perspective(")?t+="perspective(0) ":e.startsWith("matrix(")&&(t+="matrix(1, 0, 0, 1, 0, 0) "),i.res.style.opacity="1"}),t&&(i.res.style.transform=t.trim())};if(e.on)i.res.addEventListener("mouseout",function(){e.keep||n()});else{var s=1e3*parseFloat(e.duration),o=e.closeAfter?e.closeAfter:0;setTimeout(function(){e.keep||n()},s/2+o)}e.hardCSS&&(i.res.style.transform=e.hardCSS)}else alert("THIS FIRE WITH GRADIENT (invalid block"),console.log("INVALID BLOCKA"),console.log(t)},(r=l(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},e=[{key:"isHidden",value:function(t){t&&(this.res.style.display="none")}},{key:"keySet",value:function(t){return this.temporaryVal=1,this.res.style[t.key]=t.value,this}},{key:"commonMethods",value:function(t){var e={exact:"fontSize",zIndex:"zIndex",position:"position",top:"top",cursor:"cursor",width:"width",maxWidth:"maxWidth",height:"height",maxHeight:"maxHeight",radius:"borderRadius",lineHeight:"lineHeight",background:"background",font:"fontFamily",opacity:"opacity"};for(var r in e)null!=t[r]&&(this.res.style[e[r]]=t[r]);return 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.hover&&this.hover(t.hover),t.size&&this.fluidCopy(t.size),t.resprop&&this.resprop(t.resprop),t.keySet&&this.keySet(t.keySet),t.hide&&this.isHidden(t.hide),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.borderObj;return n&&(this.res.style.border="".concat(n.width,"px solid ").concat(n.color)),this.prevColor=this.res.style.backgroundColor,this.foreColor=this.res.style.color,this.prevBorder=this.res.style.border,t.animation&&(this.res.style.transition="".concat(t.animation),this.res.style.transionProperty="background, color"),this.res.onmouseout=function(){e.res.style.backgroundColor="".concat(e.prevColor),e.res.style.color="".concat(e.foreColor),e.res.style.border=e.prevBorder},this.res.onmouseover=function(){if(e.res.style.color=t.color,e.res.style.backgroundColor=t.background,t.border){var r,n=t.border.width,i=null!==(r=t.border.color)&&void 0!==r?r:"#2ECC71";e.res.style.border=n?"".concat(n,"px solid ").concat(i):"1px solid #2ECC71"}},this}},{key:"onScroll",value:function(t){var e=this;"opacity"===t.value?this.res.style.opacity=t.valMin:"scale"===t.value&&(this.res.style.transform="scale(".concat(t.valMax,")")),window.addEventListener("scroll",function(){var r=e.smartRange(window.scrollY,{min:t.from,max:t.to},{min:t.valMin,max:t.valMax});"opacity"===t.value?e.res.style.opacity=r:"scale"===t.value&&(e.res.style.transform="scale(".concat(r,")"))})}},{key:"setAny",value:function(t){this[Object.keys(t)[0]]=[Object.values(t)[0]]}},{key:"setID",value:function(t){this.id=t}},{key:"setPrevText",value:function(t){this.prevText=t}},{key:"getCSS",value:function(){return this.css}},{key:"getPX",value:function(t){return{xs:"0px",sm:"576px",md:"768px",lg:"992px",xl:"1200px",xxl:"1400px",mxxl:"1800px"}[t]||"Invalid breakpoint"}},{key:"respad",value:function(t){var e=this;this._applyResponsive(t,function(t){console.log("Applying padding for",t.breakpoint),e.pad(t.values)})}},{key:"_applyResponsive",value:function(t,e){var r={default:0,xs:0,sm:576,md:768,lg:992,xl:1200,xxl:1400};t.forEach(function(t){void 0!==r[t.breakpoint]?t._value=r[t.breakpoint]:t._value=parseInt(t.breakpoint,10)}),t.sort(function(t,e){return t._value-e._value});var n=t.find(function(t){return"default"===t.breakpoint}),i=function(){for(var r=window.innerWidth,i=n||null,s=0;s<t.length;s++){var o=t[s];if("default"!==o.breakpoint&&r<=o._value){i=o;break}}i&&e(i)};this._responsiveHandler&&window.removeEventListener("resize",this._responsiveHandler),this._responsiveHandler=i,window.addEventListener("resize",i),i()}},{key:"resmar",value:function(t){var e=this;this._applyResponsive(t,function(t){console.log("Applying margin for",t.breakpoint),e.mar(t.values)})}},{key:"resprop",value:function(t){var e=this;this.prevStyles={};for(var r=0;r<this.res.style.length;r++){var n=this.res.style[r];this.prevStyles[n]=this.res.style[n]}this._applyResponsive(t,function(t){for(var r in console.log("Applying styles for",t.breakpoint),e.prevStyles)e.res.style[r]=e.prevStyles[r];for(var n in t)"breakpoint"!==n&&"_value"!==n&&"values"!==n&&(e.res.style[n]=t[n])})}},{key:"isNumber",value:function(t){return"number"==typeof t&&!isNaN(t)}},{key:"pad",value:function(t){for(var e=0;e<t.length;e++)for(var r=Object.keys(t[e]),n=0;n<r.length;n++)for(var i=r[n],s=t[e][i],o=0;o<i.length;o++)switch(i[o]){case"a":this.res.style.padding=this.isNumber(s)?"".concat(s,"px"):s;break;case"t":this.res.style.paddingTop=this.isNumber(s)?"".concat(s,"px"):s;break;case"l":this.res.style.paddingLeft=this.isNumber(s)?"".concat(s,"px"):s;break;case"r":this.res.style.paddingRight=this.isNumber(s)?"".concat(s,"px"):s;break;case"b":this.res.style.paddingBottom=this.isNumber(s)?"".concat(s,"px"):s}return this}},{key:"as",value:function(t){return this.res.style.alignSelf=t,this}},{key:"mar",value:function(t){for(var e=0;e<t.length;e++)for(var r=Object.keys(t[e]),n=0;n<r.length;n++)for(var i=r[n],s=t[e][i],o=0;o<i.length;o++){switch(i[o]){case"a":this.res.style.margin=this.isNumber(s)?"".concat(s,"px"):s;break;case"t":this.res.style.marginTop=this.isNumber(s)?"".concat(s,"px"):s;break;case"l":this.res.style.marginLeft=this.isNumber(s)?"".concat(s,"px"):s;break;case"r":this.res.style.marginRight=this.isNumber(s)?"".concat(s,"px"):s;break;case"b":this.res.style.marginBottom=this.isNumber(s)?"".concat(s,"px"):s}"auto"===i[o]&&(this.res.style.marginLeft="auto",this.res.style.marginRight="auto")}return this}},{key:"smartRange",value:function(t,e,r){t<e.min&&(t=e.min),t>e.max&&(t=e.max);var n=(t-e.min)/(e.max-e.min);e.min>e.max&&(n=(t-e.max)/(e.min-e.max));var i=(r.min-r.max)*n-r.min;if(i=Math.abs(i),r.min<r.max){var s=(r.max+Math.abs(r.min))*n;i=r.min+s}return i}},{key:"gpos",value:function(t){return this.res.style.gridColumn=t.col,this.res.style.gridRow=t.row,this}},{key:"fluidCopy",value:function(t){if(t instanceof Object){this.prevStylex=this.res.style,this.res=document.createElement("h1"),this.res.style.cssText=this.prevStylex.cssText;var e=document.createTextNode(this.text);return this.res.appendChild(e),this.res.style.fontSize=t.exact,this}if("S1"===t){this.prevStylex=this.res.style,this.res=document.createElement("h1"),this.res.style.cssText=this.prevStylex.cssText;var r=document.createTextNode(this.text);this.res.appendChild(r),this.res.style.fontSize="calc(1.625rem + 5.075vw)"}if("S2"===t){this.prevStylex=this.res.style,this.res=document.createElement("h2"),this.res.style.cssText=this.prevStylex.cssText;var n=document.createTextNode(this.text);this.res.appendChild(n),this.res.style.fontSize="calc(1.500rem + 4.3vw)"}if("S3"===t){this.prevStylex=this.res.style,this.res=document.createElement("h3"),this.res.style.cssText=this.prevStylex.cssText;var i=document.createTextNode(this.text);this.res.appendChild(i),this.res.style.fontSize="calc(1.375rem + 3.525vw)"}if("S4"===t){this.prevStylex=this.res.style,this.res=document.createElement("h4"),this.res.style.cssText=this.prevStylex.cssText;var s=document.createTextNode(this.text);this.res.appendChild(s),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 o=document.createTextNode(this.text);this.res.appendChild(o),this.res.style.fontSize="calc(1.125rem + 1.975vw)"}return"S6"===t&&(this.res.style.fontSize="calc(1rem + 0.5vw)"),this}},{key:"setIndex",value:function(t){this.index=t}},{key:"borderObj",value:function(t){var e,r=null!==(e=t.type)&&void 0!==e?e:"solid";return this.res.style.border="".concat(t.width," ").concat(r," ").concat(t.color),this.res.style.borderRadius=t.radius,this}},{key:"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,console.log("TAGS SET"),console.log(t)}},{key:"chainReact",value:function(t,e,r){var s=this;console.log("0P"),this.ap=!1,this.cta=0,this.once=!1;var o,a=i(t);try{for(a.s();!(o=a.n()).done;){var l=o.value;l.range||(l.range=["0px","999999px"])}}catch(t){a.e(t)}finally{a.f()}t.sort(function(t,e){return parseInt(t.range[0])-parseInt(e.range[0])});var c=function(o){var a=window.visualViewport.width,l=[],c=[];s.resCopy=s.res,s.storedQueries=t.map(function(t){return t.target}).filter(function(t){return null!=t});var u,d=i(t);try{for(d.s();!(u=d.n()).done;){var h=u.value;s.counterIndex++;var p=n(h.range,2),f=p[0],y=p[1],m=parseInt(f),v=parseInt(y),g=!0;if(h.target){g=!1;for(var b=0;b<h.target.length;b++)h.target[b]===e&&(g=!0)}a>=m&&a<=v&&g&&(l.push(h.log),c.push(h),h.op&&h.op.margin&&(s.useMargin=h.op.margin))}}catch(t){d.e(t)}finally{d.f()}if(r&&!r.includes("background")&&(s.res.style.background="",s.res.style.backgroundColor=""),s.res.style.textShadow="",r&&!r.includes("border")&&(s.res.style.border=""),r&&!r.includes("margin")&&(s.res.style.margin=""),s.res.style["-webkit-text-fill-color"]="",s.res.style["-webkit-text-stroke-color"]="",s.res.style["-webkit-text-stroke-width"]="",s.res.style.filter="",s.options.background&&(console.log(s.options.background),s.res.style.background=s.options.background),l.includes("gradient"),(l.includes("gradient")||l.includes("shadow"))&&(s.res.style.position="relative"),l.includes("blast")){var x,k=c.filter(function(t){return"blast"===t.log})[0].op.color,w=null!==(x=c.filter(function(t){return"blast"===t.log})[0].op.width)&&void 0!==x?x:"1px";"FlexRowLayoutElement"===s.getType()||"LayoutWrapperElement"===s.getType()?(s.res.style.border="".concat("number"==typeof w?w+"px":w," solid orange"),s.res.style.display="inline-block","FlexRowLayoutElement"===s.getType()&&(s.res.style.display="flex"),s.res.style.boxSizing="border-box",s.res.style.transformOrigin="center",s.blastTarget=s.res):(s.text,s.res.style["-webkit-text-fill-color"]="transparent",s.res.style["-webkit-text-stroke-color"]=k,s.res.style["-webkit-text-stroke-width"]="".concat(w))}if(l.includes("filter")){var S=c.filter(function(t){return"filter"===t.log})[0].op.filter;s.res.style.filter=S}if(l.includes("background")&&(s.res.style.backgroundColor="green"),l.includes("gradient")&&("LayoutWrapperElement"!==s.getType()&&"FlexRowLayoutElement"!==s.getType()&&(s.res.style["-webkit-text-fill-color"]="transparent"),s.res.style.background=s.globalGradient,"LayoutWrapperElement"!==s.getType()&&"FlexRowLayoutElement"!==s.getType()&&(s.res.style["background-clip"]="text")),l.includes("shadow")){var O,T,C,E,A=s.options.shadow.op;console.log("OP IS",A);var W=null!==(O=A.steps)&&void 0!==O?O:1,j=null!==(T=A.colors)&&void 0!==T?T:["gray"],L=null!==(C=A.movements)&&void 0!==C?C:["3px","3px"],F=null!==(E=A.radius)&&void 0!==E?E:"3px";if(1===L.length&&(L=[L[0],L[0]]),"FlexRowLayoutElement"===s.getType()||"LayoutWrapperElement"===s.getType()){for(var I=[],R=0;R<W;R++){var N,P=null!==(N=j[R])&&void 0!==N?N:j[0],z=L[0],M=L[1];I.push("".concat(z," ").concat(M," ").concat(F," ").concat(P))}s.res.style.boxShadow=I.join(", ")}else{for(var B=[],_=0;_<W;_++){var D,Q=null!==(D=j[_])&&void 0!==D?D:j[0],J=L[0],H=L[1];B.push("drop-shadow(".concat(J," ").concat(H," ").concat(F," ").concat(Q,")"))}s.res.style.filter=B.join(" ")}}if(l.includes("margin"))for(b=0;b<t.length;b++)if(t[b].op){var G=t[b].op.offsets;G&&void 0!==s.index&&(s.res.style.margin=G[Number(s.index)]+"px")}if(l.includes("spana")||l.includes("span")){var V=document.createElement("div");if(V.setAttribute("id","oroa"),Object.assign(V.style,{position:"absolute",inset:"0",background:"linear-gradient(90deg, rgb(52,152,219), rgb(26,188,156))",WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent",pointerEvents:"none"}),s.res&&s.res.querySelector("span"))return;s.res=s.resCopy,s.res.textContent="",s.options.span&&(Array.isArray(s.options.span)?s.options.span:[s.options.span]).forEach(function(t){if(t.op&&"span"===t.op.name&&Array.isArray(t.op.parts)){var e=0,r=s.prevText||"";if(t.op.parts.forEach(function(t){var n=t.text,i=t.style||{};if(e<r.length){var o=r.indexOf(n,e);if(o>e){var a=r.substring(e,o);s.res.appendChild(new s.constructor(a).setup({type:"span",id:i.id,animation:i.animation}).set({}).render())}e=o+n.length}var l=new s.constructor(n).setup({type:"span",id:i.id,animation:i.animation}).set(i).render();s.res.appendChild(l)}),e<r.length){var n=r.substring(e);s.res.appendChild(new s.constructor(n).setup({type:"span"}).set({}).render())}}})}else{var Y=new s.constructor(s.prevText).set({}).render();s.prevText&&s.prevText.length>0&&o&&s.res.appendChild(Y)}if(l.includes("animation")){if(s.options.animation&&!s.hasAnimated&&!s.options.animation.op.fireAt){console.warn(s.openTag),s.hasAnimated=!0;var $=s.options.animation.op;window.addEventListener("sidebar:open",function(){s.res.animate($.keyframesOpen,$.openOptions)}),window.addEventListener("sidebar:closed",function(){s.res.animate($.keyframesClose,$.closeOptions)}),s.res.animate($.keyframesClose,{duration:0,fill:"forwards"}),s.openTag&&s.closeTag&&(window.addEventListener(s.openTag,function(){s.res.animate($.keyframesOpen,$.openOptions)}),window.addEventListener(s.closeTag,function(){s.res.animate($.keyframesClose,$.closeOptions)}))}if(s.options.animation&&s.options.animation.op.fireAt&&s.options.animation.op.fireAt.endsWith("px")){var U=s.options.animation.op;s.res.animate(U.keyframesClose,{duration:0,fill:"forwards"});var X=function(){window.scrollY>parseFloat(U.fireAt)&&(s.res.animate(U.keyframesOpen,U.openOptions),window.removeEventListener("scroll",X))};window.addEventListener("scroll",X)}if(s.options.animation&&"inview"===s.options.animation.op.fireAt){var q=s.options.animation.op;s.res.animate(q.keyframesClose,{duration:0,fill:"forwards"});var Z=!1;new IntersectionObserver(function(t,e){t.forEach(function(t){t.isIntersecting&&!Z&&(Z=!0,s.res.animate(q.keyframesOpen,q.openOptions),e.disconnect())})}).observe(s.res)}}};this.options.animation||window.addEventListener("resize",function(){return c()}),c()}},{key:"maxWidth",value:function(t){return this.res.style.maxWidth=t,this}},{key:"removeQuotesFromFirstWord",value:function(t){return t.replace(/"([^"]+)":/g,"$1:")}},{key:"arrayMargin",value:function(t,e){return t.includes("left")&&(this.res.style.marginLeft=e),t.includes("right")&&(this.res.style.marginRight=e),t.includes("top")&&(this.res.style.marginTop=e),t.includes("bottom")&&(this.res.style.marginBottom=e),t.includes("all")&&(this.res.style.margin=e),e||(this.res.style.marginBottom=t),this}}],e&&a(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e}());module.exports=e})();