From 87c1cb7e557487489e16b7ee89b2e5fc17f2f3d2 Mon Sep 17 00:00:00 2001 From: abrarishere Date: Sun, 4 Aug 2024 14:44:05 +0500 Subject: [PATCH] Some error fixed and 1.3.0 reafg --- dist.zip | Bin 43622 -> 43671 bytes dist/main.js | 2 +- plugin.json | 2 +- src/main.js | 8 ++++++-- 4 files changed, 8 insertions(+), 4 deletions(-) diff --git a/dist.zip b/dist.zip index 8a5210d41263fbec3db3ea5a5368a2bb6adf7d5f..77ad268b03978c7d869401893c70e14dd9dbf3ba 100644 GIT binary patch delta 418 zcmaEMg=zX#CY}IqW)?064h9B>YTu1KSyoKdzLP7gx)_Z&Gg~ts`3R@Yh=X!uQj&?w7hU6xp+;5yl{RFchAP0dxqb#g+fBBS5r zrcwh&zs;LVC&^p;+2&~&8CYoQxPmmg>J^t%=A?!sriTUG&*95Agk0o z2F{zJ@eB+g9N^8!B*Fj-+{w)=O*pE3St3C}I(h#}Lr_S6T4~A$5<_U4Y`RLDZP`j- Hd@uk2YIc7G delta 370 zcmbP!mFd|PCY}IqW)?064h9AWGp~(2SyoJDUXv@Vx)=>MGg~t$1cm1;5FTrIKuZYHEHOev=bQ6&YP8 zHSOX}jSDaen zSW;4ynN(VmT5OvH5}VvGRgTY3FC{xIe^x`pXTKp%)WFE-H@S0hB4@5%Sz=CU zYE8}LSBvKXm3A%>WR?0m$B6Su90LOg2Y53wi7>zdYx0(rCLCs7ERmofn*3paO WSDEsG#1Pshr>)XvD_sc;Uj_hL*K}$C diff --git a/dist/main.js b/dist/main.js index 5c0e946..678995a 100644 --- a/dist/main.js +++ b/dist/main.js @@ -1,2 +1,2 @@ /*! For license information please see main.js.LICENSE.txt */ -(()=>{var t={208:(t,e,n)=>{"use strict";n.d(e,{A:()=>c});var r=n(107),o=n.n(r),a=n(20),i=n.n(a)()(o());i.push([t.id,".animation-container-108373737 {\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n width: 100%;\n text-align: center;\n gap: 10px;\n padding: 0 5px;\n overflow: hidden;\n height: 100%;\n}\n .animation-container-108373737 .output-192772625 {\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n width: 90%;\n height: 350px;\n text-align: center;\n padding: 0 5px;\n border: 1px solid #000;\n overflow: hidden;\n border-radius: 5px;\n position: relative;\n}\n.animation-container-108373737 .output-192772625 .inner-output-283652525 {\n height: 50px;\n width: 50px;\n background: #fff;\n border-radius: 50%;\n}\n\n.inner-output-adjust-283652525,\n.animation-info-1928374\n{\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n width: 100%;\n}\n\n.input-code-0987 {\n font-size: 5px;\n height: 100px;\n}\n.buttons-1928374 {\n display: flex;\n gap: 10px;\n flex-wrap: wrap;\n}\n\n.button-3928{\n background: #000;\n color: #fff;\n padding: 5px 10px;\n border: none;\n border-radius: 5px;\n cursor: pointer;\n font-size: 6px;\n}\n\n\n.paragraph-1928374{\n font-size: 9px;\n}\n\n.show-1928374{\n display: block;\n}\n\n.code-header-1928374{\n font-size: 6px;\n}\n\n.hidden{\n display: none;\n}\n\n.code-block-1928374{\n font-size: 2px;\n text-wrap: wrap;\n white-space: pre-wrap;\n}\n",""]);const c=i},20:t=>{"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var n="",r=void 0!==e[5];return e[4]&&(n+="@supports (".concat(e[4],") {")),e[2]&&(n+="@media ".concat(e[2]," {")),r&&(n+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),n+=t(e),r&&(n+="}"),e[2]&&(n+="}"),e[4]&&(n+="}"),n})).join("")},e.i=function(t,n,r,o,a){"string"==typeof t&&(t=[[null,t,void 0]]);var i={};if(r)for(var c=0;c0?" ".concat(s[5]):""," {").concat(s[1],"}")),s[5]=a),n&&(s[2]?(s[1]="@media ".concat(s[2]," {").concat(s[1],"}"),s[2]=n):s[2]=n),o&&(s[4]?(s[1]="@supports (".concat(s[4],") {").concat(s[1],"}"),s[4]=o):s[4]="".concat(o)),e.push(s))}},e}},107:t=>{"use strict";t.exports=function(t){return t[1]}},958:function(t,e,n){var r,o,a,i;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)}t=n.nmd(t),i=function(){return function(){"use strict";var t={d:function(e,n){for(var r in n)t.o(n,r)&&!t.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:n[r]})},o:function(t,e){return Object.prototype.hasOwnProperty.call(t,e)}},e={};function n(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);nt.length)&&(e=t.length);for(var n=0,r=new Array(e);n1&&void 0!==arguments[1]?arguments[1]:{};return"string"==typeof e&&(e={innerHTML:e}),function(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];if(Array.isArray(n)&&(o=n,n={}),"function"==typeof t)return t(n,o);if(t instanceof Node)e=t;else{if("string"!=typeof t)throw new Error("Invalid tag, ",r(t));e=document.createElement(t)}var a=n.ref;return delete n.ref,Object.keys(n).forEach((function(t){var r=n[t];if(void 0!==r)switch(t){case"child":i(e,[r]);break;case"children":if(!Array.isArray(r))throw new Error("children must be an array of Nodes");i(e,r.flat());break;case"attr":Object.keys(r).forEach((function(t){var n=r[t];void 0!==n&&e.setAttribute(t,n)}));break;case"style":case"dataset":Object.keys(r).forEach((function(n){var o=r[n];void 0!==o&&(e[t][n]=o)}));break;case"on":Object.keys(r).forEach((function(t){var n=r[t];void 0!==n&&n.forEach((function(n){e.addEventListener(t,n)}))}));break;default:e[t]=r}})),a&&a.instanceOfRef&&(a.el=e),e}(t,e,arguments.length>2&&void 0!==arguments[2]?arguments[2]:[])}function i(t,e){var n,r=function(t){var e="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!e){if(Array.isArray(t)||(e=function(t,e){if(t){if("string"==typeof t)return o(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(t,e):void 0}}(t))){e&&(t=e);var n=0,r=function(){};return{s:r,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,c=!1;return{s:function(){e=e.call(t)},n:function(){var t=e.next();return i=t.done,t},e:function(t){c=!0,a=t},f:function(){try{i||null==e.return||e.return()}finally{if(c)throw a}}}}(e);try{for(r.s();!(n=r.n()).done;){var c=n.value;if(Array.isArray(c))i(t,c.flat());else{if(c instanceof Node)c instanceof Text&&"clone"in c&&(c=c.clone());else{if(null==c||""===c)continue;c=a.text("".concat(c))}t.appendChild(c)}}}catch(t){r.e(t)}finally{r.f()}}return t.d(e,{default:function(){return a}}),window&&!window.tag&&(window.tag=a),Object.defineProperties(a,{get:{value:function(t){return document.querySelector(t)}},getAll:{value:function(t){return function(t){if(Array.isArray(t))return n(t)}(e=document.querySelectorAll(t))||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(e)||function(t,e){if(t){if("string"==typeof t)return n(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?n(t,e):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();var e}},text:{value:function(t){return document.createTextNode(t)}},use:{value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=document.createTextNode(t);return e.clones=[e],e.shouldClone=!1,e._value=t,Object.defineProperty(e,"value",{set:function(t){e._value=t,e.clones.forEach((function(e){e.textContent=t})),"function"==typeof e.onChange&&e.onChange.call(e,t)},get:function(){return e._value}}),Object.defineProperty(e,"toString",{value:function(){return e._value}}),Object.defineProperty(e,"clone",{value:function(){if(!e.shouldClone)return e.shouldClone=!0,e;var t=e.cloneNode();return e.clones.push(t),t}}),e}}}),e.default}()},"object"==c(e)&&"object"==c(t)?t.exports=i():(o=[],void 0===(a="function"==typeof(r=i)?r.apply(e,o):r)||(t.exports=a))},72:t=>{"use strict";var e=[];function n(t){for(var n=-1,r=0;r{"use strict";var e={};t.exports=function(t,n){var r=function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(t){n=null}e[t]=n}return e[t]}(t);if(!r)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");r.appendChild(n)}},540:t=>{"use strict";t.exports=function(t){var e=document.createElement("style");return t.setAttributes(e,t.attributes),t.insert(e,t.options),e}},56:(t,e,n)=>{"use strict";t.exports=function(t){var e=n.nc;e&&t.setAttribute("nonce",e)}},825:t=>{"use strict";t.exports=function(t){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var e=t.insertStyleElement(t);return{update:function(n){!function(t,e,n){var r="";n.supports&&(r+="@supports (".concat(n.supports,") {")),n.media&&(r+="@media ".concat(n.media," {"));var o=void 0!==n.layer;o&&(r+="@layer".concat(n.layer.length>0?" ".concat(n.layer):""," {")),r+=n.css,o&&(r+="}"),n.media&&(r+="}"),n.supports&&(r+="}");var a=n.sourceMap;a&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(a))))," */")),e.styleTagTransform(r,t,e.options)}(e,t,n)},remove:function(){!function(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t)}(e)}}}},113:t=>{"use strict";t.exports=function(t,e){if(e.styleSheet)e.styleSheet.cssText=t;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(t))}}},111:(t,e,n)=>{var r=n(280).default;function o(){"use strict";t.exports=o=function(){return n},t.exports.__esModule=!0,t.exports.default=t.exports;var e,n={},a=Object.prototype,i=a.hasOwnProperty,c=Object.defineProperty||function(t,e,n){t[e]=n.value},u="function"==typeof Symbol?Symbol:{},l=u.iterator||"@@iterator",s=u.asyncIterator||"@@asyncIterator",f=u.toStringTag||"@@toStringTag";function p(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{p({},"")}catch(e){p=function(t,e,n){return t[e]=n}}function d(t,e,n,r){var o=e&&e.prototype instanceof x?e:x,a=Object.create(o.prototype),i=new P(r||[]);return c(a,"_invoke",{value:k(t,n,i)}),a}function h(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}n.wrap=d;var y="suspendedStart",m="suspendedYield",v="executing",b="completed",g={};function x(){}function w(){}function S(){}var E={};p(E,l,(function(){return this}));var N=Object.getPrototypeOf,T=N&&N(N(I([])));T&&T!==a&&i.call(T,l)&&(E=T);var j=S.prototype=x.prototype=Object.create(E);function A(t){["next","throw","return"].forEach((function(e){p(t,e,(function(t){return this._invoke(e,t)}))}))}function L(t,e){function n(o,a,c,u){var l=h(t[o],t,a);if("throw"!==l.type){var s=l.arg,f=s.value;return f&&"object"==r(f)&&i.call(f,"__await")?e.resolve(f.__await).then((function(t){n("next",t,c,u)}),(function(t){n("throw",t,c,u)})):e.resolve(f).then((function(t){s.value=t,c(s)}),(function(t){return n("throw",t,c,u)}))}u(l.arg)}var o;c(this,"_invoke",{value:function(t,r){function a(){return new e((function(e,o){n(t,r,e,o)}))}return o=o?o.then(a,a):a()}})}function k(t,n,r){var o=y;return function(a,i){if(o===v)throw Error("Generator is already running");if(o===b){if("throw"===a)throw i;return{value:e,done:!0}}for(r.method=a,r.arg=i;;){var c=r.delegate;if(c){var u=O(c,r);if(u){if(u===g)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===y)throw o=b,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=v;var l=h(t,n,r);if("normal"===l.type){if(o=r.done?b:m,l.arg===g)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(o=b,r.method="throw",r.arg=l.arg)}}}function O(t,n){var r=n.method,o=t.iterator[r];if(o===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,O(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),g;var a=h(o,t.iterator,n.arg);if("throw"===a.type)return n.method="throw",n.arg=a.arg,n.delegate=null,g;var i=a.arg;return i?i.done?(n[t.resultName]=i.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,g):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function _(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function C(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(_,this),this.reset(!0)}function I(t){if(t||""===t){var n=t[l];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,a=function n(){for(;++o=0;--o){var a=this.tryEntries[o],c=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var u=i.call(a,"catchLoc"),l=i.call(a,"finallyLoc");if(u&&l){if(this.prev=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),C(n),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;C(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:I(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),g}},n}t.exports=o,t.exports.__esModule=!0,t.exports.default=t.exports},280:t=>{function e(n){return t.exports=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},t.exports.__esModule=!0,t.exports.default=t.exports,e(n)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports},666:(t,e,n)=>{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)}var o=n(111)();t.exports=o;try{regeneratorRuntime=o}catch(t){"object"===("undefined"==typeof globalThis?"undefined":r(globalThis))?globalThis.regeneratorRuntime=o:Function("r","regeneratorRuntime = r")(o)}}},e={};function n(r){var o=e[r];if(void 0!==o)return o.exports;var a=e[r]={id:r,loaded:!1,exports:{}};return t[r].call(a.exports,a,a.exports,n),a.loaded=!0,a.exports}n.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.d=(t,e)=>{for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.nmd=t=>(t.paths=[],t.children||(t.children=[]),t),n.nc=void 0,(()=>{"use strict";var t=n(958),e=n.n(t);function r(t,e,n,r,o,a,i){try{var c=t[a](i),u=c.value}catch(t){return void n(t)}c.done?e(u):Promise.resolve(u).then(r,o)}function o(t){return function(){var e=this,n=arguments;return new Promise((function(o,a){var i=t.apply(e,n);function c(t){r(i,o,a,c,u,"next",t)}function u(t){r(i,o,a,c,u,"throw",t)}c(void 0)}))}}function a(t){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a(t)}function i(t){var e=function(t){if("object"!=a(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=a(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==a(e)?e:e+""}function c(t,e){for(var n=0;n{var t={208:(t,e,n)=>{"use strict";n.d(e,{A:()=>c});var r=n(107),o=n.n(r),a=n(20),i=n.n(a)()(o());i.push([t.id,".animation-container-108373737 {\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n width: 100%;\n text-align: center;\n gap: 10px;\n padding: 0 5px;\n overflow: hidden;\n height: 100%;\n}\n .animation-container-108373737 .output-192772625 {\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n width: 90%;\n height: 350px;\n text-align: center;\n padding: 0 5px;\n border: 1px solid #000;\n overflow: hidden;\n border-radius: 5px;\n position: relative;\n}\n.animation-container-108373737 .output-192772625 .inner-output-283652525 {\n height: 50px;\n width: 50px;\n background: #fff;\n border-radius: 50%;\n}\n\n.inner-output-adjust-283652525,\n.animation-info-1928374\n{\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n width: 100%;\n}\n\n.input-code-0987 {\n font-size: 5px;\n height: 100px;\n}\n.buttons-1928374 {\n display: flex;\n gap: 10px;\n flex-wrap: wrap;\n}\n\n.button-3928{\n background: #000;\n color: #fff;\n padding: 5px 10px;\n border: none;\n border-radius: 5px;\n cursor: pointer;\n font-size: 6px;\n}\n\n\n.paragraph-1928374{\n font-size: 9px;\n}\n\n.show-1928374{\n display: block;\n}\n\n.code-header-1928374{\n font-size: 6px;\n}\n\n.hidden{\n display: none;\n}\n\n.code-block-1928374{\n font-size: 2px;\n text-wrap: wrap;\n white-space: pre-wrap;\n}\n",""]);const c=i},20:t=>{"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var n="",r=void 0!==e[5];return e[4]&&(n+="@supports (".concat(e[4],") {")),e[2]&&(n+="@media ".concat(e[2]," {")),r&&(n+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),n+=t(e),r&&(n+="}"),e[2]&&(n+="}"),e[4]&&(n+="}"),n})).join("")},e.i=function(t,n,r,o,a){"string"==typeof t&&(t=[[null,t,void 0]]);var i={};if(r)for(var c=0;c0?" ".concat(s[5]):""," {").concat(s[1],"}")),s[5]=a),n&&(s[2]?(s[1]="@media ".concat(s[2]," {").concat(s[1],"}"),s[2]=n):s[2]=n),o&&(s[4]?(s[1]="@supports (".concat(s[4],") {").concat(s[1],"}"),s[4]=o):s[4]="".concat(o)),e.push(s))}},e}},107:t=>{"use strict";t.exports=function(t){return t[1]}},958:function(t,e,n){var r,o,a,i;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)}t=n.nmd(t),i=function(){return function(){"use strict";var t={d:function(e,n){for(var r in n)t.o(n,r)&&!t.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:n[r]})},o:function(t,e){return Object.prototype.hasOwnProperty.call(t,e)}},e={};function n(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);nt.length)&&(e=t.length);for(var n=0,r=new Array(e);n1&&void 0!==arguments[1]?arguments[1]:{};return"string"==typeof e&&(e={innerHTML:e}),function(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];if(Array.isArray(n)&&(o=n,n={}),"function"==typeof t)return t(n,o);if(t instanceof Node)e=t;else{if("string"!=typeof t)throw new Error("Invalid tag, ",r(t));e=document.createElement(t)}var a=n.ref;return delete n.ref,Object.keys(n).forEach((function(t){var r=n[t];if(void 0!==r)switch(t){case"child":i(e,[r]);break;case"children":if(!Array.isArray(r))throw new Error("children must be an array of Nodes");i(e,r.flat());break;case"attr":Object.keys(r).forEach((function(t){var n=r[t];void 0!==n&&e.setAttribute(t,n)}));break;case"style":case"dataset":Object.keys(r).forEach((function(n){var o=r[n];void 0!==o&&(e[t][n]=o)}));break;case"on":Object.keys(r).forEach((function(t){var n=r[t];void 0!==n&&n.forEach((function(n){e.addEventListener(t,n)}))}));break;default:e[t]=r}})),a&&a.instanceOfRef&&(a.el=e),e}(t,e,arguments.length>2&&void 0!==arguments[2]?arguments[2]:[])}function i(t,e){var n,r=function(t){var e="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!e){if(Array.isArray(t)||(e=function(t,e){if(t){if("string"==typeof t)return o(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(t,e):void 0}}(t))){e&&(t=e);var n=0,r=function(){};return{s:r,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,c=!1;return{s:function(){e=e.call(t)},n:function(){var t=e.next();return i=t.done,t},e:function(t){c=!0,a=t},f:function(){try{i||null==e.return||e.return()}finally{if(c)throw a}}}}(e);try{for(r.s();!(n=r.n()).done;){var c=n.value;if(Array.isArray(c))i(t,c.flat());else{if(c instanceof Node)c instanceof Text&&"clone"in c&&(c=c.clone());else{if(null==c||""===c)continue;c=a.text("".concat(c))}t.appendChild(c)}}}catch(t){r.e(t)}finally{r.f()}}return t.d(e,{default:function(){return a}}),window&&!window.tag&&(window.tag=a),Object.defineProperties(a,{get:{value:function(t){return document.querySelector(t)}},getAll:{value:function(t){return function(t){if(Array.isArray(t))return n(t)}(e=document.querySelectorAll(t))||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(e)||function(t,e){if(t){if("string"==typeof t)return n(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?n(t,e):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();var e}},text:{value:function(t){return document.createTextNode(t)}},use:{value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=document.createTextNode(t);return e.clones=[e],e.shouldClone=!1,e._value=t,Object.defineProperty(e,"value",{set:function(t){e._value=t,e.clones.forEach((function(e){e.textContent=t})),"function"==typeof e.onChange&&e.onChange.call(e,t)},get:function(){return e._value}}),Object.defineProperty(e,"toString",{value:function(){return e._value}}),Object.defineProperty(e,"clone",{value:function(){if(!e.shouldClone)return e.shouldClone=!0,e;var t=e.cloneNode();return e.clones.push(t),t}}),e}}}),e.default}()},"object"==c(e)&&"object"==c(t)?t.exports=i():(o=[],void 0===(a="function"==typeof(r=i)?r.apply(e,o):r)||(t.exports=a))},72:t=>{"use strict";var e=[];function n(t){for(var n=-1,r=0;r{"use strict";var e={};t.exports=function(t,n){var r=function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(t){n=null}e[t]=n}return e[t]}(t);if(!r)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");r.appendChild(n)}},540:t=>{"use strict";t.exports=function(t){var e=document.createElement("style");return t.setAttributes(e,t.attributes),t.insert(e,t.options),e}},56:(t,e,n)=>{"use strict";t.exports=function(t){var e=n.nc;e&&t.setAttribute("nonce",e)}},825:t=>{"use strict";t.exports=function(t){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var e=t.insertStyleElement(t);return{update:function(n){!function(t,e,n){var r="";n.supports&&(r+="@supports (".concat(n.supports,") {")),n.media&&(r+="@media ".concat(n.media," {"));var o=void 0!==n.layer;o&&(r+="@layer".concat(n.layer.length>0?" ".concat(n.layer):""," {")),r+=n.css,o&&(r+="}"),n.media&&(r+="}"),n.supports&&(r+="}");var a=n.sourceMap;a&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(a))))," */")),e.styleTagTransform(r,t,e.options)}(e,t,n)},remove:function(){!function(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t)}(e)}}}},113:t=>{"use strict";t.exports=function(t,e){if(e.styleSheet)e.styleSheet.cssText=t;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(t))}}},111:(t,e,n)=>{var r=n(280).default;function o(){"use strict";t.exports=o=function(){return n},t.exports.__esModule=!0,t.exports.default=t.exports;var e,n={},a=Object.prototype,i=a.hasOwnProperty,c=Object.defineProperty||function(t,e,n){t[e]=n.value},u="function"==typeof Symbol?Symbol:{},l=u.iterator||"@@iterator",s=u.asyncIterator||"@@asyncIterator",f=u.toStringTag||"@@toStringTag";function p(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{p({},"")}catch(e){p=function(t,e,n){return t[e]=n}}function d(t,e,n,r){var o=e&&e.prototype instanceof x?e:x,a=Object.create(o.prototype),i=new P(r||[]);return c(a,"_invoke",{value:k(t,n,i)}),a}function h(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}n.wrap=d;var y="suspendedStart",m="suspendedYield",v="executing",b="completed",g={};function x(){}function w(){}function S(){}var N={};p(N,l,(function(){return this}));var E=Object.getPrototypeOf,T=E&&E(E(I([])));T&&T!==a&&i.call(T,l)&&(N=T);var j=S.prototype=x.prototype=Object.create(N);function A(t){["next","throw","return"].forEach((function(e){p(t,e,(function(t){return this._invoke(e,t)}))}))}function L(t,e){function n(o,a,c,u){var l=h(t[o],t,a);if("throw"!==l.type){var s=l.arg,f=s.value;return f&&"object"==r(f)&&i.call(f,"__await")?e.resolve(f.__await).then((function(t){n("next",t,c,u)}),(function(t){n("throw",t,c,u)})):e.resolve(f).then((function(t){s.value=t,c(s)}),(function(t){return n("throw",t,c,u)}))}u(l.arg)}var o;c(this,"_invoke",{value:function(t,r){function a(){return new e((function(e,o){n(t,r,e,o)}))}return o=o?o.then(a,a):a()}})}function k(t,n,r){var o=y;return function(a,i){if(o===v)throw Error("Generator is already running");if(o===b){if("throw"===a)throw i;return{value:e,done:!0}}for(r.method=a,r.arg=i;;){var c=r.delegate;if(c){var u=O(c,r);if(u){if(u===g)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===y)throw o=b,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=v;var l=h(t,n,r);if("normal"===l.type){if(o=r.done?b:m,l.arg===g)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(o=b,r.method="throw",r.arg=l.arg)}}}function O(t,n){var r=n.method,o=t.iterator[r];if(o===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,O(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),g;var a=h(o,t.iterator,n.arg);if("throw"===a.type)return n.method="throw",n.arg=a.arg,n.delegate=null,g;var i=a.arg;return i?i.done?(n[t.resultName]=i.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,g):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function _(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function C(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(_,this),this.reset(!0)}function I(t){if(t||""===t){var n=t[l];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,a=function n(){for(;++o=0;--o){var a=this.tryEntries[o],c=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var u=i.call(a,"catchLoc"),l=i.call(a,"finallyLoc");if(u&&l){if(this.prev=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),C(n),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;C(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:I(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),g}},n}t.exports=o,t.exports.__esModule=!0,t.exports.default=t.exports},280:t=>{function e(n){return t.exports=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},t.exports.__esModule=!0,t.exports.default=t.exports,e(n)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports},666:(t,e,n)=>{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)}var o=n(111)();t.exports=o;try{regeneratorRuntime=o}catch(t){"object"===("undefined"==typeof globalThis?"undefined":r(globalThis))?globalThis.regeneratorRuntime=o:Function("r","regeneratorRuntime = r")(o)}}},e={};function n(r){var o=e[r];if(void 0!==o)return o.exports;var a=e[r]={id:r,loaded:!1,exports:{}};return t[r].call(a.exports,a,a.exports,n),a.loaded=!0,a.exports}n.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.d=(t,e)=>{for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.nmd=t=>(t.paths=[],t.children||(t.children=[]),t),n.nc=void 0,(()=>{"use strict";var t=n(958),e=n.n(t);function r(t,e,n,r,o,a,i){try{var c=t[a](i),u=c.value}catch(t){return void n(t)}c.done?e(u):Promise.resolve(u).then(r,o)}function o(t){return function(){var e=this,n=arguments;return new Promise((function(o,a){var i=t.apply(e,n);function c(t){r(i,o,a,c,u,"next",t)}function u(t){r(i,o,a,c,u,"throw",t)}c(void 0)}))}}function a(t){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a(t)}function i(t){var e=function(t){if("object"!=a(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=a(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==a(e)?e:e+""}function c(t,e){for(var n=0;n { - const randomName = `animation${Math.random().toString(36).substr(2, 9)}`; + let randomName = `animation${Math.random().toString(36).substr(2, 9)}`; + if (animationName.value !== "") { + randomName = animationName.value; + console.log('randomName', randomName); + } const keyframes = `@keyframes ${randomName} { ${inputField.value} }`; const styleTag = document.createElement("style"); styleTag.innerHTML = keyframes; @@ -197,7 +201,7 @@ animation-direction: ${animationDirection.value || 'normal'}; animation-fill-mode: ${animationFillMode.value || 'none'}; `; - innerOutputDiv.style.animationName = animationName.value || randomName; + innerOutputDiv.style.animationName = randomName; innerOutputDiv.style.animationDuration = animationTime.value || '5s'; innerOutputDiv.style.animationDelay = animationDelay.value || '0s'; innerOutputDiv.style.animationIterationCount = animationIteration.value || 'infinite';