jodit-pro 1.3.34 → 1.3.36
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/config.js +1 -0
- package/build/jodit.es5.css +1 -1
- package/build/jodit.es5.js +1 -1
- package/build/jodit.fat.css +1 -1
- package/build/jodit.fat.es5.css +1 -1
- package/build/jodit.fat.es5.js +1 -1
- package/build/jodit.fat.js +1 -1
- package/build/jodit.js +1 -1
- package/build/plugins/autocomplete/autocomplete.es5.js +1 -1
- package/build/plugins/autocomplete/autocomplete.js +1 -1
- package/build/plugins/backup/backup.es5.js +1 -1
- package/build/plugins/backup/backup.js +1 -1
- package/build/plugins/button-generator/button-generator.es5.js +1 -1
- package/build/plugins/button-generator/button-generator.js +1 -1
- package/build/plugins/change-case/change-case.es5.js +1 -1
- package/build/plugins/change-case/change-case.js +1 -1
- package/build/plugins/color-picker/color-picker.es5.js +1 -1
- package/build/plugins/color-picker/color-picker.js +1 -1
- package/build/plugins/emoji/emoji.es5.js +1 -1
- package/build/plugins/emoji/emoji.js +1 -1
- package/build/plugins/export-docs/export-docs.es5.js +1 -1
- package/build/plugins/export-docs/export-docs.js +1 -1
- package/build/plugins/finder/finder.es5.js +1 -1
- package/build/plugins/finder/finder.js +1 -1
- package/build/plugins/google-maps/google-maps.es5.js +1 -1
- package/build/plugins/google-maps/google-maps.js +1 -1
- package/build/plugins/google-search/google-search.es5.js +1 -1
- package/build/plugins/google-search/google-search.js +1 -1
- package/build/plugins/highlight-signature/highlight-signature.es5.js +1 -1
- package/build/plugins/highlight-signature/highlight-signature.js +1 -1
- package/build/plugins/iframe-editor/iframe-editor.es5.js +1 -1
- package/build/plugins/iframe-editor/iframe-editor.js +1 -1
- package/build/plugins/keyboard/keyboard.es5.js +1 -1
- package/build/plugins/keyboard/keyboard.js +1 -1
- package/build/plugins/mobile-view/mobile-view.es5.js +1 -1
- package/build/plugins/mobile-view/mobile-view.js +1 -1
- package/build/plugins/page-break/page-break.es5.js +1 -1
- package/build/plugins/page-break/page-break.js +1 -1
- package/build/plugins/paste-code/paste-code.es5.js +1 -1
- package/build/plugins/paste-code/paste-code.js +1 -1
- package/build/plugins/paste-from-word/paste-from-word.es5.js +1 -1
- package/build/plugins/paste-from-word/paste-from-word.js +1 -1
- package/build/plugins/show-blocks/show-blocks.es5.js +1 -1
- package/build/plugins/show-blocks/show-blocks.js +1 -1
- package/build/plugins/todo-list/todo-list.css +1 -0
- package/build/plugins/todo-list/todo-list.es5.css +1 -0
- package/build/plugins/todo-list/todo-list.es5.js +1 -0
- package/build/plugins/todo-list/todo-list.js +1 -0
- package/build/plugins/translate/translate.es5.js +1 -1
- package/build/plugins/translate/translate.js +1 -1
- package/build/plugins/tune-block/tune-block.es5.js +1 -1
- package/build/plugins/tune-block/tune-block.js +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(t,e){if("object"==typeof exports&&"object"==typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var o=e();for(var n in o)("object"==typeof exports?exports:t)[n]=o[n]}}(self,(function(){return(self.webpackChunkjodit_pro=self.webpackChunkjodit_pro||[]).push([[917],{43746:function(t){"undefined"!=typeof self&&self,t.exports=function(t){var e={};function o(n){if(e[n])return e[n].exports;var r=e[n]={i:n,l:!1,exports:{}};return t[n].call(r.exports,r,r.exports,o),r.l=!0,r.exports}return o.m=t,o.c=e,o.d=function(t,e,n){o.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},o.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},o.t=function(t,e){if(1&e&&(t=o(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(o.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)o.d(n,r,function(e){return t[e]}.bind(null,r));return n},o.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return o.d(e,"a",e),e},o.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},o.p="",o(o.s=1)}([function(t,e,o){"use strict";var n=o(3);function r(t){return!0===n(t)&&"[object Object]"===Object.prototype.toString.call(t)}t.exports=function(t){var e,o;return!1!==r(t)&&"function"==typeof(e=t.constructor)&&!1!==r(o=e.prototype)&&!1!==o.hasOwnProperty("isPrototypeOf")}},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.VERSION=e.PALETTE_MATERIAL_CHROME=e.PALETTE_MATERIAL_500=e.COLOR_NAMES=e.getLuminance=e.intToRgb=e.rgbToInt=e.rgbToHsv=e.rgbToHsl=e.hslToRgb=e.rgbToHex=e.parseColor=e.parseColorToHsla=e.parseColorToHsl=e.parseColorToRgba=e.parseColorToRgb=e.from=e.createPicker=void 0;var n=function(){function t(t,e){for(var o=0;e.length>o;o++){var n=e[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,o,n){return o&&t(e.prototype,o),n&&t(e,n),e}}(),r=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var o=[],n=!0,r=!1,i=void 0;try{for(var a,s=t[Symbol.iterator]();!(n=(a=s.next()).done)&&(o.push(a.value),!e||o.length!==e);n=!0);}catch(t){r=!0,i=t}finally{try{!n&&s.return&&s.return()}finally{if(r)throw i}}return o}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")},i=o(2),a=l(o(0)),s=l(o(4));function l(t){return t&&t.__esModule?t:{default:t}}function c(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function p(t){if(Array.isArray(t)){for(var e=0,o=Array(t.length);t.length>e;e++)o[e]=t[e];return o}return Array.from(t)}var u="undefined"!=typeof window&&window.navigator.userAgent.indexOf("Edge")>-1,h="undefined"!=typeof window&&window.navigator.userAgent.indexOf("rv:")>-1,d={id:null,attachTo:"body",showHSL:!0,showRGB:!0,showHEX:!0,showAlpha:!1,color:"#ff0000",palette:null,paletteEditable:!1,useAlphaInPalette:"auto",slBarSize:[232,150],hueBarSize:[150,11],alphaBarSize:[150,11]},g="COLOR",f="RGBA_USER",m="HSLA_USER";function v(t,e,o){return t?t instanceof HTMLElement?t:t instanceof NodeList?t[0]:"string"==typeof t?document.querySelector(t):t.jquery?t.get(0):o?e:null:e}function y(t){var e=t.getContext("2d"),o=+t.width,n=+t.height,a=e.createLinearGradient(1,1,1,n-1);return a.addColorStop(0,"white"),a.addColorStop(1,"black"),{setHue:function(t){var r=e.createLinearGradient(1,0,o-1,0);r.addColorStop(0,"hsla("+t+", 100%, 50%, 0)"),r.addColorStop(1,"hsla("+t+", 100%, 50%, 1)"),e.fillStyle=a,e.fillRect(0,0,o,n),e.fillStyle=r,e.globalCompositeOperation="multiply",e.fillRect(0,0,o,n),e.globalCompositeOperation="source-over"},grabColor:function(t,o){return e.getImageData(t,o,1,1).data},findColor:function(t,e,a){var s=(0,i.rgbToHsv)(t,e,a),l=r(s,3);return[l[1]*o,n-l[2]*n]}}}function b(t,e,o){return null===t?e:/^\s*$/.test(t)?o:!!/true|yes|1/i.test(t)||!/false|no|0/i.test(t)&&e}function C(t,e,o){if(null===t)return e;if(/^\s*$/.test(t))return o;var n=t.split(",").map(Number);return 2===n.length&&n[0]&&n[1]?n:e}var _=function(){function t(e,o){if(c(this,t),o?(e=v(e),this.options=Object.assign({},d,o)):e&&(0,a.default)(e)?(this.options=Object.assign({},d,e),e=v(this.options.attachTo)):(this.options=Object.assign({},d),e=v((0,i.nvl)(e,this.options.attachTo))),!e)throw new Error("Container not found: "+this.options.attachTo);!function(t,e){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"acp-";if(e.hasAttribute(o+"show-hsl")&&(t.showHSL=b(e.getAttribute(o+"show-hsl"),d.showHSL,!0)),e.hasAttribute(o+"show-rgb")&&(t.showRGB=b(e.getAttribute(o+"show-rgb"),d.showRGB,!0)),e.hasAttribute(o+"show-hex")&&(t.showHEX=b(e.getAttribute(o+"show-hex"),d.showHEX,!0)),e.hasAttribute(o+"show-alpha")&&(t.showAlpha=b(e.getAttribute(o+"show-alpha"),d.showAlpha,!0)),e.hasAttribute(o+"palette-editable")&&(t.paletteEditable=b(e.getAttribute(o+"palette-editable"),d.paletteEditable,!0)),e.hasAttribute(o+"sl-bar-size")&&(t.slBarSize=C(e.getAttribute(o+"sl-bar-size"),d.slBarSize,[232,150])),e.hasAttribute(o+"hue-bar-size")&&(t.hueBarSize=C(e.getAttribute(o+"hue-bar-size"),d.hueBarSize,[150,11]),t.alphaBarSize=t.hueBarSize),e.hasAttribute(o+"palette")){var n=e.getAttribute(o+"palette");switch(n){case"PALETTE_MATERIAL_500":t.palette=i.PALETTE_MATERIAL_500;break;case"PALETTE_MATERIAL_CHROME":case"":t.palette=i.PALETTE_MATERIAL_CHROME;break;default:t.palette=n.split(/[;|]/)}}e.hasAttribute(o+"color")&&(t.color=e.getAttribute(o+"color"))}(this.options,e),this.H=0,this.S=0,this.L=0,this.R=0,this.G=0,this.B=0,this.A=1,this.palette={},this.element=document.createElement("div"),this.options.id&&(this.element.id=this.options.id),this.element.className="a-color-picker",this.element.innerHTML=s.default,e.appendChild(this.element);var n=this.element.querySelector(".a-color-picker-h");this.setupHueCanvas(n),this.hueBarHelper=y(n),this.huePointer=this.element.querySelector(".a-color-picker-h+.a-color-picker-dot");var r=this.element.querySelector(".a-color-picker-sl");this.setupSlCanvas(r),this.slBarHelper=y(r),this.slPointer=this.element.querySelector(".a-color-picker-sl+.a-color-picker-dot"),this.preview=this.element.querySelector(".a-color-picker-preview"),this.setupClipboard(this.preview.querySelector(".a-color-picker-clipbaord")),this.options.showHSL?(this.setupInput(this.inputH=this.element.querySelector(".a-color-picker-hsl>input[nameref=H]")),this.setupInput(this.inputS=this.element.querySelector(".a-color-picker-hsl>input[nameref=S]")),this.setupInput(this.inputL=this.element.querySelector(".a-color-picker-hsl>input[nameref=L]"))):this.element.querySelector(".a-color-picker-hsl").remove(),this.options.showRGB?(this.setupInput(this.inputR=this.element.querySelector(".a-color-picker-rgb>input[nameref=R]")),this.setupInput(this.inputG=this.element.querySelector(".a-color-picker-rgb>input[nameref=G]")),this.setupInput(this.inputB=this.element.querySelector(".a-color-picker-rgb>input[nameref=B]"))):this.element.querySelector(".a-color-picker-rgb").remove(),this.options.showHEX?this.setupInput(this.inputRGBHEX=this.element.querySelector("input[nameref=RGBHEX]")):this.element.querySelector(".a-color-picker-rgbhex").remove(),this.options.paletteEditable||this.options.palette&&this.options.palette.length>0?this.setPalette(this.paletteRow=this.element.querySelector(".a-color-picker-palette")):(this.paletteRow=this.element.querySelector(".a-color-picker-palette"),this.paletteRow.remove()),this.options.showAlpha?(this.setupAlphaCanvas(this.element.querySelector(".a-color-picker-a")),this.alphaPointer=this.element.querySelector(".a-color-picker-a+.a-color-picker-dot")):this.element.querySelector(".a-color-picker-alpha").remove(),this.element.style.width=this.options.slBarSize[0]+"px",this.onValueChanged(g,this.options.color)}return n(t,[{key:"setupHueCanvas",value:function(t){var e=this;t.width=this.options.hueBarSize[0],t.height=this.options.hueBarSize[1];for(var o=t.getContext("2d"),n=o.createLinearGradient(0,0,this.options.hueBarSize[0],0),r=0;1>=r;r+=1/360)n.addColorStop(r,"hsl("+360*r+", 100%, 50%)");o.fillStyle=n,o.fillRect(0,0,this.options.hueBarSize[0],this.options.hueBarSize[1]);var a=function(o){var n=(0,i.limit)(o.clientX-t.getBoundingClientRect().left,0,e.options.hueBarSize[0]),r=Math.round(360*n/e.options.hueBarSize[0]);e.huePointer.style.left=n-7+"px",e.onValueChanged("H",r)},s=function t(){document.removeEventListener("mousemove",a),document.removeEventListener("mouseup",t)};t.addEventListener("mousedown",(function(t){a(t),document.addEventListener("mousemove",a),document.addEventListener("mouseup",s)}))}},{key:"setupSlCanvas",value:function(t){var e=this;t.width=this.options.slBarSize[0],t.height=this.options.slBarSize[1];var o=function(o){var n=(0,i.limit)(o.clientX-t.getBoundingClientRect().left,0,e.options.slBarSize[0]-1),r=(0,i.limit)(o.clientY-t.getBoundingClientRect().top,0,e.options.slBarSize[1]-1),a=e.slBarHelper.grabColor(n,r);e.slPointer.style.left=n-7+"px",e.slPointer.style.top=r-7+"px",e.onValueChanged("RGB",a)},n=function t(){document.removeEventListener("mousemove",o),document.removeEventListener("mouseup",t)};t.addEventListener("mousedown",(function(t){o(t),document.addEventListener("mousemove",o),document.addEventListener("mouseup",n)}))}},{key:"setupAlphaCanvas",value:function(t){var e=this;t.width=this.options.alphaBarSize[0],t.height=this.options.alphaBarSize[1];var o=t.getContext("2d"),n=o.createLinearGradient(0,0,t.width-1,0);n.addColorStop(0,"hsla(0, 0%, 50%, 0)"),n.addColorStop(1,"hsla(0, 0%, 50%, 1)"),o.fillStyle=n,o.fillRect(0,0,this.options.alphaBarSize[0],this.options.alphaBarSize[1]);var r=function(o){var n=(0,i.limit)(o.clientX-t.getBoundingClientRect().left,0,e.options.alphaBarSize[0]),r=+(n/e.options.alphaBarSize[0]).toFixed(2);e.alphaPointer.style.left=n-7+"px",e.onValueChanged("ALPHA",r)},a=function t(){document.removeEventListener("mousemove",r),document.removeEventListener("mouseup",t)};t.addEventListener("mousedown",(function(t){r(t),document.addEventListener("mousemove",r),document.addEventListener("mouseup",a)}))}},{key:"setupInput",value:function(t){var e=this,o=+t.min,n=+t.max,r=t.getAttribute("nameref");t.hasAttribute("select-on-focus")&&t.addEventListener("focus",(function(){t.select()})),"text"===t.type?t.addEventListener("change",(function(){e.onValueChanged(r,t.value)})):((u||h)&&t.addEventListener("keydown",(function(a){"Up"===a.key?(t.value=(0,i.limit)(+t.value+1,o,n),e.onValueChanged(r,t.value),a.returnValue=!1):"Down"===a.key&&(t.value=(0,i.limit)(+t.value-1,o,n),e.onValueChanged(r,t.value),a.returnValue=!1)})),t.addEventListener("change",(function(){e.onValueChanged(r,(0,i.limit)(+t.value,o,n))})))}},{key:"setupClipboard",value:function(t){var e=this;t.title="click to copy",t.addEventListener("click",(function(){t.value=(0,i.parseColor)([e.R,e.G,e.B,e.A],"hexcss4"),t.select(),document.execCommand("copy")}))}},{key:"setPalette",value:function(t){var e=this,o="auto"===this.options.useAlphaInPalette?this.options.showAlpha:this.options.useAlphaInPalette,n=null;switch(this.options.palette){case"PALETTE_MATERIAL_500":n=i.PALETTE_MATERIAL_500;break;case"PALETTE_MATERIAL_CHROME":n=i.PALETTE_MATERIAL_CHROME;break;default:n=(0,i.ensureArray)(this.options.palette)}if(this.options.paletteEditable||n.length>0){var r=function(o,n,r){var i=t.querySelector('.a-color-picker-palette-color[data-color="'+o+'"]')||document.createElement("div");i.className="a-color-picker-palette-color",i.style.backgroundColor=o,i.setAttribute("data-color",o),i.title=o,t.insertBefore(i,n),e.palette[o]=!0,r&&e.onPaletteColorAdd(o)},a=function(o,n){o?(t.removeChild(o),e.palette[o.getAttribute("data-color")]=!1,n&&e.onPaletteColorRemove(o.getAttribute("data-color"))):(t.querySelectorAll(".a-color-picker-palette-color[data-color]").forEach((function(e){t.removeChild(e)})),Object.keys(e.palette).forEach((function(t){e.palette[t]=!1})),n&&e.onPaletteColorRemove())};if(n.map((function(t){return(0,i.parseColor)(t,o?"rgbcss4":"hex")})).filter((function(t){return!!t})).forEach((function(t){return r(t)})),this.options.paletteEditable){var s=document.createElement("div");s.className="a-color-picker-palette-color a-color-picker-palette-add",s.innerHTML="+",t.appendChild(s),t.addEventListener("click",(function(t){/a-color-picker-palette-add/.test(t.target.className)?t.shiftKey?a(null,!0):r(o?(0,i.parseColor)([e.R,e.G,e.B,e.A],"rgbcss4"):(0,i.rgbToHex)(e.R,e.G,e.B),t.target,!0):/a-color-picker-palette-color/.test(t.target.className)&&(t.shiftKey?a(t.target,!0):e.onValueChanged(g,t.target.getAttribute("data-color")))}))}else t.addEventListener("click",(function(t){/a-color-picker-palette-color/.test(t.target.className)&&e.onValueChanged(g,t.target.getAttribute("data-color"))}))}else t.style.display="none"}},{key:"updatePalette",value:function(t){this.paletteRow.innerHTML="",this.palette={},this.paletteRow.parentElement||this.element.appendChild(this.paletteRow),this.options.palette=t,this.setPalette(this.paletteRow)}},{key:"onValueChanged",value:function(t,e){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{silent:!1};switch(t){case"H":this.H=e;var n=(0,i.hslToRgb)(this.H,this.S,this.L),a=r(n,3);this.R=a[0],this.G=a[1],this.B=a[2],this.slBarHelper.setHue(e),this.updatePointerH(this.H),this.updateInputHSL(this.H,this.S,this.L),this.updateInputRGB(this.R,this.G,this.B),this.updateInputRGBHEX(this.R,this.G,this.B);break;case"S":this.S=e;var s=(0,i.hslToRgb)(this.H,this.S,this.L),l=r(s,3);this.R=l[0],this.G=l[1],this.B=l[2],this.updatePointerSL(this.H,this.S,this.L),this.updateInputHSL(this.H,this.S,this.L),this.updateInputRGB(this.R,this.G,this.B),this.updateInputRGBHEX(this.R,this.G,this.B);break;case"L":this.L=e;var c=(0,i.hslToRgb)(this.H,this.S,this.L),p=r(c,3);this.R=p[0],this.G=p[1],this.B=p[2],this.updatePointerSL(this.H,this.S,this.L),this.updateInputHSL(this.H,this.S,this.L),this.updateInputRGB(this.R,this.G,this.B),this.updateInputRGBHEX(this.R,this.G,this.B);break;case"R":this.R=e;var u=(0,i.rgbToHsl)(this.R,this.G,this.B),h=r(u,3);this.H=h[0],this.S=h[1],this.L=h[2],this.slBarHelper.setHue(this.H),this.updatePointerH(this.H),this.updatePointerSL(this.H,this.S,this.L),this.updateInputHSL(this.H,this.S,this.L),this.updateInputRGBHEX(this.R,this.G,this.B);break;case"G":this.G=e;var d=(0,i.rgbToHsl)(this.R,this.G,this.B),v=r(d,3);this.H=v[0],this.S=v[1],this.L=v[2],this.slBarHelper.setHue(this.H),this.updatePointerH(this.H),this.updatePointerSL(this.H,this.S,this.L),this.updateInputHSL(this.H,this.S,this.L),this.updateInputRGBHEX(this.R,this.G,this.B);break;case"B":this.B=e;var y=(0,i.rgbToHsl)(this.R,this.G,this.B),b=r(y,3);this.H=b[0],this.S=b[1],this.L=b[2],this.slBarHelper.setHue(this.H),this.updatePointerH(this.H),this.updatePointerSL(this.H,this.S,this.L),this.updateInputHSL(this.H,this.S,this.L),this.updateInputRGBHEX(this.R,this.G,this.B);break;case"RGB":var C=r(e,3);this.R=C[0],this.G=C[1],this.B=C[2];var _=(0,i.rgbToHsl)(this.R,this.G,this.B),k=r(_,3);this.H=k[0],this.S=k[1],this.L=k[2],this.updateInputHSL(this.H,this.S,this.L),this.updateInputRGB(this.R,this.G,this.B),this.updateInputRGBHEX(this.R,this.G,this.B);break;case f:var w=r(e,4);this.R=w[0],this.G=w[1],this.B=w[2],this.A=w[3];var E=(0,i.rgbToHsl)(this.R,this.G,this.B),A=r(E,3);this.H=A[0],this.S=A[1],this.L=A[2],this.slBarHelper.setHue(this.H),this.updatePointerH(this.H),this.updatePointerSL(this.H,this.S,this.L),this.updateInputHSL(this.H,this.S,this.L),this.updateInputRGB(this.R,this.G,this.B),this.updateInputRGBHEX(this.R,this.G,this.B),this.updatePointerA(this.A);break;case m:var x=r(e,4);this.H=x[0],this.S=x[1],this.L=x[2],this.A=x[3];var S=(0,i.hslToRgb)(this.H,this.S,this.L),F=r(S,3);this.R=F[0],this.G=F[1],this.B=F[2],this.slBarHelper.setHue(this.H),this.updatePointerH(this.H),this.updatePointerSL(this.H,this.S,this.L),this.updateInputHSL(this.H,this.S,this.L),this.updateInputRGB(this.R,this.G,this.B),this.updateInputRGBHEX(this.R,this.G,this.B),this.updatePointerA(this.A);break;case"RGBHEX":var M=(0,i.cssColorToRgb)(e)||[this.R,this.G,this.B],B=r(M,3);this.R=B[0],this.G=B[1],this.B=B[2];var L=(0,i.rgbToHsl)(this.R,this.G,this.B),R=r(L,3);this.H=R[0],this.S=R[1],this.L=R[2],this.slBarHelper.setHue(this.H),this.updatePointerH(this.H),this.updatePointerSL(this.H,this.S,this.L),this.updateInputHSL(this.H,this.S,this.L),this.updateInputRGB(this.R,this.G,this.B);break;case g:var H=(0,i.parseColor)(e,"rgba")||[0,0,0,1],I=r(H,4);this.R=I[0],this.G=I[1],this.B=I[2],this.A=I[3];var T=(0,i.rgbToHsl)(this.R,this.G,this.B),P=r(T,3);this.H=P[0],this.S=P[1],this.L=P[2],this.slBarHelper.setHue(this.H),this.updatePointerH(this.H),this.updatePointerSL(this.H,this.S,this.L),this.updateInputHSL(this.H,this.S,this.L),this.updateInputRGB(this.R,this.G,this.B),this.updateInputRGBHEX(this.R,this.G,this.B),this.updatePointerA(this.A);break;case"ALPHA":this.A=e}this.preview.style.backgroundColor=1===this.A?"rgb("+this.R+","+this.G+","+this.B+")":"rgba("+this.R+","+this.G+","+this.B+","+this.A+")",o&&o.silent||this.onchange&&this.onchange(this.preview.style.backgroundColor)}},{key:"onPaletteColorAdd",value:function(t){this.oncoloradd&&this.oncoloradd(t)}},{key:"onPaletteColorRemove",value:function(t){this.oncolorremove&&this.oncolorremove(t)}},{key:"updateInputHSL",value:function(t,e,o){this.options.showHSL&&(this.inputH.value=t,this.inputS.value=e,this.inputL.value=o)}},{key:"updateInputRGB",value:function(t,e,o){this.options.showRGB&&(this.inputR.value=t,this.inputG.value=e,this.inputB.value=o)}},{key:"updateInputRGBHEX",value:function(t,e,o){this.options.showHEX&&(this.inputRGBHEX.value=(0,i.rgbToHex)(t,e,o))}},{key:"updatePointerH",value:function(t){this.huePointer.style.left=this.options.hueBarSize[0]*t/360-7+"px"}},{key:"updatePointerSL",value:function(t,e,o){var n=(0,i.hslToRgb)(t,e,o),a=r(n,3),s=this.slBarHelper.findColor(a[0],a[1],a[2]),l=r(s,2),c=l[0],p=l[1];c>=0&&(this.slPointer.style.left=c-7+"px",this.slPointer.style.top=p-7+"px")}},{key:"updatePointerA",value:function(t){this.options.showAlpha&&(this.alphaPointer.style.left=this.options.alphaBarSize[0]*t-7+"px")}}]),t}(),k=function(){function t(e){c(this,t),this.name=e,this.listeners=[]}return n(t,[{key:"on",value:function(t){t&&this.listeners.push(t)}},{key:"off",value:function(t){this.listeners=t?this.listeners.filter((function(e){return e!==t})):[]}},{key:"emit",value:function(t,e){for(var o=this.listeners.slice(0),n=0;o.length>n;n++)o[n].apply(e,t)}}]),t}();function w(t,e){var o=new _(t,e),n={change:new k("change"),coloradd:new k("coloradd"),colorremove:new k("colorremove")},a=!0,s={},l={get element(){return o.element},get rgb(){return[o.R,o.G,o.B]},set rgb(t){var e=r(t,3),n=e[0],a=e[1],s=e[2],l=[(0,i.limit)(n,0,255),(0,i.limit)(a,0,255),(0,i.limit)(s,0,255)];o.onValueChanged(f,[n=l[0],a=l[1],s=l[2],1])},get hsl(){return[o.H,o.S,o.L]},set hsl(t){var e=r(t,3),n=e[0],a=e[1],s=e[2],l=[(0,i.limit)(n,0,360),(0,i.limit)(a,0,100),(0,i.limit)(s,0,100)];o.onValueChanged(m,[n=l[0],a=l[1],s=l[2],1])},get rgbhex(){return this.all.hex},get rgba(){return[o.R,o.G,o.B,o.A]},set rgba(t){var e=r(t,4),n=e[0],a=e[1],s=e[2],l=e[3],c=[(0,i.limit)(n,0,255),(0,i.limit)(a,0,255),(0,i.limit)(s,0,255),(0,i.limit)(l,0,1)];o.onValueChanged(f,[n=c[0],a=c[1],s=c[2],l=c[3]])},get hsla(){return[o.H,o.S,o.L,o.A]},set hsla(t){var e=r(t,4),n=e[0],a=e[1],s=e[2],l=e[3],c=[(0,i.limit)(n,0,360),(0,i.limit)(a,0,100),(0,i.limit)(s,0,100),(0,i.limit)(l,0,1)];o.onValueChanged(m,[n=c[0],a=c[1],s=c[2],l=c[3]])},get color(){return this.all.toString()},set color(t){o.onValueChanged(g,t)},setColor:function(t){o.onValueChanged(g,t,{silent:arguments.length>1&&void 0!==arguments[1]&&arguments[1]})},get all(){if(a){var t=[o.R,o.G,o.B,o.A],e=1>o.A?"rgba("+o.R+","+o.G+","+o.B+","+o.A+")":i.rgbToHex.apply(void 0,t);(s=(0,i.parseColor)(t,s)).toString=function(){return e},a=!1}return Object.assign({},s)},get onchange(){return n.change&&n.change.listeners[0]},set onchange(t){this.off("change").on("change",t)},get oncoloradd(){return n.coloradd&&n.coloradd.listeners[0]},set oncoloradd(t){this.off("coloradd").on("coloradd",t)},get oncolorremove(){return n.colorremove&&n.colorremove.listeners[0]},set oncolorremove(t){this.off("colorremove").on("colorremove",t)},get palette(){return Object.keys(o.palette).filter((function(t){return o.palette[t]}))},set palette(t){o.updatePalette(t)},show:function(){o.element.classList.remove("hidden")},hide:function(){o.element.classList.add("hidden")},toggle:function(){o.element.classList.toggle("hidden")},on:function(t,e){return t&&n[t]&&n[t].on(e),this},off:function(t,e){return t&&n[t]&&n[t].off(e),this},destroy:function(){n.change.off(),n.coloradd.off(),n.colorremove.off(),o.element.remove(),n=null,o=null}};return o.onchange=function(){for(var t=arguments.length,e=Array(t),o=0;t>o;o++)e[o]=arguments[o];a=!0,n.change.emit([l].concat(e),l)},o.oncoloradd=function(){for(var t=arguments.length,e=Array(t),o=0;t>o;o++)e[o]=arguments[o];n.coloradd.emit([l].concat(e),l)},o.oncolorremove=function(){for(var t=arguments.length,e=Array(t),o=0;t>o;o++)e[o]=arguments[o];n.colorremove.emit([l].concat(e),l)},o.element.ctrl=l,l}if("undefined"!=typeof window&&!document.querySelector('head>style[data-source="a-color-picker"]')){var E=o(5).toString(),A=document.createElement("style");A.setAttribute("type","text/css"),A.setAttribute("data-source","a-color-picker"),A.innerHTML=E,document.querySelector("head").appendChild(A)}e.createPicker=w,e.from=function(t,e){var o=function(t){return t?Array.isArray(t)?t:t instanceof HTMLElement?[t]:t instanceof NodeList?[].concat(p(t)):"string"==typeof t?[].concat(p(document.querySelectorAll(t))):t.jquery?t.get():[]:[]}(t).map((function(t,o){var n=w(t,e);return n.index=o,n}));return o.on=function(t,e){return o.forEach((function(o){return o.on(t,e)})),this},o.off=function(t){return o.forEach((function(e){return e.off(t)})),this},o},e.parseColorToRgb=i.parseColorToRgb,e.parseColorToRgba=i.parseColorToRgba,e.parseColorToHsl=i.parseColorToHsl,e.parseColorToHsla=i.parseColorToHsla,e.parseColor=i.parseColor,e.rgbToHex=i.rgbToHex,e.hslToRgb=i.hslToRgb,e.rgbToHsl=i.rgbToHsl,e.rgbToHsv=i.rgbToHsv,e.rgbToInt=i.rgbToInt,e.intToRgb=i.intToRgb,e.getLuminance=i.getLuminance,e.COLOR_NAMES=i.COLOR_NAMES,e.PALETTE_MATERIAL_500=i.PALETTE_MATERIAL_500,e.PALETTE_MATERIAL_CHROME=i.PALETTE_MATERIAL_CHROME,e.VERSION="1.2.1"},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.nvl=e.ensureArray=e.limit=e.getLuminance=e.parseColor=e.parseColorToHsla=e.parseColorToHsl=e.cssHslaToHsla=e.cssHslToHsl=e.parseColorToRgba=e.parseColorToRgb=e.cssRgbaToRgba=e.cssRgbToRgb=e.cssColorToRgba=e.cssColorToRgb=e.intToRgb=e.rgbToInt=e.rgbToHsv=e.rgbToHsl=e.hslToRgb=e.rgbToHex=e.PALETTE_MATERIAL_CHROME=e.PALETTE_MATERIAL_500=e.COLOR_NAMES=void 0;var n=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var o=[],n=!0,r=!1,i=void 0;try{for(var a,s=t[Symbol.iterator]();!(n=(a=s.next()).done)&&(o.push(a.value),!e||o.length!==e);n=!0);}catch(t){r=!0,i=t}finally{try{!n&&s.return&&s.return()}finally{if(r)throw i}}return o}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")},r=function(t){return t&&t.__esModule?t:{default:t}}(o(0));function i(t){if(Array.isArray(t)){for(var e=0,o=Array(t.length);t.length>e;e++)o[e]=t[e];return o}return Array.from(t)}var a={aliceblue:"#F0F8FF",antiquewhite:"#FAEBD7",aqua:"#00FFFF",aquamarine:"#7FFFD4",azure:"#F0FFFF",beige:"#F5F5DC",bisque:"#FFE4C4",black:"#000000",blanchedalmond:"#FFEBCD",blue:"#0000FF",blueviolet:"#8A2BE2",brown:"#A52A2A",burlywood:"#DEB887",cadetblue:"#5F9EA0",chartreuse:"#7FFF00",chocolate:"#D2691E",coral:"#FF7F50",cornflowerblue:"#6495ED",cornsilk:"#FFF8DC",crimson:"#DC143C",cyan:"#00FFFF",darkblue:"#00008B",darkcyan:"#008B8B",darkgoldenrod:"#B8860B",darkgray:"#A9A9A9",darkgrey:"#A9A9A9",darkgreen:"#006400",darkkhaki:"#BDB76B",darkmagenta:"#8B008B",darkolivegreen:"#556B2F",darkorange:"#FF8C00",darkorchid:"#9932CC",darkred:"#8B0000",darksalmon:"#E9967A",darkseagreen:"#8FBC8F",darkslateblue:"#483D8B",darkslategray:"#2F4F4F",darkslategrey:"#2F4F4F",darkturquoise:"#00CED1",darkviolet:"#9400D3",deeppink:"#FF1493",deepskyblue:"#00BFFF",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1E90FF",firebrick:"#B22222",floralwhite:"#FFFAF0",forestgreen:"#228B22",fuchsia:"#FF00FF",gainsboro:"#DCDCDC",ghostwhite:"#F8F8FF",gold:"#FFD700",goldenrod:"#DAA520",gray:"#808080",grey:"#808080",green:"#008000",greenyellow:"#ADFF2F",honeydew:"#F0FFF0",hotpink:"#FF69B4","indianred ":"#CD5C5C","indigo ":"#4B0082",ivory:"#FFFFF0",khaki:"#F0E68C",lavender:"#E6E6FA",lavenderblush:"#FFF0F5",lawngreen:"#7CFC00",lemonchiffon:"#FFFACD",lightblue:"#ADD8E6",lightcoral:"#F08080",lightcyan:"#E0FFFF",lightgoldenrodyellow:"#FAFAD2",lightgray:"#D3D3D3",lightgrey:"#D3D3D3",lightgreen:"#90EE90",lightpink:"#FFB6C1",lightsalmon:"#FFA07A",lightseagreen:"#20B2AA",lightskyblue:"#87CEFA",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#B0C4DE",lightyellow:"#FFFFE0",lime:"#00FF00",limegreen:"#32CD32",linen:"#FAF0E6",magenta:"#FF00FF",maroon:"#800000",mediumaquamarine:"#66CDAA",mediumblue:"#0000CD",mediumorchid:"#BA55D3",mediumpurple:"#9370DB",mediumseagreen:"#3CB371",mediumslateblue:"#7B68EE",mediumspringgreen:"#00FA9A",mediumturquoise:"#48D1CC",mediumvioletred:"#C71585",midnightblue:"#191970",mintcream:"#F5FFFA",mistyrose:"#FFE4E1",moccasin:"#FFE4B5",navajowhite:"#FFDEAD",navy:"#000080",oldlace:"#FDF5E6",olive:"#808000",olivedrab:"#6B8E23",orange:"#FFA500",orangered:"#FF4500",orchid:"#DA70D6",palegoldenrod:"#EEE8AA",palegreen:"#98FB98",paleturquoise:"#AFEEEE",palevioletred:"#DB7093",papayawhip:"#FFEFD5",peachpuff:"#FFDAB9",peru:"#CD853F",pink:"#FFC0CB",plum:"#DDA0DD",powderblue:"#B0E0E6",purple:"#800080",rebeccapurple:"#663399",red:"#FF0000",rosybrown:"#BC8F8F",royalblue:"#4169E1",saddlebrown:"#8B4513",salmon:"#FA8072",sandybrown:"#F4A460",seagreen:"#2E8B57",seashell:"#FFF5EE",sienna:"#A0522D",silver:"#C0C0C0",skyblue:"#87CEEB",slateblue:"#6A5ACD",slategray:"#708090",slategrey:"#708090",snow:"#FFFAFA",springgreen:"#00FF7F",steelblue:"#4682B4",tan:"#D2B48C",teal:"#008080",thistle:"#D8BFD8",tomato:"#FF6347",turquoise:"#40E0D0",violet:"#EE82EE",wheat:"#F5DEB3",white:"#FFFFFF",whitesmoke:"#F5F5F5",yellow:"#FFFF00",yellowgreen:"#9ACD32"};function s(t,e,o){return t=+t,isNaN(t)||e>t?e:t>o?o:t}function l(t,e){return null==t?e:t}function c(t,e,o){var n=[s(t,0,255),s(e,0,255),s(o,0,255)];return"#"+("000000"+((t=n[0])<<16|(e=n[1])<<8|(o=n[2])).toString(16)).slice(-6)}function p(t,e,o){var n=void 0,r=void 0,i=void 0,a=[s(t,0,360)/360,s(e,0,100)/100,s(o,0,100)/100];if(t=a[0],o=a[2],0==(e=a[1]))n=r=i=o;else{var l=function(t,e,o){return 0>o&&(o+=1),o>1&&(o-=1),1/6>o?t+6*(e-t)*o:.5>o?e:2/3>o?t+(e-t)*(2/3-o)*6:t},c=.5>o?o*(1+e):o+e-o*e,p=2*o-c;n=l(p,c,t+1/3),r=l(p,c,t),i=l(p,c,t-1/3)}return[255*n,255*r,255*i].map(Math.round)}function u(t,e,o){var n=[s(t,0,255)/255,s(e,0,255)/255,s(o,0,255)/255];t=n[0],e=n[1],o=n[2];var r=Math.max(t,e,o),i=Math.min(t,e,o),a=void 0,l=void 0,c=(r+i)/2;if(r==i)a=l=0;else{var p=r-i;switch(l=c>.5?p/(2-r-i):p/(r+i),r){case t:a=(e-o)/p+(o>e?6:0);break;case e:a=(o-t)/p+2;break;case o:a=(t-e)/p+4}a/=6}return[360*a,100*l,100*c].map(Math.round)}function h(t,e,o){return t<<16|e<<8|o}function d(t){if(t){var e=a[t.toString().toLowerCase()],o=/^\s*#?((([0-9A-F])([0-9A-F])([0-9A-F]))|(([0-9A-F]{2})([0-9A-F]{2})([0-9A-F]{2})))\s*$/i.exec(e||t)||[],r=n(o,10),i=r[3],s=r[4],l=r[5],c=r[7],p=r[8],u=r[9];if(void 0!==i)return[parseInt(i+i,16),parseInt(s+s,16),parseInt(l+l,16)];if(void 0!==c)return[parseInt(c,16),parseInt(p,16),parseInt(u,16)]}}function g(t){if(t){var e=a[t.toString().toLowerCase()],o=/^\s*#?((([0-9A-F])([0-9A-F])([0-9A-F])([0-9A-F])?)|(([0-9A-F]{2})([0-9A-F]{2})([0-9A-F]{2})([0-9A-F]{2})?))\s*$/i.exec(e||t)||[],r=n(o,12),i=r[3],s=r[4],l=r[5],c=r[6],p=r[8],u=r[9],h=r[10],d=r[11];if(void 0!==i)return[parseInt(i+i,16),parseInt(s+s,16),parseInt(l+l,16),c?+(parseInt(c+c,16)/255).toFixed(2):1];if(void 0!==p)return[parseInt(p,16),parseInt(u,16),parseInt(h,16),d?+(parseInt(d,16)/255).toFixed(2):1]}}function f(t){if(t){var e=/^rgb\((\d+)[\s,](\d+)[\s,](\d+)\)/i.exec(t)||[],o=n(e,4),r=o[2],i=o[3];return o[0]?[s(o[1],0,255),s(r,0,255),s(i,0,255)]:void 0}}function m(t){if(t){var e=/^rgba?\((\d+)\s*[\s,]\s*(\d+)\s*[\s,]\s*(\d+)(\s*[\s,]\s*(\d*(.\d+)?))?\)/i.exec(t)||[],o=n(e,6),r=o[2],i=o[3],a=o[5];return o[0]?[s(o[1],0,255),s(r,0,255),s(i,0,255),s(l(a,1),0,1)]:void 0}}function v(t){if(Array.isArray(t))return[s(t[0],0,255),s(t[1],0,255),s(t[2],0,255),s(l(t[3],1),0,1)];var e=g(t)||m(t);return e&&3===e.length&&e.push(1),e}function y(t){if(t){var e=/^hsl\((\d+)[\s,](\d+)[\s,](\d+)\)/i.exec(t)||[],o=n(e,4),r=o[2],i=o[3];return o[0]?[s(o[1],0,360),s(r,0,100),s(i,0,100)]:void 0}}function b(t){if(t){var e=/^hsla?\((\d+)\s*[\s,]\s*(\d+)\s*[\s,]\s*(\d+)(\s*[\s,]\s*(\d*(.\d+)?))?\)/i.exec(t)||[],o=n(e,6),r=o[2],i=o[3],a=o[5];return o[0]?[s(o[1],0,255),s(r,0,255),s(i,0,255),s(l(a,1),0,1)]:void 0}}function C(t){if(Array.isArray(t))return[s(t[0],0,360),s(t[1],0,100),s(t[2],0,100),s(l(t[3],1),0,1)];var e=b(t);return e&&3===e.length&&e.push(1),e}function _(t,e){switch(e){case"rgb":default:return t.slice(0,3);case"rgbcss":return"rgb("+t[0]+", "+t[1]+", "+t[2]+")";case"rgbcss4":return"rgb("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")";case"rgba":return t;case"rgbacss":return"rgba("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")";case"hsl":return u.apply(void 0,i(t));case"hslcss":return"hsl("+(t=u.apply(void 0,i(t)))[0]+", "+t[1]+", "+t[2]+")";case"hslcss4":var o=u.apply(void 0,i(t));return"hsl("+o[0]+", "+o[1]+", "+o[2]+", "+t[3]+")";case"hsla":return[].concat(i(u.apply(void 0,i(t))),[t[3]]);case"hslacss":var n=u.apply(void 0,i(t));return"hsla("+n[0]+", "+n[1]+", "+n[2]+", "+t[3]+")";case"hex":return c.apply(void 0,i(t));case"hexcss4":return c.apply(void 0,i(t))+("00"+parseInt(255*t[3]).toString(16)).slice(-2);case"int":return h.apply(void 0,i(t))}}e.COLOR_NAMES=a,e.PALETTE_MATERIAL_500=["#F44336","#E91E63","#E91E63","#9C27B0","#9C27B0","#673AB7","#673AB7","#3F51B5","#3F51B5","#2196F3","#2196F3","#03A9F4","#03A9F4","#00BCD4","#00BCD4","#009688","#009688","#4CAF50","#4CAF50","#8BC34A","#8BC34A","#CDDC39","#CDDC39","#FFEB3B","#FFEB3B","#FFC107","#FFC107","#FF9800","#FF9800","#FF5722","#FF5722","#795548","#795548","#9E9E9E","#9E9E9E","#607D8B","#607D8B"],e.PALETTE_MATERIAL_CHROME=["#f44336","#e91e63","#9c27b0","#673ab7","#3f51b5","#2196f3","#03a9f4","#00bcd4","#009688","#4caf50","#8bc34a","#cddc39","#ffeb3b","#ffc107","#ff9800","#ff5722","#795548","#9e9e9e","#607d8b"],e.rgbToHex=c,e.hslToRgb=p,e.rgbToHsl=u,e.rgbToHsv=function(t,e,o){var n=[s(t,0,255)/255,s(e,0,255)/255,s(o,0,255)/255];t=n[0],e=n[1],o=n[2];var r,i=Math.max(t,e,o),a=Math.min(t,e,o),l=void 0,c=i,p=i-a;if(r=0===i?0:p/i,i==a)l=0;else{switch(i){case t:l=(e-o)/p+(o>e?6:0);break;case e:l=(o-t)/p+2;break;case o:l=(t-e)/p+4}l/=6}return[l,r,c]},e.rgbToInt=h,e.intToRgb=function(t){return[t>>16&255,t>>8&255,255&t]},e.cssColorToRgb=d,e.cssColorToRgba=g,e.cssRgbToRgb=f,e.cssRgbaToRgba=m,e.parseColorToRgb=function(t){return Array.isArray(t)?t=[s(t[0],0,255),s(t[1],0,255),s(t[2],0,255)]:d(t)||f(t)},e.parseColorToRgba=v,e.cssHslToHsl=y,e.cssHslaToHsla=b,e.parseColorToHsl=function(t){return Array.isArray(t)?t=[s(t[0],0,360),s(t[1],0,100),s(t[2],0,100)]:y(t)},e.parseColorToHsla=C,e.parseColor=function(t,e){if(e=e||"rgb",null!=t){var o=void 0;if((o=v(t))||(o=C(t))&&(o=[].concat(i(p.apply(void 0,i(o))),[o[3]])))return(0,r.default)(e)?["rgb","rgbcss","rgbcss4","rgba","rgbacss","hsl","hslcss","hslcss4","hsla","hslacss","hex","hexcss4","int"].reduce((function(t,e){return t[e]=_(o,e),t}),e||{}):_(o,e.toString().toLowerCase())}},e.getLuminance=function(t,e,o){return.2126*(t=.03928>(t/=255)?t/12.92:Math.pow((t+.055)/1.055,2.4))+.7152*(e=.03928>(e/=255)?e/12.92:Math.pow((e+.055)/1.055,2.4))+.0722*(.03928>(o/=255)?o/12.92:Math.pow((o+.055)/1.055,2.4))},e.limit=s,e.ensureArray=function(t){return t?Array.from(t):[]},e.nvl=l},function(t,e,o){"use strict";t.exports=function(t){return null!=t&&"object"==typeof t&&!1===Array.isArray(t)}},function(t,e){t.exports='<div class="a-color-picker-row a-color-picker-stack a-color-picker-row-top"> <canvas class="a-color-picker-sl a-color-picker-transparent"></canvas> <div class=a-color-picker-dot></div> </div> <div class=a-color-picker-row> <div class="a-color-picker-stack a-color-picker-transparent a-color-picker-circle"> <div class=a-color-picker-preview> <input class=a-color-picker-clipbaord type=text> </div> </div> <div class=a-color-picker-column> <div class="a-color-picker-cell a-color-picker-stack"> <canvas class=a-color-picker-h></canvas> <div class=a-color-picker-dot></div> </div> <div class="a-color-picker-cell a-color-picker-alpha a-color-picker-stack" show-on-alpha> <canvas class="a-color-picker-a a-color-picker-transparent"></canvas> <div class=a-color-picker-dot></div> </div> </div> </div> <div class="a-color-picker-row a-color-picker-hsl" show-on-hsl> <label>H</label> <input nameref=H type=number maxlength=3 min=0 max=360 value=0> <label>S</label> <input nameref=S type=number maxlength=3 min=0 max=100 value=0> <label>L</label> <input nameref=L type=number maxlength=3 min=0 max=100 value=0> </div> <div class="a-color-picker-row a-color-picker-rgb" show-on-rgb> <label>R</label> <input nameref=R type=number maxlength=3 min=0 max=255 value=0> <label>G</label> <input nameref=G type=number maxlength=3 min=0 max=255 value=0> <label>B</label> <input nameref=B type=number maxlength=3 min=0 max=255 value=0> </div> <div class="a-color-picker-row a-color-picker-rgbhex a-color-picker-single-input" show-on-single-input> <label>HEX</label> <input nameref=RGBHEX type=text select-on-focus> </div> <div class="a-color-picker-row a-color-picker-palette"></div>'},function(t,e,o){var n=o(6);t.exports="string"==typeof n?n:n.toString()},function(t,e,o){(t.exports=o(7)(!1)).push([t.i,"/*!\n * a-color-picker\n * https://github.com/narsenico/a-color-picker\n *\n * Copyright (c) 2017-2018, Gianfranco Caldi.\n * Released under the MIT License.\n */.a-color-picker{background-color:#fff;padding:0;display:inline-flex;flex-direction:column;user-select:none;width:232px;font:400 10px Helvetica,Arial,sans-serif;border-radius:3px;box-shadow:0 0 0 1px rgba(0,0,0,.05),0 2px 4px rgba(0,0,0,.25)}.a-color-picker,.a-color-picker-row,.a-color-picker input{box-sizing:border-box}.a-color-picker-row{padding:15px;display:flex;flex-direction:row;align-items:center;justify-content:space-between;user-select:none}.a-color-picker-row-top{padding:0}.a-color-picker-row:not(:first-child){border-top:1px solid #f5f5f5}.a-color-picker-column{display:flex;flex-direction:column}.a-color-picker-cell{flex:1 1 auto;margin-bottom:4px}.a-color-picker-cell:last-child{margin-bottom:0}.a-color-picker-stack{position:relative}.a-color-picker-dot{position:absolute;width:14px;height:14px;top:0;left:0;background:#fff;pointer-events:none;border-radius:50px;z-index:1000;box-shadow:0 1px 2px rgba(0,0,0,.75)}.a-color-picker-a,.a-color-picker-h,.a-color-picker-sl{cursor:cell}.a-color-picker-a+.a-color-picker-dot,.a-color-picker-h+.a-color-picker-dot{top:-2px}.a-color-picker-a,.a-color-picker-h{border-radius:2px}.a-color-picker-preview{box-sizing:border-box;width:30px;height:30px;user-select:none;border-radius:15px}.a-color-picker-circle{border-radius:50px;border:1px solid #eee}.a-color-picker-hsl,.a-color-picker-rgb,.a-color-picker-single-input{justify-content:space-evenly}.a-color-picker-hsl>label,.a-color-picker-rgb>label,.a-color-picker-single-input>label{padding:0 8px;flex:0 0 auto;color:#969696}.a-color-picker-hsl>input,.a-color-picker-rgb>input,.a-color-picker-single-input>input{text-align:center;padding:2px 0;width:0;flex:1 1 auto;border:1px solid #e0e0e0;line-height:20px}.a-color-picker-hsl>input::-webkit-inner-spin-button,.a-color-picker-rgb>input::-webkit-inner-spin-button,.a-color-picker-single-input>input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.a-color-picker-hsl>input:focus,.a-color-picker-rgb>input:focus,.a-color-picker-single-input>input:focus{border-color:#04a9f4;outline:none}.a-color-picker-transparent{background-image:linear-gradient(-45deg,#cdcdcd 25%,transparent 0),linear-gradient(45deg,#cdcdcd 25%,transparent 0),linear-gradient(-45deg,transparent 75%,#cdcdcd 0),linear-gradient(45deg,transparent 75%,#cdcdcd 0);background-size:11px 11px;background-position:0 0,0 -5.5px,-5.5px 5.5px,5.5px 0}.a-color-picker-sl{border-radius:3px 3px 0 0}.a-color-picker.hide-alpha [show-on-alpha],.a-color-picker.hide-hsl [show-on-hsl],.a-color-picker.hide-rgb [show-on-rgb],.a-color-picker.hide-single-input [show-on-single-input]{display:none}.a-color-picker-clipbaord{width:100%;height:100%;opacity:0;cursor:pointer}.a-color-picker-palette{flex-flow:wrap;flex-direction:row;justify-content:flex-start;padding:10px}.a-color-picker-palette-color{width:15px;height:15px;flex:0 1 15px;margin:3px;box-sizing:border-box;cursor:pointer;border-radius:3px;box-shadow:inset 0 0 0 1px rgba(0,0,0,.1)}.a-color-picker-palette-add{text-align:center;line-height:13px;color:#607d8b}.a-color-picker.hidden{display:none}",""])},function(t,e){t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var o=function(t,e){var o=t[1]||"",n=t[3];if(!n)return o;if(e&&"function"==typeof btoa){var r=function(t){return"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(t))))+" */"}(n),i=n.sources.map((function(t){return"/*# sourceURL="+n.sourceRoot+t+" */"}));return[o].concat(i).concat([r]).join("\n")}return[o].join("\n")}(e,t);return e[2]?"@media "+e[2]+"{"+o+"}":o})).join("")},e.i=function(t,o){"string"==typeof t&&(t=[[null,t,""]]);for(var n={},r=0;this.length>r;r++){var i=this[r][0];"number"==typeof i&&(n[i]=!0)}for(r=0;t.length>r;r++){var a=t[r];"number"==typeof a[0]&&n[a[0]]||(o&&!a[2]?a[2]=o:o&&(a[2]="("+a[2]+") and ("+o+")"),e.push(a))}},e}}])},88572:function(t,e,o){"use strict";function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}function r(t,e,o){var r=o.value;if("function"!=typeof r)throw new TypeError("@boundMethod decorator can only be applied to methods not: ".concat(n(r)));var i=!1;return{configurable:!0,get:function(){if(i||this===t.prototype||this.hasOwnProperty(e)||"function"!=typeof r)return r;var o=r.bind(this);return i=!0,Object.defineProperty(this,e,{configurable:!0,get:function(){return o},set:function(t){r=t,delete this[e]}}),i=!1,o},set:function(t){r=t}}}function i(t){var e;return"undefined"!=typeof Reflect&&"function"==typeof Reflect.ownKeys?e=Reflect.ownKeys(t.prototype):(e=Object.getOwnPropertyNames(t.prototype),"function"==typeof Object.getOwnPropertySymbols&&(e=e.concat(Object.getOwnPropertySymbols(t.prototype)))),e.forEach((function(e){if("constructor"!==e){var o=Object.getOwnPropertyDescriptor(t.prototype,e);"function"==typeof o.value&&Object.defineProperty(t.prototype,e,r(t,e,o))}})),t}function a(){return 1===arguments.length?i.apply(void 0,arguments):r.apply(void 0,arguments)}o.r(e),o.d(e,{boundClass:function(){return i},boundMethod:function(){return r},default:function(){return a}})},27618:function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.UIRange=void 0;var n=o(70655);o(74054);var r=o(98440),i=o(51923),a=o(16892),s=o(88572),l=function(t){function e(e,o){var i=t.call(this,e,n.__assign(n.__assign({},o),{type:"hidden"}))||this;return i.state=n.__assign(n.__assign({},r.UIInput.defaultState),{min:0,max:100}),i.startValue=0,i.startX=0,i.width=100,Object.assign(i.state,o),i.appendUIRange(),i.onChangeSelfValue(),i}return n.__extends(e,t),e.prototype.className=function(){return"UIRange"},e.prototype.appendUIRange=function(){var t=this.j.create.div(this.getFullElName("slider"));this.container.appendChild(t);var e=this.j.create.div(this.getFullElName("handle"));t.appendChild(e);var o=this.j.create.div(this.getFullElName("log")),n=this.getElm("label");(0,a.assert)(null!=n,"label element does not exists"),n.appendChild(o)},e.prototype.onDragStart=function(t){this.startValue=parseFloat(this.value)||0,this.startX=t.clientX;var e=this.getElm("slider");(0,a.assert)(null!=e,"slider element does not exists"),this.width=e.offsetWidth,this.j.e.on(this.j.ow,"mousemove",this.onDrag)},e.prototype.onDrag=function(t){var e=this.state,o=e.min,n=e.max,r=this.startValue+(t.clientX-this.startX)/this.width*(this.state.max-this.state.min);o>r&&(r=o),r>n&&(r=n),this.value=r.toString()},e.prototype.onDragEnd=function(){this.j.e.off(this.j.ow,"mousemove",this.onDrag)},e.prototype.onChangeSelfValue=function(){var t=this.getElm("handle"),e=parseFloat(this.value)||0;(0,a.assert)(null!=t,"Handle element does not exist"),(0,a.css)(t,{left:(e-this.state.min)/(this.state.max-this.state.min)*100+"%"});var o=this.getElm("log");(0,a.assert)(null!=o,"log element does not exist"),o.innerText=e.toString()},e.prototype.destruct=function(){return this.onDragEnd(),t.prototype.destruct.call(this)},n.__decorate([(0,i.watch)(["handle:mousedown","handle:touchstart"])],e.prototype,"onDragStart",null),n.__decorate([s.default],e.prototype,"onDrag",null),n.__decorate([(0,i.watch)(["j.ow:mouseup","j.ow:touchend"])],e.prototype,"onDragEnd",null),n.__decorate([(0,i.watch)(":change")],e.prototype,"onChangeSelfValue",null),n.__decorate([i.component],e)}(r.UIInput);e.UIRange=l},6626:function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ColorInput=void 0;var n=o(70655);o(26164);var r=o(98440),i=o(51923),a=o(16892),s=o(43746),l=o(71910),c=o(49940),p=o(16892),u=function(t){function e(e,o){var n=t.call(this,e,o)||this,i=new r.Popup(e);n.popup=i,n.trigger=(0,r.Button)(n.j,"ok");var c=n.getElm("wrapper");(0,p.assert)(null!=c,"wrapper element does not exist"),c.appendChild(n.trigger.container),n.trigger.container.classList.add(n.getFullElName("trigger")),n.trigger.onAction((function(){var t,e;null===(e=(t=n.state).onChange)||void 0===e||e.call(t,n.value),i.close()})),i.setMod("padding",!1).setMod("max-height",!1);var u=n.j.create.div(n.getFullElName("picker")),h=s.createPicker(u,{paletteEditable:!0,showAlpha:!0,palette:"PALETTE_MATERIAL_CHROME"}).on("change",(function(t,e){n.isFocused||(n.value=s.parseColor(e||"","hex"))}));return n.j.e.on(n,"change",(function(){s.parseColor(n.value,"hex")!==h.color&&(h.color=n.value)})),i.setContent(u),n.j.e.on(n.nativeInput,"click",(function(){i.parentElement=n,n.jodit instanceof l.Dialog&&i.setZIndex(n.jodit.getZIndex()+1),i.open((function(){return(0,a.position)(n.container)}))})),n.onChangeValue(),n.onChangeSelfValue(),n}return n.__extends(e,t),e.prototype.className=function(){return"ColorInput"},e.prototype.afterSetMode=function(t,e){"slim"===t&&e&&this.nativeInput.setAttribute("readonly","true")},e.prototype.onChangeSelfValue=function(){this.nativeInput.style.backgroundColor=this.value},e.prototype.onEscKeyDown=function(t){var e;t.key===c.KEY_ESC&&(null===(e=this.popup)||void 0===e||e.close())},n.__decorate([(0,i.watch)(":change")],e.prototype,"onChangeSelfValue",null),n.__decorate([(0,i.watch)("nativeInput:keydown")],e.prototype,"onEscKeyDown",null),n.__decorate([i.component],e)}(r.UIInput);e.ColorInput=u},75922:function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),o(98440).Icon.set("map",o(32207)).set("edit-hand",o(40767)).set("edit-polygon",o(26929)).set("edit-marker",o(22657)).set("edit-text",o(98576)).set("edit-polyline",o(87526)).set("edit-circle",o(88862))},21779:function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=o(733),r=o(95929);n.Config.prototype.googleMaps={saveStateInStorage:!0,useStaticImage:!1,apiUrl:"https://maps.googleapis.com/maps/api/js?key=${j.o.googleMaps.API_KEY}&libraries=geometry,places,drawing&language=${j.o.language}&callback=JoditGoogleReadyHandler",API_KEY:"AIzaSyDjnR03hxN8fo0QJ85Jkkvk2DALTh3eynY",dialog:{size:[700,700]},inlineEditorOptions:{buttons:["bold","italic","link","brush","fontsize","image"]},map:{type:"roadmap",layer:"default",center:"auto",defaultCenter:[-34.397,150.644],defaultZoom:10,zoom:10,size:[500,400],defaultStates:{polyline:{strokeColor:"#5ba4f3",strokeWeight:3},polygon:{strokeColor:"#417706",fillColor:"#5b9302",strokeWeight:1,fillOpacity:.5},marker:{},text:{},circle:{strokeColor:"#da767c",fillColor:"#f34ca8",strokeWeight:1,fillOpacity:.5}}}},n.Config.prototype.controls.googleMaps={tooltip:"Google Maps",icon:"map",command:r.COMMAND_OPEN_DIALOG};var i=function(t){return{icon:"edit-".concat(t),isActive:function(e){return e.buffer.get("createMode.gm")===t},exec:function(e){e.e.fire("changeCreateMode.gm",t)}}};n.Config.prototype.controls.gm={hand:i("hand"),marker:i("marker"),polyline:i("polyline"),polygon:i("polygon"),circle:i("circle"),text:i("text")}},28137:function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.googleMaps=void 0;var n=o(70655);o(34436);var r=o(43464),i=o(97029);o(21779),o(75922);var a=o(19800),s=o(24697),l=o(16892),c=o(49940),p=o(51923),u=o(48310),h=o(30099),d=o(33251),g=o(30804),f=o(75895),m=o(45143),v=o(95929);window.JoditGoogleReadyHandler=d.GoogleReadyHandler;var y=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.requires=["license","color-picker"],e.buttons=[{group:"media",name:"googleMaps"}],e.dialog=null,e}return n.__extends(e,t),e.prototype.className=function(){return"google-maps"},e.prototype.afterInit=function(t){var e=this;t.registerCommand(v.COMMAND_OPEN_DIALOG,(function(){e.openMapEditor(null,{})}))},e.prototype.beforeDestruct=function(t){},e.prototype.onOpenOnDblClick=function(t){if(t.dataset.googleMaps){var e=void 0;try{e=JSON.parse(this.j.ow.atob(t.dataset.googleMaps))}catch(t){}return this.openMapEditor(t,e),!1}},e.prototype.openMapEditor=function(t,e){return n.__awaiter(this,void 0,Promise,(function(){var o,r,i,c,p,u,m,y,b=this;return n.__generator(this,(function(C){return o=this.j,r=this.getDialog(),i=this.j.o.googleMaps.saveStateInStorage?r.storage.get(v.STORAGE_KEY):void 0,c=this.jodit.o.googleMaps.apiUrl,(0,d.isApiAvailable)()||(0,l.appendScriptAsync)(this.jodit,c.replace(/\${([^}]+)}/g,(function(t,e){var o;return null!==(o=b.get(e))&&void 0!==o?o:""}))),p=n.__assign(n.__assign({type:this.j.o.googleMaps.map.type,layer:this.j.o.googleMaps.map.layer,size:this.j.o.googleMaps.map.size},i),e),(u=new h.UIMap(r,p,this.j.options)).container.classList.add(r.getFullElName("map")),(m=new f.UIComboBox(o,{icon:"search",placeholder:"Search",clearButton:!0}).setMod("in-header",!0)).container.classList.add(r.getFullElName("search")),this.j.async.promise((function(t){if((0,d.isApiAvailable)())t(0);else{var e=function(){(0,d.isApiAvailable)()?t(0):b.j.async.setTimeout(e,100)};e(),(0,d.googleReady)(t)}})).then((function(){u.setStatus("ready"),m.setStatus("ready")})),this.j.e.on(m,"select",(function(t,e){e?u.map.fitBounds(e):t&&(u.state.center=[t.lat(),t.lng()])})),i||("auto"===this.j.o.googleMaps.map.center?navigator.geolocation.getCurrentPosition((function(t){u.state.center=[t.coords.latitude,t.coords.longitude]}),(function(){u.state.center=b.j.o.googleMaps.map.defaultCenter})):u.state.center=this.j.o.googleMaps.map.center),r.setSize.apply(r,n.__spreadArray([],n.__read(o.o.googleMaps.dialog.size),!1)).setHeader([m," ",(0,s.Button)(o,"eye").onAction((function(){var t=b.jodit.createInside.element("img");t.src=(0,g.staticUrl)(u),t.dataset.googleMaps=btoa(u.json());var e={value:t.outerHTML};b.onAfterGetValueFromEditor(e),o.execCommand("preview",null,e.value)}))]).setContent((0,a.TabsWidget)(o,[{name:"Map",icon:"map",content:u},{name:"Settings",content:new h.UIMapsPropsForm(o,u.state)},{name:"Controls",icon:"menu",content:new h.UIMapsControlsForm(o,u.state)}])).setFooter([(0,s.Button)(o,"cancel","Cancel","default").onAction((function(){return r.close()})),(0,s.Button)(o,"ok",t?"Save":"Insert","primary").onAction((function(){u.destruct(),m.destruct(),r.e.off("beforeClose",y),r.close(),b.insertMap(t,u)}))]).open(),y=function(){if(u.state.elements.length&&JSON.stringify(u.state.elements)!==JSON.stringify(p.elements)&&!confirm(b.i18n("Are you sure?")))return!1;u.destruct(),m.destruct(),r.e.off("beforeClose",y)},r.e.on("beforeClose",y),[2]}))}))},e.prototype.getDialog=function(){if(!this.dialog){var t=new u.Dialog({language:this.j.o.language});t.container.classList.add(this.getFullElName("")),this.dialog=t}return this.dialog},e.prototype.insertMap=function(t,e){var o=null!=t?t:this.jodit.createInside.element("img");o.src=(0,g.staticUrl)(e),o.dataset.googleMaps=btoa(e.json()),t||this.jodit.s.insertImage(o)},e.prototype.onBeforeSetNativeEditorValue=function(t){t.value=t.value.replace(/<script[^>]+jodit-google-maps-init[^>]+>.*?<\/script>/gs,"")},e.prototype.onAfterGetValueFromEditor=function(t,e){var o=this;this.j.o.googleMaps.useStaticImage||e===c.SOURCE_CONSUMER||(t.value=t.value.replace(/(<img[^>]+)(["']?)data-google-maps\2\s*=(["'])([^"']+)\3([^>]*>)/gs,(function(t,e,n,r,i,a){var s={};try{s=JSON.parse(o.j.ow.atob(i))}catch(t){}return"".concat(e,' id="').concat(s.uid,'" ').concat(n,"data-google-maps").concat(n,"=").concat(r).concat(i).concat(r).concat(a).concat((0,m.generateJSScript)(o.j,s))})))},n.__decorate([(0,p.watch)("?:openOnDblClick")],e.prototype,"onOpenOnDblClick",null),n.__decorate([(0,p.watch)(":beforeSetNativeEditorValue")],e.prototype,"onBeforeSetNativeEditorValue",null),n.__decorate([(0,p.watch)(":afterGetValueFromEditor")],e.prototype,"onAfterGetValueFromEditor",null),e}(r.Plugin);e.googleMaps=y,i.Jodit.plugins.add("google-maps",y)},95929:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.COMMAND_OPEN_DIALOG=e.STORAGE_KEY=void 0,e.STORAGE_KEY="googleMapsState",e.COMMAND_OPEN_DIALOG="googleMapsDialog"},45143:function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.generateJSScript=void 0;var n=o(16892);e.generateJSScript=function(t,e){return"<".concat("script",' class="jodit-google-maps-init" type="text/javascript">\n\t\tvar imgMap = document.getElementById(\'').concat(e.uid,"'),\n\t\t\tbox = document.createElement('div'),\n\t\t\tmapBox = document.createElement('div'),\n\t\t\tparentBox = imgMap && imgMap.parentNode,\n\t\t\tassign = Object.assign || function (a, b) {\n\t\t\t\treturn Object.keys(b).reduce(function(acc, key) {\n\t\t\t\t\tacc[key] = b[key];\n\t\t\t\t\treturn acc;\n\t\t\t\t}, a)\n\t\t\t};\n\n\t\tbox.id = 'b").concat(e.uid,"';\n\t\tparentBox ? parentBox.insertBefore(box, imgMap) : document.body.appendChild(box);\n\t\timgMap && box.appendChild(imgMap);\n\t\tbox.appendChild(mapBox);\n\n\t\tif (parentBox && parentBox.style.textAlign === 'center') {\n\t\t\tparentBox.style.margin = '0 auto';\n\t\t}\n\n\t\tbox.style.cssText = imgMap.style.cssText;\n\t\tbox.className = imgMap.className;\n\n\t\tvar w = (imgMap && imgMap.offsetWidth) || ").concat(e.size[0],",\n\t\t\t\th = (imgMap && imgMap.offsetHeight) || ").concat(e.size[1],";\n\n\t\tassign(box.style, {\n\t\t\tdisplay: !imgMap.style.cssText ? 'inline-block' : undefined,\n\t\t\twidth: w + 'px',\n\t\t\theight: h + 'px',\n\t\t\tposition: 'relative'\n\t\t});\n\n\t\tassign(mapBox.style, {\n\t\t\twidth: w + 'px',\n\t\t\theight: h + 'px',\n\t\t\tposition: 'absolute',\n\t\t\tleft: 0,\n\t\t\ttop: 0\n\t\t});\n\n\t\tfunction CreateGMap").concat(e.uid,"() {\n\t\t\tif (!mapBox) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tvar map = new google.maps.Map(mapBox, assign({\n\t\t\t\tzoom: ").concat(e.zoom,",\n\t\t\t\tcenter: { lat: ").concat(e.center[0],", lng: ").concat(e.center[1],"},\n\t\t\t\tmapType: '").concat(e.type,"'\n\t\t\t}, ").concat(JSON.stringify(e.controls),"));\n\n\t\t\tif (").concat("default"!==e.layer,") {\n\t\t\t\tnew google.maps.").concat((0,n.ucfirst)(e.layer),"Layer().setMap(map);\n\t\t\t}\n\n\t\t\tvar infoWindow = new google.maps.InfoWindow();\n\n\t\t\t").concat(JSON.stringify(e.elements),".forEach(function (elm) {\n\t\t\t\tswitch (elm.type) {\n\t\t\t\t\tcase 'marker': {\n\t\t\t\t\t\tvar obj = (new google.maps.Marker({\n\t\t\t\t\t\t\tposition: {lat: elm.coordinates[0], lng: elm.coordinates[1]},\n\t\t\t\t\t\t\tmap: map,\n\t\t\t\t\t\t\ttitle: elm.title\n\t\t\t\t\t\t}));\n\n\t\t\t\t\t\telm.text && obj.addListener('click', function () {\n\t\t\t\t\t\t\tinfoWindow.setContent(elm.text);\n\t\t\t\t\t\t\tinfoWindow.open(map, this);\n\t\t\t\t\t\t});\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\n\t\t\t\t\tcase 'circle': {\n\t\t\t\t\t\t(new google.maps.Circle({\n\t\t\t\t\t\t\tcenter: {lat: elm.coordinates[0], lng: elm.coordinates[1]},\n\t\t\t\t\t\t\tradius: elm.radius,\n\t\t\t\t\t\t\tstrokeColor: elm.strokeColor,\n\t\t\t\t\t\t\tfillColor: elm.fillColor,\n\t\t\t\t\t\t\tstrokeWeight: elm.strokeWeight,\n\t\t\t\t\t\t\tfillOpacity: elm.fillOpacity,\n\t\t\t\t\t\t\tmap: map,\n\t\t\t\t\t\t}));\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\n\t\t\t\t\tcase 'polygon':\n\t\t\t\t\tcase 'polyline': {\n\t\t\t\t\t\tfunction toPath(array) {\n\t\t\t\t\t\t\treturn array.map(function (item) {\n\t\t\t\t\t\t\t\tif (Array.isArray(item[0])) {\n\t\t\t\t\t\t\t\t\treturn toPath(item);\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\treturn {lat: item[0], lng: item[1]};\n\t\t\t\t\t\t\t})\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t(new google.maps[elm.type === 'polyline' ? 'Polyline' : 'Polygon']({\n\t\t\t\t\t\t\tpath: toPath(elm.coordinates),\n\t\t\t\t\t\t\tstrokeColor: elm.strokeColor,\n\t\t\t\t\t\t\tfillColor: elm.fillColor,\n\t\t\t\t\t\t\tstrokeWeight: elm.strokeWeight,\n\t\t\t\t\t\t\tfillOpacity: elm.fillOpacity,\n\t\t\t\t\t\t\tmap: map,\n\t\t\t\t\t\t}));\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t})\n\t\t}\n\n\t\tif (typeof google !== 'undefined' && typeof google.maps !=='undefined' && typeof google.maps.Map !== 'undefined') {\n\t\t\tCreateGMap").concat(e.uid,"();\n\t\t} else {\n\t\t\tvar scr = document.createElement('script');\n\t\t\tscr.src = 'https://maps.googleapis.com/maps/api/js?key=").concat(t.o.googleMaps.API_KEY,"&language=").concat(t.o.language,"&callback=CreateGMap").concat(e.uid,"';\n\t\t\tdocument.appendChild(scr);\n\t\t}\n\t\t/*]]>*/</").concat("script",">").replace(/[\n\t]+/g,"")}},22073:function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.generateStaticElements=void 0;var n=o(33251),r=o(16892);e.generateStaticElements=function(t){return t.state.elements.map((function(t){var e,o,i,a,s,l;switch(t.type){case"polygon":return"&path=fillcolor:".concat((0,n.specialColor)(null!==(e=t.fillColor)&&void 0!==e?e:"#fff"),"%7Cweight:").concat(null!==(o=t.strokeWeight)&&void 0!==o?o:1,"%7Ccolor:").concat((0,n.specialColor)(null!==(i=t.strokeColor)&&void 0!==i?i:"#fff"),"%7Cenc:").concat(google.maps.geometry.encoding.encodePath((0,n.arrayToPath)(t.coordinates)));case"polyline":return"&path=weight:".concat(null!==(a=t.strokeWeight)&&void 0!==a?a:1,"%7Ccolor:").concat((0,n.specialColor)(null!==(s=t.strokeColor)&&void 0!==s?s:"#fff"),"%7Cenc:").concat(google.maps.geometry.encoding.encodePath((0,n.arrayToPath)(t.coordinates)));case"marker":return"&markers=color:blue%7Clabel:".concat(encodeURIComponent((0,r.stripTags)(null!==(l=t.text)&&void 0!==l?l:"").charAt(0).toUpperCase()),"%7C").concat(t.coordinates)}return""})).join("")}},33251:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isApiAvailable=e.specialColor=e.pathToArray=e.arrayToPath=e.GoogleReadyHandler=e.googleReady=e.jdGoogleMapsOnloadHandlers=e.jdGoogleMapsAlreadyLoaded=void 0,e.jdGoogleMapsAlreadyLoaded=!1,e.jdGoogleMapsOnloadHandlers=[],e.googleReady=function(t){e.jdGoogleMapsAlreadyLoaded?t():e.jdGoogleMapsOnloadHandlers.push(t)},e.GoogleReadyHandler=function(){e.jdGoogleMapsAlreadyLoaded=!0,e.jdGoogleMapsOnloadHandlers&&e.jdGoogleMapsOnloadHandlers.forEach((function(t){return t()}))},e.arrayToPath=function t(e,o){void 0===o&&(o=!1);var n=[];if(Array.isArray(e)){if(!Array.isArray(e[0])&&!Array.isArray(e[1]))return o?{lat:e[0],lng:e[1]}:new google.maps.LatLng(e[0],e[1]);e.forEach((function(e){n.push(t(e,o))}))}return n},e.pathToArray=function(t){return t.getArray().map((function(t){return[t.lat(),t.lng()]}))},e.specialColor=function(t){return t.toUpperCase().replace("#","0x").padEnd(10,"F")},e.isApiAvailable=function(){return"undefined"!=typeof google&&void 0!==google.maps&&void 0!==google.maps.Map}},30804:function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.staticUrl=void 0;var n=o(22073);e.staticUrl=function(t){var e=t.state;return"https://maps.googleapis.com/maps/api/staticmap?center=".concat(e.center.join(","))+"&zoom=".concat(e.zoom)+"&size=".concat(e.size.join("x"))+"&maptype=".concat(e.type)+"&key=".concat(t.options.googleMaps.API_KEY)+(0,n.generateStaticElements)(t)}},75895:function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.UIComboBox=void 0;var n=o(70655);o(70290);var r=o(98440),i=o(51923),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n.__extends(e,t),e.prototype.className=function(){return"UIComboBox"},e.prototype.onReady=function(){var t=this,e=new google.maps.places.Autocomplete(this.nativeInput,{fields:["address_components","geometry","name"],types:["geocode"]});e.addListener("place_changed",(function(){var o,n,r=e.getPlace();t.j.e.fire(t,"select",null===(o=r.geometry)||void 0===o?void 0:o.location,null===(n=r.geometry)||void 0===n?void 0:n.viewport)}))},e.prototype.onInput=function(){return n.__awaiter(this,void 0,Promise,(function(){return n.__generator(this,(function(t){return[2]}))}))},n.__decorate([(0,i.hook)("ready")],e.prototype,"onReady",null),n.__decorate([(0,i.watch)("nativeInput:input"),(0,i.debounce)()],e.prototype,"onInput",null),e}(r.UIInput);e.UIComboBox=a},48201:function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.UIBaseEditor=void 0;var n=o(70655),r=o(98440),i=function(t){function e(e,o,n){var r=t.call(this,e)||this;return r.state=o,r.options=n,r}return n.__extends(e,t),e.prototype.className=function(){return"UIBaseEditor"},e.prototype.render=function(){return"<div>\n\t\t\t<div class='&__header'></div>\n\t\t\t<div class='&__form'></div>\n\t\t\t<div class='&__buttons'></div>\n\t\t</div>"},e.prototype.onReady=function(){var t=this,e=(0,r.Button)(this.j,"bin").onAction((function(){return t.j.e.fire(t,"bin")}));this.append(e,"buttons")},e}(r.UIGroup);e.UIBaseEditor=i},41560:function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=o(70655);n.__exportStar(o(53006),e),n.__exportStar(o(16093),e),n.__exportStar(o(4585),e)},53006:function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.UIMarkerEditor=void 0;var n=o(70655),r=o(51923),i=o(58333),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n.__extends(e,t),e.prototype.onReady=function(){var e,o=this;t.prototype.onReady.call(this);var n=new i.UIWysiwyg(this.j,this.options.googleMaps.inlineEditorOptions,null!==(e=this.state.text)&&void 0!==e?e:"",(function(t){return o.j.e.fire(o,"change","text",t)}));this.append(n,"form")},n.__decorate([(0,r.hook)("ready")],e.prototype,"onReady",null),n.__decorate([r.component],e)}(o(48201).UIBaseEditor);e.UIMarkerEditor=a},4585:function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.UIPolygonEditor=void 0;var n=o(70655),r=o(51923),i=o(6626),a=o(16093),s=o(27618),l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n.__extends(e,t),e.prototype.onReady=function(){var t,e,o=this;this.append([new i.ColorInput(this.j,{label:"Fill color",value:null!==(t=this.state.fillColor)&&void 0!==t?t:"#000",onChange:function(t){return o.j.e.fire(o,"change","fillColor",t)}}).setMod("trigger",!1),new s.UIRange(this.j,{label:"Opacity",min:0,max:1,value:null!==(e=this.state.fillOpacity)&&void 0!==e?e:1,onChange:function(t){o.j.e.fire(o,"change","fillOpacity",parseFloat(t)||0)}}).setMod("log",!1)],"form")},n.__decorate([(0,r.hook)("ready")],e.prototype,"onReady",null),n.__decorate([r.component],e)}(a.UIPolylineEditor);e.UIPolygonEditor=l},16093:function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.UIPolylineEditor=void 0;var n=o(70655),r=o(51923),i=o(48201),a=o(6626),s=o(98440),l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n.__extends(e,t),e.prototype.onReady=function(){var e,o,n=this;t.prototype.onReady.call(this),this.append([new s.UIInput(this.j,{label:"Stroke weight",value:null!==(e=this.state.strokeWeight)&&void 0!==e?e:1,type:"number",onChange:function(t){return n.j.e.fire(n,"change","strokeWeight",t)}}),new a.ColorInput(this.j,{label:"Stroke color",value:null!==(o=this.state.strokeColor)&&void 0!==o?o:"#000",onChange:function(t){return n.j.e.fire(n,"change","strokeColor",t)}}).setMod("trigger",!1)],"form")},n.__decorate([(0,r.hook)("ready")],e.prototype,"onReady",null),n.__decorate([r.component],e)}(i.UIBaseEditor);e.UIPolylineEditor=l},30099:function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=o(70655);n.__exportStar(o(55807),e),n.__exportStar(o(41560),e),n.__exportStar(o(58333),e),n.__exportStar(o(92599),e),n.__exportStar(o(29893),e)},55807:function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.UIMap=void 0;var n=o(70655);o(68120);var r=o(98440),i=o(51923),a=o(16892),s=o(71910),l=o(95929),c=o(18271),p=o(58706);o(21779);var u=o(32501),h=o(16892),d=function(t){function e(e,o,n){var r=t.call(this,e)||this;r.options=n,r.toolbar=new s.ToolbarCollection(r.jodit),r.state={uid:"jd"+(0,p.uniqueUid)()+(new Date).toString().replace(/[^0-9]/g,""),layer:r.options.googleMaps.map.layer,center:r.options.googleMaps.map.defaultCenter,zoom:r.options.googleMaps.map.defaultZoom,size:r.options.googleMaps.map.size,type:r.options.googleMaps.map.type,controls:{zoomControl:!0,mapTypeControl:!0,scaleControl:!0,streetViewControl:!0,rotateControl:!0,fullscreenControl:!0},mode:"hand",elements:[]},r.mapElements=[],r.apiLoaded=null,r.mapInitialized=!1,r.layers=[],Object.assign(r.state,o),r.toolbar.build(["gm.hand","gm.marker","gm.polyline","gm.polygon","gm.circle"]);var i=r.getElm("map-palette");return(0,h.assert)(null!=i,"palette element does not exists"),i.appendChild(r.toolbar.container),r}return n.__extends(e,t),e.prototype.className=function(){return"UIMap"},e.prototype.json=function(){return JSON.stringify(n.__assign(n.__assign({},this.state),{mode:"hand"}))},e.prototype.onReady=function(){return n.__awaiter(this,void 0,Promise,(function(){var t,e=this;return n.__generator(this,(function(o){switch(o.label){case 0:return[4,this.apiLoaded];case 1:return o.sent(),t=this.getElm("map-root"),(0,h.assert)(null!=t,"map-root element does not exists"),this.map=new google.maps.Map(t,{center:{lat:this.state.center[0],lng:this.state.center[1]},zoom:this.state.zoom,mapTypeId:this.state.type}),this.map.addListener("zoom_changed",(function(){var t;e.state.zoom=null!==(t=e.map.getZoom())&&void 0!==t?t:10})),this.map.addListener("center_changed",(function(){var t,o,n,r,i,a;e.state.center=[null!==(n=null===(o=null===(t=e.map)||void 0===t?void 0:t.getCenter())||void 0===o?void 0:o.lat())&&void 0!==n?n:55,null!==(a=null===(i=null===(r=e.map)||void 0===r?void 0:r.getCenter())||void 0===i?void 0:i.lng())&&void 0!==a?a:34]})),this.map.addListener("maptypeid_changed",(function(){var t=e.map.getMapTypeId();t&&(e.state.type=t)})),this.initDrawManager(),this.onChangeElementsList(),this.onChangeSize(),this.onChangeControls(),this.onChangeLayer(),this.onChangeMapType(),this.onChangeMode(),this.mapInitialized=!0,this.j.async.requestIdleCallback((function(){e.j.e.fire(e,"GoogleMapsIsReady")})),[2]}}))}))},e.prototype.initDrawManager=function(){var t=this;try{var e=new google.maps.drawing.DrawingManager;e.setMap(this.map),e.setOptions({drawingControl:!1,polygonOptions:n.__assign(n.__assign({},this.options.googleMaps.map.defaultStates.polygon),{clickable:!0,editable:!0}),polylineOptions:n.__assign(n.__assign({},this.options.googleMaps.map.defaultStates.polyline),{clickable:!0,editable:!0}),markerOptions:n.__assign(n.__assign({},this.options.googleMaps.map.defaultStates.marker),{clickable:!0}),circleOptions:n.__assign(n.__assign({},this.options.googleMaps.map.defaultStates.circle),{clickable:!0,editable:!0})}),this.drawingManager=e,google.maps.event.addListener(e,"overlaycomplete",(function(e){e.overlay&&(u.addNewInState.call(t,e.overlay),e.overlay.setMap(null))}))}catch(t){}},e.prototype.changeCreateMode=function(t){this.state.mode=this.state.mode===t?"hand":t},e.prototype.onChangeMode=function(){var t;this.j.buffer.set("createMode.gm",this.state.mode),null===(t=this.drawingManager)||void 0===t||t.setDrawingMode("hand"===this.state.mode?null:this.state.mode),this.j.e.fire("updateToolbar")},e.prototype.onChangeElementsList=function(){var t=this,e=this.state.elements,o=this.mapElements;o.length>e.length&&o.slice(e.length).forEach((function(t){t.gme.setMap(null)})),o.length=e.length,e.forEach((function(e,o){return c.initOrUpdateElementFromState.call(t,e,o)}))},e.prototype.onChangeCenter=function(){var t=this.map.getCenter();(null==t?void 0:t.lat())===this.state.center[0]&&(null==t?void 0:t.lng())===this.state.center[1]||this.map.setCenter({lat:this.state.center[0],lng:this.state.center[1]})},e.prototype.onChangeZoom=function(){var t;null===(t=this.map)||void 0===t||t.setZoom(this.state.zoom)},e.prototype.onChangeControls=function(){var t,e;for(e in this.state.controls)null===(t=this.map)||void 0===t||t.set(e,this.state.controls[e])},e.prototype.onChangeBound=function(){this.options.googleMaps.saveStateInStorage&&this.j.storage.set(l.STORAGE_KEY,{center:this.state.center,size:this.state.size,zoom:this.state.zoom,type:this.state.type,layer:this.state.layer,controls:this.state.controls})},e.prototype.onChangeSize=function(){var t=this.getElm("map-size");(0,h.assert)(null!=t,"map-size element does not exists"),(0,a.css)(t,{width:this.state.size[0],height:this.state.size[1]})},e.prototype.onChangeMapType=function(){this.map.setMapTypeId(this.state.type)},e.prototype.onChangeLayer=function(){var t=this;switch(this.layers.forEach((function(t){return t.setMap(null)})),this.layers.length=0,this.state.layer){case"traffic":this.layers.push(new google.maps.TrafficLayer);break;case"transit":this.layers.push(new google.maps.TransitLayer);break;case"bicycling":this.layers.push(new google.maps.BicyclingLayer)}this.layers.forEach((function(e){return e.setMap(t.map)}))},e.prototype.render=function(){return"<div>\n\t\t\t<div class='&__map-root'></div>\n\t\t\t<div class='&__map-size'></div>\n\t\t\t<div class='&__map-palette'></div>\n\t\t</div>"},e.prototype.appendChildToContainer=function(){},n.__decorate([(0,i.hook)("ready")],e.prototype,"onReady",null),n.__decorate([(0,i.watch)("?:changeCreateMode.gm")],e.prototype,"changeCreateMode",null),n.__decorate([(0,i.watch)("state.mode")],e.prototype,"onChangeMode",null),n.__decorate([(0,i.watch)("state.elements")],e.prototype,"onChangeElementsList",null),n.__decorate([(0,i.watch)("state.center"),(0,i.wait)((function(t){return t.mapInitialized})),(0,i.debounce)()],e.prototype,"onChangeCenter",null),n.__decorate([(0,i.watch)("state.zoom"),(0,i.debounce)()],e.prototype,"onChangeZoom",null),n.__decorate([(0,i.watch)("state.controls")],e.prototype,"onChangeControls",null),n.__decorate([(0,i.watch)(["state.center","state.zoom","state.controls","state.size","state.type","state.layer"]),(0,i.wait)((function(t){return t.mapInitialized})),(0,i.debounce)()],e.prototype,"onChangeBound",null),n.__decorate([(0,i.watch)("state.size"),(0,i.debounce)()],e.prototype,"onChangeSize",null),n.__decorate([(0,i.watch)("state.type")],e.prototype,"onChangeMapType",null),n.__decorate([(0,i.watch)("state.layer")],e.prototype,"onChangeLayer",null),e}(r.UIGroup);e.UIMap=d},42872:function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.addNewInState=void 0;var n=o(70655),r=o(33251);e.addNewInState=function(t){var e,o,i,a,s,l,c,p;switch(this.state.mode){case"polyline":case"polygon":var u=this.state.mode;this.state.elements=n.__spreadArray(n.__spreadArray([],n.__read(this.state.elements),!1),[n.__assign({type:u,coordinates:(0,r.pathToArray)(t.getPath())},this.options.googleMaps.map.defaultStates[u])],!1);break;case"circle":var h=t;this.state.elements=n.__spreadArray(n.__spreadArray([],n.__read(this.state.elements),!1),[n.__assign({type:this.state.mode,coordinates:[null!==(o=null===(e=h.getCenter())||void 0===e?void 0:e.lat())&&void 0!==o?o:0,null!==(a=null===(i=h.getCenter())||void 0===i?void 0:i.lng())&&void 0!==a?a:0],radius:h.getRadius()},this.options.googleMaps.map.defaultStates.circle)],!1);break;case"marker":var d=t;this.state.elements=n.__spreadArray(n.__spreadArray([],n.__read(this.state.elements),!1),[n.__assign({type:this.state.mode,coordinates:[null!==(l=null===(s=d.getPosition())||void 0===s?void 0:s.lat())&&void 0!==l?l:0,null!==(p=null===(c=d.getPosition())||void 0===c?void 0:c.lng())&&void 0!==p?p:0]},this.options.googleMaps.map.defaultStates.marker)],!1)}}},32501:function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=o(70655);n.__exportStar(o(42872),e),n.__exportStar(o(53363),e),n.__exportStar(o(85231),e),n.__exportStar(o(83818),e),n.__exportStar(o(20630),e)},18271:function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.initOrUpdateElementFromState=void 0;var n=o(20630),r=o(98440),i=o(33251),a=o(58706),s=o(83818),l=o(53363);e.initOrUpdateElementFromState=function(t,e){var o,c,p=this,u=this.mapElements[e];if(u){if(u.state.type===t.type)return n.updateStateAndGme.call(this,t,e);u.gme.setMap(null)}switch(t.type){case"text":c=new google.maps.Marker({position:new google.maps.LatLng(t.coordinates[0],t.coordinates[1]),draggable:!0,title:t.text,map:this.map});break;case"marker":c=new google.maps.Marker({position:new google.maps.LatLng(t.coordinates[0],t.coordinates[1]),draggable:!0,label:t.showCaption?t.title:"",title:t.title,icon:t.icon?r.Icon.get(t.icon):null,map:this.map});break;case"polyline":case"polygon":var h=(0,i.arrayToPath)(t.coordinates);c=new google.maps["polygon"===t.type?"Polygon":"Polyline"]({path:h,strokeColor:t.strokeColor,fillColor:t.fillColor,strokeWeight:t.strokeWeight,editable:!0,draggable:!0,map:this.map,fillOpacity:"polygon"===t.type?t.fillOpacity:1});break;case"circle":c=new google.maps.Circle({center:new google.maps.LatLng(t.coordinates[0],t.coordinates[1]),radius:t.radius,strokeColor:t.strokeColor,fillColor:t.fillColor,strokeWeight:t.strokeWeight,editable:!0,draggable:!0,map:this.map,fillOpacity:null!==(o=t.fillOpacity)&&void 0!==o?o:1})}var d={type:t.type,uid:(0,a.uniqueUid)(),state:t,gme:c};"dragend radius_changed center_changed".split(" ").forEach((function(t){return c.addListener(t,(function(){return s.onChangeGeometries.call(p,d,e)}))})),"polygon"!==d.type&&"polyline"!==d.type||"insert_at set_at remove_at".split(" ").forEach((function(t){return d.gme.getPath().addListener(t,(function(){return s.onChangeGeometries.call(p,d,e)}))})),c.addListener("click",(function(){return l.openPropsDialog.call(p,d,e)})),this.mapElements[e]=d}},83818:function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.onChangeGeometries=void 0;var n=o(70655),r=o(20630),i=o(33251);e.onChangeGeometries=function(t,e){var o,a,s,l;switch(t.type){case"polyline":case"polygon":var c=(0,i.pathToArray)(t.gme.getPath()),p=n.__assign(n.__assign({},t.state),{coordinates:c});r.updateStateAndGme.call(this,p,e,!0);break;case"marker":var u=t.gme.getPosition();p=n.__assign(n.__assign({},t.state),{coordinates:[null!==(o=null==u?void 0:u.lat())&&void 0!==o?o:0,null!==(a=null==u?void 0:u.lng())&&void 0!==a?a:0]}),r.updateStateAndGme.call(this,p,e,!0);break;case"circle":u=t.gme.getCenter(),p=n.__assign(n.__assign({},t.state),{radius:t.gme.getRadius(),coordinates:[null!==(s=null==u?void 0:u.lat())&&void 0!==s?s:0,null!==(l=null==u?void 0:u.lng())&&void 0!==l?l:0]}),r.updateStateAndGme.call(this,p,e,!0)}}},53363:function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.openPropsDialog=void 0;var n=o(70655),r=o(41560),i=o(85231),a=o(20630);function s(){var t=this,e=new google.maps.InfoWindow({content:"<div>test</div>"});return e.addListener("domready",(function(){t.setMod("info-opened",!0)})),e.addListener("closeclick",(function(){t.setMod("info-opened",!1)})),e}e.openPropsDialog=function(t,e){var o,l=this;switch(this.state.mode="hand",t.type){case"polyline":o=new r.UIPolylineEditor(this.jodit,t.state,this.options);break;case"marker":o=new r.UIMarkerEditor(this.jodit,t.state,this.options);break;case"circle":case"polygon":o=new r.UIPolygonEditor(this.jodit,t.state,this.options)}if(o){this.append(o),this.j.e.on(o,"bin",(function(){i.removeElement.call(l,t)})).on(o,"change",(function(o,r){var i;a.updateStateAndGme.call(l,n.__assign(n.__assign({},t.state),((i={})[o]=r,i)),e)}));var c=s.call(this);if("polygon"===t.type||"polyline"===t.type){var p=t.gme.getPath().getAt(0);c.setPosition(p)}"circle"===t.type&&c.setPosition(t.gme.getCenter()),c.setContent(o.container),c.open(this.map,t.gme),c.addListener("closeclick",(function(){o&&(l.remove(o),o.destruct())}))}}},85231:function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.removeElement=void 0;var n=o(70655);e.removeElement=function(t){var e=this.mapElements.indexOf(t);-1!==e&&(this.mapElements[e].gme.setMap(null),this.mapElements.splice(e,1),this.state.elements.splice(e,1),this.state.elements=n.__spreadArray([],n.__read(this.state.elements),!1))}},20630:function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.updateStateAndGme=void 0;var n=o(33251);e.updateStateAndGme=function(t,e,o){var r;void 0===o&&(o=!1);var i=this.mapElements[e];if(i.state!==t&&i.state.type===t.type){var a=i.state;if(!o){var s=void 0;for(s in t){var l=t[s],c=a[s];if(null!=l&&(null==c||l.toString()!==c.toString()))switch(s){case"strokeWeight":case"strokeColor":case"fillColor":case"fillOpacity":switch(i.type){case"polyline":case"circle":case"polygon":i.gme.setOptions(((r={})[s]=l,r))}break;case"coordinates":switch(i.type){case"polygon":case"polyline":i.gme.setPath((0,n.arrayToPath)(l))}}}}i.state=t,this.state.elements[e]=t}}},29893:function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.UIMapsControlsForm=void 0;var n=o(70655);o(67280);var r=o(98440),i=o(51923),a=function(t){function e(e,o){var n=t.call(this,e)||this;n.state=o;var i={zoomControl:"Zoom control",mapTypeControl:"Map Type control",scaleControl:"Scale control",streetViewControl:"Street View control ",rotateControl:"Rotate control",fullscreenControl:"Fullscreen control"},a=Object.keys(i);return n.append(a.map((function(t){return new r.UICheckbox(e,{label:i[t],name:t,checked:n.state.controls[t],switch:!0,type:"checkbox",onChange:n.onChangeSize.bind(n,t)})}))),n}return n.__extends(e,t),e.prototype.className=function(){return"UIMapsControlsForm"},e.prototype.onChangeSize=function(t,e){var o;this.state.controls=n.__assign(n.__assign({},this.state.controls),((o={})[t]="true"===e,o))},n.__decorate([i.component],e)}(r.UIForm);e.UIMapsControlsForm=a},92599:function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.UIMapsPropsForm=void 0;var n=o(70655);o(36522);var r=o(98440),i=o(16892),a=o(51923),s=function(t){function e(e,o){var i,a=this;(a=t.call(this,e)||this).state=o;var s=n.__read(o.size,2),l=s[0],c=s[1],p=n.__read(o.center,2),u=p[0],h=p[1];return a.append([new r.UIInput(e,{label:"Width",name:"width",value:l,type:"number",onChange:a.onChangeSize}),new r.UIInput(e,{label:"Height",name:"height",value:c,type:"number",onChange:a.onChangeSize}),new r.UIInput(e,{label:"Latitude",name:"lat",value:u,onChange:a.onChangeCenter}),new r.UIInput(e,{label:"Longitude",name:"lng",value:h,onChange:a.onChangeCenter}),new r.UISelect(e,{label:"Map type",value:o.type,name:"mapType",options:[{value:"hybrid",text:"Hybrid"},{value:"roadmap",text:"Roadmap"},{value:"satellite",text:"Satellite"},{value:"terrain",text:"Terrain"}],onChange:function(t){o.type=t}}),new r.UISelect(e,{label:"Layer",value:null!==(i=o.layer)&&void 0!==i?i:"default",name:"layer",options:[{value:"default",text:"Default"},{value:"traffic",text:"Traffic"},{value:"transit",text:"Transit"},{value:"bicycling",text:"Bicycling"}],onChange:function(t){o.layer=t}})]),a}return n.__extends(e,t),e.prototype.className=function(){return"UIMapsPropsForm"},e.prototype.onChangeSize=function(){var t=(0,i.refs)(this),e=t.width,o=t.height;this.state.size=[parseInt(null==e?void 0:e.value,10)||0,parseInt(null==o?void 0:o.value,10)||0]},e.prototype.onExternalChangeSize=function(){var t=(0,i.refs)(this),e=t.width,o=t.height,r=n.__read(this.state.size,2),a=r[0],s=r[1];a.toString()!==e.value&&(e.value=a.toString()),s.toString()!==o.value&&(o.value=s.toString())},e.prototype.onChangeCenter=function(){var t=(0,i.refs)(this),e=t.lat,o=t.lng;this.state.center=[parseFloat(null==e?void 0:e.value)||0,parseFloat(null==o?void 0:o.value)||0]},e.prototype.onExternalChangeCenter=function(){var t=(0,i.refs)(this),e=t.lat,o=t.lng,r=n.__read(this.state.center,2),a=r[0],s=r[1];a.toString()!==e.value&&(e.value=a.toString()),s.toString()!==o.value&&(o.value=s.toString())},e.prototype.onExternalChangeType=function(){var t=(0,i.refs)(this).mapType;this.state.type!==t.value&&(t.value=this.state.type)},e.prototype.onExternalChangeLayer=function(){var t=(0,i.refs)(this).layer;this.state.layer!==t.value&&(t.value=this.state.layer)},n.__decorate([a.autobind],e.prototype,"onChangeSize",null),n.__decorate([(0,a.watch)("state.size")],e.prototype,"onExternalChangeSize",null),n.__decorate([a.autobind],e.prototype,"onChangeCenter",null),n.__decorate([(0,a.watch)(["state.center"])],e.prototype,"onExternalChangeCenter",null),n.__decorate([(0,a.watch)(["state.type"])],e.prototype,"onExternalChangeType",null),n.__decorate([(0,a.watch)(["state.layer"])],e.prototype,"onExternalChangeLayer",null),n.__decorate([a.component],e)}(r.UIForm);e.UIMapsPropsForm=s},58333:function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.UIWysiwyg=void 0;var n=o(70655);o(64307);var r=o(97029),i=o(98440),a=o(51923),s=o(16892),l=function(t){function e(e,o,i,a){var l=t.call(this,e)||this,c=l.getElm("editor");(0,s.assert)(null!=c,"editor element does not exist");var p=r.Jodit.make(c,n.__assign({buttons:["bold","italic","image"],height:100,minHeight:100,allowResizeY:!1,allowResizeX:!1,disablePlugins:["mobile","backup","highlight-signature","tune-block","show-blocks"],toolbarButtonSize:"small",language:e.o.language,direction:e.o.direction,theme:e.o.theme,statusbar:!1},o));return p.value=i,p.e.on("change",(function(){return a(p.value)})),l}return n.__extends(e,t),e.prototype.className=function(){return"UIWysiwyg"},e.prototype.render=function(){return"<div>\n\t\t\t<div class='&__label'>~Info~</div>\n\t\t\t<div class='&__editor'></div>\n\t\t</div>"},n.__decorate([a.component],e)}(i.UIElement);e.UIWysiwyg=l},88862:function(t){t.exports='<svg viewBox="0 0 83 84" fill="none" xmlns="http://www.w3.org/2000/svg"> <circle cx="40" cy="44" r="37" stroke="black" stroke-width="6"/> <path d="M40 4V44H79" stroke="black" stroke-width="5"/> <circle cx="40" cy="6" r="6" fill="#C8C8C8"/> <circle cx="40" cy="43" r="6" fill="#C8C8C8"/> <circle cx="77" cy="44" r="6" fill="#C8C8C8"/> </svg>'},40767:function(t){t.exports='<svg viewBox="0 0 76 76" xmlns="http://www.w3.org/2000/svg"> <path d="M38 6.90909C36.2517 6.90909 34.7591 7.58381 33.5221 8.93324C32.2852 10.2827 31.6667 11.911 31.6667 13.8182V20.7273H30.0833V15.7074C30.0833 13.9801 29.5556 12.5137 28.5 11.3082C27.4444 10.1027 26.125 9.5 24.5417 9.5C23.0243 9.5 21.7214 10.0938 20.6328 11.2813C19.5443 12.4688 19 13.8902 19 15.5455V38.7017L17.4167 37.0824V27.7983C17.4167 26.071 16.8889 24.6046 15.8333 23.3991C14.7778 22.1937 13.4583 21.5909 11.875 21.5909C10.3576 21.5909 9.05469 22.1847 7.96615 23.3722C6.8776 24.5597 6.33333 25.9811 6.33333 27.6364V39.7273C6.33333 41.4186 6.91059 42.8939 8.0651 44.1534L23.4036 60.1307C24.6901 61.5341 25.3333 63.3693 25.3333 65.6364C25.3333 66.572 25.6467 67.3816 26.2734 68.0653C26.9002 68.7491 27.6424 69.0909 28.5 69.0909H60.1667C61.0243 69.0909 61.7665 68.7491 62.3932 68.0653C63.02 67.3816 63.3333 66.572 63.3333 65.6364V64.2869C63.3333 62.8116 63.4983 61.4261 63.8281 60.1307L69.1719 36.5966C69.5017 35.3011 69.6667 33.9157 69.6667 32.4403V19.1619C69.6667 17.4347 69.1389 15.9683 68.0833 14.7628C67.0278 13.5573 65.7083 12.9545 64.125 12.9545C62.6076 12.9545 61.3047 13.5483 60.2161 14.7358C59.1276 15.9233 58.5833 17.3447 58.5833 19V20.7273H57V13.9801C57 12.5407 56.5877 11.2363 55.763 10.0668C54.9384 8.89725 53.8828 8.16856 52.5964 7.88068C52.1345 7.80871 51.7552 7.77273 51.4583 7.77273C49.941 7.77273 48.638 8.36648 47.5495 9.55398C46.4609 10.7415 45.9167 12.1629 45.9167 13.8182V20.7273H44.3333V14.142C44.3333 12.3068 43.7973 10.6965 42.7253 9.31108C41.6532 7.92566 40.2925 7.14299 38.6432 6.96307C38.4783 6.92708 38.2639 6.90909 38 6.90909ZM38 0C40.7708 0 43.2283 0.899621 45.3724 2.69886C47.2526 1.47538 49.2813 0.863636 51.4583 0.863636C53.4045 0.863636 55.2352 1.34943 56.9505 2.32102C58.6658 3.29261 60.0842 4.66004 61.2057 6.4233C62.0964 6.1714 63.0694 6.04545 64.125 6.04545C67.4236 6.04545 70.2274 7.33191 72.5365 9.90483C74.8455 12.4777 76 15.5634 76 19.1619V32.4403C76 34.2756 75.7856 36.2188 75.3568 38.2699L69.9635 61.804C69.7656 62.6676 69.6667 63.9451 69.6667 65.6364C69.6667 68.5152 68.7431 70.9621 66.8958 72.9773C65.0486 74.9924 62.8056 76 60.1667 76H28.5C25.7292 76 23.4531 74.9474 21.6719 72.8423C19.8906 70.7372 19 68.1733 19 65.1506L3.76042 49.1733C1.25347 46.5464 0 43.3977 0 39.7273V27.6364C0 24.0739 1.16276 21.0241 3.48828 18.4872C5.8138 15.9503 8.60938 14.6818 11.875 14.6818C12.2378 14.6818 12.5017 14.6998 12.6667 14.7358C12.8646 11.3172 14.1098 8.43845 16.4023 6.09943C18.6949 3.76042 21.408 2.59091 24.5417 2.59091C26.2569 2.59091 27.8733 2.96875 29.3906 3.72443C31.7656 1.24148 34.6354 0 38 0Z"/> </svg>'},32207:function(t){t.exports='<svg viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg"> <g> <path d="M23,13.6l5,5V4c0-0.6-0.4-1-1-1h-4V13.6z"/> <polygon points="12.4,3 16.7,7.3 19.7,10.3 21,11.6 21,3"/> <path d="M14.6,8l-5-5H5C4.4,3,4,3.4,4,4v14.6L14.6,8z"/> </g> <path d="M28.8,29.2L26,26.4c0.7-1,1-2.1,1-3.4c0-3.3-2.7-6-6-6s-6,2.7-6,6s2.7,6,6,6c1.2,0,2.4-0.4,3.4-1l2.8,2.8 c0.4,0.4,1.2,0.4,1.6,0C29.2,30.4,29.2,29.6,28.8,29.2z"/> <path d="M13,23c0-4.4,3.6-8,8-8c0.2,0,0.4,0,0.6,0l-0.3-0.3c0,0,0,0,0,0l-3-3L16,9.4l-12,12V26c0,0.6,0.4,1,1,1h9.1 C13.4,25.8,13,24.5,13,23z"/> </svg>'},22657:function(t){t.exports='<svg viewBox="0 0 88 88" fill="none" xmlns="http://www.w3.org/2000/svg"> <g> <path d="M44 0.513519C27.2931 0.513519 13.75 13.8981 13.75 30.4095C13.75 46.9208 44 87.4835 44 87.4835C44 87.4835 74.25 46.9208 74.25 30.4095C74.25 13.8981 60.7069 0.513519 44 0.513519ZM19.25 30.4095C19.25 16.921 30.3518 5.94914 44 5.94914C57.6482 5.94914 68.75 16.921 68.75 30.4095C68.75 39.8049 54.9945 62.4871 44 78.1329C33.0055 62.4871 19.25 39.8049 19.25 30.4095ZM44 16.8204C36.4052 16.8204 30.25 22.9035 30.25 30.4095C30.25 37.9154 36.4052 43.9985 44 43.9985C51.5948 43.9985 57.75 37.9154 57.75 30.4095C57.75 22.9035 51.5948 16.8204 44 16.8204ZM44 38.5629C39.4508 38.5629 35.75 34.9054 35.75 30.4095C35.75 25.9135 39.4508 22.256 44 22.256C48.5492 22.256 52.25 25.9135 52.25 30.4095C52.25 34.9054 48.5492 38.5629 44 38.5629Z" fill="#404040"/> </g> <defs> <rect width="88" height="86.97" fill="white" transform="translate(0 0.513519)"/> </defs> </svg>'},26929:function(t){t.exports='<svg viewBox="0 0 77 86" fill="none" xmlns="http://www.w3.org/2000/svg"> <path d="M7 38.6056L33.1367 7.96263L69.5477 45.7058L36.2444 72.166L7 76.9673V38.6056Z" stroke="black" stroke-width="6"/> <circle cx="71" cy="45" r="6" fill="#C8C8C8"/> <circle cx="35" cy="73" r="6" fill="#C8C8C8"/> <circle cx="6" cy="79" r="6" fill="#C8C8C8"/> <circle cx="6" cy="39" r="6" fill="#C8C8C8"/> <circle cx="33" cy="6" r="6" fill="#C8C8C8"/> </svg>'},87526:function(t){t.exports='<svg width="72" height="86" viewBox="0 0 72 86" fill="none" xmlns="http://www.w3.org/2000/svg"> <path d="M17.1832 79.1351L13.6833 45.0811L49.6832 58.4595L47.6832 5.35135" stroke="black" stroke-width="6"/> <circle cx="13" cy="44" r="6" fill="#C8C8C8"/> <circle cx="17" cy="77" r="6" fill="#C8C8C8"/> <circle cx="51" cy="59" r="6" fill="#C8C8C8"/> <circle cx="48" cy="6" r="6" fill="#C8C8C8"/> </svg>'},98576:function(t){t.exports='<svg viewBox="0 0 47 61" fill="none" xmlns="http://www.w3.org/2000/svg"> <path d="M46.7671 7.12793H27.3433V61H19.416V7.12793H0.0336914V0.570312H46.7671V7.12793Z" fill="black"/> </svg>'},74054:function(t,e,o){"use strict";o.r(e)},26164:function(t,e,o){"use strict";o.r(e)},34436:function(t,e,o){"use strict";o.r(e)},70290:function(t,e,o){"use strict";o.r(e)},68120:function(t,e,o){"use strict";o.r(e)},67280:function(t,e,o){"use strict";o.r(e)},36522:function(t,e,o){"use strict";o.r(e)},64307:function(t,e,o){"use strict";o.r(e)}},function(t){return t(t.s=28137)}])}));
|
|
1
|
+
!function(t,e){if("object"==typeof exports&&"object"==typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var o=e();for(var n in o)("object"==typeof exports?exports:t)[n]=o[n]}}(self,(function(){return(self.webpackChunkjodit_pro=self.webpackChunkjodit_pro||[]).push([[917],{43746:function(t){"undefined"!=typeof self&&self,t.exports=function(t){var e={};function o(n){if(e[n])return e[n].exports;var r=e[n]={i:n,l:!1,exports:{}};return t[n].call(r.exports,r,r.exports,o),r.l=!0,r.exports}return o.m=t,o.c=e,o.d=function(t,e,n){o.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},o.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},o.t=function(t,e){if(1&e&&(t=o(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(o.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)o.d(n,r,function(e){return t[e]}.bind(null,r));return n},o.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return o.d(e,"a",e),e},o.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},o.p="",o(o.s=1)}([function(t,e,o){"use strict";var n=o(3);function r(t){return!0===n(t)&&"[object Object]"===Object.prototype.toString.call(t)}t.exports=function(t){var e,o;return!1!==r(t)&&"function"==typeof(e=t.constructor)&&!1!==r(o=e.prototype)&&!1!==o.hasOwnProperty("isPrototypeOf")}},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.VERSION=e.PALETTE_MATERIAL_CHROME=e.PALETTE_MATERIAL_500=e.COLOR_NAMES=e.getLuminance=e.intToRgb=e.rgbToInt=e.rgbToHsv=e.rgbToHsl=e.hslToRgb=e.rgbToHex=e.parseColor=e.parseColorToHsla=e.parseColorToHsl=e.parseColorToRgba=e.parseColorToRgb=e.from=e.createPicker=void 0;var n=function(){function t(t,e){for(var o=0;e.length>o;o++){var n=e[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,o,n){return o&&t(e.prototype,o),n&&t(e,n),e}}(),r=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var o=[],n=!0,r=!1,i=void 0;try{for(var a,s=t[Symbol.iterator]();!(n=(a=s.next()).done)&&(o.push(a.value),!e||o.length!==e);n=!0);}catch(t){r=!0,i=t}finally{try{!n&&s.return&&s.return()}finally{if(r)throw i}}return o}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")},i=o(2),a=l(o(0)),s=l(o(4));function l(t){return t&&t.__esModule?t:{default:t}}function c(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function p(t){if(Array.isArray(t)){for(var e=0,o=Array(t.length);t.length>e;e++)o[e]=t[e];return o}return Array.from(t)}var u="undefined"!=typeof window&&window.navigator.userAgent.indexOf("Edge")>-1,h="undefined"!=typeof window&&window.navigator.userAgent.indexOf("rv:")>-1,d={id:null,attachTo:"body",showHSL:!0,showRGB:!0,showHEX:!0,showAlpha:!1,color:"#ff0000",palette:null,paletteEditable:!1,useAlphaInPalette:"auto",slBarSize:[232,150],hueBarSize:[150,11],alphaBarSize:[150,11]},g="COLOR",f="RGBA_USER",m="HSLA_USER";function v(t,e,o){return t?t instanceof HTMLElement?t:t instanceof NodeList?t[0]:"string"==typeof t?document.querySelector(t):t.jquery?t.get(0):o?e:null:e}function y(t){var e=t.getContext("2d"),o=+t.width,n=+t.height,a=e.createLinearGradient(1,1,1,n-1);return a.addColorStop(0,"white"),a.addColorStop(1,"black"),{setHue:function(t){var r=e.createLinearGradient(1,0,o-1,0);r.addColorStop(0,"hsla("+t+", 100%, 50%, 0)"),r.addColorStop(1,"hsla("+t+", 100%, 50%, 1)"),e.fillStyle=a,e.fillRect(0,0,o,n),e.fillStyle=r,e.globalCompositeOperation="multiply",e.fillRect(0,0,o,n),e.globalCompositeOperation="source-over"},grabColor:function(t,o){return e.getImageData(t,o,1,1).data},findColor:function(t,e,a){var s=(0,i.rgbToHsv)(t,e,a),l=r(s,3);return[l[1]*o,n-l[2]*n]}}}function b(t,e,o){return null===t?e:/^\s*$/.test(t)?o:!!/true|yes|1/i.test(t)||!/false|no|0/i.test(t)&&e}function C(t,e,o){if(null===t)return e;if(/^\s*$/.test(t))return o;var n=t.split(",").map(Number);return 2===n.length&&n[0]&&n[1]?n:e}var _=function(){function t(e,o){if(c(this,t),o?(e=v(e),this.options=Object.assign({},d,o)):e&&(0,a.default)(e)?(this.options=Object.assign({},d,e),e=v(this.options.attachTo)):(this.options=Object.assign({},d),e=v((0,i.nvl)(e,this.options.attachTo))),!e)throw new Error("Container not found: "+this.options.attachTo);!function(t,e){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"acp-";if(e.hasAttribute(o+"show-hsl")&&(t.showHSL=b(e.getAttribute(o+"show-hsl"),d.showHSL,!0)),e.hasAttribute(o+"show-rgb")&&(t.showRGB=b(e.getAttribute(o+"show-rgb"),d.showRGB,!0)),e.hasAttribute(o+"show-hex")&&(t.showHEX=b(e.getAttribute(o+"show-hex"),d.showHEX,!0)),e.hasAttribute(o+"show-alpha")&&(t.showAlpha=b(e.getAttribute(o+"show-alpha"),d.showAlpha,!0)),e.hasAttribute(o+"palette-editable")&&(t.paletteEditable=b(e.getAttribute(o+"palette-editable"),d.paletteEditable,!0)),e.hasAttribute(o+"sl-bar-size")&&(t.slBarSize=C(e.getAttribute(o+"sl-bar-size"),d.slBarSize,[232,150])),e.hasAttribute(o+"hue-bar-size")&&(t.hueBarSize=C(e.getAttribute(o+"hue-bar-size"),d.hueBarSize,[150,11]),t.alphaBarSize=t.hueBarSize),e.hasAttribute(o+"palette")){var n=e.getAttribute(o+"palette");switch(n){case"PALETTE_MATERIAL_500":t.palette=i.PALETTE_MATERIAL_500;break;case"PALETTE_MATERIAL_CHROME":case"":t.palette=i.PALETTE_MATERIAL_CHROME;break;default:t.palette=n.split(/[;|]/)}}e.hasAttribute(o+"color")&&(t.color=e.getAttribute(o+"color"))}(this.options,e),this.H=0,this.S=0,this.L=0,this.R=0,this.G=0,this.B=0,this.A=1,this.palette={},this.element=document.createElement("div"),this.options.id&&(this.element.id=this.options.id),this.element.className="a-color-picker",this.element.innerHTML=s.default,e.appendChild(this.element);var n=this.element.querySelector(".a-color-picker-h");this.setupHueCanvas(n),this.hueBarHelper=y(n),this.huePointer=this.element.querySelector(".a-color-picker-h+.a-color-picker-dot");var r=this.element.querySelector(".a-color-picker-sl");this.setupSlCanvas(r),this.slBarHelper=y(r),this.slPointer=this.element.querySelector(".a-color-picker-sl+.a-color-picker-dot"),this.preview=this.element.querySelector(".a-color-picker-preview"),this.setupClipboard(this.preview.querySelector(".a-color-picker-clipbaord")),this.options.showHSL?(this.setupInput(this.inputH=this.element.querySelector(".a-color-picker-hsl>input[nameref=H]")),this.setupInput(this.inputS=this.element.querySelector(".a-color-picker-hsl>input[nameref=S]")),this.setupInput(this.inputL=this.element.querySelector(".a-color-picker-hsl>input[nameref=L]"))):this.element.querySelector(".a-color-picker-hsl").remove(),this.options.showRGB?(this.setupInput(this.inputR=this.element.querySelector(".a-color-picker-rgb>input[nameref=R]")),this.setupInput(this.inputG=this.element.querySelector(".a-color-picker-rgb>input[nameref=G]")),this.setupInput(this.inputB=this.element.querySelector(".a-color-picker-rgb>input[nameref=B]"))):this.element.querySelector(".a-color-picker-rgb").remove(),this.options.showHEX?this.setupInput(this.inputRGBHEX=this.element.querySelector("input[nameref=RGBHEX]")):this.element.querySelector(".a-color-picker-rgbhex").remove(),this.options.paletteEditable||this.options.palette&&this.options.palette.length>0?this.setPalette(this.paletteRow=this.element.querySelector(".a-color-picker-palette")):(this.paletteRow=this.element.querySelector(".a-color-picker-palette"),this.paletteRow.remove()),this.options.showAlpha?(this.setupAlphaCanvas(this.element.querySelector(".a-color-picker-a")),this.alphaPointer=this.element.querySelector(".a-color-picker-a+.a-color-picker-dot")):this.element.querySelector(".a-color-picker-alpha").remove(),this.element.style.width=this.options.slBarSize[0]+"px",this.onValueChanged(g,this.options.color)}return n(t,[{key:"setupHueCanvas",value:function(t){var e=this;t.width=this.options.hueBarSize[0],t.height=this.options.hueBarSize[1];for(var o=t.getContext("2d"),n=o.createLinearGradient(0,0,this.options.hueBarSize[0],0),r=0;1>=r;r+=1/360)n.addColorStop(r,"hsl("+360*r+", 100%, 50%)");o.fillStyle=n,o.fillRect(0,0,this.options.hueBarSize[0],this.options.hueBarSize[1]);var a=function(o){var n=(0,i.limit)(o.clientX-t.getBoundingClientRect().left,0,e.options.hueBarSize[0]),r=Math.round(360*n/e.options.hueBarSize[0]);e.huePointer.style.left=n-7+"px",e.onValueChanged("H",r)},s=function t(){document.removeEventListener("mousemove",a),document.removeEventListener("mouseup",t)};t.addEventListener("mousedown",(function(t){a(t),document.addEventListener("mousemove",a),document.addEventListener("mouseup",s)}))}},{key:"setupSlCanvas",value:function(t){var e=this;t.width=this.options.slBarSize[0],t.height=this.options.slBarSize[1];var o=function(o){var n=(0,i.limit)(o.clientX-t.getBoundingClientRect().left,0,e.options.slBarSize[0]-1),r=(0,i.limit)(o.clientY-t.getBoundingClientRect().top,0,e.options.slBarSize[1]-1),a=e.slBarHelper.grabColor(n,r);e.slPointer.style.left=n-7+"px",e.slPointer.style.top=r-7+"px",e.onValueChanged("RGB",a)},n=function t(){document.removeEventListener("mousemove",o),document.removeEventListener("mouseup",t)};t.addEventListener("mousedown",(function(t){o(t),document.addEventListener("mousemove",o),document.addEventListener("mouseup",n)}))}},{key:"setupAlphaCanvas",value:function(t){var e=this;t.width=this.options.alphaBarSize[0],t.height=this.options.alphaBarSize[1];var o=t.getContext("2d"),n=o.createLinearGradient(0,0,t.width-1,0);n.addColorStop(0,"hsla(0, 0%, 50%, 0)"),n.addColorStop(1,"hsla(0, 0%, 50%, 1)"),o.fillStyle=n,o.fillRect(0,0,this.options.alphaBarSize[0],this.options.alphaBarSize[1]);var r=function(o){var n=(0,i.limit)(o.clientX-t.getBoundingClientRect().left,0,e.options.alphaBarSize[0]),r=+(n/e.options.alphaBarSize[0]).toFixed(2);e.alphaPointer.style.left=n-7+"px",e.onValueChanged("ALPHA",r)},a=function t(){document.removeEventListener("mousemove",r),document.removeEventListener("mouseup",t)};t.addEventListener("mousedown",(function(t){r(t),document.addEventListener("mousemove",r),document.addEventListener("mouseup",a)}))}},{key:"setupInput",value:function(t){var e=this,o=+t.min,n=+t.max,r=t.getAttribute("nameref");t.hasAttribute("select-on-focus")&&t.addEventListener("focus",(function(){t.select()})),"text"===t.type?t.addEventListener("change",(function(){e.onValueChanged(r,t.value)})):((u||h)&&t.addEventListener("keydown",(function(a){"Up"===a.key?(t.value=(0,i.limit)(+t.value+1,o,n),e.onValueChanged(r,t.value),a.returnValue=!1):"Down"===a.key&&(t.value=(0,i.limit)(+t.value-1,o,n),e.onValueChanged(r,t.value),a.returnValue=!1)})),t.addEventListener("change",(function(){e.onValueChanged(r,(0,i.limit)(+t.value,o,n))})))}},{key:"setupClipboard",value:function(t){var e=this;t.title="click to copy",t.addEventListener("click",(function(){t.value=(0,i.parseColor)([e.R,e.G,e.B,e.A],"hexcss4"),t.select(),document.execCommand("copy")}))}},{key:"setPalette",value:function(t){var e=this,o="auto"===this.options.useAlphaInPalette?this.options.showAlpha:this.options.useAlphaInPalette,n=null;switch(this.options.palette){case"PALETTE_MATERIAL_500":n=i.PALETTE_MATERIAL_500;break;case"PALETTE_MATERIAL_CHROME":n=i.PALETTE_MATERIAL_CHROME;break;default:n=(0,i.ensureArray)(this.options.palette)}if(this.options.paletteEditable||n.length>0){var r=function(o,n,r){var i=t.querySelector('.a-color-picker-palette-color[data-color="'+o+'"]')||document.createElement("div");i.className="a-color-picker-palette-color",i.style.backgroundColor=o,i.setAttribute("data-color",o),i.title=o,t.insertBefore(i,n),e.palette[o]=!0,r&&e.onPaletteColorAdd(o)},a=function(o,n){o?(t.removeChild(o),e.palette[o.getAttribute("data-color")]=!1,n&&e.onPaletteColorRemove(o.getAttribute("data-color"))):(t.querySelectorAll(".a-color-picker-palette-color[data-color]").forEach((function(e){t.removeChild(e)})),Object.keys(e.palette).forEach((function(t){e.palette[t]=!1})),n&&e.onPaletteColorRemove())};if(n.map((function(t){return(0,i.parseColor)(t,o?"rgbcss4":"hex")})).filter((function(t){return!!t})).forEach((function(t){return r(t)})),this.options.paletteEditable){var s=document.createElement("div");s.className="a-color-picker-palette-color a-color-picker-palette-add",s.innerHTML="+",t.appendChild(s),t.addEventListener("click",(function(t){/a-color-picker-palette-add/.test(t.target.className)?t.shiftKey?a(null,!0):r(o?(0,i.parseColor)([e.R,e.G,e.B,e.A],"rgbcss4"):(0,i.rgbToHex)(e.R,e.G,e.B),t.target,!0):/a-color-picker-palette-color/.test(t.target.className)&&(t.shiftKey?a(t.target,!0):e.onValueChanged(g,t.target.getAttribute("data-color")))}))}else t.addEventListener("click",(function(t){/a-color-picker-palette-color/.test(t.target.className)&&e.onValueChanged(g,t.target.getAttribute("data-color"))}))}else t.style.display="none"}},{key:"updatePalette",value:function(t){this.paletteRow.innerHTML="",this.palette={},this.paletteRow.parentElement||this.element.appendChild(this.paletteRow),this.options.palette=t,this.setPalette(this.paletteRow)}},{key:"onValueChanged",value:function(t,e){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{silent:!1};switch(t){case"H":this.H=e;var n=(0,i.hslToRgb)(this.H,this.S,this.L),a=r(n,3);this.R=a[0],this.G=a[1],this.B=a[2],this.slBarHelper.setHue(e),this.updatePointerH(this.H),this.updateInputHSL(this.H,this.S,this.L),this.updateInputRGB(this.R,this.G,this.B),this.updateInputRGBHEX(this.R,this.G,this.B);break;case"S":this.S=e;var s=(0,i.hslToRgb)(this.H,this.S,this.L),l=r(s,3);this.R=l[0],this.G=l[1],this.B=l[2],this.updatePointerSL(this.H,this.S,this.L),this.updateInputHSL(this.H,this.S,this.L),this.updateInputRGB(this.R,this.G,this.B),this.updateInputRGBHEX(this.R,this.G,this.B);break;case"L":this.L=e;var c=(0,i.hslToRgb)(this.H,this.S,this.L),p=r(c,3);this.R=p[0],this.G=p[1],this.B=p[2],this.updatePointerSL(this.H,this.S,this.L),this.updateInputHSL(this.H,this.S,this.L),this.updateInputRGB(this.R,this.G,this.B),this.updateInputRGBHEX(this.R,this.G,this.B);break;case"R":this.R=e;var u=(0,i.rgbToHsl)(this.R,this.G,this.B),h=r(u,3);this.H=h[0],this.S=h[1],this.L=h[2],this.slBarHelper.setHue(this.H),this.updatePointerH(this.H),this.updatePointerSL(this.H,this.S,this.L),this.updateInputHSL(this.H,this.S,this.L),this.updateInputRGBHEX(this.R,this.G,this.B);break;case"G":this.G=e;var d=(0,i.rgbToHsl)(this.R,this.G,this.B),v=r(d,3);this.H=v[0],this.S=v[1],this.L=v[2],this.slBarHelper.setHue(this.H),this.updatePointerH(this.H),this.updatePointerSL(this.H,this.S,this.L),this.updateInputHSL(this.H,this.S,this.L),this.updateInputRGBHEX(this.R,this.G,this.B);break;case"B":this.B=e;var y=(0,i.rgbToHsl)(this.R,this.G,this.B),b=r(y,3);this.H=b[0],this.S=b[1],this.L=b[2],this.slBarHelper.setHue(this.H),this.updatePointerH(this.H),this.updatePointerSL(this.H,this.S,this.L),this.updateInputHSL(this.H,this.S,this.L),this.updateInputRGBHEX(this.R,this.G,this.B);break;case"RGB":var C=r(e,3);this.R=C[0],this.G=C[1],this.B=C[2];var _=(0,i.rgbToHsl)(this.R,this.G,this.B),k=r(_,3);this.H=k[0],this.S=k[1],this.L=k[2],this.updateInputHSL(this.H,this.S,this.L),this.updateInputRGB(this.R,this.G,this.B),this.updateInputRGBHEX(this.R,this.G,this.B);break;case f:var w=r(e,4);this.R=w[0],this.G=w[1],this.B=w[2],this.A=w[3];var E=(0,i.rgbToHsl)(this.R,this.G,this.B),A=r(E,3);this.H=A[0],this.S=A[1],this.L=A[2],this.slBarHelper.setHue(this.H),this.updatePointerH(this.H),this.updatePointerSL(this.H,this.S,this.L),this.updateInputHSL(this.H,this.S,this.L),this.updateInputRGB(this.R,this.G,this.B),this.updateInputRGBHEX(this.R,this.G,this.B),this.updatePointerA(this.A);break;case m:var x=r(e,4);this.H=x[0],this.S=x[1],this.L=x[2],this.A=x[3];var S=(0,i.hslToRgb)(this.H,this.S,this.L),F=r(S,3);this.R=F[0],this.G=F[1],this.B=F[2],this.slBarHelper.setHue(this.H),this.updatePointerH(this.H),this.updatePointerSL(this.H,this.S,this.L),this.updateInputHSL(this.H,this.S,this.L),this.updateInputRGB(this.R,this.G,this.B),this.updateInputRGBHEX(this.R,this.G,this.B),this.updatePointerA(this.A);break;case"RGBHEX":var M=(0,i.cssColorToRgb)(e)||[this.R,this.G,this.B],B=r(M,3);this.R=B[0],this.G=B[1],this.B=B[2];var L=(0,i.rgbToHsl)(this.R,this.G,this.B),R=r(L,3);this.H=R[0],this.S=R[1],this.L=R[2],this.slBarHelper.setHue(this.H),this.updatePointerH(this.H),this.updatePointerSL(this.H,this.S,this.L),this.updateInputHSL(this.H,this.S,this.L),this.updateInputRGB(this.R,this.G,this.B);break;case g:var H=(0,i.parseColor)(e,"rgba")||[0,0,0,1],I=r(H,4);this.R=I[0],this.G=I[1],this.B=I[2],this.A=I[3];var T=(0,i.rgbToHsl)(this.R,this.G,this.B),P=r(T,3);this.H=P[0],this.S=P[1],this.L=P[2],this.slBarHelper.setHue(this.H),this.updatePointerH(this.H),this.updatePointerSL(this.H,this.S,this.L),this.updateInputHSL(this.H,this.S,this.L),this.updateInputRGB(this.R,this.G,this.B),this.updateInputRGBHEX(this.R,this.G,this.B),this.updatePointerA(this.A);break;case"ALPHA":this.A=e}this.preview.style.backgroundColor=1===this.A?"rgb("+this.R+","+this.G+","+this.B+")":"rgba("+this.R+","+this.G+","+this.B+","+this.A+")",o&&o.silent||this.onchange&&this.onchange(this.preview.style.backgroundColor)}},{key:"onPaletteColorAdd",value:function(t){this.oncoloradd&&this.oncoloradd(t)}},{key:"onPaletteColorRemove",value:function(t){this.oncolorremove&&this.oncolorremove(t)}},{key:"updateInputHSL",value:function(t,e,o){this.options.showHSL&&(this.inputH.value=t,this.inputS.value=e,this.inputL.value=o)}},{key:"updateInputRGB",value:function(t,e,o){this.options.showRGB&&(this.inputR.value=t,this.inputG.value=e,this.inputB.value=o)}},{key:"updateInputRGBHEX",value:function(t,e,o){this.options.showHEX&&(this.inputRGBHEX.value=(0,i.rgbToHex)(t,e,o))}},{key:"updatePointerH",value:function(t){this.huePointer.style.left=this.options.hueBarSize[0]*t/360-7+"px"}},{key:"updatePointerSL",value:function(t,e,o){var n=(0,i.hslToRgb)(t,e,o),a=r(n,3),s=this.slBarHelper.findColor(a[0],a[1],a[2]),l=r(s,2),c=l[0],p=l[1];c>=0&&(this.slPointer.style.left=c-7+"px",this.slPointer.style.top=p-7+"px")}},{key:"updatePointerA",value:function(t){this.options.showAlpha&&(this.alphaPointer.style.left=this.options.alphaBarSize[0]*t-7+"px")}}]),t}(),k=function(){function t(e){c(this,t),this.name=e,this.listeners=[]}return n(t,[{key:"on",value:function(t){t&&this.listeners.push(t)}},{key:"off",value:function(t){this.listeners=t?this.listeners.filter((function(e){return e!==t})):[]}},{key:"emit",value:function(t,e){for(var o=this.listeners.slice(0),n=0;o.length>n;n++)o[n].apply(e,t)}}]),t}();function w(t,e){var o=new _(t,e),n={change:new k("change"),coloradd:new k("coloradd"),colorremove:new k("colorremove")},a=!0,s={},l={get element(){return o.element},get rgb(){return[o.R,o.G,o.B]},set rgb(t){var e=r(t,3),n=e[0],a=e[1],s=e[2],l=[(0,i.limit)(n,0,255),(0,i.limit)(a,0,255),(0,i.limit)(s,0,255)];o.onValueChanged(f,[n=l[0],a=l[1],s=l[2],1])},get hsl(){return[o.H,o.S,o.L]},set hsl(t){var e=r(t,3),n=e[0],a=e[1],s=e[2],l=[(0,i.limit)(n,0,360),(0,i.limit)(a,0,100),(0,i.limit)(s,0,100)];o.onValueChanged(m,[n=l[0],a=l[1],s=l[2],1])},get rgbhex(){return this.all.hex},get rgba(){return[o.R,o.G,o.B,o.A]},set rgba(t){var e=r(t,4),n=e[0],a=e[1],s=e[2],l=e[3],c=[(0,i.limit)(n,0,255),(0,i.limit)(a,0,255),(0,i.limit)(s,0,255),(0,i.limit)(l,0,1)];o.onValueChanged(f,[n=c[0],a=c[1],s=c[2],l=c[3]])},get hsla(){return[o.H,o.S,o.L,o.A]},set hsla(t){var e=r(t,4),n=e[0],a=e[1],s=e[2],l=e[3],c=[(0,i.limit)(n,0,360),(0,i.limit)(a,0,100),(0,i.limit)(s,0,100),(0,i.limit)(l,0,1)];o.onValueChanged(m,[n=c[0],a=c[1],s=c[2],l=c[3]])},get color(){return this.all.toString()},set color(t){o.onValueChanged(g,t)},setColor:function(t){o.onValueChanged(g,t,{silent:arguments.length>1&&void 0!==arguments[1]&&arguments[1]})},get all(){if(a){var t=[o.R,o.G,o.B,o.A],e=1>o.A?"rgba("+o.R+","+o.G+","+o.B+","+o.A+")":i.rgbToHex.apply(void 0,t);(s=(0,i.parseColor)(t,s)).toString=function(){return e},a=!1}return Object.assign({},s)},get onchange(){return n.change&&n.change.listeners[0]},set onchange(t){this.off("change").on("change",t)},get oncoloradd(){return n.coloradd&&n.coloradd.listeners[0]},set oncoloradd(t){this.off("coloradd").on("coloradd",t)},get oncolorremove(){return n.colorremove&&n.colorremove.listeners[0]},set oncolorremove(t){this.off("colorremove").on("colorremove",t)},get palette(){return Object.keys(o.palette).filter((function(t){return o.palette[t]}))},set palette(t){o.updatePalette(t)},show:function(){o.element.classList.remove("hidden")},hide:function(){o.element.classList.add("hidden")},toggle:function(){o.element.classList.toggle("hidden")},on:function(t,e){return t&&n[t]&&n[t].on(e),this},off:function(t,e){return t&&n[t]&&n[t].off(e),this},destroy:function(){n.change.off(),n.coloradd.off(),n.colorremove.off(),o.element.remove(),n=null,o=null}};return o.onchange=function(){for(var t=arguments.length,e=Array(t),o=0;t>o;o++)e[o]=arguments[o];a=!0,n.change.emit([l].concat(e),l)},o.oncoloradd=function(){for(var t=arguments.length,e=Array(t),o=0;t>o;o++)e[o]=arguments[o];n.coloradd.emit([l].concat(e),l)},o.oncolorremove=function(){for(var t=arguments.length,e=Array(t),o=0;t>o;o++)e[o]=arguments[o];n.colorremove.emit([l].concat(e),l)},o.element.ctrl=l,l}if("undefined"!=typeof window&&!document.querySelector('head>style[data-source="a-color-picker"]')){var E=o(5).toString(),A=document.createElement("style");A.setAttribute("type","text/css"),A.setAttribute("data-source","a-color-picker"),A.innerHTML=E,document.querySelector("head").appendChild(A)}e.createPicker=w,e.from=function(t,e){var o=function(t){return t?Array.isArray(t)?t:t instanceof HTMLElement?[t]:t instanceof NodeList?[].concat(p(t)):"string"==typeof t?[].concat(p(document.querySelectorAll(t))):t.jquery?t.get():[]:[]}(t).map((function(t,o){var n=w(t,e);return n.index=o,n}));return o.on=function(t,e){return o.forEach((function(o){return o.on(t,e)})),this},o.off=function(t){return o.forEach((function(e){return e.off(t)})),this},o},e.parseColorToRgb=i.parseColorToRgb,e.parseColorToRgba=i.parseColorToRgba,e.parseColorToHsl=i.parseColorToHsl,e.parseColorToHsla=i.parseColorToHsla,e.parseColor=i.parseColor,e.rgbToHex=i.rgbToHex,e.hslToRgb=i.hslToRgb,e.rgbToHsl=i.rgbToHsl,e.rgbToHsv=i.rgbToHsv,e.rgbToInt=i.rgbToInt,e.intToRgb=i.intToRgb,e.getLuminance=i.getLuminance,e.COLOR_NAMES=i.COLOR_NAMES,e.PALETTE_MATERIAL_500=i.PALETTE_MATERIAL_500,e.PALETTE_MATERIAL_CHROME=i.PALETTE_MATERIAL_CHROME,e.VERSION="1.2.1"},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.nvl=e.ensureArray=e.limit=e.getLuminance=e.parseColor=e.parseColorToHsla=e.parseColorToHsl=e.cssHslaToHsla=e.cssHslToHsl=e.parseColorToRgba=e.parseColorToRgb=e.cssRgbaToRgba=e.cssRgbToRgb=e.cssColorToRgba=e.cssColorToRgb=e.intToRgb=e.rgbToInt=e.rgbToHsv=e.rgbToHsl=e.hslToRgb=e.rgbToHex=e.PALETTE_MATERIAL_CHROME=e.PALETTE_MATERIAL_500=e.COLOR_NAMES=void 0;var n=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var o=[],n=!0,r=!1,i=void 0;try{for(var a,s=t[Symbol.iterator]();!(n=(a=s.next()).done)&&(o.push(a.value),!e||o.length!==e);n=!0);}catch(t){r=!0,i=t}finally{try{!n&&s.return&&s.return()}finally{if(r)throw i}}return o}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")},r=function(t){return t&&t.__esModule?t:{default:t}}(o(0));function i(t){if(Array.isArray(t)){for(var e=0,o=Array(t.length);t.length>e;e++)o[e]=t[e];return o}return Array.from(t)}var a={aliceblue:"#F0F8FF",antiquewhite:"#FAEBD7",aqua:"#00FFFF",aquamarine:"#7FFFD4",azure:"#F0FFFF",beige:"#F5F5DC",bisque:"#FFE4C4",black:"#000000",blanchedalmond:"#FFEBCD",blue:"#0000FF",blueviolet:"#8A2BE2",brown:"#A52A2A",burlywood:"#DEB887",cadetblue:"#5F9EA0",chartreuse:"#7FFF00",chocolate:"#D2691E",coral:"#FF7F50",cornflowerblue:"#6495ED",cornsilk:"#FFF8DC",crimson:"#DC143C",cyan:"#00FFFF",darkblue:"#00008B",darkcyan:"#008B8B",darkgoldenrod:"#B8860B",darkgray:"#A9A9A9",darkgrey:"#A9A9A9",darkgreen:"#006400",darkkhaki:"#BDB76B",darkmagenta:"#8B008B",darkolivegreen:"#556B2F",darkorange:"#FF8C00",darkorchid:"#9932CC",darkred:"#8B0000",darksalmon:"#E9967A",darkseagreen:"#8FBC8F",darkslateblue:"#483D8B",darkslategray:"#2F4F4F",darkslategrey:"#2F4F4F",darkturquoise:"#00CED1",darkviolet:"#9400D3",deeppink:"#FF1493",deepskyblue:"#00BFFF",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1E90FF",firebrick:"#B22222",floralwhite:"#FFFAF0",forestgreen:"#228B22",fuchsia:"#FF00FF",gainsboro:"#DCDCDC",ghostwhite:"#F8F8FF",gold:"#FFD700",goldenrod:"#DAA520",gray:"#808080",grey:"#808080",green:"#008000",greenyellow:"#ADFF2F",honeydew:"#F0FFF0",hotpink:"#FF69B4","indianred ":"#CD5C5C","indigo ":"#4B0082",ivory:"#FFFFF0",khaki:"#F0E68C",lavender:"#E6E6FA",lavenderblush:"#FFF0F5",lawngreen:"#7CFC00",lemonchiffon:"#FFFACD",lightblue:"#ADD8E6",lightcoral:"#F08080",lightcyan:"#E0FFFF",lightgoldenrodyellow:"#FAFAD2",lightgray:"#D3D3D3",lightgrey:"#D3D3D3",lightgreen:"#90EE90",lightpink:"#FFB6C1",lightsalmon:"#FFA07A",lightseagreen:"#20B2AA",lightskyblue:"#87CEFA",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#B0C4DE",lightyellow:"#FFFFE0",lime:"#00FF00",limegreen:"#32CD32",linen:"#FAF0E6",magenta:"#FF00FF",maroon:"#800000",mediumaquamarine:"#66CDAA",mediumblue:"#0000CD",mediumorchid:"#BA55D3",mediumpurple:"#9370DB",mediumseagreen:"#3CB371",mediumslateblue:"#7B68EE",mediumspringgreen:"#00FA9A",mediumturquoise:"#48D1CC",mediumvioletred:"#C71585",midnightblue:"#191970",mintcream:"#F5FFFA",mistyrose:"#FFE4E1",moccasin:"#FFE4B5",navajowhite:"#FFDEAD",navy:"#000080",oldlace:"#FDF5E6",olive:"#808000",olivedrab:"#6B8E23",orange:"#FFA500",orangered:"#FF4500",orchid:"#DA70D6",palegoldenrod:"#EEE8AA",palegreen:"#98FB98",paleturquoise:"#AFEEEE",palevioletred:"#DB7093",papayawhip:"#FFEFD5",peachpuff:"#FFDAB9",peru:"#CD853F",pink:"#FFC0CB",plum:"#DDA0DD",powderblue:"#B0E0E6",purple:"#800080",rebeccapurple:"#663399",red:"#FF0000",rosybrown:"#BC8F8F",royalblue:"#4169E1",saddlebrown:"#8B4513",salmon:"#FA8072",sandybrown:"#F4A460",seagreen:"#2E8B57",seashell:"#FFF5EE",sienna:"#A0522D",silver:"#C0C0C0",skyblue:"#87CEEB",slateblue:"#6A5ACD",slategray:"#708090",slategrey:"#708090",snow:"#FFFAFA",springgreen:"#00FF7F",steelblue:"#4682B4",tan:"#D2B48C",teal:"#008080",thistle:"#D8BFD8",tomato:"#FF6347",turquoise:"#40E0D0",violet:"#EE82EE",wheat:"#F5DEB3",white:"#FFFFFF",whitesmoke:"#F5F5F5",yellow:"#FFFF00",yellowgreen:"#9ACD32"};function s(t,e,o){return t=+t,isNaN(t)||e>t?e:t>o?o:t}function l(t,e){return null==t?e:t}function c(t,e,o){var n=[s(t,0,255),s(e,0,255),s(o,0,255)];return"#"+("000000"+((t=n[0])<<16|(e=n[1])<<8|(o=n[2])).toString(16)).slice(-6)}function p(t,e,o){var n=void 0,r=void 0,i=void 0,a=[s(t,0,360)/360,s(e,0,100)/100,s(o,0,100)/100];if(t=a[0],o=a[2],0==(e=a[1]))n=r=i=o;else{var l=function(t,e,o){return 0>o&&(o+=1),o>1&&(o-=1),1/6>o?t+6*(e-t)*o:.5>o?e:2/3>o?t+(e-t)*(2/3-o)*6:t},c=.5>o?o*(1+e):o+e-o*e,p=2*o-c;n=l(p,c,t+1/3),r=l(p,c,t),i=l(p,c,t-1/3)}return[255*n,255*r,255*i].map(Math.round)}function u(t,e,o){var n=[s(t,0,255)/255,s(e,0,255)/255,s(o,0,255)/255];t=n[0],e=n[1],o=n[2];var r=Math.max(t,e,o),i=Math.min(t,e,o),a=void 0,l=void 0,c=(r+i)/2;if(r==i)a=l=0;else{var p=r-i;switch(l=c>.5?p/(2-r-i):p/(r+i),r){case t:a=(e-o)/p+(o>e?6:0);break;case e:a=(o-t)/p+2;break;case o:a=(t-e)/p+4}a/=6}return[360*a,100*l,100*c].map(Math.round)}function h(t,e,o){return t<<16|e<<8|o}function d(t){if(t){var e=a[t.toString().toLowerCase()],o=/^\s*#?((([0-9A-F])([0-9A-F])([0-9A-F]))|(([0-9A-F]{2})([0-9A-F]{2})([0-9A-F]{2})))\s*$/i.exec(e||t)||[],r=n(o,10),i=r[3],s=r[4],l=r[5],c=r[7],p=r[8],u=r[9];if(void 0!==i)return[parseInt(i+i,16),parseInt(s+s,16),parseInt(l+l,16)];if(void 0!==c)return[parseInt(c,16),parseInt(p,16),parseInt(u,16)]}}function g(t){if(t){var e=a[t.toString().toLowerCase()],o=/^\s*#?((([0-9A-F])([0-9A-F])([0-9A-F])([0-9A-F])?)|(([0-9A-F]{2})([0-9A-F]{2})([0-9A-F]{2})([0-9A-F]{2})?))\s*$/i.exec(e||t)||[],r=n(o,12),i=r[3],s=r[4],l=r[5],c=r[6],p=r[8],u=r[9],h=r[10],d=r[11];if(void 0!==i)return[parseInt(i+i,16),parseInt(s+s,16),parseInt(l+l,16),c?+(parseInt(c+c,16)/255).toFixed(2):1];if(void 0!==p)return[parseInt(p,16),parseInt(u,16),parseInt(h,16),d?+(parseInt(d,16)/255).toFixed(2):1]}}function f(t){if(t){var e=/^rgb\((\d+)[\s,](\d+)[\s,](\d+)\)/i.exec(t)||[],o=n(e,4),r=o[2],i=o[3];return o[0]?[s(o[1],0,255),s(r,0,255),s(i,0,255)]:void 0}}function m(t){if(t){var e=/^rgba?\((\d+)\s*[\s,]\s*(\d+)\s*[\s,]\s*(\d+)(\s*[\s,]\s*(\d*(.\d+)?))?\)/i.exec(t)||[],o=n(e,6),r=o[2],i=o[3],a=o[5];return o[0]?[s(o[1],0,255),s(r,0,255),s(i,0,255),s(l(a,1),0,1)]:void 0}}function v(t){if(Array.isArray(t))return[s(t[0],0,255),s(t[1],0,255),s(t[2],0,255),s(l(t[3],1),0,1)];var e=g(t)||m(t);return e&&3===e.length&&e.push(1),e}function y(t){if(t){var e=/^hsl\((\d+)[\s,](\d+)[\s,](\d+)\)/i.exec(t)||[],o=n(e,4),r=o[2],i=o[3];return o[0]?[s(o[1],0,360),s(r,0,100),s(i,0,100)]:void 0}}function b(t){if(t){var e=/^hsla?\((\d+)\s*[\s,]\s*(\d+)\s*[\s,]\s*(\d+)(\s*[\s,]\s*(\d*(.\d+)?))?\)/i.exec(t)||[],o=n(e,6),r=o[2],i=o[3],a=o[5];return o[0]?[s(o[1],0,255),s(r,0,255),s(i,0,255),s(l(a,1),0,1)]:void 0}}function C(t){if(Array.isArray(t))return[s(t[0],0,360),s(t[1],0,100),s(t[2],0,100),s(l(t[3],1),0,1)];var e=b(t);return e&&3===e.length&&e.push(1),e}function _(t,e){switch(e){case"rgb":default:return t.slice(0,3);case"rgbcss":return"rgb("+t[0]+", "+t[1]+", "+t[2]+")";case"rgbcss4":return"rgb("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")";case"rgba":return t;case"rgbacss":return"rgba("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")";case"hsl":return u.apply(void 0,i(t));case"hslcss":return"hsl("+(t=u.apply(void 0,i(t)))[0]+", "+t[1]+", "+t[2]+")";case"hslcss4":var o=u.apply(void 0,i(t));return"hsl("+o[0]+", "+o[1]+", "+o[2]+", "+t[3]+")";case"hsla":return[].concat(i(u.apply(void 0,i(t))),[t[3]]);case"hslacss":var n=u.apply(void 0,i(t));return"hsla("+n[0]+", "+n[1]+", "+n[2]+", "+t[3]+")";case"hex":return c.apply(void 0,i(t));case"hexcss4":return c.apply(void 0,i(t))+("00"+parseInt(255*t[3]).toString(16)).slice(-2);case"int":return h.apply(void 0,i(t))}}e.COLOR_NAMES=a,e.PALETTE_MATERIAL_500=["#F44336","#E91E63","#E91E63","#9C27B0","#9C27B0","#673AB7","#673AB7","#3F51B5","#3F51B5","#2196F3","#2196F3","#03A9F4","#03A9F4","#00BCD4","#00BCD4","#009688","#009688","#4CAF50","#4CAF50","#8BC34A","#8BC34A","#CDDC39","#CDDC39","#FFEB3B","#FFEB3B","#FFC107","#FFC107","#FF9800","#FF9800","#FF5722","#FF5722","#795548","#795548","#9E9E9E","#9E9E9E","#607D8B","#607D8B"],e.PALETTE_MATERIAL_CHROME=["#f44336","#e91e63","#9c27b0","#673ab7","#3f51b5","#2196f3","#03a9f4","#00bcd4","#009688","#4caf50","#8bc34a","#cddc39","#ffeb3b","#ffc107","#ff9800","#ff5722","#795548","#9e9e9e","#607d8b"],e.rgbToHex=c,e.hslToRgb=p,e.rgbToHsl=u,e.rgbToHsv=function(t,e,o){var n=[s(t,0,255)/255,s(e,0,255)/255,s(o,0,255)/255];t=n[0],e=n[1],o=n[2];var r,i=Math.max(t,e,o),a=Math.min(t,e,o),l=void 0,c=i,p=i-a;if(r=0===i?0:p/i,i==a)l=0;else{switch(i){case t:l=(e-o)/p+(o>e?6:0);break;case e:l=(o-t)/p+2;break;case o:l=(t-e)/p+4}l/=6}return[l,r,c]},e.rgbToInt=h,e.intToRgb=function(t){return[t>>16&255,t>>8&255,255&t]},e.cssColorToRgb=d,e.cssColorToRgba=g,e.cssRgbToRgb=f,e.cssRgbaToRgba=m,e.parseColorToRgb=function(t){return Array.isArray(t)?t=[s(t[0],0,255),s(t[1],0,255),s(t[2],0,255)]:d(t)||f(t)},e.parseColorToRgba=v,e.cssHslToHsl=y,e.cssHslaToHsla=b,e.parseColorToHsl=function(t){return Array.isArray(t)?t=[s(t[0],0,360),s(t[1],0,100),s(t[2],0,100)]:y(t)},e.parseColorToHsla=C,e.parseColor=function(t,e){if(e=e||"rgb",null!=t){var o=void 0;if((o=v(t))||(o=C(t))&&(o=[].concat(i(p.apply(void 0,i(o))),[o[3]])))return(0,r.default)(e)?["rgb","rgbcss","rgbcss4","rgba","rgbacss","hsl","hslcss","hslcss4","hsla","hslacss","hex","hexcss4","int"].reduce((function(t,e){return t[e]=_(o,e),t}),e||{}):_(o,e.toString().toLowerCase())}},e.getLuminance=function(t,e,o){return.2126*(t=.03928>(t/=255)?t/12.92:Math.pow((t+.055)/1.055,2.4))+.7152*(e=.03928>(e/=255)?e/12.92:Math.pow((e+.055)/1.055,2.4))+.0722*(.03928>(o/=255)?o/12.92:Math.pow((o+.055)/1.055,2.4))},e.limit=s,e.ensureArray=function(t){return t?Array.from(t):[]},e.nvl=l},function(t,e,o){"use strict";t.exports=function(t){return null!=t&&"object"==typeof t&&!1===Array.isArray(t)}},function(t,e){t.exports='<div class="a-color-picker-row a-color-picker-stack a-color-picker-row-top"> <canvas class="a-color-picker-sl a-color-picker-transparent"></canvas> <div class=a-color-picker-dot></div> </div> <div class=a-color-picker-row> <div class="a-color-picker-stack a-color-picker-transparent a-color-picker-circle"> <div class=a-color-picker-preview> <input class=a-color-picker-clipbaord type=text> </div> </div> <div class=a-color-picker-column> <div class="a-color-picker-cell a-color-picker-stack"> <canvas class=a-color-picker-h></canvas> <div class=a-color-picker-dot></div> </div> <div class="a-color-picker-cell a-color-picker-alpha a-color-picker-stack" show-on-alpha> <canvas class="a-color-picker-a a-color-picker-transparent"></canvas> <div class=a-color-picker-dot></div> </div> </div> </div> <div class="a-color-picker-row a-color-picker-hsl" show-on-hsl> <label>H</label> <input nameref=H type=number maxlength=3 min=0 max=360 value=0> <label>S</label> <input nameref=S type=number maxlength=3 min=0 max=100 value=0> <label>L</label> <input nameref=L type=number maxlength=3 min=0 max=100 value=0> </div> <div class="a-color-picker-row a-color-picker-rgb" show-on-rgb> <label>R</label> <input nameref=R type=number maxlength=3 min=0 max=255 value=0> <label>G</label> <input nameref=G type=number maxlength=3 min=0 max=255 value=0> <label>B</label> <input nameref=B type=number maxlength=3 min=0 max=255 value=0> </div> <div class="a-color-picker-row a-color-picker-rgbhex a-color-picker-single-input" show-on-single-input> <label>HEX</label> <input nameref=RGBHEX type=text select-on-focus> </div> <div class="a-color-picker-row a-color-picker-palette"></div>'},function(t,e,o){var n=o(6);t.exports="string"==typeof n?n:n.toString()},function(t,e,o){(t.exports=o(7)(!1)).push([t.i,"/*!\n * a-color-picker\n * https://github.com/narsenico/a-color-picker\n *\n * Copyright (c) 2017-2018, Gianfranco Caldi.\n * Released under the MIT License.\n */.a-color-picker{background-color:#fff;padding:0;display:inline-flex;flex-direction:column;user-select:none;width:232px;font:400 10px Helvetica,Arial,sans-serif;border-radius:3px;box-shadow:0 0 0 1px rgba(0,0,0,.05),0 2px 4px rgba(0,0,0,.25)}.a-color-picker,.a-color-picker-row,.a-color-picker input{box-sizing:border-box}.a-color-picker-row{padding:15px;display:flex;flex-direction:row;align-items:center;justify-content:space-between;user-select:none}.a-color-picker-row-top{padding:0}.a-color-picker-row:not(:first-child){border-top:1px solid #f5f5f5}.a-color-picker-column{display:flex;flex-direction:column}.a-color-picker-cell{flex:1 1 auto;margin-bottom:4px}.a-color-picker-cell:last-child{margin-bottom:0}.a-color-picker-stack{position:relative}.a-color-picker-dot{position:absolute;width:14px;height:14px;top:0;left:0;background:#fff;pointer-events:none;border-radius:50px;z-index:1000;box-shadow:0 1px 2px rgba(0,0,0,.75)}.a-color-picker-a,.a-color-picker-h,.a-color-picker-sl{cursor:cell}.a-color-picker-a+.a-color-picker-dot,.a-color-picker-h+.a-color-picker-dot{top:-2px}.a-color-picker-a,.a-color-picker-h{border-radius:2px}.a-color-picker-preview{box-sizing:border-box;width:30px;height:30px;user-select:none;border-radius:15px}.a-color-picker-circle{border-radius:50px;border:1px solid #eee}.a-color-picker-hsl,.a-color-picker-rgb,.a-color-picker-single-input{justify-content:space-evenly}.a-color-picker-hsl>label,.a-color-picker-rgb>label,.a-color-picker-single-input>label{padding:0 8px;flex:0 0 auto;color:#969696}.a-color-picker-hsl>input,.a-color-picker-rgb>input,.a-color-picker-single-input>input{text-align:center;padding:2px 0;width:0;flex:1 1 auto;border:1px solid #e0e0e0;line-height:20px}.a-color-picker-hsl>input::-webkit-inner-spin-button,.a-color-picker-rgb>input::-webkit-inner-spin-button,.a-color-picker-single-input>input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.a-color-picker-hsl>input:focus,.a-color-picker-rgb>input:focus,.a-color-picker-single-input>input:focus{border-color:#04a9f4;outline:none}.a-color-picker-transparent{background-image:linear-gradient(-45deg,#cdcdcd 25%,transparent 0),linear-gradient(45deg,#cdcdcd 25%,transparent 0),linear-gradient(-45deg,transparent 75%,#cdcdcd 0),linear-gradient(45deg,transparent 75%,#cdcdcd 0);background-size:11px 11px;background-position:0 0,0 -5.5px,-5.5px 5.5px,5.5px 0}.a-color-picker-sl{border-radius:3px 3px 0 0}.a-color-picker.hide-alpha [show-on-alpha],.a-color-picker.hide-hsl [show-on-hsl],.a-color-picker.hide-rgb [show-on-rgb],.a-color-picker.hide-single-input [show-on-single-input]{display:none}.a-color-picker-clipbaord{width:100%;height:100%;opacity:0;cursor:pointer}.a-color-picker-palette{flex-flow:wrap;flex-direction:row;justify-content:flex-start;padding:10px}.a-color-picker-palette-color{width:15px;height:15px;flex:0 1 15px;margin:3px;box-sizing:border-box;cursor:pointer;border-radius:3px;box-shadow:inset 0 0 0 1px rgba(0,0,0,.1)}.a-color-picker-palette-add{text-align:center;line-height:13px;color:#607d8b}.a-color-picker.hidden{display:none}",""])},function(t,e){t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var o=function(t,e){var o=t[1]||"",n=t[3];if(!n)return o;if(e&&"function"==typeof btoa){var r=function(t){return"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(t))))+" */"}(n),i=n.sources.map((function(t){return"/*# sourceURL="+n.sourceRoot+t+" */"}));return[o].concat(i).concat([r]).join("\n")}return[o].join("\n")}(e,t);return e[2]?"@media "+e[2]+"{"+o+"}":o})).join("")},e.i=function(t,o){"string"==typeof t&&(t=[[null,t,""]]);for(var n={},r=0;this.length>r;r++){var i=this[r][0];"number"==typeof i&&(n[i]=!0)}for(r=0;t.length>r;r++){var a=t[r];"number"==typeof a[0]&&n[a[0]]||(o&&!a[2]?a[2]=o:o&&(a[2]="("+a[2]+") and ("+o+")"),e.push(a))}},e}}])},88572:function(t,e,o){"use strict";function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}function r(t,e,o){var r=o.value;if("function"!=typeof r)throw new TypeError("@boundMethod decorator can only be applied to methods not: ".concat(n(r)));var i=!1;return{configurable:!0,get:function(){if(i||this===t.prototype||this.hasOwnProperty(e)||"function"!=typeof r)return r;var o=r.bind(this);return i=!0,Object.defineProperty(this,e,{configurable:!0,get:function(){return o},set:function(t){r=t,delete this[e]}}),i=!1,o},set:function(t){r=t}}}function i(t){var e;return"undefined"!=typeof Reflect&&"function"==typeof Reflect.ownKeys?e=Reflect.ownKeys(t.prototype):(e=Object.getOwnPropertyNames(t.prototype),"function"==typeof Object.getOwnPropertySymbols&&(e=e.concat(Object.getOwnPropertySymbols(t.prototype)))),e.forEach((function(e){if("constructor"!==e){var o=Object.getOwnPropertyDescriptor(t.prototype,e);"function"==typeof o.value&&Object.defineProperty(t.prototype,e,r(t,e,o))}})),t}function a(){return 1===arguments.length?i.apply(void 0,arguments):r.apply(void 0,arguments)}o.r(e),o.d(e,{boundClass:function(){return i},boundMethod:function(){return r},default:function(){return a}})},27618:function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.UIRange=void 0;var n=o(70655);o(74054);var r=o(98813),i=o(11975),a=o(47643),s=o(88572),l=function(t){function e(e,o){var i=t.call(this,e,n.__assign(n.__assign({},o),{type:"hidden"}))||this;return i.state=n.__assign(n.__assign({},r.UIInput.defaultState),{min:0,max:100}),i.startValue=0,i.startX=0,i.width=100,Object.assign(i.state,o),i.appendUIRange(),i.onChangeSelfValue(),i}return n.__extends(e,t),e.prototype.className=function(){return"UIRange"},e.prototype.appendUIRange=function(){var t=this.j.create.div(this.getFullElName("slider"));this.container.appendChild(t);var e=this.j.create.div(this.getFullElName("handle"));t.appendChild(e);var o=this.j.create.div(this.getFullElName("log")),n=this.getElm("label");(0,a.assert)(null!=n,"label element does not exists"),n.appendChild(o)},e.prototype.onDragStart=function(t){this.startValue=parseFloat(this.value)||0,this.startX=t.clientX;var e=this.getElm("slider");(0,a.assert)(null!=e,"slider element does not exists"),this.width=e.offsetWidth,this.j.e.on(this.j.ow,"mousemove",this.onDrag)},e.prototype.onDrag=function(t){var e=this.state,o=e.min,n=e.max,r=this.startValue+(t.clientX-this.startX)/this.width*(this.state.max-this.state.min);o>r&&(r=o),r>n&&(r=n),this.value=r.toString()},e.prototype.onDragEnd=function(){this.j.e.off(this.j.ow,"mousemove",this.onDrag)},e.prototype.onChangeSelfValue=function(){var t=this.getElm("handle"),e=parseFloat(this.value)||0;(0,a.assert)(null!=t,"Handle element does not exist"),(0,a.css)(t,{left:(e-this.state.min)/(this.state.max-this.state.min)*100+"%"});var o=this.getElm("log");(0,a.assert)(null!=o,"log element does not exist"),o.innerText=e.toString()},e.prototype.destruct=function(){return this.onDragEnd(),t.prototype.destruct.call(this)},n.__decorate([(0,i.watch)(["handle:mousedown","handle:touchstart"])],e.prototype,"onDragStart",null),n.__decorate([s.default],e.prototype,"onDrag",null),n.__decorate([(0,i.watch)(["j.ow:mouseup","j.ow:touchend"])],e.prototype,"onDragEnd",null),n.__decorate([(0,i.watch)(":change")],e.prototype,"onChangeSelfValue",null),n.__decorate([i.component],e)}(r.UIInput);e.UIRange=l},6626:function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ColorInput=void 0;var n=o(70655);o(26164);var r=o(98813),i=o(11975),a=o(47643),s=o(43746),l=o(27830),c=o(36257),p=o(47643),u=function(t){function e(e,o){var n=t.call(this,e,o)||this,i=new r.Popup(e);n.popup=i,n.trigger=(0,r.Button)(n.j,"ok");var c=n.getElm("wrapper");(0,p.assert)(null!=c,"wrapper element does not exist"),c.appendChild(n.trigger.container),n.trigger.container.classList.add(n.getFullElName("trigger")),n.trigger.onAction((function(){var t,e;null===(e=(t=n.state).onChange)||void 0===e||e.call(t,n.value),i.close()})),i.setMod("padding",!1).setMod("max-height",!1);var u=n.j.create.div(n.getFullElName("picker")),h=s.createPicker(u,{paletteEditable:!0,showAlpha:!0,palette:"PALETTE_MATERIAL_CHROME"}).on("change",(function(t,e){n.isFocused||(n.value=s.parseColor(e||"","hex"))}));return n.j.e.on(n,"change",(function(){s.parseColor(n.value,"hex")!==h.color&&(h.color=n.value)})),i.setContent(u),n.j.e.on(n.nativeInput,"click",(function(){i.parentElement=n,n.jodit instanceof l.Dialog&&i.setZIndex(n.jodit.getZIndex()+1),i.open((function(){return(0,a.position)(n.container)}))})),n.onChangeValue(),n.onChangeSelfValue(),n}return n.__extends(e,t),e.prototype.className=function(){return"ColorInput"},e.prototype.afterSetMode=function(t,e){"slim"===t&&e&&this.nativeInput.setAttribute("readonly","true")},e.prototype.onChangeSelfValue=function(){this.nativeInput.style.backgroundColor=this.value},e.prototype.onEscKeyDown=function(t){var e;t.key===c.KEY_ESC&&(null===(e=this.popup)||void 0===e||e.close())},n.__decorate([(0,i.watch)(":change")],e.prototype,"onChangeSelfValue",null),n.__decorate([(0,i.watch)("nativeInput:keydown")],e.prototype,"onEscKeyDown",null),n.__decorate([i.component],e)}(r.UIInput);e.ColorInput=u},75922:function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),o(98813).Icon.set("map",o(32207)).set("edit-hand",o(40767)).set("edit-polygon",o(26929)).set("edit-marker",o(22657)).set("edit-text",o(98576)).set("edit-polyline",o(87526)).set("edit-circle",o(88862))},21779:function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=o(43854),r=o(95929);n.Config.prototype.googleMaps={saveStateInStorage:!0,useStaticImage:!1,apiUrl:"https://maps.googleapis.com/maps/api/js?key=${j.o.googleMaps.API_KEY}&libraries=geometry,places,drawing&language=${j.o.language}&callback=JoditGoogleReadyHandler",API_KEY:"AIzaSyDjnR03hxN8fo0QJ85Jkkvk2DALTh3eynY",dialog:{size:[700,700]},inlineEditorOptions:{buttons:["bold","italic","link","brush","fontsize","image"]},map:{type:"roadmap",layer:"default",center:"auto",defaultCenter:[-34.397,150.644],defaultZoom:10,zoom:10,size:[500,400],defaultStates:{polyline:{strokeColor:"#5ba4f3",strokeWeight:3},polygon:{strokeColor:"#417706",fillColor:"#5b9302",strokeWeight:1,fillOpacity:.5},marker:{},text:{},circle:{strokeColor:"#da767c",fillColor:"#f34ca8",strokeWeight:1,fillOpacity:.5}}}},n.Config.prototype.controls.googleMaps={tooltip:"Google Maps",icon:"map",command:r.COMMAND_OPEN_DIALOG};var i=function(t){return{icon:"edit-".concat(t),isActive:function(e){return e.buffer.get("createMode.gm")===t},exec:function(e){e.e.fire("changeCreateMode.gm",t)}}};n.Config.prototype.controls.gm={hand:i("hand"),marker:i("marker"),polyline:i("polyline"),polygon:i("polygon"),circle:i("circle"),text:i("text")}},28137:function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.googleMaps=void 0;var n=o(70655);o(34436);var r=o(10818),i=o(97029);o(21779),o(75922);var a=o(1226),s=o(56727),l=o(47643),c=o(36257),p=o(11975),u=o(81650),h=o(30099),d=o(33251),g=o(30804),f=o(75895),m=o(45143),v=o(95929);window.JoditGoogleReadyHandler=d.GoogleReadyHandler;var y=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.requires=["license","color-picker"],e.buttons=[{group:"media",name:"googleMaps"}],e.dialog=null,e}return n.__extends(e,t),e.prototype.className=function(){return"google-maps"},e.prototype.afterInit=function(t){var e=this;t.registerCommand(v.COMMAND_OPEN_DIALOG,(function(){e.openMapEditor(null,{})}))},e.prototype.beforeDestruct=function(t){},e.prototype.onOpenOnDblClick=function(t){if(t.dataset.googleMaps){var e=void 0;try{e=JSON.parse(this.j.ow.atob(t.dataset.googleMaps))}catch(t){}return this.openMapEditor(t,e),!1}},e.prototype.openMapEditor=function(t,e){return n.__awaiter(this,void 0,Promise,(function(){var o,r,i,c,p,u,m,y,b=this;return n.__generator(this,(function(C){return o=this.j,r=this.getDialog(),i=this.j.o.googleMaps.saveStateInStorage?r.storage.get(v.STORAGE_KEY):void 0,c=this.jodit.o.googleMaps.apiUrl,(0,d.isApiAvailable)()||(0,l.appendScriptAsync)(this.jodit,c.replace(/\${([^}]+)}/g,(function(t,e){var o;return null!==(o=b.get(e))&&void 0!==o?o:""}))),p=n.__assign(n.__assign({type:this.j.o.googleMaps.map.type,layer:this.j.o.googleMaps.map.layer,size:this.j.o.googleMaps.map.size},i),e),(u=new h.UIMap(r,p,this.j.options)).container.classList.add(r.getFullElName("map")),(m=new f.UIComboBox(o,{icon:"search",placeholder:"Search",clearButton:!0}).setMod("in-header",!0)).container.classList.add(r.getFullElName("search")),this.j.async.promise((function(t){if((0,d.isApiAvailable)())t(0);else{var e=function(){(0,d.isApiAvailable)()?t(0):b.j.async.setTimeout(e,100)};e(),(0,d.googleReady)(t)}})).then((function(){u.setStatus("ready"),m.setStatus("ready")})),this.j.e.on(m,"select",(function(t,e){e?u.map.fitBounds(e):t&&(u.state.center=[t.lat(),t.lng()])})),i||("auto"===this.j.o.googleMaps.map.center?navigator.geolocation.getCurrentPosition((function(t){u.state.center=[t.coords.latitude,t.coords.longitude]}),(function(){u.state.center=b.j.o.googleMaps.map.defaultCenter})):u.state.center=this.j.o.googleMaps.map.center),r.setSize.apply(r,n.__spreadArray([],n.__read(o.o.googleMaps.dialog.size),!1)).setHeader([m," ",(0,s.Button)(o,"eye").onAction((function(){var t=b.jodit.createInside.element("img");t.src=(0,g.staticUrl)(u),t.dataset.googleMaps=btoa(u.json());var e={value:t.outerHTML};b.onAfterGetValueFromEditor(e),o.execCommand("preview",null,e.value)}))]).setContent((0,a.TabsWidget)(o,[{name:"Map",icon:"map",content:u},{name:"Settings",content:new h.UIMapsPropsForm(o,u.state)},{name:"Controls",icon:"menu",content:new h.UIMapsControlsForm(o,u.state)}])).setFooter([(0,s.Button)(o,"cancel","Cancel","default").onAction((function(){return r.close()})),(0,s.Button)(o,"ok",t?"Save":"Insert","primary").onAction((function(){u.destruct(),m.destruct(),r.e.off("beforeClose",y),r.close(),b.insertMap(t,u)}))]).open(),y=function(){if(u.state.elements.length&&JSON.stringify(u.state.elements)!==JSON.stringify(p.elements)&&!confirm(b.i18n("Are you sure?")))return!1;u.destruct(),m.destruct(),r.e.off("beforeClose",y)},r.e.on("beforeClose",y),[2]}))}))},e.prototype.getDialog=function(){if(!this.dialog){var t=new u.Dialog({language:this.j.o.language});t.container.classList.add(this.getFullElName("")),this.dialog=t}return this.dialog},e.prototype.insertMap=function(t,e){var o=null!=t?t:this.jodit.createInside.element("img");o.src=(0,g.staticUrl)(e),o.dataset.googleMaps=btoa(e.json()),t||this.jodit.s.insertImage(o)},e.prototype.onBeforeSetNativeEditorValue=function(t){t.value=t.value.replace(/<script[^>]+jodit-google-maps-init[^>]+>.*?<\/script>/gs,"")},e.prototype.onAfterGetValueFromEditor=function(t,e){var o=this;this.j.o.googleMaps.useStaticImage||e===c.SOURCE_CONSUMER||(t.value=t.value.replace(/(<img[^>]+)(["']?)data-google-maps\2\s*=(["'])([^"']+)\3([^>]*>)/gs,(function(t,e,n,r,i,a){var s={};try{s=JSON.parse(o.j.ow.atob(i))}catch(t){}return"".concat(e,' id="').concat(s.uid,'" ').concat(n,"data-google-maps").concat(n,"=").concat(r).concat(i).concat(r).concat(a).concat((0,m.generateJSScript)(o.j,s))})))},n.__decorate([(0,p.watch)("?:openOnDblClick")],e.prototype,"onOpenOnDblClick",null),n.__decorate([(0,p.watch)(":beforeSetNativeEditorValue")],e.prototype,"onBeforeSetNativeEditorValue",null),n.__decorate([(0,p.watch)(":afterGetValueFromEditor")],e.prototype,"onAfterGetValueFromEditor",null),e}(r.Plugin);e.googleMaps=y,i.Jodit.plugins.add("google-maps",y)},95929:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.COMMAND_OPEN_DIALOG=e.STORAGE_KEY=void 0,e.STORAGE_KEY="googleMapsState",e.COMMAND_OPEN_DIALOG="googleMapsDialog"},45143:function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.generateJSScript=void 0;var n=o(47643);e.generateJSScript=function(t,e){return"<".concat("script",' class="jodit-google-maps-init" type="text/javascript">\n\t\tvar imgMap = document.getElementById(\'').concat(e.uid,"'),\n\t\t\tbox = document.createElement('div'),\n\t\t\tmapBox = document.createElement('div'),\n\t\t\tparentBox = imgMap && imgMap.parentNode,\n\t\t\tassign = Object.assign || function (a, b) {\n\t\t\t\treturn Object.keys(b).reduce(function(acc, key) {\n\t\t\t\t\tacc[key] = b[key];\n\t\t\t\t\treturn acc;\n\t\t\t\t}, a)\n\t\t\t};\n\n\t\tbox.id = 'b").concat(e.uid,"';\n\t\tparentBox ? parentBox.insertBefore(box, imgMap) : document.body.appendChild(box);\n\t\timgMap && box.appendChild(imgMap);\n\t\tbox.appendChild(mapBox);\n\n\t\tif (parentBox && parentBox.style.textAlign === 'center') {\n\t\t\tparentBox.style.margin = '0 auto';\n\t\t}\n\n\t\tbox.style.cssText = imgMap.style.cssText;\n\t\tbox.className = imgMap.className;\n\n\t\tvar w = (imgMap && imgMap.offsetWidth) || ").concat(e.size[0],",\n\t\t\t\th = (imgMap && imgMap.offsetHeight) || ").concat(e.size[1],";\n\n\t\tassign(box.style, {\n\t\t\tdisplay: !imgMap.style.cssText ? 'inline-block' : undefined,\n\t\t\twidth: w + 'px',\n\t\t\theight: h + 'px',\n\t\t\tposition: 'relative'\n\t\t});\n\n\t\tassign(mapBox.style, {\n\t\t\twidth: w + 'px',\n\t\t\theight: h + 'px',\n\t\t\tposition: 'absolute',\n\t\t\tleft: 0,\n\t\t\ttop: 0\n\t\t});\n\n\t\tfunction CreateGMap").concat(e.uid,"() {\n\t\t\tif (!mapBox) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tvar map = new google.maps.Map(mapBox, assign({\n\t\t\t\tzoom: ").concat(e.zoom,",\n\t\t\t\tcenter: { lat: ").concat(e.center[0],", lng: ").concat(e.center[1],"},\n\t\t\t\tmapType: '").concat(e.type,"'\n\t\t\t}, ").concat(JSON.stringify(e.controls),"));\n\n\t\t\tif (").concat("default"!==e.layer,") {\n\t\t\t\tnew google.maps.").concat((0,n.ucfirst)(e.layer),"Layer().setMap(map);\n\t\t\t}\n\n\t\t\tvar infoWindow = new google.maps.InfoWindow();\n\n\t\t\t").concat(JSON.stringify(e.elements),".forEach(function (elm) {\n\t\t\t\tswitch (elm.type) {\n\t\t\t\t\tcase 'marker': {\n\t\t\t\t\t\tvar obj = (new google.maps.Marker({\n\t\t\t\t\t\t\tposition: {lat: elm.coordinates[0], lng: elm.coordinates[1]},\n\t\t\t\t\t\t\tmap: map,\n\t\t\t\t\t\t\ttitle: elm.title\n\t\t\t\t\t\t}));\n\n\t\t\t\t\t\telm.text && obj.addListener('click', function () {\n\t\t\t\t\t\t\tinfoWindow.setContent(elm.text);\n\t\t\t\t\t\t\tinfoWindow.open(map, this);\n\t\t\t\t\t\t});\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\n\t\t\t\t\tcase 'circle': {\n\t\t\t\t\t\t(new google.maps.Circle({\n\t\t\t\t\t\t\tcenter: {lat: elm.coordinates[0], lng: elm.coordinates[1]},\n\t\t\t\t\t\t\tradius: elm.radius,\n\t\t\t\t\t\t\tstrokeColor: elm.strokeColor,\n\t\t\t\t\t\t\tfillColor: elm.fillColor,\n\t\t\t\t\t\t\tstrokeWeight: elm.strokeWeight,\n\t\t\t\t\t\t\tfillOpacity: elm.fillOpacity,\n\t\t\t\t\t\t\tmap: map,\n\t\t\t\t\t\t}));\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\n\t\t\t\t\tcase 'polygon':\n\t\t\t\t\tcase 'polyline': {\n\t\t\t\t\t\tfunction toPath(array) {\n\t\t\t\t\t\t\treturn array.map(function (item) {\n\t\t\t\t\t\t\t\tif (Array.isArray(item[0])) {\n\t\t\t\t\t\t\t\t\treturn toPath(item);\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\treturn {lat: item[0], lng: item[1]};\n\t\t\t\t\t\t\t})\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t(new google.maps[elm.type === 'polyline' ? 'Polyline' : 'Polygon']({\n\t\t\t\t\t\t\tpath: toPath(elm.coordinates),\n\t\t\t\t\t\t\tstrokeColor: elm.strokeColor,\n\t\t\t\t\t\t\tfillColor: elm.fillColor,\n\t\t\t\t\t\t\tstrokeWeight: elm.strokeWeight,\n\t\t\t\t\t\t\tfillOpacity: elm.fillOpacity,\n\t\t\t\t\t\t\tmap: map,\n\t\t\t\t\t\t}));\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t})\n\t\t}\n\n\t\tif (typeof google !== 'undefined' && typeof google.maps !=='undefined' && typeof google.maps.Map !== 'undefined') {\n\t\t\tCreateGMap").concat(e.uid,"();\n\t\t} else {\n\t\t\tvar scr = document.createElement('script');\n\t\t\tscr.src = 'https://maps.googleapis.com/maps/api/js?key=").concat(t.o.googleMaps.API_KEY,"&language=").concat(t.o.language,"&callback=CreateGMap").concat(e.uid,"';\n\t\t\tdocument.appendChild(scr);\n\t\t}\n\t\t/*]]>*/</").concat("script",">").replace(/[\n\t]+/g,"")}},22073:function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.generateStaticElements=void 0;var n=o(33251),r=o(47643);e.generateStaticElements=function(t){return t.state.elements.map((function(t){var e,o,i,a,s,l;switch(t.type){case"polygon":return"&path=fillcolor:".concat((0,n.specialColor)(null!==(e=t.fillColor)&&void 0!==e?e:"#fff"),"%7Cweight:").concat(null!==(o=t.strokeWeight)&&void 0!==o?o:1,"%7Ccolor:").concat((0,n.specialColor)(null!==(i=t.strokeColor)&&void 0!==i?i:"#fff"),"%7Cenc:").concat(google.maps.geometry.encoding.encodePath((0,n.arrayToPath)(t.coordinates)));case"polyline":return"&path=weight:".concat(null!==(a=t.strokeWeight)&&void 0!==a?a:1,"%7Ccolor:").concat((0,n.specialColor)(null!==(s=t.strokeColor)&&void 0!==s?s:"#fff"),"%7Cenc:").concat(google.maps.geometry.encoding.encodePath((0,n.arrayToPath)(t.coordinates)));case"marker":return"&markers=color:blue%7Clabel:".concat(encodeURIComponent((0,r.stripTags)(null!==(l=t.text)&&void 0!==l?l:"").charAt(0).toUpperCase()),"%7C").concat(t.coordinates)}return""})).join("")}},33251:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isApiAvailable=e.specialColor=e.pathToArray=e.arrayToPath=e.GoogleReadyHandler=e.googleReady=e.jdGoogleMapsOnloadHandlers=e.jdGoogleMapsAlreadyLoaded=void 0,e.jdGoogleMapsAlreadyLoaded=!1,e.jdGoogleMapsOnloadHandlers=[],e.googleReady=function(t){e.jdGoogleMapsAlreadyLoaded?t():e.jdGoogleMapsOnloadHandlers.push(t)},e.GoogleReadyHandler=function(){e.jdGoogleMapsAlreadyLoaded=!0,e.jdGoogleMapsOnloadHandlers&&e.jdGoogleMapsOnloadHandlers.forEach((function(t){return t()}))},e.arrayToPath=function t(e,o){void 0===o&&(o=!1);var n=[];if(Array.isArray(e)){if(!Array.isArray(e[0])&&!Array.isArray(e[1]))return o?{lat:e[0],lng:e[1]}:new google.maps.LatLng(e[0],e[1]);e.forEach((function(e){n.push(t(e,o))}))}return n},e.pathToArray=function(t){return t.getArray().map((function(t){return[t.lat(),t.lng()]}))},e.specialColor=function(t){return t.toUpperCase().replace("#","0x").padEnd(10,"F")},e.isApiAvailable=function(){return"undefined"!=typeof google&&void 0!==google.maps&&void 0!==google.maps.Map}},30804:function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.staticUrl=void 0;var n=o(22073);e.staticUrl=function(t){var e=t.state;return"https://maps.googleapis.com/maps/api/staticmap?center=".concat(e.center.join(","))+"&zoom=".concat(e.zoom)+"&size=".concat(e.size.join("x"))+"&maptype=".concat(e.type)+"&key=".concat(t.options.googleMaps.API_KEY)+(0,n.generateStaticElements)(t)}},75895:function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.UIComboBox=void 0;var n=o(70655);o(70290);var r=o(98813),i=o(11975),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n.__extends(e,t),e.prototype.className=function(){return"UIComboBox"},e.prototype.onReady=function(){var t=this,e=new google.maps.places.Autocomplete(this.nativeInput,{fields:["address_components","geometry","name"],types:["geocode"]});e.addListener("place_changed",(function(){var o,n,r=e.getPlace();t.j.e.fire(t,"select",null===(o=r.geometry)||void 0===o?void 0:o.location,null===(n=r.geometry)||void 0===n?void 0:n.viewport)}))},e.prototype.onInput=function(){return n.__awaiter(this,void 0,Promise,(function(){return n.__generator(this,(function(t){return[2]}))}))},n.__decorate([(0,i.hook)("ready")],e.prototype,"onReady",null),n.__decorate([(0,i.watch)("nativeInput:input"),(0,i.debounce)()],e.prototype,"onInput",null),e}(r.UIInput);e.UIComboBox=a},48201:function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.UIBaseEditor=void 0;var n=o(70655),r=o(98813),i=function(t){function e(e,o,n){var r=t.call(this,e)||this;return r.state=o,r.options=n,r}return n.__extends(e,t),e.prototype.className=function(){return"UIBaseEditor"},e.prototype.render=function(){return"<div>\n\t\t\t<div class='&__header'></div>\n\t\t\t<div class='&__form'></div>\n\t\t\t<div class='&__buttons'></div>\n\t\t</div>"},e.prototype.onReady=function(){var t=this,e=(0,r.Button)(this.j,"bin").onAction((function(){return t.j.e.fire(t,"bin")}));this.append(e,"buttons")},e}(r.UIGroup);e.UIBaseEditor=i},41560:function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=o(70655);n.__exportStar(o(53006),e),n.__exportStar(o(16093),e),n.__exportStar(o(4585),e)},53006:function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.UIMarkerEditor=void 0;var n=o(70655),r=o(11975),i=o(58333),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n.__extends(e,t),e.prototype.onReady=function(){var e,o=this;t.prototype.onReady.call(this);var n=new i.UIWysiwyg(this.j,this.options.googleMaps.inlineEditorOptions,null!==(e=this.state.text)&&void 0!==e?e:"",(function(t){return o.j.e.fire(o,"change","text",t)}));this.append(n,"form")},n.__decorate([(0,r.hook)("ready")],e.prototype,"onReady",null),n.__decorate([r.component],e)}(o(48201).UIBaseEditor);e.UIMarkerEditor=a},4585:function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.UIPolygonEditor=void 0;var n=o(70655),r=o(11975),i=o(6626),a=o(16093),s=o(27618),l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n.__extends(e,t),e.prototype.onReady=function(){var t,e,o=this;this.append([new i.ColorInput(this.j,{label:"Fill color",value:null!==(t=this.state.fillColor)&&void 0!==t?t:"#000",onChange:function(t){return o.j.e.fire(o,"change","fillColor",t)}}).setMod("trigger",!1),new s.UIRange(this.j,{label:"Opacity",min:0,max:1,value:null!==(e=this.state.fillOpacity)&&void 0!==e?e:1,onChange:function(t){o.j.e.fire(o,"change","fillOpacity",parseFloat(t)||0)}}).setMod("log",!1)],"form")},n.__decorate([(0,r.hook)("ready")],e.prototype,"onReady",null),n.__decorate([r.component],e)}(a.UIPolylineEditor);e.UIPolygonEditor=l},16093:function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.UIPolylineEditor=void 0;var n=o(70655),r=o(11975),i=o(48201),a=o(6626),s=o(98813),l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n.__extends(e,t),e.prototype.onReady=function(){var e,o,n=this;t.prototype.onReady.call(this),this.append([new s.UIInput(this.j,{label:"Stroke weight",value:null!==(e=this.state.strokeWeight)&&void 0!==e?e:1,type:"number",onChange:function(t){return n.j.e.fire(n,"change","strokeWeight",t)}}),new a.ColorInput(this.j,{label:"Stroke color",value:null!==(o=this.state.strokeColor)&&void 0!==o?o:"#000",onChange:function(t){return n.j.e.fire(n,"change","strokeColor",t)}}).setMod("trigger",!1)],"form")},n.__decorate([(0,r.hook)("ready")],e.prototype,"onReady",null),n.__decorate([r.component],e)}(i.UIBaseEditor);e.UIPolylineEditor=l},30099:function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=o(70655);n.__exportStar(o(55807),e),n.__exportStar(o(41560),e),n.__exportStar(o(58333),e),n.__exportStar(o(92599),e),n.__exportStar(o(29893),e)},55807:function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.UIMap=void 0;var n=o(70655);o(68120);var r=o(98813),i=o(11975),a=o(47643),s=o(27830),l=o(95929),c=o(18271),p=o(78855);o(21779);var u=o(32501),h=o(47643),d=function(t){function e(e,o,n){var r=t.call(this,e)||this;r.options=n,r.toolbar=new s.ToolbarCollection(r.jodit),r.state={uid:"jd"+(0,p.uniqueUid)()+(new Date).toString().replace(/[^0-9]/g,""),layer:r.options.googleMaps.map.layer,center:r.options.googleMaps.map.defaultCenter,zoom:r.options.googleMaps.map.defaultZoom,size:r.options.googleMaps.map.size,type:r.options.googleMaps.map.type,controls:{zoomControl:!0,mapTypeControl:!0,scaleControl:!0,streetViewControl:!0,rotateControl:!0,fullscreenControl:!0},mode:"hand",elements:[]},r.mapElements=[],r.apiLoaded=null,r.mapInitialized=!1,r.layers=[],Object.assign(r.state,o),r.toolbar.build(["gm.hand","gm.marker","gm.polyline","gm.polygon","gm.circle"]);var i=r.getElm("map-palette");return(0,h.assert)(null!=i,"palette element does not exists"),i.appendChild(r.toolbar.container),r}return n.__extends(e,t),e.prototype.className=function(){return"UIMap"},e.prototype.json=function(){return JSON.stringify(n.__assign(n.__assign({},this.state),{mode:"hand"}))},e.prototype.onReady=function(){return n.__awaiter(this,void 0,Promise,(function(){var t,e=this;return n.__generator(this,(function(o){switch(o.label){case 0:return[4,this.apiLoaded];case 1:return o.sent(),t=this.getElm("map-root"),(0,h.assert)(null!=t,"map-root element does not exists"),this.map=new google.maps.Map(t,{center:{lat:this.state.center[0],lng:this.state.center[1]},zoom:this.state.zoom,mapTypeId:this.state.type}),this.map.addListener("zoom_changed",(function(){var t;e.state.zoom=null!==(t=e.map.getZoom())&&void 0!==t?t:10})),this.map.addListener("center_changed",(function(){var t,o,n,r,i,a;e.state.center=[null!==(n=null===(o=null===(t=e.map)||void 0===t?void 0:t.getCenter())||void 0===o?void 0:o.lat())&&void 0!==n?n:55,null!==(a=null===(i=null===(r=e.map)||void 0===r?void 0:r.getCenter())||void 0===i?void 0:i.lng())&&void 0!==a?a:34]})),this.map.addListener("maptypeid_changed",(function(){var t=e.map.getMapTypeId();t&&(e.state.type=t)})),this.initDrawManager(),this.onChangeElementsList(),this.onChangeSize(),this.onChangeControls(),this.onChangeLayer(),this.onChangeMapType(),this.onChangeMode(),this.mapInitialized=!0,this.j.async.requestIdleCallback((function(){e.j.e.fire(e,"GoogleMapsIsReady")})),[2]}}))}))},e.prototype.initDrawManager=function(){var t=this;try{var e=new google.maps.drawing.DrawingManager;e.setMap(this.map),e.setOptions({drawingControl:!1,polygonOptions:n.__assign(n.__assign({},this.options.googleMaps.map.defaultStates.polygon),{clickable:!0,editable:!0}),polylineOptions:n.__assign(n.__assign({},this.options.googleMaps.map.defaultStates.polyline),{clickable:!0,editable:!0}),markerOptions:n.__assign(n.__assign({},this.options.googleMaps.map.defaultStates.marker),{clickable:!0}),circleOptions:n.__assign(n.__assign({},this.options.googleMaps.map.defaultStates.circle),{clickable:!0,editable:!0})}),this.drawingManager=e,google.maps.event.addListener(e,"overlaycomplete",(function(e){e.overlay&&(u.addNewInState.call(t,e.overlay),e.overlay.setMap(null))}))}catch(t){}},e.prototype.changeCreateMode=function(t){this.state.mode=this.state.mode===t?"hand":t},e.prototype.onChangeMode=function(){var t;this.j.buffer.set("createMode.gm",this.state.mode),null===(t=this.drawingManager)||void 0===t||t.setDrawingMode("hand"===this.state.mode?null:this.state.mode),this.j.e.fire("updateToolbar")},e.prototype.onChangeElementsList=function(){var t=this,e=this.state.elements,o=this.mapElements;o.length>e.length&&o.slice(e.length).forEach((function(t){t.gme.setMap(null)})),o.length=e.length,e.forEach((function(e,o){return c.initOrUpdateElementFromState.call(t,e,o)}))},e.prototype.onChangeCenter=function(){var t=this.map.getCenter();(null==t?void 0:t.lat())===this.state.center[0]&&(null==t?void 0:t.lng())===this.state.center[1]||this.map.setCenter({lat:this.state.center[0],lng:this.state.center[1]})},e.prototype.onChangeZoom=function(){var t;null===(t=this.map)||void 0===t||t.setZoom(this.state.zoom)},e.prototype.onChangeControls=function(){var t,e;for(e in this.state.controls)null===(t=this.map)||void 0===t||t.set(e,this.state.controls[e])},e.prototype.onChangeBound=function(){this.options.googleMaps.saveStateInStorage&&this.j.storage.set(l.STORAGE_KEY,{center:this.state.center,size:this.state.size,zoom:this.state.zoom,type:this.state.type,layer:this.state.layer,controls:this.state.controls})},e.prototype.onChangeSize=function(){var t=this.getElm("map-size");(0,h.assert)(null!=t,"map-size element does not exists"),(0,a.css)(t,{width:this.state.size[0],height:this.state.size[1]})},e.prototype.onChangeMapType=function(){this.map.setMapTypeId(this.state.type)},e.prototype.onChangeLayer=function(){var t=this;switch(this.layers.forEach((function(t){return t.setMap(null)})),this.layers.length=0,this.state.layer){case"traffic":this.layers.push(new google.maps.TrafficLayer);break;case"transit":this.layers.push(new google.maps.TransitLayer);break;case"bicycling":this.layers.push(new google.maps.BicyclingLayer)}this.layers.forEach((function(e){return e.setMap(t.map)}))},e.prototype.render=function(){return"<div>\n\t\t\t<div class='&__map-root'></div>\n\t\t\t<div class='&__map-size'></div>\n\t\t\t<div class='&__map-palette'></div>\n\t\t</div>"},e.prototype.appendChildToContainer=function(){},n.__decorate([(0,i.hook)("ready")],e.prototype,"onReady",null),n.__decorate([(0,i.watch)("?:changeCreateMode.gm")],e.prototype,"changeCreateMode",null),n.__decorate([(0,i.watch)("state.mode")],e.prototype,"onChangeMode",null),n.__decorate([(0,i.watch)("state.elements")],e.prototype,"onChangeElementsList",null),n.__decorate([(0,i.watch)("state.center"),(0,i.wait)((function(t){return t.mapInitialized})),(0,i.debounce)()],e.prototype,"onChangeCenter",null),n.__decorate([(0,i.watch)("state.zoom"),(0,i.debounce)()],e.prototype,"onChangeZoom",null),n.__decorate([(0,i.watch)("state.controls")],e.prototype,"onChangeControls",null),n.__decorate([(0,i.watch)(["state.center","state.zoom","state.controls","state.size","state.type","state.layer"]),(0,i.wait)((function(t){return t.mapInitialized})),(0,i.debounce)()],e.prototype,"onChangeBound",null),n.__decorate([(0,i.watch)("state.size"),(0,i.debounce)()],e.prototype,"onChangeSize",null),n.__decorate([(0,i.watch)("state.type")],e.prototype,"onChangeMapType",null),n.__decorate([(0,i.watch)("state.layer")],e.prototype,"onChangeLayer",null),e}(r.UIGroup);e.UIMap=d},42872:function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.addNewInState=void 0;var n=o(70655),r=o(33251);e.addNewInState=function(t){var e,o,i,a,s,l,c,p;switch(this.state.mode){case"polyline":case"polygon":var u=this.state.mode;this.state.elements=n.__spreadArray(n.__spreadArray([],n.__read(this.state.elements),!1),[n.__assign({type:u,coordinates:(0,r.pathToArray)(t.getPath())},this.options.googleMaps.map.defaultStates[u])],!1);break;case"circle":var h=t;this.state.elements=n.__spreadArray(n.__spreadArray([],n.__read(this.state.elements),!1),[n.__assign({type:this.state.mode,coordinates:[null!==(o=null===(e=h.getCenter())||void 0===e?void 0:e.lat())&&void 0!==o?o:0,null!==(a=null===(i=h.getCenter())||void 0===i?void 0:i.lng())&&void 0!==a?a:0],radius:h.getRadius()},this.options.googleMaps.map.defaultStates.circle)],!1);break;case"marker":var d=t;this.state.elements=n.__spreadArray(n.__spreadArray([],n.__read(this.state.elements),!1),[n.__assign({type:this.state.mode,coordinates:[null!==(l=null===(s=d.getPosition())||void 0===s?void 0:s.lat())&&void 0!==l?l:0,null!==(p=null===(c=d.getPosition())||void 0===c?void 0:c.lng())&&void 0!==p?p:0]},this.options.googleMaps.map.defaultStates.marker)],!1)}}},32501:function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=o(70655);n.__exportStar(o(42872),e),n.__exportStar(o(53363),e),n.__exportStar(o(85231),e),n.__exportStar(o(83818),e),n.__exportStar(o(20630),e)},18271:function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.initOrUpdateElementFromState=void 0;var n=o(20630),r=o(98813),i=o(33251),a=o(78855),s=o(83818),l=o(53363);e.initOrUpdateElementFromState=function(t,e){var o,c,p=this,u=this.mapElements[e];if(u){if(u.state.type===t.type)return n.updateStateAndGme.call(this,t,e);u.gme.setMap(null)}switch(t.type){case"text":c=new google.maps.Marker({position:new google.maps.LatLng(t.coordinates[0],t.coordinates[1]),draggable:!0,title:t.text,map:this.map});break;case"marker":c=new google.maps.Marker({position:new google.maps.LatLng(t.coordinates[0],t.coordinates[1]),draggable:!0,label:t.showCaption?t.title:"",title:t.title,icon:t.icon?r.Icon.get(t.icon):null,map:this.map});break;case"polyline":case"polygon":var h=(0,i.arrayToPath)(t.coordinates);c=new google.maps["polygon"===t.type?"Polygon":"Polyline"]({path:h,strokeColor:t.strokeColor,fillColor:t.fillColor,strokeWeight:t.strokeWeight,editable:!0,draggable:!0,map:this.map,fillOpacity:"polygon"===t.type?t.fillOpacity:1});break;case"circle":c=new google.maps.Circle({center:new google.maps.LatLng(t.coordinates[0],t.coordinates[1]),radius:t.radius,strokeColor:t.strokeColor,fillColor:t.fillColor,strokeWeight:t.strokeWeight,editable:!0,draggable:!0,map:this.map,fillOpacity:null!==(o=t.fillOpacity)&&void 0!==o?o:1})}var d={type:t.type,uid:(0,a.uniqueUid)(),state:t,gme:c};"dragend radius_changed center_changed".split(" ").forEach((function(t){return c.addListener(t,(function(){return s.onChangeGeometries.call(p,d,e)}))})),"polygon"!==d.type&&"polyline"!==d.type||"insert_at set_at remove_at".split(" ").forEach((function(t){return d.gme.getPath().addListener(t,(function(){return s.onChangeGeometries.call(p,d,e)}))})),c.addListener("click",(function(){return l.openPropsDialog.call(p,d,e)})),this.mapElements[e]=d}},83818:function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.onChangeGeometries=void 0;var n=o(70655),r=o(20630),i=o(33251);e.onChangeGeometries=function(t,e){var o,a,s,l;switch(t.type){case"polyline":case"polygon":var c=(0,i.pathToArray)(t.gme.getPath()),p=n.__assign(n.__assign({},t.state),{coordinates:c});r.updateStateAndGme.call(this,p,e,!0);break;case"marker":var u=t.gme.getPosition();p=n.__assign(n.__assign({},t.state),{coordinates:[null!==(o=null==u?void 0:u.lat())&&void 0!==o?o:0,null!==(a=null==u?void 0:u.lng())&&void 0!==a?a:0]}),r.updateStateAndGme.call(this,p,e,!0);break;case"circle":u=t.gme.getCenter(),p=n.__assign(n.__assign({},t.state),{radius:t.gme.getRadius(),coordinates:[null!==(s=null==u?void 0:u.lat())&&void 0!==s?s:0,null!==(l=null==u?void 0:u.lng())&&void 0!==l?l:0]}),r.updateStateAndGme.call(this,p,e,!0)}}},53363:function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.openPropsDialog=void 0;var n=o(70655),r=o(41560),i=o(85231),a=o(20630);function s(){var t=this,e=new google.maps.InfoWindow({content:"<div>test</div>"});return e.addListener("domready",(function(){t.setMod("info-opened",!0)})),e.addListener("closeclick",(function(){t.setMod("info-opened",!1)})),e}e.openPropsDialog=function(t,e){var o,l=this;switch(this.state.mode="hand",t.type){case"polyline":o=new r.UIPolylineEditor(this.jodit,t.state,this.options);break;case"marker":o=new r.UIMarkerEditor(this.jodit,t.state,this.options);break;case"circle":case"polygon":o=new r.UIPolygonEditor(this.jodit,t.state,this.options)}if(o){this.append(o),this.j.e.on(o,"bin",(function(){i.removeElement.call(l,t)})).on(o,"change",(function(o,r){var i;a.updateStateAndGme.call(l,n.__assign(n.__assign({},t.state),((i={})[o]=r,i)),e)}));var c=s.call(this);if("polygon"===t.type||"polyline"===t.type){var p=t.gme.getPath().getAt(0);c.setPosition(p)}"circle"===t.type&&c.setPosition(t.gme.getCenter()),c.setContent(o.container),c.open(this.map,t.gme),c.addListener("closeclick",(function(){o&&(l.remove(o),o.destruct())}))}}},85231:function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.removeElement=void 0;var n=o(70655);e.removeElement=function(t){var e=this.mapElements.indexOf(t);-1!==e&&(this.mapElements[e].gme.setMap(null),this.mapElements.splice(e,1),this.state.elements.splice(e,1),this.state.elements=n.__spreadArray([],n.__read(this.state.elements),!1))}},20630:function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.updateStateAndGme=void 0;var n=o(33251);e.updateStateAndGme=function(t,e,o){var r;void 0===o&&(o=!1);var i=this.mapElements[e];if(i.state!==t&&i.state.type===t.type){var a=i.state;if(!o){var s=void 0;for(s in t){var l=t[s],c=a[s];if(null!=l&&(null==c||l.toString()!==c.toString()))switch(s){case"strokeWeight":case"strokeColor":case"fillColor":case"fillOpacity":switch(i.type){case"polyline":case"circle":case"polygon":i.gme.setOptions(((r={})[s]=l,r))}break;case"coordinates":switch(i.type){case"polygon":case"polyline":i.gme.setPath((0,n.arrayToPath)(l))}}}}i.state=t,this.state.elements[e]=t}}},29893:function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.UIMapsControlsForm=void 0;var n=o(70655);o(67280);var r=o(98813),i=o(11975),a=function(t){function e(e,o){var n=t.call(this,e)||this;n.state=o;var i={zoomControl:"Zoom control",mapTypeControl:"Map Type control",scaleControl:"Scale control",streetViewControl:"Street View control ",rotateControl:"Rotate control",fullscreenControl:"Fullscreen control"},a=Object.keys(i);return n.append(a.map((function(t){return new r.UICheckbox(e,{label:i[t],name:t,checked:n.state.controls[t],switch:!0,type:"checkbox",onChange:n.onChangeSize.bind(n,t)})}))),n}return n.__extends(e,t),e.prototype.className=function(){return"UIMapsControlsForm"},e.prototype.onChangeSize=function(t,e){var o;this.state.controls=n.__assign(n.__assign({},this.state.controls),((o={})[t]="true"===e,o))},n.__decorate([i.component],e)}(r.UIForm);e.UIMapsControlsForm=a},92599:function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.UIMapsPropsForm=void 0;var n=o(70655);o(36522);var r=o(98813),i=o(47643),a=o(11975),s=function(t){function e(e,o){var i,a=this;(a=t.call(this,e)||this).state=o;var s=n.__read(o.size,2),l=s[0],c=s[1],p=n.__read(o.center,2),u=p[0],h=p[1];return a.append([new r.UIInput(e,{label:"Width",name:"width",value:l,type:"number",onChange:a.onChangeSize}),new r.UIInput(e,{label:"Height",name:"height",value:c,type:"number",onChange:a.onChangeSize}),new r.UIInput(e,{label:"Latitude",name:"lat",value:u,onChange:a.onChangeCenter}),new r.UIInput(e,{label:"Longitude",name:"lng",value:h,onChange:a.onChangeCenter}),new r.UISelect(e,{label:"Map type",value:o.type,name:"mapType",options:[{value:"hybrid",text:"Hybrid"},{value:"roadmap",text:"Roadmap"},{value:"satellite",text:"Satellite"},{value:"terrain",text:"Terrain"}],onChange:function(t){o.type=t}}),new r.UISelect(e,{label:"Layer",value:null!==(i=o.layer)&&void 0!==i?i:"default",name:"layer",options:[{value:"default",text:"Default"},{value:"traffic",text:"Traffic"},{value:"transit",text:"Transit"},{value:"bicycling",text:"Bicycling"}],onChange:function(t){o.layer=t}})]),a}return n.__extends(e,t),e.prototype.className=function(){return"UIMapsPropsForm"},e.prototype.onChangeSize=function(){var t=(0,i.refs)(this),e=t.width,o=t.height;this.state.size=[parseInt(null==e?void 0:e.value,10)||0,parseInt(null==o?void 0:o.value,10)||0]},e.prototype.onExternalChangeSize=function(){var t=(0,i.refs)(this),e=t.width,o=t.height,r=n.__read(this.state.size,2),a=r[0],s=r[1];a.toString()!==e.value&&(e.value=a.toString()),s.toString()!==o.value&&(o.value=s.toString())},e.prototype.onChangeCenter=function(){var t=(0,i.refs)(this),e=t.lat,o=t.lng;this.state.center=[parseFloat(null==e?void 0:e.value)||0,parseFloat(null==o?void 0:o.value)||0]},e.prototype.onExternalChangeCenter=function(){var t=(0,i.refs)(this),e=t.lat,o=t.lng,r=n.__read(this.state.center,2),a=r[0],s=r[1];a.toString()!==e.value&&(e.value=a.toString()),s.toString()!==o.value&&(o.value=s.toString())},e.prototype.onExternalChangeType=function(){var t=(0,i.refs)(this).mapType;this.state.type!==t.value&&(t.value=this.state.type)},e.prototype.onExternalChangeLayer=function(){var t=(0,i.refs)(this).layer;this.state.layer!==t.value&&(t.value=this.state.layer)},n.__decorate([a.autobind],e.prototype,"onChangeSize",null),n.__decorate([(0,a.watch)("state.size")],e.prototype,"onExternalChangeSize",null),n.__decorate([a.autobind],e.prototype,"onChangeCenter",null),n.__decorate([(0,a.watch)(["state.center"])],e.prototype,"onExternalChangeCenter",null),n.__decorate([(0,a.watch)(["state.type"])],e.prototype,"onExternalChangeType",null),n.__decorate([(0,a.watch)(["state.layer"])],e.prototype,"onExternalChangeLayer",null),n.__decorate([a.component],e)}(r.UIForm);e.UIMapsPropsForm=s},58333:function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.UIWysiwyg=void 0;var n=o(70655);o(64307);var r=o(97029),i=o(98813),a=o(11975),s=o(47643),l=function(t){function e(e,o,i,a){var l=t.call(this,e)||this,c=l.getElm("editor");(0,s.assert)(null!=c,"editor element does not exist");var p=r.Jodit.make(c,n.__assign({buttons:["bold","italic","image"],height:100,minHeight:100,allowResizeY:!1,allowResizeX:!1,disablePlugins:["mobile","backup","highlight-signature","tune-block","show-blocks"],toolbarButtonSize:"small",language:e.o.language,direction:e.o.direction,theme:e.o.theme,statusbar:!1},o));return p.value=i,p.e.on("change",(function(){return a(p.value)})),l}return n.__extends(e,t),e.prototype.className=function(){return"UIWysiwyg"},e.prototype.render=function(){return"<div>\n\t\t\t<div class='&__label'>~Info~</div>\n\t\t\t<div class='&__editor'></div>\n\t\t</div>"},n.__decorate([a.component],e)}(i.UIElement);e.UIWysiwyg=l},88862:function(t){t.exports='<svg viewBox="0 0 83 84" fill="none" xmlns="http://www.w3.org/2000/svg"> <circle cx="40" cy="44" r="37" stroke="black" stroke-width="6"/> <path d="M40 4V44H79" stroke="black" stroke-width="5"/> <circle cx="40" cy="6" r="6" fill="#C8C8C8"/> <circle cx="40" cy="43" r="6" fill="#C8C8C8"/> <circle cx="77" cy="44" r="6" fill="#C8C8C8"/> </svg>'},40767:function(t){t.exports='<svg viewBox="0 0 76 76" xmlns="http://www.w3.org/2000/svg"> <path d="M38 6.90909C36.2517 6.90909 34.7591 7.58381 33.5221 8.93324C32.2852 10.2827 31.6667 11.911 31.6667 13.8182V20.7273H30.0833V15.7074C30.0833 13.9801 29.5556 12.5137 28.5 11.3082C27.4444 10.1027 26.125 9.5 24.5417 9.5C23.0243 9.5 21.7214 10.0938 20.6328 11.2813C19.5443 12.4688 19 13.8902 19 15.5455V38.7017L17.4167 37.0824V27.7983C17.4167 26.071 16.8889 24.6046 15.8333 23.3991C14.7778 22.1937 13.4583 21.5909 11.875 21.5909C10.3576 21.5909 9.05469 22.1847 7.96615 23.3722C6.8776 24.5597 6.33333 25.9811 6.33333 27.6364V39.7273C6.33333 41.4186 6.91059 42.8939 8.0651 44.1534L23.4036 60.1307C24.6901 61.5341 25.3333 63.3693 25.3333 65.6364C25.3333 66.572 25.6467 67.3816 26.2734 68.0653C26.9002 68.7491 27.6424 69.0909 28.5 69.0909H60.1667C61.0243 69.0909 61.7665 68.7491 62.3932 68.0653C63.02 67.3816 63.3333 66.572 63.3333 65.6364V64.2869C63.3333 62.8116 63.4983 61.4261 63.8281 60.1307L69.1719 36.5966C69.5017 35.3011 69.6667 33.9157 69.6667 32.4403V19.1619C69.6667 17.4347 69.1389 15.9683 68.0833 14.7628C67.0278 13.5573 65.7083 12.9545 64.125 12.9545C62.6076 12.9545 61.3047 13.5483 60.2161 14.7358C59.1276 15.9233 58.5833 17.3447 58.5833 19V20.7273H57V13.9801C57 12.5407 56.5877 11.2363 55.763 10.0668C54.9384 8.89725 53.8828 8.16856 52.5964 7.88068C52.1345 7.80871 51.7552 7.77273 51.4583 7.77273C49.941 7.77273 48.638 8.36648 47.5495 9.55398C46.4609 10.7415 45.9167 12.1629 45.9167 13.8182V20.7273H44.3333V14.142C44.3333 12.3068 43.7973 10.6965 42.7253 9.31108C41.6532 7.92566 40.2925 7.14299 38.6432 6.96307C38.4783 6.92708 38.2639 6.90909 38 6.90909ZM38 0C40.7708 0 43.2283 0.899621 45.3724 2.69886C47.2526 1.47538 49.2813 0.863636 51.4583 0.863636C53.4045 0.863636 55.2352 1.34943 56.9505 2.32102C58.6658 3.29261 60.0842 4.66004 61.2057 6.4233C62.0964 6.1714 63.0694 6.04545 64.125 6.04545C67.4236 6.04545 70.2274 7.33191 72.5365 9.90483C74.8455 12.4777 76 15.5634 76 19.1619V32.4403C76 34.2756 75.7856 36.2188 75.3568 38.2699L69.9635 61.804C69.7656 62.6676 69.6667 63.9451 69.6667 65.6364C69.6667 68.5152 68.7431 70.9621 66.8958 72.9773C65.0486 74.9924 62.8056 76 60.1667 76H28.5C25.7292 76 23.4531 74.9474 21.6719 72.8423C19.8906 70.7372 19 68.1733 19 65.1506L3.76042 49.1733C1.25347 46.5464 0 43.3977 0 39.7273V27.6364C0 24.0739 1.16276 21.0241 3.48828 18.4872C5.8138 15.9503 8.60938 14.6818 11.875 14.6818C12.2378 14.6818 12.5017 14.6998 12.6667 14.7358C12.8646 11.3172 14.1098 8.43845 16.4023 6.09943C18.6949 3.76042 21.408 2.59091 24.5417 2.59091C26.2569 2.59091 27.8733 2.96875 29.3906 3.72443C31.7656 1.24148 34.6354 0 38 0Z"/> </svg>'},32207:function(t){t.exports='<svg viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg"> <g> <path d="M23,13.6l5,5V4c0-0.6-0.4-1-1-1h-4V13.6z"/> <polygon points="12.4,3 16.7,7.3 19.7,10.3 21,11.6 21,3"/> <path d="M14.6,8l-5-5H5C4.4,3,4,3.4,4,4v14.6L14.6,8z"/> </g> <path d="M28.8,29.2L26,26.4c0.7-1,1-2.1,1-3.4c0-3.3-2.7-6-6-6s-6,2.7-6,6s2.7,6,6,6c1.2,0,2.4-0.4,3.4-1l2.8,2.8 c0.4,0.4,1.2,0.4,1.6,0C29.2,30.4,29.2,29.6,28.8,29.2z"/> <path d="M13,23c0-4.4,3.6-8,8-8c0.2,0,0.4,0,0.6,0l-0.3-0.3c0,0,0,0,0,0l-3-3L16,9.4l-12,12V26c0,0.6,0.4,1,1,1h9.1 C13.4,25.8,13,24.5,13,23z"/> </svg>'},22657:function(t){t.exports='<svg viewBox="0 0 88 88" fill="none" xmlns="http://www.w3.org/2000/svg"> <g> <path d="M44 0.513519C27.2931 0.513519 13.75 13.8981 13.75 30.4095C13.75 46.9208 44 87.4835 44 87.4835C44 87.4835 74.25 46.9208 74.25 30.4095C74.25 13.8981 60.7069 0.513519 44 0.513519ZM19.25 30.4095C19.25 16.921 30.3518 5.94914 44 5.94914C57.6482 5.94914 68.75 16.921 68.75 30.4095C68.75 39.8049 54.9945 62.4871 44 78.1329C33.0055 62.4871 19.25 39.8049 19.25 30.4095ZM44 16.8204C36.4052 16.8204 30.25 22.9035 30.25 30.4095C30.25 37.9154 36.4052 43.9985 44 43.9985C51.5948 43.9985 57.75 37.9154 57.75 30.4095C57.75 22.9035 51.5948 16.8204 44 16.8204ZM44 38.5629C39.4508 38.5629 35.75 34.9054 35.75 30.4095C35.75 25.9135 39.4508 22.256 44 22.256C48.5492 22.256 52.25 25.9135 52.25 30.4095C52.25 34.9054 48.5492 38.5629 44 38.5629Z" fill="#404040"/> </g> <defs> <rect width="88" height="86.97" fill="white" transform="translate(0 0.513519)"/> </defs> </svg>'},26929:function(t){t.exports='<svg viewBox="0 0 77 86" fill="none" xmlns="http://www.w3.org/2000/svg"> <path d="M7 38.6056L33.1367 7.96263L69.5477 45.7058L36.2444 72.166L7 76.9673V38.6056Z" stroke="black" stroke-width="6"/> <circle cx="71" cy="45" r="6" fill="#C8C8C8"/> <circle cx="35" cy="73" r="6" fill="#C8C8C8"/> <circle cx="6" cy="79" r="6" fill="#C8C8C8"/> <circle cx="6" cy="39" r="6" fill="#C8C8C8"/> <circle cx="33" cy="6" r="6" fill="#C8C8C8"/> </svg>'},87526:function(t){t.exports='<svg width="72" height="86" viewBox="0 0 72 86" fill="none" xmlns="http://www.w3.org/2000/svg"> <path d="M17.1832 79.1351L13.6833 45.0811L49.6832 58.4595L47.6832 5.35135" stroke="black" stroke-width="6"/> <circle cx="13" cy="44" r="6" fill="#C8C8C8"/> <circle cx="17" cy="77" r="6" fill="#C8C8C8"/> <circle cx="51" cy="59" r="6" fill="#C8C8C8"/> <circle cx="48" cy="6" r="6" fill="#C8C8C8"/> </svg>'},98576:function(t){t.exports='<svg viewBox="0 0 47 61" fill="none" xmlns="http://www.w3.org/2000/svg"> <path d="M46.7671 7.12793H27.3433V61H19.416V7.12793H0.0336914V0.570312H46.7671V7.12793Z" fill="black"/> </svg>'},74054:function(t,e,o){"use strict";o.r(e)},26164:function(t,e,o){"use strict";o.r(e)},34436:function(t,e,o){"use strict";o.r(e)},70290:function(t,e,o){"use strict";o.r(e)},68120:function(t,e,o){"use strict";o.r(e)},67280:function(t,e,o){"use strict";o.r(e)},36522:function(t,e,o){"use strict";o.r(e)},64307:function(t,e,o){"use strict";o.r(e)}},function(t){return t(t.s=28137)}])}));
|