diff --git a/dist/editor.js b/dist/editor.js index c00ba0a1e..a9c72fcc9 100644 --- a/dist/editor.js +++ b/dist/editor.js @@ -1838,4 +1838,4 @@ var r=n(342),i=n(343),a=n(344);function o(){return u.TYPED_ARRAY_SUPPORT?2147483 })(UMD_ROOT, function (FACTORY_PARAMETERS) { FACTORY_BODY }); - `(r))]);var r}function f(e){const t=o().identifier("babelHelpers"),n=[];n.push(o().variableDeclaration("var",[o().variableDeclarator(t,o().objectExpression([]))]));const r=o().program(n);return d(n,t,e),n.push(o().expressionStatement(t)),r}function d(e,t,n){const i=e=>t?o().memberExpression(t,o().identifier(e)):o().identifier(`_${e}`),a={};return r().list.forEach((function(t){if(n&&n.indexOf(t)<0)return;const o=a[t]=i(t),{nodes:s}=r().get(t,i,o);e.push(...s)})),a}},function(e){e.exports=JSON.parse('{"_from":"@babel/core@^7.4.4","_id":"@babel/core@7.7.5","_inBundle":false,"_integrity":"sha512-M42+ScN4+1S9iB6f+TL7QBpoQETxbclx+KNoKJABghnKYE+fMzSGqst0BZJc8CpI625bwPwYgUyRvxZ+0mZzpw==","_location":"/@babel/core","_phantomChildren":{},"_requested":{"type":"range","registry":true,"raw":"@babel/core@^7.4.4","name":"@babel/core","escapedName":"@babel%2fcore","scope":"@babel","rawSpec":"^7.4.4","saveSpec":null,"fetchSpec":"^7.4.4"},"_requiredBy":["#DEV:/","/@jest/transform","/jest-config"],"_resolved":"https://registry.npmjs.org/@babel/core/-/core-7.7.5.tgz","_shasum":"ae1323cd035b5160293307f50647e83f8ba62f7e","_spec":"@babel/core@^7.4.4","_where":"/Users/easylogic/github/editor","author":{"name":"Sebastian McKenzie","email":"sebmck@gmail.com"},"browser":{"./lib/config/files/index.js":"./lib/config/files/index-browser.js","./lib/transform-file.js":"./lib/transform-file-browser.js","./src/config/files/index.js":"./src/config/files/index-browser.js","./src/transform-file.js":"./src/transform-file-browser.js"},"bundleDependencies":false,"dependencies":{"@babel/code-frame":"^7.5.5","@babel/generator":"^7.7.4","@babel/helpers":"^7.7.4","@babel/parser":"^7.7.5","@babel/template":"^7.7.4","@babel/traverse":"^7.7.4","@babel/types":"^7.7.4","convert-source-map":"^1.7.0","debug":"^4.1.0","json5":"^2.1.0","lodash":"^4.17.13","resolve":"^1.3.2","semver":"^5.4.1","source-map":"^0.5.0"},"deprecated":false,"description":"Babel compiler core.","devDependencies":{"@babel/helper-transform-fixture-test-runner":"^7.7.5"},"engines":{"node":">=6.9.0"},"funding":{"type":"opencollective","url":"https://opencollective.com/babel"},"gitHead":"d04508e510abc624b3e423ff334eff47f297502a","homepage":"https://babeljs.io/","keywords":["6to5","babel","classes","const","es6","harmony","let","modules","transpile","transpiler","var","babel-core","compiler"],"license":"MIT","main":"lib/index.js","name":"@babel/core","publishConfig":{"access":"public"},"repository":{"type":"git","url":"https://github.com/babel/babel/tree/master/packages/babel-core"},"version":"7.7.5"}')},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){const t=(0,f.default)(e);if(!t)return null;const{options:n,context:i}=t,a={},s=[[]];try{const{plugins:e,presets:t}=n;if(!e||!t)throw new Error("Assertion failure - plugins and presets exist");if(function e(t,n){const o=t.plugins.reduce((e,t)=>(!1!==t.options&&e.push(m(t,i)),e),[]),u=t.presets.reduce((e,t)=>(!1!==t.options&&e.push({preset:x(t,i),pass:t.ownPass?[]:n}),e),[]);if(u.length>0){s.splice(1,0,...u.map(e=>e.pass).filter(e=>e!==n));for(const{preset:t,pass:n}of u){if(!t)return!0;if(e({plugins:t.plugins,presets:t.presets},n))return!0;t.options.forEach(e=>{(0,r.mergeOptions)(a,e)})}}o.length>0&&n.unshift(...o)}({plugins:e.map(e=>{const t=(0,o.getItemDescriptor)(e);if(!t)throw new Error("Assertion failure - must be config item");return t}),presets:t.map(e=>{const t=(0,o.getItemDescriptor)(e);if(!t)throw new Error("Assertion failure - must be config item");return t})},s[0]))return null}catch(e){throw/^\[BABEL\]/.test(e.message)||(e.message=`[BABEL] ${i.filename||"unknown"}: ${e.message}`),e}const u=a;return(0,r.mergeOptions)(u,n),u.plugins=s[0],u.presets=s.slice(1).filter(e=>e.length>0).map(e=>({plugins:e})),u.passPerPreset=u.presets.length>0,{options:u,passes:s}};var r=n(157),i=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=y();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var a=r?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(n,i,a):n[i]=e[i]}n.default=e,t&&t.set(e,n);return n}(n(56)),a=d(n(87)),o=n(52),s=n(158);function u(){const e=d(n(18));return u=function(){return e},e}var c=n(53),l=n(88),p=n(389),h=d(n(390)),f=d(n(160));function d(e){return e&&e.__esModule?e:{default:e}}function y(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return y=function(){return e},e}const v=(0,c.makeWeakCache)(({value:e,options:t,dirname:n,alias:r},a)=>{if(!1===t)throw new Error("Assertion failure");t=t||{};let o=e;if("function"==typeof e){const s=Object.assign({},i,{},(0,h.default)(a));try{o=e(s,t,n)}catch(e){throw r&&(e.message+=` (While processing: ${JSON.stringify(r)})`),e}}if(!o||"object"!=typeof o)throw new Error("Plugin/Preset did not return an object.");if("function"==typeof o.then)throw new Error("You appear to be using an async plugin, which your current version of Babel does not support. If you're using a published plugin, you may need to upgrade your @babel/core version.");return{value:o,options:t,dirname:n,alias:r}});function m(e,t){if(e.value instanceof a.default){if(e.options)throw new Error("Passed options to an existing Plugin instance will not work.");return e.value}return g(v(e,t),t)}const g=(0,c.makeWeakCache)(({value:e,options:t,dirname:n,alias:r},i)=>{const o=(0,p.validatePluginObject)(e),s=Object.assign({},o);if(s.visitor&&(s.visitor=u().default.explode(Object.assign({},s.visitor))),s.inherits){const e={name:void 0,alias:`${r}$inherits`,value:s.inherits,options:t,dirname:n},a=i.invalidate(t=>m(e,t));s.pre=w(a.pre,s.pre),s.post=w(a.post,s.post),s.manipulateOptions=w(a.manipulateOptions,s.manipulateOptions),s.visitor=u().default.visitors.merge([a.visitor||{},s.visitor||{}])}return new a.default(s,t,r)}),b=(e,t)=>{if(e.test||e.include||e.exclude){const e=t.name?`"${t.name}"`:"/* your preset */";throw new Error([`Preset ${e} requires a filename to be set when babel is called directly,`,"```",`babel.transform(code, { filename: 'file.ts', presets: [${e}] });`,"```","See https://babeljs.io/docs/en/options#filename for more information."].join("\n"))}},x=(e,t)=>{const n=k(v(e,t));return((e,t,n)=>{if(!t.filename){const{options:t}=e;b(t,n),t.overrides&&t.overrides.forEach(e=>b(e,n))}})(n,t,e),(0,s.buildPresetChain)(n,t)},k=(0,c.makeWeakCache)(({value:e,dirname:t,alias:n})=>({options:(0,l.validate)("preset",e),alias:n,dirname:t}));function w(e,t){const n=[e,t].filter(Boolean);return n.length<=1?n[0]:function(...e){for(const t of n)t.apply(this,e)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={auxiliaryComment:{message:"Use `auxiliaryCommentBefore` or `auxiliaryCommentAfter`"},blacklist:{message:"Put the specific transforms you want in the `plugins` option"},breakConfig:{message:"This is not a necessary option in Babel 6"},experimental:{message:"Put the specific transforms you want in the `plugins` option"},externalHelpers:{message:"Use the `external-helpers` plugin instead. Check out http://babeljs.io/docs/plugins/external-helpers/"},extra:{message:""},jsxPragma:{message:"use the `pragma` option in the `react-jsx` plugin. Check out http://babeljs.io/docs/plugins/transform-react-jsx/"},loose:{message:"Specify the `loose` option for the relevant plugin you are using or use a preset that sets the option."},metadataUsedHelpers:{message:"Not required anymore as this is enabled by default"},modules:{message:"Use the corresponding module transform plugin in the `plugins` option. Check out http://babeljs.io/docs/plugins/#modules"},nonStandard:{message:"Use the `react-jsx` and `flow-strip-types` plugins to support JSX and Flow. Also check out the react preset http://babeljs.io/docs/plugins/preset-react/"},optional:{message:"Put the specific transforms you want in the `plugins` option"},sourceMapName:{message:"The `sourceMapName` option has been removed because it makes more sense for the tooling that calls Babel to assign `map.file` themselves."},stage:{message:"Check out the corresponding stage-x presets http://babeljs.io/docs/plugins/#presets"},whitelist:{message:"Put the specific transforms you want in the `plugins` option"},resolveModuleSource:{version:6,message:"Use `babel-plugin-module-resolver@3`'s 'resolvePath' options"},metadata:{version:6,message:"Generated plugin metadata is always included in the output result"},sourceMapTarget:{version:6,message:"The `sourceMapTarget` option has been removed because it makes more sense for the tooling that calls Babel to assign `map.file` themselves."}}},function(e,t,n){"use strict";function r(){const e=a(n(26));return r=function(){return e},e}function i(){const e=a(n(388));return i=function(){return e},e}function a(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){const n=r().default.resolve(t,e).split(r().default.sep);return new RegExp(["^",...n.map((e,t)=>{const r=t===n.length-1;return"**"===e?r?h:p:"*"===e?r?l:c:0===e.indexOf("*.")?u+(0,i().default)(e.slice(1))+(r?s:o):(0,i().default)(e)+(r?s:o)})].join(""))};const o=`\\${r().default.sep}`,s=`(?:${o}|$)`,u=`[^${o}]+`,c=`(?:${u}${o})`,l=`(?:${u}${s})`,p=`${c}*?`,h=`${c}*?${l}?`},function(e,t,n){var r=n(84),i=/[\\^$.*+?()[\]{}|]/g,a=RegExp(i.source);e.exports=function(e){return(e=r(e))&&a.test(e)?e.replace(i,"\\$&"):e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validatePluginObject=function(e){const t={type:"root",source:"plugin"};return Object.keys(e).forEach(n=>{const r=i[n],a={type:"option",name:n,parent:t};if(!r)throw new Error(`.${n} is not a valid Plugin property`);r(a,e[n])}),e};var r=n(159);const i={name:r.assertString,manipulateOptions:r.assertFunction,pre:r.assertFunction,post:r.assertFunction,inherits:r.assertFunction,visitor:function(e,t){const n=(0,r.assertObject)(e,t);if(n&&(Object.keys(n).forEach(e=>function(e,t){if(t&&"object"==typeof t)Object.keys(t).forEach(t=>{if("enter"!==t&&"exit"!==t)throw new Error(`.visitor["${e}"] may only have .enter and/or .exit handlers.`)});else if("function"!=typeof t)throw new Error(`.visitor["${e}"] must be a function`);return t}(e,n[e])),n.enter||n.exit))throw new Error(`.${e} cannot contain catch-all "enter" or "exit" handlers. Please target individual nodes.`);return n},parserOverride:r.assertFunction,generatorOverride:r.assertFunction}},function(e,t,n){"use strict";function r(){const e=(t=n(154))&&t.__esModule?t:{default:t};var t;return r=function(){return e},e}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return{version:i.version,cache:e.simple(),env:t=>e.using(e=>void 0===t?e.envName:"function"==typeof t?(0,a.assertSimpleType)(t(e.envName)):(Array.isArray(t)||(t=[t]),t.some(t=>{if("string"!=typeof t)throw new Error("Unexpected non-string value");return t===e.envName}))),async:()=>!1,caller:t=>e.using(e=>(0,a.assertSimpleType)(t(e.caller))),assertVersion:o,tokTypes:void 0}};var i=n(56),a=n(53);function o(e){if("number"==typeof e){if(!Number.isInteger(e))throw new Error("Expected string or integer value.");e=`^${e}.0.0-0`}if("string"!=typeof e)throw new Error("Expected string or integer value.");if(r().default.satisfies(i.version,e))return;const t=Error.stackTraceLimit;"number"==typeof t&&t<25&&(Error.stackTraceLimit=25);const n=new Error(`Requires Babel "${e}", but was loaded with "${i.version}". `+'If you are sure you have a compatible version of @babel/core, it is likely that something in your build process is loading the wrong version. Inspect the stack trace of this error to look for the first entry that doesn\'t mention "@babel/core" or "babel-core" to see what is calling Babel.');throw"number"==typeof t&&(Error.stackTraceLimit=t),Object.assign(n,{code:"BABEL_VERSION_UNSUPPORTED",version:i.version,range:e})}},function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.transformSync=s,t.transformAsync=function(e,t){return new Promise((n,r)=>{o(e,t,(e,t)=>{null==e?n(t):r(e)})})},t.transform=void 0;var r,i=(r=n(36))&&r.__esModule?r:{default:r},a=n(161);const o=function(t,n,r){if("function"==typeof n&&(r=n,n=void 0),void 0===r)return s(t,n);const o=r;e.nextTick(()=>{let e;try{if(e=(0,i.default)(n),null===e)return o(null,null)}catch(e){return o(e)}(0,a.runAsync)(e,t,null,o)})};function s(e,t){const n=(0,i.default)(t);return null===n?null:(0,a.runSync)(n,e)}t.transform=o}).call(this,n(20))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default=class{constructor(e,t,n){this._map=new Map,this.key=t,this.file=e,this.opts=n||{},this.cwd=e.opts.cwd,this.filename=e.opts.filename}set(e,t){this._map.set(e,t)}get(e){return this._map.get(e)}availableHelper(e,t){return this.file.availableHelper(e,t)}addHelper(e){return this.file.addHelper(e)}addImport(){return this.file.addImport()}getModuleName(){return this.file.getModuleName()}buildCodeFrameError(e,t,n){return this.file.buildCodeFrameError(e,t,n)}}},function(e,t,n){"use strict";function r(){const e=a(n(394));return r=function(){return e},e}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){if(!o){const e=(0,i.default)({babelrc:!1,configFile:!1,plugins:[s]});if(o=e?e.passes[0][0]:void 0,!o)throw new Error("Assertion failure")}return o};var i=a(n(36));function a(e){return e&&e.__esModule?e:{default:e}}let o;const s={name:"internal.blockHoist",visitor:{Block:{exit({node:e}){let t=!1;for(let n=0;n1&&o(e,t[0],t[1])?t=[]:n>2&&o(t[0],t[1],t[2])&&(t=[t[0]]),i(e,r(t,1),[])}));e.exports=s},function(e,t,n){var r=n(69),i=n(396);e.exports=function e(t,n,a,o,s){var u=-1,c=t.length;for(a||(a=i),s||(s=[]);++u0&&a(l)?n>1?e(l,n-1,a,o,s):r(s,l):o||(s[s.length]=l)}return s}},function(e,t,n){var r=n(27),i=n(62),a=n(15),o=r?r.isConcatSpreadable:void 0;e.exports=function(e){return a(e)||i(e)||!!(o&&e&&e[o])}},function(e,t,n){var r=n(82),i=n(398),a=n(418),o=n(424),s=n(31),u=n(425),c=n(46);e.exports=function(e,t,n){var l=-1;t=r(t.length?t:[c],s(i));var p=a(e,(function(e,n,i){return{criteria:r(t,(function(t){return t(e)})),index:++l,value:e}}));return o(p,(function(e,t){return u(e,t,n)}))}},function(e,t,n){var r=n(399),i=n(407),a=n(46),o=n(15),s=n(415);e.exports=function(e){return"function"==typeof e?e:null==e?a:"object"==typeof e?o(e)?i(e[0],e[1]):r(e):s(e)}},function(e,t,n){var r=n(400),i=n(406),a=n(165);e.exports=function(e){var t=i(e);return 1==t.length&&t[0][2]?a(t[0][0],t[0][1]):function(n){return n===e||r(n,e,t)}}},function(e,t,n){var r=n(58),i=n(162);e.exports=function(e,t,n,a){var o=n.length,s=o,u=!a;if(null==e)return!s;for(e=Object(e);o--;){var c=n[o];if(u&&c[2]?c[1]!==e[c[0]]:!(c[0]in e))return!1}for(;++o=u?c:c*("desc"==n[i]?-1:1)}return e.index-t.index}},function(e,t,n){var r=n(34);e.exports=function(e,t){if(e!==t){var n=void 0!==e,i=null===e,a=e==e,o=r(e),s=void 0!==t,u=null===t,c=t==t,l=r(t);if(!u&&!l&&!o&&e>t||o&&s&&c&&!u&&!l||i&&s&&c||!n&&c||!a)return 1;if(!i&&!o&&!l&&e`${e} (${t})`},function(e,t,n){"use strict";function r(){const e=o(n(170));return r=function(){return e},e}function i(){const e=o(n(85));return i=function(){return e},e}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){const{opts:n,ast:o,code:s,inputMap:u}=t,c=[];for(const t of e)for(const e of t){const{generatorOverride:t}=e;if(t){const e=t(o,n.generatorOpts,s,i().default);void 0!==e&&c.push(e)}}let l;if(0===c.length)l=(0,i().default)(o,n.generatorOpts,s);else{if(1!==c.length)throw new Error("More than one plugin attempted to override codegen.");if(l=c[0],"function"==typeof l.then)throw new Error("You appear to be using an async codegen plugin, which your current version of Babel does not support. If you're using a published plugin, you may need to upgrade your @babel/core version.")}let{code:p,map:h}=l;h&&u&&(h=(0,a.default)(u.toObject(),h));"inline"!==n.sourceMaps&&"both"!==n.sourceMaps||(p+="\n"+r().default.fromObject(h).toComment());"inline"===n.sourceMaps&&(h=null);return{outputCode:p,outputMap:h}};var a=o(n(432));function o(e){return e&&e.__esModule?e:{default:e}}},function(e,t,n){"use strict";function r(){const e=(t=n(143))&&t.__esModule?t:{default:t};var t;return r=function(){return e},e}function i(e){return`${e.line}/${e.columnStart}`}function a(e){const t=new(r().default.SourceMapConsumer)(Object.assign({},e,{sourceRoot:null})),n=new Map,i=new Map;let a=null;return t.computeColumnSpans(),t.eachMapping(e=>{if(null===e.originalLine)return;let r=n.get(e.source);r||(r={path:e.source,content:t.sourceContentFor(e.source,!0)},n.set(e.source,r));let o=i.get(r);o||(o={source:r,mappings:[]},i.set(r,o));const s={line:e.originalLine,columnStart:e.originalColumn,columnEnd:1/0,name:e.name};a&&a.source===r&&a.mapping.line===e.originalLine&&(a.mapping.columnEnd=e.originalColumn),a={source:r,mapping:s},o.mappings.push({original:s,generated:t.allGeneratedPositionsFor({source:e.source,line:e.originalLine,column:e.originalColumn}).map(e=>({line:e.line,columnStart:e.column,columnEnd:e.lastColumn+1}))})},null,r().default.SourceMapConsumer.ORIGINAL_ORDER),{file:e.file,sourceRoot:e.sourceRoot,sources:Array.from(i.values())}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){const n=a(e),o=a(t),s=new(r().default.SourceMapGenerator);for(const{source:e}of n.sources)"string"==typeof e.content&&s.setSourceContent(e.path,e.content);if(1===o.sources.length){const e=o.sources[0],t=new Map;!function(e,t){for(const{source:n,mappings:r}of e.sources)for(const{original:e,generated:i}of r)for(const r of i)t(r,e,n)}(n,(n,r,a)=>{!function(e,t,n){const r=function({mappings:e},{line:t,columnStart:n,columnEnd:r}){return function(e,t){const n=function(e,t){let n=0,r=e.length;for(;n=0?r=i:n=i+1}let i=n;if(i=0&&t(e[i])>=0;)i--;return i+1}return i}(e,t),r=[];for(let i=n;it>e.line?-1:t=e.columnEnd?-1:r<=e.columnStart?1:0)}(e,t);for(const{generated:e}of r)for(const t of e)n(t)}(e,n,e=>{const n=i(e);t.has(n)||(t.set(n,e),s.addMapping({source:a.path,original:{line:r.line,column:r.columnStart},generated:{line:e.line,column:e.columnStart},name:r.name}))})});for(const e of t.values()){if(e.columnEnd===1/0)continue;const n={line:e.line,columnStart:e.columnEnd},r=i(n);t.has(r)||s.addMapping({generated:{line:n.line,column:n.columnStart}})}}const u=s.toJSON();"string"==typeof n.sourceRoot&&(u.sourceRoot=n.sourceRoot);return u}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.transformFileSync=function(){throw new Error("Transforming files is not supported in browsers")},t.transformFileAsync=function(){return Promise.reject(new Error("Transforming files is not supported in browsers"))},t.transformFile=void 0;t.transformFile=function(e,t,n){"function"==typeof t&&(n=t),n(new Error("Transforming files is not supported in browsers"),null)}},function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.transformFromAstSync=s,t.transformFromAstAsync=function(e,t,n){return new Promise((r,i)=>{o(e,t,n,(e,t)=>{null==e?r(t):i(e)})})},t.transformFromAst=void 0;var r,i=(r=n(36))&&r.__esModule?r:{default:r},a=n(161);const o=function(t,n,r,o){if("function"==typeof r&&(o=r,r=void 0),void 0===o)return s(t,n,r);const u=o;e.nextTick(()=>{let e;try{if(e=(0,i.default)(r),null===e)return u(null,null)}catch(e){return u(e)}if(!t)return u(new Error("No AST given"));(0,a.runAsync)(e,n,t,u)})};function s(e,t,n){const r=(0,i.default)(n);if(null===r)return null;if(!e)throw new Error("No AST given");return(0,a.runSync)(r,t,e)}t.transformFromAst=o}).call(this,n(20))},function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.parseSync=u,t.parseAsync=function(e,t){return new Promise((n,r)=>{s(e,t,(e,t)=>{null==e?n(t):r(e)})})},t.parse=void 0;var r=o(n(36)),i=o(n(169)),a=o(n(168));function o(e){return e&&e.__esModule?e:{default:e}}const s=function(t,n,o){if("function"==typeof n&&(o=n,n=void 0),void 0===o)return u(t,n);if(null===(0,r.default)(n))return null;const s=o;e.nextTick(()=>{let e=null;try{const o=(0,r.default)(n);if(null===o)return s(null,null);e=(0,i.default)(o.passes,(0,a.default)(o),t).ast}catch(e){return s(e)}s(null,e)})};function u(e,t){const n=(0,r.default)(t);return null===n?null:(0,i.default)(n.passes,(0,a.default)(n),e).ast}t.parse=s}).call(this,n(20))},function(e,t,n){var r=n(0);e.exports=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=r(e)););return e}},function(e,t,n){var r=function(e){"use strict";var t=Object.prototype,n=t.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},i=r.iterator||"@@iterator",a=r.asyncIterator||"@@asyncIterator",o=r.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var i=t&&t.prototype instanceof p?t:p,a=Object.create(i.prototype),o=new S(r||[]);return a._invoke=function(e,t,n){var r="suspendedStart";return function(i,a){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw a;return E()}for(n.method=i,n.arg=a;;){var o=n.delegate;if(o){var s=x(o,n);if(s){if(s===l)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=c(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===l)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}(e,n,o),a}function c(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=u;var l={};function p(){}function h(){}function f(){}var d={};d[i]=function(){return this};var y=Object.getPrototypeOf,v=y&&y(y(P([])));v&&v!==t&&n.call(v,i)&&(d=v);var m=f.prototype=p.prototype=Object.create(d);function g(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){var r;this._invoke=function(i,a){function o(){return new t((function(r,o){!function r(i,a,o,s){var u=c(e[i],e,a);if("throw"!==u.type){var l=u.arg,p=l.value;return p&&"object"==typeof p&&n.call(p,"__await")?t.resolve(p.__await).then((function(e){r("next",e,o,s)}),(function(e){r("throw",e,o,s)})):t.resolve(p).then((function(e){l.value=e,o(l)}),(function(e){return r("throw",e,o,s)}))}s(u.arg)}(i,a,r,o)}))}return r=r?r.then(o,o):o()}}function x(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,x(e,t),"throw"===t.method))return l;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return l}var r=c(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,l;var i=r.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,l):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,l)}function k(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function S(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(k,this),this.reset(!0)}function P(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,a=function t(){for(;++r=0;--i){var a=this.tryEntries[i],o=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var s=n.call(a,"catchLoc"),u=n.call(a,"finallyLoc");if(s&&u){if(this.prev=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),w(n),l}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;w(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:P(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),l}},e}(e.exports);try{regeneratorRuntime=r}catch(e){Function("r","regeneratorRuntime = r")(r)}},function(e,t,n){"use strict";n.r(t);var r={};n.r(r),n.d(r,"randomNumber",(function(){return j})),n.d(r,"randomByCount",(function(){return $})),n.d(r,"random",(function(){return M})),n.d(r,"randomRGBA",(function(){return I}));var i={};n.r(i),n.d(i,"create",(function(){return _})),n.d(i,"clone",(function(){return B})),n.d(i,"copy",(function(){return R})),n.d(i,"fromValues",(function(){return N})),n.d(i,"set",(function(){return V})),n.d(i,"identity",(function(){return z})),n.d(i,"transpose",(function(){return G})),n.d(i,"invert",(function(){return H})),n.d(i,"adjoint",(function(){return U})),n.d(i,"determinant",(function(){return Y})),n.d(i,"multiply",(function(){return W})),n.d(i,"translate",(function(){return K})),n.d(i,"scale",(function(){return X})),n.d(i,"rotate",(function(){return q})),n.d(i,"rotateX",(function(){return J})),n.d(i,"rotateY",(function(){return Z})),n.d(i,"rotateZ",(function(){return Q})),n.d(i,"fromTranslation",(function(){return ee})),n.d(i,"fromScaling",(function(){return te})),n.d(i,"fromRotation",(function(){return ne})),n.d(i,"fromXRotation",(function(){return re})),n.d(i,"fromYRotation",(function(){return ie})),n.d(i,"fromZRotation",(function(){return ae})),n.d(i,"fromRotationTranslation",(function(){return oe})),n.d(i,"fromQuat2",(function(){return se})),n.d(i,"getTranslation",(function(){return ue})),n.d(i,"getScaling",(function(){return ce})),n.d(i,"getRotation",(function(){return le})),n.d(i,"fromRotationTranslationScale",(function(){return pe})),n.d(i,"fromRotationTranslationScaleOrigin",(function(){return he})),n.d(i,"fromQuat",(function(){return fe})),n.d(i,"frustum",(function(){return de})),n.d(i,"perspective",(function(){return ye})),n.d(i,"perspectiveFromFieldOfView",(function(){return ve})),n.d(i,"ortho",(function(){return me})),n.d(i,"lookAt",(function(){return ge})),n.d(i,"targetTo",(function(){return be})),n.d(i,"str",(function(){return xe})),n.d(i,"frob",(function(){return ke})),n.d(i,"add",(function(){return we})),n.d(i,"subtract",(function(){return Se})),n.d(i,"multiplyScalar",(function(){return Pe})),n.d(i,"multiplyScalarAndAdd",(function(){return Ee})),n.d(i,"exactEquals",(function(){return Te})),n.d(i,"equals",(function(){return Oe})),n.d(i,"mul",(function(){return Ce})),n.d(i,"sub",(function(){return De}));var a={};n.r(a),n.d(a,"create",(function(){return Ae})),n.d(a,"clone",(function(){return je})),n.d(a,"fromValues",(function(){return $e})),n.d(a,"copy",(function(){return Me})),n.d(a,"set",(function(){return Ie})),n.d(a,"add",(function(){return Fe})),n.d(a,"subtract",(function(){return Le})),n.d(a,"multiply",(function(){return _e})),n.d(a,"divide",(function(){return Be})),n.d(a,"ceil",(function(){return Re})),n.d(a,"floor",(function(){return Ne})),n.d(a,"min",(function(){return Ve})),n.d(a,"max",(function(){return ze})),n.d(a,"round",(function(){return Ge})),n.d(a,"scale",(function(){return He})),n.d(a,"scaleAndAdd",(function(){return Ue})),n.d(a,"distance",(function(){return Ye})),n.d(a,"squaredDistance",(function(){return We})),n.d(a,"length",(function(){return Ke})),n.d(a,"squaredLength",(function(){return Xe})),n.d(a,"negate",(function(){return qe})),n.d(a,"inverse",(function(){return Je})),n.d(a,"normalize",(function(){return Ze})),n.d(a,"dot",(function(){return Qe})),n.d(a,"cross",(function(){return et})),n.d(a,"lerp",(function(){return tt})),n.d(a,"random",(function(){return nt})),n.d(a,"transformMat2",(function(){return rt})),n.d(a,"transformMat2d",(function(){return it})),n.d(a,"transformMat3",(function(){return at})),n.d(a,"transformMat4",(function(){return ot})),n.d(a,"rotate",(function(){return st})),n.d(a,"angle",(function(){return ut})),n.d(a,"zero",(function(){return ct})),n.d(a,"str",(function(){return lt})),n.d(a,"exactEquals",(function(){return pt})),n.d(a,"equals",(function(){return ht})),n.d(a,"len",(function(){return dt})),n.d(a,"sub",(function(){return yt})),n.d(a,"mul",(function(){return vt})),n.d(a,"div",(function(){return mt})),n.d(a,"dist",(function(){return gt})),n.d(a,"sqrDist",(function(){return bt})),n.d(a,"sqrLen",(function(){return xt})),n.d(a,"forEach",(function(){return kt}));var o={};n.r(o),n.d(o,"create",(function(){return wt})),n.d(o,"clone",(function(){return St})),n.d(o,"length",(function(){return Pt})),n.d(o,"fromValues",(function(){return Et})),n.d(o,"copy",(function(){return Tt})),n.d(o,"set",(function(){return Ot})),n.d(o,"add",(function(){return Ct})),n.d(o,"subtract",(function(){return Dt})),n.d(o,"multiply",(function(){return At})),n.d(o,"divide",(function(){return jt})),n.d(o,"ceil",(function(){return $t})),n.d(o,"floor",(function(){return Mt})),n.d(o,"min",(function(){return It})),n.d(o,"max",(function(){return Ft})),n.d(o,"round",(function(){return Lt})),n.d(o,"scale",(function(){return _t})),n.d(o,"scaleAndAdd",(function(){return Bt})),n.d(o,"distance",(function(){return Rt})),n.d(o,"squaredDistance",(function(){return Nt})),n.d(o,"squaredLength",(function(){return Vt})),n.d(o,"negate",(function(){return zt})),n.d(o,"inverse",(function(){return Gt})),n.d(o,"normalize",(function(){return Ht})),n.d(o,"dot",(function(){return Ut})),n.d(o,"cross",(function(){return Yt})),n.d(o,"lerp",(function(){return Wt})),n.d(o,"hermite",(function(){return Kt})),n.d(o,"bezier",(function(){return Xt})),n.d(o,"random",(function(){return qt})),n.d(o,"transformMat4",(function(){return Jt})),n.d(o,"transformMat3",(function(){return Zt})),n.d(o,"transformQuat",(function(){return Qt})),n.d(o,"rotateX",(function(){return en})),n.d(o,"rotateY",(function(){return tn})),n.d(o,"rotateZ",(function(){return nn})),n.d(o,"angle",(function(){return rn})),n.d(o,"zero",(function(){return an})),n.d(o,"str",(function(){return on})),n.d(o,"exactEquals",(function(){return sn})),n.d(o,"equals",(function(){return un})),n.d(o,"sub",(function(){return cn})),n.d(o,"mul",(function(){return ln})),n.d(o,"div",(function(){return pn})),n.d(o,"dist",(function(){return hn})),n.d(o,"sqrDist",(function(){return fn})),n.d(o,"len",(function(){return dn})),n.d(o,"sqrLen",(function(){return yn})),n.d(o,"forEach",(function(){return vn}));var s={};n.r(s),n.d(s,"round",(function(){return gn})),n.d(s,"degreeToRadian",(function(){return bn})),n.d(s,"div",(function(){return xn})),n.d(s,"radianToDegree",(function(){return kn})),n.d(s,"getXInCircle",(function(){return wn})),n.d(s,"getYInCircle",(function(){return Sn})),n.d(s,"getXYInCircle",(function(){return Pn})),n.d(s,"getDist",(function(){return En})),n.d(s,"vertiesMap",(function(){return Tn})),n.d(s,"getVertiesMaxX",(function(){return On})),n.d(s,"getVertiesMaxY",(function(){return Cn})),n.d(s,"getVertiesMinX",(function(){return Dn})),n.d(s,"getVertiesCenterX",(function(){return An})),n.d(s,"getVertiesMinY",(function(){return jn})),n.d(s,"getVertiesCenterY",(function(){return $n})),n.d(s,"calculateAngle",(function(){return Mn})),n.d(s,"calculateAngleForVec3",(function(){return In})),n.d(s,"calculateRotationOriginMat4",(function(){return Fn})),n.d(s,"calculateMatrix",(function(){return Ln})),n.d(s,"calculateMatrixInverse",(function(){return _n})),n.d(s,"calculateAnglePointDistance",(function(){return Bn})),n.d(s,"calculateAngle360",(function(){return Rn})),n.d(s,"uuid",(function(){return Vn})),n.d(s,"uuidShort",(function(){return zn})),n.d(s,"cubicBezier",(function(){return Yn})),n.d(s,"getGradientLine",(function(){return Wn})),n.d(s,"CCW",(function(){return Kn})),n.d(s,"incircle",(function(){return Xn})),n.d(s,"initPolygon",(function(){return qn})),n.d(s,"Deluanay",(function(){return Zn})),n.d(s,"generate_sample_points",(function(){return Qn})),n.d(s,"getCenterInTriangle",(function(){return er})),n.d(s,"normalize",(function(){return nr}));var u={};n.r(u),n.d(u,"collectProps",(function(){return Dr})),n.d(u,"debounce",(function(){return Ar})),n.d(u,"throttle",(function(){return jr})),n.d(u,"keyEach",(function(){return $r})),n.d(u,"keyMap",(function(){return Mr})),n.d(u,"keyMapJoin",(function(){return Ir})),n.d(u,"get",(function(){return Fr})),n.d(u,"defaultValue",(function(){return Lr})),n.d(u,"isUndefined",(function(){return _r})),n.d(u,"isNotUndefined",(function(){return Br})),n.d(u,"isArray",(function(){return Rr})),n.d(u,"isBoolean",(function(){return Nr})),n.d(u,"isString",(function(){return Vr})),n.d(u,"isNotString",(function(){return zr})),n.d(u,"isObject",(function(){return Gr})),n.d(u,"isFunction",(function(){return Hr})),n.d(u,"isNumber",(function(){return Ur})),n.d(u,"isZero",(function(){return Yr})),n.d(u,"isNotZero",(function(){return Wr})),n.d(u,"clone",(function(){return Kr})),n.d(u,"cleanObject",(function(){return Xr})),n.d(u,"combineKeyArray",(function(){return qr})),n.d(u,"repeat",(function(){return Jr})),n.d(u,"randomItem",(function(){return Zr})),n.d(u,"html",(function(){return ei})),n.d(u,"CSS_TO_STRING",(function(){return ti})),n.d(u,"STRING_TO_CSS",(function(){return ni})),n.d(u,"OBJECT_TO_PROPERTY",(function(){return ri})),n.d(u,"OBJECT_TO_CLASS",(function(){return ii})),n.d(u,"TAG_TO_STRING",(function(){return ai})),n.d(u,"mapjoin",(function(){return oi})),n.d(u,"isArrayEquals",(function(){return si})),n.d(u,"splitMethodByKeyword",(function(){return ui})),n.d(u,"curveToPath",(function(){return ci})),n.d(u,"curveToPointLine",(function(){return li}));var c={};n.r(c),n.d(c,"format",(function(){return pi})),n.d(c,"hex",(function(){return hi})),n.d(c,"rgb",(function(){return fi})),n.d(c,"hsl",(function(){return di}));var l={};n.r(l),n.d(l,"ReverseXyz",(function(){return yi})),n.d(l,"ReverseRGB",(function(){return vi})),n.d(l,"XYZtoRGB",(function(){return mi})),n.d(l,"LABtoXYZ",(function(){return gi})),n.d(l,"PivotXyz",(function(){return bi})),n.d(l,"XYZtoLAB",(function(){return xi})),n.d(l,"LABtoRGB",(function(){return ki}));var p={};n.r(p),n.d(p,"RGBtoHSV",(function(){return wi})),n.d(p,"RGBtoCMYK",(function(){return Si})),n.d(p,"RGBtoHSL",(function(){return Pi})),n.d(p,"c",(function(){return Ei})),n.d(p,"gray",(function(){return Ti})),n.d(p,"RGBtoSimpleGray",(function(){return Oi})),n.d(p,"RGBtoGray",(function(){return Ci})),n.d(p,"brightness",(function(){return Di})),n.d(p,"RGBtoYCrCb",(function(){return Ai})),n.d(p,"PivotRGB",(function(){return ji})),n.d(p,"RGBtoXYZ",(function(){return $i})),n.d(p,"RGBtoLAB",(function(){return Mi}));var h={};n.r(h),n.d(h,"CMYKtoRGB",(function(){return Ii}));var f={};n.r(f),n.d(f,"HSVtoRGB",(function(){return Fi})),n.d(f,"HSVtoHSL",(function(){return Li}));var d={};n.r(d),n.d(d,"HUEtoRGB",(function(){return _i})),n.d(d,"HSLtoHSV",(function(){return Bi})),n.d(d,"HSLtoRGB",(function(){return Ri}));var v={};n.r(v),n.d(v,"YCrCbtoRGB",(function(){return Ni}));var m={};n.r(m),n.d(m,"getColorIndexString",(function(){return Yi})),n.d(m,"isColor",(function(){return Wi})),n.d(m,"matches",(function(){return Ki})),n.d(m,"convertMatches",(function(){return Xi})),n.d(m,"convertMatchesArray",(function(){return qi})),n.d(m,"reverseMatches",(function(){return Ji})),n.d(m,"trim",(function(){return Qi})),n.d(m,"parse",(function(){return ea})),n.d(m,"parseGradient",(function(){return ta}));var g={};n.r(g),n.d(g,"interpolateRGB",(function(){return na})),n.d(g,"interpolateRGBObject",(function(){return ra})),n.d(g,"scale",(function(){return ia})),n.d(g,"blend",(function(){return aa})),n.d(g,"mix",(function(){return oa})),n.d(g,"contrast",(function(){return sa})),n.d(g,"contrastColor",(function(){return ua})),n.d(g,"gradient",(function(){return ca})),n.d(g,"scaleHSV",(function(){return la})),n.d(g,"scaleH",(function(){return pa})),n.d(g,"scaleS",(function(){return ha})),n.d(g,"scaleV",(function(){return fa}));var b={};n.r(b),n.d(b,"start",(function(){return pg}));var k=n(5),w=n.n(k),S=(n(177),n(7)),P=n.n(S),E=n(12),T=n.n(E),O=n(90),C=n.n(O),D=n(8),A=n.n(D);function j(e,t){return Math.floor(Math.random()*(t-e+1))+e}function $(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=[],n=0;n0?(n[0]=2*(s*o+l*r+u*a-c*i)/p,n[1]=2*(u*o+l*i+c*r-s*a)/p,n[2]=2*(c*o+l*a+s*i-u*r)/p):(n[0]=2*(s*o+l*r+u*a-c*i),n[1]=2*(u*o+l*i+c*r-s*a),n[2]=2*(c*o+l*a+s*i-u*r)),oe(e,t,n),e}function ue(e,t){return e[0]=t[12],e[1]=t[13],e[2]=t[14],e}function ce(e,t){var n=t[0],r=t[1],i=t[2],a=t[4],o=t[5],s=t[6],u=t[8],c=t[9],l=t[10];return e[0]=Math.hypot(n,r,i),e[1]=Math.hypot(a,o,s),e[2]=Math.hypot(u,c,l),e}function le(e,t){var n=new F(3);ce(n,t);var r=1/n[0],i=1/n[1],a=1/n[2],o=t[0]*r,s=t[1]*i,u=t[2]*a,c=t[4]*r,l=t[5]*i,p=t[6]*a,h=t[8]*r,f=t[9]*i,d=t[10]*a,y=o+l+d,v=0;return y>0?(v=2*Math.sqrt(y+1),e[3]=.25*v,e[0]=(p-f)/v,e[1]=(h-u)/v,e[2]=(s-c)/v):o>l&&o>d?(v=2*Math.sqrt(1+o-l-d),e[3]=(p-f)/v,e[0]=.25*v,e[1]=(s+c)/v,e[2]=(h+u)/v):l>d?(v=2*Math.sqrt(1+l-o-d),e[3]=(h-u)/v,e[0]=(s+c)/v,e[1]=.25*v,e[2]=(p+f)/v):(v=2*Math.sqrt(1+d-o-l),e[3]=(s-c)/v,e[0]=(h+u)/v,e[1]=(p+f)/v,e[2]=.25*v),e}function pe(e,t,n,r){var i=t[0],a=t[1],o=t[2],s=t[3],u=i+i,c=a+a,l=o+o,p=i*u,h=i*c,f=i*l,d=a*c,y=a*l,v=o*l,m=s*u,g=s*c,b=s*l,x=r[0],k=r[1],w=r[2];return e[0]=(1-(d+v))*x,e[1]=(h+b)*x,e[2]=(f-g)*x,e[3]=0,e[4]=(h-b)*k,e[5]=(1-(p+v))*k,e[6]=(y+m)*k,e[7]=0,e[8]=(f+g)*w,e[9]=(y-m)*w,e[10]=(1-(p+d))*w,e[11]=0,e[12]=n[0],e[13]=n[1],e[14]=n[2],e[15]=1,e}function he(e,t,n,r,i){var a=t[0],o=t[1],s=t[2],u=t[3],c=a+a,l=o+o,p=s+s,h=a*c,f=a*l,d=a*p,y=o*l,v=o*p,m=s*p,g=u*c,b=u*l,x=u*p,k=r[0],w=r[1],S=r[2],P=i[0],E=i[1],T=i[2],O=(1-(y+m))*k,C=(f+x)*k,D=(d-b)*k,A=(f-x)*w,j=(1-(h+m))*w,$=(v+g)*w,M=(d+b)*S,I=(v-g)*S,F=(1-(h+y))*S;return e[0]=O,e[1]=C,e[2]=D,e[3]=0,e[4]=A,e[5]=j,e[6]=$,e[7]=0,e[8]=M,e[9]=I,e[10]=F,e[11]=0,e[12]=n[0]+P-(O*P+A*E+M*T),e[13]=n[1]+E-(C*P+j*E+I*T),e[14]=n[2]+T-(D*P+$*E+F*T),e[15]=1,e}function fe(e,t){var n=t[0],r=t[1],i=t[2],a=t[3],o=n+n,s=r+r,u=i+i,c=n*o,l=r*o,p=r*s,h=i*o,f=i*s,d=i*u,y=a*o,v=a*s,m=a*u;return e[0]=1-p-d,e[1]=l+m,e[2]=h-v,e[3]=0,e[4]=l-m,e[5]=1-c-d,e[6]=f+y,e[7]=0,e[8]=h+v,e[9]=f-y,e[10]=1-c-p,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}function de(e,t,n,r,i,a,o){var s=1/(n-t),u=1/(i-r),c=1/(a-o);return e[0]=2*a*s,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=2*a*u,e[6]=0,e[7]=0,e[8]=(n+t)*s,e[9]=(i+r)*u,e[10]=(o+a)*c,e[11]=-1,e[12]=0,e[13]=0,e[14]=o*a*2*c,e[15]=0,e}function ye(e,t,n,r,i){var a,o=1/Math.tan(t/2);return e[0]=o/n,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=o,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[11]=-1,e[12]=0,e[13]=0,e[15]=0,null!=i&&i!==1/0?(a=1/(r-i),e[10]=(i+r)*a,e[14]=2*i*r*a):(e[10]=-1,e[14]=-2*r),e}function ve(e,t,n,r){var i=Math.tan(t.upDegrees*Math.PI/180),a=Math.tan(t.downDegrees*Math.PI/180),o=Math.tan(t.leftDegrees*Math.PI/180),s=Math.tan(t.rightDegrees*Math.PI/180),u=2/(o+s),c=2/(i+a);return e[0]=u,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=c,e[6]=0,e[7]=0,e[8]=-(o-s)*u*.5,e[9]=(i-a)*c*.5,e[10]=r/(n-r),e[11]=-1,e[12]=0,e[13]=0,e[14]=r*n/(n-r),e[15]=0,e}function me(e,t,n,r,i,a,o){var s=1/(t-n),u=1/(r-i),c=1/(a-o);return e[0]=-2*s,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=-2*u,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=2*c,e[11]=0,e[12]=(t+n)*s,e[13]=(i+r)*u,e[14]=(o+a)*c,e[15]=1,e}function ge(e,t,n,r){var i,a,o,s,u,c,l,p,h,f,d=t[0],y=t[1],v=t[2],m=r[0],g=r[1],b=r[2],x=n[0],k=n[1],w=n[2];return Math.abs(d-x)<1e-6&&Math.abs(y-k)<1e-6&&Math.abs(v-w)<1e-6?z(e):(l=d-x,p=y-k,h=v-w,i=g*(h*=f=1/Math.hypot(l,p,h))-b*(p*=f),a=b*(l*=f)-m*h,o=m*p-g*l,(f=Math.hypot(i,a,o))?(i*=f=1/f,a*=f,o*=f):(i=0,a=0,o=0),s=p*o-h*a,u=h*i-l*o,c=l*a-p*i,(f=Math.hypot(s,u,c))?(s*=f=1/f,u*=f,c*=f):(s=0,u=0,c=0),e[0]=i,e[1]=s,e[2]=l,e[3]=0,e[4]=a,e[5]=u,e[6]=p,e[7]=0,e[8]=o,e[9]=c,e[10]=h,e[11]=0,e[12]=-(i*d+a*y+o*v),e[13]=-(s*d+u*y+c*v),e[14]=-(l*d+p*y+h*v),e[15]=1,e)}function be(e,t,n,r){var i=t[0],a=t[1],o=t[2],s=r[0],u=r[1],c=r[2],l=i-n[0],p=a-n[1],h=o-n[2],f=l*l+p*p+h*h;f>0&&(l*=f=1/Math.sqrt(f),p*=f,h*=f);var d=u*h-c*p,y=c*l-s*h,v=s*p-u*l;return(f=d*d+y*y+v*v)>0&&(d*=f=1/Math.sqrt(f),y*=f,v*=f),e[0]=d,e[1]=y,e[2]=v,e[3]=0,e[4]=p*v-h*y,e[5]=h*d-l*v,e[6]=l*y-p*d,e[7]=0,e[8]=l,e[9]=p,e[10]=h,e[11]=0,e[12]=i,e[13]=a,e[14]=o,e[15]=1,e}function xe(e){return"mat4("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+", "+e[4]+", "+e[5]+", "+e[6]+", "+e[7]+", "+e[8]+", "+e[9]+", "+e[10]+", "+e[11]+", "+e[12]+", "+e[13]+", "+e[14]+", "+e[15]+")"}function ke(e){return Math.hypot(e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7],e[8],e[9],e[10],e[11],e[12],e[13],e[14],e[15])}function we(e,t,n){return e[0]=t[0]+n[0],e[1]=t[1]+n[1],e[2]=t[2]+n[2],e[3]=t[3]+n[3],e[4]=t[4]+n[4],e[5]=t[5]+n[5],e[6]=t[6]+n[6],e[7]=t[7]+n[7],e[8]=t[8]+n[8],e[9]=t[9]+n[9],e[10]=t[10]+n[10],e[11]=t[11]+n[11],e[12]=t[12]+n[12],e[13]=t[13]+n[13],e[14]=t[14]+n[14],e[15]=t[15]+n[15],e}function Se(e,t,n){return e[0]=t[0]-n[0],e[1]=t[1]-n[1],e[2]=t[2]-n[2],e[3]=t[3]-n[3],e[4]=t[4]-n[4],e[5]=t[5]-n[5],e[6]=t[6]-n[6],e[7]=t[7]-n[7],e[8]=t[8]-n[8],e[9]=t[9]-n[9],e[10]=t[10]-n[10],e[11]=t[11]-n[11],e[12]=t[12]-n[12],e[13]=t[13]-n[13],e[14]=t[14]-n[14],e[15]=t[15]-n[15],e}function Pe(e,t,n){return e[0]=t[0]*n,e[1]=t[1]*n,e[2]=t[2]*n,e[3]=t[3]*n,e[4]=t[4]*n,e[5]=t[5]*n,e[6]=t[6]*n,e[7]=t[7]*n,e[8]=t[8]*n,e[9]=t[9]*n,e[10]=t[10]*n,e[11]=t[11]*n,e[12]=t[12]*n,e[13]=t[13]*n,e[14]=t[14]*n,e[15]=t[15]*n,e}function Ee(e,t,n,r){return e[0]=t[0]+n[0]*r,e[1]=t[1]+n[1]*r,e[2]=t[2]+n[2]*r,e[3]=t[3]+n[3]*r,e[4]=t[4]+n[4]*r,e[5]=t[5]+n[5]*r,e[6]=t[6]+n[6]*r,e[7]=t[7]+n[7]*r,e[8]=t[8]+n[8]*r,e[9]=t[9]+n[9]*r,e[10]=t[10]+n[10]*r,e[11]=t[11]+n[11]*r,e[12]=t[12]+n[12]*r,e[13]=t[13]+n[13]*r,e[14]=t[14]+n[14]*r,e[15]=t[15]+n[15]*r,e}function Te(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]&&e[3]===t[3]&&e[4]===t[4]&&e[5]===t[5]&&e[6]===t[6]&&e[7]===t[7]&&e[8]===t[8]&&e[9]===t[9]&&e[10]===t[10]&&e[11]===t[11]&&e[12]===t[12]&&e[13]===t[13]&&e[14]===t[14]&&e[15]===t[15]}function Oe(e,t){var n=e[0],r=e[1],i=e[2],a=e[3],o=e[4],s=e[5],u=e[6],c=e[7],l=e[8],p=e[9],h=e[10],f=e[11],d=e[12],y=e[13],v=e[14],m=e[15],g=t[0],b=t[1],x=t[2],k=t[3],w=t[4],S=t[5],P=t[6],E=t[7],T=t[8],O=t[9],C=t[10],D=t[11],A=t[12],j=t[13],$=t[14],M=t[15];return Math.abs(n-g)<=1e-6*Math.max(1,Math.abs(n),Math.abs(g))&&Math.abs(r-b)<=1e-6*Math.max(1,Math.abs(r),Math.abs(b))&&Math.abs(i-x)<=1e-6*Math.max(1,Math.abs(i),Math.abs(x))&&Math.abs(a-k)<=1e-6*Math.max(1,Math.abs(a),Math.abs(k))&&Math.abs(o-w)<=1e-6*Math.max(1,Math.abs(o),Math.abs(w))&&Math.abs(s-S)<=1e-6*Math.max(1,Math.abs(s),Math.abs(S))&&Math.abs(u-P)<=1e-6*Math.max(1,Math.abs(u),Math.abs(P))&&Math.abs(c-E)<=1e-6*Math.max(1,Math.abs(c),Math.abs(E))&&Math.abs(l-T)<=1e-6*Math.max(1,Math.abs(l),Math.abs(T))&&Math.abs(p-O)<=1e-6*Math.max(1,Math.abs(p),Math.abs(O))&&Math.abs(h-C)<=1e-6*Math.max(1,Math.abs(h),Math.abs(C))&&Math.abs(f-D)<=1e-6*Math.max(1,Math.abs(f),Math.abs(D))&&Math.abs(d-A)<=1e-6*Math.max(1,Math.abs(d),Math.abs(A))&&Math.abs(y-j)<=1e-6*Math.max(1,Math.abs(y),Math.abs(j))&&Math.abs(v-$)<=1e-6*Math.max(1,Math.abs(v),Math.abs($))&&Math.abs(m-M)<=1e-6*Math.max(1,Math.abs(m),Math.abs(M))}Math.hypot||(Math.hypot=function(){for(var e=0,t=arguments.length;t--;)e+=arguments[t]*arguments[t];return Math.sqrt(e)});var Ce=W,De=Se;function Ae(){var e=new F(2);return F!=Float32Array&&(e[0]=0,e[1]=0),e}function je(e){var t=new F(2);return t[0]=e[0],t[1]=e[1],t}function $e(e,t){var n=new F(2);return n[0]=e,n[1]=t,n}function Me(e,t){return e[0]=t[0],e[1]=t[1],e}function Ie(e,t,n){return e[0]=t,e[1]=n,e}function Fe(e,t,n){return e[0]=t[0]+n[0],e[1]=t[1]+n[1],e}function Le(e,t,n){return e[0]=t[0]-n[0],e[1]=t[1]-n[1],e}function _e(e,t,n){return e[0]=t[0]*n[0],e[1]=t[1]*n[1],e}function Be(e,t,n){return e[0]=t[0]/n[0],e[1]=t[1]/n[1],e}function Re(e,t){return e[0]=Math.ceil(t[0]),e[1]=Math.ceil(t[1]),e}function Ne(e,t){return e[0]=Math.floor(t[0]),e[1]=Math.floor(t[1]),e}function Ve(e,t,n){return e[0]=Math.min(t[0],n[0]),e[1]=Math.min(t[1],n[1]),e}function ze(e,t,n){return e[0]=Math.max(t[0],n[0]),e[1]=Math.max(t[1],n[1]),e}function Ge(e,t){return e[0]=Math.round(t[0]),e[1]=Math.round(t[1]),e}function He(e,t,n){return e[0]=t[0]*n,e[1]=t[1]*n,e}function Ue(e,t,n,r){return e[0]=t[0]+n[0]*r,e[1]=t[1]+n[1]*r,e}function Ye(e,t){var n=t[0]-e[0],r=t[1]-e[1];return Math.hypot(n,r)}function We(e,t){var n=t[0]-e[0],r=t[1]-e[1];return n*n+r*r}function Ke(e){var t=e[0],n=e[1];return Math.hypot(t,n)}function Xe(e){var t=e[0],n=e[1];return t*t+n*n}function qe(e,t){return e[0]=-t[0],e[1]=-t[1],e}function Je(e,t){return e[0]=1/t[0],e[1]=1/t[1],e}function Ze(e,t){var n=t[0],r=t[1],i=n*n+r*r;return i>0&&(i=1/Math.sqrt(i)),e[0]=t[0]*i,e[1]=t[1]*i,e}function Qe(e,t){return e[0]*t[0]+e[1]*t[1]}function et(e,t,n){var r=t[0]*n[1]-t[1]*n[0];return e[0]=e[1]=0,e[2]=r,e}function tt(e,t,n,r){var i=t[0],a=t[1];return e[0]=i+r*(n[0]-i),e[1]=a+r*(n[1]-a),e}function nt(e,t){t=t||1;var n=2*L()*Math.PI;return e[0]=Math.cos(n)*t,e[1]=Math.sin(n)*t,e}function rt(e,t,n){var r=t[0],i=t[1];return e[0]=n[0]*r+n[2]*i,e[1]=n[1]*r+n[3]*i,e}function it(e,t,n){var r=t[0],i=t[1];return e[0]=n[0]*r+n[2]*i+n[4],e[1]=n[1]*r+n[3]*i+n[5],e}function at(e,t,n){var r=t[0],i=t[1];return e[0]=n[0]*r+n[3]*i+n[6],e[1]=n[1]*r+n[4]*i+n[7],e}function ot(e,t,n){var r=t[0],i=t[1];return e[0]=n[0]*r+n[4]*i+n[12],e[1]=n[1]*r+n[5]*i+n[13],e}function st(e,t,n,r){var i=t[0]-n[0],a=t[1]-n[1],o=Math.sin(r),s=Math.cos(r);return e[0]=i*s-a*o+n[0],e[1]=i*o+a*s+n[1],e}function ut(e,t){var n=e[0],r=e[1],i=t[0],a=t[1],o=Math.sqrt(n*n+r*r)*Math.sqrt(i*i+a*a),s=o&&(n*i+r*a)/o;return Math.acos(Math.min(Math.max(s,-1),1))}function ct(e){return e[0]=0,e[1]=0,e}function lt(e){return"vec2("+e[0]+", "+e[1]+")"}function pt(e,t){return e[0]===t[0]&&e[1]===t[1]}function ht(e,t){var n=e[0],r=e[1],i=t[0],a=t[1];return Math.abs(n-i)<=1e-6*Math.max(1,Math.abs(n),Math.abs(i))&&Math.abs(r-a)<=1e-6*Math.max(1,Math.abs(r),Math.abs(a))}var ft,dt=Ke,yt=Le,vt=_e,mt=Be,gt=Ye,bt=We,xt=Xe,kt=(ft=Ae(),function(e,t,n,r,i,a){var o,s;for(t||(t=2),n||(n=0),s=r?Math.min(r*t+n,e.length):e.length,o=n;o0&&(a=1/Math.sqrt(a)),e[0]=t[0]*a,e[1]=t[1]*a,e[2]=t[2]*a,e}function Ut(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]}function Yt(e,t,n){var r=t[0],i=t[1],a=t[2],o=n[0],s=n[1],u=n[2];return e[0]=i*u-a*s,e[1]=a*o-r*u,e[2]=r*s-i*o,e}function Wt(e,t,n,r){var i=t[0],a=t[1],o=t[2];return e[0]=i+r*(n[0]-i),e[1]=a+r*(n[1]-a),e[2]=o+r*(n[2]-o),e}function Kt(e,t,n,r,i,a){var o=a*a,s=o*(2*a-3)+1,u=o*(a-2)+a,c=o*(a-1),l=o*(3-2*a);return e[0]=t[0]*s+n[0]*u+r[0]*c+i[0]*l,e[1]=t[1]*s+n[1]*u+r[1]*c+i[1]*l,e[2]=t[2]*s+n[2]*u+r[2]*c+i[2]*l,e}function Xt(e,t,n,r,i,a){var o=1-a,s=o*o,u=a*a,c=s*o,l=3*a*s,p=3*u*o,h=u*a;return e[0]=t[0]*c+n[0]*l+r[0]*p+i[0]*h,e[1]=t[1]*c+n[1]*l+r[1]*p+i[1]*h,e[2]=t[2]*c+n[2]*l+r[2]*p+i[2]*h,e}function qt(e,t){t=t||1;var n=2*L()*Math.PI,r=2*L()-1,i=Math.sqrt(1-r*r)*t;return e[0]=Math.cos(n)*i,e[1]=Math.sin(n)*i,e[2]=r*t,e}function Jt(e,t,n){var r=t[0],i=t[1],a=t[2],o=n[3]*r+n[7]*i+n[11]*a+n[15];return o=o||1,e[0]=(n[0]*r+n[4]*i+n[8]*a+n[12])/o,e[1]=(n[1]*r+n[5]*i+n[9]*a+n[13])/o,e[2]=(n[2]*r+n[6]*i+n[10]*a+n[14])/o,e}function Zt(e,t,n){var r=t[0],i=t[1],a=t[2];return e[0]=r*n[0]+i*n[3]+a*n[6],e[1]=r*n[1]+i*n[4]+a*n[7],e[2]=r*n[2]+i*n[5]+a*n[8],e}function Qt(e,t,n){var r=n[0],i=n[1],a=n[2],o=n[3],s=t[0],u=t[1],c=t[2],l=i*c-a*u,p=a*s-r*c,h=r*u-i*s,f=i*h-a*p,d=a*l-r*h,y=r*p-i*l,v=2*o;return l*=v,p*=v,h*=v,f*=2,d*=2,y*=2,e[0]=s+l+f,e[1]=u+p+d,e[2]=c+h+y,e}function en(e,t,n,r){var i=[],a=[];return i[0]=t[0]-n[0],i[1]=t[1]-n[1],i[2]=t[2]-n[2],a[0]=i[0],a[1]=i[1]*Math.cos(r)-i[2]*Math.sin(r),a[2]=i[1]*Math.sin(r)+i[2]*Math.cos(r),e[0]=a[0]+n[0],e[1]=a[1]+n[1],e[2]=a[2]+n[2],e}function tn(e,t,n,r){var i=[],a=[];return i[0]=t[0]-n[0],i[1]=t[1]-n[1],i[2]=t[2]-n[2],a[0]=i[2]*Math.sin(r)+i[0]*Math.cos(r),a[1]=i[1],a[2]=i[2]*Math.cos(r)-i[0]*Math.sin(r),e[0]=a[0]+n[0],e[1]=a[1]+n[1],e[2]=a[2]+n[2],e}function nn(e,t,n,r){var i=[],a=[];return i[0]=t[0]-n[0],i[1]=t[1]-n[1],i[2]=t[2]-n[2],a[0]=i[0]*Math.cos(r)-i[1]*Math.sin(r),a[1]=i[0]*Math.sin(r)+i[1]*Math.cos(r),a[2]=i[2],e[0]=a[0]+n[0],e[1]=a[1]+n[1],e[2]=a[2]+n[2],e}function rn(e,t){var n=e[0],r=e[1],i=e[2],a=t[0],o=t[1],s=t[2],u=Math.sqrt(n*n+r*r+i*i)*Math.sqrt(a*a+o*o+s*s),c=u&&Ut(e,t)/u;return Math.acos(Math.min(Math.max(c,-1),1))}function an(e){return e[0]=0,e[1]=0,e[2]=0,e}function on(e){return"vec3("+e[0]+", "+e[1]+", "+e[2]+")"}function sn(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]}function un(e,t){var n=e[0],r=e[1],i=e[2],a=t[0],o=t[1],s=t[2];return Math.abs(n-a)<=1e-6*Math.max(1,Math.abs(n),Math.abs(a))&&Math.abs(r-o)<=1e-6*Math.max(1,Math.abs(r),Math.abs(o))&&Math.abs(i-s)<=1e-6*Math.max(1,Math.abs(i),Math.abs(s))}var cn=Dt,ln=At,pn=jt,hn=Rt,fn=Nt,dn=Pt,yn=Vt,vn=function(){var e=wt();return function(t,n,r,i,a,o){var s,u;for(n||(n=3),r||(r=0),u=i?Math.min(i*n+r,t.length):t.length,s=r;s1&&void 0!==arguments[1]?arguments[1]:1;return 0===e?0:e/t}function kn(e){var t=e*(180/Math.PI);return t<0&&(t=360+t),t}function wn(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return n+t*Math.cos(bn(e))}function Sn(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return n+t*Math.sin(bn(e))}function Pn(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;return{x:wn(e,t,n),y:Sn(e,t,r)}}function En(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;return a.distance([e,t],[n,r])}function Tn(e,t){return e.map((function(e){return o.transformMat4([],e,t)}))}function On(e){var t=Number.MIN_SAFE_INTEGER;return e.forEach((function(e){t=Math.max(e[0],t)})),t}function Cn(e){var t=Number.MIN_SAFE_INTEGER;return e.forEach((function(e){t=Math.max(e[1],t)})),t}function Dn(e){var t=Number.MAX_SAFE_INTEGER;return e.forEach((function(e){t=Math.min(e[0],t)})),t}function An(e){var t=Number.MAX_SAFE_INTEGER,n=Number.MIN_SAFE_INTEGER;return e.forEach((function(e){t=Math.min(e[0],t),n=Math.max(e[0],n)})),Math.round((t+n)/2)}function jn(e){var t=Number.MAX_SAFE_INTEGER;return e.forEach((function(e){t=Math.min(e[1],t)})),t}function $n(e){var t=Number.MAX_SAFE_INTEGER,n=Number.MIN_SAFE_INTEGER;return e.forEach((function(e){t=Math.min(e[1],t),n=Math.max(e[1],n)})),Math.round((t+n)/2)}function Mn(e,t){return kn(Math.atan2(t,e))}function In(e,t,n){return Bn({x:e[0],y:e[1]},{x:t[0],y:t[1]},{dx:n[0],dy:n[1]})}function Fn(e,t){var n=i.create();return i.translate(n,n,t),i.rotateZ(n,n,bn(e)),i.translate(n,n,o.negate([],t)),n}function Ln(){for(var e=i.create(),t=arguments.length,n=new Array(t),r=0;r0?p>=0:p<=0}function qn(e,t,n){for(var r=mn.create(Math.min(t,n),Math.max(t,n)),i=-1,a=0,o=e.length;a-1?e.splice(i,1):e.push(r)}function Jn(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function Zn(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=e.length;e[t]=mn.create(-2e9,-2e9),e[t+1]=mn.create(2e9,-2e9),e[t+2]=mn.create(0,2e9);for(var n=[mn.create(t,t+1,t+2)],r=0;r=t||p.y>=t||p.z>=t)&&(Jn(n,r,n.length-1),n.pop(),r--)}return n.map((function(t){return{a:e[t.x],b:e[t.y],c:e[t.z]}}))}function Qn(e,t){for(var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:50,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:50,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:100,a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:1,o=arguments.length>6&&void 0!==arguments[6]?arguments[6]:function(){return Math.random()},s=[],u=-n,c=e+n,l=-r,p=t+r,h=u;h8&&void 0!==arguments[8]?arguments[8]:1e3,c=lr({x:e,y:t},{x:n,y:r},{x:i,y:a},{x:o,y:s}),l=0,p=c(0),h=0;h<=u;h++){var f=h/u,d=c(f);l+=En(p.x,p.y,d.x,d.y),p=d}return l},yr=function(e,t,n,r,i,a){for(var o=arguments.length>6&&void 0!==arguments[6]?arguments[6]:1e3,s=pr({x:e,y:t},{x:n,y:r},{x:i,y:a}),u=0,c=s(0),l=0;l<=o;l++){var p=l/o,h=s(p);u+=En(c.x,c.y,h.x,h.y),c=h}return u},vr=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:100,n={minDist:1/0,minT:0};return function(r,i){for(var a=0;a<=t;a++)fr(n,e,a/t,r,i);var o=1/(2*t),s=n.minT;for(a=0;a4&&void 0!==arguments[4]?arguments[4]:100;return vr(lr(e,t,n,r),i)},gr=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:100;return vr(pr(e,t,n),r)},br=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:100;return vr(hr(e,t),n)},xr=function(e){if("linear"===e)return hr(n={x:0,y:0},r={x:1,y:1});var t=cr(e),n={x:0,y:0},r={x:t[0],y:t[1]},i={x:t[2],y:t[3]};return lr(n,r,i,{x:1,y:1})},kr=function(e,t,n){return{x:e.x+(t.x-e.x)*n,y:e.y+(t.y-e.y)*n}},wr=function(e,t){var n=kr(e[0],e[1],t),r=kr(e[1],e[2],t),i=kr(e[2],e[3],t),a=kr(n,r,t),o=kr(r,i,t);return kr(a,o,t)},Sr=function(e,t){var n=kr(e[0],e[1],t),r=kr(e[1],e[2],t);return kr(n,r,t)},Pr=function(e,t){return kr(e[0],e[1],t)},Er=function(e,t){var n=kr(e[0],e[1],t),r=kr(e[1],e[2],t),i=kr(e[2],e[3],t),a=kr(n,r,t),o=kr(r,i,t),s=kr(a,o,t);return{first:[e[0],n,a,s],second:[s,o,i,e[3]]}},Tr=function(e,t){var n=kr(e[0],e[1],t),r=kr(e[1],e[2],t),i=kr(n,r,t);return{first:[e[0],n,i],second:[i,r,e[2]]}},Or=function(e,t){var n=kr(e[0],e[1],t);return{first:[e[0],n],second:[n,e[1]]}},Cr=function(e){var t=function(e){var t=o.negate([],e[0]),n=o.multiply([],[3,3,3],e[1]),r=o.multiply([],[-3,-3,-3],e[2]),i=e[3],a=o.add([],o.add([],t,n),o.add([],r,i));return o.multiply([],[3,3,3],a)}(e),n=function(e){var t=e[0],n=o.multiply([],[-2,-2,-2],e[1]),r=e[2],i=o.add([],o.add([],t,n),r);return o.multiply([],[6,6,6],i)}(e),r=function(e){var t=o.add([],e[1],o.negate([],e[0]));return o.multiply([],[3,3,3],t)}(e),i=[],a=n[0]*n[0]-4*t[0]*r[0];if(a<0);else if(0===a){var s=-n[0]/(2*t[0]);0<=s&&s<=1&&i.push(s)}else if(a>0){var u=(-n[0]+Math.sqrt(a))/(2*t[0]),c=(-n[0]-Math.sqrt(a))/(2*t[0]);0<=u&&u<=1&&i.push(u),0<=c&&c<=1&&i.push(c)}var l=n[1]*n[1]-4*t[1]*r[1];if(l<0);else if(0===l){var p=-n[1]/(2*t[1]);0<=p&&p<=1&&i.push(p)}else if(l>0){var h=(-n[1]+Math.sqrt(l))/(2*t[1]),f=(-n[1]-Math.sqrt(l))/(2*t[1]);0<=h&&h<=1&&i.push(h),0<=f&&f<=1&&i.push(f)}return i};function Dr(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.__proto__,r=[];do{var i=n instanceof Object;if(!1===i)break;var a=Object.getOwnPropertyNames(n).filter((function(n){return e&&Hr(e[n])&&!t[n]}));r.push.apply(r,A()(a)),n=n.__proto__}while(n);return r}function Ar(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(0===t)return e;var n=void 0;return function(r,i,a,o,s){n&&clearTimeout(n),n=setTimeout((function(){e(r,i,a,o,s)}),t||300)}}function jr(e,t){var n=void 0;return function(r,i,a,o,s){n||(n=setTimeout((function(){e(r,i,a,o,s),n=null}),t||300))}}function $r(e,t){Object.keys(e).forEach((function(n,r){t(n,e[n],r)}))}function Mr(e,t){return Object.keys(e).map((function(n,r){return t(n,e[n],r)}))}function Ir(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return Mr(e,t).join(n)}function Fr(e,t,n){var r=Lr(e[t],t);return Hr(n)?n(r):r}function Lr(e,t){return void 0===e?t:e}function _r(e){return null==e}function Br(e){return!1===_r(e)}function Rr(e){return Array.isArray(e)}function Nr(e){return"boolean"==typeof e}function Vr(e){return"string"==typeof e}function zr(e){return!1===Vr(e)}function Gr(e){return"object"==C()(e)&&!Rr(e)&&!Ur(e)&&!Vr(e)&&null!==e}function Hr(e){return"function"==typeof e}function Ur(e){return"number"==typeof e}function Yr(e){return 0===e}function Wr(e){return!Yr(e)}function Kr(e){if(!_r(e))return JSON.parse(JSON.stringify(e))}function Xr(e){var t={};return Object.keys(e).filter((function(t){return!!e[t]})).forEach((function(n){t[n]=e[n]})),t}function qr(e){return Object.keys(e).forEach((function(t){Array.isArray(e[t])&&(e[t]=e[t].join(", "))})),e}function Jr(e){return A()(Array(e))}function Zr(){for(var e=arguments.length,t=new Array(e),n=0;n1?t-1:0),r=1;r]*)\/\>/gim,(function(e,t){return Qr[t.toLowerCase()]?e:e.replace("/>",">"))}))};function ti(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=e||{};return Object.keys(n).filter((function(e){return Br(n[e])})).map((function(e){return"".concat(e,": ").concat(n[e])})).join(";"+t)}function ni(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:";",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:":",r={};return""===(e+="")?r:(e.split(t).forEach((function(e){var t=e.split(n).map((function(e){return e.trim()})),i=T()(t),a=i[0],o=i.slice(1);""!=a&&(r[a]=o.join(n))})),r)}function ri(e){return Object.keys(e).map((function(t){return"class"===t&&Gr(e[t])?"".concat(t,'="').concat(ii(e[t]),'"'):Nr(e[t])||_r(e[t])||"undefined"===e[t]?e[t]?t:"":"".concat(t,'="').concat(e[t],'"')})).join(" ")}function ii(e){return Object.keys(e).filter((function(t){return e[t]})).map((function(e){return e})).join(" ")}function ai(e){return e.replace(/\/g,">")}function oi(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return e.map(t).join(n)}function si(e,t){var n=new Set([].concat(A()(e),A()(t)));return n.size===e.length&&n.size===t.length}var ui=function(e,t){var n=e.filter((function(e){return e.indexOf("".concat(t,"("))>-1})),r=n.map((function(e){var n=e.split("".concat(t,"("))[1].split(")")[0].trim().split(" "),r=P()(n,2);return{target:r[0],param:r[1]}}));return[n,r]},ci=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:30,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:30,r=sr(e);return"\n M0 ".concat(t," \n C \n ").concat(r[0]*t," ").concat(0==r[1]?n:(1-r[1])*n,",\n ").concat(r[2]*t," ").concat(1==r[3]?0:(1-r[3])*n,",\n ").concat(t," 0\n ")},li=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:30,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:30,r=sr(e);return"\n M 0 ".concat(t," \n L ").concat(r[0]*t," ").concat(0==r[1]?n:(1-r[1])*n,"\n M ").concat(t," 0\n L ").concat(r[2]*t," ").concat(1==r[3]?0:(1-r[3])*n,"\n ")};function pi(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"rgba(0, 0, 0, 0)";return Array.isArray(e)&&(e={r:e[0],g:e[1],b:e[2],a:e[3]}),"hex"==t?hi(e):"rgb"==t?fi(e,n):"hsl"==t?di(e):e}function hi(e){Array.isArray(e)&&(e={r:e[0],g:e[1],b:e[2],a:e[3]});var t=e.r.toString(16);e.r<16&&(t="0"+t);var n=e.g.toString(16);e.g<16&&(n="0"+n);var r=e.b.toString(16);return e.b<16&&(r="0"+r),"#".concat(t).concat(n).concat(r)}function fi(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"rgba(0, 0, 0, 0)";if(Rr(e)&&(e={r:e[0],g:e[1],b:e[2],a:e[3]}),!_r(e))return 1==e.a||_r(e.a)?isNaN(e.r)?t:"rgb(".concat(e.r,",").concat(e.g,",").concat(e.b,")"):"rgba(".concat(e.r,",").concat(e.g,",").concat(e.b,",").concat(e.a,")")}function di(e){return Rr(e)&&(e={r:e[0],g:e[1],b:e[2],a:e[3]}),1==e.a||_r(e.a)?"hsl(".concat(e.h,",").concat(e.s,"%,").concat(e.l,"%)"):"hsla(".concat(e.h,",").concat(e.s,"%,").concat(e.l,"%,").concat(e.a,")")}function yi(e){return Math.pow(e,3)>.008856?Math.pow(e,3):(e-16/116)/7.787}function vi(e){return e>.0031308?1.055*Math.pow(e,1/2.4)-.055:12.92*e}function mi(e,t,n){if(1==arguments.length){var r=arguments[0];e=r.x,t=r.y,n=r.z}var i=e/100,a=t/100,o=n/100,s=3.2406*i+-1.5372*a+-.4986*o,u=-.9689*i+1.8758*a+.0415*o,c=.0557*i+-.204*a+1.057*o;s=vi(s),u=vi(u),c=vi(c);var l=gn(255*s),p=gn(255*u),h=gn(255*c);return{r:l,g:p,b:h}}function gi(e,t,n){if(1==arguments.length){var r=arguments[0];e=r.l,t=r.a,n=r.b}var i=(e+16)/116,a=t/500+i,o=i-n/200;i=yi(i);var s=95.047*(a=yi(a)),u=100*i,c=108.883*(o=yi(o));return{x:s,y:u,z:c}}function bi(e){return e>.008856?Math.pow(e,1/3):(7.787*e+16)/116}function xi(e,t,n){if(1==arguments.length){var r=arguments[0];e=r.x,t=r.y,n=r.z}var i=e/95.047,a=t/100,o=n/108.883;i=bi(i);var s=116*(a=bi(a))-16,u=500*(i-a),c=200*(a-(o=bi(o)));return{l:s,a:u,b:c}}function ki(e,t,n){if(1==arguments.length){var r=arguments[0];e=r.l,t=r.a,n=r.b}return mi(gi(e,t,n))}function wi(e,t,n){if(1==arguments.length){var r=arguments[0];e=r.r,t=r.g,n=r.b}var i=e/255,a=t/255,o=n/255,s=Math.max(i,a,o),u=Math.min(i,a,o),c=s-u,l=0;0==c?l=0:s==i?l=(a-o)/c%6*60:s==a?l=60*((o-i)/c+2):s==o&&(l=60*((i-a)/c+4)),l<0&&(l=360+l);return{h:l,s:0==s?0:c/s,v:s}}function Si(e,t,n){if(1==arguments.length){var r=arguments[0];e=r.r,t=r.g,n=r.b}var i=e/255,a=t/255,o=n/255,s=1-Math.max(i,a,o),u=(1-i-s)/(1-s),c=(1-a-s)/(1-s),l=(1-o-s)/(1-s);return{c:u,m:c,y:l,k:s}}function Pi(e,t,n){if(1==arguments.length){var r=arguments[0];e=r.r,t=r.g,n=r.b}e/=255,t/=255,n/=255;var i,a,o=Math.max(e,t,n),s=Math.min(e,t,n),u=(o+s)/2;if(o==s)i=a=0;else{var c=o-s;switch(a=u>.5?c/(2-o-s):c/(o+s),o){case e:i=(t-n)/c+(t90?0:255)}function Ti(e){return{r:e,g:e,b:e}}function Oi(e,t,n){if(1==arguments.length){var r=arguments[0];e=r.r,t=r.g,n=r.b}return Ti(Math.ceil((e+t+n)/3))}function Ci(e,t,n){if(1==arguments.length){var r=arguments[0];e=r.r,t=r.g,n=r.b}return Ti(Ai(e,t,n).y)}function Di(e,t,n){return Math.ceil(.2126*e+.7152*t+.0722*n)}function Ai(e,t,n){if(1==arguments.length){var r=arguments[0];e=r.r,t=r.g,n=r.b}var i=Di(e,t,n),a=.564*(n-i),o=.713*(e-i);return{y:i,cr:o,cb:a}}function ji(e){return 100*(e>.04045?Math.pow((e+.055)/1.055,2.4):e/12.92)}function $i(e,t,n){if(1==arguments.length){var r=arguments[0];e=r.r,t=r.g,n=r.b}var i=e/255,a=t/255,o=n/255,s=.4124*(i=ji(i))+.3576*(a=ji(a))+.1805*(o=ji(o)),u=.2126*i+.7152*a+.0722*o,c=.0193*i+.1192*a+.9505*o;return{x:s,y:u,z:c}}function Mi(e,t,n){if(1==arguments.length){var r=arguments[0];e=r.r,t=r.g,n=r.b}return xi($i(e,t,n))}function Ii(e,t,n,r){if(1==arguments.length){var i=arguments[0];e=i.c,t=i.m,n=i.y,r=i.k}var a=255*(1-e)*(1-r),o=255*(1-t)*(1-r),s=255*(1-n)*(1-r);return{r:a,g:o,b:s}}function Fi(e,t,n){if(1==arguments.length){var r=arguments[0];e=r.h,t=r.s,n=r.v}var i=e,a=t,o=n;i>=360&&(i=0);var s=a*o,u=s*(1-Math.abs(i/60%2-1)),c=o-s,l=[];return 0<=i&&i<60?l=[s,u,0]:60<=i&&i<120?l=[u,s,0]:120<=i&&i<180?l=[0,s,u]:180<=i&&i<240?l=[0,u,s]:240<=i&&i<300?l=[u,0,s]:300<=i&&i<360&&(l=[s,0,u]),{r:gn(255*(l[0]+c)),g:gn(255*(l[1]+c)),b:gn(255*(l[2]+c))}}function Li(e,t,n){if(1==arguments.length){var r=arguments[0];e=r.h,t=r.s,n=r.v}var i=Fi(e,t,n);return Pi(i.r,i.g,i.b)}function _i(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function Bi(e,t,n){if(1==arguments.length){var r=arguments[0];e=r.h,t=r.s,n=r.l}var i=Ri(e,t,n);return wi(i.r,i.g,i.b)}function Ri(e,t,n){if(1==arguments.length){var r=arguments[0];e=r.h,t=r.s,n=r.l}var i,a,o;if(e/=360,n/=100,0==(t/=100))i=a=o=n;else{var s=n<.5?n*(1+t):n+t-n*t,u=2*n-s;i=_i(u,s,e+1/3),a=_i(u,s,e),o=_i(u,s,e-1/3)}return{r:gn(255*i),g:gn(255*a),b:gn(255*o)}}function Ni(e,t,n,r){if(1==arguments.length){var i=arguments[0];e=i.y,t=i.cr,n=i.cb;r=(r=i.bit)||0}var a=e+1.402*(t-r),o=e-.344*(n-r)-.714*(t-r),s=e+1.772*(n-r);return{r:Math.ceil(a),g:Math.ceil(o),b:Math.ceil(s)}}var Vi={aliceblue:"rgb(240, 248, 255)",antiquewhite:"rgb(250, 235, 215)",aqua:"rgb(0, 255, 255)",aquamarine:"rgb(127, 255, 212)",azure:"rgb(240, 255, 255)",beige:"rgb(245, 245, 220)",bisque:"rgb(255, 228, 196)",black:"rgb(0, 0, 0)",blanchedalmond:"rgb(255, 235, 205)",blue:"rgb(0, 0, 255)",blueviolet:"rgb(138, 43, 226)",brown:"rgb(165, 42, 42)",burlywood:"rgb(222, 184, 135)",cadetblue:"rgb(95, 158, 160)",chartreuse:"rgb(127, 255, 0)",chocolate:"rgb(210, 105, 30)",coral:"rgb(255, 127, 80)",cornflowerblue:"rgb(100, 149, 237)",cornsilk:"rgb(255, 248, 220)",crimson:"rgb(237, 20, 61)",cyan:"rgb(0, 255, 255)",darkblue:"rgb(0, 0, 139)",darkcyan:"rgb(0, 139, 139)",darkgoldenrod:"rgb(184, 134, 11)",darkgray:"rgb(169, 169, 169)",darkgrey:"rgb(169, 169, 169)",darkgreen:"rgb(0, 100, 0)",darkkhaki:"rgb(189, 183, 107)",darkmagenta:"rgb(139, 0, 139)",darkolivegreen:"rgb(85, 107, 47)",darkorange:"rgb(255, 140, 0)",darkorchid:"rgb(153, 50, 204)",darkred:"rgb(139, 0, 0)",darksalmon:"rgb(233, 150, 122)",darkseagreen:"rgb(143, 188, 143)",darkslateblue:"rgb(72, 61, 139)",darkslategray:"rgb(47, 79, 79)",darkslategrey:"rgb(47, 79, 79)",darkturquoise:"rgb(0, 206, 209)",darkviolet:"rgb(148, 0, 211)",deeppink:"rgb(255, 20, 147)",deepskyblue:"rgb(0, 191, 255)",dimgray:"rgb(105, 105, 105)",dimgrey:"rgb(105, 105, 105)",dodgerblue:"rgb(30, 144, 255)",firebrick:"rgb(178, 34, 34)",floralwhite:"rgb(255, 250, 240)",forestgreen:"rgb(34, 139, 34)",fuchsia:"rgb(255, 0, 255)",gainsboro:"rgb(220, 220, 220)",ghostwhite:"rgb(248, 248, 255)",gold:"rgb(255, 215, 0)",goldenrod:"rgb(218, 165, 32)",gray:"rgb(128, 128, 128)",grey:"rgb(128, 128, 128)",green:"rgb(0, 128, 0)",greenyellow:"rgb(173, 255, 47)",honeydew:"rgb(240, 255, 240)",hotpink:"rgb(255, 105, 180)",indianred:"rgb(205, 92, 92)",indigo:"rgb(75, 0, 130)",ivory:"rgb(255, 255, 240)",khaki:"rgb(240, 230, 140)",lavender:"rgb(230, 230, 250)",lavenderblush:"rgb(255, 240, 245)",lawngreen:"rgb(124, 252, 0)",lemonchiffon:"rgb(255, 250, 205)",lightblue:"rgb(173, 216, 230)",lightcoral:"rgb(240, 128, 128)",lightcyan:"rgb(224, 255, 255)",lightgoldenrodyellow:"rgb(250, 250, 210)",lightgreen:"rgb(144, 238, 144)",lightgray:"rgb(211, 211, 211)",lightgrey:"rgb(211, 211, 211)",lightpink:"rgb(255, 182, 193)",lightsalmon:"rgb(255, 160, 122)",lightseagreen:"rgb(32, 178, 170)",lightskyblue:"rgb(135, 206, 250)",lightslategray:"rgb(119, 136, 153)",lightslategrey:"rgb(119, 136, 153)",lightsteelblue:"rgb(176, 196, 222)",lightyellow:"rgb(255, 255, 224)",lime:"rgb(0, 255, 0)",limegreen:"rgb(50, 205, 50)",linen:"rgb(250, 240, 230)",magenta:"rgb(255, 0, 255)",maroon:"rgb(128, 0, 0)",mediumaquamarine:"rgb(102, 205, 170)",mediumblue:"rgb(0, 0, 205)",mediumorchid:"rgb(186, 85, 211)",mediumpurple:"rgb(147, 112, 219)",mediumseagreen:"rgb(60, 179, 113)",mediumslateblue:"rgb(123, 104, 238)",mediumspringgreen:"rgb(0, 250, 154)",mediumturquoise:"rgb(72, 209, 204)",mediumvioletred:"rgb(199, 21, 133)",midnightblue:"rgb(25, 25, 112)",mintcream:"rgb(245, 255, 250)",mistyrose:"rgb(255, 228, 225)",moccasin:"rgb(255, 228, 181)",navajowhite:"rgb(255, 222, 173)",navy:"rgb(0, 0, 128)",oldlace:"rgb(253, 245, 230)",olive:"rgb(128, 128, 0)",olivedrab:"rgb(107, 142, 35)",orange:"rgb(255, 165, 0)",orangered:"rgb(255, 69, 0)",orchid:"rgb(218, 112, 214)",palegoldenrod:"rgb(238, 232, 170)",palegreen:"rgb(152, 251, 152)",paleturquoise:"rgb(175, 238, 238)",palevioletred:"rgb(219, 112, 147)",papayawhip:"rgb(255, 239, 213)",peachpuff:"rgb(255, 218, 185)",peru:"rgb(205, 133, 63)",pink:"rgb(255, 192, 203)",plum:"rgb(221, 160, 221)",powderblue:"rgb(176, 224, 230)",purple:"rgb(128, 0, 128)",rebeccapurple:"rgb(102, 51, 153)",red:"rgb(255, 0, 0)",rosybrown:"rgb(188, 143, 143)",royalblue:"rgb(65, 105, 225)",saddlebrown:"rgb(139, 69, 19)",salmon:"rgb(250, 128, 114)",sandybrown:"rgb(244, 164, 96)",seagreen:"rgb(46, 139, 87)",seashell:"rgb(255, 245, 238)",sienna:"rgb(160, 82, 45)",silver:"rgb(192, 192, 192)",skyblue:"rgb(135, 206, 235)",slateblue:"rgb(106, 90, 205)",slategray:"rgb(112, 128, 144)",slategrey:"rgb(112, 128, 144)",snow:"rgb(255, 250, 250)",springgreen:"rgb(0, 255, 127)",steelblue:"rgb(70, 130, 180)",tan:"rgb(210, 180, 140)",teal:"rgb(0, 128, 128)",thistle:"rgb(216, 191, 216)",tomato:"rgb(255, 99, 71)",turquoise:"rgb(64, 224, 208)",violet:"rgb(238, 130, 238)",wheat:"rgb(245, 222, 179)",white:"rgb(255, 255, 255)",whitesmoke:"rgb(245, 245, 245)",yellow:"rgb(255, 255, 0)",yellowgreen:"rgb(154, 205, 50)",transparent:"rgba(0, 0, 0, 0)",currentColor:"currentColor"};var zi={isColorName:function(e){return!!Vi[e]},getColorByName:function(e){return Vi[e]}};function Gi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Hi(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:"@";return"".concat(t).concat(e.startIndex).padEnd(10,"0")}function Wi(e){return!!Ki(e).length}function Ki(e){var t=e.match(Ui),n=[];if(!t)return n;for(var r=0,i=t.length;r-1||t[r].indexOf("rgb")>-1||t[r].indexOf("hsl")>-1)n.push({color:t[r]});else{var a=zi.getColorByName(t[r]);a&&n.push({color:t[r],nameColor:a})}var o={next:0};return n.forEach((function(t){var n=e.indexOf(t.color,o.next);t.startIndex=n,t.endIndex=n+t.color.length,o.next=t.endIndex})),n}function Xi(e){var t=Ki(e);return t.forEach((function(t){e=e.replace(t.color,Yi(t))})),{str:e,matches:t}}function qi(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:",",n=Xi(e);return n.str.split(t).map((function(e,t){return e=Qi(e),n.matches[t]&&(e=e.replace(Yi(n.matches[t]),n.matches[t].color)),e}))}function Ji(e,t){return t.forEach((function(t){e=e.replace(Yi(t),t.color)})),e}var Zi=/^\s+|\s+$/g;function Qi(e){return e.replace(Zi,"")}function ea(e){if(Vr(e)){if(zi.isColorName(e)&&(e=zi.getColorByName(e)),e.indexOf("rgb(")>-1){for(var t=0,n=(r=e.replace("rgb(","").replace(")","").split(",")).length;t-1){for(t=0,n=(r=e.replace("rgba(","").replace(")","").split(",")).length;t-1){for(t=0,n=(r=e.replace("hsl(","").replace(")","").split(",")).length;t-1){for(t=0,n=(r=e.replace("hsla(","").replace(")","").split(",")).length;t>16,g:(65280&e)>>8,b:(255&e)>>0,a:1},{},Pi(a));if(0<=e&&e<=4294967295)return a=Hi({},a={type:"hex",r:(4278190080&e)>>24,g:(16711680&e)>>16,b:(65280&e)>>8,a:(255&e)/255},{},Pi(a))}return e}function ta(e){Vr(e)&&(e=qi(e));var t=(e=e.map((function(e){if(Vr(e)){var t=Xi(e),n=Qi(t.str).split(" ");return n[1]?n[1].indexOf("%")>-1?n[1]=parseFloat(n[1].replace(/%/,""))/100:n[1]=parseFloat(n[1]):n[1]="*",n[0]=Ji(n[0],t.matches),n}if(Array.isArray(e))return e[1]?Vr(e[1])&&(e[1].indexOf("%")>-1?e[1]=parseFloat(e[1].replace(/%/,""))/100:e[1]=+e[1]):e[1]="*",A()(e)}))).filter((function(e){return"*"===e[1]})).length;if(t>0){var n=(1-e.filter((function(e){return"*"!=e[1]&&1!=e[1]})).map((function(e){return e[1]})).reduce((function(e,t){return e+t}),0))/t;e.forEach((function(t,r){"*"==t[1]&&r>0&&(e.length-1==r||(t[1]=n))}))}return e}function na(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:.5,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"hex",i=ra(e,t,n);return pi(i,i.a<1?"rgb":r)}function ra(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:.5;return{r:gn(e.r+(t.r-e.r)*n),g:gn(e.g+(t.g-e.g)*n),b:gn(e.b+(t.b-e.b)*n),a:gn(e.a+(t.a-e.a)*n,100)}}function ia(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:5;if(!e)return[];Vr(e)&&(e=qi(e));for(var n=(e=e||[]).length,r=[],i=0;i2&&void 0!==arguments[2]?arguments[2]:.5,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"hex",i=ea(e),a=ea(t);return na(i,a,n,r)}function oa(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:.5,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"hex";return aa(e,t,n,r)}function sa(e){return e=ea(e),(Math.round(299*e.r)+Math.round(587*e.g)+Math.round(114*e.b))/1e3}function ua(e){return sa(e)>=128?"black":"white"}function ca(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10,n=[],r=t-((e=ta(e)).length-1),i=r,a=1,o=e.length;a1&&void 0!==arguments[1]?arguments[1]:"h",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:9,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"rgb",i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:1,o=arguments.length>6&&void 0!==arguments[6]?arguments[6]:100,s=ea(e),u=wi(s),c=(a-i)*o/n,l=[],p=1;p<=n;p++)u[t]=Math.abs((o-c*p)/o),l.push(pi(Fi(u),r));return l}function pa(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:9,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"rgb",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:360;return la(e,"h",t,n,r,i,1)}function ha(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:9,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"rgb",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1;return la(e,"s",t,n,r,i,100)}function fa(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:9,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"rgb",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1;return la(e,"v",t,n,r,i,100)}function da(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}ia.parula=function(e){return ia(["#352a87","#0f5cdd","#00b5a6","#ffc337","#fdff00"],e)},ia.jet=function(e){return ia(["#00008f","#0020ff","#00ffff","#51ff77","#fdff00","#ff0000","#800000"],e)},ia.hsv=function(e){return ia(["#ff0000","#ffff00","#00ff00","#00ffff","#0000ff","#ff00ff","#ff0000"],e)},ia.hot=function(e){return ia(["#0b0000","#ff0000","#ffff00","#ffffff"],e)},ia.pink=function(e){return ia(["#1e0000","#bd7b7b","#e7e5b2","#ffffff"],e)},ia.bone=function(e){return ia(["#000000","#4a4a68","#a6c6c6","#ffffff"],e)},ia.copper=function(e){return ia(["#000000","#3d2618","#9d623e","#ffa167","#ffc77f"],e)};var ya=function(e){for(var t=1;t=e){t=va[r-1],n=va[r];break}return t&&n?ya.interpolateRGB(t,n,(e-t.start)/(n.start-t.start)):va[0].rgb}},ba=n(1),xa=n.n(ba),ka=n(2),wa=n.n(ka),Sa=n(3),Pa=n.n(Sa),Ea=n(0),Ta=n.n(Ea),Oa=n(4),Ca=n.n(Oa),Da={en_US:{"app.title":"EASYLOGIC","app.sample":function(e,t,n){return"".concat(e,"-").concat(t,"-").concat(n)},"app.lang.en_US":"English","app.lang.ko_KR":"한국어","app.lang.fr_FR":"Français","app.label.lang":"Language","app.layout.all":"All","app.layout.css":"CSS","app.layout.svg":"SVG","app.label.layout":"Menu Layout","app.theme.dark":"Dark","app.theme.light":"Light","app.theme.toon":"Toon","app.theme.gray":"Gray","app.label.theme":"Theme","app.tab.title.projects":"Projects","app.tab.title.layers":"Layers","app.tab.title.libraries":"Library","app.tab.title.components":"Object","app.tab.title.artboards":"Artboard","app.tab.title.assets":"Assets","app.tab.title.keyMap":"KeyMap","app.confirm.message.artboard.items.removeArtboard":"Do you remove an artboard preview really?","menu.item.download.title":"Download","menu.item.save.title":"Save","menu.item.export.title":"Export","menu.item.codepen.title":"CodePen","menu.item.fullscreen.title":"Screen","menu.item.shortcuts.title":"ShortCuts","menu.item.github.title":"Github","menu.item.learn.title":"Learn","project.property.title":"Project","project.information.property.title":"Project information","project.information.property.name":"Name","project.information.property.description":"Description","artboard.property.title":"ArtBoards","artboard.property.layout.title.flex":"Flex","artboard.property.layout.title.grid":"Grid","layer.tree.property.title":"Layers","layer.tree.property.layout.title.flex":"Flex","layer.tree.property.layout.title.grid":"Grid","alignment.property.title":"Alignment","position.property.title":"Position","position.property.X":"X","position.property.Y":"Y","size.property.title":"Size","size.property.width":"Width","size.property.height":"Height","background.color.property.title":"Appearance","background.color.property.color":"Color","background.color.property.zindex":"z-index","background.color.property.opacity":"Opacity","background.color.property.blend":"Blend","background.color.property.overflow":"Overflow","background.color.property.overflow.visible":"Visible","background.color.property.overflow.hidden":"Hidden","background.color.property.overflow.scroll":"Scroll","background.color.property.overflow.auto":"Auto","blend.normal":"normal","blend.multiply":"multiply","blend.screen":"screen","blend.overlay":"overlay","blend.darken":"darken","blend.lighten":"lighten","blend.color-dodge":"color-dodge","blend.color-burn":"color-burn","blend.hard-light":"hard-light","blend.soft-light":"soft-light","blend.difference":"difference","blend.exclusion":"exclusion","blend.hue":"hue","blend.saturation":"saturation","blend.color":"color","blend.luminosity":"luminosity","background.image.property.title":"Fill","border.property.title":"Border","border.radius.property.title":"Border Radius","boxshadow.property.title":"Box Shadows","filter.property.title":"Filter","filter.property.blur":"Blur","filter.property.grayscale":"GrayScale","filter.property.hue-rotate":"Hue Rotate","filter.property.invert":"Invert","filter.property.brightness":"Brightness","filter.property.contrast":"Contrast","filter.property.drop-shadow":"Drop Shadow","filter.property.drop-shadow.color":"Color","filter.property.drop-shadow.offsetX":"Offset X","filter.property.drop-shadow.offsetY":"Offset Y","filter.property.drop-shadow.blurRadius":"Blur","filter.property.opacity":"Opacity","filter.property.saturate":"Saturate","filter.property.sepia":"Sepia","filter.property.svg":"SVG","font.property.title":"Font","font.property.color":"Color","font.property.size":"Size","font.property.stretch":"Stretch","font.property.weight":"Weight","font.property.style":"Style","font.property.family":"Family","font.spacing.property.title":"Font spacing","font.spacing.property.lineHeight":"Line height","font.spacing.property.letterSpacing":"Letter spacing","font.spacing.property.wordSpacing":"Word spacing","font.spacing.property.indent":"Indent","backdrop.filter.property.title":"Backdrop Filter","clippath.property.title":"Clip Path","export.property.title":"Export","export.property.download":"Download","image.property.title":"Image","image.property.origin":"Origin","image.property.size":"Size","image.property.width":"Width","image.property.height":"height","video.property.title":"Video","video.property.play":"Play","video.property.pause":"Pause","video.property.volume":"Volume","video.property.playbackRate":"Playback Rate","video.property.currentTime":"Current Time","video.property.playTime":"Play Time Distance","motion.property.title":"Motion","text.property.title":"Text Style","text.property.align":"Align","text.property.transform":"Transform","text.property.decoration":"Decoration","text.clip.property.title":"Text Clip","text.shadow.property.title":"Text Shadows","text.fill.property.title":"Text Fill","text.fill.property.fill":"Fill","text.fill.property.stroke":"Stroke","text.fill.property.strokeWidth":"Width","transform.property.title":"Transform","transform.origin.property.title":"Transform Origin","transition.property.title":"CSS Transition","keyframe.property.title":"CSS Keyframe","selector.property.title":"Selector","selector.property.none":"None selector","path.data.property.title":"Path Information","polygon.data.property.title":"Polygon Information","perspective.property.title":"Perspective","perspective.origin.property.title":"Perspective Origin","svg.item.property.title":"Appearance","svg.item.property.isMotionPath":"Motion Path","svg.item.property.fill":"Fill","svg.item.property.fillOpacity":"Opacity","svg.item.property.path":"Path","svg.item.property.polygon":"Polygon","svg.item.property.totalLength":"Total Length","svg.item.property.fillRule":"Fill Rule","svg.item.property.stroke":"Stroke","svg.item.property.strokeWidth":"Width","svg.item.property.dashArray":"Dash Array","svg.item.property.dashOffset":"Dash Offset","svg.item.property.lineCap":"Line Cap","svg.item.property.lineJoin":"Line Join","svg.item.property.filter":"Filter","border.editor.all":"All","border.editor.width":"Width","border.editor.style":"Style","border.editor.color":"C","border.editor.top":"Top","border.editor.left":"Left","border.editor.right":"Right","border.editor.bottom":"Bottom","border.radius.editor.topLeft":"Top Left","border.radius.editor.topRight":"Top Right","border.radius.editor.bottomLeft":"Bottom Left","border.radius.editor.bottomRight":"Bottom Right","boxshadow.editor.blur":"Blur","boxshadow.editor.spread":"Spread","css.property.editor.properties":"Properties","offset.path.list.editor.path":"Path","offset.path.list.editor.totalLength":"Total Length","offset.path.list.editor.distance":"Distance","offset.path.list.editor.direction":"Direction","offset.path.list.editor.rotate":"Rotate","svgfilter.select.editor.message.create":"Create new svg filter","svgfilter.select.editor.message.select":"Select a filter","fill.editor.message.click.image":"Click the preview area if you want to select a image","fill.editor.message.drag.position":"Drag if you want to move center position","fill.editor.x1":"Start X","fill.editor.x2":"End X","fill.editor.y1":"Start Y","fill.editor.y2":"End Y","fill.editor.spread":"Spread","fill.editor.offset":"Offset","fill.editor.cx":"Center X","fill.editor.cy":"Center Y","fill.editor.r":"End radius","fill.editor.fx":"Start X","fill.editor.fy":"Start Y","fill.editor.fr":"Start radius","perspective.origin.editor.originX":"Origin X","perspective.origin.editor.originY":"Origin Y","path.manager.msg":"Keydown ESC or Enter key to close editing","path.manager.mode.modify":"Modify","path.manager.mode.path":"Path","path.manager.mode.transform":"Transform","path.manager.mode.reverse":"Reverse","path.manager.mode.flipX":"Flip X","path.manager.mode.flipY":"Flip Y","path.manager.mode.flipOrigin":"Flip Origin","colorpicker.popup.title":"ColorPicker","selector.popup.title":"Selector Property","selector.popup.selector":"Selector","background.image.position.popup.title":"Background Pattern","background.image.position.popup.size":"Size","background.image.position.popup.width":"Width","background.image.position.popup.height":"Height","background.image.position.popup.repeat":"Repeat","background.image.position.popup.blend":"Blend","background.image.position.popup.type.repeat":"repeat","background.image.position.popup.type.no-repeat":"no repeat","background.image.position.popup.type.repeat-x":"repeat-x","background.image.position.popup.type.repeat-y":"repeat-y","background.image.position.popup.type.space":"space","background.image.position.popup.type.round":"round","gradient.picker.popup.title":"Gradient & Image Picker","image.asset.property.title":"Image","video.asset.property.title":"Video","color.asset.property.title":"Color","gradient.asset.property.title":"Gradient","pattern.asset.property.title":"Pattern","svgfilter.asset.property.title":"SVG Filter","inspector.tab.title.style":"Style","inspector.tab.title.component":"Component","inspector.tab.title.transition":"Transition & Animation","inspector.tab.title.asset":"Assets","inspector.tab.title.text":"Text","inspector.tab.title.code":"Code","inspector.tab.title.history":"History","timeline.property.title":"Timeline","timeline.property.resize":"Drag if you want to resize timeline height.","timeline.animation.property.title":"Animations","timeline.play.control.play":"Play","timeline.play.control.pause":"Pause","timeline.play.control.first":"First","timeline.play.control.prev":"Previous","timeline.play.control.next":"Next","timeline.play.control.last":"Last","timeline.play.control.direction":"Direction","timeline.play.control.speed":"Speed","timeline.play.control.repeat":"Repeat","timeline.play.control.infinite":"Infinite","timeline.play.control.normal":"normal","timeline.play.control.alternate":"alternate","timeline.play.control.reverse":"reverse","timeline.play.control.alternate.reverse":"alternate reverse","timeline.value.editor.value":"Value","timeline.value.editor.time":"Time","timeline.value.editor.timing":"Timing","timeline.value.editor.offset.message":"Please input enter key to change time offset.","svgfilter.popup.title":"SVG Filter","css.item.rotate":"Rotate","css.item.rotateX":"Rotate X","css.item.rotateY":"Rotate Y","css.item.rotateZ":"Rotate Z","css.item.rotate3d":"3D Rotate","css.item.skewX":"Skew X","css.item.skewY":"Skew Y","css.item.translate":"Translate","css.item.translateX":"Translate X","css.item.translateY":"Translate Y","css.item.translateZ":"Translate Z","css.item.translate3d":"3D Translate","css.item.perspective":"Perspective","css.item.scale":"Scale","css.item.scaleX":"Scale X","css.item.scaleY":"Scale Y","css.item.scaleZ":"Scale Z","css.item.scale3d":"3D Scale","css.item.matrix":"Matrix","css.item.matrix3d":"3D Matrix","animation.property.title":"CSS Animation","animation.property.direction":"Direction","animation.property.play.state":"Play State","animation.property.fill.mode":"Fill Mode","animation.property.delay":"Delay","animation.property.duration":"Duration","animation.property.iteration.count":"Iteration Count","animation.property.Select a keyframe":"Select a keyframe","animation.property.popup.title":"Animation","animation.property.popup.timing.function":"Timing Function","animation.property.popup.keyframe":"Keyframe","animation.property.popup.direction":"Direction","animation.property.popup.play.state":"Play State","animation.property.popup.fill.mode":"Fill Mode","animation.property.popup.delay":"Delay","animation.property.popup.duration":"Duration","animation.property.popup.iteration":"Iteration","animation.property.popup.normal":"normal","animation.property.popup.reverse":"reverse","animation.property.popup.alternate":"alternate","animation.property.popup.alternate-reverse":"alternate-reverse","animation.property.popup.none":"none","animation.property.popup.forwards":"forwards","animation.property.popup.backwards":"backwards","animation.property.popup.both":"both","animation.property.popup.Select a keyframe":"Select a keyframe","keyframe.popup.title":"Keyframe","code.view.property.title":"CodeView","svg.filter.editor.tab.filter":"Filter","svg.filter.editor.tab.preset":"Preset","svg.filter.editor.tab.asset":"Assets","svg.filter.editor.GRAPHIC REFERENCES":"GRAPHIC REFERENCES","svg.filter.editor.SOURCES":"SOURCES","svg.filter.editor.MODIFIER":"MODIFIER","svg.filter.editor.LIGHTING":"LIGHTING","svg.filter.editor.COMBINERS":"COMBINERS","svg.filter.editor.Template":"Template","layout.property.title":"Layout","layout.property.flex":"Flex Box","layout.property.grid":"Grid","layout.property.default":"Default","flex.layout.editor.row":"Row","flex.layout.editor.column":"column","flex.layout.editor.row-reverse":"Row Reverse","flex.layout.editor.column-reverse":"Column Reverse","flex.layout.editor.nowrap":"Nowrap","flex.layout.editor.wrap":"Wrap","flex.layout.editor.wrap-reverse":"Wrap Reverse","flex.layout.editor.flex-start":"Start","flex.layout.editor.flex-end":"End","flex.layout.editor.center":"Center","flex.layout.editor.space-between":"Between","flex.layout.editor.space-around":"Around","flex.layout.editor.baseline":"BaseLine","flex.layout.editor.stretch":"Stretch","flex.layout.editor.direction":"Direction","flex.layout.editor.justify-content":"Justify Content","flex.layout.editor.align-items":"Align Items","flex.layout.editor.align-content":"Align Content","flex.layout.item.property.title":"Layout Item Detail","flex.layout.item.property.grow":"Flex Grow","flex.layout.item.property.shrink":"Flex Shrink","flex.layout.item.property.basis":"Flex Basis","flex.layout.item.property.none":"none","flex.layout.item.property.auto":"auto","flex.layout.item.property.value":"value","grid.layout.editor.template.columns":"Columns","grid.layout.editor.column.gap":"Column Gap","grid.layout.editor.template.rows":"Rows","grid.layout.editor.row.gap":"Row Gap","grid.box.editor.box.title":"Box","grid.box.editor.type":"Type","grid.box.editor.repeat":"Repeat","grid.box.editor.length":"Length","grid.box.editor.none":"None","grid.box.editor.auto":"Auto","grid.box.editor.count":"Count","grid.box.editor.value":"Size","grid.layout.item.property.title":"Layout Item Detail","grid.layout.item.property.column":"Column","grid.layout.item.property.row":"Row","grid.layout.item.property.start":"Start","grid.layout.item.property.end":"End","grid.layout.item.property.none":"none","grid.layout.item.property.value":"value","box.model.property.title":"Box Model","box.model.property.margin":"Margin","box.model.property.padding":"Padding","component.items.canvas":"Canvas","component.items.layer":"Layer","component.items.3dlayer":"3D Layer","component.items.drawing":"Drawing","component.items.custom":"Custom Component","svg.text.property.title":"SVG Text Style","svg.text.property.textarea":"Text Area","svg.text.property.size":"Font Size","svg.text.property.weight":"Font Weight","svg.text.property.style":"Font Style","svg.text.property.anchor":"Text Anchor","svg.text.property.family":"Font Family","svg.text.property.length.adjust":"Length Adjust","svg.text.property.text.length":"Text Length","svg.text.property.start.offset":"Start Offset","fill.picker.popup.title":"SVG Fragment picker","gradient.editor.drag.message":"Drag if you want to move center pointer.","draw.manager.tolerance":"Tolerance","pattern.property.title":"Pattern","pattern.info.popup.title":"Pattern Info","pattern.info.popup.width":"Width","pattern.info.popup.height":"Height","pattern.info.popup.lineWidth":"Line Width","pattern.info.popup.lineHeight":"Line Height","pattern.info.popup.rotate":"Rotate","pattern.info.popup.blend":"Blend Mode","pattern.info.popup.foreColor":"Fore","pattern.info.popup.backColor":"Back","stroke.dasharray.editor.add":"Add Dash","viewport.panning.enable":"You can move the area by holding down space key and dragging the screen."},fr_FR:(ma={"app.title":"EASYLOGIC","app.sample":function(e,t,n){return"".concat(e,"-").concat(t,"-").concat(n)},"app.lang.en_US":"English","app.lang.ko_KR":"한국어","app.lang.fr_FR":"Français","app.label.lang":"Langue","app.layout.all":"All","app.layout.css":"CSS","app.layout.svg":"SVG","app.label.layout":"Menu Layout","app.theme.dark":"Sombre","app.theme.light":"Clair","app.theme.gray":"Gris","app.label.theme":"Thème","app.tab.title.projects":"Projets","app.tab.title.layers":"Objets","app.tab.title.libraries":"Librarie","app.tab.title.components":"Objet","app.tab.title.artboards":"Artboard","app.tab.title.assets":"Elements","app.tab.title.keyMap":"Clavier","app.confirm.message.artboard.items.removeArtboard":"Do you remove an artboard preview really?","menu.item.download.title":"Télécharger","menu.item.save.title":"Enregistrer","menu.item.export.title":"Exporter","menu.item.codepen.title":"CodePen","menu.item.fullscreen.title":"Ecran","menu.item.shortcuts.title":"ShortCuts","menu.item.github.title":"Github","menu.item.learn.title":"Docs","project.property.title":"Projet","project.information.property.title":"Information","project.information.property.name":"Nom","project.information.property.description":"Description","artboard.property.title":"Planche","artboard.property.layout.title.flex":"Flex","artboard.property.layout.title.grid":"Grille","layer.tree.property.title":"Objets","layer.tree.property.layout.title.flex":"Flex","layer.tree.property.layout.title.grid":"Grille","alignment.property.title":"Alignment","position.property.title":"Position","position.property.X":"X","position.property.Y":"Y","size.property.title":"Taille","size.property.width":"Largeur","size.property.height":"Hauteur","background.color.property.title":"Apparance","background.color.property.color":"Couleur","background.color.property.zindex":"z-index","background.color.property.opacity":"Opacité","background.color.property.blend":"Mélange","background.color.property.overflow":"Débordement","background.color.property.overflow.visible":"Visible","background.color.property.overflow.hidden":"Caché","background.color.property.overflow.scroll":"Scroll","background.color.property.overflow.auto":"Auto","blend.normal":"normal","blend.multiply":"multiplie","blend.screen":"écran","blend.overlay":"couche","blend.darken":"sombre","blend.lighten":"clair","blend.color-dodge":"dodge","blend.color-burn":"brulé","blend.hard-light":"dur","blend.soft-light":"doux","blend.difference":'diff"rence',"blend.exclusion":"exclusion","blend.hue":"teinte","blend.saturation":"saturation","blend.color":"couleur","blend.luminosity":"luminosité","background.image.property.title":"Remplissage","border.property.title":"Bordure","border.radius.property.title":"Rayon de bordure","boxshadow.property.title":"Ombres","filter.property.title":"Filtre","filter.property.blur":"Flou","filter.property.grayscale":"Echelle de gris","filter.property.hue-rotate":"Rotation teinte","filter.property.invert":"Invertir","filter.property.brightness":"Luminosité","filter.property.contrast":"Contraste","filter.property.drop-shadow":"Ombre portée","filter.property.drop-shadow.color":"Couleur","filter.property.drop-shadow.offsetX":"Décalage X","filter.property.drop-shadow.offsetY":"Décalage Y","filter.property.drop-shadow.blurRadius":"Flou","filter.property.opacity":"Opacité","filter.property.saturate":"Saturation","filter.property.sepia":"Sépia","filter.property.svg":"SVG","font.property.title":"Police","font.property.color":"Couleur","font.property.size":"Taille","font.property.stretch":"Etirement","font.property.weight":"Poids","font.property.style":"Style","font.property.family":"Famille","font.spacing.property.title":"Espaces du texte","font.spacing.property.lineHeight":"Hauteur de ligne","font.spacing.property.letterSpacing":"Espace inter-caractères","font.spacing.property.wordSpacing":"Espace inter-mots","font.spacing.property.indent":"Identation","backdrop.filter.property.title":"Filtre Backdrop","clippath.property.title":"Chemin du Clip","export.property.title":"Exporter","export.property.download":"Télécharger","image.property.title":"Image","image.property.origin":"Origine","image.property.size":"Taille","image.property.width":"Largeur","image.property.height":"Hauteur","video.property.title":"Video","video.property.play":"Jouer","video.property.pause":"Pause","video.property.volume":"Volume","video.property.playbackRate":"Vitesse de lecture","video.property.currentTime":"Temps actuel","video.property.playTime":"Temps de lecture","motion.property.title":"Mouvement","text.property.title":"Style Texte","text.property.align":"Alignement","text.property.transform":"Transformation","text.property.decoration":"Décoration","text.clip.property.title":"Clip Texte","text.shadow.property.title":"Ombres Texte","text.fill.property.title":"Remplissage Texte","text.fill.property.fill":"Remplissage","text.fill.property.stroke":"Trait","text.fill.property.strokeWidth":"Largeur","transform.property.title":"Transformation","transform.origin.property.title":"Origine Transformation","transition.property.title":"Transition CSS","keyframe.property.title":"Image clé CSS","selector.property.title":"Sélécteur","selector.property.none":"Aucun sélécteur","path.data.property.title":"Information Chemin","polygon.data.property.title":"Information Polygone","perspective.property.title":"Perspective","perspective.origin.property.title":"Origine Perspective","svg.item.property.title":"Appearance","svg.item.property.isMotionPath":"Chemin de mouvement","svg.item.property.fill":"Remplissage","svg.item.property.fillOpacity":"Opacité","svg.item.property.path":"Chemin","svg.item.property.polygon":"Polygone","svg.item.property.totalLength":"Longueur totale","svg.item.property.fillRule":"Règle remplissage","svg.item.property.stroke":"Trait","svg.item.property.strokeWidth":"Largeur de trait","svg.item.property.dashArray":"Suite tiret","svg.item.property.dashOffset":"Décalage tiret","svg.item.property.lineCap":"Chapeau Ligne","svg.item.property.lineJoin":"Jonction ligne","svg.item.property.filter":"Filtre","border.editor.all":"Tout","border.editor.width":"Largeur","border.editor.style":"Style","border.editor.color":"Couleur","border.editor.top":"Haut","border.editor.left":"Gauche","border.editor.right":"Droite","border.editor.bottom":"Bas","border.radius.editor.topLeft":"Haut gauche","border.radius.editor.topRight":"Haut droite","border.radius.editor.bottomLeft":"Bas gauche","border.radius.editor.bottomRight":"Bas droite","boxshadow.editor.blur":"Flou","boxshadow.editor.spread":"Etalement","css.property.editor.properties":"Propriétés","offset.path.list.editor.path":"Chemin","offset.path.list.editor.totalLength":"Longueur totale","offset.path.list.editor.distance":"Distance","offset.path.list.editor.direction":"Direction","offset.path.list.editor.rotate":"Rotation","svgfilter.select.editor.message.create":"Créer un filtre svg","svgfilter.select.editor.message.select":"Sélection filtre","fill.editor.message.click.image":"Cliquez sur aperçu si vous souhaitez sélectionner une image","fill.editor.message.drag.position":"Prendre pour changer la position centrale","fill.editor.x1":"Début X","fill.editor.x2":"Fin X","fill.editor.y1":"Début Y","fill.editor.y2":"Fin Y","fill.editor.spread":"Etalement","fill.editor.offset":"Décalage","fill.editor.cx":"Centre X","fill.editor.cy":"Centre Y","fill.editor.r":"Rayon de fin","fill.editor.fx":"Départ X","fill.editor.fy":"Départ Y","fill.editor.fr":"Rayon de départ","perspective.origin.editor.originX":"Origine X","perspective.origin.editor.originY":"Origine Y","path.manager.msg":"Appuyer ESC ou Entréz keypour fermer Edition","path.manager.mode.modify":"Modifier","path.manager.mode.path":"Chemin","path.manager.mode.transform":"Transformer","path.manager.mode.reverse":"Reverse","path.manager.mode.flipX":"Retouner X","path.manager.mode.flipY":"Retouner Y","path.manager.mode.flipOrigin":"Retouner Origine","colorpicker.popup.title":"Pipette","selector.popup.title":"Propiété de Sélecteur","selector.popup.selector":"Sélecteur","background.image.position.popup.title":"Motif de fond","background.image.position.popup.size":"Taille","background.image.position.popup.width":"Largeur","background.image.position.popup.height":"Hauteur","background.image.position.popup.repeat":"Repète","background.image.position.popup.blend":"Mélange","background.image.position.popup.type.repeat":"repète","background.image.position.popup.type.no-repeat":"sans repétition","background.image.position.popup.type.repeat-x":"repète-x","background.image.position.popup.type.repeat-y":"repète-y","background.image.position.popup.type.space":"espace","background.image.position.popup.type.round":"rond","gradient.picker.popup.title":"Sélection Gradient & Image","image.asset.property.title":"Image","video.asset.property.title":"Vidéo","color.asset.property.title":"Couleur","gradient.asset.property.title":"Gradient","pattern.asset.property.title":"Motif","svgfilter.asset.property.title":"Filtre SVG","inspector.tab.title.style":"Style","inspector.tab.title.component":"Composant","inspector.tab.title.transition":"Transition & Animation","inspector.tab.title.asset":"Eléments","inspector.tab.title.text":"Texte","inspector.tab.title.code":"Code","inspector.tab.title.history":"History"},w()(ma,"inspector.tab.title.history","History"),w()(ma,"timeline.property.title","Chronologie"),w()(ma,"timeline.property.resize","Drag if you want to resize timeline height."),w()(ma,"timeline.animation.property.title","Animations"),w()(ma,"timeline.play.control.play","Jouer"),w()(ma,"timeline.play.control.pause","Pause"),w()(ma,"timeline.play.control.first","Premier"),w()(ma,"timeline.play.control.prev","Précédent"),w()(ma,"timeline.play.control.next","Suivant"),w()(ma,"timeline.play.control.last","Dernier"),w()(ma,"timeline.play.control.direction","Direction"),w()(ma,"timeline.play.control.speed","Vitesse"),w()(ma,"timeline.play.control.repeat","Répéter"),w()(ma,"timeline.play.control.infinite","Infini"),w()(ma,"timeline.play.control.normal","normal"),w()(ma,"timeline.play.control.alternate","alternatif"),w()(ma,"timeline.play.control.reverse","inverse"),w()(ma,"timeline.play.control.alternate.reverse","inverse alternatif"),w()(ma,"timeline.value.editor.value","Valeur"),w()(ma,"timeline.value.editor.time","Temps"),w()(ma,"timeline.value.editor.timing","Calage temps"),w()(ma,"timeline.value.editor.offset.message","Please input enter key to change time offset."),w()(ma,"svgfilter.popup.title","Filtre SVG"),w()(ma,"css.item.rotate","Rotation"),w()(ma,"css.item.rotateX","Rotation X"),w()(ma,"css.item.rotateY","Rotation Y"),w()(ma,"css.item.rotateZ","Rotation Z"),w()(ma,"css.item.rotate3d","Rotation 3D"),w()(ma,"css.item.skewX","Oblique X"),w()(ma,"css.item.skewY","Oblique Y"),w()(ma,"css.item.translate","Translation"),w()(ma,"css.item.translateX","Translation X"),w()(ma,"css.item.translateY","Translation Y"),w()(ma,"css.item.translateZ","Translation Z"),w()(ma,"css.item.translate3d","Translation 3D"),w()(ma,"css.item.perspective","Perspéctive"),w()(ma,"css.item.scale","Echelle"),w()(ma,"css.item.scaleX","Echelle X"),w()(ma,"css.item.scaleY","Echelle Y"),w()(ma,"css.item.scaleZ","Echelle Z"),w()(ma,"css.item.scale3d","Echelle 3D"),w()(ma,"css.item.matrix","Matrice"),w()(ma,"css.item.matrix3d","Matrice 3D"),w()(ma,"animation.property.title","Animation CSS"),w()(ma,"animation.property.direction","Direction"),w()(ma,"animation.property.play.state","Etat lecture"),w()(ma,"animation.property.fill.mode","Mode remplissage"),w()(ma,"animation.property.delay","Délais"),w()(ma,"animation.property.duration","Durée"),w()(ma,"animation.property.iteration.count","Nombre Itérations"),w()(ma,"animation.property.Select a keyframe","Selectionner une image clé"),w()(ma,"animation.property.popup.title","Animation"),w()(ma,"animation.property.popup.timing.function","Fonction temps"),w()(ma,"animation.property.popup.keyframe","image clé"),w()(ma,"animation.property.popup.direction","Direction"),w()(ma,"animation.property.popup.play.state","Etat lecture"),w()(ma,"animation.property.popup.fill.mode","Mode remplissage"),w()(ma,"animation.property.popup.delay","Délais"),w()(ma,"animation.property.popup.duration","Duréé"),w()(ma,"animation.property.popup.iteration","Itération"),w()(ma,"animation.property.popup.normal","normal"),w()(ma,"animation.property.popup.reverse","inverse"),w()(ma,"animation.property.popup.alternate","alternatif"),w()(ma,"animation.property.popup.alternate-reverse","inverse alternatif"),w()(ma,"animation.property.popup.none","Aucun"),w()(ma,"animation.property.popup.forwards","en avant"),w()(ma,"animation.property.popup.backwards","en arrière"),w()(ma,"animation.property.popup.both","les deux"),w()(ma,"animation.property.popup.Select a keyframe","Selectionner une image clé"),w()(ma,"keyframe.popup.title","image clé"),w()(ma,"code.view.property.title","Vue code"),w()(ma,"svg.filter.editor.tab.filter","Filtrer"),w()(ma,"svg.filter.editor.tab.preset","Pre-rempli"),w()(ma,"svg.filter.editor.tab.asset","Eléments"),w()(ma,"svg.filter.editor.GRAPHIC REFERENCES","REFERENCES GRAPHIQUES"),w()(ma,"svg.filter.editor.SOURCES","SOURCES"),w()(ma,"svg.filter.editor.MODIFIER","MODIFIER"),w()(ma,"svg.filter.editor.LIGHTING","ECLAIRAGE"),w()(ma,"svg.filter.editor.COMBINERS","COMBINER"),w()(ma,"svg.filter.editor.Template","Modèle"),w()(ma,"layout.property.title","Disposition"),w()(ma,"layout.property.flex","Boîte Flex"),w()(ma,"layout.property.grid","Grille"),w()(ma,"layout.property.default","Défaut"),w()(ma,"flex.layout.editor.row","Ligne"),w()(ma,"flex.layout.editor.column","Colonne"),w()(ma,"flex.layout.editor.row-reverse","Inverse ligne"),w()(ma,"flex.layout.editor.column-reverse","Inverse Colonne"),w()(ma,"flex.layout.editor.nowrap","Non-emballé"),w()(ma,"flex.layout.editor.wrap","Emballé (wrap)"),w()(ma,"flex.layout.editor.wrap-reverse","Inverse emballé"),w()(ma,"flex.layout.editor.flex-start","Début"),w()(ma,"flex.layout.editor.flex-end","Fin"),w()(ma,"flex.layout.editor.center","Centrer"),w()(ma,"flex.layout.editor.space-between","Entre"),w()(ma,"flex.layout.editor.space-around","Autour"),w()(ma,"flex.layout.editor.baseline","Base"),w()(ma,"flex.layout.editor.stretch","Etirement"),w()(ma,"flex.layout.editor.direction","Direction"),w()(ma,"flex.layout.editor.justify-content","Justifier"),w()(ma,"flex.layout.editor.align-items","Aligner objets"),w()(ma,"flex.layout.editor.align-content","Aligner contenu"),w()(ma,"flex.layout.item.property.title","Détail Disposition objet"),w()(ma,"flex.layout.item.property.grow","Augmenter Flex"),w()(ma,"flex.layout.item.property.shrink","Réduire Flex"),w()(ma,"flex.layout.item.property.basis","Base Flex"),w()(ma,"flex.layout.item.property.none","Aucun"),w()(ma,"flex.layout.item.property.auto","auto"),w()(ma,"flex.layout.item.property.value","valeur"),w()(ma,"grid.layout.editor.template.columns","Colonne"),w()(ma,"grid.layout.editor.column.gap","Espace Colonne"),w()(ma,"grid.layout.editor.template.rows","Lignes"),w()(ma,"grid.layout.editor.row.gap","Espace lignes"),w()(ma,"grid.box.editor.box.title","Boîte"),w()(ma,"grid.box.editor.type","Type"),w()(ma,"grid.box.editor.repeat","Répéter"),w()(ma,"grid.box.editor.length","Longueur"),w()(ma,"grid.box.editor.none","Aucun"),w()(ma,"grid.box.editor.auto","Auto"),w()(ma,"grid.box.editor.count","Compte"),w()(ma,"grid.box.editor.value","Taille"),w()(ma,"grid.layout.item.property.title","Détail disposition objets"),w()(ma,"grid.layout.item.property.column","Colonne"),w()(ma,"grid.layout.item.property.row","Ligne"),w()(ma,"grid.layout.item.property.start","Début"),w()(ma,"grid.layout.item.property.end","Fin"),w()(ma,"grid.layout.item.property.none","Aucun"),w()(ma,"grid.layout.item.property.value","valeur"),w()(ma,"box.model.property.title","Modèle"),w()(ma,"box.model.property.margin","Marge"),w()(ma,"box.model.property.padding","Espace"),w()(ma,"component.items.canvas","Toile"),w()(ma,"component.items.layer","Objet"),w()(ma,"component.items.3dlayer","Objet 3D"),w()(ma,"component.items.drawing","Dessin"),w()(ma,"component.items.custom","Composant personnalisé"),w()(ma,"svg.text.property.title","Style SVG Texte"),w()(ma,"svg.text.property.textarea","Zone Texte"),w()(ma,"svg.text.property.size","Taille"),w()(ma,"svg.text.property.weight","Poids"),w()(ma,"svg.text.property.style","Style"),w()(ma,"svg.text.property.anchor","Ancre Texte"),w()(ma,"svg.text.property.family","Famille"),w()(ma,"svg.text.property.length.adjust","Ajusteement longueur"),w()(ma,"svg.text.property.text.length","Ajusteement Texte"),w()(ma,"svg.text.property.start.offset","Décallage départ"),w()(ma,"fill.picker.popup.title","Sélection Fragment SVG"),w()(ma,"gradient.editor.drag.message","Glisser pour déplacer centre."),w()(ma,"draw.manager.tolerance","Tolérance"),w()(ma,"pattern.property.title","Motif"),w()(ma,"pattern.info.popup.title","Info Motif"),w()(ma,"pattern.info.popup.width","Largeur"),w()(ma,"pattern.info.popup.height","Hauteur"),w()(ma,"pattern.info.popup.lineWidth","Largeur ligne"),w()(ma,"pattern.info.popup.lineHeight","Hauteur de ligne"),w()(ma,"pattern.info.popup.rotate","Rotatation"),w()(ma,"pattern.info.popup.blend","Mélange"),w()(ma,"pattern.info.popup.foreColor","Avant"),w()(ma,"pattern.info.popup.backColor","Arrière"),w()(ma,"stroke.dasharray.editor.add","Ajout tiret"),w()(ma,"viewport.panning.enable","You can move the area by holding down space and dragging the screen."),ma),ko_KR:{"app.title":"EASYLOGIC","app.sample":function(e,t,n){return"".concat(e,"-").concat(t,"-").concat(n)},"app.lang.en_US":"English","app.lang.ko_KR":"한국어","app.lang.fr_FR":"Français","app.label.lang":"언어","app.layout.all":"전체","app.layout.css":"CSS","app.layout.svg":"SVG","app.label.layout":"메뉴구성","app.theme.dark":"어두운","app.theme.light":"밝은","app.theme.toon":"그리기","app.theme.gray":"회색","app.label.theme":"테마","app.tab.title.projects":"프로젝트","app.tab.title.layers":"레이어","app.tab.title.libraries":"라이브러리","app.tab.title.components":"컴포넌트","app.tab.title.artboards":"아트보드","app.tab.title.assets":"에셋","app.tab.title.keyMap":"단축키","app.confirm.message.artboard.items.removeArtboard":"아트보드 프리뷰를 삭제 하시겠습니까?","menu.item.download.title":"다운로드","menu.item.save.title":"저장","menu.item.export.title":"내보내기","menu.item.codepen.title":"CodePen","menu.item.fullscreen.title":"전체화면","menu.item.shortcuts.title":"단축키","menu.item.github.title":"Github","menu.item.learn.title":"배우기","project.property.title":"프로젝트","project.information.property.title":"프로젝트 정보","project.information.property.name":"이름","project.information.property.description":"설명","artboard.property.title":"아트보드","artboard.property.layout.title.flex":"플렉스","artboard.property.layout.title.grid":"그리드","layer.tree.property.title":"레이어","layer.tree.property.layout.title.flex":"플렉스","layer.tree.property.layout.title.grid":"그리드","alignment.property.title":"정렬","position.property.title":"위치","position.property.X":"X","position.property.Y":"Y","size.property.title":"크기","size.property.width":"넓이","size.property.height":"높이","background.color.property.title":"표시","background.color.property.color":"배경색","background.color.property.zindex":"z-index","background.color.property.opacity":"투명도","background.color.property.blend":"블렌드모드","background.color.property.overflow":"오버플로우","background.color.property.overflow.visible":"보이기","background.color.property.overflow.hidden":"숨기기","background.color.property.overflow.scroll":"스크롤","background.color.property.overflow.auto":"자동","blend.normal":"Normal(표준) 혼합모드","blend.multiply":"Multiply(곱하기) 모드","blend.screen":"Screen(스크린) 모드 ","blend.overlay":"Overlay(오버레이) 모드","blend.darken":"Darken(어둡기) 모드","blend.lighten":"Lighten(밝기) 모드 ","blend.color-dodge":"Color Dodge(컬러 닷지) 모드 ","blend.color-burn":"Color Burn(컬러 번) 모드 ","blend.hard-light":"Hard Light(하드 라이트) 모드 ","blend.soft-light":"Soft Light(소프트 라이트) 모드 ","blend.difference":"Difference(차이) 모드","blend.exclusion":"Exclusion(제외) 모드","blend.hue":"Hue(색조) 모드 ","blend.saturation":"Saturation(채도) 모드","blend.color":"Color(색상) 모드","blend.luminosity":"Luminosity(광도) 모드 ","background.image.property.title":"배경(그라디언트)","border.property.title":"외곽선","border.radius.property.title":"둥근 외곽선","boxshadow.property.title":"그림자","filter.property.title":"필터","filter.property.blur":"흐림(Blur)","filter.property.grayscale":"회색(GrayScale)","filter.property.hue-rotate":"색조(HueRotate)","filter.property.invert":"반전(Invert)","filter.property.brightness":"밝기(Brightness)","filter.property.contrast":"대\b조(Contrast)","filter.property.drop-shadow":"그림자(Drop Shadow)","filter.property.drop-shadow.color":"색","filter.property.drop-shadow.offsetX":"X 간격","filter.property.drop-shadow.offsetY":"Y 간격","filter.property.drop-shadow.blurRadius":"흐림","filter.property.opacity":"투명도(Opacity)","filter.property.saturate":"채도(Saturate)","filter.property.sepia":"갈색톤(Sepia)","filter.property.svg":"SVG","font.property.title":"폰트","font.property.color":"색","font.property.size":"크기","font.property.stretch":"뻗기","font.property.weight":"굵기","font.property.style":"스타일","font.property.family":"글꼴","font.spacing.property.title":"폰트 공간","font.spacing.property.lineHeight":"줄 높이","font.spacing.property.letterSpacing":"글자 간격","font.spacing.property.wordSpacing":"단어 간격","font.spacing.property.indent":"들여쓰기","backdrop.filter.property.title":"후면 필터","clippath.property.title":"클립패스","export.property.title":"내보내기","export.property.download":"다운로드","image.property.title":"이미지","image.property.origin":"원본","image.property.size":"크기","image.property.width":"넓이","image.property.height":"높이","video.property.title":"비디오","video.property.play":"시작","video.property.pause":"멈춤","video.property.volume":"볼륨","video.property.playbackRate":"빠르기","video.property.currentTime":"현재 시간","video.property.playTime":"플레이 시간 간격","motion.property.title":"모션","path.data.property.title":"패스 정보","polygon.data.property.title":"폴리곤 정보","text.property.title":"텍스트 스타일","text.property.align":"정렬","text.property.transform":"변형","text.property.decoration":"장식","text.clip.property.title":"텍스트 클립","text.shadow.property.title":"텍스트 그림자","text.fill.property.title":"텍스트 채우기","text.fill.property.fill":"채우기","text.fill.property.stroke":"윤곽선","text.fill.property.strokeWidth":"윤곽선 굵기","transform.property.title":"트랜스폼","transform.origin.property.title":"트랜스폼 Origin","transition.property.title":"CSS 트랜지션","keyframe.property.title":"CSS 키프레임","selector.property.title":"CSS 셀렉터","selector.property.none":"선택자 없음","perspective.property.title":"투영(perspective)","perspective.origin.property.title":"투영 중심점","svg.item.property.title":"보이기","svg.item.property.isMotionPath":"모션 패스","svg.item.property.fill":"채우기","svg.item.property.fillOpacity":"투명도","svg.item.property.path":"패스","svg.item.property.polygon":"폴리곤","svg.item.property.totalLength":"전체 길이","svg.item.property.fillRule":"채우기 규칙","svg.item.property.stroke":"선","svg.item.property.strokeWidth":"선 굵기","svg.item.property.dashArray":"점선 길이","svg.item.property.dashOffset":"점선 위치","svg.item.property.lineCap":"선 모양","svg.item.property.lineJoin":"겹친 선","svg.item.property.filter":"필터","border.editor.all":"전체","border.editor.width":"크기","border.editor.style":"스타일","border.editor.color":"색","border.editor.top":"위","border.editor.left":"왼쪽","border.editor.right":"오른쪽","border.editor.bottom":"아래","border.radius.editor.topLeft":"왼쪽 위","border.radius.editor.topRight":"오른쪽 위","border.radius.editor.bottomLeft":"왼쪽 아래","border.radius.editor.bottomRight":"오른쪽 아래","boxshadow.editor.blur":"흐림","boxshadow.editor.spread":"길이","css.property.editor.properties":"속성","offset.path.list.editor.path":"패스","offset.path.list.editor.totalLength":"전체 길이","offset.path.list.editor.distance":"거리","offset.path.list.editor.direction":"방향","offset.path.list.editor.rotate":"회전","svgfilter.select.editor.message.create":"새로운 SVG Filter 를 만드세요.","svgfilter.select.editor.message.select":"필터를 선택하세요.","fill.editor.message.click.image":"이미지를 선택하고 싶으면 프리뷰 영역을 클릭하세요.","fill.editor.message.drag.position":"가운데 위치를 드래그 해보세요.","fill.editor.x1":"시작 X","fill.editor.x2":"끝 X","fill.editor.y1":"시작 Y","fill.editor.y2":"끝 Y","fill.editor.spread":"확산","fill.editor.offset":"위치","fill.editor.cx":"중심점 X","fill.editor.cy":"중심점 Y","fill.editor.r":"끝 반지름","fill.editor.fx":"시작 X","fill.editor.fy":"시작 Y","fill.editor.fr":"시작 반지름","perspective.origin.editor.originX":"중심점 X","perspective.origin.editor.originY":"중심점 Y","path.manager.msg":"편집을 종료할 때는 ESC 키나 Enter 키를 누르세요. 또는 화면을 클릭하시면 됩니다.","path.manager.mode.modify":"점 편집","path.manager.mode.path":"점 추가","path.manager.mode.transform":"변형","path.manager.mode.reverse":"순서변경","path.manager.mode.flipX":"X축 회전","path.manager.mode.flipY":"Y축 회전","path.manager.mode.flipOrigin":"전체 회전","colorpicker.popup.title":"색상 선택","selector.popup.title":"선택자 속성","selector.popup.selector":"선택자","background.image.position.popup.title":"배경 패턴","background.image.position.popup.size":"크기","background.image.position.popup.width":"넓이","background.image.position.popup.height":"높이","background.image.position.popup.repeat":"반복","background.image.position.popup.blend":"블렌드","background.image.position.popup.type.repeat":"반복","background.image.position.popup.type.no-repeat":"반복 안함","background.image.position.popup.type.repeat-x":"x축 반복","background.image.position.popup.type.repeat-y":"y축 반복","background.image.position.popup.type.space":"공백유지","background.image.position.popup.type.round":"반올림","gradient.picker.popup.title":"그라디언트와 이미지","image.asset.property.title":"이미지","video.asset.property.title":"비디오","color.asset.property.title":"색","gradient.asset.property.title":"그라디언트","pattern.asset.property.title":"패턴","svgfilter.asset.property.title":"SVG 필터","inspector.tab.title.style":"스타일 속성","inspector.tab.title.component":"컴포넌트 속성","inspector.tab.title.transition":"트랜지션과 애니메이션 속성","inspector.tab.title.asset":"에셋 관리자","inspector.tab.title.text":"텍스트","inspector.tab.title.code":"코드","inspector.tab.title.history":"기록","timeline.property.title":"타임라인","timeline.property.resize":"타임라인 높이를 변경합니다. 드래그 해주세요.","timeline.animation.property.title":"애니메이션","timeline.play.control.play":"플레이","timeline.play.control.pause":"멈춤","timeline.play.control.first":"처음으로","timeline.play.control.prev":"이전으로","timeline.play.control.next":"다음으로","timeline.play.control.last":"마지막으로","timeline.play.control.direction":"방향","timeline.play.control.speed":"속력","timeline.play.control.repeat":"반복","timeline.play.control.infinite":"무한","timeline.play.control.normal":"normal","timeline.play.control.alternate":"alternate","timeline.play.control.reverse":"reverse","timeline.play.control.alternate.reverse":"alternate reverse","timeline.value.editor.value":"값","timeline.value.editor.time":"시간","timeline.value.editor.timing":"타이밍 함수","timeline.value.editor.offset.message":"Enter키를 입력하면 적용됩니다.","svgfilter.popup.title":"SVG 필터","css.item.rotate":"회전","css.item.rotateX":"X축 회전","css.item.rotateY":"Y축 회전","css.item.rotateZ":"Z축 회전","css.item.rotate3d":"3D 회전","css.item.skewX":"X축 늘이기","css.item.skewY":"Y축 늘이기","css.item.translate":"이동","css.item.translateX":"X축 이동","css.item.translateY":"Y축 이동","css.item.translateZ":"Z축 이동","css.item.translate3d":"3D 이동","css.item.perspective":"원근","css.item.scale":"크기변경","css.item.scaleX":"X축 크기변경","css.item.scaleY":"Y축 크기변경","css.item.scaleZ":"Z축 크기변경","css.item.scale3d":"3D 크기변경","css.item.matrix":"변환 행렬","css.item.matrix3d":"3D 변환 행렬","animation.property.title":"CSS 애니메이션","animation.property.direction":"방향","animation.property.play.state":"플레이 상태","animation.property.fill.mode":"채우기 모드","animation.property.delay":"대기시간","animation.property.duration":"시간","animation.property.iteration.count":"반복 횟수","animation.property.select a keyframe":"키프레임을 선택해주세요","animation.property.popup.title":"CSS 애니메이션","animation.property.popup.timing.function":"타이밍 함수","animation.property.popup.keyframe":"키프레임","animation.property.popup.direction":"방향","animation.property.popup.play.state":"플레이 상태","animation.property.popup.fill.mode":"채우기 모드","animation.property.popup.delay":"대기시간","animation.property.popup.duration":"시간","animation.property.popup.iteration":"반복 횟수","animation.property.popup.normal":"시간순","animation.property.popup.reverse":"역시간순","animation.property.popup.alternate":"왕복 시간순","animation.property.popup.alternate-reverse":"왕복 역시간순","animation.property.popup.none":"none","animation.property.popup.forwards":"forwards","animation.property.popup.backwards":"backwards","animation.property.popup.both":"both","animation.property.popup.Select a keyframe":"키프레임을 선택해주세요.","keyframe.popup.title":"키프레임","code.view.property.title":"코드뷰","svg.filter.editor.tab.filter":"필터","svg.filter.editor.tab.preset":"프리셋","svg.filter.editor.tab.asset":"에셋","svg.filter.editor.GRAPHIC REFERENCES":"참조 그래픽","svg.filter.editor.SOURCES":"원본","svg.filter.editor.MODIFIER":"수정","svg.filter.editor.LIGHTING":"빛","svg.filter.editor.COMBINERS":"결합","svg.filter.editor.Template":"템플릿","layout.property.title":"레이아웃","layout.property.flex":"플렉스 박스","layout.property.grid":"그리드","layout.property.default":"기본 좌표","flex.layout.editor.row":"행","flex.layout.editor.column":"열","flex.layout.editor.row-reverse":"역방향 행","flex.layout.editor.column-reverse":"역방향 열","flex.layout.editor.nowrap":"감싸지 않기","flex.layout.editor.wrap":"감싸기","flex.layout.editor.wrap-reverse":"역방향 감싸기","flex.layout.editor.flex-start":"시작","flex.layout.editor.flex-end":"끝","flex.layout.editor.center":"중간","flex.layout.editor.space-between":"공간 중간 채움","flex.layout.editor.space-around":"공간 양끝 채움","flex.layout.editor.baseline":"기본선","flex.layout.editor.stretch":"펼치기","flex.layout.editor.direction":"방향","flex.layout.editor.justify-content":"컨텐츠 조정","flex.layout.editor.align-items":"아이템 정렬","flex.layout.editor.align-content":"컨텐츠 정렬","flex.layout.item.property.title":"플렉스 아이템 설정","flex.layout.item.property.grow":"공간 비율","flex.layout.item.property.shrink":"축소 비율","flex.layout.item.property.basis":"초기 크기","flex.layout.item.property.none":"없음","flex.layout.item.property.auto":"자동","flex.layout.item.property.value":"값","grid.layout.editor.template.columns":"열","grid.layout.editor.column.gap":"열 간격","grid.layout.editor.template.rows":"행","grid.layout.editor.row.gap":"행 간격","grid.box.editor.box.title":"영역","grid.box.editor.type":"타입","grid.box.editor.repeat":"반복","grid.box.editor.length":"길이","grid.box.editor.none":"없음","grid.box.editor.auto":"자동","grid.box.editor.count":"개수","grid.box.editor.value":"크기","grid.layout.item.property.title":"그리드 아이템 설정","grid.layout.item.property.column":"열","grid.layout.item.property.row":"행","grid.layout.item.property.start":"시작","grid.layout.item.property.End":"끝","grid.layout.item.property.none":"없음","grid.layout.item.property.value":"값","box.model.property.title":"박스 모델","box.model.property.margin":"마진","box.model.property.padding":"패딩","component.items.canvas":"캔버스","component.items.layer":"레이어","component.items.3dlayer":"3D 레이어","component.items.drawing":"그리기","component.items.custom":"사용자 정의 컴포넌트","svg.text.property.title":"SVG Text 스타일","svg.text.property.textarea":"텍스트 입력","svg.text.property.size":"폰트 크기","svg.text.property.weight":"폰트 굵기","svg.text.property.style":"폰트 스타일","svg.text.property.anchor":"텍스트 위치","svg.text.property.family":"폰트 글꼴","svg.text.property.length.adjust":"길이 대응","svg.text.property.text.length":"텍스트 길이","svg.text.property.start.offset":"시작 지점","fill.picker.popup.title":"색 채우기","gradient.editor.drag.message":"드래그 하면 중심점을 옮길 수 있습니다.","draw.manager.tolerance":"포인트 허용 오차","pattern.property.title":"패턴","pattern.info.popup.title":"패턴 정보","pattern.info.popup.width":"넓이","pattern.info.popup.height":"높이","pattern.info.popup.lineWidth":"선 넓이","pattern.info.popup.lineHeight":"선 높이","pattern.info.popup.rotate":"회전","pattern.info.popup.blend":"블렌드","pattern.info.popup.foreColor":"패턴색","pattern.info.popup.backColor":"배경색","stroke.dasharray.editor.add":"점 추가","viewport.panning.enable":"space 를 누른채 화면을 드래그 하면 영역을 움직일 수 있습니다."}},Aa={locales:Da,get:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"en_US",r=Da[n][e]||Da.en_US[e]||e||void 0;if(Hr(r))return r(t);var i=r;return e===i?e.split(".").pop():($r(t,(function(e,t){i=i.replace(new RegExp("{".concat(e,"}"),"ig"),t)})),i)},hasKey:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"en_US";return!(!Da[t][e]&&!Da.en_US[e])}},ja={dark:{left_size:250,left_max_size:400,bottom_size:150,bottom_max_size:500,timeline_grid_font_color:"#ececec",timeline_line_color:"red",timeline_timeview_bottom_color:"black"},light:{left_size:250,left_max_size:400,bottom_size:150,bottom_max_size:500,timeline_grid_font_color:"black",timeline_line_color:"#4778d4",timeline_timeview_bottom_color:"#ececec"},toon:{left_size:250,left_max_size:400,bottom_size:150,bottom_max_size:500,timeline_grid_font_color:"black",timeline_line_color:"#4778d4",timeline_timeview_bottom_color:"#ececec"}};function $a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var Ma=function(){function e(t){xa()(this,e),this.$editor=t,this.items=[],this.itemKeys={}}return wa()(e,[{key:"initialize",value:function(){this.items=[],this.itemKeys={}}},{key:"currentProject",value:function(e){var t=this.$editor.selection.currentProject;t&&e&&e(t)}},{key:"empty",value:function(){this.select()}},{key:"each",value:function(e){this.items.forEach((function(t,n){e&&e(t,n)}))}},{key:"refreshCache",value:function(e){var t=this;this.items=e,this.itemKeys={},this.items.forEach((function(e){t.itemKeys[e.id]=e}))}},{key:"cachedList",value:function(){return this.items.map((function(e){return function(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:Ba;return" ".concat(t," ").concat(e)}),Fa=/^dom (.*)/gi,La=/^load (.*)/gi,_a=/^bind (.*)/gi,Ba="|",Ra={},Na=function(){for(var e=arguments.length,t=new Array(e),n=0;n1&&void 0!==arguments[1]?arguments[1]:Ba;return Ia(e,t)},yo=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ba;return Ia("after(".concat(e,")"),t)},vo=fo,mo=fo,go=(fo("ArrowUp"),fo("ArrowDown"),fo("ArrowLeft"),fo("ArrowRight"),fo("Enter")),bo=(fo("Space"),fo("Escape")),xo=fo("isAltKey"),ko=(fo("isShiftKey"),fo("isMetaKey"),fo("isCtrlKey"),fo("self"),fo("fit"),fo("passive"),fo("vdom")),wo=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:100;return fo("debounce(".concat(e,")"))},So=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:300;return fo("delay(".concat(e,")"))},Po=(wo(1e3),function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:100;return fo("throttle(".concat(e,")"))}),Eo=(fo("capture()"),function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"move";return yo("bodyMouseMove ".concat(e))}),To=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"end";return yo("bodyMouseUp ".concat(e))},Oo=yo("preventDefault"),Co=yo("stopPropagation"),Do=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"$el";return"load "+e},Ao=function(e){if(""===e)return"";var t=Vn();return Ra[t]=e,t},jo=function(e){return function(){return this.prevState[e]!=this.state[e]}},$o=function(){return!0},Mo=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"$el",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return"bind "+e+(t?Ba+Ao(t):"")};function Io(e,t){return Math.sign(e)*Math.min(t,Math.abs(e))}var Fo={addEvent:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];e&&e.addEventListener(t,n,r)},removeEvent:function(e,t,n){e&&e.removeEventListener(t,n)},pos:function(e){return e.touches&&e.touches[0]?e.touches[0]:e},posXY:function(e){var t=this.pos(e);return{x:t.pageX,y:t.pageY}}},Lo=n(6),_o=n.n(Lo),Bo=n(9),Ro=n.n(Bo),No=n(91),Vo=n.n(No),zo=function(e,t,n,r){n?r&&n===r||function(e,t,n){"boolean"==typeof n?function(e,t,n){n?(e.setAttribute(t,t),e[t]=n):(e.removeAttribute(t),e[t]=n)}(e,t,n):e.setAttribute(t,n)}(e,t,n):function(e,t,n){"boolean"==typeof n?function(e,t){e.removeAttribute(t),e[t]=!1}(e,t):t&&function(e,t){e.removeAttribute(t)}(e,t)}(e,t,r)};function Go(e){var t={},n=!0,r=!1,i=void 0;try{for(var a,o=e[Symbol.iterator]();!(n=(a=o.next()).done);n=!0){var s=a.value;t[s.name]=s.value}}catch(e){r=!0,i=e}finally{try{n||null==o.return||o.return()}finally{if(r)throw i}}return t}function Ho(e,t,n,r){if(t)if(n){if(u=t,(s=n).nodeType===Node.TEXT_NODE&&s.textContent!==u.textContent||s.nodeName!==u.nodeName)e.replaceChild(n.cloneNode(!0),t);else if(n.nodeType!==Node.TEXT_NODE&&"[object HTMLUnknownElement]"!==n.toString()){!function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=new Set([].concat(A()(Object.keys(t)),A()(Object.keys(n))));r.forEach((function(r){zo(e,r,t[r],n[r])}))}(t,Go(n.attributes),Go(t.attributes));var i=Uo(t),a=Uo(n),o=Math.max(i.length,a.length);for(r=0;r0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(xa()(this,e),this.value=t,Ur(this.value)&&isNaN(this.value))throw new Error("NaN is not able to set");this.unit=n}return wa()(e,[{key:Symbol.toPrimitive,value:function(e){return"number"==e?this.value:this.toString()}},{key:"toString",value:function(){switch(this.unit){case"string":case"number":return this.value+"";case"var":return"var(--".concat(this.value,")");case"calc":return"calc(".concat(this.value,")");default:return this.value+this.unit}}},{key:"isUnitType",value:function(e){return this.unit===e}},{key:"isCalc",value:function(){return this.isUnitType("calc")}},{key:"isFr",value:function(){return this.isUnitType("fr")}},{key:"isPercent",value:function(){return this.isUnitType("%")}},{key:"isPx",value:function(){return this.isUnitType("px")}},{key:"isEm",value:function(){return this.isUnitType("em")}},{key:"isDeg",value:function(){return this.isUnitType("deg")}},{key:"isRad",value:function(){return this.isUnitType("rad")}},{key:"isTurn",value:function(){return this.isUnitType("turn")}},{key:"isSecond",value:function(){return this.isUnitType("s")}},{key:"isMs",value:function(){return this.isUnitType("ms")}},{key:"isNumber",value:function(){return this.isUnitType("number")}},{key:"isString",value:function(){return this.isUnitType("")}},{key:"isVar",value:function(){return this.isUnitType("--")}},{key:"isNaN",value:function(e){function t(){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(){return Ur(this.value)&&isNaN(this.value)}))},{key:"set",value:function(e){return this.value=e,this}},{key:"add",value:function(e){return this.value+=+e,this}},{key:"sub",value:function(e){return this.add(-1*e)}},{key:"mul",value:function(e){return this.value*=+e,this}},{key:"div",value:function(e){return this.value/=+e,this}},{key:"mod",value:function(e){return this.value%=+e,this}},{key:"clone",value:function(){return new e(this.value,this.unit)}},{key:"getUnitName",value:function(){return"%"===this.unit?"percent":this.unit}},{key:"toJSON",value:function(){return this.toString()}},{key:"rate",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:100;return this.value/e}},{key:"stringToPercent",value:function(){return Br(Wo[this.value])?e.percent(Wo[this.value]):e.percent(0)}},{key:"stringToEm",value:function(e){return this.stringToPercent().toEm(e)}},{key:"stringToPx",value:function(e){return this.stringToPercent().toPx(e)}},{key:"toPercent",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:16;return this.isPercent()?this.clone():this.isPx()?e.percent(100*this.value/t):this.isEm()?e.percent(this.value*n*100/t):this.isString()?this.stringToPercent(t):this.isDeg()?e.percent(this.value/360*100):void 0}},{key:"toEm",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:16;return this.isPercent()?e.em(this.value/100*t/n):this.isPx()?e.em(this.value/n):this.isEm()?this.clone():this.isString()?this.stringToEm(t):void 0}},{key:"toPx",value:function(t){arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this.isPercent()?e.px(this.value/100*t):this.isPx()?this.clone():this.isEm()?e.px(this.value/100*t/16):this.isString()?this.stringToPx(t):void 0}},{key:"toDeg",value:function(){return this.isDeg()?this.clone():this.isTurn()?e.deg(360*this.value):this.isRad()?e.deg(this.value*(180/Math.PI)):void 0}},{key:"toTurn",value:function(){return this.isTurn()?this.clone():this.isDeg()?e.turn(this.value/360):void 0}},{key:"toSecond",value:function(){return this.isSecond()?this:this.isMs()?e.second(this.value/1e3):void 0}},{key:"toMs",value:function(){return this.isSecond()?e.ms(1e3*this.value):this.isMs()?this:void 0}},{key:"to",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:16;return"px"===e?this.toPx(t,n):"%"===e||"percent"===e?this.toPercent(t,n):"em"===e?this.toEm(t,n):"deg"===e?this.toDeg():"turn"===e?this.toTurn():void 0}},{key:"toUnit",value:function(t){return new e(this.value,t)}},{key:"calculate",value:function(e,t){var n=this[e];return n?n.call(this,t):this}},{key:"includes",value:function(){for(var e=arguments.length,t=new Array(e),n=0;nt[i].value&&(r=t[i]);return r}},{key:"max",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n1&&void 0!==arguments[1]?arguments[1]:"div";Yo(this,e.create(n).html(t))}},{key:"updateSVGDiff",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"div";Yo(this,e.create(n).html("".concat(t,"")).firstChild.firstChild)}},{key:"find",value:function(e){return this.el.querySelector(e)}},{key:"$",value:function(t){var n=this.find(t);return n?e.create(n):null}},{key:"findAll",value:function(e){return A()(this.el.querySelectorAll(e))}},{key:"$$",value:function(t){return this.findAll(t).map((function(t){return e.create(t)}))}},{key:"empty",value:function(){for(;this.el.firstChild;)this.el.removeChild(this.el.firstChild);return this}},{key:"append",value:function(e){return Vr(e)?this.el.appendChild(document.createTextNode(e)):this.el.appendChild(e.el||e),this}},{key:"prepend",value:function(e){return Vr(e)?this.el.prepend(document.createTextNode(e)):this.el.prepend(e.el||e),this}},{key:"prependHTML",value:function(t){var n=e.create("div").html(t);return this.prepend(n.createChildrenFragment()),n}},{key:"appendHTML",value:function(t){var n=e.create("div").html(t);return this.append(n.createChildrenFragment()),n}},{key:"createChildrenFragment",value:function(){var e=this.children(),t=document.createDocumentFragment();return e.forEach((function(e){return t.appendChild(e.el)})),t}},{key:"appendTo",value:function(e){return(e.el?e.el:e).appendChild(this.el),this}},{key:"remove",value:function(){return this.el.parentNode&&this.el.parentNode.removeChild(this.el),this}},{key:"removeChild",value:function(e){return this.el.removeChild(e.el||e),this}},{key:"text",value:function(t){if(_r(t))return this.el.textContent;var n=t;return t instanceof e&&(n=t.text()),this.el.textContent!==n&&(this.el.textContent=n),this}},{key:"css",value:function(e,t){if(Br(e)&&Br(t))this.el.style[e]=t;else if(Br(e)){if(Vr(e))return getComputedStyle(this.el)[e];Object.assign(this.el.style,e)}return this}},{key:"getComputedStyle",value:function(e){function t(){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(){for(var e=getComputedStyle(this.el),t={},n=arguments.length,r=new Array(n),i=0;i0&&void 0!==arguments[0]?arguments[0]:"block";return this.el.style.display="none"!=e?e:"block",this}},{key:"hide",value:function(){return this.el.style.display="none",this}},{key:"isHide",value:function(){return"none"===this.el.style.display}},{key:"isShow",value:function(){return!this.isHide()}},{key:"toggle",value:function(e){var t=this.isHide();return 1==arguments.length?e?this.show():this.hide():t?this.show():this.hide()}},{key:"scrollIntoView",value:function(){this.el.scrollIntoView()}},{key:"addScrollLeft",value:function(e){return this.el.scrollLeft+=e,this}},{key:"addScrollTop",value:function(e){return this.el.scrollTop+=e,this}},{key:"setScrollTop",value:function(e){return this.el.scrollTop=e,this}},{key:"setScrollLeft",value:function(e){return this.el.scrollLeft=e,this}},{key:"scrollTop",value:function(){return this.el===document.body?e.getScrollTop():this.el.scrollTop}},{key:"scrollLeft",value:function(){return this.el===document.body?e.getScrollLeft():this.el.scrollLeft}},{key:"scrollHeight",value:function(){return this.el.scrollHeight}},{key:"scrollWidth",value:function(){return this.el.scrollWidth}},{key:"on",value:function(e,t,n,r){return this.el.addEventListener(e,t,n,r),this}},{key:"off",value:function(e,t){return this.el.removeEventListener(e,t),this}},{key:"getElement",value:function(){return this.el}},{key:"createChild",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},a=e.create(t,n,r);return a.css(i),this.append(a),a}},{key:"children",value:function(){var t=this.el.firstElementChild;if(!t)return[];var n=[];do{n.push(e.create(t)),t=t.nextElementSibling}while(t);return n}},{key:"childLength",value:function(){return this.el.children.length}},{key:"replace",value:function(e){return this.el.parentNode&&this.el.parentNode.replaceChild(e.el||e,this.el),this}},{key:"replaceChild",value:function(e,t){return this.el.replaceChild(t.el||t,e.el||e),this}},{key:"checked",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return 0==arguments.length?!!this.el.checked:(this.el.checked=!!e,this)}},{key:"click",value:function(){return this.el.click(),this}},{key:"focus",value:function(){return this.el.focus(),this}},{key:"select",value:function(){if("true"===this.attr("contenteditable")){var e=document.createRange();e.selectNodeContents(this.el);var t=window.getSelection();t.removeAllRanges(),t.addRange(e)}else this.el.select();return this}},{key:"blur",value:function(){return this.el.blur(),this}},{key:"context",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"2d";return this._initContext||(this._initContext=this.el.getContext(e)),this._initContext}},{key:"resize",value:function(e){var t=e.width,n=e.height;this._initContext=null;var r=this.context(),i=window.devicePixelRatio||1;this.px("width",+t),this.px("height",+n),this.el.width=t*i,this.el.height=n*i,r.scale(i,i)}},{key:"toDataURL",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"image/png",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return this.el.toDataURL(e,t)}},{key:"clear",value:function(){this.context().clearRect(0,0,this.el.width,this.el.height)}},{key:"update",value:function(e){this.clear(),e.call(this,this)}},{key:"drawImage",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=this.context(),i=window.devicePixelRatio||1;r.drawImage(e,t,n,e.width,e.height,0,0,this.el.width/i,this.el.height/i)}},{key:"drawOption",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this.context();Object.assign(t,e)}},{key:"drawLine",value:function(e,t,n,r){var i=this.context();i.beginPath(),i.moveTo(e,t),i.lineTo(n,r),i.stroke(),i.closePath()}},{key:"drawPath",value:function(){var e=this.context();e.beginPath();for(var t=arguments.length,n=new Array(t),r=0;r1&&void 0!==arguments[1]?arguments[1]:{};xa()(this,e),this.context=t,this.options=n}return wa()(e,[{key:"initialize",value:function(){}},{key:"load",value:function(){}},{key:"refresh",value:function(){}},{key:"render",value:function(){}},{key:"getRef",value:function(e){return this.context.getRef(e)}},{key:"run",value:function(){}},{key:"destroy",value:function(){}}]),e}(),es={touchstart:!0,touchmove:!0,mousedown:!0,mouseup:!0,mousemove:!0},ts={doubletab:"touchend"},ns={doubletab:!0},rs=function(e){function t(){return xa()(this,t),Pa()(this,Ta()(t).apply(this,arguments))}return Ca()(t,e),wa()(t,[{key:"initialize",value:function(){var e=this;this.destroy(),this._domEvents||(this._domEvents=this.context.filterProps(Fa)),this._domEvents.forEach((function(t){return e.parseEvent(t)}))}},{key:"destroy",value:function(){this.removeEventAll()}},{key:"removeEventAll",value:function(){var e=this;this.getBindings().forEach((function(t){e.removeEvent(t)})),this.initBindings()}},{key:"removeEvent",value:function(e){var t=e.eventName,n=e.dom,r=e.callback;Fo.removeEvent(n,t,r)}},{key:"getBindings",value:function(){return this._bindings||this.initBindings(),this._bindings}},{key:"addBinding",value:function(e){this.getBindings().push(e)}},{key:"initBindings",value:function(){this._bindings=[]}},{key:"matchPath",value:function(e,t){return e?e.matches(t)?e:this.matchPath(e.parentElement,t):null}},{key:"hasDelegate",value:function(e,t){return this.matchPath(e.target||e.srcElement,t.delegate)}},{key:"makeCallback",value:function(e,t){return e.delegate?this.makeDelegateCallback(e,t):this.makeDefaultCallback(e,t)}},{key:"makeDefaultCallback",value:function(e,t){var n=this;return function(r){var i=n.runEventCallback(r,e,t);if(Br(i))return i}}},{key:"makeDelegateCallback",value:function(e,t){var n=this;return function(r){var i=n.hasDelegate(r,e);if(i){r.$dt=Zo.create(i);var a=n.runEventCallback(r,e,t);if(Br(a))return a}}}},{key:"runEventCallback",value:function(e,t,n){var r=this.context;if(e.xy=Fo.posXY(e),t.beforeMethods.length&&t.beforeMethods.every((function(t){return r[t.target].call(r,e,t.param)})),this.checkEventType(e,t)){var i=n(e,e.$dt,e.xy);return!1!==i&&t.afterMethods.length&&t.afterMethods.forEach((function(t){return r[t.target].call(r,e,t.param)})),i}}},{key:"checkEventType",value:function(e,t){var n=this.context,r=!0;t.codes.length&&(r=!!e.code&&t.codes.indexOf(e.code.toLowerCase())>-1||!!e.key&&t.codes.indexOf(e.key.toLowerCase())>-1);var i=!0;return t.checkMethodList.length&&(i=t.checkMethodList.every((function(t){var r=n[t];return Hr(r)&&r?r.call(n,e):!Br(r)||!!r}))),r&&i}},{key:"getDefaultDomElement",value:function(e){var t,n=this.context;return(t=e?n.refs[e]||n[e]||window[e]:n.el||n.$el||n.$root)instanceof Zo?t.getElement():t}},{key:"getRealEventName",value:function(e){return ts[e]||e}},{key:"getCustomEventName",value:function(e){return ns[e]?e:""}},{key:"getDefaultEventObject",value:function(e,t){var n=this.context,r=t,i=r.filter((function(e){return!!n[e]})),a=ui(r,"after"),o=P()(a,2),s=o[0],u=o[1],c=ui(r,"before"),l=P()(c,2),p=l[0],h=l[1],f=ui(r,"debounce"),d=P()(f,2),y=d[0],v=d[1],m=ui(r,"delay"),g=P()(m,2),b=g[0],x=g[1],k=ui(r,"throttle"),w=P()(k,2),S=w[0],E=w[1],T=ui(r,"capture"),O=P()(T,1)[0],C=[].concat(A()(i),A()(s),A()(p),A()(b),A()(y),A()(S),A()(O)),D=r.filter((function(e){return-1===C.indexOf(e)})).map((function(e){return e.toLowerCase()}));return{eventName:this.getRealEventName(e),customEventName:this.getCustomEventName(e),codes:D,captures:O,afterMethods:u,beforeMethods:h,delayMethods:x,debounceMethods:v,throttleMethods:E,checkMethodList:i}}},{key:"addEvent",value:function(e,t){e.callback=this.makeCallback(e,t),this.addBinding(e);var n=!!e.captures.length;es[e.eventName]&&(n={passive:!0,capture:n}),Fo.addEvent(e.dom,e.eventName,e.callback,n)}},{key:"makeCustomEventCallback",value:function(e,t){var n=this;if("doubletab"===e.customEventName){var r=300;return e.delayMethods.length&&(r=+e.delayMethods[0].target),function(){n.doubleTab?(performance.now()-n.doubleTab.time-1})).forEach((function(e){var n,i,a,o,s,u,c,l,p,h,f,d,y,v,m;return Ro.a.async((function(g){for(;;)switch(g.prev=g.next){case 0:if(n=r.context[e],i=e.split(Ba),a=P()(i,2),e=a[0],o=a[1],s=r.getRef(o),u=$o,""!=s&&Vr(s)?u=jo(s):Hr(s)&&(u=s),c=e.split("bind ")[1],l=r.context.refs[c],p=Hr(u)&&u.call(r.context),!l||!p){g.next=16;break}return g.next=11,Ro.a.awrap(n.call.apply(n,[r.context].concat(t)));case 11:if(h=g.sent){g.next=14;break}return g.abrupt("return");case 14:for(f=Object.keys(h),d=0,y=f.length;d0&&void 0!==arguments[0]?arguments[0]:{},t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this.prevState=this.state,this.state=Object.assign({},this.state,e),t&&this.load()}},{key:"toggleState",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this.setState(w()({},e,!this.state[e]),t)}},{key:"_reload",value:function(e){this.props=e,this.state={},this.setState(this.initState(),!1),this.refresh(!0)}},{key:"render",value:function(e){this.$el=this.parseTemplate(ei(ss(),this.template())),this.refs.$el=this.$el,e&&e.append(this.$el),this.load(),this.afterRender()}},{key:"initialize",value:function(){this.state=this.initState()}},{key:"afterRender",value:function(){}},{key:"components",value:function(){return{}}},{key:"getRef",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n-1}},{key:"parseProperty",value:function(e){var t={},n=!0,r=!1,i=void 0;try{for(var a,o=e.el.attributes[Symbol.iterator]();!(n=(a=o.next()).done);n=!0){var s=a.value;t[s.nodeName]=s.nodeValue}}catch(e){r=!0,i=e}finally{try{n||null==o.return||o.return()}finally{if(r)throw i}}return e.$$("property").forEach((function(e){var n=e.attrs("name","value","type"),r=P()(n,3),i=r[0],a=r[1],o=r[2],s=a||e.text();"json"===o&&(s=JSON.parse(s)),t[i]=s})),t}},{key:"parseSourceName",value:function(e){return e.parent?[e.sourceName].concat(A()(this.parseSourceName(e.parent))):[e.sourceName]}},{key:"parseComponent",value:function(){var e=this,t=this.$el,n=[];this.childComponentKeysString&&(n=t.$$(this.childComponentKeysString)),n.forEach((function(t){var n=t.el.tagName.toLowerCase(),r=e.childComponentSet.get(n),i=e.childComponents[r],a=e.parseProperty(t),o=t.attr("ref"),s=null;e.children[o]?(s=e.children[o])._reload(a):(s=new i(e,a),e.children[o||s.id]=s,s.render()),t.replace(s.$el)})),$r(this.children,(function(t,n){n&&n.clean()&&delete e.children[t]}))}},{key:"clean",value:function(){if(this.$el&&!this.$el.hasParent())return $r(this.children,(function(e,t){t.clean()})),this.destroy(),this.$el=null,!0}},{key:"refresh",value:function(){this.load()}},{key:"_afterLoad",value:function(){this.runHandlers("initialize"),this.bindData(),this.parseComponent()}},{key:"load",value:function(){var e,t,n,r=this,i=arguments;return Ro.a.async((function(a){for(;;)switch(a.prev=a.next){case 0:for(e=i.length,t=new Array(e),n=0;n-1})).forEach((function(e){var n,i,a,o,s,u,c,l,p;return Ro.a.async((function(h){for(;;)switch(h.prev=h.next){case 0:if(n=e.split("load ")[1],i=n.split(Ba).map((function(e){return e.trim()})),a=T()(i),o=a[0],s=(s=a.slice(1)).map((function(e){return e.trim()})),u=Boolean(s.filter((function(e){return ko.includes(e)})).length),!r.refs[o]){h.next=11;break}return h.next=7,Ro.a.awrap((c=r[e]).call.apply(c,[r].concat(t)));case 7:Rr(l=h.sent)&&(l=l.join("")),p=r.parseTemplate(ei(os(),l),!0),u?r.refs[o].htmlDiff(p):r.refs[o].html(p);case 11:case"end":return h.stop()}}))})));case 4:this._afterLoad();case 5:case"end":return a.stop()}}),null,this)}},{key:"runHandlers",value:function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"run",t=arguments.length,n=new Array(t>1?t-1:0),r=1;r"}},{key:"eachChildren",value:function(e){Hr(e)&&$r(this.children,(function(t,n){e(n)}))}},{key:"rerender",value:function(){var e=this.$el.parent();this.destroy(),this.render(e)}},{key:"destroy",value:function(){this.eachChildren((function(e){e.destroy()})),this.runHandlers("destroy"),this.$el.remove(),this.$el=null,this.refs={},this.children={}}},{key:"collectProps",value:function(){return Dr(this,ls)}},{key:"filterProps",value:function(e){return this.collectProps().filter((function(t){return t.match(e)}))}},{key:"self",value:function(e){return e&&e.$dt&&e.$dt.is(e.target)}},{key:"isAltKey",value:function(e){return e.altKey}},{key:"isCtrlKey",value:function(e){return e.ctrlKey}},{key:"isShiftKey",value:function(e){return e.shiftKey}},{key:"isMetaKey",value:function(e){return e.metaKey||"Meta"==e.key||e.code.indexOf("Meta")>-1}},{key:"preventDefault",value:function(e){return e.preventDefault(),!0}},{key:"stopPropagation",value:function(e){return e.stopPropagation(),!0}},{key:"bodyMouseMove",value:function(e,t){this[t]&&this.emit("add/body/mousemove",this[t],this,e.xy)}},{key:"bodyMouseUp",value:function(e,t){this[t]&&this.emit("add/body/mouseup",this[t],this,e.xy)}}]),e}(),hs=o.fromValues(0,0,0);function fs(e,t){return Math.abs(e[0]-t[0])<1}function ds(e,t){return Math.abs(e[1]-t[1])<1}var ys=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3;xa()(this,e),this.editor=t,this.map=new Map,this.snapTargetLayers=[],this.snapDistance=n}return wa()(e,[{key:"clear",value:function(){var e=this;this.snapTargetLayers=this.editor.selection.snapTargetLayers.map((function(t){return e.convertMatrix(t)}))}},{key:"convertMatrix",value:function(e){var t=this.convertGuideAndPathMatrix(e),n=t.map((function(e){return e[0]})),r=t.map((function(e){return e[1]}));return{id:e.id,xList:n,yList:r,verties:t}}},{key:"convertGuideAndPathMatrix",value:function(e){var t=e.guideVerties(),n=e.pathVerties();return[].concat(A()(t),A()(n))}},{key:"getSnapPoints",value:function(){var e=this,t=[];return this.editor.selection.snapTargetLayersWithSelection.forEach((function(n){t.push.apply(t,A()(e.convertGuideAndPathMatrix(n)))})),t}},{key:"checkX",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=[];return e.forEach((function(e,i){t.forEach((function(t,a){var o=e-t;Math.abs(o)<=n&&r.push({targetX:e,sourceX:t,sourceIndex:a,targetIndex:i,dx:o})}))})),r}},{key:"checkY",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=[];return e.forEach((function(e,i){t.forEach((function(t,a){var o=e-t;Math.abs(o)<=n&&r.push({targetY:e,sourceY:t,sourceIndex:a,targetIndex:i,dy:o})}))})),r}},{key:"check",value:function(e){var t=this,n=[],r=this.snapDistance,i=e.map((function(e){return e[0]})),a=e.map((function(e){return e[1]}));return this.snapTargetLayers.forEach((function(e){var s=t.checkX(e.xList,i,r)[0],u=t.checkY(e.yList,a,r)[0];n.push(o.fromValues(s?s.dx:0,u?u.dy:0,0))})),n.find((function(e){return Wr(e[0])||Wr(e[1])}))||hs}},{key:"getGuidesByPointPoint",value:function(e,t){for(var n,r,i=[],a=0,o=e.length;a1&&void 0!==arguments[1]?arguments[1]:"keydown",r=this.checkShortCut(this.makeKeyCodeString(e),this.makeKeyString(e),this.makeCodeString(e));if(r){var i=r.filter((function(e){return e.eventType===n})).filter((function(e){return t.checkWhen(e)}));i.length&&e.preventDefault(),i.forEach((function(e){var n;(n=t.$editor).emit.apply(n,[e.command].concat(A()(e.args)))}))}}}]),e}(),Es=function(){function e(t){xa()(this,e),this.editor=t,this.canvasSize=null,this.cachedViewport=_d(0,0,0,0),this.mouse=o.create(),this.scale=1,this.translate=o.create(),this.transformOrigin=o.create(),this.maxScale=10,this.minScale=.25,this.zoomFactor=1,this.resetWorldMatrix()}return wa()(e,[{key:"setTransformOrigin",value:function(e){this.transformOrigin=e,this.resetWorldMatrix()}},{key:"setTransformOriginWithTranslate",value:function(e){var t=o.clone(this.transformOrigin);this.setTransformOrigin(e),this.setTranslate(o.add([],this.translate,o.subtract([],t,e)))}},{key:"setScale",value:function(e){this.scale=Math.min(Math.max(this.minScale,e),this.maxScale),this.resetWorldMatrix()}},{key:"setTranslate",value:function(e){this.translate=e,this.resetWorldMatrix()}},{key:"resetWorldMatrix",value:function(){this.matrix=Ln(i.fromTranslation([],this.translate),i.fromTranslation([],this.transformOrigin),i.fromScaling([],[this.scale,this.scale,1]),i.fromTranslation([],o.negate([],this.transformOrigin))),this.matrixInverse=i.invert([],this.matrix),this.scaleMatrix=Ln(i.fromScaling([],[this.scale,this.scale,1])),this.scaleMatrixInverse=i.invert([],this.scaleMatrix),this.refresh()}},{key:"refreshCanvasSize",value:function(e){if(this.canvasSize){var t=Kr(this.canvasSize);this.canvasSize={x:e.x,y:e.y,width:e.width,height:e.height},this.cachedViewport=_d(0,0,this.canvasSize.width,this.canvasSize.height);var n=o.multiply([],this.transformOrigin,[this.canvasSize.width/t.width,this.canvasSize.height/t.height,1]);this.setTransformOriginWithTranslate(n)}else this.canvasSize={x:e.x,y:e.y,width:e.width,height:e.height},this.cachedViewport=_d(0,0,this.canvasSize.width,this.canvasSize.height),this.setTransformOrigin([this.canvasSize.width/2,this.canvasSize.height/2,0]);this.editor.emit("updateViewport")}},{key:"refresh",value:function(){this.cachedViewport&&(this.verties=Tn(this.cachedViewport,this.matrixInverse))}},{key:"createWorldPosition",value:function(e,t){var n=e-this.canvasSize.x,r=t-this.canvasSize.y;return[this.verties[0][0]+(this.verties[2][0]-this.verties[0][0])*(n/this.canvasSize.width),this.verties[0][1]+(this.verties[2][1]-this.verties[0][1])*(r/this.canvasSize.height),0]}},{key:"setMousePoint",value:function(e,t){this.mouse=this.createWorldPosition(e,t),this.setTransformOriginWithTranslate(o.lerp([],this.verties[0],this.verties[2],.5)),this.editor.emit("updateViewport")}},{key:"zoom",value:function(e){var t=this.scale,n=t*e;this.setScale(n);var r=this.scale/t;this.zoomFactor=r,1!==r&&(this.setTransformOriginWithTranslate(o.lerp([],this.mouse,this.transformOrigin,1/e)),this.editor.emit("updateViewport"))}},{key:"pan",value:function(e,t){arguments.length>2&&void 0!==arguments[2]&&arguments[2];this.setTransformOriginWithTranslate(o.add([],this.transformOrigin,[e,t,0])),this.editor.emit("updateViewport")}},{key:"moveLayerToCenter",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-.2,n=(e[0][0]+e[2][0])/2,r=(e[0][1]+e[2][1])/2,i=o.dist(e[0],e[1]),a=o.dist(e[0],e[3]),s=(this.verties[0][0]+this.verties[2][0])/2,u=(this.verties[0][1]+this.verties[2][1])/2,c=o.dist(this.verties[0],this.verties[1]),l=o.dist(this.verties[0],this.verties[3]),p=Math.min(c/i,l/a)+t,h=s-n,f=u-r;this.setTranslate(o.add([],this.translate,[h,f,0])),this.setTransformOrigin(o.fromValues(n,r,0)),this.setScale(this.scale*p),this.editor.emit("updateViewport")}},{key:"createAreaVerties",value:function(e,t,n,r){return Tn(function(e,t,n,r){return[[e,t,0],[e+n,t,0],[e+n,t+r,0],[e,t+r,0]]}(e,t,n,r),this.matrixInverse)}},{key:"createVertex",value:function(e){return o.transformMat4([],e,this.matrixInverse)}},{key:"pos",get:function(){return[(this.mouse[0]-this.verties[0][0])/(this.verties[2][0]-this.verties[0][0])*100,(this.mouse[1]-this.verties[0][1])/(this.verties[2][1]-this.verties[0][1])*100,0]}}]),e}();function Ts(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Os(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};return xa()(this,e),this.ref=new Proxy(this,{get:function(e,t){var n=e[t];return Hr(n)?function(){for(var t=arguments.length,r=new Array(t),i=0;i0&&void 0!==arguments[0]?arguments[0]:"";return this.json.id+e}},{key:"recover",value:function(){}},{key:"setCache",value:function(){}},{key:"is",value:function(){if(!this.json)return!1;for(var e=arguments.length,t=new Array(e),n=0;n-1}},{key:"isNot",value:function(){return!1===this.is.apply(this,arguments)}},{key:"isSVG",value:function(){return!1}},{key:"generateListNumber",value:function(){this.layers.forEach((function(e,t){e.no=t,e.generateListNumber()}))}},{key:"convert",value:function(e){var t=this;return e.layers&&e.layers.forEach((function(e){e.parent=t.ref})),e}},{key:"checkField",value:function(e,t){return!0}},{key:"toCloneObject",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=this.attrs("itemType","elementType","type","visible","lock","selected");return e&&(t.layers=this.json.layers.map((function(t){return t.clone(e)}))),t}},{key:"clone",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=this.constructor,n=new t(this.toCloneObject(e));return n.setParent(this.json.parent),n}},{key:"reset",value:function(e){this.json=this.convert(Object.assign(this.json,e)),this.changed()}},{key:"getDefaultObject",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=zn();return Os({id:t,_timestamp:Date.now(),_time:performance.now(),visible:!0,lock:!1,selected:!1,layers:[]},e)}},{key:"attrs",value:function(){for(var e=this,t={},n=arguments.length,r=new Array(n),i=0;i0}},{key:"appendChildItem",value:function(e){return e.parent===this.ref?e:(this.resetMatrix(e),e.parent&&e.remove(),e.setParent(this.ref),this.json.layers.push(e),e)}},{key:"prependChildItem",value:function(e){return this.resetMatrix(e),e.parent&&e.remove(),e.setParent(this.ref),this.json.layers.unshift(e),e}},{key:"resetMatrix",value:function(e){}},{key:"insertChildItem",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return this.resetMatrix(e),e.parent&&e.remove(),e.setParent(this.ref),this.json.layers.splice(t,0,e),e}},{key:"appendAfter",value:function(e){var t=this.parent.findIndex(this);return this.parent.insertChildItem(e,t),e}},{key:"appendBefore",value:function(e){var t=this.parent.findIndex(this);return this.parent.insertChildItem(e,t-1),e}},{key:"setPositionInPlace",value:function(e,t){this.layers.splice(e,0,t)}},{key:"toggle",value:function(e,t){_r(t)?this.json[e]=!this.json[e]:this.json[e]=!!t}},{key:"isTreeItemHide",value:function(){var e=this.parent,t=[];do{if(e.is("project"))break;t.push(Boolean(e.collapsed)),e=e.parent}while(e);return Boolean(t.filter(Boolean).length)}},{key:"expectJSON",value:function(e){return"parent"!==e&&!_r(this.json[e])}},{key:"toJSON",value:function(){var e=this,t=this.json,n={};return Object.keys(t).filter((function(t){return e.expectJSON(t)})).forEach((function(e){n[e]=t[e]})),n}},{key:"resize",value:function(){}},{key:"copy",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return this.json.parent.copyItem(this.ref,e)}},{key:"findIndex",value:function(e){return this.json.layers.indexOf(e.ref)}},{key:"copyItem",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10,n=e.clone();n.move([t,t,0]);var r=this.findIndex(e);return r>-1&&this.json.layers.splice(r+1,0,n),n}},{key:"remove",value:function(){this.json.parent.removeItem(this.ref)}},{key:"removeItem",value:function(e){var t=this.findIndex(e);t>-1&&this.json.layers.splice(t,1)}},{key:"hasParent",value:function(e){var t=this.json.parent.id===e;return t||!1!==this.json.parent.is("project")?t:this.json.parent.hasParent(e)}},{key:"searchById",value:function(e){if(this.id===e)return this.ref;for(var t=0,n=this.layers.length;t0&&void 0!==i[0]?i[0]:"",!(t=this.editor.selection.current)){a.next=13;break}return a.next=5,Ro.a.awrap(this.getArtboardList());case 5:return n=a.sent,a.next=8,Ro.a.awrap(gu.render(t));case 8:return(r=a.sent).x="0px",r.y="0px",a.next=13,Ro.a.awrap(this.setArtboardList([].concat(A()(n),[{id:Vn(),preview:e,artboard:r}])));case 13:case"end":return a.stop()}}),null,this)}},{key:"removeArtboard",value:function(e){var t;return Ro.a.async((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,Ro.a.awrap(this.getArtboardList());case 2:return t=n.sent,n.next=5,Ro.a.awrap(this.setArtboardList(t.filter((function(t){return t.id!==e}))));case 5:case"end":return n.stop()}}),null,this)}}]),e}(),xu=/^ME@/,ku=function(){for(var e=arguments.length,t=new Array(e),n=0;n1&&void 0!==arguments[1]?arguments[1]:{};return xa()(this,t),(n=Pa()(this,Ta()(t).call(this,e,r))).created(),n.initialize(),n.initializeStoreEvent(),n}return Ca()(t,e),wa()(t,[{key:"initializeProperty",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.opt=e||{},this.parent=this.opt,this.props=t,this.source=Vn(),this.sourceName=this.constructor.name,e&&e.$store&&(this.$store=e.$store),e&&e.$editor&&(this.$editor=e.$editor)}},{key:"created",value:function(){}},{key:"getRealEventName",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"ME@",n=e.indexOf(t);return e.substr(n<0?0:n+t.length)}},{key:"splitMethod",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=ui(e.split("|"),t),i=P()(r,2),a=i[0],o=i[1];return[a.length?+o[0].target:n,a,o]}},{key:"initializeStoreEvent",value:function(){var e=this;this.filterProps(xu).forEach((function(t){var n=e.getRealEventName(t,"ME@"),r=e.splitMethod(n,"debounce"),i=P()(r,2),a=i[0],o=i[1],s=e.splitMethod(n,"throttle"),u=P()(s,2),c=u[0],l=u[1];n.split("|").filter((function(e){return-1===o.indexOf(e)&&-1===l.indexOf(e)})).map((function(e){return e.trim()})).forEach((function(n){var r=e[t].bind(e);r.displayName="".concat(e.sourceName,".").concat(n),r.source=e.source,e.$store.on(n,r,e,a,c)}))}))}},{key:"destoryStoreEvent",value:function(){this.$store.offAll(this)}},{key:"destroy",value:function(){_o()(Ta()(t.prototype),"destroy",this).call(this),this.destoryStoreEvent()}},{key:"rerender",value:function(){_o()(Ta()(t.prototype),"rerender",this).call(this),this.initialize(),this.initializeStoreEvent()}},{key:"emit",value:function(e){var t;this.$store.source=this.source,this.$store.sourceContext=this;for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i1?n-1:0),i=1;i2?n-2:0),i=2;i0&&void 0!==arguments[0]?arguments[0]:{};return Eu({selected:!1,layers:[]},e)}},{key:"isAttribute",value:function(){return!0}},{key:"toCSS",value:function(){return{}}},{key:"toString",value:function(){return ti(this.toCSS())}}]),t}(Cs);function Ou(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Cu(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};return _o()(Ta()(t.prototype),"getDefaultObject",this).call(this,Cu({itemType:"image-resource",type:"image"},e))}},{key:"isGradient",value:function(){return!1}},{key:"isLinear",value:function(){return!1}},{key:"isRadial",value:function(){return!1}},{key:"isConic",value:function(){return!1}},{key:"isStatic",value:function(){return!1}},{key:"isImage",value:function(){return!1}},{key:"hasAngle",value:function(){return!1}},{key:"isUrl",value:function(){return!1}},{key:"isFile",value:function(){return!1}},{key:"isAttribute",value:function(){return!0}},{key:"toString",value:function(){return"none"}}]),t}(Tu);function Au(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ju(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:2,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:100,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"%",r=j(2,e),i=t/r,a=Jr(r).map((function(e,t){return"".concat(ya.random()," ").concat(t*i).concat(n)})).join(",");return a}},{key:"createRepeatColorStep",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:2,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:qo.px(1),n=j(2,e),r=Jr(n).map((function(e,n){return"".concat(ya.random()," ").concat(qo.parse(t).mul(n+1))})).join(",");return r}}]),t}(Cs);function Iu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Fu(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};return _o()(Ta()(t.prototype),"getDefaultObject",this).call(this,Fu({type:"gradient",colorsteps:[]},e))}},{key:"toCloneObject",value:function(){return Fu({},_o()(Ta()(t.prototype),"toCloneObject",this).call(this),{colorsteps:this.json.colorsteps.map((function(e){return e.clone()}))})}},{key:"convert",value:function(e){return e.colorsteps=e.colorsteps.map((function(e){return new Mu(e)})),e}},{key:"calculateAngle",value:function(){var e=this.json.angle;return _r(Lu[e])?e:Lu[e]||0}},{key:"addColorStep",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return this.json.colorsteps.push(e),t&&this.sortColorStep(),e}},{key:"insertColorStep",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"rgba(216,216,216,0)",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"rgba(216,216,216,1)",r=this.colorsteps;if(r.length){if(et.percent?1:e.percentt.index?1:-1:void 0})),e.forEach((function(e,t){e.index=100*t}))}},{key:"addColorStepList",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];t.forEach((function(t){e.addColorStep(t,!1)})),this.sortColorStep()}},{key:"getColorStep",value:function(e){return this.json.colorsteps.filter((function(t){return t.id==e}))[0]}},{key:"clear",value:function(){arguments.length?this.json.colorsteps.splice(+(arguments.length<=0?void 0:arguments[0]),1):this.json.colorsteps=[]}},{key:"removeColorStep",value:function(e){this.json.colorsteps=this.json.colorsteps.filter((function(t){return t.id!=e}))}},{key:"getColorString",value:function(){var e=this.colorsteps;return t.toColorString(e)}},{key:"colorsteps",get:function(){return this.json.colorsteps}}],[{key:"toColorString",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(!e.length)return"";var t=e.map((function(t,n){return t.prevColorStep=t.cut&&n>0?e[n-1]:null,t}));return 1===t.length&&t.push(new Mu({color:t[0].color||"transparent",percent:100})),t.map((function(e){return"".concat(e)})).join(",")}}]),t}(Du);function Bu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var Ru=function(e){function t(){return xa()(this,t),Pa()(this,Ta()(t).apply(this,arguments))}return Ca()(t,e),wa()(t,[{key:"getDefaultObject",value:function(){return _o()(Ta()(t.prototype),"getDefaultObject",this).call(this,{type:"static-gradient",static:!0,colorsteps:[new Mu({color:"red",percent:0,index:0}),new Mu({color:"red",percent:100,index:0})]})}},{key:"toCloneObject",value:function(){return function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:"transparent";return new t({colorsteps:[new Mu({color:e,percent:0,index:0}),new Mu({color:e,percent:100,index:1})]})}}]),t}(_u);function Nu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Vu(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};return _o()(Ta()(t.prototype),"getDefaultObject",this).call(this,Vu({type:"url",url:"",datauri:""},e))}},{key:"toCloneObject",value:function(){return Vu({},_o()(Ta()(t.prototype),"toCloneObject",this).call(this),{},this.attrs("url","datauri"))}},{key:"isUrl",value:function(){return!0}},{key:"toString",value:function(){var e=this.json;return"url(".concat(e.url,")")}}],[{key:"parse",value:function(e){return new t({url:e.split("(")[1].split(")")[0]})}},{key:"isImageFile",value:function(e){return zu.includes(e)}}]),t}(Du);function Hu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Uu(e){for(var t=1;t360?t%360:t,"deg")),"".concat(this.json.type,"(").concat(t,", ").concat(e,")")}}],[{key:"toLinearGradient",value:function(e){return 0===e.length?"none":new t({angle:"to right",colorsteps:e})+""}},{key:"parse",value:function(e){var n=Xi(e),r=0,i=[];return n.str.split("(")[1].split(")")[0].split(",").map((function(e){return e.trim()})).forEach((function(e,t){e.includes("@")?(e=Ji(e,n.matches),i.push.apply(i,A()(Mu.parse(e)))):r=_r(Ku[e])?qo.parse(e):qo.deg(+Ku[e])})),new t({angle:r.value,colorsteps:i})}}]),t}(_u),qu=function(e){function t(){return xa()(this,t),Pa()(this,Ta()(t).apply(this,arguments))}return Ca()(t,e),wa()(t,[{key:"getDefaultObject",value:function(){return _o()(Ta()(t.prototype),"getDefaultObject",this).call(this,{type:"repeating-linear-gradient",angle:0})}}],[{key:"parse",value:function(e){var n=Xu.parse(e);return new t({angle:n.angle,colorsteps:n.colorsteps})}}]),t}(Xu);function Ju(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Zu(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};return _o()(Ta()(t.prototype),"getDefaultObject",this).call(this,Zu({type:"radial-gradient",radialType:"ellipse",radialPosition:[Ko.CENTER,Ko.CENTER]},e))}},{key:"toCloneObject",value:function(){return Zu({},_o()(Ta()(t.prototype),"toCloneObject",this).call(this),{},this.attrs("radialType","radialPosition"))}},{key:"isRadial",value:function(){return!0}},{key:"toString",value:function(){if(0===this.colorsteps.length)return"";var e,t=this.getColorString(),n=this.json,r=n.radialType,i=n.radialPosition||["center","center"];return e=(i=ec[i]?i:i.join(" "))?"".concat(r," at ").concat(i):r,"".concat(n.type||"radial-gradient","(").concat(e,", ").concat(t,")")}}],[{key:"parse",value:function(e){var n=Xi(e),r="ellipse",i=[Ko.CENTER,Ko.CENTER],a=[];return n.str.split("(")[1].split(")")[0].split(",").map((function(e){return e.trim()})).forEach((function(e,t){if(e.includes("@"))e=Ji(e,n.matches),a.push.apply(a,A()(Mu.parse(e)));else{if(e.includes("at")){var o=e.split("at").map((function(e){return e.trim()})),s=P()(o,2);r=s[0],i=s[1]}else r=e;if(Vr(i)){var u=i.split(" ");if(1===u.length){var c=qo.parse(u[0]);i=c.isString()?[c.value,c.value]:[c.clone(),c.clone()]}else 2===u.length&&(i=u.map((function(e){var t=qo.parse(e);return t.isString()?t.value:t.clone()})))}}})),new t({radialType:r,radialPosition:i,colorsteps:a})}}]),t}(_u),nc=function(e){function t(){return xa()(this,t),Pa()(this,Ta()(t).apply(this,arguments))}return Ca()(t,e),wa()(t,[{key:"getDefaultObject",value:function(){return _o()(Ta()(t.prototype),"getDefaultObject",this).call(this,{type:"repeating-radial-gradient"})}}],[{key:"parse",value:function(e){var n=tc.parse(e);return new t({radialType:n.radialType,radialPosition:n.radialPosition,colorsteps:n.colorsteps})}}]),t}(tc);function rc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ic(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};return _o()(Ta()(t.prototype),"getDefaultObject",this).call(this,ic({type:"conic-gradient",angle:0,radialPosition:[Ko.CENTER,Ko.CENTER]},e))}},{key:"toCloneObject",value:function(){return ic({},_o()(Ta()(t.prototype),"toCloneObject",this).call(this),{angle:this.json.angle,radialPosition:Kr(this.json.radialPosition)})}},{key:"isConic",value:function(){return!0}},{key:"hasAngle",value:function(){return!0}},{key:"getColorString",value:function(){if(0===this.colorsteps.length)return"";var e=this.colorsteps;return e?(e.sort((function(e,t){return e.percent==t.percent?0:e.percent>t.percent?1:-1})),e.map((function(t,n){return t.prevColorStep=t.cut&&n>0?e[n-1]:null,t})).map((function(e){var t=Math.floor(3.6*e.percent),n="";if(e.cut&&e.prevColorStep){var r=Math.floor(3.6*e.prevColorStep.percent);n="".concat(r,"deg")}return"".concat(e.color," ").concat(n," ").concat(t,"deg")})).join(",")):""}},{key:"toString",value:function(){var e=this.getColorString(),t=[],n=this.json,r=n.angle,i=n.radialPosition||Ko.CENTER;i=ac[i]?i:i.join(" "),Br(r)&&(r=+(oc[r]||r),t.push("from ".concat(r,"deg"))),i&&t.push("at ".concat(i));var a=t.length?t.join(" ")+",":"";return"".concat(n.type,"(").concat(a," ").concat(e,")")}}],[{key:"parse",value:function(e){var n=Xi(e),r="0deg",i=[Ko.CENTER,Ko.CENTER],a=[];return n.str.split("(")[1].split(")")[0].split(",").map((function(e){return e.trim()})).forEach((function(e,t){if(e.includes("@"))e=Ji(e=e.split(" ").map((function(e){return e.trim()})).map((function(e){return e.includes("deg")?qo.parse(e).toPercent():e})).join(" "),n.matches),a.push.apply(a,A()(Mu.parse(e)));else{if(e.includes("at")){var o=e.split("at").map((function(e){return e.trim()})),s=P()(o,2);r=s[0],i=s[1]}else r=e;if(Vr(i)){var u=i.split(" ");if(1===u.length){var c=qo.parse(u[0]);i=c.isString()?[c.value,c.value]:[c.clone(),c.clone()]}else 2===u.length&&(i=u.map((function(e){var t=qo.parse(e);return t.isString()?t.value:t})))}Vr(r)&&r.includes("from")&&(r=r.split("from")[1],r=_r(oc[r])?qo.parse(r):qo.deg(+oc[r]))}})),new t({angle:r.value,radialPosition:i,colorsteps:a})}}]),t}(_u),uc=function(e){function t(){return xa()(this,t),Pa()(this,Ta()(t).apply(this,arguments))}return Ca()(t,e),wa()(t,[{key:"getDefaultObject",value:function(){return _o()(Ta()(t.prototype),"getDefaultObject",this).call(this,{type:"repeating-conic-gradient",angle:0,radialPosition:[Ko.CENTER,Ko.CENTER]})}}],[{key:"parse",value:function(e){var n=sc.parse(e);return new t({angle:n.angle,radialPosition:n.radialPosition,colorsteps:n.colorsteps})}}]),t}(sc),cc=new Map,lc=function(){function e(){xa()(this,e)}return wa()(e,null,[{key:"has",value:function(e){return cc.has(e)}},{key:"get",value:function(e){return cc.get(e)}},{key:"set",value:function(e,t){cc.size>1e3&&cc.clear(),cc.set(e,t)}}]),e}();function pc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function hc(e){for(var t=1;t',align_horizontal_left:'',align_horizontal_right:'',align_vertical_bottom:'',align_vertical_center:'',align_vertical_top:'',swap_horiz:'',arrow_right:'\n \n \n \n',group:'\n \n \n \n',volume_down:'\n \n \n \n',arrowLeft:'',volume_up:'\n \n',volume_off:'\n\n \n\n',pentool:'\n\n \n \n \n',launch:'\n \n \n ',apps:'',outline_rect:'\n \n \n \n',outline_circle:'\n \n \n \n',keyboard:'',local_movie:'',same_height:'\n\n \n\n',same_width:'\n\n \n\n',layers:'',middle:'\n\n \n\n',bottom:'\n\n \n\n',top:'\n\n \n\n',right:'\n\n \n\n',center:'\n\n \n\n',left:'\n\n \n\n',flag:'',lens:'',local_library:'',italic:'',strikethrough:'',underline:'',cylinder:'\n\n\n\n\n\n',text_rotate:'',device_hub:'',control_point:'',flip_camera:'\n\n \n \n \n\n',flipY:'',flip:'',account_tree:'',format_shapes:'',merge:'',texture:'',settings_input_component:'',view_comfy:'',camera_roll:'',broken_image:'',shadow:'',opacity:'',looks:'',vintage:'',waves:'',blur_linear:'',blur:'',landscape:'',palette:'',diffuse:'',specular:'',photo:'',near_me:'',view_list:'',flash_on:'',doc:'',storage:'',archive:'',file_copy:'',gps_fixed:'',refresh:'',cat:'\n\n\n\n\n',shuffle:'',replay:'',speed:'',alternate_reverse:'',alternate:'',note:'',rect:'',circle:'',color_lens:'',cube:'',polygon:'',star:'',dahaze:'',brush:'',expand:'',list:'',grid:'',align_center:'',align_justify:'',align_left:'',align_right:'',color:'',size:'',edit:'',outline_image:'',ballot:'',shape:'',scatter:'',transform:'',gradient:'',close:'',build:'',code:'',autorenew:'',play:'',pause:'',skip_next:'',skip_prev:'',fast_forward:'',fast_rewind:'',filter:'',input:'',timer:'',title:'',paint:'',border_all:'',border_inner:vc,check:'',video:'\n \n \n \n',arrowRight:'\n \n',screen:'',repeat:'',remove2:'',setting:'',image:'\n',artboard:'',folder:'',publish:'',add_note:'',add:'',save:'\n',export:'',redo:'',undo:'',lock:'',lock_open:'',remove:'',copy:'\n',visible:'\n',add_box:'',add_circle:'',create_folder:'\n \n',chevron_right:'\n \n',chevron_left:''}),bc={"image-resource":"Image",url:"Image",image:"Image","static-gradient":"Static","linear-gradient":"Linear","repeating-linear-gradient":"".concat(gc.repeat," Linear"),"radial-gradient":"Radial","repeating-radial-gradient":"".concat(gc.repeat," Radial"),"conic-gradient":"Conic","repeating-conic-gradient":"".concat(gc.repeat," Conic")},xc={image:"image","image-resource":"image",url:"image","static-gradient":"gradient","linear-gradient":"gradient","repeating-linear-gradient":"gradient","radial-gradient":"gradient","repeating-radial-gradient":"gradient","conic-gradient":"gradient","repeating-conic-gradient":"gradient"},kc=function(e){function t(){return xa()(this,t),Pa()(this,Ta()(t).apply(this,arguments))}return Ca()(t,e),wa()(t,[{key:"components",value:function(){return Od}},{key:"initState",value:function(){return{hideLabel:"true"===this.props["hide-label"],value:this.props.value,images:this.parseBackgroundImage(this.props.value)}}},{key:"parseBackgroundImage",value:function(e){return yc.parseStyle(ni(e))}},{key:"setValue",value:function(e){this.setState({value:e,images:this.parseBackgroundImage(e)})}},{key:"template",value:function(){var e=this.state.hideLabel?"hide":"";return("\n
\n
\n \n
\n \n
\n
\n
\n
\n "))}},{key:"templateForBlendMode",value:function(e,t){return"\n \n ')}},{key:Do("$fillList"),value:function(){var e=this,t=this.$selection.current||{color:"black"};return this.state.images.map((function(n,r){var i=n.image,a=xc[i.type],o=bc[i.type],s=n.selected?"selected":"";return n.selected&&(e.selectedIndex=r),"\n
\n \n \n
\n
\n
').concat(o,"
\n
\n ").concat(e.templateForBlendMode(r,n.blendMode),"\n
\n
\n \n
\n
\n
\n
\n ")}))}},{key:"modifyBackgroundImage",value:function(){var e=ti(yc.toPropertyCSS(this.state.images));this.parent.trigger(this.props.onchange,this.props.key,e)}},{key:wu("add"),value:function(){this.state.images.push(new yc({image:new Xu({angle:90,colorsteps:[new Mu({percent:0,color:"white",index:0}),new Mu({percent:100,color:"black",index:1})]})})),this.refresh(),this.modifyBackgroundImage()}},{key:za("$add"),value:function(){this.trigger("add")}},{key:Wa("$fillList .fill-item"),value:function(e){this.startIndex=+e.$dt.attr("data-index")}},{key:Xa("$fillList .fill-item")+Oo,value:function(e){}},{key:"sortItem",value:function(e,t,n){e.splice.apply(e,[n+(t1&&void 0!==arguments[1])||arguments[1];t?this.refs["fillIndex".concat(e)].addClass("selected"):this.refs["fillIndex".concat(e)].removeClass("selected"),this.state.images.forEach((function(t,n){t.selected=n===e}))}},{key:wu("selectFillPopupTab"),value:function(e,t){var n=xc[e];this.refs["fillIndex".concat(this.selectedIndex)].attr("data-fill-type",n)}},{key:wu("changeRangeEditor"),value:function(e,t,n){this.trigger("changePattern",e,w()({},e,t),n)}},{key:wu("changePattern")+wo(10),value:function(e,t,n){var r=+n;this.state.images[r].reset(t),this.modifyBackgroundImage(),this.refresh()}}]),t}(Su);function wc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var Sc=function(e){function t(){return xa()(this,t),Pa()(this,Ta()(t).apply(this,arguments))}return Ca()(t,e),wa()(t,[{key:"getDefaultObject",value:function(){return _o()(Ta()(t.prototype),"getDefaultObject",this).call(this,{itemType:"box-shadow",inset:!1,offsetX:qo.z(),offsetY:qo.z(),blurRadius:qo.z(),spreadRadius:qo.z(),color:"rgba(0, 0, 0, 1)"})}},{key:"toCloneObject",value:function(){this.json;return function(e){for(var t=1;t\n
\n \n
\n ").concat(this.props.title?"":"Add","\n
\n
\n
\n \n "))}},{key:Do("$shadowList"),value:function(){var e=this.state.boxShadows.map((function(e,t){return'\n
\n
\n
\n
\n
\n
').concat(gc.check,'
\n
').concat(e.offsetX,'
\n
').concat(e.offsetY,'
\n
').concat(e.blurRadius,'
\n
').concat(e.spreadRadius,'
\n
\n \n
\n
\n ")}));return e.length&&e.push('\n
\n
\n
Inset
\n\n
X
\n
Y
\n
'.concat(this.$i18n("boxshadow.editor.blur"),'
\n
').concat(this.$i18n("boxshadow.editor.spread"),'
\n
\n
\n
\n ')),e.join("")}},{key:wu("refreshSelection"),value:function(){this.refresh()}},{key:"modifyBoxShadow",value:function(){var e=this.state.boxShadows.join(", ");this.parent.trigger(this.props.onchange,e)}},{key:wu("add"),value:function(){this.state.boxShadows.push(new Sc({offsetX:qo.px(2),offsetY:qo.px(2),blurRadius:qo.px(3),spreadRadius:qo.px(1)})),this.refresh(),this.modifyBoxShadow()}},{key:za("$add"),value:function(){this.trigger("add")}},{key:za("$shadowList .remove"),value:function(e){var t=+e.$dt.attr("data-index");this.state.boxShadows.splice(t,1),this.refresh(),this.modifyBoxShadow(),this.emit("hideBoxShadowPropertyPopup")}},{key:za("$shadowList .shadow-item.real > div:not(.tools)"),value:function(e){var t=+e.$dt.closest("shadow-item").attr("data-index"),n=this.state.boxShadows[t];this.viewShadowPopup(n,t)}},{key:"viewShadowPopup",value:function(e,t){this.selectedIndex=t,this.viewBoxShadowPropertyPopup(e)}},{key:"viewBoxShadowPropertyPopup",value:function(e){this.emit("showBoxShadowPropertyPopup",{changeEvent:"changeBoxShadowEditorPopup",color:e.color,inset:e.inset,offsetX:e.offsetX,offsetY:e.offsetY,blurRadius:e.blurRadius,spreadRadius:e.spreadRadius},{id:this.id})}},{key:wu("changeBoxShadowEditorColor"),value:function(e){this.trigger("changeBoxShadowEditorPopup",{color:e})}},{key:wu("changeBoxShadowEditorPopup"),value:function(e,t){if(t.id===this.id){var n=this.state.boxShadows[this.selectedIndex];n&&(n.reset(e),this.refresh(),this.modifyBoxShadow())}}}]),t}(Su),Ec=function(e){function t(){return xa()(this,t),Pa()(this,Ta()(t).apply(this,arguments))}return Ca()(t,e),wa()(t,[{key:"initState",value:function(){var e=this.props["key-value-char"]||":",t=this.props.split||",",n=(this.props.options||"").split(t).map((function(e){return e.trim()})),r=this.props.value,i=this.props.tabindex;return{keyValueChar:e,splitChar:t,label:this.props.label||"",options:n,value:r,tabIndex:i}}},{key:"template",value:function(){var e=this.state,t=e.label,n=e.tabIndex?'tabIndex="1"':"";return"\n
\n ").concat(t?'"):"","\n \n
\n ")}},{key:"getValue",value:function(){return this.refs.$options.value}},{key:"setValue",value:function(e){this.state.value=e+"",this.refs.$options.val(this.state.value),this.refresh()}},{key:"refresh",value:function(){arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.load()}},{key:Mo("$options"),value:function(){return{"data-count":this.state.options.length.toString()}}},{key:Do("$options"),value:function(){var e=this;return this.state.options.map((function(t){var n=t;if((a=t).includes(e.state.keyValueChar)){var r=a.split(e.state.keyValueChar),i=P()(r,2),a=i[0];n=i[1]}""===n?n=e.props["none-value"]?e.props["none-value"]:"":"-"===n&&(n="----------",a="");var o=a===e.state.value?"selected":"";return"")}))}},{key:"setOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";this.setState({options:e.split(this.state.splitChar).map((function(e){return e.trim()}))})}},{key:Za("$options"),value:function(){this.updateData({value:this.refs.$options.value})}},{key:"updateData",value:function(e){this.setState(e,!1),this.parent.trigger(this.props.onchange,this.props.key,this.state.value,this.props.params)}}]),t}(Su),Tc=function(e){function t(){return xa()(this,t),Pa()(this,Ta()(t).apply(this,arguments))}return Ca()(t,e),wa()(t,[{key:"components",value:function(){return{SelectEditor:Ec}}},{key:"initState",value:function(){var e=this.props.units||"px,em,%",t=qo.parse(this.props.value||qo.z());return{removable:"true"===this.props.removable,calc:"true"===this.props.calc,label:this.props.label||"",min:+this.props.min||0,max:+this.props.max||100,step:+this.props.step||1,key:this.props.key,params:this.props.params||"",layout:this.props.layout||"",units:e,value:t}}},{key:"template",value:function(){return"
"}},{key:"refresh",value:function(){this.load()}},{key:Do("$body"),value:function(){var e=this.state,t=e.min,n=e.max,r=e.step,i=e.label,a=e.removable,o=e.layout,s=+this.state.value.value.toString();isNaN(s)&&(s=0);var u=o,c=(+s).toString(),l=this.state.units.split(",").map((function(e){var t=e;return"number"===t&&(t=""),"".concat(e,":").concat(t)})).join(",");return'\n
\n ').concat(i?'"):"","\n
\n \n
\n \n \n
\n
\n \n
\n ")}},{key:"getValue",value:function(){return this.state.value.clone()}},{key:"setValue",value:function(e){this.setState({value:qo.parse(e)})}},{key:eo("$propertyNumber"),value:function(e){this.refs.$rangeArea.addClass("focused")}},{key:no("$propertyNumber"),value:function(e){this.refs.$rangeArea.removeClass("focused")}},{key:za("$remove"),value:function(e){this.updateData({value:""})}},{key:"updateData",value:function(e){this.setState(e,!1),this.parent.trigger(this.props.onchange,this.props.key,this.state.value,this.props.params)}},{key:"initValue",value:function(){""==this.state.value&&(this.state.value=new qo(0,this.children.$unit.getValue()))}},{key:Qa("$propertyNumber"),value:function(e){var t=+this.getRef("$propertyNumber").value;this.getRef("$property").val(t),this.initValue(),this.updateData({value:new qo(t,this.children.$unit.getValue())})}},{key:oo("$property")+Eo("moveRange")+To("moveRange"),value:function(){}},{key:"moveRange",value:function(){this.trigger("changeValue")}},{key:wu("changeValue")+Po(100),value:function(){var e=+this.getRef("$property").value;this.refs.$propertyNumber.val(e),this.initValue(),this.updateData({value:new qo(e,this.children.$unit.getValue())})}},{key:wu("changeUnit"),value:function(e,t){this.initValue(),this.updateData({value:this.state.value.toUnit(t)})}}]),t}(Su),Oc=function(){function e(){xa()(this,e)}return wa()(e,null,[{key:"parseStyle",value:function(e){var t={isAll:!0,"border-radius":qo.z(),"border-top-left-radius":qo.z(),"border-top-right-radius":qo.z(),"border-bottom-right-radius":qo.z(),"border-bottom-left-radius":qo.z()},n=e.split(" ").filter((function(e){return qo.parse(e)}));return 1===n.length?(t.isAll=!0,t["border-radius"]=n[0]):(t.isAll=!1,t["border-top-left-radius"]=n[0],t["border-top-right-radius"]=n[1],t["border-bottom-right-radius"]=n[2],t["border-bottom-left-radius"]=n[3]),t}}]),e}(),Cc=[{key:"border-top-left-radius",title:"topLeft"},{key:"border-top-right-radius",title:"topRight"},{key:"border-bottom-right-radius",title:"bottomRight"},{key:"border-bottom-left-radius",title:"bottomLeft"}],Dc=Cc.map((function(e){return e.key})),Ac=function(e){function t(){return xa()(this,t),Pa()(this,Ta()(t).apply(this,arguments))}return Ca()(t,e),wa()(t,[{key:"components",value:function(){return{RangeEditor:Tc}}},{key:"initState",value:function(){return Oc.parseStyle(this.props.value)}},{key:"template",value:function(){return"
"}},{key:wu("changeBorderRadius"),value:function(e,t){var n=this;"border-radius"===e&&Dc.forEach((function(e){n.children["$".concat(e)].setValue(t.clone())})),this.setBorderRadius()}},{key:Do("$body"),value:function(){var e=this,t=this.state.isAll?"all":"partitial",n=this.state["border-radius"];return'\n
\n
\n \n \n
\n
\n \n
\n
\n